@activepieces/shared 0.3.4 → 0.3.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@activepieces/shared",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@sinclair/typebox": "0.26.3",
package/src/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export { StepOutputStatus } from "./lib/flow-run/execution/step-output";
19
19
  export * from "./lib/instance";
20
20
  export * from "./lib/pieces";
21
21
  export * from "./lib/store-entry/dto/store-entry-request";
22
+ export * from "./lib/webhook";
22
23
  export { CodeRunStatus } from "./lib/workers/code-worker/code-run-status";
23
24
  export { CodeExecutionResult } from "./lib/workers/code-worker/code-execution-result";
24
25
  export { ExecuteCodeRequest } from './lib/code/dto/code-request';
@@ -32,7 +33,7 @@ export { StoreEntry, StoreEntryId } from './lib/store-entry/store-entry';
32
33
  export { User, UserStatus, UserId } from './lib/user/user';
33
34
  export { CreateFlowRunRequest } from './lib/flow-run/create-flow-run-request';
34
35
  export { TriggerStrategy, Trigger, EmptyTrigger, PieceTriggerSettings, PieceTrigger, WebhookTrigger, TriggerType } from './lib/flows/triggers/trigger';
35
- export { Collection, CollectionId } from './lib/collections/collection';
36
+ export { Collection, CollectionId, CollectionListDto, CollectionStatus } from './lib/collections/collection';
36
37
  export { FlowVersion, FlowVersionState, FlowVersionId } from './lib/flows/flow-version';
37
38
  export { Flow, FlowId } from './lib/flows/flow';
