@activepieces/shared 0.3.7 → 0.3.8

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.7",
3
+ "version": "0.3.8",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@sinclair/typebox": "0.26.8",
@@ -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 | TestTriggerFailedErrorParams | 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 | EntityNotFoundErrorParams;
14
14
  export interface BaseErrorParams<T, V> {
15
15
  code: T;
16
16
  params: V;
@@ -98,6 +98,9 @@ export declare type TaskQuotaExeceededErrorParams = BaseErrorParams<ErrorCode.TA
98
98
  export declare type TestTriggerFailedErrorParams = BaseErrorParams<ErrorCode.TEST_TRIGGER_FAILED, {
99
99
  message: string;
100
100
  }>;
101
+ export declare type EntityNotFoundErrorParams = BaseErrorParams<ErrorCode.ENTITY_NOT_FOUND, {
102
+ message: string;
103
+ }>;
101
104
  export declare enum ErrorCode {
102
105
  COLLECTION_NOT_FOUND = "COLLECTION_NOT_FOUND",
103
106
  COLLECTION_VERSION_NOT_FOUND = "COLLECTION_VERSION_NOT_FOUND",
@@ -124,6 +127,7 @@ export declare enum ErrorCode {
124
127
  TRIGGER_FAILED = "TRIGGER_FAILED",
125
128
  FLOW_OPERATION_INVALID = "FLOW_OPERATION_INVALID",
126
129
  OPENAI_FAILED = "OPENAI_FAILED",
127
- TEST_TRIGGER_FAILED = "TEST_TRIGGER_FAILED"
130
+ TEST_TRIGGER_FAILED = "TEST_TRIGGER_FAILED",
131
+ ENTITY_NOT_FOUND = "ENTITY_NOT_FOUND"
128
132
  }
129
133
  export {};
@@ -36,5 +36,6 @@ var ErrorCode;
36
36
  ErrorCode["FLOW_OPERATION_INVALID"] = "FLOW_OPERATION_INVALID";
37
37
  ErrorCode["OPENAI_FAILED"] = "OPENAI_FAILED";
38
38
  ErrorCode["TEST_TRIGGER_FAILED"] = "TEST_TRIGGER_FAILED";
39
+ ErrorCode["ENTITY_NOT_FOUND"] = "ENTITY_NOT_FOUND";
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":";;;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"}
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;AA8MD,IAAY,SA4BX;AA5BD,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;IAC3C,kDAAqC,CAAA;AACvC,CAAC,EA5BW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QA4BpB"}
@@ -14,7 +14,3 @@ export declare const TestPollingTriggerRequest: import("@sinclair/typebox").TObj
14
14
  flowId: import("@sinclair/typebox").TString<string>;
15
15
  }>;
16
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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SimulateTriggerRequest = exports.TestPollingTriggerRequest = exports.ListTriggerEventsRequest = void 0;
3
+ 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({}),
@@ -10,7 +10,4 @@ exports.ListTriggerEventsRequest = typebox_1.Type.Object({
10
10
  exports.TestPollingTriggerRequest = typebox_1.Type.Object({
11
11
  flowId: typebox_1.Type.String({}),
12
12
  });
13
- exports.SimulateTriggerRequest = typebox_1.Type.Object({
14
- flowId: typebox_1.Type.String({}),
15
- });
16
13
  //# 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;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"}
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"}
@@ -1 +1,2 @@
1
1
  export * from "./dto";
2
+ export * from "./webhook-simulation";
@@ -2,4 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./dto"), exports);
5
+ tslib_1.__exportStar(require("./webhook-simulation"), exports);
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/webhook/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/webhook/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB;AACtB,+DAAqC"}
@@ -0,0 +1,9 @@
1
+ import { BaseModel } from '../common/base-model';
2
+ import { ApId } from '../common/id-generator';
3
+ import { FlowId } from '../flows/flow';
4
+ import { ProjectId } from '../project/project';
5
+ export declare type WebhookSimulationId = ApId;
6
+ export declare type WebhookSimulation = BaseModel<WebhookSimulationId> & {
7
+ flowId: FlowId;
8
+ projectId: ProjectId;
9
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=webhook-simulation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook-simulation.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/webhook/webhook-simulation.ts"],"names":[],"mappings":""}