@requence/task 1.0.0-alpha.4 → 1.0.0-alpha.40
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 +216 -0
- package/build/chunk-y4v98p2s.js +53 -0
- package/build/chunk-y4v98p2s.js.map +10 -0
- package/build/cli.js +660 -158
- package/build/cli.js.map +28 -17
- package/build/index.js +861 -227
- package/build/index.js.map +20 -8
- package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
- package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
- package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
- package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
- package/build/types/helpers/src/files/fileObject.d.ts +16 -0
- package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
- package/build/types/helpers/src/files/index.d.ts +7 -0
- package/build/types/helpers/src/files/index.d.ts.map +1 -0
- package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
- package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
- package/build/types/helpers/src/files/mapOutput.d.ts +10 -0
- package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
- package/build/types/helpers/src/files/streamObject.d.ts +14 -0
- package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
- package/build/types/helpers/src/files/types.d.ts +4 -0
- package/build/types/helpers/src/files/types.d.ts.map +1 -0
- package/build/types/helpers/src/index.d.ts +11 -6
- package/build/types/helpers/src/index.d.ts.map +1 -1
- package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
- package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/types.d.ts +13 -0
- package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/validate.d.ts +32 -0
- package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/zod.d.ts +16 -0
- package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/NodeTree.d.ts +479 -0
- package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/command.d.ts +489 -0
- package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/helpers.d.ts +7 -0
- package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/index.d.ts +8 -0
- package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/nodeType.d.ts +169 -0
- package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/taskOptions.d.ts +23 -0
- package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
- 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 +832 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/update.d.ts +381 -0
- package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
- package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts +3 -0
- package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts.map +1 -0
- package/build/types/helpers/src/utils/clone.d.ts +3 -0
- package/build/types/helpers/src/utils/clone.d.ts.map +1 -0
- package/build/types/helpers/src/utils/createObjectProxy.d.ts +2 -0
- package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +1 -0
- package/build/types/helpers/src/{createRemotePromise.d.ts → utils/createRemotePromise.d.ts} +1 -1
- package/build/types/helpers/src/utils/createRemotePromise.d.ts.map +1 -0
- package/build/types/helpers/src/utils/isRecord.d.ts +2 -0
- package/build/types/helpers/src/utils/isRecord.d.ts.map +1 -0
- package/build/types/helpers/src/utils/mapData.d.ts +18 -0
- package/build/types/helpers/src/utils/mapData.d.ts.map +1 -0
- package/build/types/helpers/src/{utils.d.ts → utils/matchSchema.d.ts} +2 -2
- package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -0
- package/build/types/helpers/src/utils/obfuscate.d.ts.map +1 -0
- package/build/types/helpers/src/utils/requenceCallback.d.ts +17 -0
- package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
- package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
- package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
- 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/abortTask.d.ts +8 -0
- package/build/types/task/src/abortTask.d.ts.map +1 -0
- package/build/types/task/src/createTask.d.ts +14 -103
- package/build/types/task/src/createTask.d.ts.map +1 -1
- package/build/types/task/src/getTask.d.ts +24 -0
- package/build/types/task/src/getTask.d.ts.map +1 -0
- package/build/types/task/src/index.d.ts +6 -1
- package/build/types/task/src/index.d.ts.map +1 -1
- package/build/types/task/src/recreateTask.d.ts +10 -0
- package/build/types/task/src/recreateTask.d.ts.map +1 -0
- package/build/types/task/src/types.d.ts +189 -941
- package/build/types/task/src/types.d.ts.map +1 -1
- package/build/types/task/src/utils/getAccessToken.d.ts.map +1 -1
- package/build/types/task/src/watchTasks.d.ts +13 -97
- package/build/types/task/src/watchTasks.d.ts.map +1 -1
- package/package.json +8 -7
- package/build/chunk-6pjtq0hg.js +0 -66
- package/build/chunk-6pjtq0hg.js.map +0 -12
- package/build/types/helpers/src/clone.d.ts +0 -3
- package/build/types/helpers/src/clone.d.ts.map +0 -1
- package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
- package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
- package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
- package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
- package/build/types/helpers/src/utils.d.ts.map +0 -1
- package/build/types/task/src/utils/callbackToAsyncIterator.d.ts +0 -5
- package/build/types/task/src/utils/callbackToAsyncIterator.d.ts.map +0 -1
- /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
import type { Edge, Node } from './nodeType.ts';
|
|
2
|
+
export type OutputName = string | null;
|
|
3
|
+
type ExtendedEdge = Edge & {
|
|
4
|
+
traversed: number;
|
|
5
|
+
data?: string;
|
|
6
|
+
};
|
|
7
|
+
interface NodeTreeOptions {
|
|
8
|
+
nodes: Node[];
|
|
9
|
+
edges: Edge[] | ExtendedEdge[];
|
|
10
|
+
data?: Map<string, {
|
|
11
|
+
data: unknown;
|
|
12
|
+
overwrite: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
export declare class NodeTree {
|
|
16
|
+
private nodes;
|
|
17
|
+
private edges;
|
|
18
|
+
private data;
|
|
19
|
+
readonly cycles: {
|
|
20
|
+
node: Node;
|
|
21
|
+
name: OutputName;
|
|
22
|
+
}[][];
|
|
23
|
+
readonly entryNode: Extract<Node, {
|
|
24
|
+
type: 'entry';
|
|
25
|
+
}>;
|
|
26
|
+
constructor({ nodes, edges, data }: NodeTreeOptions);
|
|
27
|
+
pack(): (({
|
|
28
|
+
id: string;
|
|
29
|
+
type: "entry";
|
|
30
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
31
|
+
alias?: string | undefined;
|
|
32
|
+
} | {
|
|
33
|
+
id: string;
|
|
34
|
+
type: "service";
|
|
35
|
+
inputSchema: ({
|
|
36
|
+
type: "object";
|
|
37
|
+
} & import("json-schema").JSONSchema7) | {
|
|
38
|
+
type: "null";
|
|
39
|
+
} | ({
|
|
40
|
+
$ref: string;
|
|
41
|
+
} & import("json-schema").JSONSchema7);
|
|
42
|
+
name: string;
|
|
43
|
+
version: string;
|
|
44
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
45
|
+
outputs: {
|
|
46
|
+
name: string | null;
|
|
47
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
48
|
+
}[];
|
|
49
|
+
alias?: string | undefined;
|
|
50
|
+
configuration?: any;
|
|
51
|
+
ttl?: number | undefined;
|
|
52
|
+
retry?: number | undefined;
|
|
53
|
+
retryDelay?: number | undefined;
|
|
54
|
+
} | {
|
|
55
|
+
id: string;
|
|
56
|
+
type: "logic";
|
|
57
|
+
script: string;
|
|
58
|
+
concurrency: boolean;
|
|
59
|
+
language: "javascript" | "python" | "typescript";
|
|
60
|
+
maxExecutionTime: number;
|
|
61
|
+
outputs: {
|
|
62
|
+
name: string | null;
|
|
63
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
64
|
+
}[];
|
|
65
|
+
alias?: string | undefined;
|
|
66
|
+
} | {
|
|
67
|
+
id: string;
|
|
68
|
+
type: "or";
|
|
69
|
+
alias?: string | undefined;
|
|
70
|
+
} | {
|
|
71
|
+
id: string;
|
|
72
|
+
type: "reference";
|
|
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);
|
|
81
|
+
outputs: {
|
|
82
|
+
name: string | null;
|
|
83
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
84
|
+
}[];
|
|
85
|
+
alias?: string | undefined;
|
|
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, {
|
|
96
|
+
data: unknown;
|
|
97
|
+
overwrite: boolean;
|
|
98
|
+
}>)[];
|
|
99
|
+
static get ERROR(): string;
|
|
100
|
+
getPossiblePathsTo(nodeId: string, allowMultipleOutputs?: boolean): {
|
|
101
|
+
nodeId: string;
|
|
102
|
+
name: OutputName;
|
|
103
|
+
}[][];
|
|
104
|
+
getNodes(condition?: (node: Node) => boolean): ({
|
|
105
|
+
id: string;
|
|
106
|
+
type: "entry";
|
|
107
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
108
|
+
alias?: string | undefined;
|
|
109
|
+
} | {
|
|
110
|
+
id: string;
|
|
111
|
+
type: "service";
|
|
112
|
+
inputSchema: ({
|
|
113
|
+
type: "object";
|
|
114
|
+
} & import("json-schema").JSONSchema7) | {
|
|
115
|
+
type: "null";
|
|
116
|
+
} | ({
|
|
117
|
+
$ref: string;
|
|
118
|
+
} & import("json-schema").JSONSchema7);
|
|
119
|
+
name: string;
|
|
120
|
+
version: string;
|
|
121
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
122
|
+
outputs: {
|
|
123
|
+
name: string | null;
|
|
124
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
125
|
+
}[];
|
|
126
|
+
alias?: string | undefined;
|
|
127
|
+
configuration?: any;
|
|
128
|
+
ttl?: number | undefined;
|
|
129
|
+
retry?: number | undefined;
|
|
130
|
+
retryDelay?: number | undefined;
|
|
131
|
+
} | {
|
|
132
|
+
id: string;
|
|
133
|
+
type: "logic";
|
|
134
|
+
script: string;
|
|
135
|
+
concurrency: boolean;
|
|
136
|
+
language: "javascript" | "python" | "typescript";
|
|
137
|
+
maxExecutionTime: number;
|
|
138
|
+
outputs: {
|
|
139
|
+
name: string | null;
|
|
140
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
141
|
+
}[];
|
|
142
|
+
alias?: string | undefined;
|
|
143
|
+
} | {
|
|
144
|
+
id: string;
|
|
145
|
+
type: "or";
|
|
146
|
+
alias?: string | undefined;
|
|
147
|
+
} | {
|
|
148
|
+
id: string;
|
|
149
|
+
type: "reference";
|
|
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);
|
|
158
|
+
outputs: {
|
|
159
|
+
name: string | null;
|
|
160
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
161
|
+
}[];
|
|
162
|
+
alias?: string | undefined;
|
|
163
|
+
} | {
|
|
164
|
+
id: string;
|
|
165
|
+
type: "exit";
|
|
166
|
+
alias?: string | undefined;
|
|
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): ({
|
|
175
|
+
id: string;
|
|
176
|
+
type: "entry";
|
|
177
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
178
|
+
alias?: string | undefined;
|
|
179
|
+
} | {
|
|
180
|
+
id: string;
|
|
181
|
+
type: "service";
|
|
182
|
+
inputSchema: ({
|
|
183
|
+
type: "object";
|
|
184
|
+
} & import("json-schema").JSONSchema7) | {
|
|
185
|
+
type: "null";
|
|
186
|
+
} | ({
|
|
187
|
+
$ref: string;
|
|
188
|
+
} & import("json-schema").JSONSchema7);
|
|
189
|
+
name: string;
|
|
190
|
+
version: string;
|
|
191
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
192
|
+
outputs: {
|
|
193
|
+
name: string | null;
|
|
194
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
195
|
+
}[];
|
|
196
|
+
alias?: string | undefined;
|
|
197
|
+
configuration?: any;
|
|
198
|
+
ttl?: number | undefined;
|
|
199
|
+
retry?: number | undefined;
|
|
200
|
+
retryDelay?: number | undefined;
|
|
201
|
+
} | {
|
|
202
|
+
id: string;
|
|
203
|
+
type: "logic";
|
|
204
|
+
script: string;
|
|
205
|
+
concurrency: boolean;
|
|
206
|
+
language: "javascript" | "python" | "typescript";
|
|
207
|
+
maxExecutionTime: number;
|
|
208
|
+
outputs: {
|
|
209
|
+
name: string | null;
|
|
210
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
211
|
+
}[];
|
|
212
|
+
alias?: string | undefined;
|
|
213
|
+
} | {
|
|
214
|
+
id: string;
|
|
215
|
+
type: "or";
|
|
216
|
+
alias?: string | undefined;
|
|
217
|
+
} | {
|
|
218
|
+
id: string;
|
|
219
|
+
type: "reference";
|
|
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);
|
|
228
|
+
outputs: {
|
|
229
|
+
name: string | null;
|
|
230
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
231
|
+
}[];
|
|
232
|
+
alias?: string | undefined;
|
|
233
|
+
} | {
|
|
234
|
+
id: string;
|
|
235
|
+
type: "exit";
|
|
236
|
+
alias?: string | undefined;
|
|
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): ({
|
|
245
|
+
id: string;
|
|
246
|
+
type: "entry";
|
|
247
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
248
|
+
alias?: string | undefined;
|
|
249
|
+
} | {
|
|
250
|
+
id: string;
|
|
251
|
+
type: "service";
|
|
252
|
+
inputSchema: ({
|
|
253
|
+
type: "object";
|
|
254
|
+
} & import("json-schema").JSONSchema7) | {
|
|
255
|
+
type: "null";
|
|
256
|
+
} | ({
|
|
257
|
+
$ref: string;
|
|
258
|
+
} & import("json-schema").JSONSchema7);
|
|
259
|
+
name: string;
|
|
260
|
+
version: string;
|
|
261
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
262
|
+
outputs: {
|
|
263
|
+
name: string | null;
|
|
264
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
265
|
+
}[];
|
|
266
|
+
alias?: string | undefined;
|
|
267
|
+
configuration?: any;
|
|
268
|
+
ttl?: number | undefined;
|
|
269
|
+
retry?: number | undefined;
|
|
270
|
+
retryDelay?: number | undefined;
|
|
271
|
+
} | {
|
|
272
|
+
id: string;
|
|
273
|
+
type: "logic";
|
|
274
|
+
script: string;
|
|
275
|
+
concurrency: boolean;
|
|
276
|
+
language: "javascript" | "python" | "typescript";
|
|
277
|
+
maxExecutionTime: number;
|
|
278
|
+
outputs: {
|
|
279
|
+
name: string | null;
|
|
280
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
281
|
+
}[];
|
|
282
|
+
alias?: string | undefined;
|
|
283
|
+
} | {
|
|
284
|
+
id: string;
|
|
285
|
+
type: "or";
|
|
286
|
+
alias?: string | undefined;
|
|
287
|
+
} | {
|
|
288
|
+
id: string;
|
|
289
|
+
type: "reference";
|
|
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);
|
|
298
|
+
outputs: {
|
|
299
|
+
name: string | null;
|
|
300
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
301
|
+
}[];
|
|
302
|
+
alias?: string | undefined;
|
|
303
|
+
} | {
|
|
304
|
+
id: string;
|
|
305
|
+
type: "exit";
|
|
306
|
+
alias?: string | undefined;
|
|
307
|
+
} | {
|
|
308
|
+
id: string;
|
|
309
|
+
type: "comment";
|
|
310
|
+
text: string;
|
|
311
|
+
alias?: string | undefined;
|
|
312
|
+
})[];
|
|
313
|
+
getAllParents(nodeId: string): ({
|
|
314
|
+
id: string;
|
|
315
|
+
type: "entry";
|
|
316
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
317
|
+
alias?: string | undefined;
|
|
318
|
+
} | {
|
|
319
|
+
id: string;
|
|
320
|
+
type: "service";
|
|
321
|
+
inputSchema: ({
|
|
322
|
+
type: "object";
|
|
323
|
+
} & import("json-schema").JSONSchema7) | {
|
|
324
|
+
type: "null";
|
|
325
|
+
} | ({
|
|
326
|
+
$ref: string;
|
|
327
|
+
} & import("json-schema").JSONSchema7);
|
|
328
|
+
name: string;
|
|
329
|
+
version: string;
|
|
330
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
331
|
+
outputs: {
|
|
332
|
+
name: string | null;
|
|
333
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
334
|
+
}[];
|
|
335
|
+
alias?: string | undefined;
|
|
336
|
+
configuration?: any;
|
|
337
|
+
ttl?: number | undefined;
|
|
338
|
+
retry?: number | undefined;
|
|
339
|
+
retryDelay?: number | undefined;
|
|
340
|
+
} | {
|
|
341
|
+
id: string;
|
|
342
|
+
type: "logic";
|
|
343
|
+
script: string;
|
|
344
|
+
concurrency: boolean;
|
|
345
|
+
language: "javascript" | "python" | "typescript";
|
|
346
|
+
maxExecutionTime: number;
|
|
347
|
+
outputs: {
|
|
348
|
+
name: string | null;
|
|
349
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
350
|
+
}[];
|
|
351
|
+
alias?: string | undefined;
|
|
352
|
+
} | {
|
|
353
|
+
id: string;
|
|
354
|
+
type: "or";
|
|
355
|
+
alias?: string | undefined;
|
|
356
|
+
} | {
|
|
357
|
+
id: string;
|
|
358
|
+
type: "reference";
|
|
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);
|
|
367
|
+
outputs: {
|
|
368
|
+
name: string | null;
|
|
369
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
370
|
+
}[];
|
|
371
|
+
alias?: string | undefined;
|
|
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;
|
|
381
|
+
})[];
|
|
382
|
+
/**
|
|
383
|
+
* normally a node is "reached" when all incoming edges are traversed with the following exceptions:
|
|
384
|
+
*
|
|
385
|
+
* when the incoming edge belongs to a service that is part of a loop where the questioned node is also part of,
|
|
386
|
+
* this incoming edge is considered traversed
|
|
387
|
+
*
|
|
388
|
+
* or nodes are "reaced" when at least one incoming edge is traversed
|
|
389
|
+
*
|
|
390
|
+
* the entry node is "reached" by default
|
|
391
|
+
*/
|
|
392
|
+
isReached(nodeId: string): boolean;
|
|
393
|
+
getParentsWithEdgeHandle(nodeId: string): {
|
|
394
|
+
node: {
|
|
395
|
+
id: string;
|
|
396
|
+
type: "entry";
|
|
397
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
398
|
+
alias?: string | undefined;
|
|
399
|
+
} | {
|
|
400
|
+
id: string;
|
|
401
|
+
type: "service";
|
|
402
|
+
inputSchema: ({
|
|
403
|
+
type: "object";
|
|
404
|
+
} & import("json-schema").JSONSchema7) | {
|
|
405
|
+
type: "null";
|
|
406
|
+
} | ({
|
|
407
|
+
$ref: string;
|
|
408
|
+
} & import("json-schema").JSONSchema7);
|
|
409
|
+
name: string;
|
|
410
|
+
version: string;
|
|
411
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
412
|
+
outputs: {
|
|
413
|
+
name: string | null;
|
|
414
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
415
|
+
}[];
|
|
416
|
+
alias?: string | undefined;
|
|
417
|
+
configuration?: any;
|
|
418
|
+
ttl?: number | undefined;
|
|
419
|
+
retry?: number | undefined;
|
|
420
|
+
retryDelay?: number | undefined;
|
|
421
|
+
} | {
|
|
422
|
+
id: string;
|
|
423
|
+
type: "logic";
|
|
424
|
+
script: string;
|
|
425
|
+
concurrency: boolean;
|
|
426
|
+
language: "javascript" | "python" | "typescript";
|
|
427
|
+
maxExecutionTime: number;
|
|
428
|
+
outputs: {
|
|
429
|
+
name: string | null;
|
|
430
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
431
|
+
}[];
|
|
432
|
+
alias?: string | undefined;
|
|
433
|
+
} | {
|
|
434
|
+
id: string;
|
|
435
|
+
type: "or";
|
|
436
|
+
alias?: string | undefined;
|
|
437
|
+
} | {
|
|
438
|
+
id: string;
|
|
439
|
+
type: "reference";
|
|
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);
|
|
448
|
+
outputs: {
|
|
449
|
+
name: string | null;
|
|
450
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
451
|
+
}[];
|
|
452
|
+
alias?: string | undefined;
|
|
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;
|
|
462
|
+
};
|
|
463
|
+
handle: OutputName;
|
|
464
|
+
}[];
|
|
465
|
+
getTriggers(nodeId: string): string[];
|
|
466
|
+
traverse(nodeId: string, outputName: OutputName): void;
|
|
467
|
+
traverseWithData(nodeId: string, outputName: OutputName, data: unknown, overwrite?: boolean): void;
|
|
468
|
+
disconnect(sourceNodeId: string, sourceNodeOutputName: OutputName, targetNodeId: string): void;
|
|
469
|
+
getData(nodeId: string, outputName: OutputName): unknown;
|
|
470
|
+
traversed(sourceNodeId: string, targetNodeId: string): boolean;
|
|
471
|
+
getAllData(): Map<string, Map<OutputName, unknown>>;
|
|
472
|
+
getAggregatedDataByNode(targetNodeId: string): Record<string, unknown>;
|
|
473
|
+
getAggregatedData(targetNodeId: string): Record<string, unknown>;
|
|
474
|
+
getAggregatedEdgeData(edgeId: string): Record<string, unknown>;
|
|
475
|
+
reset(): void;
|
|
476
|
+
gc(): void;
|
|
477
|
+
}
|
|
478
|
+
export {};
|
|
479
|
+
//# sourceMappingURL=NodeTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,IA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