@activepieces/shared 0.10.134 → 0.10.135

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.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/src/index.d.ts +1 -0
  3. package/src/index.js +1 -0
  4. package/src/index.js.map +1 -1
  5. package/src/lib/ai/index.d.ts +1 -1
  6. package/src/lib/authentication/model/principal.d.ts +0 -7
  7. package/src/lib/common/activepieces-error.d.ts +5 -1
  8. package/src/lib/common/activepieces-error.js +1 -0
  9. package/src/lib/common/activepieces-error.js.map +1 -1
  10. package/src/lib/flows/operations/add-action-util.d.ts +9 -0
  11. package/src/lib/flows/operations/add-action-util.js +52 -0
  12. package/src/lib/flows/operations/add-action-util.js.map +1 -0
  13. package/src/lib/flows/operations/copy-action-operations.d.ts +3 -0
  14. package/src/lib/flows/operations/copy-action-operations.js +19 -0
  15. package/src/lib/flows/operations/copy-action-operations.js.map +1 -0
  16. package/src/lib/flows/operations/delete-action.js +30 -26
  17. package/src/lib/flows/operations/delete-action.js.map +1 -1
  18. package/src/lib/flows/operations/duplicate-step.js +5 -58
  19. package/src/lib/flows/operations/duplicate-step.js.map +1 -1
  20. package/src/lib/flows/operations/import-flow.js +3 -11
  21. package/src/lib/flows/operations/import-flow.js.map +1 -1
  22. package/src/lib/flows/operations/index.d.ts +426 -4
  23. package/src/lib/flows/operations/index.js +6 -2
  24. package/src/lib/flows/operations/index.js.map +1 -1
  25. package/src/lib/flows/operations/move-action.js +1 -1
  26. package/src/lib/flows/operations/move-action.js.map +1 -1
  27. package/src/lib/flows/operations/paste-operations.d.ts +433 -0
  28. package/src/lib/flows/operations/paste-operations.js +42 -0
  29. package/src/lib/flows/operations/paste-operations.js.map +1 -0
  30. package/src/lib/flows/operations/skip-action.js +1 -1
  31. package/src/lib/flows/operations/skip-action.js.map +1 -1
  32. package/src/lib/flows/util/flow-structure-util.d.ts +8 -4
  33. package/src/lib/flows/util/flow-structure-util.js +13 -2
  34. package/src/lib/flows/util/flow-structure-util.js.map +1 -1
  35. package/src/lib/forms/index.js.map +1 -1
  36. package/src/lib/invitations/index.d.ts +1 -1
  37. package/src/lib/platform/platform.model.d.ts +0 -4
  38. package/src/lib/platform/platform.model.js +32 -1
  39. package/src/lib/platform/platform.model.js.map +1 -1
  40. package/src/lib/project/project.d.ts +2 -2
  41. package/src/lib/workers/index.d.ts +24 -8
  42. package/src/lib/workers/index.js +25 -8
  43. package/src/lib/workers/index.js.map +1 -1
