@requence/service 1.0.0-alpha.4 → 1.0.0-alpha.45

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 (90) hide show
  1. package/CHANGELOG.md +246 -0
  2. package/build/{chunk-0x9092n4.js → chunk-6w7td62p.js} +5 -44
  3. package/build/chunk-6w7td62p.js.map +10 -0
  4. package/build/cli.js +19 -12
  5. package/build/cli.js.map +3 -3
  6. package/build/index.js +930 -863
  7. package/build/index.js.map +18 -16
  8. package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
  9. package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
  10. package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
  11. package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
  12. package/build/types/helpers/src/files/fileObject.d.ts +16 -0
  13. package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
  14. package/build/types/helpers/src/files/index.d.ts +7 -0
  15. package/build/types/helpers/src/files/index.d.ts.map +1 -0
  16. package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
  17. package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
  18. package/build/types/helpers/src/files/mapOutput.d.ts +10 -0
  19. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
  20. package/build/types/helpers/src/files/streamObject.d.ts +14 -0
  21. package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
  22. package/build/types/helpers/src/files/types.d.ts +4 -0
  23. package/build/types/helpers/src/files/types.d.ts.map +1 -0
  24. package/build/types/helpers/src/index.d.ts +10 -6
  25. package/build/types/helpers/src/index.d.ts.map +1 -1
  26. package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
  27. package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
  28. package/build/types/helpers/src/jsonschema/types.d.ts +13 -0
  29. package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
  30. package/build/types/helpers/src/jsonschema/validate.d.ts +32 -0
  31. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
  32. package/build/types/helpers/src/jsonschema/zod.d.ts +15 -0
  33. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/NodeTree.d.ts +993 -0
  35. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/command.d.ts +853 -0
  37. package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
  38. package/build/types/helpers/src/protocol/helpers.d.ts +7 -0
  39. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -0
  40. package/build/types/helpers/src/protocol/index.d.ts +7 -0
  41. package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
  42. package/build/types/helpers/src/protocol/nodeType.d.ts +434 -0
  43. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  44. package/build/types/helpers/src/protocol/taskOptions.d.ts +23 -0
  45. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
  46. package/build/types/helpers/src/protocol/treeNodes.d.ts +1542 -0
  47. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  48. package/build/types/helpers/src/protocol/update.d.ts +379 -0
  49. package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
  50. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts +3 -0
  51. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts.map +1 -0
  52. package/build/types/helpers/src/utils/clone.d.ts +3 -0
  53. package/build/types/helpers/src/utils/clone.d.ts.map +1 -0
  54. package/build/types/helpers/src/utils/createObjectProxy.d.ts +2 -0
  55. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +1 -0
  56. package/build/types/helpers/src/{createRemotePromise.d.ts → utils/createRemotePromise.d.ts} +1 -1
  57. package/build/types/helpers/src/utils/createRemotePromise.d.ts.map +1 -0
  58. package/build/types/helpers/src/utils/isRecord.d.ts +2 -0
  59. package/build/types/helpers/src/utils/isRecord.d.ts.map +1 -0
  60. package/build/types/helpers/src/utils/mapData.d.ts +18 -0
  61. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -0
  62. package/build/types/helpers/src/{utils.d.ts → utils/matchSchema.d.ts} +2 -2
  63. package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -0
  64. package/build/types/helpers/src/utils/obfuscate.d.ts.map +1 -0
  65. package/build/types/helpers/src/utils/requenceCallback.d.ts +17 -0
  66. package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
  67. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
  68. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  69. package/build/types/service/src/createAmqpConnection.d.ts +19 -20
  70. package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
  71. package/build/types/service/src/helpers.d.ts +72 -99
  72. package/build/types/service/src/helpers.d.ts.map +1 -1
  73. package/build/types/service/src/index.d.ts +8 -4
  74. package/build/types/service/src/index.d.ts.map +1 -1
  75. package/build/types/service/src/macro.d.ts +2 -0
  76. package/build/types/service/src/macro.d.ts.map +1 -0
  77. package/build/types/service/src/mapInput.d.ts +2 -0
  78. package/build/types/service/src/mapInput.d.ts.map +1 -0
  79. package/build/types/service/src/utils.d.ts +6 -0
  80. package/build/types/service/src/utils.d.ts.map +1 -0
  81. package/package.json +8 -7
  82. package/build/chunk-0x9092n4.js.map +0 -12
  83. package/build/types/helpers/src/clone.d.ts +0 -3
  84. package/build/types/helpers/src/clone.d.ts.map +0 -1
  85. package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
  86. package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
  87. package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
  88. package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
  89. package/build/types/helpers/src/utils.d.ts.map +0 -1
  90. /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
