@activepieces/shared 0.6.5 → 0.7.1
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,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sinclair/typebox": "^0.26.3",
|
|
7
7
|
"nanoid": "^3.3.4",
|
|
8
8
|
"object-sizeof": "^2.6.3",
|
|
9
|
-
"semver": "7.5.
|
|
10
|
-
"tslib": "
|
|
9
|
+
"semver": "7.5.4",
|
|
10
|
+
"tslib": "2.6.1"
|
|
11
11
|
},
|
|
12
12
|
"main": "./src/index.js",
|
|
13
13
|
"types": "./src/index.d.ts"
|
|
@@ -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,
|
|
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"}
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const common_1 = require("../../common");
|
|
6
6
|
const action_1 = require("../../flows/actions/action");
|
|
7
7
|
const object_sizeof_1 = tslib_1.__importDefault(require("object-sizeof"));
|
|
8
|
-
const TRIM_SIZE_BYTE =
|
|
8
|
+
const TRIM_SIZE_BYTE = 512 * 1024;
|
|
9
9
|
exports.MAX_LOG_SIZE = 2048 * 1024;
|
|
10
10
|
class ExecutionState {
|
|
11
11
|
constructor(executionState) {
|