@activepieces/shared 0.3.39 → 0.3.41
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/lib/common/activepieces-error.d.ts +4 -2
- package/src/lib/common/activepieces-error.js +1 -0
- package/src/lib/common/activepieces-error.js.map +1 -1
- package/src/lib/flow-run/execution/execution-output.d.ts +2 -1
- package/src/lib/flow-run/execution/execution-output.js.map +1 -1
- package/src/lib/flow-run/execution/step-output.d.ts +6 -1
- package/src/lib/flows/dto/flow-template-request.d.ts +1 -0
- package/src/lib/flows/dto/flow-template-request.js +1 -0
- package/src/lib/flows/dto/flow-template-request.js.map +1 -1
package/package.json
CHANGED
|
@@ -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 = AppConnectionNotFoundErrorParams | ConfigNotFoundErrorParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowInstanceNotFoundErrorParams | FlowNotFoundErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | ProjectNotFoundErrorParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TaskQuotaExceededErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams;
|
|
12
|
+
declare type ErrorParams = AppConnectionNotFoundErrorParams | ConfigNotFoundErrorParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowInstanceNotFoundErrorParams | FlowNotFoundErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InvalidApiKeyParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | ProjectNotFoundErrorParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TaskQuotaExceededErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams;
|
|
13
13
|
export interface BaseErrorParams<T, V> {
|
|
14
14
|
code: T;
|
|
15
15
|
params: V;
|
|
@@ -110,6 +110,7 @@ export declare type TriggerDisableErrorParams = BaseErrorParams<ErrorCode.TRIGGE
|
|
|
110
110
|
flowVersionId?: FlowVersionId;
|
|
111
111
|
}>;
|
|
112
112
|
export declare type PauseMetadataMissingErrorParams = BaseErrorParams<ErrorCode.PAUSE_METADATA_MISSING, Record<string, never>>;
|
|
113
|
+
export declare type InvalidApiKeyParams = BaseErrorParams<ErrorCode.INVALID_API_KEY, Record<string, never>>;
|
|
113
114
|
export declare enum ErrorCode {
|
|
114
115
|
CONFIG_NOT_FOUND = "CONFIG_NOT_FOUND",
|
|
115
116
|
EXISTING_USER = "EXISTING_USER",
|
|
@@ -141,6 +142,7 @@ export declare enum ErrorCode {
|
|
|
141
142
|
EXECUTION_TIMEOUT = "EXECUTION_TIMEOUT",
|
|
142
143
|
TRIGGER_ENABLE = "TRIGGER_ENABLE",
|
|
143
144
|
TRIGGER_DISABLE = "TRIGGER_DISABLE",
|
|
144
|
-
PAUSE_METADATA_MISSING = "PAUSE_METADATA_MISSING"
|
|
145
|
+
PAUSE_METADATA_MISSING = "PAUSE_METADATA_MISSING",
|
|
146
|
+
INVALID_API_KEY = "INVALID_API_KEY"
|
|
145
147
|
}
|
|
146
148
|
export {};
|
|
@@ -41,5 +41,6 @@ var ErrorCode;
|
|
|
41
41
|
ErrorCode["TRIGGER_ENABLE"] = "TRIGGER_ENABLE";
|
|
42
42
|
ErrorCode["TRIGGER_DISABLE"] = "TRIGGER_DISABLE";
|
|
43
43
|
ErrorCode["PAUSE_METADATA_MISSING"] = "PAUSE_METADATA_MISSING";
|
|
44
|
+
ErrorCode["INVALID_API_KEY"] = "INVALID_API_KEY";
|
|
44
45
|
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
|
|
45
46
|
//# 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;AAsPD,IAAY,SAiCX;AAjCD,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,oDAAuC,CAAA;IACvC,wDAA2C,CAAA;IAC3C,0EAA6D,CAAA;IAC7D,wDAA2C,CAAA;IAC3C,wDAA2C,CAAA;IAC3C,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,8CAAiC,CAAA;IACjC,wDAA2C,CAAA;IAC3C,kDAAqC,CAAA;IACrC,sCAAyB,CAAA;IACzB,oDAAuC,CAAA;IACvC,8CAAiC,CAAA;IACjC,gDAAmC,CAAA;IACnC,8DAAiD,CAAA;IACjD,gDAAmC,CAAA;AACrC,CAAC,EAjCW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAiCpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActionType } from '../../flows/actions/action';
|
|
2
2
|
import { ExecutionState } from './execution-state';
|
|
3
|
+
import { StopResponse } from './step-output';
|
|
3
4
|
export declare enum ExecutionOutputStatus {
|
|
4
5
|
FAILED = "FAILED",
|
|
5
6
|
INTERNAL_ERROR = "INTERNAL_ERROR",
|
|
@@ -50,7 +51,7 @@ export declare type PauseExecutionOutput = BaseExecutionOutput<ExecutionOutputSt
|
|
|
50
51
|
};
|
|
51
52
|
export declare type FinishExecutionOutput = BaseExecutionOutput<Exclude<ExecutionOutputStatus, ExecutionOutputStatus.PAUSED | ExecutionOutputStatus.STOPPED>>;
|
|
52
53
|
export declare type StopExecutionOutput = BaseExecutionOutput<ExecutionOutputStatus.STOPPED> & {
|
|
53
|
-
stopResponse?:
|
|
54
|
+
stopResponse?: StopResponse;
|
|
54
55
|
};
|
|
55
56
|
export declare type ExecutionOutput = FinishExecutionOutput | PauseExecutionOutput | StopExecutionOutput;
|
|
56
57
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-output.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flow-run/execution/execution-output.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"execution-output.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flow-run/execution/execution-output.ts"],"names":[],"mappings":";;;AAIA,IAAY,qBAQX;AARD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,0DAAiC,CAAA;IACjC,0CAAiB,CAAA;IACjB,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;IACnB,gDAAuB,CAAA;IACvB,4CAAmB,CAAA;AACrB,CAAC,EARW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAQhC;AAyCD,IAAY,SAEX;AAFD,WAAY,SAAS;IACnB,4BAAe,CAAA;AACjB,CAAC,EAFW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAEpB"}
|
|
@@ -7,6 +7,11 @@ export declare enum StepOutputStatus {
|
|
|
7
7
|
STOPPED = "STOPPED",
|
|
8
8
|
SUCCEEDED = "SUCCEEDED"
|
|
9
9
|
}
|
|
10
|
+
export declare type StopResponse = {
|
|
11
|
+
status?: number;
|
|
12
|
+
body?: unknown;
|
|
13
|
+
headers?: Record<string, string>;
|
|
14
|
+
};
|
|
10
15
|
export declare type StepOutput<T extends ActionType = ActionType, O = any> = {
|
|
11
16
|
type: T;
|
|
12
17
|
status: StepOutputStatus;
|
|
@@ -16,7 +21,7 @@ export declare type StepOutput<T extends ActionType = ActionType, O = any> = {
|
|
|
16
21
|
errorMessage?: unknown;
|
|
17
22
|
standardOutput?: unknown;
|
|
18
23
|
pauseMetadata?: PauseMetadata;
|
|
19
|
-
stopResponse?:
|
|
24
|
+
stopResponse?: StopResponse;
|
|
20
25
|
};
|
|
21
26
|
declare type LoopOnItemsOutput = {
|
|
22
27
|
item: unknown;
|
|
@@ -2,6 +2,7 @@ import { Static } from "@sinclair/typebox";
|
|
|
2
2
|
export declare const FlowTemplate: import("@sinclair/typebox").TObject<{
|
|
3
3
|
name: import("@sinclair/typebox").TString<string>;
|
|
4
4
|
description: import("@sinclair/typebox").TString<string>;
|
|
5
|
+
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
5
6
|
pieces: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
6
7
|
template: import("@sinclair/typebox").TUnknown;
|
|
7
8
|
}>;
|
|
@@ -5,6 +5,7 @@ const typebox_1 = require("@sinclair/typebox");
|
|
|
5
5
|
exports.FlowTemplate = typebox_1.Type.Object({
|
|
6
6
|
name: typebox_1.Type.String(),
|
|
7
7
|
description: typebox_1.Type.String(),
|
|
8
|
+
tags: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
8
9
|
pieces: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
9
10
|
template: typebox_1.Type.Unknown(),
|
|
10
11
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-template-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/dto/flow-template-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAEpC,QAAA,YAAY,GAAG,cAAI,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE;IAC1B,MAAM,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IACjC,QAAQ,EAAE,cAAI,CAAC,OAAO,EAAE;CAC3B,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"flow-template-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/dto/flow-template-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAEpC,QAAA,YAAY,GAAG,cAAI,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE;IAC1B,IAAI,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IAC/B,MAAM,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IACjC,QAAQ,EAAE,cAAI,CAAC,OAAO,EAAE;CAC3B,CAAC,CAAA"}
|