@protobase/workflows 0.99.16 → 0.100.1
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/dist/definition/check-aws.js +80 -0
- package/dist/definition/check-definition.d.ts +4 -0
- package/dist/definition/check-definition.js +27 -10
- package/dist/definition/check-reads.js +9 -4
- package/dist/definition/check-schema.js +19 -7
- package/dist/definition/dataflow/check-dataflow.js +36 -0
- package/dist/definition/dataflow/dependencies.d.ts +17 -0
- package/dist/definition/dataflow/dependencies.js +88 -0
- package/dist/definition/expression-fields.d.ts +5 -0
- package/dist/definition/expression-fields.js +1 -0
- package/dist/definition/expressions.d.ts +5 -0
- package/dist/definition/graph.js +1 -1
- package/dist/definition/parts.d.ts +21 -0
- package/dist/definition/parts.js +21 -0
- package/dist/definition/pins/check-pins.js +40 -0
- package/dist/definition/pins/pin-sources.d.ts +33 -0
- package/dist/definition/pins/pin-sources.js +78 -0
- package/dist/definition/pins/pin-type.d.ts +19 -0
- package/dist/definition/pins/pin-type.js +61 -0
- package/dist/definition/pins/references.d.ts +32 -0
- package/dist/definition/pins/references.js +118 -0
- package/dist/definition/pins/resolve-schema.d.ts +21 -0
- package/dist/definition/pins/resolve-schema.js +62 -0
- package/dist/definition/reads.js +17 -10
- package/dist/definition/schema.d.ts +285 -191
- package/dist/definition/schema.js +275 -245
- package/dist/definition/types.d.ts +16 -4
- package/dist/definition/types.js +5 -0
- package/dist/definition/visible.js +6 -4
- package/dist/index.d.ts +11 -3
- package/dist/index.js +12 -3
- package/dist/plugin/index.d.ts +2 -1
- package/dist/plugin/index.js +2 -1
- package/dist/plugin/value-check.d.ts +9 -0
- package/dist/plugin/value-check.js +24 -0
- package/dist/run/block-state.js +1 -1
- package/dist/run/context.d.ts +2 -1
- package/dist/run/dataflow.js +183 -0
- package/dist/run/position.js +16 -11
- package/dist/run/recovery.js +22 -3
- package/dist/run/rerun-from.d.ts +8 -5
- package/dist/run/rerun-from.js +61 -5
- package/dist/run/rerun.d.ts +4 -3
- package/dist/run/rerun.js +16 -7
- package/dist/run/result-states.js +3 -3
- package/dist/run/scope.js +5 -4
- package/dist/run/segment.js +5 -2
- package/package.json +1 -1
|
@@ -1,194 +1,183 @@
|
|
|
1
1
|
//#region src/definition/schema.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* The JSON Schema of a workflow definition: its trigger, and a state machine in the States Language with JSONata
|
|
4
|
-
* expressions, in the named-reads profile. It checks the shape; `checkDefinition` also checks the edges and what each expression reads.
|
|
5
|
-
*/
|
|
2
|
+
/** The JSON Schema of a workflow definition whose states run in sequence, the States Language's own order. */
|
|
6
3
|
export declare const definitionSchema: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
$schema: string;
|
|
5
|
+
$id: string;
|
|
6
|
+
$ref: string;
|
|
7
|
+
definitions: {
|
|
8
|
+
machine: {
|
|
9
|
+
type: string;
|
|
10
|
+
required: string[];
|
|
11
|
+
properties: {
|
|
12
|
+
StartAt: {
|
|
16
13
|
type: string;
|
|
17
14
|
minLength: number;
|
|
18
15
|
maxLength: number;
|
|
19
16
|
};
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
Comment: {
|
|
18
|
+
type: string;
|
|
22
19
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
States: {
|
|
21
|
+
type: string;
|
|
22
|
+
minProperties: number;
|
|
23
|
+
propertyNames: {
|
|
27
24
|
type: string;
|
|
28
25
|
minLength: number;
|
|
29
26
|
maxLength: number;
|
|
30
27
|
};
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
additionalProperties: {
|
|
29
|
+
$ref: string;
|
|
33
30
|
};
|
|
34
31
|
};
|
|
35
32
|
};
|
|
33
|
+
} | {
|
|
34
|
+
type: string;
|
|
35
|
+
required: string[];
|
|
36
|
+
properties: {
|
|
37
|
+
Comment: {
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
States: {
|
|
41
|
+
type: string;
|
|
42
|
+
minProperties: number;
|
|
43
|
+
propertyNames: {
|
|
44
|
+
type: string;
|
|
45
|
+
minLength: number;
|
|
46
|
+
maxLength: number;
|
|
47
|
+
};
|
|
48
|
+
additionalProperties: {
|
|
49
|
+
$ref: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
StartAt?: undefined;
|
|
53
|
+
};
|
|
36
54
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
55
|
+
definition: {
|
|
56
|
+
type: string;
|
|
57
|
+
additionalProperties: boolean;
|
|
58
|
+
required: string[];
|
|
59
|
+
properties: {
|
|
60
|
+
trigger: {
|
|
61
|
+
$ref: string;
|
|
62
|
+
};
|
|
63
|
+
order: {
|
|
64
|
+
enum: string[];
|
|
44
65
|
};
|
|
45
|
-
|
|
46
|
-
|
|
66
|
+
stateMachine: {
|
|
67
|
+
$ref: string;
|
|
47
68
|
};
|
|
48
|
-
|
|
49
|
-
|
|
69
|
+
connections: {
|
|
70
|
+
$ref: string;
|
|
50
71
|
};
|
|
51
|
-
|
|
52
|
-
|
|
72
|
+
trace: {
|
|
73
|
+
enum: string[];
|
|
53
74
|
};
|
|
54
75
|
};
|
|
55
76
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
77
|
+
connections: {
|
|
78
|
+
type: string;
|
|
79
|
+
propertyNames: {
|
|
80
|
+
pattern: string;
|
|
60
81
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
82
|
+
additionalProperties: {
|
|
83
|
+
type: string;
|
|
84
|
+
minLength: number;
|
|
85
|
+
maxLength: number;
|
|
65
86
|
};
|
|
66
87
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
88
|
+
trigger: {
|
|
89
|
+
type: string;
|
|
90
|
+
minProperties: number;
|
|
91
|
+
maxProperties: number;
|
|
92
|
+
propertyNames: {
|
|
93
|
+
pattern: string;
|
|
73
94
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
95
|
+
properties: {
|
|
96
|
+
manual: {
|
|
97
|
+
type: string;
|
|
98
|
+
maxProperties: number;
|
|
78
99
|
};
|
|
79
100
|
};
|
|
80
|
-
|
|
81
|
-
|
|
101
|
+
additionalProperties: {
|
|
102
|
+
type: string;
|
|
82
103
|
};
|
|
83
104
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}];
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
105
|
+
stateMachine: {
|
|
106
|
+
allOf: {
|
|
107
|
+
$ref: string;
|
|
108
|
+
}[];
|
|
109
|
+
required: string[];
|
|
110
|
+
properties: {
|
|
111
|
+
States: {};
|
|
112
|
+
Comment: {};
|
|
113
|
+
Version: {
|
|
114
|
+
type: string;
|
|
115
|
+
};
|
|
116
|
+
StartAt?: {} | undefined;
|
|
117
|
+
QueryLanguage: {
|
|
118
|
+
const: string;
|
|
119
|
+
};
|
|
96
120
|
};
|
|
97
|
-
|
|
121
|
+
additionalProperties: boolean;
|
|
98
122
|
};
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}];
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
123
|
+
processor: {
|
|
124
|
+
allOf: {
|
|
125
|
+
$ref: string;
|
|
126
|
+
}[];
|
|
127
|
+
properties: {
|
|
128
|
+
States: {};
|
|
129
|
+
Comment: {};
|
|
130
|
+
Version: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
StartAt?: {} | undefined;
|
|
134
|
+
ProcessorConfig: {
|
|
135
|
+
type: string;
|
|
136
|
+
additionalProperties: boolean;
|
|
137
|
+
properties: {
|
|
138
|
+
Mode: {
|
|
139
|
+
const: string;
|
|
110
140
|
};
|
|
111
141
|
};
|
|
112
142
|
};
|
|
113
|
-
readonly StartAt: {};
|
|
114
|
-
readonly States: {};
|
|
115
|
-
readonly Comment: {};
|
|
116
143
|
};
|
|
117
|
-
|
|
144
|
+
additionalProperties: boolean;
|
|
118
145
|
};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
146
|
+
state: {
|
|
147
|
+
type: string;
|
|
148
|
+
required: string[];
|
|
149
|
+
discriminator: {
|
|
150
|
+
propertyName: string;
|
|
124
151
|
};
|
|
125
|
-
|
|
126
|
-
properties: {
|
|
127
|
-
Type: {
|
|
128
|
-
const: string;
|
|
129
|
-
};
|
|
130
|
-
Comment: {
|
|
131
|
-
type: string;
|
|
132
|
-
};
|
|
133
|
-
Output: {};
|
|
134
|
-
Assign: {
|
|
135
|
-
type: string;
|
|
136
|
-
propertyNames: {
|
|
137
|
-
pattern: string;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
QueryLanguage: {
|
|
141
|
-
const: string;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
152
|
+
oneOf: ({
|
|
144
153
|
type: string;
|
|
145
154
|
additionalProperties: boolean;
|
|
146
155
|
required: string[];
|
|
147
|
-
}, {
|
|
148
156
|
properties: {
|
|
149
|
-
|
|
150
|
-
const: string;
|
|
151
|
-
};
|
|
152
|
-
Comment: {
|
|
157
|
+
Error: {
|
|
153
158
|
type: string;
|
|
154
159
|
};
|
|
155
|
-
|
|
156
|
-
Assign: {
|
|
160
|
+
Cause: {
|
|
157
161
|
type: string;
|
|
158
|
-
propertyNames: {
|
|
159
|
-
pattern: string;
|
|
160
|
-
};
|
|
161
162
|
};
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
type: string;
|
|
167
|
-
additionalProperties: boolean;
|
|
168
|
-
required: string[];
|
|
169
|
-
}, {
|
|
170
|
-
properties: {
|
|
163
|
+
Condition?: {
|
|
164
|
+
type: string;
|
|
165
|
+
pattern: string;
|
|
166
|
+
} | undefined;
|
|
171
167
|
Type: {
|
|
172
168
|
const: string;
|
|
173
169
|
};
|
|
174
170
|
Comment: {
|
|
175
171
|
type: string;
|
|
176
172
|
};
|
|
177
|
-
Output: {};
|
|
178
|
-
Assign: {
|
|
179
|
-
type: string;
|
|
180
|
-
propertyNames: {
|
|
181
|
-
pattern: string;
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
173
|
QueryLanguage: {
|
|
185
174
|
const: string;
|
|
186
175
|
};
|
|
187
176
|
};
|
|
177
|
+
} | {
|
|
188
178
|
type: string;
|
|
189
179
|
additionalProperties: boolean;
|
|
190
180
|
required: string[];
|
|
191
|
-
}, {
|
|
192
181
|
properties: {
|
|
193
182
|
Type: {
|
|
194
183
|
const: string;
|
|
@@ -197,79 +186,193 @@ export declare const definitionSchema: {
|
|
|
197
186
|
type: string;
|
|
198
187
|
};
|
|
199
188
|
Output: {};
|
|
200
|
-
Assign: {
|
|
201
|
-
type: string;
|
|
202
|
-
propertyNames: {
|
|
203
|
-
pattern: string;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
189
|
QueryLanguage: {
|
|
207
190
|
const: string;
|
|
208
191
|
};
|
|
209
192
|
};
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
193
|
+
})[];
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
/** The JSON Schema of a workflow definition whose states run in the order their reads give: `"order": "data"`. */
|
|
198
|
+
export declare const dataflowDefinitionSchema: {
|
|
199
|
+
$schema: string;
|
|
200
|
+
$id: string;
|
|
201
|
+
$ref: string;
|
|
202
|
+
definitions: {
|
|
203
|
+
machine: {
|
|
204
|
+
type: string;
|
|
205
|
+
required: string[];
|
|
206
|
+
properties: {
|
|
207
|
+
StartAt: {
|
|
208
|
+
type: string;
|
|
209
|
+
minLength: number;
|
|
210
|
+
maxLength: number;
|
|
211
|
+
};
|
|
212
|
+
Comment: {
|
|
213
|
+
type: string;
|
|
228
214
|
};
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
215
|
+
States: {
|
|
216
|
+
type: string;
|
|
217
|
+
minProperties: number;
|
|
218
|
+
propertyNames: {
|
|
219
|
+
type: string;
|
|
220
|
+
minLength: number;
|
|
221
|
+
maxLength: number;
|
|
236
222
|
};
|
|
237
|
-
|
|
238
|
-
|
|
223
|
+
additionalProperties: {
|
|
224
|
+
$ref: string;
|
|
239
225
|
};
|
|
240
|
-
|
|
241
|
-
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
} | {
|
|
229
|
+
type: string;
|
|
230
|
+
required: string[];
|
|
231
|
+
properties: {
|
|
232
|
+
Comment: {
|
|
233
|
+
type: string;
|
|
234
|
+
};
|
|
235
|
+
States: {
|
|
236
|
+
type: string;
|
|
237
|
+
minProperties: number;
|
|
238
|
+
propertyNames: {
|
|
239
|
+
type: string;
|
|
240
|
+
minLength: number;
|
|
241
|
+
maxLength: number;
|
|
242
242
|
};
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
additionalProperties: {
|
|
244
|
+
$ref: string;
|
|
245
245
|
};
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
};
|
|
247
|
+
StartAt?: undefined;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
definition: {
|
|
251
|
+
type: string;
|
|
252
|
+
additionalProperties: boolean;
|
|
253
|
+
required: string[];
|
|
254
|
+
properties: {
|
|
255
|
+
trigger: {
|
|
256
|
+
$ref: string;
|
|
257
|
+
};
|
|
258
|
+
order: {
|
|
259
|
+
enum: string[];
|
|
260
|
+
};
|
|
261
|
+
stateMachine: {
|
|
262
|
+
$ref: string;
|
|
263
|
+
};
|
|
264
|
+
connections: {
|
|
265
|
+
$ref: string;
|
|
266
|
+
};
|
|
267
|
+
trace: {
|
|
268
|
+
enum: string[];
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
connections: {
|
|
273
|
+
type: string;
|
|
274
|
+
propertyNames: {
|
|
275
|
+
pattern: string;
|
|
276
|
+
};
|
|
277
|
+
additionalProperties: {
|
|
278
|
+
type: string;
|
|
279
|
+
minLength: number;
|
|
280
|
+
maxLength: number;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
trigger: {
|
|
284
|
+
type: string;
|
|
285
|
+
minProperties: number;
|
|
286
|
+
maxProperties: number;
|
|
287
|
+
propertyNames: {
|
|
288
|
+
pattern: string;
|
|
289
|
+
};
|
|
290
|
+
properties: {
|
|
291
|
+
manual: {
|
|
292
|
+
type: string;
|
|
293
|
+
maxProperties: number;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
additionalProperties: {
|
|
297
|
+
type: string;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
stateMachine: {
|
|
301
|
+
allOf: {
|
|
302
|
+
$ref: string;
|
|
303
|
+
}[];
|
|
304
|
+
required: string[];
|
|
305
|
+
properties: {
|
|
306
|
+
States: {};
|
|
307
|
+
Comment: {};
|
|
308
|
+
Version: {
|
|
309
|
+
type: string;
|
|
310
|
+
};
|
|
311
|
+
StartAt?: {} | undefined;
|
|
312
|
+
QueryLanguage: {
|
|
313
|
+
const: string;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
additionalProperties: boolean;
|
|
317
|
+
};
|
|
318
|
+
processor: {
|
|
319
|
+
allOf: {
|
|
320
|
+
$ref: string;
|
|
321
|
+
}[];
|
|
322
|
+
properties: {
|
|
323
|
+
States: {};
|
|
324
|
+
Comment: {};
|
|
325
|
+
Version: {
|
|
326
|
+
type: string;
|
|
327
|
+
};
|
|
328
|
+
StartAt?: {} | undefined;
|
|
329
|
+
ProcessorConfig: {
|
|
330
|
+
type: string;
|
|
331
|
+
additionalProperties: boolean;
|
|
332
|
+
properties: {
|
|
333
|
+
Mode: {
|
|
334
|
+
const: string;
|
|
335
|
+
};
|
|
248
336
|
};
|
|
249
337
|
};
|
|
250
|
-
}
|
|
338
|
+
};
|
|
339
|
+
additionalProperties: boolean;
|
|
340
|
+
};
|
|
341
|
+
state: {
|
|
342
|
+
type: string;
|
|
343
|
+
required: string[];
|
|
344
|
+
discriminator: {
|
|
345
|
+
propertyName: string;
|
|
346
|
+
};
|
|
347
|
+
oneOf: ({
|
|
348
|
+
type: string;
|
|
349
|
+
additionalProperties: boolean;
|
|
350
|
+
required: string[];
|
|
251
351
|
properties: {
|
|
352
|
+
Error: {
|
|
353
|
+
type: string;
|
|
354
|
+
};
|
|
355
|
+
Cause: {
|
|
356
|
+
type: string;
|
|
357
|
+
};
|
|
358
|
+
Condition?: {
|
|
359
|
+
type: string;
|
|
360
|
+
pattern: string;
|
|
361
|
+
} | undefined;
|
|
252
362
|
Type: {
|
|
253
363
|
const: string;
|
|
254
364
|
};
|
|
255
365
|
Comment: {
|
|
256
366
|
type: string;
|
|
257
367
|
};
|
|
258
|
-
Output: {};
|
|
259
|
-
Assign: {
|
|
260
|
-
type: string;
|
|
261
|
-
propertyNames: {
|
|
262
|
-
pattern: string;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
368
|
QueryLanguage: {
|
|
266
369
|
const: string;
|
|
267
370
|
};
|
|
268
371
|
};
|
|
372
|
+
} | {
|
|
269
373
|
type: string;
|
|
270
374
|
additionalProperties: boolean;
|
|
271
375
|
required: string[];
|
|
272
|
-
}, {
|
|
273
376
|
properties: {
|
|
274
377
|
Type: {
|
|
275
378
|
const: string;
|
|
@@ -278,20 +381,11 @@ export declare const definitionSchema: {
|
|
|
278
381
|
type: string;
|
|
279
382
|
};
|
|
280
383
|
Output: {};
|
|
281
|
-
Assign: {
|
|
282
|
-
type: string;
|
|
283
|
-
propertyNames: {
|
|
284
|
-
pattern: string;
|
|
285
|
-
};
|
|
286
|
-
};
|
|
287
384
|
QueryLanguage: {
|
|
288
385
|
const: string;
|
|
289
386
|
};
|
|
290
387
|
};
|
|
291
|
-
|
|
292
|
-
additionalProperties: boolean;
|
|
293
|
-
required: string[];
|
|
294
|
-
}];
|
|
388
|
+
})[];
|
|
295
389
|
};
|
|
296
390
|
};
|
|
297
391
|
};
|