@activepieces/shared 0.0.1 → 0.0.2
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 +3 -6
- package/src/index.js +6 -12
- package/src/index.js.map +1 -1
- package/src/lib/app-connection/app-connection.d.ts +4 -2
- package/src/lib/app-connection/dto/upsert-app-connection-request.d.ts +4 -2
- package/src/lib/app-connection/dto/upsert-app-connection-request.js +2 -1
- package/src/lib/app-connection/dto/upsert-app-connection-request.js.map +1 -1
- package/src/lib/collections/collection.d.ts +8 -2
- package/src/lib/collections/collection.js +4 -0
- package/src/lib/collections/collection.js.map +1 -1
- package/src/lib/collections/dto/list-collections-request.d.ts +0 -1
- package/src/lib/collections/dto/list-collections-request.js +0 -1
- package/src/lib/collections/dto/list-collections-request.js.map +1 -1
- package/src/lib/collections/dto/update-collection-request.d.ts +1 -46
- package/src/lib/collections/dto/update-collection-request.js +1 -30
- package/src/lib/collections/dto/update-collection-request.js.map +1 -1
- package/src/lib/common/activepieces-error.d.ts +5 -7
- package/src/lib/common/activepieces-error.js +2 -1
- package/src/lib/common/activepieces-error.js.map +1 -1
- package/src/lib/engine/engine-operation.d.ts +33 -6
- package/src/lib/engine/engine-operation.js +2 -0
- package/src/lib/engine/engine-operation.js.map +1 -1
- package/src/lib/flow-run/create-flow-run-request.d.ts +1 -1
- package/src/lib/flow-run/create-flow-run-request.js +2 -1
- package/src/lib/flow-run/create-flow-run-request.js.map +1 -1
- package/src/lib/flow-run/execution/execution-state.d.ts +0 -2
- package/src/lib/flow-run/execution/execution-state.js +0 -18
- package/src/lib/flow-run/execution/execution-state.js.map +1 -1
- package/src/lib/flow-run/execution/step-output.d.ts +10 -6
- package/src/lib/flow-run/execution/step-output.js +4 -1
- package/src/lib/flow-run/execution/step-output.js.map +1 -1
- package/src/lib/flow-run/flow-run.d.ts +0 -2
- package/src/lib/flow-run/flow-run.js.map +1 -1
- package/src/lib/flows/actions/action.d.ts +91 -19
- package/src/lib/flows/actions/action.js +67 -11
- package/src/lib/flows/actions/action.js.map +1 -1
- package/src/lib/flows/flow-helper.d.ts +3 -1
- package/src/lib/flows/flow-helper.js +111 -28
- package/src/lib/flows/flow-helper.js.map +1 -1
- package/src/lib/flows/flow-operations.d.ts +72 -31
- package/src/lib/flows/flow-operations.js +12 -12
- package/src/lib/flows/flow-operations.js.map +1 -1
- package/src/lib/flows/triggers/trigger.d.ts +6 -4
- package/src/lib/flows/triggers/trigger.js +8 -2
- package/src/lib/flows/triggers/trigger.js.map +1 -1
- package/src/lib/instance/model/instance.d.ts +0 -2
- package/src/lib/instance/model/instance.js.map +1 -1
- package/src/lib/pieces/dto/piece-option-request.d.ts +1 -1
- package/src/lib/pieces/dto/piece-option-request.js +1 -1
- package/src/lib/pieces/dto/piece-option-request.js.map +1 -1
- package/src/lib/pieces/model/piece-metadata.d.ts +6 -1
- package/src/lib/collections/collection-version.d.ts +0 -14
- package/src/lib/collections/collection-version.js +0 -9
- package/src/lib/collections/collection-version.js.map +0 -1
- package/src/lib/collections/config.d.ts +0 -24
- package/src/lib/collections/config.js +0 -12
- package/src/lib/collections/config.js.map +0 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export * from "./lib/flows/actions/action";
|
|
1
2
|
export * from "./lib/app-connection/app-connection";
|
|
2
3
|
export * from "./lib/app-connection/dto/read-app-connection-request";
|
|
3
4
|
export * from "./lib/app-connection/dto/upsert-app-connection-request";
|
|
4
|
-
export * from "./lib/collections/config";
|
|
5
5
|
export * from "./lib/common/activepieces-error";
|
|
6
6
|
export * from "./lib/common/telemetry";
|
|
7
7
|
export * from "./lib/engine/engine-operation";
|
|
@@ -10,7 +10,6 @@ export * from "./lib/flow-run/dto/list-flow-runs-request";
|
|
|
10
10
|
export * from "./lib/flow-run/execution/execution-output";
|
|
11
11
|
export * from "./lib/flow-run/execution/step-output";
|
|
12
12
|
export * from "./lib/flows/flow-operations";
|
|
13
|
-
export * from "./lib/collections/config";
|
|
14
13
|
export * from './lib/instance';
|
|
15
14
|
export * from "./lib/app-connection/app-connection";
|
|
16
15
|
export * from "./lib/app-connection/dto/upsert-app-connection-request";
|
|
@@ -23,7 +22,6 @@ export * from "./lib/store-entry/dto/store-entry-request";
|
|
|
23
22
|
export { CodeRunStatus } from "./lib/workers/code-worker/code-run-status";
|
|
24
23
|
export { CodeExecutionResult } from "./lib/workers/code-worker/code-execution-result";
|
|
25
24
|
export { ExecuteCodeRequest } from './lib/code/dto/code-request';
|
|
26
|
-
export { flowHelper } from "./lib/flows/flow-helper";
|
|
27
25
|
export { AuthenticationResponse } from './lib/authentication/dto/authentication-response';
|
|
28
26
|
export { SignUpRequest } from './lib/authentication/dto/sign-up-request';
|
|
29
27
|
export { SignInRequest } from './lib/authentication/dto/sign-in-request';
|
|
@@ -33,13 +31,12 @@ export { CodeAction, PieceAction, LoopOnItemsAction, PieceActionSettings, LoopOn
|
|
|
33
31
|
export { StoreEntry, StoreEntryId } from './lib/store-entry/store-entry';
|
|
34
32
|
export { User, UserStatus, UserId } from './lib/user/user';
|
|
35
33
|
export { CreateFlowRunRequest } from './lib/flow-run/create-flow-run-request';
|
|
36
|
-
export { Trigger, EmptyTrigger, PieceTriggerSettings, ScheduleTriggerSettings, PieceTrigger, ScheduleTrigger, WebhookTrigger, TriggerType } from './lib/flows/triggers/trigger';
|
|
34
|
+
export { TriggerStrategy, Trigger, EmptyTrigger, PieceTriggerSettings, ScheduleTriggerSettings, PieceTrigger, ScheduleTrigger, WebhookTrigger, TriggerType } from './lib/flows/triggers/trigger';
|
|
37
35
|
export { Collection, CollectionId } from './lib/collections/collection';
|
|
38
|
-
export { CollectionVersion, CollectionVersionState, CollectionVersionId } from './lib/collections/collection-version';
|
|
39
36
|
export { FlowVersion, FlowVersionState, FlowVersionId } from './lib/flows/flow-version';
|
|
40
37
|
export { Flow, FlowId } from './lib/flows/flow';
|
|
41
38
|
export { File, FileId } from './lib/file/file';
|
|
42
|
-
export
|
|
39
|
+
export * from './lib/flows/flow-helper';
|
|
43
40
|
export { FlowRun, FlowRunId, RunEnvironment } from './lib/flow-run/flow-run';
|
|
44
41
|
export { ExecutionState } from './lib/flow-run/execution/execution-state';
|
|
45
42
|
export { Project, ProjectId } from './lib/project/project';
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApId = exports.apId = exports.CreateFlowRequest = exports.UpdateCollectionRequest = exports.CreateCollectionRequest = exports.ListFlowsRequest = exports.ListCollectionsRequest = exports.ExecutionState = exports.RunEnvironment = exports.
|
|
3
|
+
exports.ApId = exports.apId = exports.CreateFlowRequest = exports.UpdateCollectionRequest = exports.CreateCollectionRequest = exports.ListFlowsRequest = exports.ListCollectionsRequest = exports.ExecutionState = exports.RunEnvironment = exports.FlowVersionState = exports.Collection = exports.TriggerType = exports.WebhookTrigger = exports.ScheduleTrigger = exports.PieceTrigger = exports.ScheduleTriggerSettings = exports.PieceTriggerSettings = exports.EmptyTrigger = exports.Trigger = exports.TriggerStrategy = exports.CreateFlowRunRequest = exports.UserStatus = exports.CodeActionSettings = exports.ActionType = exports.Action = exports.PieceActionSettings = exports.PrincipalType = exports.SignInRequest = exports.SignUpRequest = exports.ExecuteCodeRequest = exports.CodeRunStatus = exports.StepOutputStatus = exports.StoreOperation = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./lib/flows/actions/action"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./lib/app-connection/app-connection"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./lib/app-connection/dto/read-app-connection-request"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./lib/app-connection/dto/upsert-app-connection-request"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./lib/collections/config"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./lib/common/activepieces-error"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./lib/common/telemetry"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./lib/engine/engine-operation"), exports);
|
|
@@ -14,7 +14,6 @@ tslib_1.__exportStar(require("./lib/flow-run/dto/list-flow-runs-request"), expor
|
|
|
14
14
|
tslib_1.__exportStar(require("./lib/flow-run/execution/execution-output"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./lib/flow-run/execution/step-output"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./lib/flows/flow-operations"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./lib/collections/config"), exports);
|
|
18
17
|
tslib_1.__exportStar(require("./lib/instance"), exports);
|
|
19
18
|
tslib_1.__exportStar(require("./lib/app-connection/app-connection"), exports);
|
|
20
19
|
tslib_1.__exportStar(require("./lib/app-connection/dto/upsert-app-connection-request"), exports);
|
|
@@ -30,8 +29,6 @@ var code_run_status_1 = require("./lib/workers/code-worker/code-run-status");
|
|
|
30
29
|
Object.defineProperty(exports, "CodeRunStatus", { enumerable: true, get: function () { return code_run_status_1.CodeRunStatus; } });
|
|
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
|
-
var flow_helper_1 = require("./lib/flows/flow-helper");
|
|
34
|
-
Object.defineProperty(exports, "flowHelper", { enumerable: true, get: function () { return flow_helper_1.flowHelper; } });
|
|
35
32
|
var sign_up_request_1 = require("./lib/authentication/dto/sign-up-request");
|
|
36
33
|
Object.defineProperty(exports, "SignUpRequest", { enumerable: true, get: function () { return sign_up_request_1.SignUpRequest; } });
|
|
37
34
|
var sign_in_request_1 = require("./lib/authentication/dto/sign-in-request");
|
|
@@ -39,9 +36,6 @@ Object.defineProperty(exports, "SignInRequest", { enumerable: true, get: functio
|
|
|
39
36
|
var principal_type_1 = require("./lib/authentication/model/principal-type");
|
|
40
37
|
Object.defineProperty(exports, "PrincipalType", { enumerable: true, get: function () { return principal_type_1.PrincipalType; } });
|
|
41
38
|
var action_2 = require("./lib/flows/actions/action");
|
|
42
|
-
Object.defineProperty(exports, "CodeAction", { enumerable: true, get: function () { return action_2.CodeAction; } });
|
|
43
|
-
Object.defineProperty(exports, "PieceAction", { enumerable: true, get: function () { return action_2.PieceAction; } });
|
|
44
|
-
Object.defineProperty(exports, "LoopOnItemsAction", { enumerable: true, get: function () { return action_2.LoopOnItemsAction; } });
|
|
45
39
|
Object.defineProperty(exports, "PieceActionSettings", { enumerable: true, get: function () { return action_2.PieceActionSettings; } });
|
|
46
40
|
Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return action_2.Action; } });
|
|
47
41
|
Object.defineProperty(exports, "ActionType", { enumerable: true, get: function () { return action_2.ActionType; } });
|
|
@@ -51,6 +45,7 @@ Object.defineProperty(exports, "UserStatus", { enumerable: true, get: function (
|
|
|
51
45
|
var create_flow_run_request_1 = require("./lib/flow-run/create-flow-run-request");
|
|
52
46
|
Object.defineProperty(exports, "CreateFlowRunRequest", { enumerable: true, get: function () { return create_flow_run_request_1.CreateFlowRunRequest; } });
|
|
53
47
|
var trigger_1 = require("./lib/flows/triggers/trigger");
|
|
48
|
+
Object.defineProperty(exports, "TriggerStrategy", { enumerable: true, get: function () { return trigger_1.TriggerStrategy; } });
|
|
54
49
|
Object.defineProperty(exports, "Trigger", { enumerable: true, get: function () { return trigger_1.Trigger; } });
|
|
55
50
|
Object.defineProperty(exports, "EmptyTrigger", { enumerable: true, get: function () { return trigger_1.EmptyTrigger; } });
|
|
56
51
|
Object.defineProperty(exports, "PieceTriggerSettings", { enumerable: true, get: function () { return trigger_1.PieceTriggerSettings; } });
|
|
@@ -59,12 +54,11 @@ Object.defineProperty(exports, "PieceTrigger", { enumerable: true, get: function
|
|
|
59
54
|
Object.defineProperty(exports, "ScheduleTrigger", { enumerable: true, get: function () { return trigger_1.ScheduleTrigger; } });
|
|
60
55
|
Object.defineProperty(exports, "WebhookTrigger", { enumerable: true, get: function () { return trigger_1.WebhookTrigger; } });
|
|
61
56
|
Object.defineProperty(exports, "TriggerType", { enumerable: true, get: function () { return trigger_1.TriggerType; } });
|
|
62
|
-
var
|
|
63
|
-
Object.defineProperty(exports, "
|
|
57
|
+
var collection_1 = require("./lib/collections/collection");
|
|
58
|
+
Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return collection_1.Collection; } });
|
|
64
59
|
var flow_version_1 = require("./lib/flows/flow-version");
|
|
65
60
|
Object.defineProperty(exports, "FlowVersionState", { enumerable: true, get: function () { return flow_version_1.FlowVersionState; } });
|
|
66
|
-
|
|
67
|
-
Object.defineProperty(exports, "getStep", { enumerable: true, get: function () { return flow_helper_2.getStep; } });
|
|
61
|
+
tslib_1.__exportStar(require("./lib/flows/flow-helper"), exports);
|
|
68
62
|
var flow_run_1 = require("./lib/flow-run/flow-run");
|
|
69
63
|
Object.defineProperty(exports, "RunEnvironment", { enumerable: true, get: function () { return flow_run_1.RunEnvironment; } });
|
|
70
64
|
var execution_state_1 = require("./lib/flow-run/execution/execution-state");
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/shared/src/index.ts"],"names":[],"mappings":";;;;AAAA,8EAAoD;AACpD,+FAAqE;AACrE,iGAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/shared/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA2C;AAC3C,8EAAoD;AACpD,+FAAqE;AACrE,iGAAuE;AACvE,0EAAgD;AAChD,iEAAuC;AACvC,wEAA8C;AAC9C,0DAAgC;AAChC,oFAA0D;AAC1D,oFAA0D;AAC1D,+EAAqD;AACrD,sEAA4C;AAC5C,yDAA+B;AAC/B,8EAAoD;AACpD,iGAAuE;AACvE,oFAA0D;AAC1D,qDAA4D;AAAnD,wGAAA,cAAc,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"}
|
|
@@ -38,6 +38,7 @@ export interface BaseOAuth2ConnectionValue {
|
|
|
38
38
|
}
|
|
39
39
|
export interface CloudOAuth2ConnectionValue extends BaseOAuth2ConnectionValue {
|
|
40
40
|
type: AppConnectionType.CLOUD_OAUTH2;
|
|
41
|
+
client_id: string;
|
|
41
42
|
expires_in: number;
|
|
42
43
|
token_type: string;
|
|
43
44
|
access_token: string;
|
|
@@ -57,8 +58,9 @@ export interface OAuth2ConnectionValueWithApp extends BaseOAuth2ConnectionValue
|
|
|
57
58
|
props?: Record<string, any>;
|
|
58
59
|
}
|
|
59
60
|
export declare type OAuth2AppConnection = BaseAppConnection<OAuth2ConnectionValueWithApp>;
|
|
60
|
-
export declare type
|
|
61
|
+
export declare type SecretKeyAppConnection = BaseAppConnection<SecretTextConnectionValue>;
|
|
61
62
|
export declare type CloudAuth2Connection = BaseAppConnection<CloudOAuth2ConnectionValue>;
|
|
62
63
|
export declare type BasicAuthConnection = BaseAppConnection<BasicAuthConnectionValue>;
|
|
63
|
-
export declare type AppConnection = BasicAuthConnection |
|
|
64
|
+
export declare type AppConnection = BasicAuthConnection | SecretKeyAppConnection | OAuth2AppConnection | CloudAuth2Connection;
|
|
65
|
+
export declare type AppConnectionValue = SecretTextConnectionValue | OAuth2ConnectionValueWithApp | CloudOAuth2ConnectionValue | BasicAuthConnectionValue;
|
|
64
66
|
export {};
|
|
@@ -2,6 +2,7 @@ import { Static } from "@sinclair/typebox";
|
|
|
2
2
|
import { AppConnectionType } from "../app-connection";
|
|
3
3
|
export declare const UpsertCloudOAuth2Request: import("@sinclair/typebox").TObject<{
|
|
4
4
|
value: import("@sinclair/typebox").TObject<{
|
|
5
|
+
client_id: import("@sinclair/typebox").TString<string>;
|
|
5
6
|
code: import("@sinclair/typebox").TString<string>;
|
|
6
7
|
code_challenge: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
7
8
|
props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TString<string>>>;
|
|
@@ -25,7 +26,7 @@ export declare const UpsertOAuth2Request: import("@sinclair/typebox").TObject<{
|
|
|
25
26
|
client_id: import("@sinclair/typebox").TString<string>;
|
|
26
27
|
client_secret: import("@sinclair/typebox").TString<string>;
|
|
27
28
|
token_url: import("@sinclair/typebox").TString<string>;
|
|
28
|
-
props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").
|
|
29
|
+
props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>>;
|
|
29
30
|
scope: import("@sinclair/typebox").TString<string>;
|
|
30
31
|
code: import("@sinclair/typebox").TString<string>;
|
|
31
32
|
code_challenge: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
@@ -61,7 +62,7 @@ export declare const UpsertConnectionRequest: import("@sinclair/typebox").TUnion
|
|
|
61
62
|
client_id: import("@sinclair/typebox").TString<string>;
|
|
62
63
|
client_secret: import("@sinclair/typebox").TString<string>;
|
|
63
64
|
token_url: import("@sinclair/typebox").TString<string>;
|
|
64
|
-
props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").
|
|
65
|
+
props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>>;
|
|
65
66
|
scope: import("@sinclair/typebox").TString<string>;
|
|
66
67
|
code: import("@sinclair/typebox").TString<string>;
|
|
67
68
|
code_challenge: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
@@ -72,6 +73,7 @@ export declare const UpsertConnectionRequest: import("@sinclair/typebox").TUnion
|
|
|
72
73
|
appName: import("@sinclair/typebox").TString<string>;
|
|
73
74
|
}>, import("@sinclair/typebox").TObject<{
|
|
74
75
|
value: import("@sinclair/typebox").TObject<{
|
|
76
|
+
client_id: import("@sinclair/typebox").TString<string>;
|
|
75
77
|
code: import("@sinclair/typebox").TString<string>;
|
|
76
78
|
code_challenge: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
77
79
|
props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TString<string>>>;
|
|
@@ -8,6 +8,7 @@ const commonAuthProps = {
|
|
|
8
8
|
appName: typebox_1.Type.String({}),
|
|
9
9
|
};
|
|
10
10
|
exports.UpsertCloudOAuth2Request = typebox_1.Type.Object(Object.assign(Object.assign({}, commonAuthProps), { value: typebox_1.Type.Object({
|
|
11
|
+
client_id: typebox_1.Type.String(),
|
|
11
12
|
code: typebox_1.Type.String(),
|
|
12
13
|
code_challenge: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
13
14
|
props: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.String())),
|
|
@@ -23,7 +24,7 @@ exports.UpsertOAuth2Request = typebox_1.Type.Object(Object.assign(Object.assign(
|
|
|
23
24
|
client_id: typebox_1.Type.String({}),
|
|
24
25
|
client_secret: typebox_1.Type.String({}),
|
|
25
26
|
token_url: typebox_1.Type.String({}),
|
|
26
|
-
props: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.
|
|
27
|
+
props: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any())),
|
|
27
28
|
scope: typebox_1.Type.String(),
|
|
28
29
|
code: typebox_1.Type.String(),
|
|
29
30
|
code_challenge: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-app-connection-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/app-connection/dto/upsert-app-connection-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD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E,CAAC;QAC1B,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,cAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"upsert-app-connection-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/app-connection/dto/upsert-app-connection-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD,sDAAsD;AAEtD,MAAM,eAAe,GAAG;IACpB,IAAI,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IACrB,OAAO,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;CAC3B,CAAC;AAGW,QAAA,wBAAwB,GAAG,cAAI,CAAC,MAAM,iCAC5C,eAAe,KAClB,KAAK,EAAE,cAAI,CAAC,MAAM,CAAC;QACf,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE;QACxB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;QACnB,cAAc,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;QAC5C,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAC/D,KAAK,EAAE,cAAI,CAAC,MAAM,EAAE;QACpB,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,kCAAiB,CAAC,YAAY,CAAC;QAClD,SAAS,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;KAC5C,CAAC,IACJ,CAAC;AAEU,QAAA,uBAAuB,GAAG,cAAI,CAAC,MAAM,iCAC3C,eAAe,KAClB,KAAK,EAAE,cAAI,CAAC,MAAM,CAAC;QACf,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,kCAAiB,CAAC,WAAW,CAAC;QACjD,WAAW,EAAE,cAAI,CAAC,MA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el } from "../common/base-model";
|
|
2
2
|
import { ProjectId } from "../project/project";
|
|
3
|
-
import { CollectionVersion } from "./collection-version";
|
|
4
3
|
export declare type CollectionId = string;
|
|
5
4
|
export interface Collection extends BaseModel<CollectionId> {
|
|
5
|
+
displayName: string;
|
|
6
6
|
projectId: ProjectId;
|
|
7
|
-
version: CollectionVersion | null;
|
|
8
7
|
}
|
|
8
|
+
export declare const Collection: import("@sinclair/typebox").TObject<{
|
|
9
|
+
projectId: import("@sinclair/typebox").TString<string>;
|
|
10
|
+
displayName: import("@sinclair/typebox").TString<string>;
|
|
11
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
12
|
+
created: import("@sinclair/typebox").TString<string>;
|
|
13
|
+
update: import("@sinclair/typebox").TString<string>;
|
|
14
|
+
}>;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Collection = void 0;
|
|
4
|
+
const base_model_1 = require("../common/base-model");
|
|
5
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
6
|
+
exports.Collection = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: typebox_1.Type.String(), displayName: typebox_1.Type.String() }));
|
|
3
7
|
//# sourceMappingURL=collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/collections/collection.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/collections/collection.ts"],"names":[],"mappings":";;;AAAA,qDAAgE;AAEhE,+CAAyC;AAQ5B,QAAA,UAAU,GAAG,cAAI,CAAC,MAAM,iCAChC,4BAAe,KAClB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE,IAC1B,CAAA"}
|
|
@@ -2,7 +2,6 @@ import { ProjectId } from "../../project/project";
|
|
|
2
2
|
import { Cursor } from "../../common/seek-page";
|
|
3
3
|
import { Static } from "@sinclair/typebox";
|
|
4
4
|
export declare const ListCollectionsRequest: import("@sinclair/typebox").TObject<{
|
|
5
|
-
projectId: import("@sinclair/typebox").TString<string>;
|
|
6
5
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
7
6
|
cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
8
7
|
}>;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ListCollectionsRequest = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
exports.ListCollectionsRequest = typebox_1.Type.Object({
|
|
6
|
-
projectId: typebox_1.Type.String({}),
|
|
7
6
|
limit: typebox_1.Type.Optional(typebox_1.Type.Number({})),
|
|
8
7
|
cursor: typebox_1.Type.Optional(typebox_1.Type.String({})),
|
|
9
8
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-collections-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/collections/dto/list-collections-request.ts"],"names":[],"mappings":";;;AAEA,+CAAiD;AAEpC,QAAA,sBAAsB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC9C,
|
|
1
|
+
{"version":3,"file":"list-collections-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/collections/dto/list-collections-request.ts"],"names":[],"mappings":";;;AAEA,+CAAiD;AAEpC,QAAA,sBAAsB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;CACzC,CAAC,CAAC"}
|
|
@@ -1,50 +1,5 @@
|
|
|
1
1
|
import { Static } from "@sinclair/typebox";
|
|
2
|
-
import { Config, ConfigType } from "../config";
|
|
3
|
-
export declare const ConfigValidation: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
4
|
-
key: import("@sinclair/typebox").TString<string>;
|
|
5
|
-
type: import("@sinclair/typebox").TLiteral<ConfigType.CHECKBOX>;
|
|
6
|
-
value: import("@sinclair/typebox").TBoolean;
|
|
7
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
8
|
-
key: import("@sinclair/typebox").TString<string>;
|
|
9
|
-
type: import("@sinclair/typebox").TLiteral<ConfigType.SHORT_TEXT>;
|
|
10
|
-
value: import("@sinclair/typebox").TString<string>;
|
|
11
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
12
|
-
key: import("@sinclair/typebox").TString<string>;
|
|
13
|
-
type: import("@sinclair/typebox").TLiteral<ConfigType.LONG_TEXT>;
|
|
14
|
-
value: import("@sinclair/typebox").TString<string>;
|
|
15
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
16
|
-
key: import("@sinclair/typebox").TString<string>;
|
|
17
|
-
type: import("@sinclair/typebox").TLiteral<ConfigType.NUMBER>;
|
|
18
|
-
value: import("@sinclair/typebox").TNumber;
|
|
19
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
20
|
-
key: import("@sinclair/typebox").TString<string>;
|
|
21
|
-
type: import("@sinclair/typebox").TLiteral<ConfigType.DICTIONARY>;
|
|
22
|
-
value: import("@sinclair/typebox").TObject<{}>;
|
|
23
|
-
}>]>;
|
|
24
2
|
export declare const UpdateCollectionRequest: import("@sinclair/typebox").TObject<{
|
|
25
|
-
configs: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
26
|
-
key: import("@sinclair/typebox").TString<string>;
|
|
27
|
-
type: import("@sinclair/typebox").TLiteral<ConfigType.CHECKBOX>;
|
|
28
|
-
value: import("@sinclair/typebox").TBoolean;
|
|
29
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
30
|
-
key: import("@sinclair/typebox").TString<string>;
|
|
31
|
-
type: import("@sinclair/typebox").TLiteral<ConfigType.SHORT_TEXT>;
|
|
32
|
-
value: import("@sinclair/typebox").TString<string>;
|
|
33
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
34
|
-
key: import("@sinclair/typebox").TString<string>;
|
|
35
|
-
type: import("@sinclair/typebox").TLiteral<ConfigType.LONG_TEXT>;
|
|
36
|
-
value: import("@sinclair/typebox").TString<string>;
|
|
37
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
38
|
-
key: import("@sinclair/typebox").TString<string>;
|
|
39
|
-
type: import("@sinclair/typebox").TLiteral<ConfigType.NUMBER>;
|
|
40
|
-
value: import("@sinclair/typebox").TNumber;
|
|
41
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
42
|
-
key: import("@sinclair/typebox").TString<string>;
|
|
43
|
-
type: import("@sinclair/typebox").TLiteral<ConfigType.DICTIONARY>;
|
|
44
|
-
value: import("@sinclair/typebox").TObject<{}>;
|
|
45
|
-
}>]>>;
|
|
46
3
|
displayName: import("@sinclair/typebox").TString<string>;
|
|
47
4
|
}>;
|
|
48
|
-
export declare type UpdateCollectionRequest = Static<typeof UpdateCollectionRequest
|
|
49
|
-
configs: Config[];
|
|
50
|
-
};
|
|
5
|
+
export declare type UpdateCollectionRequest = Static<typeof UpdateCollectionRequest>;
|
|
@@ -1,37 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateCollectionRequest =
|
|
3
|
+
exports.UpdateCollectionRequest = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const config_1 = require("../config");
|
|
6
|
-
exports.ConfigValidation = typebox_1.Type.Union([
|
|
7
|
-
typebox_1.Type.Object({
|
|
8
|
-
key: typebox_1.Type.String(),
|
|
9
|
-
type: typebox_1.Type.Literal(config_1.ConfigType.CHECKBOX),
|
|
10
|
-
value: typebox_1.Type.Boolean(),
|
|
11
|
-
}),
|
|
12
|
-
typebox_1.Type.Object({
|
|
13
|
-
key: typebox_1.Type.String(),
|
|
14
|
-
type: typebox_1.Type.Literal(config_1.ConfigType.SHORT_TEXT),
|
|
15
|
-
value: typebox_1.Type.String(),
|
|
16
|
-
}),
|
|
17
|
-
typebox_1.Type.Object({
|
|
18
|
-
key: typebox_1.Type.String(),
|
|
19
|
-
type: typebox_1.Type.Literal(config_1.ConfigType.LONG_TEXT),
|
|
20
|
-
value: typebox_1.Type.String(),
|
|
21
|
-
}),
|
|
22
|
-
typebox_1.Type.Object({
|
|
23
|
-
key: typebox_1.Type.String(),
|
|
24
|
-
type: typebox_1.Type.Literal(config_1.ConfigType.NUMBER),
|
|
25
|
-
value: typebox_1.Type.Number(),
|
|
26
|
-
}),
|
|
27
|
-
typebox_1.Type.Object({
|
|
28
|
-
key: typebox_1.Type.String(),
|
|
29
|
-
type: typebox_1.Type.Literal(config_1.ConfigType.DICTIONARY),
|
|
30
|
-
value: typebox_1.Type.Object({}),
|
|
31
|
-
})
|
|
32
|
-
]);
|
|
33
5
|
exports.UpdateCollectionRequest = typebox_1.Type.Object({
|
|
34
|
-
configs: typebox_1.Type.Array(exports.ConfigValidation),
|
|
35
6
|
displayName: typebox_1.Type.String({}),
|
|
36
7
|
});
|
|
37
8
|
//# sourceMappingURL=update-collection-request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-collection-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/collections/dto/update-collection-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;
|
|
1
|
+
{"version":3,"file":"update-collection-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/collections/dto/update-collection-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAEpC,QAAA,uBAAuB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC/C,WAAW,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;CAC/B,CAAC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AppConnectionId } from "../app-connection/app-connection";
|
|
2
2
|
import { CollectionId } from "../collections/collection";
|
|
3
|
-
import { CollectionVersionId } from "../collections/collection-version";
|
|
4
3
|
import { FileId } from "../file/file";
|
|
5
4
|
import { FlowRunId } from "../flow-run/flow-run";
|
|
6
5
|
import { FlowId } from "../flows/flow";
|
|
@@ -11,7 +10,7 @@ export declare class ActivepiecesError extends Error {
|
|
|
11
10
|
error: ErrorParams;
|
|
12
11
|
constructor(error: ErrorParams, message?: string);
|
|
13
12
|
}
|
|
14
|
-
declare type ErrorParams = CollectionNotFoundErrorParams |
|
|
13
|
+
declare type ErrorParams = CollectionNotFoundErrorParams | ConfigNotFoundErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InstanceNotFoundErrorParams | InvalidBearerTokenParams | InvalidCredentialsErrorParams | JobRemovalFailureErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | StepNotFoundErrorParams | AppConnectionNotFoundErrorParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidJwtTokenErrorParams | TaskQuotaExeceededErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | FlowOperationErrorParams;
|
|
15
14
|
export interface BaseErrorParams<T, V> {
|
|
16
15
|
code: T;
|
|
17
16
|
params: V;
|
|
@@ -40,9 +39,6 @@ export declare type FlowNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_NOT
|
|
|
40
39
|
export declare type CollectionNotFoundErrorParams = BaseErrorParams<ErrorCode.COLLECTION_NOT_FOUND, {
|
|
41
40
|
id: CollectionId;
|
|
42
41
|
}>;
|
|
43
|
-
export declare type CollectionVersionNotFoundErrorParams = BaseErrorParams<ErrorCode.COLLECTION_VERSION_NOT_FOUND, {
|
|
44
|
-
id: CollectionVersionId;
|
|
45
|
-
}>;
|
|
46
42
|
export declare type InstanceNotFoundErrorParams = BaseErrorParams<ErrorCode.INSTANCE_NOT_FOUND, {
|
|
47
43
|
id?: InstanceId;
|
|
48
44
|
collectionId?: CollectionId;
|
|
@@ -85,6 +81,7 @@ export declare type JobRemovalFailureErrorParams = BaseErrorParams<ErrorCode.JOB
|
|
|
85
81
|
export declare type SystemPropNotDefinedErrorParams = BaseErrorParams<ErrorCode.SYSTEM_PROP_NOT_DEFINED, {
|
|
86
82
|
prop: string;
|
|
87
83
|
}>;
|
|
84
|
+
export declare type FlowOperationErrorParams = BaseErrorParams<ErrorCode.FLOW_OPERATION_INVALID, Record<string, never>>;
|
|
88
85
|
export declare type InvalidJwtTokenErrorParams = BaseErrorParams<ErrorCode.INVALID_OR_EXPIRED_JWT_TOKEN, {
|
|
89
86
|
token: string;
|
|
90
87
|
}>;
|
|
@@ -112,7 +109,8 @@ export declare enum ErrorCode {
|
|
|
112
109
|
INVALID_CLAIM = "INVALID_CLAIM",
|
|
113
110
|
INVALID_CLOUD_CLAIM = "INVALID_CLOUD_CLAIM",
|
|
114
111
|
INVALID_OR_EXPIRED_JWT_TOKEN = "INVALID_OR_EXPIRED_JWT_TOKEN",
|
|
115
|
-
TASK_QUOTA_EXCEEDED = "
|
|
116
|
-
SYSTEM_PROP_INVALID = "SYSTEM_PROP_INVALID"
|
|
112
|
+
TASK_QUOTA_EXCEEDED = "TASK_QUOTA_EXCEEDED",
|
|
113
|
+
SYSTEM_PROP_INVALID = "SYSTEM_PROP_INVALID",
|
|
114
|
+
FLOW_OPERATION_INVALID = "FLOW_OPERATION_INVALID"
|
|
117
115
|
}
|
|
118
116
|
export {};
|
|
@@ -30,7 +30,8 @@ var ErrorCode;
|
|
|
30
30
|
ErrorCode["INVALID_CLAIM"] = "INVALID_CLAIM";
|
|
31
31
|
ErrorCode["INVALID_CLOUD_CLAIM"] = "INVALID_CLOUD_CLAIM";
|
|
32
32
|
ErrorCode["INVALID_OR_EXPIRED_JWT_TOKEN"] = "INVALID_OR_EXPIRED_JWT_TOKEN";
|
|
33
|
-
ErrorCode["TASK_QUOTA_EXCEEDED"] = "
|
|
33
|
+
ErrorCode["TASK_QUOTA_EXCEEDED"] = "TASK_QUOTA_EXCEEDED";
|
|
34
34
|
ErrorCode["SYSTEM_PROP_INVALID"] = "SYSTEM_PROP_INVALID";
|
|
35
|
+
ErrorCode["FLOW_OPERATION_INVALID"] = "FLOW_OPERATION_INVALID";
|
|
35
36
|
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
|
|
36
37
|
//# 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":";;;
|
|
1
|
+
{"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/activepieces-error.ts"],"names":[],"mappings":";;;AASA,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;AA4KD,IAAY,SAwBX;AAxBD,WAAY,SAAS;IACnB,0DAA6C,CAAA;IAC7C,0EAA6D,CAAA;IAC7D,kDAAqC,CAAA;IACrC,4CAA+B,CAAA;IAC/B,kEAAqD,CAAA;IACrD,8CAAiC,CAAA;IACjC,8CAAiC,CAAA;IACjC,sDAAyC,CAAA;IACzC,8DAAiD,CAAA;IACjD,sDAAyC,CAAA;IACzC,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,8DAAiD,CAAA;AACnD,CAAC,EAxBW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAwBpB"}
|
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
import { CollectionId } from "../collections/collection";
|
|
2
|
-
import { CollectionVersion, CollectionVersionId } from "../collections/collection-version";
|
|
3
2
|
import { FlowVersion, FlowVersionId } from "../flows/flow-version";
|
|
4
3
|
import { ProjectId } from "../project/project";
|
|
5
4
|
export declare enum EngineOperationType {
|
|
6
5
|
EXECUTE_FLOW = "EXECEUTE_FLOW",
|
|
7
6
|
EXECUTE_PROPERTY = "EXECUTE_PROPERTY",
|
|
8
|
-
EXECUTE_TRIGGER_HOOK = "EXECUTE_TRIGGER_HOOK"
|
|
7
|
+
EXECUTE_TRIGGER_HOOK = "EXECUTE_TRIGGER_HOOK",
|
|
8
|
+
EXTRACT_EVENT_DATA = "EXTRACT_EVENT_DATA"
|
|
9
9
|
}
|
|
10
10
|
export declare enum TriggerHookType {
|
|
11
11
|
ON_ENABLE = "ON_ENABLE",
|
|
12
12
|
ON_DISABLE = "ON_DISABLE",
|
|
13
13
|
RUN = "RUN"
|
|
14
14
|
}
|
|
15
|
-
export declare type EngineOperation = ExecuteFlowOperation | ExecutePropsOptions | ExecuteTriggerOperation;
|
|
15
|
+
export declare type EngineOperation = ExecuteFlowOperation | ExecutePropsOptions | ExecuteTriggerOperation | ExecuteEventParserOperation;
|
|
16
|
+
export interface ExecuteEventParserOperation {
|
|
17
|
+
pieceName: string;
|
|
18
|
+
event: EventPayload;
|
|
19
|
+
}
|
|
16
20
|
export interface ExecutePropsOptions {
|
|
17
21
|
pieceName: string;
|
|
18
22
|
pieceVersion: string;
|
|
19
23
|
propertyName: string;
|
|
20
24
|
stepName: string;
|
|
21
25
|
input: Record<string, any>;
|
|
22
|
-
collectionVersion: CollectionVersion;
|
|
23
26
|
projectId: ProjectId;
|
|
27
|
+
collectionId: CollectionId;
|
|
24
28
|
apiUrl?: string;
|
|
25
29
|
workerToken?: string;
|
|
26
30
|
}
|
|
27
31
|
export interface ExecuteFlowOperation {
|
|
28
32
|
flowVersionId: FlowVersionId;
|
|
29
33
|
collectionId: CollectionId;
|
|
30
|
-
collectionVersionId: CollectionVersionId;
|
|
31
34
|
projectId: ProjectId;
|
|
32
35
|
triggerPayload: unknown;
|
|
33
36
|
workerToken?: string;
|
|
@@ -37,9 +40,33 @@ export interface ExecuteTriggerOperation {
|
|
|
37
40
|
hookType: TriggerHookType;
|
|
38
41
|
flowVersion: FlowVersion;
|
|
39
42
|
webhookUrl: string;
|
|
40
|
-
collectionVersion: CollectionVersion;
|
|
41
43
|
triggerPayload?: unknown;
|
|
42
44
|
projectId: ProjectId;
|
|
45
|
+
collectionId: CollectionId;
|
|
43
46
|
workerToken?: string;
|
|
44
47
|
apiUrl?: string;
|
|
48
|
+
edition?: string;
|
|
49
|
+
webhookSecret?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface EventPayload {
|
|
52
|
+
body: any;
|
|
53
|
+
rawBody?: any;
|
|
54
|
+
method: string;
|
|
55
|
+
headers: Record<string, string>;
|
|
56
|
+
queryParams: Record<string, string>;
|
|
57
|
+
}
|
|
58
|
+
export declare type ParseEventResponse = {
|
|
59
|
+
event?: string;
|
|
60
|
+
identifierValue?: string;
|
|
61
|
+
reply?: {
|
|
62
|
+
headers: Record<string, string>;
|
|
63
|
+
body: unknown;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export interface AppEventListener {
|
|
67
|
+
events: string[];
|
|
68
|
+
identifierValue: string;
|
|
69
|
+
}
|
|
70
|
+
export interface ExecuteTriggerResponse {
|
|
71
|
+
listeners: AppEventListener[];
|
|
45
72
|
}
|
|
@@ -6,6 +6,7 @@ var EngineOperationType;
|
|
|
6
6
|
EngineOperationType["EXECUTE_FLOW"] = "EXECEUTE_FLOW";
|
|
7
7
|
EngineOperationType["EXECUTE_PROPERTY"] = "EXECUTE_PROPERTY";
|
|
8
8
|
EngineOperationType["EXECUTE_TRIGGER_HOOK"] = "EXECUTE_TRIGGER_HOOK";
|
|
9
|
+
EngineOperationType["EXTRACT_EVENT_DATA"] = "EXTRACT_EVENT_DATA";
|
|
9
10
|
})(EngineOperationType = exports.EngineOperationType || (exports.EngineOperationType = {}));
|
|
10
11
|
var TriggerHookType;
|
|
11
12
|
(function (TriggerHookType) {
|
|
@@ -13,4 +14,5 @@ var TriggerHookType;
|
|
|
13
14
|
TriggerHookType["ON_DISABLE"] = "ON_DISABLE";
|
|
14
15
|
TriggerHookType["RUN"] = "RUN";
|
|
15
16
|
})(TriggerHookType = exports.TriggerHookType || (exports.TriggerHookType = {}));
|
|
17
|
+
;
|
|
16
18
|
//# 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":";;;
|
|
1
|
+
{"version":3,"file":"engine-operation.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/engine-operation.ts"],"names":[],"mappings":";;;AAIA,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,qDAA8B,CAAA;IAC9B,4DAAqC,CAAA;IACrC,oEAA6C,CAAA;IAC7C,gEAAyC,CAAA;AAC7C,CAAC,EALW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAK9B;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,4CAAyB,CAAA;IACzB,8BAAW,CAAA;AACf,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AA+DA,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Static } from '@sinclair/typebox';
|
|
2
2
|
export declare const CreateFlowRunRequest: import("@sinclair/typebox").TObject<{
|
|
3
3
|
flowVersionId: import("@sinclair/typebox").TString<string>;
|
|
4
|
-
collectionVersionId: import("@sinclair/typebox").TString<string>;
|
|
5
4
|
payload: import("@sinclair/typebox").TAny;
|
|
5
|
+
collectionId: import("@sinclair/typebox").TString<string>;
|
|
6
6
|
}>;
|
|
7
7
|
export declare type CreateFlowRunRequest = Static<typeof CreateFlowRunRequest>;
|
|
@@ -4,7 +4,8 @@ exports.CreateFlowRunRequest = void 0;
|
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
exports.CreateFlowRunRequest = typebox_1.Type.Object({
|
|
6
6
|
flowVersionId: typebox_1.Type.String(),
|
|
7
|
-
collectionVersionId: typebox_1.Type.String(),
|
|
8
7
|
payload: typebox_1.Type.Any(),
|
|
8
|
+
// THIS IS CHANGED
|
|
9
|
+
collectionId: typebox_1.Type.String(),
|
|
9
10
|
});
|
|
10
11
|
//# sourceMappingURL=create-flow-run-request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-flow-run-request.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/flow-run/create-flow-run-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAEpC,QAAA,oBAAoB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC9C,aAAa,EAAE,cAAI,CAAC,MAAM,EAAE;IAC5B,
|
|
1
|
+
{"version":3,"file":"create-flow-run-request.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/flow-run/create-flow-run-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAEpC,QAAA,oBAAoB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC9C,aAAa,EAAE,cAAI,CAAC,MAAM,EAAE;IAC5B,OAAO,EAAE,cAAI,CAAC,GAAG,EAAE;IACnB,kBAAkB;IAClB,YAAY,EAAE,cAAI,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { CollectionVersion } from '../../collections/collection-version';
|
|
2
1
|
import { StepOutput } from './step-output';
|
|
3
2
|
export declare class ExecutionState {
|
|
4
3
|
configs: Record<string, unknown>;
|
|
5
4
|
steps: Record<string, StepOutput>;
|
|
6
5
|
lastStepState: Record<string, unknown>;
|
|
7
6
|
constructor();
|
|
8
|
-
insertConfigs(collectionVersion: CollectionVersion): void;
|
|
9
7
|
insertStep(stepOutput: StepOutput, actionName: string, ancestors: [string, number][]): void;
|
|
10
8
|
updateLastStep(outputOnly: any, actionName: string): void;
|
|
11
9
|
private static deepClone;
|
|
@@ -8,24 +8,6 @@ class ExecutionState {
|
|
|
8
8
|
this.steps = {};
|
|
9
9
|
this.lastStepState = {};
|
|
10
10
|
}
|
|
11
|
-
insertConfigs(collectionVersion) {
|
|
12
|
-
let configs = new Map(collectionVersion.configs.map((config) => {
|
|
13
|
-
return [config.key, config.value];
|
|
14
|
-
}));
|
|
15
|
-
if (configs instanceof Map) {
|
|
16
|
-
configs.forEach((value, key) => {
|
|
17
|
-
this.configs[key] = value;
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
else if (typeof configs === 'object' && !Array.isArray(configs)) {
|
|
21
|
-
Object.entries(configs).forEach(([key, value]) => {
|
|
22
|
-
this.configs[key] = value;
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
throw Error(`Invalid configs type: ${typeof configs}`);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
11
|
insertStep(stepOutput, actionName, ancestors) {
|
|
30
12
|
const targetMap = this.getTargetMap(ancestors);
|
|
31
13
|
targetMap[actionName] = stepOutput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-state.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flow-run/execution/execution-state.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"execution-state.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flow-run/execution/execution-state.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;AAEhE,MAAa,cAAc;IAKzB;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;IAC1B,CAAC;IAED,UAAU,CACR,UAAsB,EACtB,UAAkB,EAClB,SAA6B;QAE7B,MAAM,SAAS,GAA+B,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC3E,SAAS,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC;QACnC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,cAAc,CAAC,UAAe,EAAE,UAAkB;QAChD,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACxE,CAAC;IAEO,MAAM,CAAC,SAAS,CAAC,KAAU;QACjC,IAAI,KAAK,KAAK,SAAS,EAAE;YACvB,OAAO,SAAS,CAAC;SAClB;QACD,IAAI,KAAK,KAAK,IAAI,EAAE;YAClB,OAAO,IAAI,CAAC;SACb;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3C,CAAC;IAEO,YAAY,CAClB,SAA6B;QAE7B,IAAI,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC;QAE3B,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YACzB,qBAAqB;YACrB,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE;gBACtC,MAAM,wBAAwB,CAAC;aAChC;YACD,MAAM,gBAAgB,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9C,I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