38
39
  export { File, FileId } from './lib/file/file';
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.UpdateCollectionRequest = exports.CreateCollectionRequest = exports.ListFlowsRequest = exports.ListCollectionsRequest = exports.ExecutionState = exports.RunEnvironment = exports.FlowVersionState = exports.Collection = exports.TriggerType = exports.WebhookTrigger = exports.PieceTrigger = exports.PieceTriggerSettings = exports.EmptyTrigger = exports.Trigger = exports.TriggerStrategy = exports.CreateFlowRunRequest = exports.UserStatus = exports.CodeActionSettings = exports.ActionType = exports.Action = exports.LoopOnItemsActionSettings = exports.PieceActionSettings = exports.PrincipalType = exports.SignInRequest = exports.SignUpRequest = exports.ExecuteCodeRequest = exports.CodeRunStatus = exports.StepOutputStatus = void 0;
3
+ exports.ApId = exports.apId = exports.UpdateCollectionRequest = exports.CreateCollectionRequest = exports.ListFlowsRequest = exports.ListCollectionsRequest = exports.ExecutionState = exports.RunEnvironment = exports.FlowVersionState = exports.CollectionStatus = exports.CollectionListDto = exports.Collection = exports.TriggerType = exports.WebhookTrigger = exports.PieceTrigger = exports.PieceTriggerSettings = exports.EmptyTrigger = exports.Trigger = exports.TriggerStrategy = exports.CreateFlowRunRequest = exports.UserStatus = exports.CodeActionSettings = exports.ActionType = exports.Action = exports.LoopOnItemsActionSettings = exports.PieceActionSettings = exports.PrincipalType = exports.SignInRequest = exports.SignUpRequest = exports.ExecuteCodeRequest = exports.CodeRunStatus = 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);
@@ -24,6 +24,7 @@ Object.defineProperty(exports, "StepOutputStatus", { enumerable: true, get: func
24
24
  tslib_1.__exportStar(require("./lib/instance"), exports);
25
25
  tslib_1.__exportStar(require("./lib/pieces"), exports);
26
26
  tslib_1.__exportStar(require("./lib/store-entry/dto/store-entry-request"), exports);
27
+ tslib_1.__exportStar(require("./lib/webhook"), exports);
27
28
  var code_run_status_1 = require("./lib/workers/code-worker/code-run-status");
28
29
  Object.defineProperty(exports, "CodeRunStatus", { enumerable: true, get: function () { return code_run_status_1.CodeRunStatus; } });
29
30
  var code_request_1 = require("./lib/code/dto/code-request");
@@ -54,6 +55,8 @@ Object.defineProperty(exports, "WebhookTrigger", { enumerable: true, get: functi
54
55
  Object.defineProperty(exports, "TriggerType", { enumerable: true, get: function () { return trigger_1.TriggerType; } });
55
56
  var collection_1 = require("./lib/collections/collection");
56
57
  Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return collection_1.Collection; } });
58
+ Object.defineProperty(exports, "CollectionListDto", { enumerable: true, get: function () { return collection_1.CollectionListDto; } });
59
+ Object.defineProperty(exports, "CollectionStatus", { enumerable: true, get: function () { return collection_1.CollectionStatus; } });
57
60
  var flow_version_1 = require("./lib/flows/flow-version");
58
61
  Object.defineProperty(exports, "FlowVersionState", { enumerable: true, get: function () { return flow_version_1.FlowVersionState; } });
59
62
  tslib_1.__exportStar(require("./lib/flows/flow-helper"), 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,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,yDAA+B;AAC/B,8EAAoD;AACpD,iGAAuE;AACvE,oFAA0D;AAC1D,oEAAwE;AAA/D,+GAAA,gBAAgB,OAAA;AACzB,yDAA+B;AAC/B,uDAA6B;AAC7B,oFAA0D;AAE1D,6EAA0E;AAAjE,gHAAA,aAAa,OAAA;AAEtB,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;AA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AA8D;AAC9D,mFAAyD;AAEzD,qDAAqD;AAErD,6DAA6D;AAC7D,mBAAU,CAAC,0BAA0B,GAAG,KAAK,CAAC"}
@@ -1,14 +1,30 @@
1
1
  import { BaseModel } from "../common/base-model";
2
2
  import { ProjectId } from "../project/project";
3
+ import { Static } from "@sinclair/typebox";
3
4
  export declare type CollectionId = string;
4
5
  export interface Collection extends BaseModel<CollectionId> {
5
6
  displayName: string;
6
7
  projectId: ProjectId;
7
8
  }
9
+ export declare enum CollectionStatus {
10
+ ENABLED = "ENABLED",
11
+ DISABLED = "DISABLED",
12
+ UNPUBLISHED = "UNPUBLISHED"
13
+ }
8
14
  export declare const Collection: import("@sinclair/typebox").TObject<{
9
15
  projectId: import("@sinclair/typebox").TString<string>;
10
16
  displayName: import("@sinclair/typebox").TString<string>;
11
17
  id: import("@sinclair/typebox").TString<string>;
12
18
  created: import("@sinclair/typebox").TString<string>;
13
- update: import("@sinclair/typebox").TString<string>;
19
+ updated: import("@sinclair/typebox").TString<string>;
14
20
  }>;
21
+ export declare const CollectionListDto: import("@sinclair/typebox").TComposite<[import("@sinclair/typebox").TObject<{
22
+ status: import("@sinclair/typebox").TEnum<typeof CollectionStatus>;
23
+ }>, import("@sinclair/typebox").TObject<{
24
+ projectId: import("@sinclair/typebox").TString<string>;
25
+ displayName: import("@sinclair/typebox").TString<string>;
26
+ id: import("@sinclair/typebox").TString<string>;
27
+ created: import("@sinclair/typebox").TString<string>;
28
+ updated: import("@sinclair/typebox").TString<string>;
29
+ }>]>;
30
+ export declare type CollectionListDto = Static<typeof CollectionListDto>;
@@ -1,7 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Collection = void 0;
3
+ exports.CollectionListDto = exports.Collection = exports.CollectionStatus = void 0;
4
4
  const base_model_1 = require("../common/base-model");
5
5
  const typebox_1 = require("@sinclair/typebox");
6
+ var CollectionStatus;
7
+ (function (CollectionStatus) {
8
+ CollectionStatus["ENABLED"] = "ENABLED";
9
+ CollectionStatus["DISABLED"] = "DISABLED";
10
+ CollectionStatus["UNPUBLISHED"] = "UNPUBLISHED";
11
+ })(CollectionStatus = exports.CollectionStatus || (exports.CollectionStatus = {}));
6
12
  exports.Collection = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: typebox_1.Type.String(), displayName: typebox_1.Type.String() }));