@@ -0,0 +1,993 @@
1
+ import type { TreeEdge, TreeNode } from './nodeType.ts';
2
+ export type OutputName = string | null;
3
+ type ExtendedTreeEdge = TreeEdge & {
4
+ traversed: number;
5
+ data?: string;
6
+ };
7
+ interface NodeTreeOptions {
8
+ nodes: TreeNode[];
9
+ edges: TreeEdge[] | ExtendedTreeEdge[];
10
+ data?: Map<string, {
11
+ data: unknown;
12
+ overwrite: boolean;
13
+ }>;
14
+ }
15
+ export declare class NodeTree {
16
+ private nodes;
17
+ private edges;
18
+ private data;
19
+ readonly cycles: {
20
+ node: TreeNode;
21
+ name: OutputName;
22
+ }[][];
23
+ readonly entryNode: Extract<TreeNode, {
24
+ type: 'entry';
25
+ }>;
26
+ constructor({ nodes, edges, data }: NodeTreeOptions);
27
+ pack(): (({
28
+ id: string;
29
+ type: "entry";
30
+ inputSchema: import("json-schema").JSONSchema7;
31
+ outputs: {
32
+ name: string | null;
33
+ schema: import("json-schema").JSONSchema7 | null;
34
+ types?: {
35
+ input: string;
36
+ output: string;
37
+ } | undefined;
38
+ }[];
39
+ position: {
40
+ x: number;
41
+ y: number;
42
+ };
43
+ alias?: string | undefined;
44
+ size?: {
45
+ width?: number | undefined;
46
+ height?: number | undefined;
47
+ } | undefined;
48
+ } | {
49
+ id: string;
50
+ type: "service";
51
+ inputSchema: ({
52
+ type: "object";
53
+ } & import("json-schema").JSONSchema7) | {
54
+ type: "null";
55
+ } | ({
56
+ $ref: string;
57
+ } & import("json-schema").JSONSchema7);
58
+ name: string;
59
+ version: string;
60
+ configurationSchema: import("json-schema").JSONSchema7;
61
+ outputs: {
62
+ name: string | null;
63
+ schema: import("json-schema").JSONSchema7 | null;
64
+ types?: {
65
+ input: string;
66
+ output: string;
67
+ } | undefined;
68
+ }[];
69
+ position: {
70
+ x: number;
71
+ y: number;
72
+ };
73
+ alias?: string | undefined;
74
+ inputTypes?: {
75
+ input: string;
76
+ output: string;
77
+ } | undefined;
78
+ configuration?: any;
79
+ ttl?: number | undefined;
80
+ retry?: number | undefined;
81
+ retryDelay?: number | undefined;
82
+ size?: {
83
+ width?: number | undefined;
84
+ height?: number | undefined;
85
+ } | undefined;
86
+ } | {
87
+ id: string;
88
+ type: "logic";
89
+ script: string;
90
+ concurrency: boolean;
91
+ language: "javascript" | "python" | "typescript";
92
+ maxExecutionTime: number;
93
+ outputs: {
94
+ name: string | null;
95
+ schema: import("json-schema").JSONSchema7 | null;
96
+ types?: {
97
+ input: string;
98
+ output: string;
99
+ } | undefined;
100
+ }[];
101
+ position: {
102
+ x: number;
103
+ y: number;
104
+ };
105
+ alias?: string | undefined;
106
+ outputNames?: string[] | undefined;
107
+ size?: {
108
+ width?: number | undefined;
109
+ height?: number | undefined;
110
+ } | undefined;
111
+ } | {
112
+ id: string;
113
+ type: "or";
114
+ outputs: {
115
+ name: string | null;
116
+ schema: import("json-schema").JSONSchema7 | null;
117
+ types?: {
118
+ input: string;
119
+ output: string;
120
+ } | undefined;
121
+ }[];
122
+ position: {
123
+ x: number;
124
+ y: number;
125
+ };
126
+ alias?: string | undefined;
127
+ size?: {
128
+ width?: number | undefined;
129
+ height?: number | undefined;
130
+ } | undefined;
131
+ } | {
132
+ id: string;
133
+ type: "reference";
134
+ reference: string;
135
+ outputs: {
136
+ name: string | null;
137
+ schema: import("json-schema").JSONSchema7 | null;
138
+ types?: {
139
+ input: string;
140
+ output: string;
141
+ } | undefined;
142
+ }[];
143
+ position: {
144
+ x: number;
145
+ y: number;
146
+ };
147
+ alias?: string | undefined;
148
+ inputTypes?: {
149
+ input: string;
150
+ output: string;
151
+ } | undefined;
152
+ size?: {
153
+ width?: number | undefined;
154
+ height?: number | undefined;
155
+ } | undefined;
156
+ } | {
157
+ id: string;
158
+ type: "exit";
159
+ position: {
160
+ x: number;
161
+ y: number;
162
+ };
163
+ alias?: string | undefined;
164
+ size?: {
165
+ width?: number | undefined;
166
+ height?: number | undefined;
167
+ } | undefined;
168
+ } | {
169
+ id: string;
170
+ type: "comment";
171
+ text: string;
172
+ position: {
173
+ x: number;
174
+ y: number;
175
+ };
176
+ alias?: string | undefined;
177
+ size?: {
178
+ width?: number | undefined;
179
+ height?: number | undefined;
180
+ } | undefined;
181
+ })[] | ExtendedTreeEdge[] | Map<string, {
182
+ data: unknown;
183
+ overwrite: boolean;
184
+ }>)[];
185
+ static get ERROR(): string;
186
+ getPossiblePathsTo(nodeId: string, allowMultipleOutputs?: boolean): {
187
+ nodeId: string;
188
+ name: OutputName;
189
+ }[][];
190
+ getNodes(condition?: (node: TreeNode) => boolean): ({
191
+ id: string;
192
+ type: "entry";
193
+ inputSchema: import("json-schema").JSONSchema7;
194
+ outputs: {
195
+ name: string | null;
196
+ schema: import("json-schema").JSONSchema7 | null;
197
+ types?: {
198
+ input: string;
199
+ output: string;
200
+ } | undefined;
201
+ }[];
202
+ position: {
203
+ x: number;
204
+ y: number;
205
+ };
206
+ alias?: string | undefined;
207
+ size?: {
208
+ width?: number | undefined;
209
+ height?: number | undefined;
210
+ } | undefined;
211
+ } | {
212
+ id: string;
213
+ type: "service";
214
+ inputSchema: ({
215
+ type: "object";
216
+ } & import("json-schema").JSONSchema7) | {
217
+ type: "null";
218
+ } | ({
219
+ $ref: string;
220
+ } & import("json-schema").JSONSchema7);
221
+ name: string;
222
+ version: string;
223
+ configurationSchema: import("json-schema").JSONSchema7;
224
+ outputs: {
225
+ name: string | null;
226
+ schema: import("json-schema").JSONSchema7 | null;
227
+ types?: {
228
+ input: string;
229
+ output: string;
230
+ } | undefined;
231
+ }[];
232
+ position: {
233
+ x: number;
234
+ y: number;
235
+ };
236
+ alias?: string | undefined;
237
+ inputTypes?: {
238
+ input: string;
239
+ output: string;
240
+ } | undefined;
241
+ configuration?: any;
242
+ ttl?: number | undefined;
243
+ retry?: number | undefined;
244
+ retryDelay?: number | undefined;
245
+ size?: {
246
+ width?: number | undefined;
247
+ height?: number | undefined;
248
+ } | undefined;
249
+ } | {
250
+ id: string;
251
+ type: "logic";
252
+ script: string;
253
+ concurrency: boolean;
254
+ language: "javascript" | "python" | "typescript";
255
+ maxExecutionTime: number;
256
+ outputs: {
257
+ name: string | null;
258
+ schema: import("json-schema").JSONSchema7 | null;
259
+ types?: {
260
+ input: string;
261
+ output: string;
262
+ } | undefined;
263
+ }[];
264
+ position: {
265
+ x: number;
266
+ y: number;
267
+ };
268
+ alias?: string | undefined;
269
+ outputNames?: string[] | undefined;
270
+ size?: {
271
+ width?: number | undefined;
272
+ height?: number | undefined;
273
+ } | undefined;
274
+ } | {
275
+ id: string;
276
+ type: "or";
277
+ outputs: {
278
+ name: string | null;
279
+ schema: import("json-schema").JSONSchema7 | null;
280
+ types?: {
281
+ input: string;
282
+ output: string;
283
+ } | undefined;
284
+ }[];
285
+ position: {
286
+ x: number;
287
+ y: number;
288
+ };
289
+ alias?: string | undefined;
290
+ size?: {
291
+ width?: number | undefined;
292
+ height?: number | undefined;
293
+ } | undefined;
294
+ } | {
295
+ id: string;
296
+ type: "reference";
297
+ reference: string;
298
+ outputs: {
299
+ name: string | null;
300
+ schema: import("json-schema").JSONSchema7 | null;
301
+ types?: {
302
+ input: string;
303
+ output: string;
304
+ } | undefined;
305
+ }[];
306
+ position: {
307
+ x: number;
308
+ y: number;
309
+ };
310
+ alias?: string | undefined;
311
+ inputTypes?: {
312
+ input: string;
313
+ output: string;
314
+ } | undefined;
315
+ size?: {
316
+ width?: number | undefined;
317
+ height?: number | undefined;
318
+ } | undefined;
319
+ } | {
320
+ id: string;
321
+ type: "exit";
322
+ position: {
323
+ x: number;
324
+ y: number;
325
+ };
326
+ alias?: string | undefined;
327
+ size?: {
328
+ width?: number | undefined;
329
+ height?: number | undefined;
330
+ } | undefined;
331
+ } | {
332
+ id: string;
333
+ type: "comment";
334
+ text: string;
335
+ position: {
336
+ x: number;
337
+ y: number;
338
+ };
339
+ alias?: string | undefined;
340
+ size?: {
341
+ width?: number | undefined;
342
+ height?: number | undefined;
343
+ } | undefined;
344
+ })[];
345
+ getNode(condition: (node: TreeNode) => boolean): TreeNode | undefined;
346
+ getChildren(nodeId: string, outputName: OutputName): ({
347
+ id: string;
348
+ type: "entry";
349
+ inputSchema: import("json-schema").JSONSchema7;
350
+ outputs: {
351
+ name: string | null;
352
+ schema: import("json-schema").JSONSchema7 | null;
353
+ types?: {
354
+ input: string;
355
+ output: string;
356
+ } | undefined;
357
+ }[];
358
+ position: {
359
+ x: number;
360
+ y: number;
361
+ };
362
+ alias?: string | undefined;
363
+ size?: {
364
+ width?: number | undefined;
365
+ height?: number | undefined;
366
+ } | undefined;
367
+ } | {
368
+ id: string;
369
+ type: "service";
370
+ inputSchema: ({
371
+ type: "object";
372
+ } & import("json-schema").JSONSchema7) | {
373
+ type: "null";
374
+ } | ({
375
+ $ref: string;
376
+ } & import("json-schema").JSONSchema7);
377
+ name: string;
378
+ version: string;
379
+ configurationSchema: import("json-schema").JSONSchema7;
380
+ outputs: {
381
+ name: string | null;
382
+ schema: import("json-schema").JSONSchema7 | null;
383
+ types?: {
384
+ input: string;
385
+ output: string;
386
+ } | undefined;
387
+ }[];
388
+ position: {
389
+ x: number;
390
+ y: number;
391
+ };
392
+ alias?: string | undefined;
393
+ inputTypes?: {
394
+ input: string;
395
+ output: string;
396
+ } | undefined;
397
+ configuration?: any;
398
+ ttl?: number | undefined;
399
+ retry?: number | undefined;
400
+ retryDelay?: number | undefined;
401
+ size?: {
402
+ width?: number | undefined;
403
+ height?: number | undefined;
404
+ } | undefined;
405
+ } | {
406
+ id: string;
407
+ type: "logic";
408
+ script: string;
409
+ concurrency: boolean;
410
+ language: "javascript" | "python" | "typescript";
411
+ maxExecutionTime: number;
412
+ outputs: {
413
+ name: string | null;
414
+ schema: import("json-schema").JSONSchema7 | null;
415
+ types?: {
416
+ input: string;
417
+ output: string;
418
+ } | undefined;
419
+ }[];
420
+ position: {
421
+ x: number;
422
+ y: number;
423
+ };
424
+ alias?: string | undefined;
425
+ outputNames?: string[] | undefined;
426
+ size?: {
427
+ width?: number | undefined;
428
+ height?: number | undefined;
429
+ } | undefined;
430
+ } | {
431
+ id: string;
432
+ type: "or";
433
+ outputs: {
434
+ name: string | null;
435
+ schema: import("json-schema").JSONSchema7 | null;
436
+ types?: {
437
+ input: string;
438
+ output: string;
439
+ } | undefined;
440
+ }[];
441
+ position: {
442
+ x: number;
443
+ y: number;
444
+ };
445
+ alias?: string | undefined;
446
+ size?: {
447
+ width?: number | undefined;
448
+ height?: number | undefined;
449
+ } | undefined;
450
+ } | {
451
+ id: string;
452
+ type: "reference";
453
+ reference: string;
454
+ outputs: {
455
+ name: string | null;
456
+ schema: import("json-schema").JSONSchema7 | null;
457
+ types?: {
458
+ input: string;
459
+ output: string;
460
+ } | undefined;
461
+ }[];
462
+ position: {
463
+ x: number;
464
+ y: number;
465
+ };
466
+ alias?: string | undefined;
467
+ inputTypes?: {
468
+ input: string;
469
+ output: string;
470
+ } | undefined;
471
+ size?: {
472
+ width?: number | undefined;
473
+ height?: number | undefined;
474
+ } | undefined;
475
+ } | {
476
+ id: string;
477
+ type: "exit";
478
+ position: {
479
+ x: number;
480
+ y: number;
481
+ };
482
+ alias?: string | undefined;
483
+ size?: {
484
+ width?: number | undefined;
485
+ height?: number | undefined;
486
+ } | undefined;
487
+ } | {
488
+ id: string;
489
+ type: "comment";
490
+ text: string;
491
+ position: {
492
+ x: number;
493
+ y: number;
494
+ };
495
+ alias?: string | undefined;
496
+ size?: {
497
+ width?: number | undefined;
498
+ height?: number | undefined;
499
+ } | undefined;
500
+ })[];
501
+ getParents(nodeId: string): ({
502
+ id: string;
503
+ type: "entry";
504
+ inputSchema: import("json-schema").JSONSchema7;
505
+ outputs: {
506
+ name: string | null;
507
+ schema: import("json-schema").JSONSchema7 | null;
508
+ types?: {
509
+ input: string;
510
+ output: string;
511
+ } | undefined;
512
+ }[];
513
+ position: {
514
+ x: number;
515
+ y: number;
516
+ };
517
+ alias?: string | undefined;
518
+ size?: {
519
+ width?: number | undefined;
520
+ height?: number | undefined;
521
+ } | undefined;
522
+ } | {
523
+ id: string;
524
+ type: "service";
525
+ inputSchema: ({
526
+ type: "object";
527
+ } & import("json-schema").JSONSchema7) | {
528
+ type: "null";
529
+ } | ({
530
+ $ref: string;
531
+ } & import("json-schema").JSONSchema7);
532
+ name: string;
533
+ version: string;
534
+ configurationSchema: import("json-schema").JSONSchema7;
535
+ outputs: {
536
+ name: string | null;
537
+ schema: import("json-schema").JSONSchema7 | null;
538
+ types?: {
539
+ input: string;
540
+ output: string;
541
+ } | undefined;
542
+ }[];
543
+ position: {
544
+ x: number;
545
+ y: number;
546
+ };
547
+ alias?: string | undefined;
548
+ inputTypes?: {
549
+ input: string;
550
+ output: string;
551
+ } | undefined;
552
+ configuration?: any;
553
+ ttl?: number | undefined;
554
+ retry?: number | undefined;
555
+ retryDelay?: number | undefined;
556
+ size?: {
557
+ width?: number | undefined;
558
+ height?: number | undefined;
559
+ } | undefined;
560
+ } | {
561
+ id: string;
562
+ type: "logic";
563
+ script: string;
564
+ concurrency: boolean;
565
+ language: "javascript" | "python" | "typescript";
566
+ maxExecutionTime: number;
567
+ outputs: {
568
+ name: string | null;
569
+ schema: import("json-schema").JSONSchema7 | null;
570
+ types?: {
571
+ input: string;
572
+ output: string;
573
+ } | undefined;
574
+ }[];
575
+ position: {
576
+ x: number;
577
+ y: number;
578
+ };
579
+ alias?: string | undefined;
580
+ outputNames?: string[] | undefined;
581
+ size?: {
582
+ width?: number | undefined;
583
+ height?: number | undefined;
584
+ } | undefined;
585
+ } | {
586
+ id: string;
587
+ type: "or";
588
+ outputs: {
589
+ name: string | null;
590
+ schema: import("json-schema").JSONSchema7 | null;
591
+ types?: {
592
+ input: string;
593
+ output: string;
594
+ } | undefined;
595
+ }[];
596
+ position: {
597
+ x: number;
598
+ y: number;
599
+ };
600
+ alias?: string | undefined;
601
+ size?: {
602
+ width?: number | undefined;
603
+ height?: number | undefined;
604
+ } | undefined;
605
+ } | {
606
+ id: string;
607
+ type: "reference";
608
+ reference: string;
609
+ outputs: {
610
+ name: string | null;
611
+ schema: import("json-schema").JSONSchema7 | null;
612
+ types?: {
613
+ input: string;
614
+ output: string;
615
+ } | undefined;
616
+ }[];
617
+ position: {
618
+ x: number;
619
+ y: number;
620
+ };
621
+ alias?: string | undefined;
622
+ inputTypes?: {
623
+ input: string;
624
+ output: string;
625
+ } | undefined;
626
+ size?: {
627
+ width?: number | undefined;
628
+ height?: number | undefined;
629
+ } | undefined;
630
+ } | {
631
+ id: string;
632
+ type: "exit";
633
+ position: {
634
+ x: number;
635
+ y: number;
636
+ };
637
+ alias?: string | undefined;
638
+ size?: {
639
+ width?: number | undefined;
640
+ height?: number | undefined;
641
+ } | undefined;
642
+ } | {
643
+ id: string;
644
+ type: "comment";
645
+ text: string;
646
+ position: {
647
+ x: number;
648
+ y: number;
649
+ };
650
+ alias?: string | undefined;
651
+ size?: {
652
+ width?: number | undefined;
653
+ height?: number | undefined;
654
+ } | undefined;
655
+ })[];
656
+ getAllParents(nodeId: string): ({
657
+ id: string;
658
+ type: "entry";
659
+ inputSchema: import("json-schema").JSONSchema7;
660
+ outputs: {
661
+ name: string | null;
662
+ schema: import("json-schema").JSONSchema7 | null;
663
+ types?: {
664
+ input: string;
665
+ output: string;
666
+ } | undefined;
667
+ }[];
668
+ position: {
669
+ x: number;
670
+ y: number;
671
+ };
672
+ alias?: string | undefined;
673
+ size?: {
674
+ width?: number | undefined;
675
+ height?: number | undefined;
676
+ } | undefined;
677
+ } | {
678
+ id: string;
679
+ type: "service";
680
+ inputSchema: ({
681
+ type: "object";
682
+ } & import("json-schema").JSONSchema7) | {
683
+ type: "null";
684
+ } | ({
685
+ $ref: string;
686
+ } & import("json-schema").JSONSchema7);
687
+ name: string;
688
+ version: string;
689
+ configurationSchema: import("json-schema").JSONSchema7;
690
+ outputs: {
691
+ name: string | null;
692
+ schema: import("json-schema").JSONSchema7 | null;
693
+ types?: {
694
+ input: string;
695
+ output: string;
696
+ } | undefined;
697
+ }[];
698
+ position: {
699
+ x: number;
700
+ y: number;
701
+ };
702
+ alias?: string | undefined;
703
+ inputTypes?: {
704
+ input: string;
705
+ output: string;
706
+ } | undefined;
707
+ configuration?: any;
708
+ ttl?: number | undefined;
709
+ retry?: number | undefined;
710
+ retryDelay?: number | undefined;
711
+ size?: {
712
+ width?: number | undefined;
713
+ height?: number | undefined;
714
+ } | undefined;
715
+ } | {
716
+ id: string;
717
+ type: "logic";
718
+ script: string;
719
+ concurrency: boolean;
720
+ language: "javascript" | "python" | "typescript";
721
+ maxExecutionTime: number;
722
+ outputs: {
723
+ name: string | null;
724
+ schema: import("json-schema").JSONSchema7 | null;
725
+ types?: {
726
+ input: string;
727
+ output: string;
728
+ } | undefined;
729
+ }[];
730
+ position: {
731
+ x: number;
732
+ y: number;
733
+ };
734
+ alias?: string | undefined;
735
+ outputNames?: string[] | undefined;
736
+ size?: {
737
+ width?: number | undefined;
738
+ height?: number | undefined;
739
+ } | undefined;
740
+ } | {
741
+ id: string;
742
+ type: "or";
743
+ outputs: {
744
+ name: string | null;
745
+ schema: import("json-schema").JSONSchema7 | null;
746
+ types?: {
747
+ input: string;
748
+ output: string;
749
+ } | undefined;
750
+ }[];
751
+ position: {
752
+ x: number;
753
+ y: number;
754
+ };
755
+ alias?: string | undefined;
756
+ size?: {
757
+ width?: number | undefined;
758
+ height?: number | undefined;
759
+ } | undefined;
760
+ } | {
761
+ id: string;
762
+ type: "reference";
763
+ reference: string;
764
+ outputs: {
765
+ name: string | null;
766
+ schema: import("json-schema").JSONSchema7 | null;
767
+ types?: {
768
+ input: string;
769
+ output: string;
770
+ } | undefined;
771
+ }[];
772
+ position: {
773
+ x: number;
774
+ y: number;
775
+ };
776
+ alias?: string | undefined;
777
+ inputTypes?: {
778
+ input: string;
779
+ output: string;
780
+ } | undefined;
781
+ size?: {
782
+ width?: number | undefined;
783
+ height?: number | undefined;
784
+ } | undefined;
785
+ } | {
786
+ id: string;
787
+ type: "exit";
788
+ position: {
789
+ x: number;
790
+ y: number;
791
+ };
792
+ alias?: string | undefined;
793
+ size?: {
794
+ width?: number | undefined;
795
+ height?: number | undefined;
796
+ } | undefined;
797
+ } | {
798
+ id: string;
799
+ type: "comment";
800
+ text: string;
801
+ position: {
802
+ x: number;
803
+ y: number;
804
+ };
805
+ alias?: string | undefined;
806
+ size?: {
807
+ width?: number | undefined;
808
+ height?: number | undefined;
809
+ } | undefined;
810
+ })[];
811
+ /**
812
+ * normally a node is "reached" when all incoming edges are traversed with the following exceptions:
813
+ *
814
+ * when the incoming edge belongs to a service that is part of a loop where the questioned node is also part of,
815
+ * this incoming edge is considered traversed
816
+ *
817
+ * or nodes are "reaced" when at least one incoming edge is traversed
818
+ *
819
+ * the entry node is "reached" by default
820
+ */
821
+ isReached(nodeId: string): boolean;
822
+ getParentsWithEdgeHandle(nodeId: string): {
823
+ node: {
824
+ id: string;
825
+ type: "entry";
826
+ inputSchema: import("json-schema").JSONSchema7;
827
+ outputs: {
828
+ name: string | null;
829
+ schema: import("json-schema").JSONSchema7 | null;
830
+ types?: {
831
+ input: string;
832
+ output: string;
833
+ } | undefined;
834
+ }[];
835
+ position: {
836
+ x: number;
837
+ y: number;
838
+ };
839
+ alias?: string | undefined;
840
+ size?: {
841
+ width?: number | undefined;
842
+ height?: number | undefined;
843
+ } | undefined;
844
+ } | {
845
+ id: string;
846
+ type: "service";
847
+ inputSchema: ({
848
+ type: "object";
849
+ } & import("json-schema").JSONSchema7) | {
850
+ type: "null";
851
+ } | ({
852
+ $ref: string;
853
+ } & import("json-schema").JSONSchema7);
854
+ name: string;
855
+ version: string;
856
+ configurationSchema: import("json-schema").JSONSchema7;
857
+ outputs: {
858
+ name: string | null;
859
+ schema: import("json-schema").JSONSchema7 | null;
860
+ types?: {
861
+ input: string;
862
+ output: string;
863
+ } | undefined;
864
+ }[];
865
+ position: {
866
+ x: number;
867
+ y: number;
868
+ };
869
+ alias?: string | undefined;
870
+ inputTypes?: {
871
+ input: string;
872
+ output: string;
873
+ } | undefined;
874
+ configuration?: any;
875
+ ttl?: number | undefined;
876
+ retry?: number | undefined;
877
+ retryDelay?: number | undefined;
878
+ size?: {
879
+ width?: number | undefined;
880
+ height?: number | undefined;
881
+ } | undefined;
882
+ } | {
883
+ id: string;
884
+ type: "logic";
885
+ script: string;
886
+ concurrency: boolean;
887
+ language: "javascript" | "python" | "typescript";
888
+ maxExecutionTime: number;
889
+ outputs: {
890
+ name: string | null;
891
+ schema: import("json-schema").JSONSchema7 | null;
892
+ types?: {
893
+ input: string;
894
+ output: string;
895
+ } | undefined;
896
+ }[];
897
+ position: {
898
+ x: number;
899
+ y: number;
900
+ };
901
+ alias?: string | undefined;
902
+ outputNames?: string[] | undefined;
903
+ size?: {
904
+ width?: number | undefined;
905
+ height?: number | undefined;
906
+ } | undefined;
907
+ } | {
908
+ id: string;
909
+ type: "or";
910
+ outputs: {
911
+ name: string | null;
912
+ schema: import("json-schema").JSONSchema7 | null;
913
+ types?: {
914
+ input: string;
915
+ output: string;
916
+ } | undefined;
917
+ }[];
918
+ position: {
919
+ x: number;
920
+ y: number;
921
+ };
922
+ alias?: string | undefined;
923
+ size?: {
924
+ width?: number | undefined;
925
+ height?: number | undefined;
926
+ } | undefined;
927
+ } | {
928
+ id: string;
929
+ type: "reference";
930
+ reference: string;
931
+ outputs: {
932
+ name: string | null;
933
+ schema: import("json-schema").JSONSchema7 | null;
934
+ types?: {
935
+ input: string;
936
+ output: string;
937
+ } | undefined;
938
+ }[];
939
+ position: {
940
+ x: number;
941
+ y: number;
942
+ };
943
+ alias?: string | undefined;
944
+ inputTypes?: {
945
+ input: string;
946
+ output: string;
947
+ } | undefined;
948
+ size?: {
949
+ width?: number | undefined;
950
+ height?: number | undefined;
951
+ } | undefined;
952
+ } | {
953
+ id: string;
954
+ type: "exit";
955
+ position: {
956
+ x: number;
957
+ y: number;
958
+ };
959
+ alias?: string | undefined;
960
+ size?: {
961
+ width?: number | undefined;
962
+ height?: number | undefined;
963
+ } | undefined;
964
+ } | {
965
+ id: string;
966
+ type: "comment";
967
+ text: string;
968
+ position: {
969
+ x: number;
970
+ y: number;
971
+ };
972
+ alias?: string | undefined;
973
+ size?: {
974
+ width?: number | undefined;
975
+ height?: number | undefined;
976
+ } | undefined;
977
+ };
978
+ handle: OutputName;
979
+ }[];
980
+ getTriggers(nodeId: string): string[];
981
+ traverse(nodeId: string, outputName: OutputName): void;
982
+ traverseWithData(nodeId: string, outputName: OutputName, data: unknown, overwrite?: boolean): void;
983
+ disconnect(sourceNodeId: string, sourceNodeOutputName: OutputName, targetNodeId: string): void;
984
+ getData(nodeId: string, outputName: OutputName): unknown;
985
+ traversed(sourceNodeId: string, targetNodeId: string): boolean;
986
+ getAllData(): Map<string, Map<OutputName, unknown>>;
987
+ getAggregatedDataByNode(targetNodeId: string): Record<string, unknown>;
988
+ getAggregatedData(targetNodeId: string): Record<string, unknown>;
989
+ reset(): void;
990
+ gc(): void;
991
+ }
992
+ export {};
993
+ //# sourceMappingURL=NodeTree.d.ts.map