@activepieces/shared 0.17.6 → 0.17.7
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 +5 -2
- package/src/index.js +5 -2
- package/src/index.js.map +1 -1
- package/src/lib/agents/index.d.ts +1 -0
- package/src/lib/agents/index.js +1 -0
- package/src/lib/agents/index.js.map +1 -1
- package/src/lib/common/activepieces-error.d.ts +3 -0
- package/src/lib/common/activepieces-error.js.map +1 -1
- package/src/lib/common/telemetry.d.ts +7 -2
- package/src/lib/common/telemetry.js +1 -0
- package/src/lib/common/telemetry.js.map +1 -1
- package/src/lib/engine/engine-operation.d.ts +1 -5
- package/src/lib/engine/engine-operation.js.map +1 -1
- package/src/lib/file/index.d.ts +1 -0
- package/src/lib/file/index.js +1 -0
- package/src/lib/file/index.js.map +1 -1
- package/src/lib/flag/flag.d.ts +2 -3
- package/src/lib/flag/flag.js +1 -2
- package/src/lib/flag/flag.js.map +1 -1
- package/src/lib/flow-run/execution/step-output.d.ts +9 -9
- package/src/lib/flow-run/execution/step-output.js +2 -2
- package/src/lib/flow-run/execution/step-output.js.map +1 -1
- package/src/lib/flows/actions/action.d.ts +21 -21
- package/src/lib/flows/actions/action.js +14 -14
- package/src/lib/flows/actions/action.js.map +1 -1
- package/src/lib/flows/dto/flow-template-request.d.ts +6 -6
- package/src/lib/flows/flow-version.d.ts +2 -2
- package/src/lib/flows/flow-version.js +1 -1
- package/src/lib/flows/flow-version.js.map +1 -1
- package/src/lib/flows/flow.d.ts +13 -43
- package/src/lib/flows/flow.js +4 -23
- package/src/lib/flows/flow.js.map +1 -1
- package/src/lib/flows/operations/add-action-util.d.ts +3 -3
- package/src/lib/flows/operations/add-action-util.js.map +1 -1
- package/src/lib/flows/operations/add-action.js +10 -10
- package/src/lib/flows/operations/add-action.js.map +1 -1
- package/src/lib/flows/operations/add-branch.js +1 -1
- package/src/lib/flows/operations/add-branch.js.map +1 -1
- package/src/lib/flows/operations/copy-action-operations.d.ts +2 -2
- package/src/lib/flows/operations/copy-action-operations.js.map +1 -1
- package/src/lib/flows/operations/delete-action.js +2 -2
- package/src/lib/flows/operations/delete-action.js.map +1 -1
- package/src/lib/flows/operations/delete-branch.js +1 -1
- package/src/lib/flows/operations/delete-branch.js.map +1 -1
- package/src/lib/flows/operations/duplicate-step.js.map +1 -1
- package/src/lib/flows/operations/import-flow.d.ts +3 -3
- package/src/lib/flows/operations/import-flow.js +10 -10
- package/src/lib/flows/operations/import-flow.js.map +1 -1
- package/src/lib/flows/operations/index.d.ts +37 -37
- package/src/lib/flows/operations/index.js +1 -1
- package/src/lib/flows/operations/index.js.map +1 -1
- package/src/lib/flows/operations/migrations/flow-migration-util.d.ts +3 -3
- package/src/lib/flows/operations/migrations/flow-migration-util.js +1 -1
- package/src/lib/flows/operations/migrations/flow-migration-util.js.map +1 -1
- package/src/lib/flows/operations/migrations/index.d.ts +2 -2
- package/src/lib/flows/operations/migrations/migrate-v0-branch-to-router.js +1 -1
- package/src/lib/flows/operations/migrations/migrate-v0-branch-to-router.js.map +1 -1
- package/src/lib/flows/operations/move-branch.js +1 -1
- package/src/lib/flows/operations/move-branch.js.map +1 -1
- package/src/lib/flows/operations/paste-operations.d.ts +14 -14
- package/src/lib/flows/operations/paste-operations.js.map +1 -1
- package/src/lib/flows/operations/update-action.js +8 -8
- package/src/lib/flows/operations/update-action.js.map +1 -1
- package/src/lib/flows/operations/update-trigger.js +5 -5
- package/src/lib/flows/operations/update-trigger.js.map +1 -1
- package/src/lib/flows/test-trigger.d.ts +4 -0
- package/src/lib/flows/test-trigger.js +4 -1
- package/src/lib/flows/test-trigger.js.map +1 -1
- package/src/lib/flows/{trigger-events → triggers/trigger-events}/trigger-event.d.ts +1 -1
- package/src/lib/flows/triggers/trigger-events/trigger-event.js.map +1 -0
- package/src/lib/flows/{trigger-events → triggers/trigger-events}/trigger-events-dto.d.ts +5 -4
- package/src/lib/flows/{trigger-events → triggers/trigger-events}/trigger-events-dto.js +3 -2
- package/src/lib/flows/triggers/trigger-events/trigger-events-dto.js.map +1 -0
- package/src/lib/flows/triggers/trigger-run.d.ts +39 -0
- package/src/lib/flows/triggers/trigger-run.js +30 -0
- package/src/lib/flows/triggers/trigger-run.js.map +1 -0
- package/src/lib/flows/triggers/trigger.d.ts +7 -7
- package/src/lib/flows/triggers/trigger.js +9 -9
- package/src/lib/flows/triggers/trigger.js.map +1 -1
- package/src/lib/flows/util/flow-piece-util.d.ts +2 -2
- package/src/lib/flows/util/flow-piece-util.js +3 -3
- package/src/lib/flows/util/flow-piece-util.js.map +1 -1
- package/src/lib/flows/util/flow-structure-util.d.ts +10 -10
- package/src/lib/flows/util/flow-structure-util.js +7 -7
- package/src/lib/flows/util/flow-structure-util.js.map +1 -1
- package/src/lib/mcp/mcp.d.ts +13 -12
- package/src/lib/mcp/tools/mcp-tool.d.ts +26 -24
- package/src/lib/project-release/project-state.d.ts +130 -120
- package/src/lib/todos/index.d.ts +13 -12
- package/src/lib/trigger/index.d.ts +49 -0
- package/src/lib/trigger/index.js +33 -0
- package/src/lib/trigger/index.js.map +1 -0
- package/src/lib/webhook/index.d.ts +0 -1
- package/src/lib/webhook/index.js +0 -1
- package/src/lib/webhook/index.js.map +1 -1
- package/src/lib/workers/index.d.ts +2 -0
- package/src/lib/workers/index.js +2 -0
- package/src/lib/workers/index.js.map +1 -1
- package/src/lib/flows/trigger-events/trigger-event.js.map +0 -1
- package/src/lib/flows/trigger-events/trigger-events-dto.js.map +0 -1
- package/src/lib/webhook/webhook-simulation.d.ts +0 -9
- package/src/lib/webhook/webhook-simulation.js +0 -3
- package/src/lib/webhook/webhook-simulation.js.map +0 -1
- /package/src/lib/flows/{trigger-events → triggers/trigger-events}/trigger-event.js +0 -0
|
@@ -19,22 +19,12 @@ export declare const FlowState: import("@sinclair/typebox").TObject<{
|
|
|
19
19
|
projectId: import("@sinclair/typebox").TString;
|
|
20
20
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
21
21
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
22
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
23
|
-
failureCount?: number | undefined;
|
|
24
|
-
type: import("../flows/flow").ScheduleType;
|
|
25
|
-
cronExpression: string;
|
|
26
|
-
timezone: string;
|
|
27
|
-
} | null>>;
|
|
28
|
-
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
29
|
-
paramName?: string | undefined;
|
|
30
|
-
strategy: import("../flows/flow").WebhookHandshakeStrategy;
|
|
31
|
-
} | null>>;
|
|
32
22
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
33
23
|
version: import("@sinclair/typebox").TObject<{
|
|
34
24
|
flowId: import("@sinclair/typebox").TString;
|
|
35
25
|
displayName: import("@sinclair/typebox").TString;
|
|
36
26
|
trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
37
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
27
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.PIECE>;
|
|
38
28
|
settings: import("@sinclair/typebox").TObject<{
|
|
39
29
|
pieceName: import("@sinclair/typebox").TString;
|
|
40
30
|
pieceVersion: import("@sinclair/typebox").TString;
|
|
@@ -54,7 +44,7 @@ export declare const FlowState: import("@sinclair/typebox").TObject<{
|
|
|
54
44
|
displayName: import("@sinclair/typebox").TString;
|
|
55
45
|
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
56
46
|
}>, import("@sinclair/typebox").TObject<{
|
|
57
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
47
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.EMPTY>;
|
|
58
48
|
settings: import("@sinclair/typebox").TAny;
|
|
59
49
|
name: import("@sinclair/typebox").TString;
|
|
60
50
|
valid: import("@sinclair/typebox").TBoolean;
|
|
@@ -71,6 +61,17 @@ export declare const FlowState: import("@sinclair/typebox").TObject<{
|
|
|
71
61
|
created: import("@sinclair/typebox").TString;
|
|
72
62
|
updated: import("@sinclair/typebox").TString;
|
|
73
63
|
}>;
|
|
64
|
+
triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
65
|
+
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
66
|
+
paramName?: string | undefined;
|
|
67
|
+
strategy: import("../trigger").WebhookHandshakeStrategy;
|
|
68
|
+
} | null>>;
|
|
69
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
70
|
+
type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
|
|
71
|
+
cronExpression: string;
|
|
72
|
+
timezone: string;
|
|
73
|
+
} | null>>;
|
|
74
|
+
}>>;
|
|
74
75
|
}>;
|
|
75
76
|
export declare enum TableOperationType {
|
|
76
77
|
UPDATE_TABLE = "UPDATE_TABLE",
|
|
@@ -122,22 +123,12 @@ export declare const ProjectState: import("@sinclair/typebox").TObject<{
|
|
|
122
123
|
projectId: import("@sinclair/typebox").TString;
|
|
123
124
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
124
125
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
125
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
126
|
-
failureCount?: number | undefined;
|
|
127
|
-
type: import("../flows/flow").ScheduleType;
|
|
128
|
-
cronExpression: string;
|
|
129
|
-
timezone: string;
|
|
130
|
-
} | null>>;
|
|
131
|
-
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
132
|
-
paramName?: string | undefined;
|
|
133
|
-
strategy: import("../flows/flow").WebhookHandshakeStrategy;
|
|
134
|
-
} | null>>;
|
|
135
126
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
136
127
|
version: import("@sinclair/typebox").TObject<{
|
|
137
128
|
flowId: import("@sinclair/typebox").TString;
|
|
138
129
|
displayName: import("@sinclair/typebox").TString;
|
|
139
130
|
trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
140
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
131
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.PIECE>;
|
|
141
132
|
settings: import("@sinclair/typebox").TObject<{
|
|
142
133
|
pieceName: import("@sinclair/typebox").TString;
|
|
143
134
|
pieceVersion: import("@sinclair/typebox").TString;
|
|
@@ -157,7 +148,7 @@ export declare const ProjectState: import("@sinclair/typebox").TObject<{
|
|
|
157
148
|
displayName: import("@sinclair/typebox").TString;
|
|
158
149
|
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
159
150
|
}>, import("@sinclair/typebox").TObject<{
|
|
160
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
151
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.EMPTY>;
|
|
161
152
|
settings: import("@sinclair/typebox").TAny;
|
|
162
153
|
name: import("@sinclair/typebox").TString;
|
|
163
154
|
valid: import("@sinclair/typebox").TBoolean;
|
|
@@ -174,6 +165,17 @@ export declare const ProjectState: import("@sinclair/typebox").TObject<{
|
|
|
174
165
|
created: import("@sinclair/typebox").TString;
|
|
175
166
|
updated: import("@sinclair/typebox").TString;
|
|
176
167
|
}>;
|
|
168
|
+
triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
169
|
+
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
170
|
+
paramName?: string | undefined;
|
|
171
|
+
strategy: import("../trigger").WebhookHandshakeStrategy;
|
|
172
|
+
} | null>>;
|
|
173
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
174
|
+
type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
|
|
175
|
+
cronExpression: string;
|
|
176
|
+
timezone: string;
|
|
177
|
+
} | null>>;
|
|
178
|
+
}>>;
|
|
177
179
|
}>>;
|
|
178
180
|
connections: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
179
181
|
externalId: import("@sinclair/typebox").TString;
|
|
@@ -210,22 +212,12 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
210
212
|
projectId: import("@sinclair/typebox").TString;
|
|
211
213
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
212
214
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
213
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
214
|
-
failureCount?: number | undefined;
|
|
215
|
-
type: import("../flows/flow").ScheduleType;
|
|
216
|
-
cronExpression: string;
|
|
217
|
-
timezone: string;
|
|
218
|
-
} | null>>;
|
|
219
|
-
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
220
|
-
paramName?: string | undefined;
|
|
221
|
-
strategy: import("../flows/flow").WebhookHandshakeStrategy;
|
|
222
|
-
} | null>>;
|
|
223
215
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
224
216
|
version: import("@sinclair/typebox").TObject<{
|
|
225
217
|
flowId: import("@sinclair/typebox").TString;
|
|
226
218
|
displayName: import("@sinclair/typebox").TString;
|
|
227
219
|
trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
228
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
220
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.PIECE>;
|
|
229
221
|
settings: import("@sinclair/typebox").TObject<{
|
|
230
222
|
pieceName: import("@sinclair/typebox").TString;
|
|
231
223
|
pieceVersion: import("@sinclair/typebox").TString;
|
|
@@ -245,7 +237,7 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
245
237
|
displayName: import("@sinclair/typebox").TString;
|
|
246
238
|
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
247
239
|
}>, import("@sinclair/typebox").TObject<{
|
|
248
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
240
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.EMPTY>;
|
|
249
241
|
settings: import("@sinclair/typebox").TAny;
|
|
250
242
|
name: import("@sinclair/typebox").TString;
|
|
251
243
|
valid: import("@sinclair/typebox").TBoolean;
|
|
@@ -262,6 +254,17 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
262
254
|
created: import("@sinclair/typebox").TString;
|
|
263
255
|
updated: import("@sinclair/typebox").TString;
|
|
264
256
|
}>;
|
|
257
|
+
triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
258
|
+
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
259
|
+
paramName?: string | undefined;
|
|
260
|
+
strategy: import("../trigger").WebhookHandshakeStrategy;
|
|
261
|
+
} | null>>;
|
|
262
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
263
|
+
type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
|
|
264
|
+
cronExpression: string;
|
|
265
|
+
timezone: string;
|
|
266
|
+
} | null>>;
|
|
267
|
+
}>>;
|
|
265
268
|
}>;
|
|
266
269
|
flowState: import("@sinclair/typebox").TObject<{
|
|
267
270
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
@@ -274,22 +277,12 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
274
277
|
projectId: import("@sinclair/typebox").TString;
|
|
275
278
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
276
279
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
277
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
278
|
-
failureCount?: number | undefined;
|
|
279
|
-
type: import("../flows/flow").ScheduleType;
|
|
280
|
-
cronExpression: string;
|
|
281
|
-
timezone: string;
|
|
282
|
-
} | null>>;
|
|
283
|
-
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
284
|
-
paramName?: string | undefined;
|
|
285
|
-
strategy: import("../flows/flow").WebhookHandshakeStrategy;
|
|
286
|
-
} | null>>;
|
|
287
280
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
288
281
|
version: import("@sinclair/typebox").TObject<{
|
|
289
282
|
flowId: import("@sinclair/typebox").TString;
|
|
290
283
|
displayName: import("@sinclair/typebox").TString;
|
|
291
284
|
trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
292
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
285
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.PIECE>;
|
|
293
286
|
settings: import("@sinclair/typebox").TObject<{
|
|
294
287
|
pieceName: import("@sinclair/typebox").TString;
|
|
295
288
|
pieceVersion: import("@sinclair/typebox").TString;
|
|
@@ -309,7 +302,7 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
309
302
|
displayName: import("@sinclair/typebox").TString;
|
|
310
303
|
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
311
304
|
}>, import("@sinclair/typebox").TObject<{
|
|
312
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
305
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.EMPTY>;
|
|
313
306
|
settings: import("@sinclair/typebox").TAny;
|
|
314
307
|
name: import("@sinclair/typebox").TString;
|
|
315
308
|
valid: import("@sinclair/typebox").TBoolean;
|
|
@@ -326,6 +319,17 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
326
319
|
created: import("@sinclair/typebox").TString;
|
|
327
320
|
updated: import("@sinclair/typebox").TString;
|
|
328
321
|
}>;
|
|
322
|
+
triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
323
|
+
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
324
|
+
paramName?: string | undefined;
|
|
325
|
+
strategy: import("../trigger").WebhookHandshakeStrategy;
|
|
326
|
+
} | null>>;
|
|
327
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
328
|
+
type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
|
|
329
|
+
cronExpression: string;
|
|
330
|
+
timezone: string;
|
|
331
|
+
} | null>>;
|
|
332
|
+
}>>;
|
|
329
333
|
}>;
|
|
330
334
|
}>, import("@sinclair/typebox").TObject<{
|
|
331
335
|
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.CREATE_FLOW>;
|
|
@@ -340,22 +344,12 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
340
344
|
projectId: import("@sinclair/typebox").TString;
|
|
341
345
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
342
346
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
343
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
344
|
-
failureCount?: number | undefined;
|
|
345
|
-
type: import("../flows/flow").ScheduleType;
|
|
346
|
-
cronExpression: string;
|
|
347
|
-
timezone: string;
|
|
348
|
-
} | null>>;
|
|
349
|
-
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
350
|
-
paramName?: string | undefined;
|
|
351
|
-
strategy: import("../flows/flow").WebhookHandshakeStrategy;
|
|
352
|
-
} | null>>;
|
|
353
347
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
354
348
|
version: import("@sinclair/typebox").TObject<{
|
|
355
349
|
flowId: import("@sinclair/typebox").TString;
|
|
356
350
|
displayName: import("@sinclair/typebox").TString;
|
|
357
351
|
trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
358
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
352
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.PIECE>;
|
|
359
353
|
settings: import("@sinclair/typebox").TObject<{
|
|
360
354
|
pieceName: import("@sinclair/typebox").TString;
|
|
361
355
|
pieceVersion: import("@sinclair/typebox").TString;
|
|
@@ -375,7 +369,7 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
375
369
|
displayName: import("@sinclair/typebox").TString;
|
|
376
370
|
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
377
371
|
}>, import("@sinclair/typebox").TObject<{
|
|
378
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
372
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.EMPTY>;
|
|
379
373
|
settings: import("@sinclair/typebox").TAny;
|
|
380
374
|
name: import("@sinclair/typebox").TString;
|
|
381
375
|
valid: import("@sinclair/typebox").TBoolean;
|
|
@@ -392,6 +386,17 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
392
386
|
created: import("@sinclair/typebox").TString;
|
|
393
387
|
updated: import("@sinclair/typebox").TString;
|
|
394
388
|
}>;
|
|
389
|
+
triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
390
|
+
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
391
|
+
paramName?: string | undefined;
|
|
392
|
+
strategy: import("../trigger").WebhookHandshakeStrategy;
|
|
393
|
+
} | null>>;
|
|
394
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
395
|
+
type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
|
|
396
|
+
cronExpression: string;
|
|
397
|
+
timezone: string;
|
|
398
|
+
} | null>>;
|
|
399
|
+
}>>;
|
|
395
400
|
}>;
|
|
396
401
|
}>, import("@sinclair/typebox").TObject<{
|
|
397
402
|
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.DELETE_FLOW>;
|
|
@@ -406,22 +411,12 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
406
411
|
projectId: import("@sinclair/typebox").TString;
|
|
407
412
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
408
413
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
409
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
410
|
-
failureCount?: number | undefined;
|
|
411
|
-
type: import("../flows/flow").ScheduleType;
|
|
412
|
-
cronExpression: string;
|
|
413
|
-
timezone: string;
|
|
414
|
-
} | null>>;
|
|
415
|
-
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
416
|
-
paramName?: string | undefined;
|
|
417
|
-
strategy: import("../flows/flow").WebhookHandshakeStrategy;
|
|
418
|
-
} | null>>;
|
|
419
414
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
420
415
|
version: import("@sinclair/typebox").TObject<{
|
|
421
416
|
flowId: import("@sinclair/typebox").TString;
|
|
422
417
|
displayName: import("@sinclair/typebox").TString;
|
|
423
418
|
trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
424
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
419
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.PIECE>;
|
|
425
420
|
settings: import("@sinclair/typebox").TObject<{
|
|
426
421
|
pieceName: import("@sinclair/typebox").TString;
|
|
427
422
|
pieceVersion: import("@sinclair/typebox").TString;
|
|
@@ -441,7 +436,7 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
441
436
|
displayName: import("@sinclair/typebox").TString;
|
|
442
437
|
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
443
438
|
}>, import("@sinclair/typebox").TObject<{
|
|
444
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
439
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.EMPTY>;
|
|
445
440
|
settings: import("@sinclair/typebox").TAny;
|
|
446
441
|
name: import("@sinclair/typebox").TString;
|
|
447
442
|
valid: import("@sinclair/typebox").TBoolean;
|
|
@@ -458,6 +453,17 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
458
453
|
created: import("@sinclair/typebox").TString;
|
|
459
454
|
updated: import("@sinclair/typebox").TString;
|
|
460
455
|
}>;
|
|
456
|
+
triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
457
|
+
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
458
|
+
paramName?: string | undefined;
|
|
459
|
+
strategy: import("../trigger").WebhookHandshakeStrategy;
|
|
460
|
+
} | null>>;
|
|
461
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
462
|
+
type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
|
|
463
|
+
cronExpression: string;
|
|
464
|
+
timezone: string;
|
|
465
|
+
} | null>>;
|
|
466
|
+
}>>;
|
|
461
467
|
}>;
|
|
462
468
|
}>]>;
|
|
463
469
|
export type ProjectOperation = Static<typeof ProjectOperation>;
|
|
@@ -547,22 +553,12 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
547
553
|
projectId: import("@sinclair/typebox").TString;
|
|
548
554
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
549
555
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
550
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
551
|
-
failureCount?: number | undefined;
|
|
552
|
-
type: import("../flows/flow").ScheduleType;
|
|
553
|
-
cronExpression: string;
|
|
554
|
-
timezone: string;
|
|
555
|
-
} | null>>;
|
|
556
|
-
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
557
|
-
paramName?: string | undefined;
|
|
558
|
-
strategy: import("../flows/flow").WebhookHandshakeStrategy;
|
|
559
|
-
} | null>>;
|
|
560
556
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
561
557
|
version: import("@sinclair/typebox").TObject<{
|
|
562
558
|
flowId: import("@sinclair/typebox").TString;
|
|
563
559
|
displayName: import("@sinclair/typebox").TString;
|
|
564
560
|
trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
565
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
561
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.PIECE>;
|
|
566
562
|
settings: import("@sinclair/typebox").TObject<{
|
|
567
563
|
pieceName: import("@sinclair/typebox").TString;
|
|
568
564
|
pieceVersion: import("@sinclair/typebox").TString;
|
|
@@ -582,7 +578,7 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
582
578
|
displayName: import("@sinclair/typebox").TString;
|
|
583
579
|
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
584
580
|
}>, import("@sinclair/typebox").TObject<{
|
|
585
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
581
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.EMPTY>;
|
|
586
582
|
settings: import("@sinclair/typebox").TAny;
|
|
587
583
|
name: import("@sinclair/typebox").TString;
|
|
588
584
|
valid: import("@sinclair/typebox").TBoolean;
|
|
@@ -599,6 +595,17 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
599
595
|
created: import("@sinclair/typebox").TString;
|
|
600
596
|
updated: import("@sinclair/typebox").TString;
|
|
601
597
|
}>;
|
|
598
|
+
triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
599
|
+
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
600
|
+
paramName?: string | undefined;
|
|
601
|
+
strategy: import("../trigger").WebhookHandshakeStrategy;
|
|
602
|
+
} | null>>;
|
|
603
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
604
|
+
type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
|
|
605
|
+
cronExpression: string;
|
|
606
|
+
timezone: string;
|
|
607
|
+
} | null>>;
|
|
608
|
+
}>>;
|
|
602
609
|
}>;
|
|
603
610
|
flowState: import("@sinclair/typebox").TObject<{
|
|
604
611
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
@@ -611,22 +618,12 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
611
618
|
projectId: import("@sinclair/typebox").TString;
|
|
612
619
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
613
620
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
614
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
615
|
-
failureCount?: number | undefined;
|
|
616
|
-
type: import("../flows/flow").ScheduleType;
|
|
617
|
-
cronExpression: string;
|
|
618
|
-
timezone: string;
|
|
619
|
-
} | null>>;
|
|
620
|
-
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
621
|
-
paramName?: string | undefined;
|
|
622
|
-
strategy: import("../flows/flow").WebhookHandshakeStrategy;
|
|
623
|
-
} | null>>;
|
|
624
621
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
625
622
|
version: import("@sinclair/typebox").TObject<{
|
|
626
623
|
flowId: import("@sinclair/typebox").TString;
|
|
627
624
|
displayName: import("@sinclair/typebox").TString;
|
|
628
625
|
trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
629
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
626
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.PIECE>;
|
|
630
627
|
settings: import("@sinclair/typebox").TObject<{
|
|
631
628
|
pieceName: import("@sinclair/typebox").TString;
|
|
632
629
|
pieceVersion: import("@sinclair/typebox").TString;
|
|
@@ -646,7 +643,7 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
646
643
|
displayName: import("@sinclair/typebox").TString;
|
|
647
644
|
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
648
645
|
}>, import("@sinclair/typebox").TObject<{
|
|
649
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
646
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.EMPTY>;
|
|
650
647
|
settings: import("@sinclair/typebox").TAny;
|
|
651
648
|
name: import("@sinclair/typebox").TString;
|
|
652
649
|
valid: import("@sinclair/typebox").TBoolean;
|
|
@@ -663,6 +660,17 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
663
660
|
created: import("@sinclair/typebox").TString;
|
|
664
661
|
updated: import("@sinclair/typebox").TString;
|
|
665
662
|
}>;
|
|
663
|
+
triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
664
|
+
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
665
|
+
paramName?: string | undefined;
|
|
666
|
+
strategy: import("../trigger").WebhookHandshakeStrategy;
|
|
667
|
+
} | null>>;
|
|
668
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
669
|
+
type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
|
|
670
|
+
cronExpression: string;
|
|
671
|
+
timezone: string;
|
|
672
|
+
} | null>>;
|
|
673
|
+
}>>;
|
|
666
674
|
}>;
|
|
667
675
|
}>, import("@sinclair/typebox").TObject<{
|
|
668
676
|
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.CREATE_FLOW>;
|
|
@@ -677,22 +685,12 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
677
685
|
projectId: import("@sinclair/typebox").TString;
|
|
678
686
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
679
687
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
680
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
681
|
-
failureCount?: number | undefined;
|
|
682
|
-
type: import("../flows/flow").ScheduleType;
|
|
683
|
-
cronExpression: string;
|
|
684
|
-
timezone: string;
|
|
685
|
-
} | null>>;
|
|
686
|
-
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
687
|
-
paramName?: string | undefined;
|
|
688
|
-
strategy: import("../flows/flow").WebhookHandshakeStrategy;
|
|
689
|
-
} | null>>;
|
|
690
688
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
691
689
|
version: import("@sinclair/typebox").TObject<{
|
|
692
690
|
flowId: import("@sinclair/typebox").TString;
|
|
693
691
|
displayName: import("@sinclair/typebox").TString;
|
|
694
692
|
trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
695
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
693
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.PIECE>;
|
|
696
694
|
settings: import("@sinclair/typebox").TObject<{
|
|
697
695
|
pieceName: import("@sinclair/typebox").TString;
|
|
698
696
|
pieceVersion: import("@sinclair/typebox").TString;
|
|
@@ -712,7 +710,7 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
712
710
|
displayName: import("@sinclair/typebox").TString;
|
|
713
711
|
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
714
712
|
}>, import("@sinclair/typebox").TObject<{
|
|
715
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
713
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.EMPTY>;
|
|
716
714
|
settings: import("@sinclair/typebox").TAny;
|
|
717
715
|
name: import("@sinclair/typebox").TString;
|
|
718
716
|
valid: import("@sinclair/typebox").TBoolean;
|
|
@@ -729,6 +727,17 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
729
727
|
created: import("@sinclair/typebox").TString;
|
|
730
728
|
updated: import("@sinclair/typebox").TString;
|
|
731
729
|
}>;
|
|
730
|
+
triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
731
|
+
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
732
|
+
paramName?: string | undefined;
|
|
733
|
+
strategy: import("../trigger").WebhookHandshakeStrategy;
|
|
734
|
+
} | null>>;
|
|
735
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
736
|
+
type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
|
|
737
|
+
cronExpression: string;
|
|
738
|
+
timezone: string;
|
|
739
|
+
} | null>>;
|
|
740
|
+
}>>;
|
|
732
741
|
}>;
|
|
733
742
|
}>, import("@sinclair/typebox").TObject<{
|
|
734
743
|
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.DELETE_FLOW>;
|
|
@@ -743,22 +752,12 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
743
752
|
projectId: import("@sinclair/typebox").TString;
|
|
744
753
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
745
754
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
746
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
747
|
-
failureCount?: number | undefined;
|
|
748
|
-
type: import("../flows/flow").ScheduleType;
|
|
749
|
-
cronExpression: string;
|
|
750
|
-
timezone: string;
|
|
751
|
-
} | null>>;
|
|
752
|
-
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
753
|
-
paramName?: string | undefined;
|
|
754
|
-
strategy: import("../flows/flow").WebhookHandshakeStrategy;
|
|
755
|
-
} | null>>;
|
|
756
755
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
757
756
|
version: import("@sinclair/typebox").TObject<{
|
|
758
757
|
flowId: import("@sinclair/typebox").TString;
|
|
759
758
|
displayName: import("@sinclair/typebox").TString;
|
|
760
759
|
trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
761
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
760
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.PIECE>;
|
|
762
761
|
settings: import("@sinclair/typebox").TObject<{
|
|
763
762
|
pieceName: import("@sinclair/typebox").TString;
|
|
764
763
|
pieceVersion: import("@sinclair/typebox").TString;
|
|
@@ -778,7 +777,7 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
778
777
|
displayName: import("@sinclair/typebox").TString;
|
|
779
778
|
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
780
779
|
}>, import("@sinclair/typebox").TObject<{
|
|
781
|
-
type: import("@sinclair/typebox").TLiteral<import("../..").
|
|
780
|
+
type: import("@sinclair/typebox").TLiteral<import("../..").FlowTriggerType.EMPTY>;
|
|
782
781
|
settings: import("@sinclair/typebox").TAny;
|
|
783
782
|
name: import("@sinclair/typebox").TString;
|
|
784
783
|
valid: import("@sinclair/typebox").TBoolean;
|
|
@@ -795,6 +794,17 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
795
794
|
created: import("@sinclair/typebox").TString;
|
|
796
795
|
updated: import("@sinclair/typebox").TString;
|
|
797
796
|
}>;
|
|
797
|
+
triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
798
|
+
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
799
|
+
paramName?: string | undefined;
|
|
800
|
+
strategy: import("../trigger").WebhookHandshakeStrategy;
|
|
801
|
+
} | null>>;
|
|
802
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
803
|
+
type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
|
|
804
|
+
cronExpression: string;
|
|
805
|
+
timezone: string;
|
|
806
|
+
} | null>>;
|
|
807
|
+
}>>;
|
|
798
808
|
}>;
|
|
799
809
|
}>]>>;
|
|
800
810
|
connections: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
package/src/lib/todos/index.d.ts
CHANGED
|
@@ -104,17 +104,18 @@ export declare const PopulatedTodo: import("@sinclair/typebox").TObject<{
|
|
|
104
104
|
[x: string]: unknown;
|
|
105
105
|
} | null | undefined;
|
|
106
106
|
folderId?: string | null | undefined;
|
|
107
|
-
schedule?: {
|
|
108
|
-
failureCount?: number | undefined;
|
|
109
|
-
type: import("../flows").ScheduleType;
|
|
110
|
-
cronExpression: string;
|
|
111
|
-
timezone: string;
|
|
112
|
-
} | null | undefined;
|
|
113
|
-
handshakeConfiguration?: {
|
|
114
|
-
paramName?: string | undefined;
|
|
115
|
-
strategy: import("../flows").WebhookHandshakeStrategy;
|
|
116
|
-
} | null | undefined;
|
|
117
107
|
publishedVersionId?: string | null | undefined;
|
|
108
|
+
triggerSource?: {
|
|
109
|
+
handshakeConfiguration?: {
|
|
110
|
+
paramName?: string | undefined;
|
|
111
|
+
strategy: import("../trigger").WebhookHandshakeStrategy;
|
|
112
|
+
} | null | undefined;
|
|
113
|
+
schedule?: {
|
|
114
|
+
type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
|
|
115
|
+
cronExpression: string;
|
|
116
|
+
timezone: string;
|
|
117
|
+
} | null | undefined;
|
|
118
|
+
} | undefined;
|
|
118
119
|
id: string;
|
|
119
120
|
version: {
|
|
120
121
|
updatedBy?: string | null | undefined;
|
|
@@ -127,14 +128,14 @@ export declare const PopulatedTodo: import("@sinclair/typebox").TObject<{
|
|
|
127
128
|
valid: boolean;
|
|
128
129
|
trigger: {
|
|
129
130
|
nextAction?: any;
|
|
130
|
-
type: import("../..").
|
|
131
|
+
type: import("../..").FlowTriggerType.EMPTY;
|
|
131
132
|
name: string;
|
|
132
133
|
displayName: string;
|
|
133
134
|
settings: any;
|
|
134
135
|
valid: boolean;
|
|
135
136
|
} | {
|
|
136
137
|
nextAction?: any;
|
|
137
|
-
type: import("../..").
|
|
138
|
+
type: import("../..").FlowTriggerType.PIECE;
|
|
138
139
|
name: string;
|
|
139
140
|
displayName: string;
|
|
140
141
|
settings: {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Static } from '@sinclair/typebox';
|
|
2
|
+
export declare enum TriggerStrategy {
|
|
3
|
+
POLLING = "POLLING",
|
|
4
|
+
WEBHOOK = "WEBHOOK",
|
|
5
|
+
APP_WEBHOOK = "APP_WEBHOOK"
|
|
6
|
+
}
|
|
7
|
+
export declare enum WebhookHandshakeStrategy {
|
|
8
|
+
NONE = "NONE",
|
|
9
|
+
HEADER_PRESENT = "HEADER_PRESENT",
|
|
10
|
+
QUERY_PRESENT = "QUERY_PRESENT",
|
|
11
|
+
BODY_PARAM_PRESENT = "BODY_PARAM_PRESENT"
|
|
12
|
+
}
|
|
13
|
+
export declare enum TriggerSourceScheduleType {
|
|
14
|
+
CRON_EXPRESSION = "CRON_EXPRESSION"
|
|
15
|
+
}
|
|
16
|
+
export declare const WebhookHandshakeConfiguration: import("@sinclair/typebox").TObject<{
|
|
17
|
+
strategy: import("@sinclair/typebox").TEnum<typeof WebhookHandshakeStrategy>;
|
|
18
|
+
paramName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
|
+
}>;
|
|
20
|
+
export type WebhookHandshakeConfiguration = Static<typeof WebhookHandshakeConfiguration>;
|
|
21
|
+
export declare const ScheduleOptions: import("@sinclair/typebox").TObject<{
|
|
22
|
+
type: import("@sinclair/typebox").TEnum<typeof TriggerSourceScheduleType>;
|
|
23
|
+
cronExpression: import("@sinclair/typebox").TString;
|
|
24
|
+
timezone: import("@sinclair/typebox").TString;
|
|
25
|
+
}>;
|
|
26
|
+
export type ScheduleOptions = Static<typeof ScheduleOptions>;
|
|
27
|
+
export declare const TriggerSource: import("@sinclair/typebox").TObject<{
|
|
28
|
+
type: import("@sinclair/typebox").TEnum<typeof TriggerStrategy>;
|
|
29
|
+
projectId: import("@sinclair/typebox").TString;
|
|
30
|
+
flowId: import("@sinclair/typebox").TString;
|
|
31
|
+
handshakeConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
32
|
+
paramName?: string | undefined;
|
|
33
|
+
strategy: WebhookHandshakeStrategy;
|
|
34
|
+
} | null>>;
|
|
35
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
36
|
+
type: TriggerSourceScheduleType.CRON_EXPRESSION;
|
|
37
|
+
cronExpression: string;
|
|
38
|
+
timezone: string;
|
|
39
|
+
} | null>>;
|
|
40
|
+
flowVersionId: import("@sinclair/typebox").TString;
|
|
41
|
+
pieceName: import("@sinclair/typebox").TString;
|
|
42
|
+
pieceVersion: import("@sinclair/typebox").TString;
|
|
43
|
+
deleted: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
44
|
+
simulate: import("@sinclair/typebox").TBoolean;
|
|
45
|
+
id: import("@sinclair/typebox").TString;
|
|
46
|
+
created: import("@sinclair/typebox").TString;
|
|
47
|
+
updated: import("@sinclair/typebox").TString;
|
|
48
|
+
}>;
|
|
49
|
+
export type TriggerSource = Static<typeof TriggerSource>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TriggerSource = exports.ScheduleOptions = exports.WebhookHandshakeConfiguration = exports.TriggerSourceScheduleType = exports.WebhookHandshakeStrategy = exports.TriggerStrategy = void 0;
|
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
+
const common_1 = require("../common");
|
|
6
|
+
var TriggerStrategy;
|
|
7
|
+
(function (TriggerStrategy) {
|
|
8
|
+
TriggerStrategy["POLLING"] = "POLLING";
|
|
9
|
+
TriggerStrategy["WEBHOOK"] = "WEBHOOK";
|
|
10
|
+
TriggerStrategy["APP_WEBHOOK"] = "APP_WEBHOOK";
|
|
11
|
+
})(TriggerStrategy || (exports.TriggerStrategy = TriggerStrategy = {}));
|
|
12
|
+
var WebhookHandshakeStrategy;
|
|
13
|
+
(function (WebhookHandshakeStrategy) {
|
|
14
|
+
WebhookHandshakeStrategy["NONE"] = "NONE";
|
|
15
|
+
WebhookHandshakeStrategy["HEADER_PRESENT"] = "HEADER_PRESENT";
|
|
16
|
+
WebhookHandshakeStrategy["QUERY_PRESENT"] = "QUERY_PRESENT";
|
|
17
|
+
WebhookHandshakeStrategy["BODY_PARAM_PRESENT"] = "BODY_PARAM_PRESENT";
|
|
18
|
+
})(WebhookHandshakeStrategy || (exports.WebhookHandshakeStrategy = WebhookHandshakeStrategy = {}));
|
|
19
|
+
var TriggerSourceScheduleType;
|
|
20
|
+
(function (TriggerSourceScheduleType) {
|
|
21
|
+
TriggerSourceScheduleType["CRON_EXPRESSION"] = "CRON_EXPRESSION";
|
|
22
|
+
})(TriggerSourceScheduleType || (exports.TriggerSourceScheduleType = TriggerSourceScheduleType = {}));
|
|
23
|
+
exports.WebhookHandshakeConfiguration = typebox_1.Type.Object({
|
|
24
|
+
strategy: typebox_1.Type.Enum(WebhookHandshakeStrategy),
|
|
25
|
+
paramName: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
26
|
+
});
|
|
27
|
+
exports.ScheduleOptions = typebox_1.Type.Object({
|
|
28
|
+
type: typebox_1.Type.Enum(TriggerSourceScheduleType),
|
|
29
|
+
cronExpression: typebox_1.Type.String(),
|
|
30
|
+
timezone: typebox_1.Type.String(),
|
|
31
|
+
});
|
|
32
|
+
exports.TriggerSource = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { type: typebox_1.Type.Enum(TriggerStrategy), projectId: typebox_1.Type.String(), flowId: typebox_1.Type.String(), handshakeConfiguration: (0, common_1.Nullable)(exports.WebhookHandshakeConfiguration), schedule: (0, common_1.Nullable)(exports.ScheduleOptions), flowVersionId: typebox_1.Type.String(), pieceName: typebox_1.Type.String(), pieceVersion: typebox_1.Type.String(), deleted: (0, common_1.Nullable)(typebox_1.Type.String()), simulate: typebox_1.Type.Boolean() }));
|
|
33
|
+
//# sourceMappingURL=index.js.map
|