@activepieces/shared 0.10.60 → 0.10.61
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 +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/lib/common/locale.d.ts +2 -0
- package/src/lib/common/locale.js +2 -0
- package/src/lib/common/locale.js.map +1 -1
- package/src/lib/engine/code-executor-sandbox-type.d.ts +4 -0
- package/src/lib/engine/code-executor-sandbox-type.js +9 -0
- package/src/lib/engine/code-executor-sandbox-type.js.map +1 -0
- package/src/lib/engine/index.d.ts +2 -0
- package/src/lib/engine/index.js +6 -0
- package/src/lib/engine/index.js.map +1 -0
- package/src/lib/flow-run/execution/step-output.d.ts +9 -9
- package/src/lib/flow-run/execution/step-output.js +10 -10
- package/src/lib/flow-run/execution/step-output.js.map +1 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from './lib/app-connection/dto/upsert-app-connection-request';
|
|
|
5
5
|
export * from './lib/common';
|
|
6
6
|
export * from './lib/common/activepieces-error';
|
|
7
7
|
export * from './lib/common/telemetry';
|
|
8
|
-
export * from './lib/engine
|
|
8
|
+
export * from './lib/engine';
|
|
9
9
|
export * from './lib/flag/flag';
|
|
10
10
|
export * from './lib/flow-run/dto/list-flow-runs-request';
|
|
11
11
|
export * from './lib/flow-run/execution/execution-output';
|
package/src/index.js
CHANGED
|
@@ -9,7 +9,7 @@ tslib_1.__exportStar(require("./lib/app-connection/dto/upsert-app-connection-req
|
|
|
9
9
|
tslib_1.__exportStar(require("./lib/common"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./lib/common/activepieces-error"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./lib/common/telemetry"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./lib/engine
|
|
12
|
+
tslib_1.__exportStar(require("./lib/engine"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./lib/flag/flag"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./lib/flow-run/dto/list-flow-runs-request"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./lib/flow-run/execution/execution-output"), exports);
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/shared/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA0C;AAC1C,8EAAmD;AACnD,+FAAoE;AACpE,iGAAsE;AACtE,uDAA4B;AAC5B,0EAA+C;AAC/C,iEAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/shared/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA0C;AAC1C,8EAAmD;AACnD,+FAAoE;AACpE,iGAAsE;AACtE,uDAA4B;AAC5B,0EAA+C;AAC/C,iEAAsC;AACtC,uDAA4B;AAC5B,0DAA+B;AAC/B,oFAAyD;AACzD,oFAAyD;AACzD,+EAAoD;AACpD,sEAA2C;AAC3C,+DAAoC;AACpC,8EAAmD;AACnD,iGAAsE;AACtE,oFAAyD;AACzD,oEAAuE;AAA9D,+GAAA,gBAAgB,OAAA;AACzB,uDAA4B;AAC5B,oFAAyD;AACzD,wDAA6B;AAC7B,8EAAmD;AACnD,4DAAgE;AAAvD,kHAAA,kBAAkB,OAAA;AAE3B,4EAAwE;AAA/D,gHAAA,aAAa,OAAA;AACtB,4EAAwE;AAA/D,gHAAA,aAAa,OAAA;AACtB,oFAAyD;AAEzD,qEAA0C;AAE1C,qDAA0B;AAC1B,8EAA6E;AAApE,+HAAA,sBAAsB,OAAA;AAC/B,wDAAmK;AAA1J,kGAAA,OAAO,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,+GAAA,oBAAoB,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,yGAAA,cAAc,OAAA;AAAE,sGAAA,WAAW,OAAA;AAAE,uHAAA,4BAA4B,OAAA;AAC7H,yDAA4G;AAAnG,2GAAA,WAAW,OAAA;AAAE,gHAAA,gBAAgB,OAAA;AAAiB,mHAAA,mBAAmB,OAAA;AAC1E,yCAA+C;AAAtC,4FAAA,IAAI,OAAA;AACb,qDAA0B;AAC1B,kEAAuC;AACvC,oDAAuI;AAA1G,0GAAA,cAAc,OAAA;AAAE,gHAAA,oBAAoB,OAAA;AAAE,6GAAA,iBAAiB,OAAA;AACpF,iDAAuE;AAA9D,kGAAA,OAAO,OAAA;AAAa,sGAAA,WAAW,OAAA;AACxC,8EAAmD;AACnD,oDAAyD;AAAhD,qGAAA,QAAQ,OAAA;AACjB,0DAAkE;AAAzD,oGAAA,IAAI,OAAA;AAAE,oGAAA,IAAI,OAAA;AAAE,0GAAA,UAAU,OAAA;AAC/B,wFAA6D;AAC7D,mFAAwD;AACxD,kEAAuC;AACvC,kEAAuC;AACvC,qEAA0C;AAC1C,8EAAmD;AACnD,gFAAqD;AACrD,sDAA2B;AAC3B,6EAAkD;AAClD,gEAAqC;AACrC,qDAAqD;AACrD,8EAA2E;AAAlE,6HAAA,oBAAoB,OAAA;AAC7B,gFAAqD;AACrD,6DAA6D;AAC7D,mBAAU,CAAC,0BAA0B,GAAG,KAAK,CAAA;AAC7C,4DAAiC"}
|
package/src/lib/common/locale.js
CHANGED
|
@@ -8,6 +8,8 @@ var LocalesEnum;
|
|
|
8
8
|
LocalesEnum["GERMAN"] = "de";
|
|
9
9
|
LocalesEnum["ITALIAN"] = "it";
|
|
10
10
|
LocalesEnum["FRENCH"] = "fr";
|
|
11
|
+
LocalesEnum["BULGARIAN"] = "bg";
|
|
12
|
+
LocalesEnum["UKRAINIAN"] = "uk";
|
|
11
13
|
LocalesEnum["HUNGARIAN"] = "hu";
|
|
12
14
|
LocalesEnum["SPANISH"] = "es";
|
|
13
15
|
LocalesEnum["JAPANESE"] = "ja";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/locale.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/locale.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAeX;AAfD,WAAY,WAAW;IACnB,2BAAY,CAAA;IACZ,6BAAc,CAAA;IACd,4BAAa,CAAA;IACb,6BAAc,CAAA;IACd,4BAAa,CAAA;IACb,+BAAgB,CAAA;IAChB,+BAAgB,CAAA;IAChB,+BAAgB,CAAA;IAChB,6BAAc,CAAA;IACd,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,wCAAyB,CAAA;IACzB,gCAAiB,CAAA;AACrB,CAAC,EAfW,WAAW,2BAAX,WAAW,QAetB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CodeExecutorSandboxType = void 0;
|
|
4
|
+
var CodeExecutorSandboxType;
|
|
5
|
+
(function (CodeExecutorSandboxType) {
|
|
6
|
+
CodeExecutorSandboxType["NO_OP"] = "NO_OP";
|
|
7
|
+
CodeExecutorSandboxType["ISOLATE"] = "ISOLATE";
|
|
8
|
+
})(CodeExecutorSandboxType || (exports.CodeExecutorSandboxType = CodeExecutorSandboxType = {}));
|
|
9
|
+
//# sourceMappingURL=code-executor-sandbox-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-executor-sandbox-type.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/code-executor-sandbox-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,0CAAe,CAAA;IACf,8CAAmB,CAAA;AACvB,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./code-executor-sandbox-type"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./engine-operation"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/index.ts"],"names":[],"mappings":";;;AAAA,uEAA4C;AAC5C,6DAAkC"}
|
|
@@ -15,7 +15,7 @@ type BaseStepOutputParams<T extends ActionType | TriggerType, OUTPUT> = {
|
|
|
15
15
|
duration?: number;
|
|
16
16
|
errorMessage?: unknown;
|
|
17
17
|
};
|
|
18
|
-
export declare class
|
|
18
|
+
export declare class GenericStepOutput<T extends ActionType | TriggerType, OUTPUT> {
|
|
19
19
|
type: T;
|
|
20
20
|
status: StepOutputStatus;
|
|
21
21
|
input: unknown;
|
|
@@ -23,22 +23,22 @@ export declare class GenricStepOutput<T extends ActionType | TriggerType, OUTPUT
|
|
|
23
23
|
duration?: number;
|
|
24
24
|
errorMessage?: unknown;
|
|
25
25
|
constructor(step: BaseStepOutputParams<T, OUTPUT>);
|
|
26
|
-
setOutput(output: OUTPUT):
|
|
27
|
-
setStatus(status: StepOutputStatus):
|
|
28
|
-
setErrorMessage(errorMessage: unknown):
|
|
29
|
-
setDuration(duration: number):
|
|
26
|
+
setOutput(output: OUTPUT): GenericStepOutput<T, OUTPUT>;
|
|
27
|
+
setStatus(status: StepOutputStatus): GenericStepOutput<T, OUTPUT>;
|
|
28
|
+
setErrorMessage(errorMessage: unknown): GenericStepOutput<T, OUTPUT>;
|
|
29
|
+
setDuration(duration: number): GenericStepOutput<T, OUTPUT>;
|
|
30
30
|
static create<T extends ActionType | TriggerType, OUTPUT>({ input, type, status, output }: {
|
|
31
31
|
input: unknown;
|
|
32
32
|
type: T;
|
|
33
33
|
status: StepOutputStatus;
|
|
34
34
|
output?: OUTPUT;
|
|
35
|
-
}):
|
|
35
|
+
}): GenericStepOutput<T, OUTPUT>;
|
|
36
36
|
}
|
|
37
|
-
export type StepOutput =
|
|
37
|
+
export type StepOutput = GenericStepOutput<ActionType.LOOP_ON_ITEMS, LoopStepResult> | GenericStepOutput<ActionType.BRANCH, BranchStepResult> | GenericStepOutput<Exclude<ActionType, ActionType.LOOP_ON_ITEMS | ActionType.BRANCH> | TriggerType, unknown>;
|
|
38
38
|
type BranchStepResult = {
|
|
39
39
|
condition: boolean;
|
|
40
40
|
};
|
|
41
|
-
export declare class BranchStepOutput extends
|
|
41
|
+
export declare class BranchStepOutput extends GenericStepOutput<ActionType.BRANCH, BranchStepResult> {
|
|
42
42
|
constructor(step: BaseStepOutputParams<ActionType.BRANCH, BranchStepResult>);
|
|
43
43
|
static init({ input }: {
|
|
44
44
|
input: unknown;
|
|
@@ -49,7 +49,7 @@ export type LoopStepResult = {
|
|
|
49
49
|
index: number;
|
|
50
50
|
iterations: Record<string, StepOutput>[];
|
|
51
51
|
};
|
|
52
|
-
export declare class LoopStepOutput extends
|
|
52
|
+
export declare class LoopStepOutput extends GenericStepOutput<ActionType.LOOP_ON_ITEMS, LoopStepResult> {
|
|
53
53
|
constructor(step: BaseStepOutputParams<ActionType.LOOP_ON_ITEMS, LoopStepResult>);
|
|
54
54
|
static init({ input }: {
|
|
55
55
|
input: unknown;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoopStepOutput = exports.BranchStepOutput = exports.
|
|
3
|
+
exports.LoopStepOutput = exports.BranchStepOutput = exports.GenericStepOutput = exports.StepOutputStatus = void 0;
|
|
4
4
|
const action_1 = require("../../flows/actions/action");
|
|
5
5
|
var StepOutputStatus;
|
|
6
6
|
(function (StepOutputStatus) {
|
|
@@ -10,7 +10,7 @@ var StepOutputStatus;
|
|
|
10
10
|
StepOutputStatus["STOPPED"] = "STOPPED";
|
|
11
11
|
StepOutputStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
12
12
|
})(StepOutputStatus || (exports.StepOutputStatus = StepOutputStatus = {}));
|
|
13
|
-
class
|
|
13
|
+
class GenericStepOutput {
|
|
14
14
|
constructor(step) {
|
|
15
15
|
this.type = step.type;
|
|
16
16
|
this.status = step.status;
|
|
@@ -20,19 +20,19 @@ class GenricStepOutput {
|
|
|
20
20
|
this.errorMessage = step.errorMessage;
|
|
21
21
|
}
|
|
22
22
|
setOutput(output) {
|
|
23
|
-
return new
|
|
23
|
+
return new GenericStepOutput(Object.assign(Object.assign({}, this), { output }));
|
|
24
24
|
}
|
|
25
25
|
setStatus(status) {
|
|
26
|
-
return new
|
|
26
|
+
return new GenericStepOutput(Object.assign(Object.assign({}, this), { status }));
|
|
27
27
|
}
|
|
28
28
|
setErrorMessage(errorMessage) {
|
|
29
|
-
return new
|
|
29
|
+
return new GenericStepOutput(Object.assign(Object.assign({}, this), { errorMessage }));
|
|
30
30
|
}
|
|
31
31
|
setDuration(duration) {
|
|
32
|
-
return new
|
|
32
|
+
return new GenericStepOutput(Object.assign(Object.assign({}, this), { duration }));
|
|
33
33
|
}
|
|
34
34
|
static create({ input, type, status, output }) {
|
|
35
|
-
return new
|
|
35
|
+
return new GenericStepOutput({
|
|
36
36
|
input,
|
|
37
37
|
type,
|
|
38
38
|
status,
|
|
@@ -40,8 +40,8 @@ class GenricStepOutput {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
exports.
|
|
44
|
-
class BranchStepOutput extends
|
|
43
|
+
exports.GenericStepOutput = GenericStepOutput;
|
|
44
|
+
class BranchStepOutput extends GenericStepOutput {
|
|
45
45
|
constructor(step) {
|
|
46
46
|
super(step);
|
|
47
47
|
}
|
|
@@ -54,7 +54,7 @@ class BranchStepOutput extends GenricStepOutput {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
exports.BranchStepOutput = BranchStepOutput;
|
|
57
|
-
class LoopStepOutput extends
|
|
57
|
+
class LoopStepOutput extends GenericStepOutput {
|
|
58
58
|
constructor(step) {
|
|
59
59
|
var _a;
|
|
60
60
|
super(step);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-output.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flow-run/execution/step-output.ts"],"names":[],"mappings":";;;AACA,uDAAuD;AAEvD,IAAY,gBAMX;AAND,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;AAC3B,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAWD,MAAa,
|
|
1
|
+
{"version":3,"file":"step-output.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flow-run/execution/step-output.ts"],"names":[],"mappings":";;;AACA,uDAAuD;AAEvD,IAAY,gBAMX;AAND,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;AAC3B,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAWD,MAAa,iBAAiB;IAQ1B,YAAY,IAAqC;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;QACrB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;QACzB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACvB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;QACzB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC7B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAA;IACzC,CAAC;IAED,SAAS,CAAC,MAAc;QACpB,OAAO,IAAI,iBAAiB,iCACrB,IAAI,KACP,MAAM,IACR,CAAA;IACN,CAAC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