@activepieces/shared 0.3.18 → 0.3.19
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 -2
- package/src/index.js +2 -3
- package/src/index.js.map +1 -1
- package/src/lib/common/activepieces-error.d.ts +5 -3
- package/src/lib/common/activepieces-error.js +1 -0
- package/src/lib/common/activepieces-error.js.map +1 -1
- package/src/lib/engine/engine-operation.d.ts +27 -6
- package/src/lib/engine/engine-operation.js +7 -1
- package/src/lib/engine/engine-operation.js.map +1 -1
- package/src/lib/workers/code-worker/code-execution-result.d.ts +5 -1
- package/src/lib/workers/code-worker/code-execution-result.js +7 -0
- package/src/lib/workers/code-worker/code-execution-result.js.map +1 -1
- package/src/lib/workers/code-worker/code-run-status.d.ts +0 -8
- package/src/lib/workers/code-worker/code-run-status.js +0 -13
- package/src/lib/workers/code-worker/code-run-status.js.map +0 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -21,8 +21,7 @@ export * from "./lib/instance";
|
|
|
21
21
|
export * from "./lib/pieces";
|
|
22
22
|
export * from "./lib/store-entry/dto/store-entry-request";
|
|
23
23
|
export * from "./lib/webhook";
|
|
24
|
-
export
|
|
25
|
-
export { CodeExecutionResult } from "./lib/workers/code-worker/code-execution-result";
|
|
24
|
+
export * from "./lib/workers/code-worker/code-execution-result";
|
|
26
25
|
export { ExecuteCodeRequest } from './lib/code/dto/code-request';
|
|
27
26
|
export { AuthenticationResponse } from './lib/authentication/dto/authentication-response';
|
|
28
27
|
export { SignUpRequest } from './lib/authentication/dto/sign-up-request';
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApId = exports.apId = exports.ListFlowsRequest = exports.ExecutionState = exports.RunEnvironment = exports.FlowVersionState = exports.TriggerType = exports.WebhookTrigger = exports.PieceTrigger = exports.PieceTriggerSettings = exports.EmptyTrigger = exports.Trigger = exports.CreateFlowRunRequest = exports.CodeActionSettings = exports.ActionType = exports.Action = exports.LoopOnItemsActionSettings = exports.PieceActionSettings = exports.PrincipalType = exports.SignInRequest = exports.SignUpRequest = exports.ExecuteCodeRequest = exports.
|
|
3
|
+
exports.ApId = exports.apId = exports.ListFlowsRequest = exports.ExecutionState = exports.RunEnvironment = exports.FlowVersionState = exports.TriggerType = exports.WebhookTrigger = exports.PieceTrigger = exports.PieceTriggerSettings = exports.EmptyTrigger = exports.Trigger = exports.CreateFlowRunRequest = exports.CodeActionSettings = exports.ActionType = exports.Action = exports.LoopOnItemsActionSettings = exports.PieceActionSettings = exports.PrincipalType = exports.SignInRequest = exports.SignUpRequest = exports.ExecuteCodeRequest = exports.StepOutputStatus = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
tslib_1.__exportStar(require("./lib/flows/actions/action"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./lib/app-connection/app-connection"), exports);
|
|
@@ -26,8 +26,7 @@ tslib_1.__exportStar(require("./lib/instance"), exports);
|
|
|
26
26
|
tslib_1.__exportStar(require("./lib/pieces"), exports);
|
|
27
27
|
tslib_1.__exportStar(require("./lib/store-entry/dto/store-entry-request"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./lib/webhook"), exports);
|
|
29
|
-
|
|
30
|
-
Object.defineProperty(exports, "CodeRunStatus", { enumerable: true, get: function () { return code_run_status_1.CodeRunStatus; } });
|
|
29
|
+
tslib_1.__exportStar(require("./lib/workers/code-worker/code-execution-result"), exports);
|
|
31
30
|
var code_request_1 = require("./lib/code/dto/code-request");
|
|
32
31
|
Object.defineProperty(exports, "ExecuteCodeRequest", { enumerable: true, get: function () { return code_request_1.ExecuteCodeRequest; } });
|
|
33
32
|
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,+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;AAE9B,
|
|
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,+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;AAE9B,0FAAgE;AAChE,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,yEAAsE;AAA7D,sHAAA,gBAAgB,OAAA;AACzB,8EAAoD;AAGpD,0DAAsD;AAA7C,oGAAA,IAAI,OAAA;AAAE,oGAAA,IAAI,OAAA;AACnB,wFAA8D;AAC9D,mFAAyD;AAEzD,8EAAmD;AACnD,kEAAwC;AACxC,qEAA2C;AAC3C,qEAA2C;AAC3C,8EAAoD;AACpD,qDAAqD;AACrD,6DAA6D;AAC7D,mBAAU,CAAC,0BAA0B,GAAG,KAAK,CAAC"}
|
|
@@ -9,7 +9,7 @@ export declare class ActivepiecesError extends Error {
|
|
|
9
9
|
error: ErrorParams;
|
|
10
10
|
constructor(error: ErrorParams, message?: string);
|
|
11
11
|
}
|
|
12
|
-
declare type ErrorParams = ConfigNotFoundErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | FlowInstanceNotFoundErrorParams | InvalidBearerTokenParams | InvalidCredentialsErrorParams | JobRemovalFailureErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | StepNotFoundErrorParams | AppConnectionNotFoundErrorParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidJwtTokenErrorParams | TaskQuotaExeceededErrorParams | TriggerFailedErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | OpenAiFailedErrorParams | TestTriggerFailedErrorParams | FlowOperationErrorParams | EntityNotFoundErrorParams | ValidationErrorParams;
|
|
12
|
+
declare type ErrorParams = ConfigNotFoundErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | FlowInstanceNotFoundErrorParams | InvalidBearerTokenParams | InvalidCredentialsErrorParams | JobRemovalFailureErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | StepNotFoundErrorParams | AppConnectionNotFoundErrorParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidJwtTokenErrorParams | TaskQuotaExeceededErrorParams | TriggerFailedErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | OpenAiFailedErrorParams | TestTriggerFailedErrorParams | FlowOperationErrorParams | EntityNotFoundErrorParams | ValidationErrorParams | ExecutionTimeoutErrorParams;
|
|
13
13
|
export interface BaseErrorParams<T, V> {
|
|
14
14
|
code: T;
|
|
15
15
|
params: V;
|
|
@@ -68,7 +68,7 @@ export declare type TriggerFailedErrorParams = BaseErrorParams<ErrorCode.TRIGGER
|
|
|
68
68
|
pieceName: string;
|
|
69
69
|
pieceVersion: string;
|
|
70
70
|
triggerName: string;
|
|
71
|
-
error:
|
|
71
|
+
error: string | undefined;
|
|
72
72
|
}>;
|
|
73
73
|
export declare type ConfigNotFoundErrorParams = BaseErrorParams<ErrorCode.CONFIG_NOT_FOUND, {
|
|
74
74
|
pieceName: string;
|
|
@@ -96,6 +96,7 @@ export declare type TestTriggerFailedErrorParams = BaseErrorParams<ErrorCode.TES
|
|
|
96
96
|
export declare type EntityNotFoundErrorParams = BaseErrorParams<ErrorCode.ENTITY_NOT_FOUND, {
|
|
97
97
|
message: string;
|
|
98
98
|
}>;
|
|
99
|
+
export declare type ExecutionTimeoutErrorParams = BaseErrorParams<ErrorCode.EXECUTION_TIMEOUT, Record<string, never>>;
|
|
99
100
|
export declare type ValidationErrorParams = BaseErrorParams<ErrorCode.VALIDATION, {
|
|
100
101
|
message: string;
|
|
101
102
|
}>;
|
|
@@ -125,6 +126,7 @@ export declare enum ErrorCode {
|
|
|
125
126
|
OPENAI_FAILED = "OPENAI_FAILED",
|
|
126
127
|
TEST_TRIGGER_FAILED = "TEST_TRIGGER_FAILED",
|
|
127
128
|
ENTITY_NOT_FOUND = "ENTITY_NOT_FOUND",
|
|
128
|
-
VALIDATION = "VALIDATION"
|
|
129
|
+
VALIDATION = "VALIDATION",
|
|
130
|
+
EXECUTION_TIMEOUT = "EXECUTION_TIMEOUT"
|
|
129
131
|
}
|
|
130
132
|
export {};
|
|
@@ -36,5 +36,6 @@ var ErrorCode;
|
|
|
36
36
|
ErrorCode["TEST_TRIGGER_FAILED"] = "TEST_TRIGGER_FAILED";
|
|
37
37
|
ErrorCode["ENTITY_NOT_FOUND"] = "ENTITY_NOT_FOUND";
|
|
38
38
|
ErrorCode["VALIDATION"] = "VALIDATION";
|
|
39
|
+
ErrorCode["EXECUTION_TIMEOUT"] = "EXECUTION_TIMEOUT";
|
|
39
40
|
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
|
|
40
41
|
//# sourceMappingURL=activepieces-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/activepieces-error.ts"],"names":[],"mappings":";;;AAQA,MAAa,iBAAkB,SAAQ,KAAK;IAC1C,YAAmB,KAAkB,EAAE,OAAgB;QACrD,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QADnC,UAAK,GAAL,KAAK,CAAa;IAErC,CAAC;CACF;AAJD,8CAIC;
|
|
1
|
+
{"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/activepieces-error.ts"],"names":[],"mappings":";;;AAQA,MAAa,iBAAkB,SAAQ,KAAK;IAC1C,YAAmB,KAAkB,EAAE,OAAgB;QACrD,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QADnC,UAAK,GAAL,KAAK,CAAa;IAErC,CAAC;CACF;AAJD,8CAIC;AAmND,IAAY,SA4BX;AA5BD,WAAY,SAAS;IACnB,kDAAqC,CAAA;IACrC,4CAA+B,CAAA;IAC/B,kEAAqD,CAAA;IACrD,8CAAiC,CAAA;IACjC,8CAAiC,CAAA;IACjC,sDAAyC,CAAA;IACzC,8DAAiD,CAAA;IACjD,2DAA8C,CAAA;IAC9C,0DAA6C,CAAA;IAC7C,wDAA2C,CAAA;IAC3C,wDAA2C,CAAA;IAC3C,gDAAmC,CAAA;IACnC,gEAAmD,CAAA;IACnD,8CAAiC,CAAA;IACjC,gEAAmD,CAAA;IACnD,4CAA+B,CAAA;IAC/B,wDAA2C,CAAA;IAC3C,0EAA6D,CAAA;IAC7D,wDAA2C,CAAA;IAC3C,wDAA2C,CAAA;IAC3C,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,4CAA+B,CAAA;IAC/B,wDAA2C,CAAA;IAC3C,kDAAqC,CAAA;IACrC,sCAAyB,CAAA;IACzB,oDAAuC,CAAA;AACzC,CAAC,EA5BW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QA4BpB"}
|
|
@@ -12,7 +12,7 @@ export declare enum TriggerHookType {
|
|
|
12
12
|
RUN = "RUN",
|
|
13
13
|
TEST = "TEST"
|
|
14
14
|
}
|
|
15
|
-
export declare type EngineOperation = ExecuteActionOperation | ExecuteFlowOperation | ExecutePropsOptions | ExecuteTriggerOperation
|
|
15
|
+
export declare type EngineOperation = ExecuteActionOperation | ExecuteFlowOperation | ExecutePropsOptions | ExecuteTriggerOperation<TriggerHookType>;
|
|
16
16
|
export declare type ExecuteActionOperation = {
|
|
17
17
|
actionName: string;
|
|
18
18
|
pieceName: string;
|
|
@@ -40,11 +40,11 @@ export interface ExecuteFlowOperation {
|
|
|
40
40
|
workerToken?: string;
|
|
41
41
|
apiUrl?: string;
|
|
42
42
|
}
|
|
43
|
-
export interface ExecuteTriggerOperation {
|
|
44
|
-
hookType:
|
|
43
|
+
export interface ExecuteTriggerOperation<HT extends TriggerHookType> {
|
|
44
|
+
hookType: HT;
|
|
45
45
|
flowVersion: FlowVersion;
|
|
46
46
|
webhookUrl: string;
|
|
47
|
-
triggerPayload?:
|
|
47
|
+
triggerPayload?: TriggerPayload;
|
|
48
48
|
projectId: ProjectId;
|
|
49
49
|
workerToken?: string;
|
|
50
50
|
apiUrl?: string;
|
|
@@ -52,6 +52,11 @@ export interface ExecuteTriggerOperation {
|
|
|
52
52
|
appWebhookUrl?: string;
|
|
53
53
|
webhookSecret?: string;
|
|
54
54
|
}
|
|
55
|
+
export declare type TriggerPayload = Record<string, never> | {
|
|
56
|
+
body: any;
|
|
57
|
+
headers: Record<string, string>;
|
|
58
|
+
queryParams: Record<string, string>;
|
|
59
|
+
};
|
|
55
60
|
export interface EventPayload {
|
|
56
61
|
body: any;
|
|
57
62
|
rawBody?: any;
|
|
@@ -71,16 +76,32 @@ export interface AppEventListener {
|
|
|
71
76
|
events: string[];
|
|
72
77
|
identifierValue: string;
|
|
73
78
|
}
|
|
74
|
-
|
|
79
|
+
interface ExecuteTestOrRunTriggerResponse {
|
|
75
80
|
success: boolean;
|
|
76
81
|
message?: string;
|
|
77
82
|
output: unknown[];
|
|
78
83
|
}
|
|
79
|
-
|
|
84
|
+
interface ExecuteOnEnableTriggerResponse {
|
|
80
85
|
listeners: AppEventListener[];
|
|
81
86
|
scheduleOptions: ScheduleOptions;
|
|
82
87
|
}
|
|
88
|
+
export declare type ExecuteTriggerResponse<H extends TriggerHookType> = H extends TriggerHookType.RUN ? ExecuteTestOrRunTriggerResponse : H extends TriggerHookType.TEST ? ExecuteTestOrRunTriggerResponse : H extends TriggerHookType.ON_DISABLE ? Record<string, never> : ExecuteOnEnableTriggerResponse;
|
|
89
|
+
export declare type ExecuteActionResponse = {
|
|
90
|
+
success: boolean;
|
|
91
|
+
output: unknown;
|
|
92
|
+
message?: string;
|
|
93
|
+
};
|
|
83
94
|
export interface ScheduleOptions {
|
|
84
95
|
cronExpression: string;
|
|
85
96
|
timezone?: string;
|
|
86
97
|
}
|
|
98
|
+
export declare type EngineResponse<T> = {
|
|
99
|
+
status: EngineResponseStatus;
|
|
100
|
+
response: T;
|
|
101
|
+
};
|
|
102
|
+
export declare enum EngineResponseStatus {
|
|
103
|
+
OK = "OK",
|
|
104
|
+
ERROR = "ERROR",
|
|
105
|
+
TIMEOUT = "TIMEOUT"
|
|
106
|
+
}
|
|
107
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TriggerHookType = exports.EngineOperationType = void 0;
|
|
3
|
+
exports.EngineResponseStatus = exports.TriggerHookType = exports.EngineOperationType = void 0;
|
|
4
4
|
var EngineOperationType;
|
|
5
5
|
(function (EngineOperationType) {
|
|
6
6
|
EngineOperationType["EXECUTE_ACTION"] = "EXECUTE_ACTION";
|
|
@@ -16,4 +16,10 @@ var TriggerHookType;
|
|
|
16
16
|
TriggerHookType["TEST"] = "TEST";
|
|
17
17
|
})(TriggerHookType = exports.TriggerHookType || (exports.TriggerHookType = {}));
|
|
18
18
|
;
|
|
19
|
+
var EngineResponseStatus;
|
|
20
|
+
(function (EngineResponseStatus) {
|
|
21
|
+
EngineResponseStatus["OK"] = "OK";
|
|
22
|
+
EngineResponseStatus["ERROR"] = "ERROR";
|
|
23
|
+
EngineResponseStatus["TIMEOUT"] = "TIMEOUT";
|
|
24
|
+
})(EngineResponseStatus = exports.EngineResponseStatus || (exports.EngineResponseStatus = {}));
|
|
19
25
|
//# sourceMappingURL=engine-operation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-operation.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/engine-operation.ts"],"names":[],"mappings":";;;AAGA,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,wDAAiC,CAAA;IACjC,oDAA6B,CAAA;IAC7B,4DAAqC,CAAA;IACrC,oEAA6C,CAAA;AACjD,CAAC,EALW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAK9B;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;
|
|
1
|
+
{"version":3,"file":"engine-operation.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/engine-operation.ts"],"names":[],"mappings":";;;AAGA,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,wDAAiC,CAAA;IACjC,oDAA6B,CAAA;IAC7B,4DAAqC,CAAA;IACrC,oEAA6C,CAAA;AACjD,CAAC,EALW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAK9B;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;AA6EA,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,3 @@
|
|
|
1
|
-
import { CodeRunStatus } from "./code-run-status";
|
|
2
1
|
export interface CodeExecutionResult {
|
|
3
2
|
verdict: CodeRunStatus;
|
|
4
3
|
timeInSeconds: number;
|
|
@@ -6,3 +5,8 @@ export interface CodeExecutionResult {
|
|
|
6
5
|
standardError: string;
|
|
7
6
|
output: unknown;
|
|
8
7
|
}
|
|
8
|
+
export declare enum CodeRunStatus {
|
|
9
|
+
OK = "OK",
|
|
10
|
+
RUNTIME_ERROR = "RUNTIME_ERROR",
|
|
11
|
+
TIMEOUT = "TIMEOUT"
|
|
12
|
+
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
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 = {}));
|
|
3
10
|
//# sourceMappingURL=code-execution-result.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-execution-result.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/workers/code-worker/code-execution-result.ts"],"names":[],"mappings":""}
|
|
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"}
|
|
@@ -1,13 +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["CRASHED"] = "CRASHED";
|
|
9
|
-
CodeRunStatus["TIMEOUT"] = "TIMEOUT";
|
|
10
|
-
CodeRunStatus["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
11
|
-
CodeRunStatus["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
12
|
-
})(CodeRunStatus = exports.CodeRunStatus || (exports.CodeRunStatus = {}));
|
|
13
|
-
//# sourceMappingURL=code-run-status.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-run-status.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/workers/code-worker/code-run-status.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAOX;AAPD,WAAY,aAAa;IACrB,0BAAS,CAAA;IACT,gDAA+B,CAAA;IAC/B,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,kDAAiC,CAAA;IACjC,gDAA+B,CAAA;AACnC,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB"}
|