@requence/task 1.0.0-alpha.5 → 1.0.0-alpha.50

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 (108) hide show
  1. package/CHANGELOG.md +270 -0
  2. package/README.md +383 -0
  3. package/build/chunk-b4h2we9a.js +35 -0
  4. package/build/chunk-b4h2we9a.js.map +10 -0
  5. package/build/cli.js +21 -4874
  6. package/build/cli.js.map +4 -37
  7. package/build/index.js +1011 -233
  8. package/build/index.js.map +22 -8
  9. package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
  10. package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
  11. package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
  12. package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
  13. package/build/types/helpers/src/files/fileObject.d.ts +16 -0
  14. package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
  15. package/build/types/helpers/src/files/index.d.ts +7 -0
  16. package/build/types/helpers/src/files/index.d.ts.map +1 -0
  17. package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
  18. package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
  19. package/build/types/helpers/src/files/mapOutput.d.ts +10 -0
  20. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
  21. package/build/types/helpers/src/files/streamObject.d.ts +14 -0
  22. package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
  23. package/build/types/helpers/src/files/types.d.ts +4 -0
  24. package/build/types/helpers/src/files/types.d.ts.map +1 -0
  25. package/build/types/helpers/src/index.d.ts +12 -6
  26. package/build/types/helpers/src/index.d.ts.map +1 -1
  27. package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
  28. package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
  29. package/build/types/helpers/src/jsonschema/types.d.ts +13 -0
  30. package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
  31. package/build/types/helpers/src/jsonschema/validate.d.ts +32 -0
  32. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
  33. package/build/types/helpers/src/jsonschema/zod.d.ts +17 -0
  34. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
  35. package/build/types/helpers/src/protocol/NodeTree.d.ts +510 -0
  36. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  37. package/build/types/helpers/src/protocol/command.d.ts +507 -0
  38. package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
  39. package/build/types/helpers/src/protocol/helpers.d.ts +7 -0
  40. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -0
  41. package/build/types/helpers/src/protocol/index.d.ts +8 -0
  42. package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
  43. package/build/types/helpers/src/protocol/nodeType.d.ts +181 -0
  44. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  45. package/build/types/helpers/src/protocol/taskOptions.d.ts +23 -0
  46. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
  47. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +275 -0
  48. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -0
  49. package/build/types/helpers/src/protocol/treeNodes.d.ts +874 -0
  50. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  51. package/build/types/helpers/src/protocol/update.d.ts +406 -0
  52. package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
  53. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts +3 -0
  54. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts.map +1 -0
  55. package/build/types/helpers/src/utils/clone.d.ts +3 -0
  56. package/build/types/helpers/src/utils/clone.d.ts.map +1 -0
  57. package/build/types/helpers/src/utils/createObjectProxy.d.ts +2 -0
  58. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +1 -0
  59. package/build/types/helpers/src/utils/debounce.d.ts +4 -0
  60. package/build/types/helpers/src/utils/debounce.d.ts.map +1 -0
  61. package/build/types/helpers/src/utils/guards.d.ts +3 -0
  62. package/build/types/helpers/src/utils/guards.d.ts.map +1 -0
  63. package/build/types/helpers/src/utils/mapData.d.ts +18 -0
  64. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -0
  65. package/build/types/helpers/src/{utils.d.ts → utils/matchSchema.d.ts} +2 -2
  66. package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -0
  67. package/build/types/helpers/src/utils/obfuscate.d.ts.map +1 -0
  68. package/build/types/helpers/src/utils/obj.d.ts +4 -0
  69. package/build/types/helpers/src/utils/obj.d.ts.map +1 -0
  70. package/build/types/helpers/src/utils/requenceCallback.d.ts +17 -0
  71. package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
  72. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
  73. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  74. package/build/types/helpers/src/utils/types.d.ts +7 -0
  75. package/build/types/helpers/src/utils/types.d.ts.map +1 -0
  76. package/build/types/task/src/abortTask.d.ts +8 -0
  77. package/build/types/task/src/abortTask.d.ts.map +1 -0
  78. package/build/types/task/src/ackTask.d.ts +7 -0
  79. package/build/types/task/src/ackTask.d.ts.map +1 -0
  80. package/build/types/task/src/createTask.d.ts +14 -103
  81. package/build/types/task/src/createTask.d.ts.map +1 -1
  82. package/build/types/task/src/getTask.d.ts +26 -0
  83. package/build/types/task/src/getTask.d.ts.map +1 -0
  84. package/build/types/task/src/index.d.ts +7 -1
  85. package/build/types/task/src/index.d.ts.map +1 -1
  86. package/build/types/task/src/protectTask.d.ts +7 -0
  87. package/build/types/task/src/protectTask.d.ts.map +1 -0
  88. package/build/types/task/src/recreateTask.d.ts +10 -0
  89. package/build/types/task/src/recreateTask.d.ts.map +1 -0
  90. package/build/types/task/src/types.d.ts +196 -941
  91. package/build/types/task/src/types.d.ts.map +1 -1
  92. package/build/types/task/src/utils/getAccessToken.d.ts.map +1 -1
  93. package/build/types/task/src/watchTasks.d.ts +13 -97
  94. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  95. package/package.json +12 -7
  96. package/build/chunk-6pjtq0hg.js +0 -66
  97. package/build/chunk-6pjtq0hg.js.map +0 -12
  98. package/build/types/helpers/src/clone.d.ts +0 -3
  99. package/build/types/helpers/src/clone.d.ts.map +0 -1
  100. package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
  101. package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
  102. package/build/types/helpers/src/createRemotePromise.d.ts +0 -7
  103. package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
  104. package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
  105. package/build/types/helpers/src/utils.d.ts.map +0 -1
  106. package/build/types/task/src/utils/callbackToAsyncIterator.d.ts +0 -5
  107. package/build/types/task/src/utils/callbackToAsyncIterator.d.ts.map +0 -1
  108. /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
