-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test workflow feature to JS SDK - https://orkes.io/content/develo…
- Loading branch information
1 parent
0c07a54
commit b8307a3
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type TaskMock = { | ||
executionTime?: number; | ||
output?: Record<string, Record<string, any>>; | ||
queueWaitTime?: number; | ||
status?: | ||
| "IN_PROGRESS" | ||
| "FAILED" | ||
| "FAILED_WITH_TERMINAL_ERROR" | ||
| "COMPLETED"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { TaskMock } from "./TaskMock"; | ||
import type { WorkflowDef } from "./WorkflowDef"; | ||
export type WorkflowTestRequest = { | ||
correlationId?: string; | ||
createdBy?: string; | ||
externalInputPayloadStoragePath?: string; | ||
idempotencyKey?: string; | ||
idempotencyStrategy?: "FAIL" | "RETURN_EXISTING"; | ||
input?: Record<string, Record<string, any>>; | ||
name: string; | ||
priority?: number; | ||
subWorkflowTestRequest?: Record<string, WorkflowTestRequest>; | ||
taskRefToMockOutput?: Record<string, Array<TaskMock>>; | ||
taskToDomain?: Record<string, string>; | ||
version?: number; | ||
workflowDef?: WorkflowDef; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters