@activepieces/shared 0.3.3 → 0.3.4

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.3",
3
+ "version": "0.3.4",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@sinclair/typebox": "0.26.3",
@@ -135,6 +135,9 @@ export declare const UpdateTriggerRequest: import("@sinclair/typebox").TUnion<[i
135
135
  pieceVersion: import("@sinclair/typebox").TString<string>;
136
136
  triggerName: import("@sinclair/typebox").TString<string>;
137
137
  input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>;
138
+ inputUiInfo: import("@sinclair/typebox").TObject<{
139
+ currentSelectedData: import("@sinclair/typebox").TUnknown;
140
+ }>;
138
141
  }>;
139
142
  name: import("@sinclair/typebox").TString<string>;
140
143
  valid: import("@sinclair/typebox").TBoolean;
@@ -281,6 +284,9 @@ export declare const FlowOperationRequest: import("@sinclair/typebox").TUnion<[i
281
284
  pieceVersion: import("@sinclair/typebox").TString<string>;
282
285
  triggerName: import("@sinclair/typebox").TString<string>;
283
286
  input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>;
287
+ inputUiInfo: import("@sinclair/typebox").TObject<{
288
+ currentSelectedData: import("@sinclair/typebox").TUnknown;
289
+ }>;
284
290
  }>;
285
291
  name: import("@sinclair/typebox").TString<string>;
286
292
  valid: import("@sinclair/typebox").TBoolean;
@@ -1,10 +1,6 @@
1
1
  import { Static } from "@sinclair/typebox";
2
2
  import { Cursor } from "../../common/seek-page";
3
3
  import { FlowId } from "../flow";
4
- export declare const ListenForTriggerEventsRequest: import("@sinclair/typebox").TObject<{
5
- flowId: import("@sinclair/typebox").TString<string>;
6
- }>;
7
- export declare type ListenForTriggerEventsRequest = Static<typeof ListenForTriggerEventsRequest>;
8
4
  export declare const ListTriggerEventsRequest: import("@sinclair/typebox").TObject<{
9
5
  flowId: import("@sinclair/typebox").TString<string>;
10
6
  limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
@@ -14,3 +10,9 @@ export declare type ListTriggerEventsRequest = Omit<Omit<Static<typeof ListTrigg
14
10
  flowId: FlowId;
15
11
  cursor: Cursor | undefined;
16
12
  };
13
+ export declare const TestTriggerRequest: import("@sinclair/typebox").TObject<{
14
+ flowId: import("@sinclair/typebox").TString<string>;
15
+ }>;
16
+ export declare type TestTriggerRequest = Omit<Static<typeof ListTriggerEventsRequest>, "flowId"> & {
17
+ flowId: FlowId;
18
+ };
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListTriggerEventsRequest = exports.ListenForTriggerEventsRequest = void 0;
3
+ exports.TestTriggerRequest = exports.ListTriggerEventsRequest = void 0;
4
4
  const typebox_1 = require("@sinclair/typebox");
5
- exports.ListenForTriggerEventsRequest = typebox_1.Type.Object({
6
- flowId: typebox_1.Type.String(),
7
- });
8
5
  exports.ListTriggerEventsRequest = typebox_1.Type.Object({
9
6
  flowId: typebox_1.Type.String({}),
10
7
  limit: typebox_1.Type.Optional(typebox_1.Type.Number({})),
11
8
  cursor: typebox_1.Type.Optional(typebox_1.Type.String({})),
12
9
  });
10
+ exports.TestTriggerRequest = typebox_1.Type.Object({
11
+ flowId: typebox_1.Type.String({}),
12
+ });
13
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,6BAA6B,GAAG,cAAI,CAAC,MAAM,CAAC;IACrD,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAIU,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"}
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"}
@@ -36,6 +36,9 @@ export declare const PieceTriggerSettings: import("@sinclair/typebox").TObject<{
36
36
  pieceVersion: import("@sinclair/typebox").TString<string>;
37
37
  triggerName: import("@sinclair/typebox").TString<string>;
38
38
  input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>;
39
+ inputUiInfo: import("@sinclair/typebox").TObject<{
40
+ currentSelectedData: import("@sinclair/typebox").TUnknown;
41
+ }>;
39
42
  }>;
40
43
  export declare type PieceTriggerSettings = Static<typeof PieceTriggerSettings>;
41
44
  export declare const PieceTrigger: import("@sinclair/typebox").TObject<{
@@ -45,6 +48,9 @@ export declare const PieceTrigger: import("@sinclair/typebox").TObject<{
45
48
  pieceVersion: import("@sinclair/typebox").TString<string>;
46
49
  triggerName: import("@sinclair/typebox").TString<string>;
47
50
  input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>;
51
+ inputUiInfo: import("@sinclair/typebox").TObject<{
52
+ currentSelectedData: import("@sinclair/typebox").TUnknown;
53
+ }>;
48
54
  }>;
49
55
  name: import("@sinclair/typebox").TString<string>;
50
56
  valid: import("@sinclair/typebox").TBoolean;
@@ -70,6 +76,9 @@ export declare const Trigger: import("@sinclair/typebox").TUnion<[import("@sincl
70
76
  pieceVersion: import("@sinclair/typebox").TString<string>;
71
77
  triggerName: import("@sinclair/typebox").TString<string>;
72
78
  input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>;
79
+ inputUiInfo: import("@sinclair/typebox").TObject<{
80
+ currentSelectedData: import("@sinclair/typebox").TUnknown;
81
+ }>;
73
82
  }>;
74
83
  name: import("@sinclair/typebox").TString<string>;
75
84
  valid: import("@sinclair/typebox").TBoolean;
@@ -30,7 +30,8 @@ exports.PieceTriggerSettings = typebox_1.Type.Object({
30
30
  pieceName: typebox_1.Type.String({}),
31
31
  pieceVersion: pieces_1.SemVerType,
32
32
  triggerName: typebox_1.Type.String({}),
33
- input: typebox_1.Type.Record(typebox_1.Type.String({}), typebox_1.Type.Any())
33
+ input: typebox_1.Type.Record(typebox_1.Type.String({}), typebox_1.Type.Any()),
34
+ inputUiInfo: sample_data_1.SampleDataSettingsObject
34
35
  });
35
36
  exports.PieceTrigger = typebox_1.Type.Object(Object.assign(Object.assign({}, commonProps), { type: typebox_1.Type.Literal(TriggerType.PIECE), settings: exports.PieceTriggerSettings }));
36
37
  exports.Trigger = typebox_1.Type.Union([
@@ -1 +1 @@
1
- {"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/triggers/trigger.ts"],"names":[],"mappings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AE,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,cAAI,CAAC,GAAG,EAAE,CAAC;CAChD,CAAC,CAAC;AAIU,QAAA,YAAY,GAAG,cAAI,CAAC,MAAM,iCAClC,WAAW,KACd,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,EACrC,QAAQ,EAAE,4BAAoB,IAC9B,CAAC;AAIU,QAAA,OAAO,GAAG,cAAI,CAAC,KAAK,CAAC;IAChC,sBAAc;IACd,oBAAY;IACZ,oBAAY;CACb,CAAC,CAAC"}
1
+ {"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/triggers/trigger.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD,yCAA0C;AAC1C,gDAA0D;AAE1D,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,8CAA2B,CAAA;AAC7B,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;AACzB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AAED,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IACrB,KAAK,EAAE,cAAI,CAAC,OAAO,CAAC,EAAE,CAAC;IACvB,WAAW,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IAC5B,UAAU,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,GAAG,EAAE,CAAC;CACtC,CAAA;AAEY,QAAA,YAAY,GAAG,cAAI,CAAC,MAAM,iCAClC,WAAW,KACd,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,EACrC,Q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