Skip to content

Commit

Permalink
Merge pull request #578 from selfcontained/bradh-update-workflow-step…
Browse files Browse the repository at this point in the history
…-types

adding more detail to workflow step action/event types
  • Loading branch information
misscoded authored Aug 17, 2020
2 parents bb264f0 + ffac7e9 commit 287d722
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
14 changes: 12 additions & 2 deletions src/types/actions/workflow-step-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@ export interface WorkflowStepEdit {
workflow_step: {
workflow_id: string;
step_id: string;
inputs: object;
outputs: [];
inputs: {
[key: string]: {
value: any;
},
};
outputs: {
name: string;
type: string;
label: string;
}[];
step_name?: string;
step_image_url?: string;
};
}
6 changes: 5 additions & 1 deletion src/types/events/base-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,11 @@ export interface WorkflowStepExecuteEvent extends StringIndexed {
workflow_id: string;
workflow_instance_id: string;
step_id: string;
inputs: object;
inputs: {
[key: string]: {
value: any;
},
};
outputs: {
name: string;
type: string;
Expand Down
10 changes: 10 additions & 0 deletions src/types/view/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export interface ViewSubmitAction {
view: ViewOutput;
api_app_id: string;
token: string;
workflow_step?: {
workflow_step_edit_id: string;
workflow_id: string;
step_id: string;
};
}

/**
Expand All @@ -68,6 +73,11 @@ export interface ViewClosedAction {
api_app_id: string;
token: string;
is_cleared: boolean;
workflow_step?: {
workflow_step_edit_id: string;
workflow_id: string;
step_id: string;
};
}

export interface ViewOutput {
Expand Down

0 comments on commit 287d722

Please sign in to comment.