@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeNodes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/treeNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"treeNodes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/treeNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAQ1B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGrB,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA;AAE9C,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAEtB,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE/D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiJ/B,CAAA;AACD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW9B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAEhE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBvB,CAAA;AAEJ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AACtD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod/v4';
|
|
|
2
2
|
declare const nodeInitUpdateSchema: z.ZodObject<{
|
|
3
3
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
4
4
|
id: z.ZodUUID;
|
|
5
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
5
6
|
node: z.ZodObject<{
|
|
6
7
|
id: z.ZodUUID;
|
|
7
8
|
type: z.ZodEnum<{
|
|
@@ -19,6 +20,7 @@ export type NodeInitUpdate = z.infer<typeof nodeInitUpdateSchema>;
|
|
|
19
20
|
declare const nodeStartUpdateSchema: z.ZodObject<{
|
|
20
21
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
21
22
|
id: z.ZodUUID;
|
|
23
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
22
24
|
node: z.ZodObject<{
|
|
23
25
|
id: z.ZodUUID;
|
|
24
26
|
type: z.ZodEnum<{
|
|
@@ -37,6 +39,7 @@ export type NodeStartUpdate = z.infer<typeof nodeStartUpdateSchema>;
|
|
|
37
39
|
declare const nodeErrorUpdateSchema: z.ZodObject<{
|
|
38
40
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
39
41
|
id: z.ZodUUID;
|
|
42
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
40
43
|
node: z.ZodObject<{
|
|
41
44
|
id: z.ZodUUID;
|
|
42
45
|
type: z.ZodEnum<{
|
|
@@ -54,6 +57,7 @@ export type NodeErrorUpdate = z.infer<typeof nodeErrorUpdateSchema>;
|
|
|
54
57
|
declare const nodeUpdateSchema: z.ZodObject<{
|
|
55
58
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
56
59
|
id: z.ZodUUID;
|
|
60
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
57
61
|
node: z.ZodObject<{
|
|
58
62
|
id: z.ZodUUID;
|
|
59
63
|
type: z.ZodEnum<{
|
|
@@ -67,11 +71,13 @@ declare const nodeUpdateSchema: z.ZodObject<{
|
|
|
67
71
|
type: z.ZodLiteral<"NODE_UPDATE">;
|
|
68
72
|
output: z.ZodNullable<z.ZodString>;
|
|
69
73
|
data: z.ZodUnknown;
|
|
74
|
+
overwrite: z.ZodBoolean;
|
|
70
75
|
}, z.core.$strip>;
|
|
71
76
|
export type NodeUpdate = z.infer<typeof nodeUpdateSchema>;
|
|
72
77
|
declare const nodeCallbackSchema: z.ZodObject<{
|
|
73
78
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
74
79
|
id: z.ZodUUID;
|
|
80
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
75
81
|
node: z.ZodObject<{
|
|
76
82
|
id: z.ZodUUID;
|
|
77
83
|
type: z.ZodEnum<{
|
|
@@ -101,6 +107,7 @@ export type NodeCallback = z.infer<typeof nodeCallbackSchema>;
|
|
|
101
107
|
declare const nodeEndUpdateSchema: z.ZodObject<{
|
|
102
108
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
103
109
|
id: z.ZodUUID;
|
|
110
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
104
111
|
node: z.ZodObject<{
|
|
105
112
|
id: z.ZodUUID;
|
|
106
113
|
type: z.ZodEnum<{
|
|
@@ -117,6 +124,7 @@ export type NodeEndUpdate = z.infer<typeof nodeEndUpdateSchema>;
|
|
|
117
124
|
declare const nodeDebugUpdateSchema: z.ZodObject<{
|
|
118
125
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
119
126
|
id: z.ZodUUID;
|
|
127
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
120
128
|
node: z.ZodObject<{
|
|
121
129
|
id: z.ZodUUID;
|
|
122
130
|
type: z.ZodEnum<{
|
|
@@ -141,6 +149,7 @@ export type NodeDebugUpdate = z.infer<typeof nodeDebugUpdateSchema>;
|
|
|
141
149
|
declare const nodeDeferUpdateSchema: z.ZodObject<{
|
|
142
150
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
143
151
|
id: z.ZodUUID;
|
|
152
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
144
153
|
node: z.ZodObject<{
|
|
145
154
|
id: z.ZodUUID;
|
|
146
155
|
type: z.ZodEnum<{
|
|
@@ -158,8 +167,10 @@ export type NodeDeferUpdate = z.infer<typeof nodeDeferUpdateSchema>;
|
|
|
158
167
|
declare const taskStartUpdateSchema: z.ZodObject<{
|
|
159
168
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
160
169
|
id: z.ZodUUID;
|
|
170
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
161
171
|
type: z.ZodLiteral<"TASK_START">;
|
|
162
172
|
parentTask: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
173
|
+
rootTaskId: z.ZodUUID;
|
|
163
174
|
taskId: z.ZodUUID;
|
|
164
175
|
nodeId: z.ZodUUID;
|
|
165
176
|
messageId: z.ZodUUID;
|
|
@@ -170,6 +181,7 @@ export type TaskStartUpdate = z.infer<typeof taskStartUpdateSchema>;
|
|
|
170
181
|
declare const taskErrorUpdateSchema: z.ZodObject<{
|
|
171
182
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
172
183
|
id: z.ZodUUID;
|
|
184
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
173
185
|
type: z.ZodLiteral<"TASK_ERROR">;
|
|
174
186
|
reason: z.ZodOptional<z.ZodString>;
|
|
175
187
|
}, z.core.$strip>;
|
|
@@ -177,6 +189,7 @@ export type TaskErrorUpdate = z.infer<typeof taskErrorUpdateSchema>;
|
|
|
177
189
|
declare const taskEndUpdateSchema: z.ZodObject<{
|
|
178
190
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
179
191
|
id: z.ZodUUID;
|
|
192
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
180
193
|
type: z.ZodLiteral<"TASK_END">;
|
|
181
194
|
exitName: z.ZodNullable<z.ZodString>;
|
|
182
195
|
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -185,6 +198,7 @@ export type TaskEndUpdate = z.infer<typeof taskEndUpdateSchema>;
|
|
|
185
198
|
export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
186
199
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
187
200
|
id: z.ZodUUID;
|
|
201
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
188
202
|
node: z.ZodObject<{
|
|
189
203
|
id: z.ZodUUID;
|
|
190
204
|
type: z.ZodEnum<{
|
|
@@ -200,6 +214,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
200
214
|
}, z.core.$strip>, z.ZodObject<{
|
|
201
215
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
202
216
|
id: z.ZodUUID;
|
|
217
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
203
218
|
node: z.ZodObject<{
|
|
204
219
|
id: z.ZodUUID;
|
|
205
220
|
type: z.ZodEnum<{
|
|
@@ -216,6 +231,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
216
231
|
}, z.core.$strip>, z.ZodObject<{
|
|
217
232
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
218
233
|
id: z.ZodUUID;
|
|
234
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
219
235
|
node: z.ZodObject<{
|
|
220
236
|
id: z.ZodUUID;
|
|
221
237
|
type: z.ZodEnum<{
|
|
@@ -231,6 +247,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
231
247
|
}, z.core.$strip>, z.ZodObject<{
|
|
232
248
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
233
249
|
id: z.ZodUUID;
|
|
250
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
234
251
|
node: z.ZodObject<{
|
|
235
252
|
id: z.ZodUUID;
|
|
236
253
|
type: z.ZodEnum<{
|
|
@@ -244,9 +261,11 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
244
261
|
type: z.ZodLiteral<"NODE_UPDATE">;
|
|
245
262
|
output: z.ZodNullable<z.ZodString>;
|
|
246
263
|
data: z.ZodUnknown;
|
|
264
|
+
overwrite: z.ZodBoolean;
|
|
247
265
|
}, z.core.$strip>, z.ZodObject<{
|
|
248
266
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
249
267
|
id: z.ZodUUID;
|
|
268
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
250
269
|
node: z.ZodObject<{
|
|
251
270
|
id: z.ZodUUID;
|
|
252
271
|
type: z.ZodEnum<{
|
|
@@ -274,6 +293,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
274
293
|
}, z.core.$strip>, z.ZodObject<{
|
|
275
294
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
276
295
|
id: z.ZodUUID;
|
|
296
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
277
297
|
node: z.ZodObject<{
|
|
278
298
|
id: z.ZodUUID;
|
|
279
299
|
type: z.ZodEnum<{
|
|
@@ -288,6 +308,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
288
308
|
}, z.core.$strip>, z.ZodObject<{
|
|
289
309
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
290
310
|
id: z.ZodUUID;
|
|
311
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
291
312
|
node: z.ZodObject<{
|
|
292
313
|
id: z.ZodUUID;
|
|
293
314
|
type: z.ZodEnum<{
|
|
@@ -310,6 +331,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
310
331
|
}, z.core.$strip>, z.ZodObject<{
|
|
311
332
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
312
333
|
id: z.ZodUUID;
|
|
334
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
313
335
|
node: z.ZodObject<{
|
|
314
336
|
id: z.ZodUUID;
|
|
315
337
|
type: z.ZodEnum<{
|
|
@@ -325,8 +347,10 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
325
347
|
}, z.core.$strip>, z.ZodObject<{
|
|
326
348
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
327
349
|
id: z.ZodUUID;
|
|
350
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
328
351
|
type: z.ZodLiteral<"TASK_START">;
|
|
329
352
|
parentTask: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
353
|
+
rootTaskId: z.ZodUUID;
|
|
330
354
|
taskId: z.ZodUUID;
|
|
331
355
|
nodeId: z.ZodUUID;
|
|
332
356
|
messageId: z.ZodUUID;
|
|
@@ -335,20 +359,23 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
335
359
|
}, z.core.$strip>, z.ZodObject<{
|
|
336
360
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
337
361
|
id: z.ZodUUID;
|
|
362
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
338
363
|
type: z.ZodLiteral<"TASK_ERROR">;
|
|
339
364
|
reason: z.ZodOptional<z.ZodString>;
|
|
340
365
|
}, z.core.$strip>, z.ZodObject<{
|
|
341
366
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
342
367
|
id: z.ZodUUID;
|
|
368
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
343
369
|
type: z.ZodLiteral<"TASK_END">;
|
|
344
370
|
exitName: z.ZodNullable<z.ZodString>;
|
|
345
371
|
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
346
372
|
}, z.core.$strip>, z.ZodObject<{
|
|
347
373
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
348
374
|
id: z.ZodUUID;
|
|
375
|
+
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
349
376
|
type: z.ZodLiteral<"TASK_ABORTED">;
|
|
350
377
|
reason: z.ZodOptional<z.ZodString>;
|
|
351
|
-
}, z.core.$strip>]>;
|
|
378
|
+
}, z.core.$strip>], "type">;
|
|
352
379
|
export type Update = z.infer<typeof updateSchema>;
|
|
353
380
|
export {};
|
|
354
381
|
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAmB1B,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;iBAGxB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;iBAIzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;iBAGzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;iBAKpB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,QAAA,MAAM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,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -3,13 +3,12 @@ import { type ContextHelper, type JSONValue } from './helpers.ts';
|
|
|
3
3
|
type Input<V extends keyof RequenceService.Version> = RequenceService.Version[V]['input'];
|
|
4
4
|
type Configuration<V extends keyof RequenceService.Version> = RequenceService.Version[V]['configuration'];
|
|
5
5
|
type OutputName<V extends keyof RequenceService.Version, K = keyof RequenceService.Version[V]['outputs']> = K extends '__default__' ? null : K;
|
|
6
|
-
type OutputValue<V extends keyof RequenceService.Version, O extends OutputName<V
|
|
6
|
+
type OutputValue<V extends keyof RequenceService.Version, O extends OutputName<V>, ON = O extends null ? '__default__' : O> = ON extends keyof RequenceService.Version[V]['outputs'] ? RequenceService.Version[V]['outputs'][ON] : never;
|
|
7
7
|
interface ServiceContextHelper<V extends keyof RequenceService.Version> extends Omit<ContextHelper, 'input' | 'configuration' | 'getData' | 'getConfiguration' | 'toOutput'> {
|
|
8
8
|
input: Input<V>;
|
|
9
9
|
configuration: Configuration<V>;
|
|
10
10
|
toOutput<O extends OutputName<V>>(name: O, value: OutputValue<V, O>): '__output_value__';
|
|
11
11
|
}
|
|
12
|
-
type ReturnValue<V extends keyof RequenceService.Version> = ReturnType<ServiceContextHelper<V>['toOutput']> | OutputValue<V, null> | '__output_value__';
|
|
13
12
|
type ApiOutputName<V> = V extends keyof RequenceService.Version ? OutputName<V> : string | null;
|
|
14
13
|
type ApiOutputValue<V, O> = V extends keyof RequenceService.Version ? O extends OutputName<V> ? OutputValue<V, O> : unknown : unknown;
|
|
15
14
|
interface ActorApi<V> {
|
|
@@ -32,7 +31,7 @@ interface ConnectionOptions {
|
|
|
32
31
|
connectionOptions?: AmqpConnectionManagerOptions['connectionOptions'];
|
|
33
32
|
}
|
|
34
33
|
type MessageHandlerContext<V> = V extends keyof RequenceService.Version ? ServiceContextHelper<V> : ContextHelper;
|
|
35
|
-
type MessageHandlerReturnValue<V> = V extends keyof RequenceService.Version ?
|
|
34
|
+
type MessageHandlerReturnValue<V, O = null> = V extends keyof RequenceService.Version ? O extends OutputName<V> ? OutputValue<V, O> : void : JSONValue;
|
|
36
35
|
type MessageHandlerFunction<V> = (context: MessageHandlerContext<V>) => MaybePromise<MessageHandlerReturnValue<V> | void>;
|
|
37
36
|
type MessageHandlerGenerator<V> = (context: MessageHandlerContext<V>) => Generator<MessageHandlerReturnValue<V>, MessageHandlerReturnValue<V> | void, void>;
|
|
38
37
|
type MessageHandlerAsyncGenerator<V> = (context: MessageHandlerContext<V>) => AsyncGenerator<MessageHandlerReturnValue<V>, MessageHandlerReturnValue<V> | void, void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAmqpConnection.d.ts","sourceRoot":"","sources":["../../../../src/createAmqpConnection.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,4BAA4B,EAGlC,MAAM,yBAAyB,CAAA;AAIhC,OAA4B,EAE1B,KAAK,aAAa,EAClB,KAAK,SAAS,EAMf,MAAM,cAAc,CAAA;AAIrB,KAAK,KAAK,CAAC,CAAC,SAAS,MAAM,eAAe,CAAC,OAAO,IAChD,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;AACrC,KAAK,aAAa,CAAC,CAAC,SAAS,MAAM,eAAe,CAAC,OAAO,IACxD,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAA;AAC7C,KAAK,UAAU,CACb,CAAC,SAAS,MAAM,eAAe,CAAC,OAAO,EACvC,CAAC,GAAG,MAAM,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAC7C,CAAC,SAAS,aAAa,GAAG,IAAI,GAAG,CAAC,CAAA;AAEtC,KAAK,WAAW,CACd,CAAC,SAAS,MAAM,eAAe,CAAC,OAAO,EACvC,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":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AAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,QAAQ,GACjD,sBAAsB,CAAC,CAAC,CAAC,GAErB,4BAA4B,CAAC,CAAC,CAAC,GAC/B,uBAAuB,CAAC,CAAC,CAAC,GAC1B,sBAAsB,CAAC,CAAC,CAAC,GAE3B,4BAA4B,CAAC,CAAC,CAAC,GAC/B,uBAAuB,CAAC,CAAC,CAAC,GAC1B,sBAAsB,CAAC,CAAC,CAAC,CAAA;AAcjC,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,CAAC,EACxC,EACE,GAAG,EACH,OAAO,EACP,QAAY,EACZ,MAAc,EACd,iBAAiB,EACjB,iBAAiB,GAClB,EAAE,iBAAiB,EACpB,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC,oBAggBlC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@requence/service",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.46",
|
|
5
5
|
"bin": {
|
|
6
6
|
"requence-service": "build/cli.js"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
9
|
"check-types": "tsc",
|
|
10
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
10
11
|
"build-declaration": "tsc -p tsconfig.declaration.json && tsc-alias -p tsconfig.declaration.json 2>/dev/null",
|
|
11
12
|
"build": "ADD_ENTRYPOINT=src/cli.ts bun -e \"import('@requence/utils/build-package.mts')\" && bun build-declaration"
|
|
12
13
|
},
|
|
@@ -17,11 +18,13 @@
|
|
|
17
18
|
"chalk": "^5.6.2",
|
|
18
19
|
"mime-types": "^3.0.1",
|
|
19
20
|
"yargs": "^17.7.2",
|
|
20
|
-
"zod": "^
|
|
21
|
+
"zod": "^4.1.12"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@requence/helpers": "workspace:*",
|
|
24
|
-
"@requence/utils": "workspace:*"
|
|
25
|
+
"@requence/utils": "workspace:*",
|
|
26
|
+
"@types/amqplib": "^0.10.7",
|
|
27
|
+
"@types/bun": "^1.2.23"
|
|
25
28
|
},
|
|
26
29
|
"exports": {
|
|
27
30
|
"default": "./build/index.js",
|
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod/v4';
|
|
2
|
-
export declare const targetNodesSchema: z.ZodPipe<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
-
id: z.ZodDefault<z.ZodUUID>;
|
|
4
|
-
type: z.ZodLiteral<"entry">;
|
|
5
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
6
|
-
inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
7
|
-
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
8
|
-
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
9
|
-
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof import("./nodeType.ts").ERROR, typeof import("./nodeType.ts").ERROR>]>>;
|
|
10
|
-
target: z.ZodString;
|
|
11
|
-
}, z.core.$strict>]>, z.ZodTransform<{
|
|
12
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
13
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
14
|
-
target: string;
|
|
15
|
-
}, string | {
|
|
16
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
17
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
18
|
-
target: string;
|
|
19
|
-
}>>>>;
|
|
20
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
-
id: z.ZodDefault<z.ZodUUID>;
|
|
22
|
-
type: z.ZodLiteral<"service">;
|
|
23
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
24
|
-
inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
25
|
-
type: z.ZodLiteral<"object">;
|
|
26
|
-
}, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
|
|
27
|
-
type: z.ZodLiteral<"null">;
|
|
28
|
-
}, z.core.$strip>]>>;
|
|
29
|
-
name: z.ZodString;
|
|
30
|
-
version: z.ZodString;
|
|
31
|
-
configuration: z.ZodOptional<z.ZodAny>;
|
|
32
|
-
configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
33
|
-
ttl: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
retry: z.ZodOptional<z.ZodNumber>;
|
|
35
|
-
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
36
|
-
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
37
|
-
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
38
|
-
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof import("./nodeType.ts").ERROR, typeof import("./nodeType.ts").ERROR>]>>;
|
|
39
|
-
target: z.ZodString;
|
|
40
|
-
}, z.core.$strict>]>, z.ZodTransform<{
|
|
41
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
42
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
43
|
-
target: string;
|
|
44
|
-
}, string | {
|
|
45
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
46
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
47
|
-
target: string;
|
|
48
|
-
}>>>>;
|
|
49
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
50
|
-
id: z.ZodDefault<z.ZodUUID>;
|
|
51
|
-
type: z.ZodLiteral<"logic">;
|
|
52
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
53
|
-
script: z.ZodString;
|
|
54
|
-
concurrency: z.ZodDefault<z.ZodBoolean>;
|
|
55
|
-
language: z.ZodDefault<z.ZodEnum<{
|
|
56
|
-
javascript: "javascript";
|
|
57
|
-
python: "python";
|
|
58
|
-
typescript: "typescript";
|
|
59
|
-
}>>;
|
|
60
|
-
maxExecutionTime: z.ZodDefault<z.ZodNumber>;
|
|
61
|
-
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
62
|
-
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
63
|
-
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof import("./nodeType.ts").ERROR, typeof import("./nodeType.ts").ERROR>]>>;
|
|
64
|
-
target: z.ZodString;
|
|
65
|
-
}, z.core.$strict>]>, z.ZodTransform<{
|
|
66
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
67
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
68
|
-
target: string;
|
|
69
|
-
}, string | {
|
|
70
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
71
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
72
|
-
target: string;
|
|
73
|
-
}>>>>;
|
|
74
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
75
|
-
id: z.ZodDefault<z.ZodUUID>;
|
|
76
|
-
type: z.ZodLiteral<"or">;
|
|
77
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
78
|
-
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
79
|
-
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
80
|
-
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof import("./nodeType.ts").ERROR, typeof import("./nodeType.ts").ERROR>]>>;
|
|
81
|
-
target: z.ZodString;
|
|
82
|
-
}, z.core.$strict>]>, z.ZodTransform<{
|
|
83
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
84
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
85
|
-
target: string;
|
|
86
|
-
}, string | {
|
|
87
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
88
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
89
|
-
target: string;
|
|
90
|
-
}>>>>;
|
|
91
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
92
|
-
id: z.ZodDefault<z.ZodUUID>;
|
|
93
|
-
type: z.ZodLiteral<"reference">;
|
|
94
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
95
|
-
reference: z.ZodString;
|
|
96
|
-
configuration: z.ZodOptional<z.ZodAny>;
|
|
97
|
-
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
98
|
-
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
99
|
-
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof import("./nodeType.ts").ERROR, typeof import("./nodeType.ts").ERROR>]>>;
|
|
100
|
-
target: z.ZodString;
|
|
101
|
-
}, z.core.$strict>]>, z.ZodTransform<{
|
|
102
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
103
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
104
|
-
target: string;
|
|
105
|
-
}, string | {
|
|
106
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
107
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
108
|
-
target: string;
|
|
109
|
-
}>>>>;
|
|
110
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
111
|
-
id: z.ZodDefault<z.ZodUUID>;
|
|
112
|
-
type: z.ZodLiteral<"exit">;
|
|
113
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
114
|
-
}, z.core.$strict>]>>, z.ZodTransform<{
|
|
115
|
-
nodes: ({
|
|
116
|
-
id: string;
|
|
117
|
-
type: "exit";
|
|
118
|
-
alias?: string | undefined;
|
|
119
|
-
} | {
|
|
120
|
-
id: string;
|
|
121
|
-
type: "entry";
|
|
122
|
-
inputSchema: import("json-schema").JSONSchema7;
|
|
123
|
-
outputs: {
|
|
124
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
125
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
126
|
-
}[];
|
|
127
|
-
alias?: string | undefined;
|
|
128
|
-
} | {
|
|
129
|
-
id: string;
|
|
130
|
-
type: "service";
|
|
131
|
-
inputSchema: ({
|
|
132
|
-
type: "object";
|
|
133
|
-
} & import("json-schema").JSONSchema7) | {
|
|
134
|
-
type: "null";
|
|
135
|
-
};
|
|
136
|
-
name: string;
|
|
137
|
-
version: string;
|
|
138
|
-
configurationSchema: import("json-schema").JSONSchema7;
|
|
139
|
-
outputs: {
|
|
140
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
141
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
142
|
-
}[];
|
|
143
|
-
alias?: string | undefined;
|
|
144
|
-
configuration?: any;
|
|
145
|
-
ttl?: number | undefined;
|
|
146
|
-
retry?: number | undefined;
|
|
147
|
-
retryDelay?: number | undefined;
|
|
148
|
-
} | {
|
|
149
|
-
id: string;
|
|
150
|
-
type: "logic";
|
|
151
|
-
script: string;
|
|
152
|
-
concurrency: boolean;
|
|
153
|
-
language: "javascript" | "python" | "typescript";
|
|
154
|
-
maxExecutionTime: number;
|
|
155
|
-
outputs: {
|
|
156
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
157
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
158
|
-
}[];
|
|
159
|
-
alias?: string | undefined;
|
|
160
|
-
} | {
|
|
161
|
-
id: string;
|
|
162
|
-
type: "or";
|
|
163
|
-
outputs: {
|
|
164
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
165
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
166
|
-
}[];
|
|
167
|
-
alias?: string | undefined;
|
|
168
|
-
} | {
|
|
169
|
-
id: string;
|
|
170
|
-
type: "reference";
|
|
171
|
-
reference: string;
|
|
172
|
-
outputs: {
|
|
173
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
174
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
175
|
-
}[];
|
|
176
|
-
alias?: string | undefined;
|
|
177
|
-
configuration?: any;
|
|
178
|
-
})[];
|
|
179
|
-
edges: {
|
|
180
|
-
source: string;
|
|
181
|
-
sourceHandle: string | typeof import("./nodeType.ts").ERROR | null;
|
|
182
|
-
target: string;
|
|
183
|
-
}[];
|
|
184
|
-
}, ({
|
|
185
|
-
id: string;
|
|
186
|
-
type: "entry";
|
|
187
|
-
inputSchema: import("json-schema").JSONSchema7;
|
|
188
|
-
outputs: {
|
|
189
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
190
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
191
|
-
target: string;
|
|
192
|
-
}[];
|
|
193
|
-
alias?: string | undefined;
|
|
194
|
-
} | {
|
|
195
|
-
id: string;
|
|
196
|
-
type: "service";
|
|
197
|
-
inputSchema: ({
|
|
198
|
-
type: "object";
|
|
199
|
-
} & import("json-schema").JSONSchema7) | {
|
|
200
|
-
type: "null";
|
|
201
|
-
};
|
|
202
|
-
name: string;
|
|
203
|
-
version: string;
|
|
204
|
-
configurationSchema: import("json-schema").JSONSchema7;
|
|
205
|
-
outputs: {
|
|
206
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
207
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
208
|
-
target: string;
|
|
209
|
-
}[];
|
|
210
|
-
alias?: string | undefined;
|
|
211
|
-
configuration?: any;
|
|
212
|
-
ttl?: number | undefined;
|
|
213
|
-
retry?: number | undefined;
|
|
214
|
-
retryDelay?: number | undefined;
|
|
215
|
-
} | {
|
|
216
|
-
id: string;
|
|
217
|
-
type: "logic";
|
|
218
|
-
script: string;
|
|
219
|
-
concurrency: boolean;
|
|
220
|
-
language: "javascript" | "python" | "typescript";
|
|
221
|
-
maxExecutionTime: number;
|
|
222
|
-
outputs: {
|
|
223
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
224
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
225
|
-
target: string;
|
|
226
|
-
}[];
|
|
227
|
-
alias?: string | undefined;
|
|
228
|
-
} | {
|
|
229
|
-
id: string;
|
|
230
|
-
type: "or";
|
|
231
|
-
outputs: {
|
|
232
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
233
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
234
|
-
target: string;
|
|
235
|
-
}[];
|
|
236
|
-
alias?: string | undefined;
|
|
237
|
-
} | {
|
|
238
|
-
id: string;
|
|
239
|
-
type: "reference";
|
|
240
|
-
reference: string;
|
|
241
|
-
outputs: {
|
|
242
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
243
|
-
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
244
|
-
target: string;
|
|
245
|
-
}[];
|
|
246
|
-
alias?: string | undefined;
|
|
247
|
-
configuration?: any;
|
|
248
|
-
} | {
|
|
249
|
-
id: string;
|
|
250
|
-
type: "exit";
|
|
251
|
-
alias?: string | undefined;
|
|
252
|
-
})[]>>;
|
|
253
|
-
//# sourceMappingURL=targetNodes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"targetNodes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/targetNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAU1B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwG3B,CAAA"}
|