@activepieces/shared 0.6.5 → 0.7.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@activepieces/shared",
3
- "version": "0.6.5",
3
+ "version": "0.7.0",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@sinclair/typebox": "^0.26.3",
@@ -14,7 +14,8 @@ export declare enum EngineOperationType {
14
14
  EXECUTE_FLOW = "EXECUTE_FLOW",
15
15
  EXECUTE_PROPERTY = "EXECUTE_PROPERTY",
16
16
  EXECUTE_TRIGGER_HOOK = "EXECUTE_TRIGGER_HOOK",
17
- EXECUTE_VALIDATE_AUTH = "EXECUTE_VALIDATE_AUTH"
17
+ EXECUTE_VALIDATE_AUTH = "EXECUTE_VALIDATE_AUTH",
18
+ EXECUTE_TEST = "EXECUTE_TEST"
18
19
  }
19
20
  export declare enum TriggerHookType {
20
21
  ON_ENABLE = "ON_ENABLE",
@@ -67,13 +68,22 @@ type BaseExecuteFlowOperation<T extends ExecutionType> = BaseEngineOperation & {
67
68
  serverUrl: string;
68
69
  executionType: T;
69
70
  };
70
- export type BeginExecuteFlowOperation = BaseExecuteFlowOperation<ExecutionType.BEGIN>;
71
+ export type BeginExecuteFlowOperation = BaseExecuteFlowOperation<ExecutionType.BEGIN> & {
72
+ executionState?: ExecutionState;
73
+ };
71
74
  export type ResumeExecuteFlowOperation = BaseExecuteFlowOperation<ExecutionType.RESUME> & {
72
75
  executionState: ExecutionState;
73
76
  resumeStepMetadata: ResumeStepMetadata;
74
77
  resumePayload: unknown;
75
78
  };
76
79
  export type ExecuteFlowOperation = BeginExecuteFlowOperation | ResumeExecuteFlowOperation;
80
+ export type EngineTestOperation = BeginExecuteFlowOperation & {
81
+ /**
82
+ * original flow version that the current test flow version is derived from.
83
+ * Used to generate the test execution context.
84
+ */
85
+ sourceFlowVersion: FlowVersion;
86
+ };
77
87
  export type ExecuteTriggerOperation<HT extends TriggerHookType> = BaseEngineOperation & {
78
88
  hookType: HT;
79
89
  flowVersion: FlowVersion;
@@ -10,6 +10,7 @@ var EngineOperationType;
10
10
  EngineOperationType["EXECUTE_PROPERTY"] = "EXECUTE_PROPERTY";
11
11
  EngineOperationType["EXECUTE_TRIGGER_HOOK"] = "EXECUTE_TRIGGER_HOOK";
12
12
  EngineOperationType["EXECUTE_VALIDATE_AUTH"] = "EXECUTE_VALIDATE_AUTH";
13
+ EngineOperationType["EXECUTE_TEST"] = "EXECUTE_TEST";
13
14
  })(EngineOperationType || (exports.EngineOperationType = EngineOperationType = {}));
14
15
  var TriggerHookType;
15
16
  (function (TriggerHookType) {
@@ -1 +1 @@
1
- {"version":3,"file":"engine-operation.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/engine-operation.ts"],"names":[],"mappings":";;;AAUA,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC3B,wEAAiD,CAAA;IACjD,wDAAiC,CAAA;IACjC,oDAA6B,CAAA;IAC7B,oDAA6B,CAAA;IAC7B,4DAAqC,CAAA;IACrC,oEAA6C,CAAA;IAC7C,sEAA+C,CAAA;AACnD,CAAC,EARW,mBAAmB,mCAAnB,mBAAmB,QAQ9B;AAED,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,4CAAyB,CAAA;IACzB,0CAAuB,CAAA;IACvB,8BAAW,CAAA;IACX,gCAAa,CAAA;AACjB,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B;AA0GA,CAAC;AA2DF,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,iCAAS,CAAA;IACT,uCAAe,CAAA;IACf,2CAAmB,CAAA;AACvB,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B"}
1
+ {"version":3,"file":"engine-operation.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/engine-operation.ts"],"names":[],"mappings":";;;AAUA,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC3B,wEAAiD,CAAA;IACjD,wDAAiC,CAAA;IACjC,oDAA6B,CAAA;IAC7B,oDAA6B,CAAA;IAC7B,4DAAqC,CAAA;IACrC,oEAA6C,CAAA;IAC7C,sEAA+C,CAAA;IAC/C,oDAA6B,CAAA;AACjC,CAAC,EATW,mBAAmB,mCAAnB,mBAAmB,QAS9B;AAED,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,4CAAyB,CAAA;IACzB,0CAAuB,CAAA;IACvB,8BAAW,CAAA;IACX,gCAAa,CAAA;AACjB,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B;AAoHA,CAAC;AA2DF,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,iCAAS,CAAA;IACT,uCAAe,CAAA;IACf,2CAAmB,CAAA;AACvB,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B"}