@activepieces/shared
Advanced tools
Comparing version 0.3.35 to 0.3.36
{ | ||
"name": "@activepieces/shared", | ||
"version": "0.3.35", | ||
"version": "0.3.36", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -6,5 +6,6 @@ import { ActionType } from '../../flows/actions/action'; | ||
INTERNAL_ERROR = "INTERNAL_ERROR", | ||
PAUSED = "PAUSED", | ||
RUNNING = "RUNNING", | ||
STOPPED = "STOPPED", | ||
SUCCEEDED = "SUCCEEDED", | ||
PAUSED = "PAUSED", | ||
TIMEOUT = "TIMEOUT" | ||
@@ -52,4 +53,7 @@ } | ||
}; | ||
export declare type FinishExecutionOutput = BaseExecutionOutput<Exclude<ExecutionOutputStatus, ExecutionOutputStatus.PAUSED>>; | ||
export declare type ExecutionOutput = FinishExecutionOutput | PauseExecutionOutput; | ||
export declare type FinishExecutionOutput = BaseExecutionOutput<Exclude<ExecutionOutputStatus, ExecutionOutputStatus.PAUSED | ExecutionOutputStatus.STOPPED>>; | ||
export declare type StopExecutionOutput = BaseExecutionOutput<ExecutionOutputStatus.STOPPED> & { | ||
stopResponse?: unknown; | ||
}; | ||
export declare type ExecutionOutput = FinishExecutionOutput | PauseExecutionOutput | StopExecutionOutput; | ||
export {}; |
@@ -8,5 +8,6 @@ "use strict"; | ||
ExecutionOutputStatus["INTERNAL_ERROR"] = "INTERNAL_ERROR"; | ||
ExecutionOutputStatus["PAUSED"] = "PAUSED"; | ||
ExecutionOutputStatus["RUNNING"] = "RUNNING"; | ||
ExecutionOutputStatus["STOPPED"] = "STOPPED"; | ||
ExecutionOutputStatus["SUCCEEDED"] = "SUCCEEDED"; | ||
ExecutionOutputStatus["PAUSED"] = "PAUSED"; | ||
ExecutionOutputStatus["TIMEOUT"] = "TIMEOUT"; | ||
@@ -13,0 +14,0 @@ })(ExecutionOutputStatus = exports.ExecutionOutputStatus || (exports.ExecutionOutputStatus = {})); |
import { ActionType } from "../../flows/actions/action"; | ||
import { PauseMetadata } from "./execution-output"; | ||
export declare enum StepOutputStatus { | ||
FAILED = "FAILED", | ||
PAUSED = "PAUSED", | ||
RUNNING = "RUNNING", | ||
SUCCEEDED = "SUCCEEDED", | ||
FAILED = "FAILED", | ||
PAUSED = "PAUSED" | ||
STOPPED = "STOPPED", | ||
SUCCEEDED = "SUCCEEDED" | ||
} | ||
@@ -18,2 +19,3 @@ export declare type StepOutput<T extends ActionType = ActionType, O = any> = { | ||
pauseMetadata?: Omit<PauseMetadata, 'executionState'>; | ||
stopResponse?: unknown; | ||
}; | ||
@@ -30,2 +32,3 @@ declare type LoopOnItemsOutput = { | ||
export declare type BranchStepOutput = StepOutput<ActionType.BRANCH, BranchOutput>; | ||
export declare type StepOutputForActionType<T extends ActionType, O = unknown> = T extends ActionType.BRANCH ? BranchStepOutput : T extends ActionType.LOOP_ON_ITEMS ? LoopOnItemsStepOutput : StepOutput<T, O>; | ||
export {}; |
@@ -6,7 +6,8 @@ "use strict"; | ||
(function (StepOutputStatus) { | ||
StepOutputStatus["FAILED"] = "FAILED"; | ||
StepOutputStatus["PAUSED"] = "PAUSED"; | ||
StepOutputStatus["RUNNING"] = "RUNNING"; | ||
StepOutputStatus["STOPPED"] = "STOPPED"; | ||
StepOutputStatus["SUCCEEDED"] = "SUCCEEDED"; | ||
StepOutputStatus["FAILED"] = "FAILED"; | ||
StepOutputStatus["PAUSED"] = "PAUSED"; | ||
})(StepOutputStatus = exports.StepOutputStatus || (exports.StepOutputStatus = {})); | ||
//# sourceMappingURL=step-output.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
271555
3833