@@ -0,0 +1,433 @@
1
+ import { Action } from '../actions/action';
2
+ import { FlowVersion } from '../flow-version';
3
+ import { FlowOperationType, StepLocationRelativeToParent } from './index';
4
+ export type InsideBranchPasteLocation = {
5
+ branchIndex: number;
6
+ stepLocationRelativeToParent: StepLocationRelativeToParent.INSIDE_BRANCH;
7
+ parentStepName: string;
8
+ };
9
+ export type OutsideBranchPasteLocation = {
10
+ parentStepName: string;
11
+ stepLocationRelativeToParent: StepLocationRelativeToParent.AFTER | StepLocationRelativeToParent.INSIDE_LOOP;
12
+ };
13
+ export type PasteLocation = InsideBranchPasteLocation | OutsideBranchPasteLocation;
14
+ export declare const _getOperationsForPaste: (actions: Action[], flowVersion: FlowVersion, pastingDetails: PasteLocation) => ({
15
+ type: FlowOperationType.MOVE_ACTION;
16
+ request: {
17
+ branchIndex?: number | undefined;
18
+ stepLocationRelativeToNewParent?: StepLocationRelativeToParent | undefined;
19
+ name: string;
20
+ newParentStep: string;
21
+ };
22
+ } | {
23
+ type: FlowOperationType.CHANGE_STATUS;
24
+ request: {
25
+ status: import("..").FlowStatus;
26
+ };
27
+ } | {
28
+ type: FlowOperationType.LOCK_AND_PUBLISH;
29
+ request: {};
30
+ } | {
31
+ type: FlowOperationType.USE_AS_DRAFT;
32
+ request: {
33
+ versionId: string;
34
+ };
35
+ } | {
36
+ type: FlowOperationType.LOCK_FLOW;
37
+ request: {};
38
+ } | {
39
+ type: FlowOperationType.IMPORT_FLOW;
40
+ request: {
41
+ schemaVersion?: string | null | undefined;
42
+ displayName: string;
43
+ trigger: {
44
+ nextAction?: any;
45
+ type: import("../triggers/trigger").TriggerType.EMPTY;
46
+ name: string;
47
+ displayName: string;
48
+ settings: any;
49
+ valid: boolean;
50
+ } | {
51
+ nextAction?: any;
52
+ type: import("../triggers/trigger").TriggerType.PIECE;
53
+ name: string;
54
+ displayName: string;
55
+ settings: {
56
+ triggerName?: string | undefined;
57
+ packageType: import("../../pieces").PackageType;
58
+ pieceType: import("../../pieces").PieceType;
59
+ pieceName: string;
60
+ pieceVersion: string;
61
+ input: {
62
+ [x: string]: any;
63
+ };
64
+ inputUiInfo: {
65
+ sampleDataFileId?: string | undefined;
66
+ lastTestDate?: string | undefined;
67
+ customizedInputs?: {
68
+ [x: string]: unknown;
69
+ } | undefined;
70
+ currentSelectedData?: unknown;
71
+ };
72
+ };
73
+ valid: boolean;
74
+ };
75
+ };
76
+ } | {
77
+ type: FlowOperationType.CHANGE_NAME;
78
+ request: {
79
+ displayName: string;
80
+ };
81
+ } | {
82
+ type: FlowOperationType.DELETE_ACTION;
83
+ request: {
84
+ names: string[];
85
+ };
86
+ } | {
87
+ type: FlowOperationType.UPDATE_ACTION;
88
+ request: {
89
+ skip?: boolean | undefined;
90
+ customLogoUrl?: string | undefined;
91
+ type: import("../actions/action").ActionType.ROUTER;
92
+ name: string;
93
+ displayName: string;
94
+ settings: {
95
+ inputUiInfo: {
96
+ sampleDataFileId?: string | undefined;
97
+ lastTestDate?: string | undefined;
98
+ customizedInputs?: {
99
+ [x: string]: unknown;
100
+ } | undefined;
101
+ currentSelectedData?: unknown;
102
+ };
103
+ branches: ({
104
+ conditions: ({
105
+ caseSensitive?: boolean | undefined;
106
+ operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined;
107
+ firstValue: string;
108
+ secondValue: string;
109
+ } | {
110
+ operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined;
111
+ firstValue: string;
112
+ secondValue: string;
113
+ } | {
114
+ operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined;
115
+ firstValue: string;
116
+ secondValue: string;
117
+ } | {
118
+ operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined;
119
+ firstValue: string;
120
+ })[][];
121
+ branchType: import("../actions/action").BranchExecutionType.CONDITION;
122
+ branchName: string;
123
+ } | {
124
+ branchType: import("../actions/action").BranchExecutionType.FALLBACK;
125
+ branchName: string;
126
+ })[];
127
+ executionType: import("../actions/action").RouterExecutionType;
128
+ };
129
+ valid: boolean;
130
+ } | {
131
+ skip?: boolean | undefined;
132
+ customLogoUrl?: string | undefined;
133
+ type: import("../actions/action").ActionType.LOOP_ON_ITEMS;
134
+ name: string;
135
+ displayName: string;
136
+ settings: {
137
+ inputUiInfo: {
138
+ sampleDataFileId?: string | undefined;
139
+ lastTestDate?: string | undefined;
140
+ customizedInputs?: {
141
+ [x: string]: unknown;
142
+ } | undefined;
143
+ currentSelectedData?: unknown;
144
+ };
145
+ items: string;
146
+ };
147
+ valid: boolean;
148
+ } | {
149
+ skip?: boolean | undefined;
150
+ customLogoUrl?: string | undefined;
151
+ type: import("../actions/action").ActionType.PIECE;
152
+ name: string;
153
+ displayName: string;
154
+ settings: {
155
+ errorHandlingOptions?: {
156
+ continueOnFailure?: {
157
+ value: boolean;
158
+ } | undefined;
159
+ retryOnFailure?: {
160
+ value: boolean;
161
+ } | undefined;
162
+ } | undefined;
163
+ actionName?: string | undefined;
164
+ packageType: import("../../pieces").PackageType;
165
+ pieceType: import("../../pieces").PieceType;
166
+ pieceName: string;
167
+ pieceVersion: string;
168
+ input: {
169
+ [x: string]: unknown;
170
+ };
171
+ inputUiInfo: {
172
+ sampleDataFileId?: string | undefined;
173
+ lastTestDate?: string | undefined;
174
+ customizedInputs?: {
175
+ [x: string]: unknown;
176
+ } | undefined;
177
+ currentSelectedData?: unknown;
178
+ };
179
+ };
180
+ valid: boolean;
181
+ } | {
182
+ skip?: boolean | undefined;
183
+ customLogoUrl?: string | undefined;
184
+ type: import("../actions/action").ActionType.CODE;
185
+ name: string;
186
+ displayName: string;
187
+ settings: {
188
+ inputUiInfo?: {
189
+ sampleDataFileId?: string | undefined;
190
+ lastTestDate?: string | undefined;
191
+ customizedInputs?: {
192
+ [x: string]: unknown;
193
+ } | undefined;
194
+ currentSelectedData?: unknown;
195
+ } | undefined;
196
+ errorHandlingOptions?: {
197
+ continueOnFailure?: {
198
+ value: boolean;
199
+ } | undefined;
200
+ retryOnFailure?: {
201
+ value: boolean;
202
+ } | undefined;
203
+ } | undefined;
204
+ input: {
205
+ [x: string]: any;
206
+ };
207
+ sourceCode: {
208
+ code: string;
209
+ packageJson: string;
210
+ };
211
+ };
212
+ valid: boolean;
213
+ };
214
+ } | {
215
+ type: FlowOperationType.ADD_ACTION;
216
+ request: {
217
+ stepLocationRelativeToParent?: StepLocationRelativeToParent | undefined;
218
+ branchIndex?: number | undefined;
219
+ parentStep: string;
220
+ action: {
221
+ skip?: boolean | undefined;
222
+ customLogoUrl?: string | undefined;
223
+ type: import("../actions/action").ActionType.ROUTER;
224
+ name: string;
225
+ displayName: string;
226
+ settings: {
227
+ inputUiInfo: {
228
+ sampleDataFileId?: string | undefined;
229
+ lastTestDate?: string | undefined;
230
+ customizedInputs?: {
231
+ [x: string]: unknown;
232
+ } | undefined;
233
+ currentSelectedData?: unknown;
234
+ };
235
+ branches: ({
236
+ conditions: ({
237
+ caseSensitive?: boolean | undefined;
238
+ operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined;
239
+ firstValue: string;
240
+ secondValue: string;
241
+ } | {
242
+ operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined;
243
+ firstValue: string;
244
+ secondValue: string;
245
+ } | {
246
+ operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined;
247
+ firstValue: string;
248
+ secondValue: string;
249
+ } | {
250
+ operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined;
251
+ firstValue: string;
252
+ })[][];
253
+ branchType: import("../actions/action").BranchExecutionType.CONDITION;
254
+ branchName: string;
255
+ } | {
256
+ branchType: import("../actions/action").BranchExecutionType.FALLBACK;
257
+ branchName: string;
258
+ })[];
259
+ executionType: import("../actions/action").RouterExecutionType;
260
+ };
261
+ valid: boolean;
262
+ } | {
263
+ skip?: boolean | undefined;
264
+ customLogoUrl?: string | undefined;
265
+ type: import("../actions/action").ActionType.LOOP_ON_ITEMS;
266
+ name: string;
267
+ displayName: string;
268
+ settings: {
269
+ inputUiInfo: {
270
+ sampleDataFileId?: string | undefined;
271
+ lastTestDate?: string | undefined;
272
+ customizedInputs?: {
273
+ [x: string]: unknown;
274
+ } | undefined;
275
+ currentSelectedData?: unknown;
276
+ };
277
+ items: string;
278
+ };
279
+ valid: boolean;
280
+ } | {
281
+ skip?: boolean | undefined;
282
+ customLogoUrl?: string | undefined;
283
+ type: import("../actions/action").ActionType.PIECE;
284
+ name: string;
285
+ displayName: string;
286
+ settings: {
287
+ errorHandlingOptions?: {
288
+ continueOnFailure?: {
289
+ value: boolean;
290
+ } | undefined;
291
+ retryOnFailure?: {
292
+ value: boolean;
293
+ } | undefined;
294
+ } | undefined;
295
+ actionName?: string | undefined;
296
+ packageType: import("../../pieces").PackageType;
297
+ pieceType: import("../../pieces").PieceType;
298
+ pieceName: string;
299
+ pieceVersion: string;
300
+ input: {
301
+ [x: string]: unknown;
302
+ };
303
+ inputUiInfo: {
304
+ sampleDataFileId?: string | undefined;
305
+ lastTestDate?: string | undefined;
306
+ customizedInputs?: {
307
+ [x: string]: unknown;
308
+ } | undefined;
309
+ currentSelectedData?: unknown;
310
+ };
311
+ };
312
+ valid: boolean;
313
+ } | {
314
+ skip?: boolean | undefined;
315
+ customLogoUrl?: string | undefined;
316
+ type: import("../actions/action").ActionType.CODE;
317
+ name: string;
318
+ displayName: string;
319
+ settings: {
320
+ inputUiInfo?: {
321
+ sampleDataFileId?: string | undefined;
322
+ lastTestDate?: string | undefined;
323
+ customizedInputs?: {
324
+ [x: string]: unknown;
325
+ } | undefined;
326
+ currentSelectedData?: unknown;
327
+ } | undefined;
328
+ errorHandlingOptions?: {
329
+ continueOnFailure?: {
330
+ value: boolean;
331
+ } | undefined;
332
+ retryOnFailure?: {
333
+ value: boolean;
334
+ } | undefined;
335
+ } | undefined;
336
+ input: {
337
+ [x: string]: any;
338
+ };
339
+ sourceCode: {
340
+ code: string;
341
+ packageJson: string;
342
+ };
343
+ };
344
+ valid: boolean;
345
+ };
346
+ };
347
+ } | {
348
+ type: FlowOperationType.UPDATE_TRIGGER;
349
+ request: {
350
+ nextAction?: any;
351
+ type: import("../triggers/trigger").TriggerType.EMPTY;
352
+ name: string;
353
+ displayName: string;
354
+ settings: any;
355
+ valid: boolean;
356
+ } | {
357
+ nextAction?: any;
358
+ type: import("../triggers/trigger").TriggerType.PIECE;
359
+ name: string;
360
+ displayName: string;
361
+ settings: {
362
+ triggerName?: string | undefined;
363
+ packageType: import("../../pieces").PackageType;
364
+ pieceType: import("../../pieces").PieceType;
365
+ pieceName: string;
366
+ pieceVersion: string;
367
+ input: {
368
+ [x: string]: any;
369
+ };
370
+ inputUiInfo: {
371
+ sampleDataFileId?: string | undefined;
372
+ lastTestDate?: string | undefined;
373
+ customizedInputs?: {
374
+ [x: string]: unknown;
375
+ } | undefined;
376
+ currentSelectedData?: unknown;
377
+ };
378
+ };
379
+ valid: boolean;
380
+ };
381
+ } | {
382
+ type: FlowOperationType.CHANGE_FOLDER;
383
+ request: {
384
+ folderId?: string | null | undefined;
385
+ };
386
+ } | {
387
+ type: FlowOperationType.DUPLICATE_ACTION;
388
+ request: {
389
+ stepName: string;
390
+ };
391
+ } | {
392
+ type: FlowOperationType.DELETE_BRANCH;
393
+ request: {
394
+ stepName: string;
395
+ branchIndex: number;
396
+ };
397
+ } | {
398
+ type: FlowOperationType.ADD_BRANCH;
399
+ request: {
400
+ conditions?: ({
401
+ caseSensitive?: boolean | undefined;
402
+ operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined;
403
+ firstValue: string;
404
+ secondValue: string;
405
+ } | {
406
+ operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined;
407
+ firstValue: string;
408
+ secondValue: string;
409
+ } | {
410
+ operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined;
411
+ firstValue: string;
412
+ secondValue: string;
413
+ } | {
414
+ operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined;
415
+ firstValue: string;
416
+ })[][] | undefined;
417
+ stepName: string;
418
+ branchName: string;
419
+ branchIndex: number;
420
+ };
421
+ } | {
422
+ type: FlowOperationType.DUPLICATE_BRANCH;
423
+ request: {
424
+ stepName: string;
425
+ branchIndex: number;
426
+ };
427
+ } | {
428
+ type: FlowOperationType.SET_SKIP_ACTION;
429
+ request: {
430
+ skip: boolean;
431
+ names: string[];
432
+ };
433
+ })[];
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._getOperationsForPaste = void 0;
4
+ const flow_structure_util_1 = require("../util/flow-structure-util");
5
+ const add_action_util_1 = require("./add-action-util");
6
+ const import_flow_1 = require("./import-flow");
7
+ const index_1 = require("./index");
8
+ const _getOperationsForPaste = (actions, flowVersion, pastingDetails) => {
9
+ const newNamesMap = add_action_util_1.addActionUtls.mapToNewNames(flowVersion, actions);
10
+ const clonedActions = actions.map(action => flow_structure_util_1.flowStructureUtil.transferStep(action, (step) => {
11
+ return add_action_util_1.addActionUtls.clone(step, newNamesMap);
12
+ }));
13
+ const operations = [];
14
+ for (let i = 0; i < clonedActions.length; i++) {
15
+ if (i === 0) {
16
+ operations.push({
17
+ type: index_1.FlowOperationType.ADD_ACTION,
18
+ request: {
19
+ action: clonedActions[i],
20
+ parentStep: pastingDetails.parentStepName,
21
+ stepLocationRelativeToParent: pastingDetails.stepLocationRelativeToParent,
22
+ branchIndex: pastingDetails.stepLocationRelativeToParent === index_1.StepLocationRelativeToParent.INSIDE_BRANCH ? pastingDetails.branchIndex : undefined,
23
+ },
24
+ });
25
+ }
26
+ else {
27
+ operations.push({
28
+ type: index_1.FlowOperationType.ADD_ACTION,
29
+ request: {
30
+ action: clonedActions[i],
31
+ parentStep: clonedActions[i - 1].name,
32
+ stepLocationRelativeToParent: index_1.StepLocationRelativeToParent.AFTER,
33
+ },
34
+ });
35
+ }
36
+ const importOperations = (0, import_flow_1._getImportOperations)(clonedActions[i]);
37
+ operations.push(...importOperations);
38
+ }
39
+ return operations;
40
+ };
41
+ exports._getOperationsForPaste = _getOperationsForPaste;
42
+ //# sourceMappingURL=paste-operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paste-operations.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/l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AC,CAAC,CAAC,IAAI;oBACrC,4BAA4B,EAAE,oCAA4B,CAAC,KAAK;iBACnE;aACJ,CAAC,CAAA;QACN,CAAC;QACD,MAAM,gBAAgB,GAAG,IAAA,kCAAoB,EAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;QAC/D,UAAU,CAAC,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAA;IACxC,CAAC;IACD,OAAO,UAAU,CAAA;AACrB,CAAC,CAAA;AApCY,QAAA,sBAAsB,0BAoClC"}
@@ -4,7 +4,7 @@ exports._skipAction = _skipAction;
4
4
  const flow_structure_util_1 = require("../util/flow-structure-util");