@@ -0,0 +1,510 @@
1
+ import type { Edge, Node } from './nodeType.ts';
2
+ export type OutputName = string | null;
3
+ type ExtendedEdge = Edge & {
4
+ traversed: number;
5
+ data?: string;
6
+ traceIds: string[];
7
+ };
8
+ type Cycle = {
9
+ node: Node;
10
+ name: OutputName;
11
+ }[];
12
+ type CriticalGroup = {
13
+ nodeId: string;
14
+ name: OutputName;
15
+ }[];
16
+ type DataSet = {
17
+ data: unknown;
18
+ overwrite: boolean;
19
+ time: number;
20
+ };
21
+ interface NodeTreeOptions {
22
+ nodes: Node[];
23
+ edges: Edge[] | ExtendedEdge[];
24
+ }
25
+ export declare class NodeTree {
26
+ private nodes;
27
+ private edges;
28
+ private data;
29
+ private overriddenNodeData;
30
+ readonly cycles: {
31
+ node: Node;
32
+ name: OutputName;
33
+ }[][];
34
+ readonly entryNode: Extract<Node, {
35
+ type: 'entry';
36
+ }>;
37
+ constructor({ nodes, edges }: NodeTreeOptions, _data?: Map<string, DataSet>, _cycles?: Cycle[] | null, _overriddenNodeData?: Map<string, Record<string, unknown>>);
38
+ pack(): readonly [({
39
+ id: string;
40
+ type: "entry";
41
+ inputSchema: import("json-schema").JSONSchema7;
42
+ alias?: string | undefined;
43
+ } | {
44
+ id: string;
45
+ type: "service";
46
+ inputSchema: ({
47
+ type: "object";
48
+ } & import("json-schema").JSONSchema7) | {
49
+ type: "null";
50
+ } | ({
51
+ $ref: string;
52
+ } & import("json-schema").JSONSchema7);
53
+ name: string;
54
+ version: string;
55
+ configurationSchema: import("json-schema").JSONSchema7;
56
+ mode: "LINEAR" | "CONTINUOUS";
57
+ outputs: {
58
+ name: string | null;
59
+ schema: import("json-schema").JSONSchema7 | null;
60
+ }[];
61
+ alias?: string | undefined;
62
+ configuration?: any;
63
+ ttl?: number | undefined;
64
+ retry?: number | undefined;
65
+ retryDelay?: number | undefined;
66
+ } | {
67
+ id: string;
68
+ type: "logic";
69
+ script: string;
70
+ concurrency: boolean;
71
+ language: "javascript" | "python" | "typescript";
72
+ maxExecutionTime: number;
73
+ outputs: {
74
+ name: string | null;
75
+ schema: import("json-schema").JSONSchema7 | null;
76
+ }[];
77
+ alias?: string | undefined;
78
+ } | {
79
+ id: string;
80
+ type: "or";
81
+ alias?: string | undefined;
82
+ } | {
83
+ id: string;
84
+ type: "reference";
85
+ reference: string;
86
+ enabled: boolean;
87
+ inputSchema: ({
88
+ type: "object";
89
+ } & import("json-schema").JSONSchema7) | {
90
+ type: "null";
91
+ } | ({
92
+ $ref: string;
93
+ } & import("json-schema").JSONSchema7);
94
+ outputs: {
95
+ name: string | null;
96
+ schema: import("json-schema").JSONSchema7 | null;
97
+ }[];
98
+ alias?: string | undefined;
99
+ } | {
100
+ id: string;
101
+ type: "exit";
102
+ alias?: string | undefined;
103
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
104
+ } | {
105
+ id: string;
106
+ type: "comment";
107
+ text: string;
108
+ alias?: string | undefined;
109
+ })[], ExtendedEdge[], Map<string, DataSet>, {
110
+ node: Node;
111
+ name: OutputName;
112
+ }[][], Map<string, Record<string, unknown>>];
113
+ static unpack([nodes, edges, _data, _cycles, _overriddenNodeData]: ReturnType<typeof NodeTree.prototype.pack>): NodeTree;
114
+ static get ERROR(): string;
115
+ getCriticalGroups(nodeId: string, allowMultipleOutputs?: boolean): CriticalGroup[];
116
+ getNodes(condition?: (node: Node) => boolean): ({
117
+ id: string;
118
+ type: "entry";
119
+ inputSchema: import("json-schema").JSONSchema7;
120
+ alias?: string | undefined;
121
+ } | {
122
+ id: string;
123
+ type: "service";
124
+ inputSchema: ({
125
+ type: "object";
126
+ } & import("json-schema").JSONSchema7) | {
127
+ type: "null";
128
+ } | ({
129
+ $ref: string;
130
+ } & import("json-schema").JSONSchema7);
131
+ name: string;
132
+ version: string;
133
+ configurationSchema: import("json-schema").JSONSchema7;
134
+ mode: "LINEAR" | "CONTINUOUS";
135
+ outputs: {
136
+ name: string | null;
137
+ schema: import("json-schema").JSONSchema7 | null;
138
+ }[];
139
+ alias?: string | undefined;
140
+ configuration?: any;
141
+ ttl?: number | undefined;
142
+ retry?: number | undefined;
143
+ retryDelay?: number | undefined;
144
+ } | {
145
+ id: string;
146
+ type: "logic";
147
+ script: string;
148
+ concurrency: boolean;
149
+ language: "javascript" | "python" | "typescript";
150
+ maxExecutionTime: number;
151
+ outputs: {
152
+ name: string | null;
153
+ schema: import("json-schema").JSONSchema7 | null;
154
+ }[];
155
+ alias?: string | undefined;
156
+ } | {
157
+ id: string;
158
+ type: "or";
159
+ alias?: string | undefined;
160
+ } | {
161
+ id: string;
162
+ type: "reference";
163
+ reference: string;
164
+ enabled: boolean;
165
+ inputSchema: ({
166
+ type: "object";
167
+ } & import("json-schema").JSONSchema7) | {
168
+ type: "null";
169
+ } | ({
170
+ $ref: string;
171
+ } & import("json-schema").JSONSchema7);
172
+ outputs: {
173
+ name: string | null;
174
+ schema: import("json-schema").JSONSchema7 | null;
175
+ }[];
176
+ alias?: string | undefined;
177
+ } | {
178
+ id: string;
179
+ type: "exit";
180
+ alias?: string | undefined;
181
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
182
+ } | {
183
+ id: string;
184
+ type: "comment";
185
+ text: string;
186
+ alias?: string | undefined;
187
+ })[];
188
+ getNode(condition: (node: Node) => boolean): Node | undefined;
189
+ getChildren(nodeId: string, outputName: OutputName): ({
190
+ id: string;
191
+ type: "entry";
192
+ inputSchema: import("json-schema").JSONSchema7;
193
+ alias?: string | undefined;
194
+ } | {
195
+ id: string;
196
+ type: "service";
197
+ inputSchema: ({
198
+ type: "object";
199
+ } & import("json-schema").JSONSchema7) | {
200
+ type: "null";
201
+ } | ({
202
+ $ref: string;
203
+ } & import("json-schema").JSONSchema7);
204
+ name: string;
205
+ version: string;
206
+ configurationSchema: import("json-schema").JSONSchema7;
207
+ mode: "LINEAR" | "CONTINUOUS";
208
+ outputs: {
209
+ name: string | null;
210
+ schema: import("json-schema").JSONSchema7 | null;
211
+ }[];
212
+ alias?: string | undefined;
213
+ configuration?: any;
214
+ ttl?: number | undefined;
215
+ retry?: number | undefined;
216
+ retryDelay?: number | undefined;
217
+ } | {
218
+ id: string;
219
+ type: "logic";
220
+ script: string;
221
+ concurrency: boolean;
222
+ language: "javascript" | "python" | "typescript";
223
+ maxExecutionTime: number;
224
+ outputs: {
225
+ name: string | null;
226
+ schema: import("json-schema").JSONSchema7 | null;
227
+ }[];
228
+ alias?: string | undefined;
229
+ } | {
230
+ id: string;
231
+ type: "or";
232
+ alias?: string | undefined;
233
+ } | {
234
+ id: string;
235
+ type: "reference";
236
+ reference: string;
237
+ enabled: boolean;
238
+ inputSchema: ({
239
+ type: "object";
240
+ } & import("json-schema").JSONSchema7) | {
241
+ type: "null";
242
+ } | ({
243
+ $ref: string;
244
+ } & import("json-schema").JSONSchema7);
245
+ outputs: {
246
+ name: string | null;
247
+ schema: import("json-schema").JSONSchema7 | null;
248
+ }[];
249
+ alias?: string | undefined;
250
+ } | {
251
+ id: string;
252
+ type: "exit";
253
+ alias?: string | undefined;
254
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
255
+ } | {
256
+ id: string;
257
+ type: "comment";
258
+ text: string;
259
+ alias?: string | undefined;
260
+ })[];
261
+ getOutputNames(nodeId: string): (string | null)[];
262
+ getParents(nodeId: string): ({
263
+ id: string;
264
+ type: "entry";
265
+ inputSchema: import("json-schema").JSONSchema7;
266
+ alias?: string | undefined;
267
+ } | {
268
+ id: string;
269
+ type: "service";
270
+ inputSchema: ({
271
+ type: "object";
272
+ } & import("json-schema").JSONSchema7) | {
273
+ type: "null";
274
+ } | ({
275
+ $ref: string;
276
+ } & import("json-schema").JSONSchema7);
277
+ name: string;
278
+ version: string;
279
+ configurationSchema: import("json-schema").JSONSchema7;
280
+ mode: "LINEAR" | "CONTINUOUS";
281
+ outputs: {
282
+ name: string | null;
283
+ schema: import("json-schema").JSONSchema7 | null;
284
+ }[];
285
+ alias?: string | undefined;
286
+ configuration?: any;
287
+ ttl?: number | undefined;
288
+ retry?: number | undefined;
289
+ retryDelay?: number | undefined;
290
+ } | {
291
+ id: string;
292
+ type: "logic";
293
+ script: string;
294
+ concurrency: boolean;
295
+ language: "javascript" | "python" | "typescript";
296
+ maxExecutionTime: number;
297
+ outputs: {
298
+ name: string | null;
299
+ schema: import("json-schema").JSONSchema7 | null;
300
+ }[];
301
+ alias?: string | undefined;
302
+ } | {
303
+ id: string;
304
+ type: "or";
305
+ alias?: string | undefined;
306
+ } | {
307
+ id: string;
308
+ type: "reference";
309
+ reference: string;
310
+ enabled: boolean;
311
+ inputSchema: ({
312
+ type: "object";
313
+ } & import("json-schema").JSONSchema7) | {
314
+ type: "null";
315
+ } | ({
316
+ $ref: string;
317
+ } & import("json-schema").JSONSchema7);
318
+ outputs: {
319
+ name: string | null;
320
+ schema: import("json-schema").JSONSchema7 | null;
321
+ }[];
322
+ alias?: string | undefined;
323
+ } | {
324
+ id: string;
325
+ type: "exit";
326
+ alias?: string | undefined;
327
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
328
+ } | {
329
+ id: string;
330
+ type: "comment";
331
+ text: string;
332
+ alias?: string | undefined;
333
+ })[];
334
+ getAllParents(nodeId: string): ({
335
+ id: string;
336
+ type: "entry";
337
+ inputSchema: import("json-schema").JSONSchema7;
338
+ alias?: string | undefined;
339
+ } | {
340
+ id: string;
341
+ type: "service";
342
+ inputSchema: ({
343
+ type: "object";
344
+ } & import("json-schema").JSONSchema7) | {
345
+ type: "null";
346
+ } | ({
347
+ $ref: string;
348
+ } & import("json-schema").JSONSchema7);
349
+ name: string;
350
+ version: string;
351
+ configurationSchema: import("json-schema").JSONSchema7;
352
+ mode: "LINEAR" | "CONTINUOUS";
353
+ outputs: {
354
+ name: string | null;
355
+ schema: import("json-schema").JSONSchema7 | null;
356
+ }[];
357
+ alias?: string | undefined;
358
+ configuration?: any;
359
+ ttl?: number | undefined;
360
+ retry?: number | undefined;
361
+ retryDelay?: number | undefined;
362
+ } | {
363
+ id: string;
364
+ type: "logic";
365
+ script: string;
366
+ concurrency: boolean;
367
+ language: "javascript" | "python" | "typescript";
368
+ maxExecutionTime: number;
369
+ outputs: {
370
+ name: string | null;
371
+ schema: import("json-schema").JSONSchema7 | null;
372
+ }[];
373
+ alias?: string | undefined;
374
+ } | {
375
+ id: string;
376
+ type: "or";
377
+ alias?: string | undefined;
378
+ } | {
379
+ id: string;
380
+ type: "reference";
381
+ reference: string;
382
+ enabled: boolean;
383
+ inputSchema: ({
384
+ type: "object";
385
+ } & import("json-schema").JSONSchema7) | {
386
+ type: "null";
387
+ } | ({
388
+ $ref: string;
389
+ } & import("json-schema").JSONSchema7);
390
+ outputs: {
391
+ name: string | null;
392
+ schema: import("json-schema").JSONSchema7 | null;
393
+ }[];
394
+ alias?: string | undefined;
395
+ } | {
396
+ id: string;
397
+ type: "exit";
398
+ alias?: string | undefined;
399
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
400
+ } | {
401
+ id: string;
402
+ type: "comment";
403
+ text: string;
404
+ alias?: string | undefined;
405
+ })[];
406
+ isInCycle(nodeId: string, outputName?: OutputName): boolean;
407
+ /**
408
+ * normally a node is "reached" when all incoming edges are traversed with the following exceptions:
409
+ *
410
+ * when the incoming edge belongs to a service that is part of a loop where the questioned node is also part of,
411
+ * this incoming edge is considered traversed
412
+ *
413
+ * or nodes are "reaced" when at least one incoming edge is traversed
414
+ *
415
+ * the entry node is "reached" by default
416
+ */
417
+ isReached(nodeId: string): boolean;
418
+ getParentsWithEdgeHandle(nodeId: string): {
419
+ node: {
420
+ id: string;
421
+ type: "entry";
422
+ inputSchema: import("json-schema").JSONSchema7;
423
+ alias?: string | undefined;
424
+ } | {
425
+ id: string;
426
+ type: "service";
427
+ inputSchema: ({
428
+ type: "object";
429
+ } & import("json-schema").JSONSchema7) | {
430
+ type: "null";
431
+ } | ({
432
+ $ref: string;
433
+ } & import("json-schema").JSONSchema7);
434
+ name: string;
435
+ version: string;
436
+ configurationSchema: import("json-schema").JSONSchema7;
437
+ mode: "LINEAR" | "CONTINUOUS";
438
+ outputs: {
439
+ name: string | null;
440
+ schema: import("json-schema").JSONSchema7 | null;
441
+ }[];
442
+ alias?: string | undefined;
443
+ configuration?: any;
444
+ ttl?: number | undefined;
445
+ retry?: number | undefined;
446
+ retryDelay?: number | undefined;
447
+ } | {
448
+ id: string;
449
+ type: "logic";
450
+ script: string;
451
+ concurrency: boolean;
452
+ language: "javascript" | "python" | "typescript";
453
+ maxExecutionTime: number;
454
+ outputs: {
455
+ name: string | null;
456
+ schema: import("json-schema").JSONSchema7 | null;
457
+ }[];
458
+ alias?: string | undefined;
459
+ } | {
460
+ id: string;
461
+ type: "or";
462
+ alias?: string | undefined;
463
+ } | {
464
+ id: string;
465
+ type: "reference";
466
+ reference: string;
467
+ enabled: boolean;
468
+ inputSchema: ({
469
+ type: "object";
470
+ } & import("json-schema").JSONSchema7) | {
471
+ type: "null";
472
+ } | ({
473
+ $ref: string;
474
+ } & import("json-schema").JSONSchema7);
475
+ outputs: {
476
+ name: string | null;
477
+ schema: import("json-schema").JSONSchema7 | null;
478
+ }[];
479
+ alias?: string | undefined;
480
+ } | {
481
+ id: string;
482
+ type: "exit";
483
+ alias?: string | undefined;
484
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
485
+ } | {
486
+ id: string;
487
+ type: "comment";
488
+ text: string;
489
+ alias?: string | undefined;
490
+ };
491
+ handle: OutputName;
492
+ }[];
493
+ getTriggers(nodeId: string): string[];
494
+ getTraceIds(nodeId: string): string[];
495
+ traverse(nodeId: string, outputName: OutputName, traceIds?: string[]): void;
496
+ traverseWithData(nodeId: string, outputName: OutputName, data: unknown, overwrite?: boolean, traceIds?: string[]): void;
497
+ disconnect(sourceNodeId: string, sourceNodeOutputName: OutputName, targetNodeId: string): void;
498
+ getData(nodeId: string, outputName: OutputName): unknown;
499
+ traversed(sourceNodeId: string, targetNodeId: string): boolean;
500
+ getAllData(): Map<string, Map<OutputName, unknown>>;
501
+ private getAggregatedDataSetsByNode;
502
+ getAggregatedDataByNode(targetNodeId: string): Record<string, unknown>;
503
+ getAggregatedData(targetNodeId: string): Record<string, unknown>;
504
+ getAggregatedEdgeData(edgeId: string): Record<string, unknown>;
505
+ reset(): void;
506
+ gc(): void;
507
+ overrideAggregatedNodeData(nodeId: string, data: Record<string, unknown>): void;
508
+ }
509
+ export {};
510
+ //# sourceMappingURL=NodeTree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeTree.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/NodeTree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAE/C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,CAAA;AAEtC,KAAK,YAAY,GAAG,IAAI,GAAG;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB,CAAA;AAMD,KAAK,KAAK,GAAG;IAAE,IAA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