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