5
5
  function _skipAction(flowVersion, request) {
6
6
  return flow_structure_util_1.flowStructureUtil.transferFlow(flowVersion, (stepToUpdate) => {
7
- if (stepToUpdate.name !== request.name) {
7
+ if (!request.names.includes(stepToUpdate.name)) {
8
8
  return stepToUpdate;
9
9
  }
10
10
  return Object.assign(Object.assign({}, stepToUpdate), { skip: request.skip });
@@ -1 +1 @@
1
- {"version":3,"file":"skip-action.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/operations/skip-action.ts"],"names":[],"mappings":";;AAIA,kCAWC;AAdD,qEAA+D;AAG/D,SAAgB,WAAW,CAAC,WAAwB,EAAE,OAA0B;IAC5E,OAAO,uCAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,EAAE;QAChE,IAAI,YAAY,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC;YACrC,OAAO,YAAY,CAAA;QACvB,CAAC;QAED,uCACO,YAAY,KACf,IAAI,EAAE,OAAO,CAAC,IAAI,IACrB;IACL,CAAC,CAAC,CAAA;AACN,CAAC"}
1
+ {"version":3,"file":"skip-action.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/operations/skip-action.ts"],"names":[],"mappings":";;AAIA,kCAUC;AAbD,qEAA+D;AAG/D,SAAgB,WAAW,CAAC,WAAwB,EAAE,OAA0B;IAC5E,OAAO,uCAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,EAAE;QAChE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;YAC7C,OAAO,YAAY,CAAA;QACvB,CAAC;QACD,uCACO,YAAY,KACf,IAAI,EAAE,OAAO,CAAC,IAAI,IACrB;IACL,CAAC,CAAC,CAAA;AACN,CAAC"}
@@ -1,12 +1,12 @@
1
- import { Action, ActionType, BranchCondition, BranchExecutionType } from '../actions/action';
1
+ import { Action, ActionType, BranchCondition, BranchExecutionType, LoopOnItemsAction, RouterAction } from '../actions/action';
2
2
  import { FlowVersion } from '../flow-version';
3
3
  import { Trigger, TriggerType } from '../triggers/trigger';
4
4
  export type Step = Action | Trigger;
5
5
  type StepWithIndex = Step & {
6
6
  dfsIndex: number;
7
7
  };
8
- declare function isAction(type: ActionType | TriggerType | undefined): boolean;
9
- declare function isTrigger(type: ActionType | TriggerType | undefined): boolean;
8
+ declare function isAction(type: ActionType | TriggerType | undefined): type is ActionType;
9
+ declare function isTrigger(type: ActionType | TriggerType | undefined): type is TriggerType;
10
10
  declare function getActionOrThrow(name: string, flowRoot: Step): Action;
11
11
  declare function getTriggerOrThrow(name: string, flowRoot: Step): Trigger;
12
12
  declare function getStep(name: string, flowRoot: Step): Step | undefined;
@@ -15,7 +15,9 @@ declare function transferStep<T extends Step>(step: Step, transferFunction: (ste
15
15
  declare function transferFlow<T extends Step>(flowVersion: FlowVersion, transferFunction: (step: T) => T): FlowVersion;
16
16
  declare function getAllSteps(step: Step): Step[];
17
17
  declare function findPathToStep(trigger: Trigger, targetStepName: string): StepWithIndex[];
18
+ declare function getAllChildSteps(action: LoopOnItemsAction | RouterAction): Step[];
18
19
  declare function isChildOf(parent: Step, childStepName: string): boolean;
20
+ declare function getAllNextActionsWithoutChildren(start: Step): Step[];
19
21
  export declare const flowStructureUtil: {
20
22
  isTrigger: typeof isTrigger;
21
23
  isAction: typeof isAction;
@@ -49,6 +51,8 @@ export declare const flowStructureUtil: {
49
51
  };
50
52
  findPathToStep: typeof findPathToStep;
51
53
  isChildOf: typeof isChildOf;
52
- findUnusedName: (trigger: Trigger) => string;
54
+ findUnusedName: (source: Trigger | string[]) => string;
55
+ getAllNextActionsWithoutChildren: typeof getAllNextActionsWithoutChildren;
56
+ getAllChildSteps: typeof getAllChildSteps;
53
57
  };
54
58
  export {};
@@ -119,8 +119,8 @@ function isChildOf(parent, childStepName) {
119
119
  }
120
120
  return false;
121
121
  }
122
- const findUnusedName = (trigger) => {
123
- const names = exports.flowStructureUtil.getAllSteps(trigger).map((f) => f.name);
122
+ const findUnusedName = (source) => {
123
+ const names = Array.isArray(source) ? source : exports.flowStructureUtil.getAllSteps(source).map((f) => f.name);
124
124
  let index = 1;
125
125
  let name = 'step_1';
126
126
  while (names.includes(name)) {
@@ -129,6 +129,15 @@ const findUnusedName = (trigger) => {
129
129
  }
130
130
  return name;
131
131
  };
132
+ function getAllNextActionsWithoutChildren(start) {
133
+ const actions = [];
134
+ let currentAction = start.nextAction;
135
+ while (!(0, common_1.isNil)(currentAction)) {
136
+ actions.push(currentAction);
137
+ currentAction = currentAction.nextAction;
138
+ }
139
+ return actions;
140
+ }
132
141
  exports.flowStructureUtil = {
133
142
  isTrigger,
134
143
  isAction,
@@ -143,5 +152,7 @@ exports.flowStructureUtil = {
143
152
  findPathToStep,
144
153
  isChildOf,
145
154
  findUnusedName,
155
+ getAllNextActionsWithoutChildren,
156
+ getAllChildSteps,
146
157
  };
147
158
  //# sourceMappingURL=flow-structure-util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-structure-util.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/util/flow-structure-util.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,wEAA8E;AAC9E,8CAA6I;AAE7I,iDAA0D;AAO1D,SAAS,QAAQ,CAAC,IAA0C;IACxD,O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BAAgB;IAChB,iBAAiB;IACjB,OAAO;IACP,YAAY;IACZ,cAAc;IACd,SAAS;IACT,cAAc;CACjB,CAAA"}
1
+ {"version":3,"file":"flow-structure-util.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/util/flow-structure-util.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,wEAA8E;AAC9E,8CAA6I;AAE7I,iDAA0D;AAO1D,SAAS,QAAQ,CAAC,IAA0C;IACxD,OAAO,MAAM,CAAC,OAAO,CAAC,mBAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAA;AACzE,CAAC;AAED,SAAS,SAAS,CAAC,IAA0C;IACzD,OAAO,MAAM,CAAC,OAAO,CAAC,qBAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAA;AAC1E,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAY,EAAE,QAAc;IAClD,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;IAC3C,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,sCAAiB,CAAC;YACxB,IAAI,EAAE,8BAAS,CAAC,cAAc;YAC9B,MAAM,EAAE;gBACJ,QAAQ,EAAE,IAAI;aACjB;SACJ,CAAC,CAAA;IACN,CAAC;IACD,OAAO,IAAc,CAAA;AACzB,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAY,EAAE,QAAc;IACnD,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;IAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,sCAAiB,CAAC;YACxB,IAAI,EAAE,8BA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CAAC;QACR,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC;QAClD,KAAK,EAAE,6BAAqB;KAC/B,CAAC;IACF,cAAI,CAAC,MAAM,CAAC;QACR,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,QAAQ,CAAC;QACtD,KAAK,EAAE,cAAI,CAAC,MAAM,EAAE;QACpB,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,KAAK,CAAC,6BAAqB,CAAC,CAAC;KAC1D,CAAC;CACL,CAAC,CAAA"}
@@ -34,9 +34,9 @@ export type UserInvitation = Static<typeof UserInvitation>;
34
34
  export declare const UserInvitationWithLink: import("@sinclair/typebox").TObject<{
35
35
  type: import("@sinclair/typebox").TEnum<typeof InvitationType>;
36
36
  id: import("@sinclair/typebox").TString;
37
+ platformId: import("@sinclair/typebox").TString;
37
38
  created: import("@sinclair/typebox").TString;
38
39
  updated: import("@sinclair/typebox").TString;
39
- platformId: import("@sinclair/typebox").TString;
40
40
  projectId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
41
41
  status: import("@sinclair/typebox").TEnum<typeof InvitationStatus>;
42
42
  email: import("@sinclair/typebox").TString;
@@ -93,10 +93,7 @@ export declare const PlatformWithoutSensitiveData: import("@sinclair/typebox").T
93
93
  }>>;
94
94
  saml: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
95
95
  }>;
96
- id: import("@sinclair/typebox").TString;
97
96
  name: import("@sinclair/typebox").TString;
98
- created: import("@sinclair/typebox").TString;
99
- updated: import("@sinclair/typebox").TString;
100
97
  ownerId: import("@sinclair/typebox").TString;
101
98
  primaryColor: import("@sinclair/typebox").TString;
102
99
  logoIconUrl: import("@sinclair/typebox").TString;
@@ -125,7 +122,6 @@ export declare const PlatformWithoutSensitiveData: import("@sinclair/typebox").T
125
122
  enforceAllowedAuthDomains: import("@sinclair/typebox").TBoolean;
126
123
  allowedAuthDomains: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
127
124
  emailAuthEnabled: import("@sinclair/typebox").TBoolean;
128
- licenseKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
129
125
  pinnedPieces: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
130
126
  }>;
131
127
  export type PlatformWithoutSensitiveData = Static<typeof PlatformWithoutSensitiveData>;