@activepieces/shared 0.5.4 → 0.5.5

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.5.4",
3
+ "version": "0.5.5",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@sinclair/typebox": "^0.26.3",
@@ -15,6 +15,7 @@ export declare enum EngineOperationType {
15
15
  export declare enum TriggerHookType {
16
16
  ON_ENABLE = "ON_ENABLE",
17
17
  ON_DISABLE = "ON_DISABLE",
18
+ HANDSHAKE = "HANDSHAKE",
18
19
  RUN = "RUN",
19
20
  TEST = "TEST"
20
21
  }
@@ -106,11 +107,20 @@ interface ExecuteTestOrRunTriggerResponse {
106
107
  message?: string;
107
108
  output: unknown[];
108
109
  }
110
+ interface ExecuteHandshakeTriggerResponse {
111
+ success: boolean;
112
+ message?: string;
113
+ response?: {
114
+ status: number;
115
+ body?: any;
116
+ headers?: Record<string, string>;
117
+ };
118
+ }
109
119
  interface ExecuteOnEnableTriggerResponse {
110
120
  listeners: AppEventListener[];
111
121
  scheduleOptions?: ScheduleOptions;
112
122
  }
113
- export type ExecuteTriggerResponse<H extends TriggerHookType> = H extends TriggerHookType.RUN ? ExecuteTestOrRunTriggerResponse : H extends TriggerHookType.TEST ? ExecuteTestOrRunTriggerResponse : H extends TriggerHookType.ON_DISABLE ? Record<string, never> : ExecuteOnEnableTriggerResponse;
123
+ export type ExecuteTriggerResponse<H extends TriggerHookType> = H extends TriggerHookType.RUN ? ExecuteTestOrRunTriggerResponse : H extends TriggerHookType.HANDSHAKE ? ExecuteHandshakeTriggerResponse : H extends TriggerHookType.TEST ? ExecuteTestOrRunTriggerResponse : H extends TriggerHookType.ON_DISABLE ? Record<string, never> : ExecuteOnEnableTriggerResponse;
114
124
  export type ExecuteActionResponse = {
115
125
  success: boolean;
116
126
  output: unknown;
@@ -14,6 +14,7 @@ var TriggerHookType;
14
14
  (function (TriggerHookType) {
15
15
  TriggerHookType["ON_ENABLE"] = "ON_ENABLE";
16
16
  TriggerHookType["ON_DISABLE"] = "ON_DISABLE";
17
+ TriggerHookType["HANDSHAKE"] = "HANDSHAKE";
17
18
  TriggerHookType["RUN"] = "RUN";
18
19
  TriggerHookType["TEST"] = "TEST";
19
20
  })(TriggerHookType || (exports.TriggerHookType = TriggerHookType = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"engine-operation.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/engine-operation.ts"],"names":[],"mappings":";;;AAOA,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC3B,wEAAiD,CAAA;IACjD,wDAAiC,CAAA;IACjC,oDAA6B,CAAA;IAC7B,oDAA6B,CAAA;IAC7B,4DAAqC,CAAA;IACrC,oEAA6C,CAAA;AACjD,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AAED,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,4CAAyB,CAAA;IACzB,8BAAW,CAAA;IACX,gCAAa,CAAA;AACjB,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAuGA,CAAC;AAmCF,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,iCAAS,CAAA;IACT,uCAAe,CAAA;IACf,2CAAmB,CAAA;AACvB,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B"}
1
+ {"version":3,"file":"engine-operation.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/engine-operation.ts"],"names":[],"mappings":";;;AAOA,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC3B,wEAAiD,CAAA;IACjD,wDAAiC,CAAA;IACjC,oDAA6B,CAAA;IAC7B,oDAA6B,CAAA;IAC7B,4DAAqC,CAAA;IACrC,oEAA6C,CAAA;AACjD,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AAED,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,4CAAyB,CAAA;IACzB,0CAAuB,CAAA;IACvB,8BAAW,CAAA;IACX,gCAAa,CAAA;AACjB,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B;AAuGA,CAAC;AA8CF,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,iCAAS,CAAA;IACT,uCAAe,CAAA;IACf,2CAAmB,CAAA;AACvB,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B"}