@activepieces/shared 0.3.38 → 0.3.39
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 +0 -1
- package/src/index.js +0 -1
- package/src/index.js.map +1 -1
- package/src/lib/engine/engine-operation.d.ts +8 -1
- package/src/lib/engine/engine-operation.js +1 -0
- package/src/lib/engine/engine-operation.js.map +1 -1
- package/src/lib/flows/step-run/dto/test-step-request.d.ts +8 -0
- package/src/lib/flows/step-run/dto/test-step-request.js +7 -1
- package/src/lib/flows/step-run/dto/test-step-request.js.map +1 -1
- package/src/lib/workers/code-worker/code-execution-result.d.ts +0 -12
- package/src/lib/workers/code-worker/code-execution-result.js +0 -10
- package/src/lib/workers/code-worker/code-execution-result.js.map +0 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ export * from "./lib/pieces";
|
|
|
23
23
|
export * from "./lib/store-entry/dto/store-entry-request";
|
|
24
24
|
export * from "./lib/webhook";
|
|
25
25
|
export * from './lib/flows/dto/count-flows-request';
|
|
26
|
-
export * from "./lib/workers/code-worker/code-execution-result";
|
|
27
26
|
export { ExecuteCodeRequest } from './lib/code/dto/code-request';
|
|
28
27
|
export { AuthenticationResponse } from './lib/authentication/dto/authentication-response';
|
|
29
28
|
export { SignUpRequest } from './lib/authentication/dto/sign-up-request';
|
package/src/index.js
CHANGED
|
@@ -28,7 +28,6 @@ tslib_1.__exportStar(require("./lib/pieces"), exports);
|
|
|
28
28
|
tslib_1.__exportStar(require("./lib/store-entry/dto/store-entry-request"), exports);
|
|
29
29
|
tslib_1.__exportStar(require("./lib/webhook"), exports);
|
|
30
30
|
tslib_1.__exportStar(require("./lib/flows/dto/count-flows-request"), exports);
|
|
31
|
-
tslib_1.__exportStar(require("./lib/workers/code-worker/code-execution-result"), exports);
|
|
32
31
|
var code_request_1 = require("./lib/code/dto/code-request");
|
|
33
32
|
Object.defineProperty(exports, "ExecuteCodeRequest", { enumerable: true, get: function () { return code_request_1.ExecuteCodeRequest; } });
|
|
34
33
|
var sign_up_request_1 = require("./lib/authentication/dto/sign-up-request");
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/shared/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA2C;AAC3C,8EAAoD;AACpD,+FAAqE;AACrE,iGAAuE;AACvE,uDAA6B;AAC7B,0EAAgD;AAChD,iEAAuC;AACvC,wEAA8C;AAC9C,0DAAgC;AAChC,oFAA0D;AAC1D,oFAA0D;AAC1D,kFAAwD;AACxD,+EAAqD;AACrD,sEAA4C;AAC5C,+DAAqC;AACrC,yDAA+B;AAC/B,8EAAoD;AACpD,iGAAuE;AACvE,oFAA0D;AAC1D,oEAAwE;AAA/D,+GAAA,gBAAgB,OAAA;AACzB,yDAA+B;AAC/B,uDAA6B;AAC7B,oFAA0D;AAC1D,wDAA8B;AAC9B,8EAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/shared/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA2C;AAC3C,8EAAoD;AACpD,+FAAqE;AACrE,iGAAuE;AACvE,uDAA6B;AAC7B,0EAAgD;AAChD,iEAAuC;AACvC,wEAA8C;AAC9C,0DAAgC;AAChC,oFAA0D;AAC1D,oFAA0D;AAC1D,kFAAwD;AACxD,+EAAqD;AACrD,sEAA4C;AAC5C,+DAAqC;AACrC,yDAA+B;AAC/B,8EAAoD;AACpD,iGAAuE;AACvE,oFAA0D;AAC1D,oEAAwE;AAA/D,+GAAA,gBAAgB,OAAA;AACzB,yDAA+B;AAC/B,uDAA6B;AAC7B,oFAA0D;AAC1D,wDAA8B;AAC9B,8EAAmD;AACnD,4DAAiE;AAAxD,kHAAA,kBAAkB,OAAA;AAE3B,4EAAyE;AAAhE,gHAAA,aAAa,OAAA;AACtB,4EAAyE;AAAhE,gHAAA,aAAa,OAAA;AACtB,4EAA0E;AAAjE,+GAAA,aAAa,OAAA;AAEtB,qDAGmC;AAD/B,6GAAA,mBAAmB,OAAA;AAAE,mHAAA,yBAAyB,OAAA;AAAE,gGAAA,MAAM,OAAA;AAAE,oGAAA,UAAU,OAAA;AAAE,4GAAA,kBAAkB,OAAA;AAG1F,0DAAgC;AAChC,kFAA8E;AAArE,+HAAA,oBAAoB,OAAA;AAC7B,wDAAsI;AAA7H,kGAAA,OAAO,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,+GAAA,oBAAoB,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,yGAAA,cAAc,OAAA;AAAE,sGAAA,WAAW,OAAA;AAC/F,yDAAwF;AAAlE,gHAAA,gBAAgB,OAAA;AAGtC,kEAAwC;AACxC,oDAA4E;AAA/C,0GAAA,cAAc,OAAA;AAC3C,4EAA0E;AAAjE,iHAAA,cAAc,OAAA;AAEvB,8EAAoD;AAEpD,0DAAsD;AAA7C,oGAAA,IAAI,OAAA;AAAE,oGAAA,IAAI,OAAA;AACnB,wFAA8D;AAC9D,mFAAyD;AACzD,kEAAuC;AACvC,+EAAqD;AACrD,kEAAwC;AACxC,qEAA2C;AAC3C,qEAA2C;AAC3C,8EAAoD;AACpD,gFAAsD;AACtD,qDAAqD;AACrD,6EAAmD;AACnD,6DAA6D;AAC7D,mBAAU,CAAC,0BAA0B,GAAG,KAAK,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { FlowVersion, FlowVersionId } from "../flows/flow-version";
|
|
|
5
5
|
import { ProjectId } from "../project/project";
|
|
6
6
|
export declare enum EngineOperationType {
|
|
7
7
|
EXECUTE_ACTION = "EXECUTE_ACTION",
|
|
8
|
+
EXECUTE_CODE = "EXECUTE_CODE",
|
|
8
9
|
EXECUTE_FLOW = "EXECUTE_FLOW",
|
|
9
10
|
EXECUTE_PROPERTY = "EXECUTE_PROPERTY",
|
|
10
11
|
EXECUTE_TRIGGER_HOOK = "EXECUTE_TRIGGER_HOOK"
|
|
@@ -15,7 +16,7 @@ export declare enum TriggerHookType {
|
|
|
15
16
|
RUN = "RUN",
|
|
16
17
|
TEST = "TEST"
|
|
17
18
|
}
|
|
18
|
-
export declare type EngineOperation = ExecuteActionOperation | ExecuteFlowOperation | ExecutePropsOptions | ExecuteTriggerOperation<TriggerHookType>;
|
|
19
|
+
export declare type EngineOperation = ExecuteActionOperation | ExecuteCodeOperation | ExecuteFlowOperation | ExecutePropsOptions | ExecuteTriggerOperation<TriggerHookType>;
|
|
19
20
|
export declare type ExecuteActionOperation = {
|
|
20
21
|
actionName: string;
|
|
21
22
|
pieceName: string;
|
|
@@ -26,6 +27,12 @@ export declare type ExecuteActionOperation = {
|
|
|
26
27
|
workerToken?: string;
|
|
27
28
|
apiUrl?: string;
|
|
28
29
|
};
|
|
30
|
+
export declare type ExecuteCodeOperation = {
|
|
31
|
+
codeBase64: string;
|
|
32
|
+
testExecutionContext: Record<string, unknown>;
|
|
33
|
+
input: Record<string, unknown>;
|
|
34
|
+
projectId: ProjectId;
|
|
35
|
+
};
|
|
29
36
|
export interface ExecutePropsOptions {
|
|
30
37
|
pieceName: string;
|
|
31
38
|
pieceVersion: string;
|
|
@@ -4,6 +4,7 @@ exports.EngineResponseStatus = exports.TriggerHookType = exports.EngineOperation
|
|
|
4
4
|
var EngineOperationType;
|
|
5
5
|
(function (EngineOperationType) {
|
|
6
6
|
EngineOperationType["EXECUTE_ACTION"] = "EXECUTE_ACTION";
|
|
7
|
+
EngineOperationType["EXECUTE_CODE"] = "EXECUTE_CODE";
|
|
7
8
|
EngineOperationType["EXECUTE_FLOW"] = "EXECUTE_FLOW";
|
|
8
9
|
EngineOperationType["EXECUTE_PROPERTY"] = "EXECUTE_PROPERTY";
|
|
9
10
|
EngineOperationType["EXECUTE_TRIGGER_HOOK"] = "EXECUTE_TRIGGER_HOOK";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-operation.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/engine-operation.ts"],"names":[],"mappings":";;;AAMA,IAAY,
|
|
1
|
+
{"version":3,"file":"engine-operation.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/engine-operation.ts"],"names":[],"mappings":";;;AAMA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC3B,wDAAiC,CAAA;IACjC,oDAA6B,CAAA;IAC7B,oDAA6B,CAAA;IAC7B,4DAAqC,CAAA;IACrC,oEAA6C,CAAA;AACjD,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,4CAAyB,CAAA;IACzB,8BAAW,CAAA;IACX,gCAAa,CAAA;AACjB,CAAC,EALW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAK1B;AA+FA,CAAC;AAmCF,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,iCAAS,CAAA;IACT,uCAAe,CAAA;IACf,2CAAmB,CAAA;AACvB,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
import { Static } from "@sinclair/typebox";
|
|
1
2
|
export declare const CreateStepRunRequestBody: import("@sinclair/typebox").TObject<{
|
|
2
3
|
flowVersionId: import("@sinclair/typebox").TString<string>;
|
|
3
4
|
stepName: import("@sinclair/typebox").TString<string>;
|
|
4
5
|
}>;
|
|
6
|
+
export declare const StepRunResponse: import("@sinclair/typebox").TObject<{
|
|
7
|
+
success: import("@sinclair/typebox").TBoolean;
|
|
8
|
+
output: import("@sinclair/typebox").TUnknown;
|
|
9
|
+
standardError: import("@sinclair/typebox").TString<string>;
|
|
10
|
+
standardOutput: import("@sinclair/typebox").TString<string>;
|
|
11
|
+
}>;
|
|
12
|
+
export declare type StepRunResponse = Static<typeof StepRunResponse>;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateStepRunRequestBody = void 0;
|
|
3
|
+
exports.StepRunResponse = exports.CreateStepRunRequestBody = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
exports.CreateStepRunRequestBody = typebox_1.Type.Object({
|
|
6
6
|
flowVersionId: typebox_1.Type.String(),
|
|
7
7
|
stepName: typebox_1.Type.String(),
|
|
8
8
|
});
|
|
9
|
+
exports.StepRunResponse = typebox_1.Type.Object({
|
|
10
|
+
success: typebox_1.Type.Boolean(),
|
|
11
|
+
output: typebox_1.Type.Unknown(),
|
|
12
|
+
standardError: typebox_1.Type.String(),
|
|
13
|
+
standardOutput: typebox_1.Type.String(),
|
|
14
|
+
});
|
|
9
15
|
//# sourceMappingURL=test-step-request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-step-request.js","sourceRoot":"","sources":["../../../../../../../../packages/shared/src/lib/flows/step-run/dto/test-step-request.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"test-step-request.js","sourceRoot":"","sources":["../../../../../../../../packages/shared/src/lib/flows/step-run/dto/test-step-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAEpC,QAAA,wBAAwB,GAAG,cAAI,CAAC,MAAM,CAAC;IAChD,aAAa,EAAE,cAAI,CAAC,MAAM,EAAE;IAC5B,QAAQ,EAAE,cAAI,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAA;AAEW,QAAA,eAAe,GAAG,cAAI,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,cAAI,CAAC,OAAO,EAAE;IACvB,MAAM,EAAE,cAAI,CAAC,OAAO,EAAE;IACtB,aAAa,EAAE,cAAI,CAAC,MAAM,EAAE;IAC5B,cAAc,EAAE,cAAI,CAAC,MAAM,EAAE;CAChC,CAAC,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface CodeExecutionResult {
|
|
2
|
-
verdict: CodeRunStatus;
|
|
3
|
-
timeInSeconds: number;
|
|
4
|
-
standardOutput: string;
|
|
5
|
-
standardError: string;
|
|
6
|
-
output: unknown;
|
|
7
|
-
}
|
|
8
|
-
export declare enum CodeRunStatus {
|
|
9
|
-
OK = "OK",
|
|
10
|
-
RUNTIME_ERROR = "RUNTIME_ERROR",
|
|
11
|
-
TIMEOUT = "TIMEOUT"
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CodeRunStatus = void 0;
|
|
4
|
-
var CodeRunStatus;
|
|
5
|
-
(function (CodeRunStatus) {
|
|
6
|
-
CodeRunStatus["OK"] = "OK";
|
|
7
|
-
CodeRunStatus["RUNTIME_ERROR"] = "RUNTIME_ERROR";
|
|
8
|
-
CodeRunStatus["TIMEOUT"] = "TIMEOUT";
|
|
9
|
-
})(CodeRunStatus = exports.CodeRunStatus || (exports.CodeRunStatus = {}));
|
|
10
|
-
//# sourceMappingURL=code-execution-result.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-execution-result.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/workers/code-worker/code-execution-result.ts"],"names":[],"mappings":";;;AASA,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,0BAAS,CAAA;IACT,gDAA+B,CAAA;IAC/B,oCAAmB,CAAA;AACvB,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB"}
|