@activepieces/shared 0.3.40 → 0.3.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActionType } from '../../flows/actions/action';
|
|
2
2
|
import { ExecutionState } from './execution-state';
|
|
3
|
+
import { StopResponse } from './step-output';
|
|
3
4
|
export declare enum ExecutionOutputStatus {
|
|
4
5
|
FAILED = "FAILED",
|
|
5
6
|
INTERNAL_ERROR = "INTERNAL_ERROR",
|
|
@@ -50,7 +51,7 @@ export declare type PauseExecutionOutput = BaseExecutionOutput<ExecutionOutputSt
|
|
|
50
51
|
};
|
|
51
52
|
export declare type FinishExecutionOutput = BaseExecutionOutput<Exclude<ExecutionOutputStatus, ExecutionOutputStatus.PAUSED | ExecutionOutputStatus.STOPPED>>;
|
|
52
53
|
export declare type StopExecutionOutput = BaseExecutionOutput<ExecutionOutputStatus.STOPPED> & {
|
|
53
|
-
stopResponse?:
|
|
54
|
+
stopResponse?: StopResponse;
|
|
54
55
|
};
|
|
55
56
|
export declare type ExecutionOutput = FinishExecutionOutput | PauseExecutionOutput | StopExecutionOutput;
|
|
56
57
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-output.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flow-run/execution/execution-output.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"execution-output.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flow-run/execution/execution-output.ts"],"names":[],"mappings":";;;AAIA,IAAY,qBAQX;AARD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,0DAAiC,CAAA;IACjC,0CAAiB,CAAA;IACjB,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;IACnB,gDAAuB,CAAA;IACvB,4CAAmB,CAAA;AACrB,CAAC,EARW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAQhC;AAyCD,IAAY,SAEX;AAFD,WAAY,SAAS;IACnB,4BAAe,CAAA;AACjB,CAAC,EAFW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAEpB"}
|
|
@@ -7,6 +7,11 @@ export declare enum StepOutputStatus {
|
|
|
7
7
|
STOPPED = "STOPPED",
|
|
8
8
|
SUCCEEDED = "SUCCEEDED"
|
|
9
9
|
}
|
|
10
|
+
export declare type StopResponse = {
|
|
11
|
+
status?: number;
|
|
12
|
+
body?: unknown;
|
|
13
|
+
headers?: Record<string, string>;
|
|
14
|
+
};
|
|
10
15
|
export declare type StepOutput<T extends ActionType = ActionType, O = any> = {
|
|
11
16
|
type: T;
|
|
12
17
|
status: StepOutputStatus;
|
|
@@ -16,7 +21,7 @@ export declare type StepOutput<T extends ActionType = ActionType, O = any> = {
|
|
|
16
21
|
errorMessage?: unknown;
|
|
17
22
|
standardOutput?: unknown;
|
|
18
23
|
pauseMetadata?: PauseMetadata;
|
|
19
|
-
stopResponse?:
|
|
24
|
+
stopResponse?: StopResponse;
|
|
20
25
|
};
|
|
21
26
|
declare type LoopOnItemsOutput = {
|
|
22
27
|
item: unknown;
|