13
+ exports.CollectionListDto = typebox_1.Type.Composite([
14
+ typebox_1.Type.Object({
15
+ status: typebox_1.Type.Enum(CollectionStatus),
16
+ }),
17
+ exports.Collection
18
+ ]);
7
19
  //# sourceMappingURL=collection.js.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/collections/collection.ts"],"names":[],"mappings":";;;AAAA,qDAAgE;AAEhE,+CAAiD;AAMjD,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,+CAA0B,CAAA;AAC9B,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AACY,QAAA,UAAU,GAAG,cAAI,CAAC,MAAM,iCAChC,4BAAe,KAClB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE,IAC1B,CAAC;AAEU,QAAA,iBAAiB,GAAG,cAAI,CAAC,SAAS,CAAC;IAC9C,cAAI,CAAC,MAAM,CAAC;QACV,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;KACpC,CAAC;IACF,kBAAU;CACX,CAAC,CAAC"}
@@ -10,7 +10,7 @@ export declare class ActivepiecesError extends Error {
10
10
  error: ErrorParams;
11
11
  constructor(error: ErrorParams, message?: string);
12
12
  }
13
- declare type ErrorParams = CollectionNotFoundErrorParams | ConfigNotFoundErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InstanceNotFoundErrorParams | InvalidBearerTokenParams | InvalidCredentialsErrorParams | JobRemovalFailureErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | StepNotFoundErrorParams | AppConnectionNotFoundErrorParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidJwtTokenErrorParams | TaskQuotaExeceededErrorParams | TriggerFailedErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | OpenAiFailedErrorParams | FlowOperationErrorParams;
13
+ declare type ErrorParams = CollectionNotFoundErrorParams | ConfigNotFoundErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InstanceNotFoundErrorParams | InvalidBearerTokenParams | InvalidCredentialsErrorParams | JobRemovalFailureErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | StepNotFoundErrorParams | AppConnectionNotFoundErrorParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidJwtTokenErrorParams | TaskQuotaExeceededErrorParams | TriggerFailedErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | OpenAiFailedErrorParams | TestTriggerFailedErrorParams | FlowOperationErrorParams;
14
14
  export interface BaseErrorParams<T, V> {
15
15
  code: T;
16
16
  params: V;
@@ -95,6 +95,9 @@ export declare type InvalidJwtTokenErrorParams = BaseErrorParams<ErrorCode.INVAL
95
95
  export declare type TaskQuotaExeceededErrorParams = BaseErrorParams<ErrorCode.TASK_QUOTA_EXCEEDED, {
96
96
  projectId: string;
97
97
  }>;
98
+ export declare type TestTriggerFailedErrorParams = BaseErrorParams<ErrorCode.TEST_TRIGGER_FAILED, {
99
+ message: string;
100
+ }>;
98
101
  export declare enum ErrorCode {
99
102
  COLLECTION_NOT_FOUND = "COLLECTION_NOT_FOUND",
100
103
  COLLECTION_VERSION_NOT_FOUND = "COLLECTION_VERSION_NOT_FOUND",
@@ -120,6 +123,7 @@ export declare enum ErrorCode {
120
123
  SYSTEM_PROP_INVALID = "SYSTEM_PROP_INVALID",
121
124
  TRIGGER_FAILED = "TRIGGER_FAILED",
122
125
  FLOW_OPERATION_INVALID = "FLOW_OPERATION_INVALID",
123
- OPENAI_FAILED = "OPENAI_FAILED"
126
+ OPENAI_FAILED = "OPENAI_FAILED",
127
+ TEST_TRIGGER_FAILED = "TEST_TRIGGER_FAILED"
124
128
  }
125
129
  export {};
@@ -35,5 +35,6 @@ var ErrorCode;
35
35
  ErrorCode["TRIGGER_FAILED"] = "TRIGGER_FAILED";
36
36
  ErrorCode["FLOW_OPERATION_INVALID"] = "FLOW_OPERATION_INVALID";
37
37
  ErrorCode["OPENAI_FAILED"] = "OPENAI_FAILED";
38
+ ErrorCode["TEST_TRIGGER_FAILED"] = "TEST_TRIGGER_FAILED";
38
39
  })(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
39
40
  //# 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":";;;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;AA8LD,IAAY,SA0BX;AA1BD,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,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,4CAA+B,CAAA;AACjC,CAAC,EA1BW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QA0BpB"}
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;AAuMD,IAAY,SA2BX;AA3BD,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,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,4CAA+B,CAAA;IAC/B,wDAA2C,CAAA;AAC7C,CAAC,EA3BW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QA2BpB"}
@@ -6,5 +6,5 @@ export interface BaseModel<T> {
6
6
  export declare const BaseModelSchema: {
7
7
  id: import("@sinclair/typebox").TString<string>;
8
8
  created: import("@sinclair/typebox").TString<string>;
9
- update: import("@sinclair/typebox").TString<string>;
9
+ updated: import("@sinclair/typebox").TString<string>;
10
10
  };
@@ -5,6 +5,6 @@ const typebox_1 = require("@sinclair/typebox");
5
5
  exports.BaseModelSchema = {
6
6
  id: typebox_1.Type.String(),
7
7
  created: typebox_1.Type.String(),
8
- update: typebox_1.Type.String(),
8
+ updated: typebox_1.Type.String(),
9
9
  };
10
10
  //# sourceMappingURL=base-model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-model.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/base-model.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AAQ5B,QAAA,eAAe,GAAG;IAC7B,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,cAAI,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE;CACtB,CAAA"}
1
+ {"version":3,"file":"base-model.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/base-model.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AAQ5B,QAAA,eAAe,GAAG;IAC7B,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,cAAI,CAAC,MAAM,EAAE;IACtB,OAAO,EAAE,cAAI,CAAC,MAAM,EAAE;CACvB,CAAA"}
@@ -69,6 +69,11 @@ export interface AppEventListener {
69
69
  events: string[];
70
70
  identifierValue: string;
71
71
  }
72
+ export interface ExecuteTestOrRunTriggerResponse {
73
+ success: boolean;
74
+ message?: string;
75
+ output: unknown[];
76
+ }
72
77
  export interface ExecuteTriggerResponse {
73
78
  listeners: AppEventListener[];
74
79
  scheduleOptions: ScheduleOptions;
@@ -6,13 +6,15 @@ export declare const ListTriggerEventsRequest: import("@sinclair/typebox").TObje
6
6
  limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
7
7
  cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
8
8
  }>;
9
- export declare type ListTriggerEventsRequest = Omit<Omit<Static<typeof ListTriggerEventsRequest>, "flowId">, "cursor"> & {
9
+ export declare type ListTriggerEventsRequest = Omit<Static<typeof ListTriggerEventsRequest>, "flowId" | "cursor"> & {
10
10
  flowId: FlowId;
11
11
  cursor: Cursor | undefined;
12
12
  };
13
- export declare const TestTriggerRequest: import("@sinclair/typebox").TObject<{
13
+ export declare const TestPollingTriggerRequest: import("@sinclair/typebox").TObject<{
14
14
  flowId: import("@sinclair/typebox").TString<string>;
15
15
  }>;
16
- export declare type TestTriggerRequest = Omit<Static<typeof ListTriggerEventsRequest>, "flowId"> & {
17
- flowId: FlowId;
18
- };
16
+ export declare type TestPollingTriggerRequest = Static<typeof TestPollingTriggerRequest>;
17
+ export declare const SimulateTriggerRequest: import("@sinclair/typebox").TObject<{
18
+ flowId: import("@sinclair/typebox").TString<string>;
19
+ }>;
20
+ export declare type SimulateTriggerRequest = Static<typeof SimulateTriggerRequest>;
@@ -1,13 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TestTriggerRequest = exports.ListTriggerEventsRequest = void 0;
3
+ exports.SimulateTriggerRequest = exports.TestPollingTriggerRequest = exports.ListTriggerEventsRequest = void 0;
4
4
  const typebox_1 = require("@sinclair/typebox");
5
5
  exports.ListTriggerEventsRequest = typebox_1.Type.Object({
6
6
  flowId: typebox_1.Type.String({}),
7
7
  limit: typebox_1.Type.Optional(typebox_1.Type.Number({})),
8
8
  cursor: typebox_1.Type.Optional(typebox_1.Type.String({})),
9
9
  });
10
- exports.TestTriggerRequest = typebox_1.Type.Object({
10
+ exports.TestPollingTriggerRequest = typebox_1.Type.Object({
11
+ flowId: typebox_1.Type.String({}),
12
+ });
13
+ exports.SimulateTriggerRequest = typebox_1.Type.Object({
11
14
  flowId: typebox_1.Type.String({}),
12
15
  });
13
16
  //# sourceMappingURL=trigger-events-dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"trigger-events-dto.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/trigger-events/trigger-events-dto.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAIpC,QAAA,wBAAwB,GAAG,cAAI,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IACvB,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;AAIU,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;CAC1B,CAAC,CAAC"}
1
+ {"version":3,"file":"trigger-events-dto.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/trigger-events/trigger-events-dto.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAIpC,QAAA,wBAAwB,GAAG,cAAI,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IACvB,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;AAOU,QAAA,yBAAyB,GAAG,cAAI,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;CAC1B,CAAC,CAAC;AAIU,QAAA,sBAAsB,GAAG,cAAI,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;CACxB,CAAC,CAAC"}
@@ -8,3 +8,7 @@ export declare const UpsertInstanceRequest: import("@sinclair/typebox").TObject<
8
8
  export declare type UpsertInstanceRequest = Omit<Static<typeof UpsertInstanceRequest>, "collectionId"> & {
9
9
  collectionId: CollectionId;
10
10
  };
11
+ export declare const UpdateInstanceRequest: import("@sinclair/typebox").TObject<{
12
+ status: import("@sinclair/typebox").TEnum<typeof InstanceStatus>;
13
+ }>;
14
+ export declare type UpdateInstanceRequest = Static<typeof UpdateInstanceRequest>;
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpsertInstanceRequest = void 0;
3
+ exports.UpdateInstanceRequest = exports.UpsertInstanceRequest = void 0;
4
4
  const typebox_1 = require("@sinclair/typebox");
5
5
  const model_1 = require("../model");
6
6
  exports.UpsertInstanceRequest = typebox_1.Type.Object({
7
7
  collectionId: typebox_1.Type.String(),
8
8
  status: typebox_1.Type.Enum(model_1.InstanceStatus),
9
9
  });
10
+ exports.UpdateInstanceRequest = typebox_1.Type.Object({
11
+ status: typebox_1.Type.Enum(model_1.InstanceStatus),
12
+ });
10
13
  //# sourceMappingURL=upsert-instance-request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"upsert-instance-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/instance/dto/upsert-instance-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAEjD,oCAA0C;AAE7B,QAAA,qBAAqB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC7C,YAAY,EAAE,cAAI,CAAC,MAAM,EAAE;IAC3B,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,sBAAc,CAAC;CACpC,CAAC,CAAC"}
1
+ {"version":3,"file":"upsert-instance-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/instance/dto/upsert-instance-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAEjD,oCAA0C;AAE7B,QAAA,qBAAqB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC7C,YAAY,EAAE,cAAI,CAAC,MAAM,EAAE;IAC3B,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,sBAAc,CAAC;CACpC,CAAC,CAAC;AAQU,QAAA,qBAAqB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,sBAAc,CAAC;CACpC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Static } from "@sinclair/typebox";
2
+ export declare const WebhookUrlParams: import("@sinclair/typebox").TObject<{
3
+ flowId: import("@sinclair/typebox").TString<string>;
4
+ }>;
5
+ export declare type WebhookUrlParams = Static<typeof WebhookUrlParams>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookUrlParams = void 0;
4
+ const typebox_1 = require("@sinclair/typebox");
5
+ const id_generator_1 = require("../common/id-generator");
6
+ exports.WebhookUrlParams = typebox_1.Type.Object({
7
+ flowId: id_generator_1.ApId,
8
+ });
9
+ //# sourceMappingURL=dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dto.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/webhook/dto.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD,yDAA8C;AAEjC,QAAA,gBAAgB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,mBAAI;CACb,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./dto";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./dto"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/webhook/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB"}