@requence/service 1.0.0-alpha.40 → 1.0.0-alpha.46
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 +36 -0
- package/build/index.js +6 -6
- package/build/index.js.map +3 -3
- 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 +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 +3 -0
- 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 +139 -107
- package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/command.d.ts +126 -108
- 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 -1
- package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/nodeType.d.ts +57 -171
- package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/taskOptions.d.ts +5 -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 +352 -156
- package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/update.d.ts +28 -1
- package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
- package/build/types/service/src/createAmqpConnection.d.ts +2 -3
- package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
- package/package.json +6 -3
- package/build/types/helpers/src/protocol/targetNodes.d.ts +0 -253
- package/build/types/helpers/src/protocol/targetNodes.d.ts.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type OutputName = string | null
|
|
3
|
-
type
|
|
1
|
+
import type { Edge, Node } from './nodeType.ts';
|
|
2
|
+
export type OutputName = string | null;
|
|
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,25 +17,17 @@ 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);
|
|
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
|
-
outputs: {
|
|
36
|
-
name: string | typeof ERROR | null;
|
|
37
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
38
|
-
}[];
|
|
39
31
|
alias?: string | undefined;
|
|
40
32
|
} | {
|
|
41
33
|
id: string;
|
|
@@ -44,12 +36,14 @@ export declare class NodeTree {
|
|
|
44
36
|
type: "object";
|
|
45
37
|
} & import("json-schema").JSONSchema7) | {
|
|
46
38
|
type: "null";
|
|
47
|
-
}
|
|
39
|
+
} | ({
|
|
40
|
+
$ref: string;
|
|
41
|
+
} & import("json-schema").JSONSchema7);
|
|
48
42
|
name: string;
|
|
49
43
|
version: string;
|
|
50
44
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
51
45
|
outputs: {
|
|
52
|
-
name: string |
|
|
46
|
+
name: string | null;
|
|
53
47
|
schema: import("json-schema").JSONSchema7 | null;
|
|
54
48
|
}[];
|
|
55
49
|
alias?: string | undefined;
|
|
@@ -65,49 +59,52 @@ export declare class NodeTree {
|
|
|
65
59
|
language: "javascript" | "python" | "typescript";
|
|
66
60
|
maxExecutionTime: number;
|
|
67
61
|
outputs: {
|
|
68
|
-
name: string |
|
|
62
|
+
name: string | null;
|
|
69
63
|
schema: import("json-schema").JSONSchema7 | null;
|
|
70
64
|
}[];
|
|
71
65
|
alias?: string | undefined;
|
|
72
66
|
} | {
|
|
73
67
|
id: string;
|
|
74
68
|
type: "or";
|
|
75
|
-
outputs: {
|
|
76
|
-
name: string | typeof ERROR | null;
|
|
77
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
78
|
-
}[];
|
|
79
69
|
alias?: string | undefined;
|
|
80
70
|
} | {
|
|
81
71
|
id: string;
|
|
82
72
|
type: "reference";
|
|
83
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);
|
|
84
81
|
outputs: {
|
|
85
|
-
name: string |
|
|
82
|
+
name: string | null;
|
|
86
83
|
schema: import("json-schema").JSONSchema7 | null;
|
|
87
84
|
}[];
|
|
88
85
|
alias?: string | undefined;
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
} | {
|
|
87
|
+
id: string;
|
|
88
|
+
type: "exit";
|
|
89
|
+
alias?: string | undefined;
|
|
90
|
+
} | {
|
|
91
|
+
id: string;
|
|
92
|
+
type: "comment";
|
|
93
|
+
text: string;
|
|
94
|
+
alias?: string | undefined;
|
|
95
|
+
})[] | ExtendedEdge[] | Map<string, {
|
|
91
96
|
data: unknown;
|
|
92
97
|
overwrite: boolean;
|
|
93
98
|
}>)[];
|
|
94
|
-
static get ERROR():
|
|
99
|
+
static get ERROR(): string;
|
|
95
100
|
getPossiblePathsTo(nodeId: string, allowMultipleOutputs?: boolean): {
|
|
96
101
|
nodeId: string;
|
|
97
102
|
name: OutputName;
|
|
98
103
|
}[][];
|
|
99
|
-
getNodes(condition?: (node:
|
|
100
|
-
id: string;
|
|
101
|
-
type: "exit";
|
|
102
|
-
alias?: string | undefined;
|
|
103
|
-
} | {
|
|
104
|
+
getNodes(condition?: (node: Node) => boolean): ({
|
|
104
105
|
id: string;
|
|
105
106
|
type: "entry";
|
|
106
107
|
inputSchema: import("json-schema").JSONSchema7;
|
|
107
|
-
outputs: {
|
|
108
|
-
name: string | typeof ERROR | null;
|
|
109
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
110
|
-
}[];
|
|
111
108
|
alias?: string | undefined;
|
|
112
109
|
} | {
|
|
113
110
|
id: string;
|
|
@@ -116,12 +113,14 @@ export declare class NodeTree {
|
|
|
116
113
|
type: "object";
|
|
117
114
|
} & import("json-schema").JSONSchema7) | {
|
|
118
115
|
type: "null";
|
|
119
|
-
}
|
|
116
|
+
} | ({
|
|
117
|
+
$ref: string;
|
|
118
|
+
} & import("json-schema").JSONSchema7);
|
|
120
119
|
name: string;
|
|
121
120
|
version: string;
|
|
122
121
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
123
122
|
outputs: {
|
|
124
|
-
name: string |
|
|
123
|
+
name: string | null;
|
|
125
124
|
schema: import("json-schema").JSONSchema7 | null;
|
|
126
125
|
}[];
|
|
127
126
|
alias?: string | undefined;
|
|
@@ -137,42 +136,45 @@ export declare class NodeTree {
|
|
|
137
136
|
language: "javascript" | "python" | "typescript";
|
|
138
137
|
maxExecutionTime: number;
|
|
139
138
|
outputs: {
|
|
140
|
-
name: string |
|
|
139
|
+
name: string | null;
|
|
141
140
|
schema: import("json-schema").JSONSchema7 | null;
|
|
142
141
|
}[];
|
|
143
142
|
alias?: string | undefined;
|
|
144
143
|
} | {
|
|
145
144
|
id: string;
|
|
146
145
|
type: "or";
|
|
147
|
-
outputs: {
|
|
148
|
-
name: string | typeof ERROR | null;
|
|
149
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
150
|
-
}[];
|
|
151
146
|
alias?: string | undefined;
|
|
152
147
|
} | {
|
|
153
148
|
id: string;
|
|
154
149
|
type: "reference";
|
|
155
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);
|
|
156
158
|
outputs: {
|
|
157
|
-
name: string |
|
|
159
|
+
name: string | null;
|
|
158
160
|
schema: import("json-schema").JSONSchema7 | null;
|
|
159
161
|
}[];
|
|
160
162
|
alias?: string | undefined;
|
|
161
|
-
|
|
162
|
-
})[];
|
|
163
|
-
getNode(condition: (node: TreeNode) => boolean): TreeNode | undefined;
|
|
164
|
-
getChildren(nodeId: string, outputName: OutputName): ({
|
|
163
|
+
} | {
|
|
165
164
|
id: string;
|
|
166
165
|
type: "exit";
|
|
167
166
|
alias?: string | undefined;
|
|
168
167
|
} | {
|
|
168
|
+
id: string;
|
|
169
|
+
type: "comment";
|
|
170
|
+
text: string;
|
|
171
|
+
alias?: string | undefined;
|
|
172
|
+
})[];
|
|
173
|
+
getNode(condition: (node: Node) => boolean): Node | undefined;
|
|
174
|
+
getChildren(nodeId: string, outputName: OutputName): ({
|
|
169
175
|
id: string;
|
|
170
176
|
type: "entry";
|
|
171
177
|
inputSchema: import("json-schema").JSONSchema7;
|
|
172
|
-
outputs: {
|
|
173
|
-
name: string | typeof ERROR | null;
|
|
174
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
175
|
-
}[];
|
|
176
178
|
alias?: string | undefined;
|
|
177
179
|
} | {
|
|
178
180
|
id: string;
|
|
@@ -181,12 +183,14 @@ export declare class NodeTree {
|
|
|
181
183
|
type: "object";
|
|
182
184
|
} & import("json-schema").JSONSchema7) | {
|
|
183
185
|
type: "null";
|
|
184
|
-
}
|
|
186
|
+
} | ({
|
|
187
|
+
$ref: string;
|
|
188
|
+
} & import("json-schema").JSONSchema7);
|
|
185
189
|
name: string;
|
|
186
190
|
version: string;
|
|
187
191
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
188
192
|
outputs: {
|
|
189
|
-
name: string |
|
|
193
|
+
name: string | null;
|
|
190
194
|
schema: import("json-schema").JSONSchema7 | null;
|
|
191
195
|
}[];
|
|
192
196
|
alias?: string | undefined;
|
|
@@ -202,41 +206,45 @@ export declare class NodeTree {
|
|
|
202
206
|
language: "javascript" | "python" | "typescript";
|
|
203
207
|
maxExecutionTime: number;
|
|
204
208
|
outputs: {
|
|
205
|
-
name: string |
|
|
209
|
+
name: string | null;
|
|
206
210
|
schema: import("json-schema").JSONSchema7 | null;
|
|
207
211
|
}[];
|
|
208
212
|
alias?: string | undefined;
|
|
209
213
|
} | {
|
|
210
214
|
id: string;
|
|
211
215
|
type: "or";
|
|
212
|
-
outputs: {
|
|
213
|
-
name: string | typeof ERROR | null;
|
|
214
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
215
|
-
}[];
|
|
216
216
|
alias?: string | undefined;
|
|
217
217
|
} | {
|
|
218
218
|
id: string;
|
|
219
219
|
type: "reference";
|
|
220
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);
|
|
221
228
|
outputs: {
|
|
222
|
-
name: string |
|
|
229
|
+
name: string | null;
|
|
223
230
|
schema: import("json-schema").JSONSchema7 | null;
|
|
224
231
|
}[];
|
|
225
232
|
alias?: string | undefined;
|
|
226
|
-
|
|
227
|
-
})[];
|
|
228
|
-
getParents(nodeId: string): ({
|
|
233
|
+
} | {
|
|
229
234
|
id: string;
|
|
230
235
|
type: "exit";
|
|
231
236
|
alias?: string | undefined;
|
|
232
237
|
} | {
|
|
238
|
+
id: string;
|
|
239
|
+
type: "comment";
|
|
240
|
+
text: string;
|
|
241
|
+
alias?: string | undefined;
|
|
242
|
+
})[];
|
|
243
|
+
getOutputNames(nodeId: string): (string | null)[];
|
|
244
|
+
getParents(nodeId: string): ({
|
|
233
245
|
id: string;
|
|
234
246
|
type: "entry";
|
|
235
247
|
inputSchema: import("json-schema").JSONSchema7;
|
|
236
|
-
outputs: {
|
|
237
|
-
name: string | typeof ERROR | null;
|
|
238
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
239
|
-
}[];
|
|
240
248
|
alias?: string | undefined;
|
|
241
249
|
} | {
|
|
242
250
|
id: string;
|
|
@@ -245,12 +253,14 @@ export declare class NodeTree {
|
|
|
245
253
|
type: "object";
|
|
246
254
|
} & import("json-schema").JSONSchema7) | {
|
|
247
255
|
type: "null";
|
|
248
|
-
}
|
|
256
|
+
} | ({
|
|
257
|
+
$ref: string;
|
|
258
|
+
} & import("json-schema").JSONSchema7);
|
|
249
259
|
name: string;
|
|
250
260
|
version: string;
|
|
251
261
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
252
262
|
outputs: {
|
|
253
|
-
name: string |
|
|
263
|
+
name: string | null;
|
|
254
264
|
schema: import("json-schema").JSONSchema7 | null;
|
|
255
265
|
}[];
|
|
256
266
|
alias?: string | undefined;
|
|
@@ -266,41 +276,44 @@ export declare class NodeTree {
|
|
|
266
276
|
language: "javascript" | "python" | "typescript";
|
|
267
277
|
maxExecutionTime: number;
|
|
268
278
|
outputs: {
|
|
269
|
-
name: string |
|
|
279
|
+
name: string | null;
|
|
270
280
|
schema: import("json-schema").JSONSchema7 | null;
|
|
271
281
|
}[];
|
|
272
282
|
alias?: string | undefined;
|
|
273
283
|
} | {
|
|
274
284
|
id: string;
|
|
275
285
|
type: "or";
|
|
276
|
-
outputs: {
|
|
277
|
-
name: string | typeof ERROR | null;
|
|
278
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
279
|
-
}[];
|
|
280
286
|
alias?: string | undefined;
|
|
281
287
|
} | {
|
|
282
288
|
id: string;
|
|
283
289
|
type: "reference";
|
|
284
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);
|
|
285
298
|
outputs: {
|
|
286
|
-
name: string |
|
|
299
|
+
name: string | null;
|
|
287
300
|
schema: import("json-schema").JSONSchema7 | null;
|
|
288
301
|
}[];
|
|
289
302
|
alias?: string | undefined;
|
|
290
|
-
|
|
291
|
-
})[];
|
|
292
|
-
getAllParents(nodeId: string): ({
|
|
303
|
+
} | {
|
|
293
304
|
id: string;
|
|
294
305
|
type: "exit";
|
|
295
306
|
alias?: string | undefined;
|
|
296
307
|
} | {
|
|
308
|
+
id: string;
|
|
309
|
+
type: "comment";
|
|
310
|
+
text: string;
|
|
311
|
+
alias?: string | undefined;
|
|
312
|
+
})[];
|
|
313
|
+
getAllParents(nodeId: string): ({
|
|
297
314
|
id: string;
|
|
298
315
|
type: "entry";
|
|
299
316
|
inputSchema: import("json-schema").JSONSchema7;
|
|
300
|
-
outputs: {
|
|
301
|
-
name: string | typeof ERROR | null;
|
|
302
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
303
|
-
}[];
|
|
304
317
|
alias?: string | undefined;
|
|
305
318
|
} | {
|
|
306
319
|
id: string;
|
|
@@ -309,12 +322,14 @@ export declare class NodeTree {
|
|
|
309
322
|
type: "object";
|
|
310
323
|
} & import("json-schema").JSONSchema7) | {
|
|
311
324
|
type: "null";
|
|
312
|
-
}
|
|
325
|
+
} | ({
|
|
326
|
+
$ref: string;
|
|
327
|
+
} & import("json-schema").JSONSchema7);
|
|
313
328
|
name: string;
|
|
314
329
|
version: string;
|
|
315
330
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
316
331
|
outputs: {
|
|
317
|
-
name: string |
|
|
332
|
+
name: string | null;
|
|
318
333
|
schema: import("json-schema").JSONSchema7 | null;
|
|
319
334
|
}[];
|
|
320
335
|
alias?: string | undefined;
|
|
@@ -330,28 +345,39 @@ export declare class NodeTree {
|
|
|
330
345
|
language: "javascript" | "python" | "typescript";
|
|
331
346
|
maxExecutionTime: number;
|
|
332
347
|
outputs: {
|
|
333
|
-
name: string |
|
|
348
|
+
name: string | null;
|
|
334
349
|
schema: import("json-schema").JSONSchema7 | null;
|
|
335
350
|
}[];
|
|
336
351
|
alias?: string | undefined;
|
|
337
352
|
} | {
|
|
338
353
|
id: string;
|
|
339
354
|
type: "or";
|
|
340
|
-
outputs: {
|
|
341
|
-
name: string | typeof ERROR | null;
|
|
342
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
343
|
-
}[];
|
|
344
355
|
alias?: string | undefined;
|
|
345
356
|
} | {
|
|
346
357
|
id: string;
|
|
347
358
|
type: "reference";
|
|
348
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);
|
|
349
367
|
outputs: {
|
|
350
|
-
name: string |
|
|
368
|
+
name: string | null;
|
|
351
369
|
schema: import("json-schema").JSONSchema7 | null;
|
|
352
370
|
}[];
|
|
353
371
|
alias?: string | undefined;
|
|
354
|
-
|
|
372
|
+
} | {
|
|
373
|
+
id: string;
|
|
374
|
+
type: "exit";
|
|
375
|
+
alias?: string | undefined;
|
|
376
|
+
} | {
|
|
377
|
+
id: string;
|
|
378
|
+
type: "comment";
|
|
379
|
+
text: string;
|
|
380
|
+
alias?: string | undefined;
|
|
355
381
|
})[];
|
|
356
382
|
/**
|
|
357
383
|
* normally a node is "reached" when all incoming edges are traversed with the following exceptions:
|
|
@@ -366,17 +392,9 @@ export declare class NodeTree {
|
|
|
366
392
|
isReached(nodeId: string): boolean;
|
|
367
393
|
getParentsWithEdgeHandle(nodeId: string): {
|
|
368
394
|
node: {
|
|
369
|
-
id: string;
|
|
370
|
-
type: "exit";
|
|
371
|
-
alias?: string | undefined;
|
|
372
|
-
} | {
|
|
373
395
|
id: string;
|
|
374
396
|
type: "entry";
|
|
375
397
|
inputSchema: import("json-schema").JSONSchema7;
|
|
376
|
-
outputs: {
|
|
377
|
-
name: string | typeof ERROR | null;
|
|
378
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
379
|
-
}[];
|
|
380
398
|
alias?: string | undefined;
|
|
381
399
|
} | {
|
|
382
400
|
id: string;
|
|
@@ -385,12 +403,14 @@ export declare class NodeTree {
|
|
|
385
403
|
type: "object";
|
|
386
404
|
} & import("json-schema").JSONSchema7) | {
|
|
387
405
|
type: "null";
|
|
388
|
-
}
|
|
406
|
+
} | ({
|
|
407
|
+
$ref: string;
|
|
408
|
+
} & import("json-schema").JSONSchema7);
|
|
389
409
|
name: string;
|
|
390
410
|
version: string;
|
|
391
411
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
392
412
|
outputs: {
|
|
393
|
-
name: string |
|
|
413
|
+
name: string | null;
|
|
394
414
|
schema: import("json-schema").JSONSchema7 | null;
|
|
395
415
|
}[];
|
|
396
416
|
alias?: string | undefined;
|
|
@@ -406,28 +426,39 @@ export declare class NodeTree {
|
|
|
406
426
|
language: "javascript" | "python" | "typescript";
|
|
407
427
|
maxExecutionTime: number;
|
|
408
428
|
outputs: {
|
|
409
|
-
name: string |
|
|
429
|
+
name: string | null;
|
|
410
430
|
schema: import("json-schema").JSONSchema7 | null;
|
|
411
431
|
}[];
|
|
412
432
|
alias?: string | undefined;
|
|
413
433
|
} | {
|
|
414
434
|
id: string;
|
|
415
435
|
type: "or";
|
|
416
|
-
outputs: {
|
|
417
|
-
name: string | typeof ERROR | null;
|
|
418
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
419
|
-
}[];
|
|
420
436
|
alias?: string | undefined;
|
|
421
437
|
} | {
|
|
422
438
|
id: string;
|
|
423
439
|
type: "reference";
|
|
424
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);
|
|
425
448
|
outputs: {
|
|
426
|
-
name: string |
|
|
449
|
+
name: string | null;
|
|
427
450
|
schema: import("json-schema").JSONSchema7 | null;
|
|
428
451
|
}[];
|
|
429
452
|
alias?: string | undefined;
|
|
430
|
-
|
|
453
|
+
} | {
|
|
454
|
+
id: string;
|
|
455
|
+
type: "exit";
|
|
456
|
+
alias?: string | undefined;
|
|
457
|
+
} | {
|
|
458
|
+
id: string;
|
|
459
|
+
type: "comment";
|
|
460
|
+
text: string;
|
|
461
|
+
alias?: string | undefined;
|
|
431
462
|
};
|
|
432
463
|
handle: OutputName;
|
|
433
464
|
}[];
|
|
@@ -440,6 +471,7 @@ export declare class NodeTree {
|
|
|
440
471
|
getAllData(): Map<string, Map<OutputName, unknown>>;
|
|
441
472
|
getAggregatedDataByNode(targetNodeId: string): Record<string, unknown>;
|
|
442
473
|
getAggregatedData(targetNodeId: string): Record<string, unknown>;
|
|
474
|
+
getAggregatedEdgeData(edgeId: string): Record<string, unknown>;
|
|
443
475
|
reset(): void;
|
|
444
476
|
gc(): void;
|
|
445
477
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeTree.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/NodeTree.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"NodeTree.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/NodeTree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAE/C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,CAAA;AAEtC,KAAK,YAAY,GAAG,IAAI,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAgH/D,UAAU,eAAe;IACvB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,CAAA;IAC9B,IAAI,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;CAC1D;AAED,qBAAa,QAAQ;IACnB,OAAO,CAAC,KAAK,CAAmB;IAChC,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,IAAI,CAAoD;IAChE,SAAgB,MAAM,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,EAAE,EAAE,CAAA;IAC5D,SAAgB,SAAS,EAAE,OAAO,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;gBAE/C,EAAE,KAAK,EAAE,KAAK,EAAE,IAAgB,EAAE,EAAE,eAAe;IAoB/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