@requence/task 1.0.0-alpha.34 → 1.0.0-alpha.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/build/index.js +9 -8
- package/build/index.js.map +5 -5
- package/build/types/helpers/src/index.d.ts +1 -0
- package/build/types/helpers/src/index.d.ts.map +1 -1
- package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -1
- package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -1
- package/build/types/helpers/src/jsonschema/zod.d.ts +3 -2
- package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/NodeTree.d.ts +53 -567
- package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/command.d.ts +46 -410
- package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/index.d.ts +1 -0
- package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/nodeType.d.ts +38 -303
- package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/taskOptions.d.ts +4 -4
- package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +235 -0
- package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts +170 -880
- package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/update.d.ts +3 -1
- package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
- package/build/types/helpers/src/utils/types.d.ts +4 -0
- package/build/types/helpers/src/utils/types.d.ts.map +1 -0
- package/build/types/task/src/getTask.d.ts +1 -1
- package/build/types/task/src/types.d.ts +3 -5
- package/build/types/task/src/types.d.ts.map +1 -1
- package/build/types/task/src/watchTasks.d.ts +3 -0
- package/build/types/task/src/watchTasks.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Edge, Node } from './nodeType.ts';
|
|
2
2
|
export type OutputName = string | null;
|
|
3
|
-
type
|
|
3
|
+
type ExtendedEdge = Edge & {
|
|
4
4
|
traversed: number;
|
|
5
5
|
data?: string;
|
|
6
6
|
};
|
|
7
7
|
interface NodeTreeOptions {
|
|
8
|
-
nodes:
|
|
9
|
-
edges:
|
|
8
|
+
nodes: Node[];
|
|
9
|
+
edges: Edge[] | ExtendedEdge[];
|
|
10
10
|
data?: Map<string, {
|
|
11
11
|
data: unknown;
|
|
12
12
|
overwrite: boolean;
|
|
@@ -17,10 +17,10 @@ export declare class NodeTree {
|
|
|
17
17
|
private edges;
|
|
18
18
|
private data;
|
|
19
19
|
readonly cycles: {
|
|
20
|
-
node:
|
|
20
|
+
node: Node;
|
|
21
21
|
name: OutputName;
|
|
22
22
|
}[][];
|
|
23
|
-
readonly entryNode: Extract<
|
|
23
|
+
readonly entryNode: Extract<Node, {
|
|
24
24
|
type: 'entry';
|
|
25
25
|
}>;
|
|
26
26
|
constructor({ nodes, edges, data }: NodeTreeOptions);
|
|
@@ -28,23 +28,7 @@ export declare class NodeTree {
|
|
|
28
28
|
id: string;
|
|
29
29
|
type: "entry";
|
|
30
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
31
|
alias?: string | undefined;
|
|
44
|
-
size?: {
|
|
45
|
-
width?: number | undefined;
|
|
46
|
-
height?: number | undefined;
|
|
47
|
-
} | undefined;
|
|
48
32
|
} | {
|
|
49
33
|
id: string;
|
|
50
34
|
type: "service";
|
|
@@ -61,28 +45,12 @@ export declare class NodeTree {
|
|
|
61
45
|
outputs: {
|
|
62
46
|
name: string | null;
|
|
63
47
|
schema: import("json-schema").JSONSchema7 | null;
|
|
64
|
-
types?: {
|
|
65
|
-
input: string;
|
|
66
|
-
output: string;
|
|
67
|
-
} | undefined;
|
|
68
48
|
}[];
|
|
69
|
-
position: {
|
|
70
|
-
x: number;
|
|
71
|
-
y: number;
|
|
72
|
-
};
|
|
73
49
|
alias?: string | undefined;
|
|
74
|
-
inputTypes?: {
|
|
75
|
-
input: string;
|
|
76
|
-
output: string;
|
|
77
|
-
} | undefined;
|
|
78
50
|
configuration?: any;
|
|
79
51
|
ttl?: number | undefined;
|
|
80
52
|
retry?: number | undefined;
|
|
81
53
|
retryDelay?: number | undefined;
|
|
82
|
-
size?: {
|
|
83
|
-
width?: number | undefined;
|
|
84
|
-
height?: number | undefined;
|
|
85
|
-
} | undefined;
|
|
86
54
|
} | {
|
|
87
55
|
id: string;
|
|
88
56
|
type: "logic";
|
|
@@ -93,92 +61,38 @@ export declare class NodeTree {
|
|
|
93
61
|
outputs: {
|
|
94
62
|
name: string | null;
|
|
95
63
|
schema: import("json-schema").JSONSchema7 | null;
|
|
96
|
-
types?: {
|
|
97
|
-
input: string;
|
|
98
|
-
output: string;
|
|
99
|
-
} | undefined;
|
|
100
64
|
}[];
|
|
101
|
-
position: {
|
|
102
|
-
x: number;
|
|
103
|
-
y: number;
|
|
104
|
-
};
|
|
105
65
|
alias?: string | undefined;
|
|
106
|
-
outputNames?: string[] | undefined;
|
|
107
|
-
size?: {
|
|
108
|
-
width?: number | undefined;
|
|
109
|
-
height?: number | undefined;
|
|
110
|
-
} | undefined;
|
|
111
66
|
} | {
|
|
112
67
|
id: string;
|
|
113
68
|
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
69
|
alias?: string | undefined;
|
|
127
|
-
size?: {
|
|
128
|
-
width?: number | undefined;
|
|
129
|
-
height?: number | undefined;
|
|
130
|
-
} | undefined;
|
|
131
70
|
} | {
|
|
132
71
|
id: string;
|
|
133
72
|
type: "reference";
|
|
134
73
|
reference: string;
|
|
74
|
+
inputSchema: ({
|
|
75
|
+
type: "object";
|
|
76
|
+
} & import("json-schema").JSONSchema7) | {
|
|
77
|
+
type: "null";
|
|
78
|
+
} | ({
|
|
79
|
+
$ref: string;
|
|
80
|
+
} & import("json-schema").JSONSchema7);
|
|
135
81
|
outputs: {
|
|
136
82
|
name: string | null;
|
|
137
83
|
schema: import("json-schema").JSONSchema7 | null;
|
|
138
|
-
types?: {
|
|
139
|
-
input: string;
|
|
140
|
-
output: string;
|
|
141
|
-
} | undefined;
|
|
142
84
|
}[];
|
|
143
|
-
position: {
|
|
144
|
-
x: number;
|
|
145
|
-
y: number;
|
|
146
|
-
};
|
|
147
85
|
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
86
|
} | {
|
|
157
87
|
id: string;
|
|
158
88
|
type: "exit";
|
|
159
|
-
position: {
|
|
160
|
-
x: number;
|
|
161
|
-
y: number;
|
|
162
|
-
};
|
|
163
89
|
alias?: string | undefined;
|
|
164
|
-
size?: {
|
|
165
|
-
width?: number | undefined;
|
|
166
|
-
height?: number | undefined;
|
|
167
|
-
} | undefined;
|
|
168
90
|
} | {
|
|
169
91
|
id: string;
|
|
170
92
|
type: "comment";
|
|
171
93
|
text: string;
|
|
172
|
-
position: {
|
|
173
|
-
x: number;
|
|
174
|
-
y: number;
|
|
175
|
-
};
|
|
176
94
|
alias?: string | undefined;
|
|
177
|
-
|
|
178
|
-
width?: number | undefined;
|
|
179
|
-
height?: number | undefined;
|
|
180
|
-
} | undefined;
|
|
181
|
-
})[] | ExtendedTreeEdge[] | Map<string, {
|
|
95
|
+
})[] | ExtendedEdge[] | Map<string, {
|
|
182
96
|
data: unknown;
|
|
183
97
|
overwrite: boolean;
|
|
184
98
|
}>)[];
|
|
@@ -187,27 +101,11 @@ export declare class NodeTree {
|
|
|
187
101
|
nodeId: string;
|
|
188
102
|
name: OutputName;
|
|
189
103
|
}[][];
|
|
190
|
-
getNodes(condition?: (node:
|
|
104
|
+
getNodes(condition?: (node: Node) => boolean): ({
|
|
191
105
|
id: string;
|
|
192
106
|
type: "entry";
|
|
193
107
|
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
108
|
alias?: string | undefined;
|
|
207
|
-
size?: {
|
|
208
|
-
width?: number | undefined;
|
|
209
|
-
height?: number | undefined;
|
|
210
|
-
} | undefined;
|
|
211
109
|
} | {
|
|
212
110
|
id: string;
|
|
213
111
|
type: "service";
|
|
@@ -224,28 +122,12 @@ export declare class NodeTree {
|
|
|
224
122
|
outputs: {
|
|
225
123
|
name: string | null;
|
|
226
124
|
schema: import("json-schema").JSONSchema7 | null;
|
|
227
|
-
types?: {
|
|
228
|
-
input: string;
|
|
229
|
-
output: string;
|
|
230
|
-
} | undefined;
|
|
231
125
|
}[];
|
|
232
|
-
position: {
|
|
233
|
-
x: number;
|
|
234
|
-
y: number;
|
|
235
|
-
};
|
|
236
126
|
alias?: string | undefined;
|
|
237
|
-
inputTypes?: {
|
|
238
|
-
input: string;
|
|
239
|
-
output: string;
|
|
240
|
-
} | undefined;
|
|
241
127
|
configuration?: any;
|
|
242
128
|
ttl?: number | undefined;
|
|
243
129
|
retry?: number | undefined;
|
|
244
130
|
retryDelay?: number | undefined;
|
|
245
|
-
size?: {
|
|
246
|
-
width?: number | undefined;
|
|
247
|
-
height?: number | undefined;
|
|
248
|
-
} | undefined;
|
|
249
131
|
} | {
|
|
250
132
|
id: string;
|
|
251
133
|
type: "logic";
|
|
@@ -256,114 +138,44 @@ export declare class NodeTree {
|
|
|
256
138
|
outputs: {
|
|
257
139
|
name: string | null;
|
|
258
140
|
schema: import("json-schema").JSONSchema7 | null;
|
|
259
|
-
types?: {
|
|
260
|
-
input: string;
|
|
261
|
-
output: string;
|
|
262
|
-
} | undefined;
|
|
263
141
|
}[];
|
|
264
|
-
position: {
|
|
265
|
-
x: number;
|
|
266
|
-
y: number;
|
|
267
|
-
};
|
|
268
142
|
alias?: string | undefined;
|
|
269
|
-
outputNames?: string[] | undefined;
|
|
270
|
-
size?: {
|
|
271
|
-
width?: number | undefined;
|
|
272
|
-
height?: number | undefined;
|
|
273
|
-
} | undefined;
|
|
274
143
|
} | {
|
|
275
144
|
id: string;
|
|
276
145
|
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
146
|
alias?: string | undefined;
|
|
290
|
-
size?: {
|
|
291
|
-
width?: number | undefined;
|
|
292
|
-
height?: number | undefined;
|
|
293
|
-
} | undefined;
|
|
294
147
|
} | {
|
|
295
148
|
id: string;
|
|
296
149
|
type: "reference";
|
|
297
150
|
reference: string;
|
|
151
|
+
inputSchema: ({
|
|
152
|
+
type: "object";
|
|
153
|
+
} & import("json-schema").JSONSchema7) | {
|
|
154
|
+
type: "null";
|
|
155
|
+
} | ({
|
|
156
|
+
$ref: string;
|
|
157
|
+
} & import("json-schema").JSONSchema7);
|
|
298
158
|
outputs: {
|
|
299
159
|
name: string | null;
|
|
300
160
|
schema: import("json-schema").JSONSchema7 | null;
|
|
301
|
-
types?: {
|
|
302
|
-
input: string;
|
|
303
|
-
output: string;
|
|
304
|
-
} | undefined;
|
|
305
161
|
}[];
|
|
306
|
-
position: {
|
|
307
|
-
x: number;
|
|
308
|
-
y: number;
|
|
309
|
-
};
|
|
310
162
|
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
163
|
} | {
|
|
320
164
|
id: string;
|
|
321
165
|
type: "exit";
|
|
322
|
-
position: {
|
|
323
|
-
x: number;
|
|
324
|
-
y: number;
|
|
325
|
-
};
|
|
326
166
|
alias?: string | undefined;
|
|
327
|
-
size?: {
|
|
328
|
-
width?: number | undefined;
|
|
329
|
-
height?: number | undefined;
|
|
330
|
-
} | undefined;
|
|
331
167
|
} | {
|
|
332
168
|
id: string;
|
|
333
169
|
type: "comment";
|
|
334
170
|
text: string;
|
|
335
|
-
position: {
|
|
336
|
-
x: number;
|
|
337
|
-
y: number;
|
|
338
|
-
};
|
|
339
171
|
alias?: string | undefined;
|
|
340
|
-
size?: {
|
|
341
|
-
width?: number | undefined;
|
|
342
|
-
height?: number | undefined;
|
|
343
|
-
} | undefined;
|
|
344
172
|
})[];
|
|
345
|
-
getNode(condition: (node:
|
|
173
|
+
getNode(condition: (node: Node) => boolean): Node | undefined;
|
|
346
174
|
getChildren(nodeId: string, outputName: OutputName): ({
|
|
347
175
|
id: string;
|
|
348
176
|
type: "entry";
|
|
349
177
|
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
178
|
alias?: string | undefined;
|
|
363
|
-
size?: {
|
|
364
|
-
width?: number | undefined;
|
|
365
|
-
height?: number | undefined;
|
|
366
|
-
} | undefined;
|
|
367
179
|
} | {
|
|
368
180
|
id: string;
|
|
369
181
|
type: "service";
|
|
@@ -380,28 +192,12 @@ export declare class NodeTree {
|
|
|
380
192
|
outputs: {
|
|
381
193
|
name: string | null;
|
|
382
194
|
schema: import("json-schema").JSONSchema7 | null;
|
|
383
|
-
types?: {
|
|
384
|
-
input: string;
|
|
385
|
-
output: string;
|
|
386
|
-
} | undefined;
|
|
387
195
|
}[];
|
|
388
|
-
position: {
|
|
389
|
-
x: number;
|
|
390
|
-
y: number;
|
|
391
|
-
};
|
|
392
196
|
alias?: string | undefined;
|
|
393
|
-
inputTypes?: {
|
|
394
|
-
input: string;
|
|
395
|
-
output: string;
|
|
396
|
-
} | undefined;
|
|
397
197
|
configuration?: any;
|
|
398
198
|
ttl?: number | undefined;
|
|
399
199
|
retry?: number | undefined;
|
|
400
200
|
retryDelay?: number | undefined;
|
|
401
|
-
size?: {
|
|
402
|
-
width?: number | undefined;
|
|
403
|
-
height?: number | undefined;
|
|
404
|
-
} | undefined;
|
|
405
201
|
} | {
|
|
406
202
|
id: string;
|
|
407
203
|
type: "logic";
|
|
@@ -412,113 +208,44 @@ export declare class NodeTree {
|
|
|
412
208
|
outputs: {
|
|
413
209
|
name: string | null;
|
|
414
210
|
schema: import("json-schema").JSONSchema7 | null;
|
|
415
|
-
types?: {
|
|
416
|
-
input: string;
|
|
417
|
-
output: string;
|
|
418
|
-
} | undefined;
|
|
419
211
|
}[];
|
|
420
|
-
position: {
|
|
421
|
-
x: number;
|
|
422
|
-
y: number;
|
|
423
|
-
};
|
|
424
212
|
alias?: string | undefined;
|
|
425
|
-
outputNames?: string[] | undefined;
|
|
426
|
-
size?: {
|
|
427
|
-
width?: number | undefined;
|
|
428
|
-
height?: number | undefined;
|
|
429
|
-
} | undefined;
|
|
430
213
|
} | {
|
|
431
214
|
id: string;
|
|
432
215
|
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
216
|
alias?: string | undefined;
|
|
446
|
-
size?: {
|
|
447
|
-
width?: number | undefined;
|
|
448
|
-
height?: number | undefined;
|
|
449
|
-
} | undefined;
|
|
450
217
|
} | {
|
|
451
218
|
id: string;
|
|
452
219
|
type: "reference";
|
|
453
220
|
reference: string;
|
|
221
|
+
inputSchema: ({
|
|
222
|
+
type: "object";
|
|
223
|
+
} & import("json-schema").JSONSchema7) | {
|
|
224
|
+
type: "null";
|
|
225
|
+
} | ({
|
|
226
|
+
$ref: string;
|
|
227
|
+
} & import("json-schema").JSONSchema7);
|
|
454
228
|
outputs: {
|
|
455
229
|
name: string | null;
|
|
456
230
|
schema: import("json-schema").JSONSchema7 | null;
|
|
457
|
-
types?: {
|
|
458
|
-
input: string;
|
|
459
|
-
output: string;
|
|
460
|
-
} | undefined;
|
|
461
231
|
}[];
|
|
462
|
-
position: {
|
|
463
|
-
x: number;
|
|
464
|
-
y: number;
|
|
465
|
-
};
|
|
466
232
|
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
233
|
} | {
|
|
476
234
|
id: string;
|
|
477
235
|
type: "exit";
|
|
478
|
-
position: {
|
|
479
|
-
x: number;
|
|
480
|
-
y: number;
|
|
481
|
-
};
|
|
482
236
|
alias?: string | undefined;
|
|
483
|
-
size?: {
|
|
484
|
-
width?: number | undefined;
|
|
485
|
-
height?: number | undefined;
|
|
486
|
-
} | undefined;
|
|
487
237
|
} | {
|
|
488
238
|
id: string;
|
|
489
239
|
type: "comment";
|
|
490
240
|
text: string;
|
|
491
|
-
position: {
|
|
492
|
-
x: number;
|
|
493
|
-
y: number;
|
|
494
|
-
};
|
|
495
241
|
alias?: string | undefined;
|
|
496
|
-
size?: {
|
|
497
|
-
width?: number | undefined;
|
|
498
|
-
height?: number | undefined;
|
|
499
|
-
} | undefined;
|
|
500
242
|
})[];
|
|
243
|
+
getOutputNames(nodeId: string): (string | null)[];
|
|
501
244
|
getParents(nodeId: string): ({
|
|
502
245
|
id: string;
|
|
503
246
|
type: "entry";
|
|
504
247
|
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
248
|
alias?: string | undefined;
|
|
518
|
-
size?: {
|
|
519
|
-
width?: number | undefined;
|
|
520
|
-
height?: number | undefined;
|
|
521
|
-
} | undefined;
|
|
522
249
|
} | {
|
|
523
250
|
id: string;
|
|
524
251
|
type: "service";
|
|
@@ -535,28 +262,12 @@ export declare class NodeTree {
|
|
|
535
262
|
outputs: {
|
|
536
263
|
name: string | null;
|
|
537
264
|
schema: import("json-schema").JSONSchema7 | null;
|
|
538
|
-
types?: {
|
|
539
|
-
input: string;
|
|
540
|
-
output: string;
|
|
541
|
-
} | undefined;
|
|
542
265
|
}[];
|
|
543
|
-
position: {
|
|
544
|
-
x: number;
|
|
545
|
-
y: number;
|
|
546
|
-
};
|
|
547
266
|
alias?: string | undefined;
|
|
548
|
-
inputTypes?: {
|
|
549
|
-
input: string;
|
|
550
|
-
output: string;
|
|
551
|
-
} | undefined;
|
|
552
267
|
configuration?: any;
|
|
553
268
|
ttl?: number | undefined;
|
|
554
269
|
retry?: number | undefined;
|
|
555
270
|
retryDelay?: number | undefined;
|
|
556
|
-
size?: {
|
|
557
|
-
width?: number | undefined;
|
|
558
|
-
height?: number | undefined;
|
|
559
|
-
} | undefined;
|
|
560
271
|
} | {
|
|
561
272
|
id: string;
|
|
562
273
|
type: "logic";
|
|
@@ -567,113 +278,43 @@ export declare class NodeTree {
|
|
|
567
278
|
outputs: {
|
|
568
279
|
name: string | null;
|
|
569
280
|
schema: import("json-schema").JSONSchema7 | null;
|
|
570
|
-
types?: {
|
|
571
|
-
input: string;
|
|
572
|
-
output: string;
|
|
573
|
-
} | undefined;
|
|
574
281
|
}[];
|
|
575
|
-
position: {
|
|
576
|
-
x: number;
|
|
577
|
-
y: number;
|
|
578
|
-
};
|
|
579
282
|
alias?: string | undefined;
|
|
580
|
-
outputNames?: string[] | undefined;
|
|
581
|
-
size?: {
|
|
582
|
-
width?: number | undefined;
|
|
583
|
-
height?: number | undefined;
|
|
584
|
-
} | undefined;
|
|
585
283
|
} | {
|
|
586
284
|
id: string;
|
|
587
285
|
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
286
|
alias?: string | undefined;
|
|
601
|
-
size?: {
|
|
602
|
-
width?: number | undefined;
|
|
603
|
-
height?: number | undefined;
|
|
604
|
-
} | undefined;
|
|
605
287
|
} | {
|
|
606
288
|
id: string;
|
|
607
289
|
type: "reference";
|
|
608
290
|
reference: string;
|
|
291
|
+
inputSchema: ({
|
|
292
|
+
type: "object";
|
|
293
|
+
} & import("json-schema").JSONSchema7) | {
|
|
294
|
+
type: "null";
|
|
295
|
+
} | ({
|
|
296
|
+
$ref: string;
|
|
297
|
+
} & import("json-schema").JSONSchema7);
|
|
609
298
|
outputs: {
|
|
610
299
|
name: string | null;
|
|
611
300
|
schema: import("json-schema").JSONSchema7 | null;
|
|
612
|
-
types?: {
|
|
613
|
-
input: string;
|
|
614
|
-
output: string;
|
|
615
|
-
} | undefined;
|
|
616
301
|
}[];
|
|
617
|
-
position: {
|
|
618
|
-
x: number;
|
|
619
|
-
y: number;
|
|
620
|
-
};
|
|
621
302
|
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
303
|
} | {
|
|
631
304
|
id: string;
|
|
632
305
|
type: "exit";
|
|
633
|
-
position: {
|
|
634
|
-
x: number;
|
|
635
|
-
y: number;
|
|
636
|
-
};
|
|
637
306
|
alias?: string | undefined;
|
|
638
|
-
size?: {
|
|
639
|
-
width?: number | undefined;
|
|
640
|
-
height?: number | undefined;
|
|
641
|
-
} | undefined;
|
|
642
307
|
} | {
|
|
643
308
|
id: string;
|
|
644
309
|
type: "comment";
|
|
645
310
|
text: string;
|
|
646
|
-
position: {
|
|
647
|
-
x: number;
|
|
648
|
-
y: number;
|
|
649
|
-
};
|
|
650
311
|
alias?: string | undefined;
|
|
651
|
-
size?: {
|
|
652
|
-
width?: number | undefined;
|
|
653
|
-
height?: number | undefined;
|
|
654
|
-
} | undefined;
|
|
655
312
|
})[];
|
|
656
313
|
getAllParents(nodeId: string): ({
|
|
657
314
|
id: string;
|
|
658
315
|
type: "entry";
|
|
659
316
|
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
317
|
alias?: string | undefined;
|
|
673
|
-
size?: {
|
|
674
|
-
width?: number | undefined;
|
|
675
|
-
height?: number | undefined;
|
|
676
|
-
} | undefined;
|
|
677
318
|
} | {
|
|
678
319
|
id: string;
|
|
679
320
|
type: "service";
|
|
@@ -690,28 +331,12 @@ export declare class NodeTree {
|
|
|
690
331
|
outputs: {
|
|
691
332
|
name: string | null;
|
|
692
333
|
schema: import("json-schema").JSONSchema7 | null;
|
|
693
|
-
types?: {
|
|
694
|
-
input: string;
|
|
695
|
-
output: string;
|
|
696
|
-
} | undefined;
|
|
697
334
|
}[];
|
|
698
|
-
position: {
|
|
699
|
-
x: number;
|
|
700
|
-
y: number;
|
|
701
|
-
};
|
|
702
335
|
alias?: string | undefined;
|
|
703
|
-
inputTypes?: {
|
|
704
|
-
input: string;
|
|
705
|
-
output: string;
|
|
706
|
-
} | undefined;
|
|
707
336
|
configuration?: any;
|
|
708
337
|
ttl?: number | undefined;
|
|
709
338
|
retry?: number | undefined;
|
|
710
339
|
retryDelay?: number | undefined;
|
|
711
|
-
size?: {
|
|
712
|
-
width?: number | undefined;
|
|
713
|
-
height?: number | undefined;
|
|
714
|
-
} | undefined;
|
|
715
340
|
} | {
|
|
716
341
|
id: string;
|
|
717
342
|
type: "logic";
|
|
@@ -722,91 +347,37 @@ export declare class NodeTree {
|
|
|
722
347
|
outputs: {
|
|
723
348
|
name: string | null;
|
|
724
349
|
schema: import("json-schema").JSONSchema7 | null;
|
|
725
|
-
types?: {
|
|
726
|
-
input: string;
|
|
727
|
-
output: string;
|
|
728
|
-
} | undefined;
|
|
729
350
|
}[];
|
|
730
|
-
position: {
|
|
731
|
-
x: number;
|
|
732
|
-
y: number;
|
|
733
|
-
};
|
|
734
351
|
alias?: string | undefined;
|
|
735
|
-
outputNames?: string[] | undefined;
|
|
736
|
-
size?: {
|
|
737
|
-
width?: number | undefined;
|
|
738
|
-
height?: number | undefined;
|
|
739
|
-
} | undefined;
|
|
740
352
|
} | {
|
|
741
353
|
id: string;
|
|
742
354
|
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
355
|
alias?: string | undefined;
|
|
756
|
-
size?: {
|
|
757
|
-
width?: number | undefined;
|
|
758
|
-
height?: number | undefined;
|
|
759
|
-
} | undefined;
|
|
760
356
|
} | {
|
|
761
357
|
id: string;
|
|
762
358
|
type: "reference";
|
|
763
359
|
reference: string;
|
|
360
|
+
inputSchema: ({
|
|
361
|
+
type: "object";
|
|
362
|
+
} & import("json-schema").JSONSchema7) | {
|
|
363
|
+
type: "null";
|
|
364
|
+
} | ({
|
|
365
|
+
$ref: string;
|
|
366
|
+
} & import("json-schema").JSONSchema7);
|
|
764
367
|
outputs: {
|
|
765
368
|
name: string | null;
|
|
766
369
|
schema: import("json-schema").JSONSchema7 | null;
|
|
767
|
-
types?: {
|
|
768
|
-
input: string;
|
|
769
|
-
output: string;
|
|
770
|
-
} | undefined;
|
|
771
370
|
}[];
|
|
772
|
-
position: {
|
|
773
|
-
x: number;
|
|
774
|
-
y: number;
|
|
775
|
-
};
|
|
776
371
|
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
372
|
} | {
|
|
786
373
|
id: string;
|
|
787
374
|
type: "exit";
|
|
788
|
-
position: {
|
|
789
|
-
x: number;
|
|
790
|
-
y: number;
|
|
791
|
-
};
|
|
792
375
|
alias?: string | undefined;
|
|
793
|
-
size?: {
|
|
794
|
-
width?: number | undefined;
|
|
795
|
-
height?: number | undefined;
|
|
796
|
-
} | undefined;
|
|
797
376
|
} | {
|
|
798
377
|
id: string;
|
|
799
378
|
type: "comment";
|
|
800
379
|
text: string;
|
|
801
|
-
position: {
|
|
802
|
-
x: number;
|
|
803
|
-
y: number;
|
|
804
|
-
};
|
|
805
380
|
alias?: string | undefined;
|
|
806
|
-
size?: {
|
|
807
|
-
width?: number | undefined;
|
|
808
|
-
height?: number | undefined;
|
|
809
|
-
} | undefined;
|
|
810
381
|
})[];
|
|
811
382
|
/**
|
|
812
383
|
* normally a node is "reached" when all incoming edges are traversed with the following exceptions:
|
|
@@ -824,23 +395,7 @@ export declare class NodeTree {
|
|
|
824
395
|
id: string;
|
|
825
396
|
type: "entry";
|
|
826
397
|
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
398
|
alias?: string | undefined;
|
|
840
|
-
size?: {
|
|
841
|
-
width?: number | undefined;
|
|
842
|
-
height?: number | undefined;
|
|
843
|
-
} | undefined;
|
|
844
399
|
} | {
|
|
845
400
|
id: string;
|
|
846
401
|
type: "service";
|
|
@@ -857,28 +412,12 @@ export declare class NodeTree {
|
|
|
857
412
|
outputs: {
|
|
858
413
|
name: string | null;
|
|
859
414
|
schema: import("json-schema").JSONSchema7 | null;
|
|
860
|
-
types?: {
|
|
861
|
-
input: string;
|
|
862
|
-
output: string;
|
|
863
|
-
} | undefined;
|
|
864
415
|
}[];
|
|
865
|
-
position: {
|
|
866
|
-
x: number;
|
|
867
|
-
y: number;
|
|
868
|
-
};
|
|
869
416
|
alias?: string | undefined;
|
|
870
|
-
inputTypes?: {
|
|
871
|
-
input: string;
|
|
872
|
-
output: string;
|
|
873
|
-
} | undefined;
|
|
874
417
|
configuration?: any;
|
|
875
418
|
ttl?: number | undefined;
|
|
876
419
|
retry?: number | undefined;
|
|
877
420
|
retryDelay?: number | undefined;
|
|
878
|
-
size?: {
|
|
879
|
-
width?: number | undefined;
|
|
880
|
-
height?: number | undefined;
|
|
881
|
-
} | undefined;
|
|
882
421
|
} | {
|
|
883
422
|
id: string;
|
|
884
423
|
type: "logic";
|
|
@@ -889,91 +428,37 @@ export declare class NodeTree {
|
|
|
889
428
|
outputs: {
|
|
890
429
|
name: string | null;
|
|
891
430
|
schema: import("json-schema").JSONSchema7 | null;
|
|
892
|
-
types?: {
|
|
893
|
-
input: string;
|
|
894
|
-
output: string;
|
|
895
|
-
} | undefined;
|
|
896
431
|
}[];
|
|
897
|
-
position: {
|
|
898
|
-
x: number;
|
|
899
|
-
y: number;
|
|
900
|
-
};
|
|
901
432
|
alias?: string | undefined;
|
|
902
|
-
outputNames?: string[] | undefined;
|
|
903
|
-
size?: {
|
|
904
|
-
width?: number | undefined;
|
|
905
|
-
height?: number | undefined;
|
|
906
|
-
} | undefined;
|
|
907
433
|
} | {
|
|
908
434
|
id: string;
|
|
909
435
|
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
436
|
alias?: string | undefined;
|
|
923
|
-
size?: {
|
|
924
|
-
width?: number | undefined;
|
|
925
|
-
height?: number | undefined;
|
|
926
|
-
} | undefined;
|
|
927
437
|
} | {
|
|
928
438
|
id: string;
|
|
929
439
|
type: "reference";
|
|
930
440
|
reference: string;
|
|
441
|
+
inputSchema: ({
|
|
442
|
+
type: "object";
|
|
443
|
+
} & import("json-schema").JSONSchema7) | {
|
|
444
|
+
type: "null";
|
|
445
|
+
} | ({
|
|
446
|
+
$ref: string;
|
|
447
|
+
} & import("json-schema").JSONSchema7);
|
|
931
448
|
outputs: {
|
|
932
449
|
name: string | null;
|
|
933
450
|
schema: import("json-schema").JSONSchema7 | null;
|
|
934
|
-
types?: {
|
|
935
|
-
input: string;
|
|
936
|
-
output: string;
|
|
937
|
-
} | undefined;
|
|
938
451
|
}[];
|
|
939
|
-
position: {
|
|
940
|
-
x: number;
|
|
941
|
-
y: number;
|
|
942
|
-
};
|
|
943
452
|
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
453
|
} | {
|
|
953
454
|
id: string;
|
|
954
455
|
type: "exit";
|
|
955
|
-
position: {
|
|
956
|
-
x: number;
|
|
957
|
-
y: number;
|
|
958
|
-
};
|
|
959
456
|
alias?: string | undefined;
|
|
960
|
-
size?: {
|
|
961
|
-
width?: number | undefined;
|
|
962
|
-
height?: number | undefined;
|
|
963
|
-
} | undefined;
|
|
964
457
|
} | {
|
|
965
458
|
id: string;
|
|
966
459
|
type: "comment";
|
|
967
460
|
text: string;
|
|
968
|
-
position: {
|
|
969
|
-
x: number;
|
|
970
|
-
y: number;
|
|
971
|
-
};
|
|
972
461
|
alias?: string | undefined;
|
|
973
|
-
size?: {
|
|
974
|
-
width?: number | undefined;
|
|
975
|
-
height?: number | undefined;
|
|
976
|
-
} | undefined;
|
|
977
462
|
};
|
|
978
463
|
handle: OutputName;
|
|
979
464
|
}[];
|
|
@@ -986,6 +471,7 @@ export declare class NodeTree {
|
|
|
986
471
|
getAllData(): Map<string, Map<OutputName, unknown>>;
|
|
987
472
|
getAggregatedDataByNode(targetNodeId: string): Record<string, unknown>;
|
|
988
473
|
getAggregatedData(targetNodeId: string): Record<string, unknown>;
|
|
474
|
+
getAggregatedEdgeData(edgeId: string): Record<string, unknown>;
|
|
989
475
|
reset(): void;
|
|
990
476
|
gc(): void;
|
|
991
477
|
}
|