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