@nocobase/plugin-workflow 2.1.0-beta.1 → 2.1.0-beta.10
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/LICENSE +201 -661
- package/README.md +79 -10
- package/dist/client/0e458d99e9fc5e65.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +12 -12
- package/dist/locale/zh-CN.json +2 -1
- package/dist/node_modules/cron-parser/package.json +1 -1
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/server/Dispatcher.d.ts +3 -2
- package/dist/server/Dispatcher.js +74 -61
- package/dist/swagger/index.d.ts +814 -62
- package/dist/swagger/index.js +975 -205
- package/package.json +3 -3
- package/dist/client/c1347b9d21f864d9.js +0 -10
package/dist/swagger/index.d.ts
CHANGED
|
@@ -6,20 +6,85 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
+
/**
|
|
10
|
+
* NocoBase Workflow Plugin — Swagger / OpenAPI 3.0 document
|
|
11
|
+
*
|
|
12
|
+
* Resources covered:
|
|
13
|
+
* workflows — Workflow CRUD, versioning, sync and manual execution
|
|
14
|
+
* workflows.nodes — Create nodes inside a workflow (association resource)
|
|
15
|
+
* flow_nodes — Update / delete / move / duplicate / test nodes
|
|
16
|
+
* executions — Execution record queries, cancellation and deletion
|
|
17
|
+
* jobs — Node job queries and resuming paused executions
|
|
18
|
+
* userWorkflowTasks — Current-user's pending workflow tasks
|
|
19
|
+
*
|
|
20
|
+
* API conventions:
|
|
21
|
+
* Base URL : /api
|
|
22
|
+
* Route fmt : /api/<resource>:<action>
|
|
23
|
+
* Assoc fmt : /api/<resource>/<sourceId>/<association>:<action>
|
|
24
|
+
*
|
|
25
|
+
* Client-side usage (example):
|
|
26
|
+
* import { useAPIClient } from '@nocobase/client';
|
|
27
|
+
* const api = useAPIClient();
|
|
28
|
+
* await api.resource('workflows').list({ filter: { current: true } });
|
|
29
|
+
*
|
|
30
|
+
* Direct HTTP usage (example):
|
|
31
|
+
* GET /api/workflows:list?filter={"current":true}&sort=-createdAt&except[]=config
|
|
32
|
+
* Headers: Authorization: Bearer <token>
|
|
33
|
+
*/
|
|
9
34
|
declare const _default: {
|
|
10
35
|
openapi: string;
|
|
11
36
|
info: {
|
|
12
37
|
title: string;
|
|
13
38
|
};
|
|
14
|
-
tags:
|
|
39
|
+
tags: {
|
|
40
|
+
name: string;
|
|
41
|
+
description: string;
|
|
42
|
+
}[];
|
|
15
43
|
paths: {
|
|
16
44
|
'/workflows:list': {
|
|
17
45
|
get: {
|
|
18
46
|
tags: string[];
|
|
47
|
+
summary: string;
|
|
19
48
|
description: string;
|
|
20
|
-
parameters: {
|
|
49
|
+
parameters: ({
|
|
21
50
|
$ref: string;
|
|
22
|
-
|
|
51
|
+
name?: undefined;
|
|
52
|
+
in?: undefined;
|
|
53
|
+
description?: undefined;
|
|
54
|
+
schema?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
name: string;
|
|
57
|
+
in: string;
|
|
58
|
+
description: string;
|
|
59
|
+
schema: {
|
|
60
|
+
type: string;
|
|
61
|
+
items?: undefined;
|
|
62
|
+
default?: undefined;
|
|
63
|
+
};
|
|
64
|
+
$ref?: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
name: string;
|
|
67
|
+
in: string;
|
|
68
|
+
description: string;
|
|
69
|
+
schema: {
|
|
70
|
+
type: string;
|
|
71
|
+
items: {
|
|
72
|
+
type: string;
|
|
73
|
+
};
|
|
74
|
+
default?: undefined;
|
|
75
|
+
};
|
|
76
|
+
$ref?: undefined;
|
|
77
|
+
} | {
|
|
78
|
+
name: string;
|
|
79
|
+
in: string;
|
|
80
|
+
description: string;
|
|
81
|
+
schema: {
|
|
82
|
+
type: string;
|
|
83
|
+
default: number;
|
|
84
|
+
items?: undefined;
|
|
85
|
+
};
|
|
86
|
+
$ref?: undefined;
|
|
87
|
+
})[];
|
|
23
88
|
responses: {
|
|
24
89
|
200: {
|
|
25
90
|
description: string;
|
|
@@ -40,10 +105,26 @@ declare const _default: {
|
|
|
40
105
|
'/workflows:get': {
|
|
41
106
|
get: {
|
|
42
107
|
tags: string[];
|
|
108
|
+
summary: string;
|
|
43
109
|
description: string;
|
|
44
|
-
parameters: {
|
|
110
|
+
parameters: ({
|
|
45
111
|
$ref: string;
|
|
46
|
-
|
|
112
|
+
name?: undefined;
|
|
113
|
+
in?: undefined;
|
|
114
|
+
description?: undefined;
|
|
115
|
+
schema?: undefined;
|
|
116
|
+
} | {
|
|
117
|
+
name: string;
|
|
118
|
+
in: string;
|
|
119
|
+
description: string;
|
|
120
|
+
schema: {
|
|
121
|
+
type: string;
|
|
122
|
+
items: {
|
|
123
|
+
type: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
$ref?: undefined;
|
|
127
|
+
})[];
|
|
47
128
|
responses: {
|
|
48
129
|
200: {
|
|
49
130
|
description: string;
|
|
@@ -76,6 +157,7 @@ declare const _default: {
|
|
|
76
157
|
'/workflows:create': {
|
|
77
158
|
post: {
|
|
78
159
|
tags: string[];
|
|
160
|
+
summary: string;
|
|
79
161
|
description: string;
|
|
80
162
|
parameters: any[];
|
|
81
163
|
requestBody: {
|
|
@@ -83,6 +165,7 @@ declare const _default: {
|
|
|
83
165
|
'application/json': {
|
|
84
166
|
schema: {
|
|
85
167
|
type: string;
|
|
168
|
+
required: string[];
|
|
86
169
|
properties: {
|
|
87
170
|
title: {
|
|
88
171
|
$ref: string;
|
|
@@ -93,6 +176,24 @@ declare const _default: {
|
|
|
93
176
|
description: {
|
|
94
177
|
$ref: string;
|
|
95
178
|
};
|
|
179
|
+
enabled: {
|
|
180
|
+
$ref: string;
|
|
181
|
+
};
|
|
182
|
+
sync: {
|
|
183
|
+
$ref: string;
|
|
184
|
+
};
|
|
185
|
+
triggerTitle: {
|
|
186
|
+
$ref: string;
|
|
187
|
+
};
|
|
188
|
+
config: {
|
|
189
|
+
$ref: string;
|
|
190
|
+
};
|
|
191
|
+
options: {
|
|
192
|
+
$ref: string;
|
|
193
|
+
};
|
|
194
|
+
categories: {
|
|
195
|
+
$ref: string;
|
|
196
|
+
};
|
|
96
197
|
};
|
|
97
198
|
};
|
|
98
199
|
};
|
|
@@ -104,9 +205,7 @@ declare const _default: {
|
|
|
104
205
|
content: {
|
|
105
206
|
'application/json': {
|
|
106
207
|
schema: {
|
|
107
|
-
|
|
108
|
-
$ref: string;
|
|
109
|
-
}[];
|
|
208
|
+
$ref: string;
|
|
110
209
|
};
|
|
111
210
|
};
|
|
112
211
|
};
|
|
@@ -117,8 +216,11 @@ declare const _default: {
|
|
|
117
216
|
'/workflows:update': {
|
|
118
217
|
post: {
|
|
119
218
|
tags: string[];
|
|
219
|
+
summary: string;
|
|
120
220
|
description: string;
|
|
121
|
-
parameters:
|
|
221
|
+
parameters: {
|
|
222
|
+
$ref: string;
|
|
223
|
+
}[];
|
|
122
224
|
requestBody: {
|
|
123
225
|
content: {
|
|
124
226
|
'application/json': {
|
|
@@ -134,9 +236,18 @@ declare const _default: {
|
|
|
134
236
|
description: {
|
|
135
237
|
$ref: string;
|
|
136
238
|
};
|
|
239
|
+
triggerTitle: {
|
|
240
|
+
$ref: string;
|
|
241
|
+
};
|
|
137
242
|
config: {
|
|
138
243
|
$ref: string;
|
|
139
244
|
};
|
|
245
|
+
options: {
|
|
246
|
+
$ref: string;
|
|
247
|
+
};
|
|
248
|
+
categories: {
|
|
249
|
+
$ref: string;
|
|
250
|
+
};
|
|
140
251
|
};
|
|
141
252
|
};
|
|
142
253
|
};
|
|
@@ -146,12 +257,16 @@ declare const _default: {
|
|
|
146
257
|
200: {
|
|
147
258
|
description: string;
|
|
148
259
|
};
|
|
260
|
+
400: {
|
|
261
|
+
description: string;
|
|
262
|
+
};
|
|
149
263
|
};
|
|
150
264
|
};
|
|
151
265
|
};
|
|
152
266
|
'/workflows:destroy': {
|
|
153
267
|
post: {
|
|
154
268
|
tags: string[];
|
|
269
|
+
summary: string;
|
|
155
270
|
description: string;
|
|
156
271
|
parameters: ({
|
|
157
272
|
name: string;
|
|
@@ -159,7 +274,6 @@ declare const _default: {
|
|
|
159
274
|
description: string;
|
|
160
275
|
schema: {
|
|
161
276
|
type: string;
|
|
162
|
-
description: string;
|
|
163
277
|
properties?: undefined;
|
|
164
278
|
};
|
|
165
279
|
} | {
|
|
@@ -174,7 +288,6 @@ declare const _default: {
|
|
|
174
288
|
description: string;
|
|
175
289
|
};
|
|
176
290
|
};
|
|
177
|
-
description?: undefined;
|
|
178
291
|
};
|
|
179
292
|
})[];
|
|
180
293
|
responses: {
|
|
@@ -187,6 +300,7 @@ declare const _default: {
|
|
|
187
300
|
'/workflows:revision': {
|
|
188
301
|
post: {
|
|
189
302
|
tags: string[];
|
|
303
|
+
summary: string;
|
|
190
304
|
description: string;
|
|
191
305
|
parameters: ({
|
|
192
306
|
name: string;
|
|
@@ -194,7 +308,6 @@ declare const _default: {
|
|
|
194
308
|
description: string;
|
|
195
309
|
schema: {
|
|
196
310
|
type: string;
|
|
197
|
-
description: string;
|
|
198
311
|
properties?: undefined;
|
|
199
312
|
};
|
|
200
313
|
} | {
|
|
@@ -209,19 +322,55 @@ declare const _default: {
|
|
|
209
322
|
description: string;
|
|
210
323
|
};
|
|
211
324
|
};
|
|
212
|
-
description?: undefined;
|
|
213
325
|
};
|
|
214
326
|
})[];
|
|
327
|
+
requestBody: {
|
|
328
|
+
content: {
|
|
329
|
+
'application/json': {
|
|
330
|
+
schema: {
|
|
331
|
+
type: string;
|
|
332
|
+
properties: {
|
|
333
|
+
values: {
|
|
334
|
+
type: string;
|
|
335
|
+
description: string;
|
|
336
|
+
properties: {
|
|
337
|
+
title: {
|
|
338
|
+
type: string;
|
|
339
|
+
description: string;
|
|
340
|
+
};
|
|
341
|
+
enabled: {
|
|
342
|
+
type: string;
|
|
343
|
+
description: string;
|
|
344
|
+
};
|
|
345
|
+
current: {
|
|
346
|
+
type: string;
|
|
347
|
+
description: string;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
215
356
|
responses: {
|
|
216
357
|
200: {
|
|
217
358
|
description: string;
|
|
359
|
+
content: {
|
|
360
|
+
'application/json': {
|
|
361
|
+
schema: {
|
|
362
|
+
$ref: string;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
};
|
|
218
366
|
};
|
|
219
367
|
};
|
|
220
368
|
};
|
|
221
369
|
};
|
|
222
|
-
'/workflows:
|
|
370
|
+
'/workflows:sync': {
|
|
223
371
|
post: {
|
|
224
372
|
tags: string[];
|
|
373
|
+
summary: string;
|
|
225
374
|
description: string;
|
|
226
375
|
parameters: {
|
|
227
376
|
name: string;
|
|
@@ -232,30 +381,121 @@ declare const _default: {
|
|
|
232
381
|
};
|
|
233
382
|
}[];
|
|
234
383
|
responses: {
|
|
235
|
-
|
|
384
|
+
204: {
|
|
236
385
|
description: string;
|
|
237
386
|
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
'/workflows:execute': {
|
|
391
|
+
post: {
|
|
392
|
+
tags: string[];
|
|
393
|
+
summary: string;
|
|
394
|
+
description: string;
|
|
395
|
+
parameters: ({
|
|
396
|
+
name: string;
|
|
397
|
+
in: string;
|
|
398
|
+
required: boolean;
|
|
399
|
+
description: string;
|
|
400
|
+
schema: {
|
|
401
|
+
type: string;
|
|
402
|
+
enum?: undefined;
|
|
403
|
+
};
|
|
404
|
+
} | {
|
|
405
|
+
name: string;
|
|
406
|
+
in: string;
|
|
407
|
+
description: string;
|
|
408
|
+
schema: {
|
|
409
|
+
type: string;
|
|
410
|
+
enum: number[];
|
|
411
|
+
};
|
|
412
|
+
required?: undefined;
|
|
413
|
+
})[];
|
|
414
|
+
requestBody: {
|
|
415
|
+
required: boolean;
|
|
416
|
+
content: {
|
|
417
|
+
'application/json': {
|
|
418
|
+
schema: {
|
|
419
|
+
type: string;
|
|
420
|
+
required: string[];
|
|
421
|
+
properties: {
|
|
422
|
+
values: {
|
|
423
|
+
type: string;
|
|
424
|
+
description: string;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
responses: {
|
|
432
|
+
200: {
|
|
433
|
+
description: string;
|
|
434
|
+
content: {
|
|
435
|
+
'application/json': {
|
|
436
|
+
schema: {
|
|
437
|
+
type: string;
|
|
438
|
+
properties: {
|
|
439
|
+
execution: {
|
|
440
|
+
type: string;
|
|
441
|
+
properties: {
|
|
442
|
+
id: {
|
|
443
|
+
type: string;
|
|
444
|
+
description: string;
|
|
445
|
+
};
|
|
446
|
+
status: {
|
|
447
|
+
type: string;
|
|
448
|
+
description: string;
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
newVersionId: {
|
|
453
|
+
type: string;
|
|
454
|
+
nullable: boolean;
|
|
455
|
+
description: string;
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
};
|
|
238
462
|
400: {
|
|
239
463
|
description: string;
|
|
240
464
|
};
|
|
465
|
+
404: {
|
|
466
|
+
description: string;
|
|
467
|
+
};
|
|
241
468
|
};
|
|
242
469
|
};
|
|
243
470
|
};
|
|
244
471
|
'/workflows/{workflowId}/nodes:create': {
|
|
245
472
|
post: {
|
|
246
473
|
tags: string[];
|
|
474
|
+
summary: string;
|
|
247
475
|
description: string;
|
|
248
|
-
parameters:
|
|
476
|
+
parameters: {
|
|
477
|
+
name: string;
|
|
478
|
+
in: string;
|
|
479
|
+
required: boolean;
|
|
480
|
+
description: string;
|
|
481
|
+
schema: {
|
|
482
|
+
type: string;
|
|
483
|
+
};
|
|
484
|
+
}[];
|
|
249
485
|
requestBody: {
|
|
250
486
|
content: {
|
|
251
487
|
'application/json': {
|
|
252
488
|
schema: {
|
|
253
489
|
type: string;
|
|
490
|
+
required: string[];
|
|
254
491
|
properties: {
|
|
492
|
+
type: {
|
|
493
|
+
$ref: string;
|
|
494
|
+
};
|
|
255
495
|
title: {
|
|
256
496
|
$ref: string;
|
|
257
497
|
};
|
|
258
|
-
|
|
498
|
+
config: {
|
|
259
499
|
$ref: string;
|
|
260
500
|
};
|
|
261
501
|
upstreamId: {
|
|
@@ -282,20 +522,64 @@ declare const _default: {
|
|
|
282
522
|
};
|
|
283
523
|
};
|
|
284
524
|
};
|
|
525
|
+
400: {
|
|
526
|
+
description: string;
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
'/flow_nodes:get': {
|
|
532
|
+
get: {
|
|
533
|
+
tags: string[];
|
|
534
|
+
summary: string;
|
|
535
|
+
description: string;
|
|
536
|
+
parameters: ({
|
|
537
|
+
name: string;
|
|
538
|
+
in: string;
|
|
539
|
+
required: boolean;
|
|
540
|
+
description: string;
|
|
541
|
+
schema: {
|
|
542
|
+
type: string;
|
|
543
|
+
items?: undefined;
|
|
544
|
+
};
|
|
545
|
+
} | {
|
|
546
|
+
name: string;
|
|
547
|
+
in: string;
|
|
548
|
+
description: string;
|
|
549
|
+
schema: {
|
|
550
|
+
type: string;
|
|
551
|
+
items: {
|
|
552
|
+
type: string;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
required?: undefined;
|
|
556
|
+
})[];
|
|
557
|
+
responses: {
|
|
558
|
+
200: {
|
|
559
|
+
description: string;
|
|
560
|
+
content: {
|
|
561
|
+
'application/json': {
|
|
562
|
+
schema: {
|
|
563
|
+
$ref: string;
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
};
|
|
285
568
|
};
|
|
286
569
|
};
|
|
287
570
|
};
|
|
288
571
|
'/flow_nodes:update': {
|
|
289
572
|
post: {
|
|
290
573
|
tags: string[];
|
|
574
|
+
summary: string;
|
|
291
575
|
description: string;
|
|
292
576
|
parameters: {
|
|
293
577
|
name: string;
|
|
294
578
|
in: string;
|
|
579
|
+
required: boolean;
|
|
295
580
|
description: string;
|
|
296
581
|
schema: {
|
|
297
582
|
type: string;
|
|
298
|
-
description: string;
|
|
299
583
|
};
|
|
300
584
|
}[];
|
|
301
585
|
requestBody: {
|
|
@@ -310,6 +594,244 @@ declare const _default: {
|
|
|
310
594
|
config: {
|
|
311
595
|
$ref: string;
|
|
312
596
|
};
|
|
597
|
+
branchIndex: {
|
|
598
|
+
$ref: string;
|
|
599
|
+
};
|
|
600
|
+
updateAssociationValues: {
|
|
601
|
+
type: string;
|
|
602
|
+
description: string;
|
|
603
|
+
items: {
|
|
604
|
+
type: string;
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
responses: {
|
|
613
|
+
200: {
|
|
614
|
+
description: string;
|
|
615
|
+
};
|
|
616
|
+
400: {
|
|
617
|
+
description: string;
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
'/flow_nodes:destroy': {
|
|
623
|
+
post: {
|
|
624
|
+
tags: string[];
|
|
625
|
+
summary: string;
|
|
626
|
+
description: string;
|
|
627
|
+
parameters: ({
|
|
628
|
+
name: string;
|
|
629
|
+
in: string;
|
|
630
|
+
required: boolean;
|
|
631
|
+
description: string;
|
|
632
|
+
schema: {
|
|
633
|
+
type: string;
|
|
634
|
+
};
|
|
635
|
+
} | {
|
|
636
|
+
name: string;
|
|
637
|
+
in: string;
|
|
638
|
+
description: string;
|
|
639
|
+
schema: {
|
|
640
|
+
type: string;
|
|
641
|
+
};
|
|
642
|
+
required?: undefined;
|
|
643
|
+
})[];
|
|
644
|
+
responses: {
|
|
645
|
+
200: {
|
|
646
|
+
description: string;
|
|
647
|
+
};
|
|
648
|
+
400: {
|
|
649
|
+
description: string;
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
'/flow_nodes:destroyBranch': {
|
|
655
|
+
post: {
|
|
656
|
+
tags: string[];
|
|
657
|
+
summary: string;
|
|
658
|
+
description: string;
|
|
659
|
+
parameters: ({
|
|
660
|
+
name: string;
|
|
661
|
+
in: string;
|
|
662
|
+
required: boolean;
|
|
663
|
+
description: string;
|
|
664
|
+
schema: {
|
|
665
|
+
type: string;
|
|
666
|
+
enum?: undefined;
|
|
667
|
+
};
|
|
668
|
+
} | {
|
|
669
|
+
name: string;
|
|
670
|
+
in: string;
|
|
671
|
+
description: string;
|
|
672
|
+
schema: {
|
|
673
|
+
type: string;
|
|
674
|
+
enum: number[];
|
|
675
|
+
};
|
|
676
|
+
required?: undefined;
|
|
677
|
+
})[];
|
|
678
|
+
responses: {
|
|
679
|
+
200: {
|
|
680
|
+
description: string;
|
|
681
|
+
};
|
|
682
|
+
400: {
|
|
683
|
+
description: string;
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
'/flow_nodes:duplicate': {
|
|
689
|
+
post: {
|
|
690
|
+
tags: string[];
|
|
691
|
+
summary: string;
|
|
692
|
+
description: string;
|
|
693
|
+
parameters: {
|
|
694
|
+
name: string;
|
|
695
|
+
in: string;
|
|
696
|
+
required: boolean;
|
|
697
|
+
description: string;
|
|
698
|
+
schema: {
|
|
699
|
+
type: string;
|
|
700
|
+
};
|
|
701
|
+
}[];
|
|
702
|
+
requestBody: {
|
|
703
|
+
content: {
|
|
704
|
+
'application/json': {
|
|
705
|
+
schema: {
|
|
706
|
+
type: string;
|
|
707
|
+
properties: {
|
|
708
|
+
values: {
|
|
709
|
+
type: string;
|
|
710
|
+
description: string;
|
|
711
|
+
properties: {
|
|
712
|
+
upstreamId: {
|
|
713
|
+
$ref: string;
|
|
714
|
+
};
|
|
715
|
+
branchIndex: {
|
|
716
|
+
$ref: string;
|
|
717
|
+
};
|
|
718
|
+
config: {
|
|
719
|
+
$ref: string;
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
responses: {
|
|
729
|
+
200: {
|
|
730
|
+
description: string;
|
|
731
|
+
content: {
|
|
732
|
+
'application/json': {
|
|
733
|
+
schema: {
|
|
734
|
+
$ref: string;
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
400: {
|
|
740
|
+
description: string;
|
|
741
|
+
};
|
|
742
|
+
404: {
|
|
743
|
+
description: string;
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
'/flow_nodes:move': {
|
|
749
|
+
post: {
|
|
750
|
+
tags: string[];
|
|
751
|
+
summary: string;
|
|
752
|
+
description: string;
|
|
753
|
+
parameters: {
|
|
754
|
+
name: string;
|
|
755
|
+
in: string;
|
|
756
|
+
required: boolean;
|
|
757
|
+
description: string;
|
|
758
|
+
schema: {
|
|
759
|
+
type: string;
|
|
760
|
+
};
|
|
761
|
+
}[];
|
|
762
|
+
requestBody: {
|
|
763
|
+
content: {
|
|
764
|
+
'application/json': {
|
|
765
|
+
schema: {
|
|
766
|
+
type: string;
|
|
767
|
+
properties: {
|
|
768
|
+
values: {
|
|
769
|
+
type: string;
|
|
770
|
+
description: string;
|
|
771
|
+
properties: {
|
|
772
|
+
upstreamId: {
|
|
773
|
+
type: string;
|
|
774
|
+
nullable: boolean;
|
|
775
|
+
description: string;
|
|
776
|
+
};
|
|
777
|
+
branchIndex: {
|
|
778
|
+
type: string;
|
|
779
|
+
nullable: boolean;
|
|
780
|
+
description: string;
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
};
|
|
789
|
+
responses: {
|
|
790
|
+
200: {
|
|
791
|
+
description: string;
|
|
792
|
+
content: {
|
|
793
|
+
'application/json': {
|
|
794
|
+
schema: {
|
|
795
|
+
$ref: string;
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
400: {
|
|
801
|
+
description: string;
|
|
802
|
+
};
|
|
803
|
+
404: {
|
|
804
|
+
description: string;
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
'/flow_nodes:test': {
|
|
810
|
+
post: {
|
|
811
|
+
tags: string[];
|
|
812
|
+
summary: string;
|
|
813
|
+
description: string;
|
|
814
|
+
parameters: any[];
|
|
815
|
+
requestBody: {
|
|
816
|
+
required: boolean;
|
|
817
|
+
content: {
|
|
818
|
+
'application/json': {
|
|
819
|
+
schema: {
|
|
820
|
+
type: string;
|
|
821
|
+
required: string[];
|
|
822
|
+
properties: {
|
|
823
|
+
values: {
|
|
824
|
+
type: string;
|
|
825
|
+
required: string[];
|
|
826
|
+
properties: {
|
|
827
|
+
type: {
|
|
828
|
+
$ref: string;
|
|
829
|
+
};
|
|
830
|
+
config: {
|
|
831
|
+
$ref: string;
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
};
|
|
313
835
|
};
|
|
314
836
|
};
|
|
315
837
|
};
|
|
@@ -318,41 +840,58 @@ declare const _default: {
|
|
|
318
840
|
responses: {
|
|
319
841
|
200: {
|
|
320
842
|
description: string;
|
|
843
|
+
content: {
|
|
844
|
+
'application/json': {
|
|
845
|
+
schema: {
|
|
846
|
+
type: string;
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
};
|
|
321
850
|
};
|
|
322
851
|
400: {
|
|
323
852
|
description: string;
|
|
324
853
|
};
|
|
854
|
+
500: {
|
|
855
|
+
description: string;
|
|
856
|
+
};
|
|
325
857
|
};
|
|
326
858
|
};
|
|
327
859
|
};
|
|
328
|
-
'/
|
|
329
|
-
|
|
860
|
+
'/executions:list': {
|
|
861
|
+
get: {
|
|
330
862
|
tags: string[];
|
|
863
|
+
summary: string;
|
|
331
864
|
description: string;
|
|
332
|
-
parameters: {
|
|
865
|
+
parameters: ({
|
|
333
866
|
name: string;
|
|
334
867
|
in: string;
|
|
335
868
|
description: string;
|
|
336
869
|
schema: {
|
|
337
870
|
type: string;
|
|
338
|
-
|
|
871
|
+
items?: undefined;
|
|
872
|
+
default?: undefined;
|
|
339
873
|
};
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
874
|
+
} | {
|
|
875
|
+
name: string;
|
|
876
|
+
in: string;
|
|
877
|
+
description: string;
|
|
878
|
+
schema: {
|
|
879
|
+
type: string;
|
|
880
|
+
items: {
|
|
881
|
+
type: string;
|
|
882
|
+
};
|
|
883
|
+
default?: undefined;
|
|
344
884
|
};
|
|
345
|
-
|
|
346
|
-
|
|
885
|
+
} | {
|
|
886
|
+
name: string;
|
|
887
|
+
in: string;
|
|
888
|
+
schema: {
|
|
889
|
+
type: string;
|
|
890
|
+
default: number;
|
|
891
|
+
items?: undefined;
|
|
347
892
|
};
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
};
|
|
351
|
-
'/executions:list': {
|
|
352
|
-
get: {
|
|
353
|
-
tags: string[];
|
|
354
|
-
description: string;
|
|
355
|
-
parameters: any[];
|
|
893
|
+
description?: undefined;
|
|
894
|
+
})[];
|
|
356
895
|
responses: {
|
|
357
896
|
200: {
|
|
358
897
|
description: string;
|
|
@@ -378,14 +917,55 @@ declare const _default: {
|
|
|
378
917
|
'/executions:get': {
|
|
379
918
|
get: {
|
|
380
919
|
tags: string[];
|
|
920
|
+
summary: string;
|
|
381
921
|
description: string;
|
|
382
|
-
parameters: {
|
|
922
|
+
parameters: ({
|
|
923
|
+
name: string;
|
|
924
|
+
in: string;
|
|
925
|
+
required: boolean;
|
|
926
|
+
description: string;
|
|
927
|
+
schema: {
|
|
928
|
+
type: string;
|
|
929
|
+
items?: undefined;
|
|
930
|
+
};
|
|
931
|
+
} | {
|
|
383
932
|
name: string;
|
|
384
933
|
in: string;
|
|
385
934
|
description: string;
|
|
386
935
|
schema: {
|
|
387
936
|
type: string;
|
|
937
|
+
items: {
|
|
938
|
+
type: string;
|
|
939
|
+
};
|
|
940
|
+
};
|
|
941
|
+
required?: undefined;
|
|
942
|
+
})[];
|
|
943
|
+
responses: {
|
|
944
|
+
200: {
|
|
388
945
|
description: string;
|
|
946
|
+
content: {
|
|
947
|
+
'application/json': {
|
|
948
|
+
schema: {
|
|
949
|
+
$ref: string;
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
'/executions:cancel': {
|
|
958
|
+
post: {
|
|
959
|
+
tags: string[];
|
|
960
|
+
summary: string;
|
|
961
|
+
description: string;
|
|
962
|
+
parameters: {
|
|
963
|
+
name: string;
|
|
964
|
+
in: string;
|
|
965
|
+
required: boolean;
|
|
966
|
+
description: string;
|
|
967
|
+
schema: {
|
|
968
|
+
type: string;
|
|
389
969
|
};
|
|
390
970
|
}[];
|
|
391
971
|
responses: {
|
|
@@ -399,14 +979,67 @@ declare const _default: {
|
|
|
399
979
|
};
|
|
400
980
|
};
|
|
401
981
|
};
|
|
982
|
+
400: {
|
|
983
|
+
description: string;
|
|
984
|
+
};
|
|
985
|
+
404: {
|
|
986
|
+
description: string;
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
'/executions:destroy': {
|
|
992
|
+
post: {
|
|
993
|
+
tags: string[];
|
|
994
|
+
summary: string;
|
|
995
|
+
description: string;
|
|
996
|
+
parameters: {
|
|
997
|
+
name: string;
|
|
998
|
+
in: string;
|
|
999
|
+
description: string;
|
|
1000
|
+
schema: {
|
|
1001
|
+
type: string;
|
|
1002
|
+
};
|
|
1003
|
+
}[];
|
|
1004
|
+
responses: {
|
|
1005
|
+
200: {
|
|
1006
|
+
description: string;
|
|
1007
|
+
};
|
|
402
1008
|
};
|
|
403
1009
|
};
|
|
404
1010
|
};
|
|
405
|
-
'/
|
|
1011
|
+
'/jobs:list': {
|
|
406
1012
|
get: {
|
|
407
1013
|
tags: string[];
|
|
1014
|
+
summary: string;
|
|
408
1015
|
description: string;
|
|
409
|
-
parameters:
|
|
1016
|
+
parameters: ({
|
|
1017
|
+
name: string;
|
|
1018
|
+
in: string;
|
|
1019
|
+
description: string;
|
|
1020
|
+
schema: {
|
|
1021
|
+
type: string;
|
|
1022
|
+
items?: undefined;
|
|
1023
|
+
};
|
|
1024
|
+
} | {
|
|
1025
|
+
name: string;
|
|
1026
|
+
in: string;
|
|
1027
|
+
description: string;
|
|
1028
|
+
schema: {
|
|
1029
|
+
type: string;
|
|
1030
|
+
items: {
|
|
1031
|
+
type: string;
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
1034
|
+
} | {
|
|
1035
|
+
name: string;
|
|
1036
|
+
in: string;
|
|
1037
|
+
schema: {
|
|
1038
|
+
type: string;
|
|
1039
|
+
items?: undefined;
|
|
1040
|
+
};
|
|
1041
|
+
description?: undefined;
|
|
1042
|
+
})[];
|
|
410
1043
|
responses: {
|
|
411
1044
|
200: {
|
|
412
1045
|
description: string;
|
|
@@ -414,7 +1047,6 @@ declare const _default: {
|
|
|
414
1047
|
'application/json': {
|
|
415
1048
|
schema: {
|
|
416
1049
|
type: string;
|
|
417
|
-
description: string;
|
|
418
1050
|
items: {
|
|
419
1051
|
$ref: string;
|
|
420
1052
|
};
|
|
@@ -425,30 +1057,39 @@ declare const _default: {
|
|
|
425
1057
|
};
|
|
426
1058
|
};
|
|
427
1059
|
};
|
|
428
|
-
'/
|
|
1060
|
+
'/jobs:get': {
|
|
429
1061
|
get: {
|
|
430
1062
|
tags: string[];
|
|
1063
|
+
summary: string;
|
|
431
1064
|
description: string;
|
|
432
|
-
parameters:
|
|
1065
|
+
parameters: ({
|
|
1066
|
+
name: string;
|
|
1067
|
+
in: string;
|
|
1068
|
+
required: boolean;
|
|
1069
|
+
description: string;
|
|
1070
|
+
schema: {
|
|
1071
|
+
type: string;
|
|
1072
|
+
items?: undefined;
|
|
1073
|
+
};
|
|
1074
|
+
} | {
|
|
1075
|
+
name: string;
|
|
1076
|
+
in: string;
|
|
1077
|
+
description: string;
|
|
1078
|
+
schema: {
|
|
1079
|
+
type: string;
|
|
1080
|
+
items: {
|
|
1081
|
+
type: string;
|
|
1082
|
+
};
|
|
1083
|
+
};
|
|
1084
|
+
required?: undefined;
|
|
1085
|
+
})[];
|
|
433
1086
|
responses: {
|
|
434
1087
|
200: {
|
|
435
1088
|
description: string;
|
|
436
1089
|
content: {
|
|
437
1090
|
'application/json': {
|
|
438
1091
|
schema: {
|
|
439
|
-
|
|
440
|
-
$ref: string;
|
|
441
|
-
type?: undefined;
|
|
442
|
-
properties?: undefined;
|
|
443
|
-
} | {
|
|
444
|
-
type: string;
|
|
445
|
-
properties: {
|
|
446
|
-
execution: {
|
|
447
|
-
$ref: string;
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
$ref?: undefined;
|
|
451
|
-
})[];
|
|
1092
|
+
$ref: string;
|
|
452
1093
|
};
|
|
453
1094
|
};
|
|
454
1095
|
};
|
|
@@ -456,17 +1097,18 @@ declare const _default: {
|
|
|
456
1097
|
};
|
|
457
1098
|
};
|
|
458
1099
|
};
|
|
459
|
-
'/
|
|
1100
|
+
'/jobs:resume': {
|
|
460
1101
|
post: {
|
|
461
1102
|
tags: string[];
|
|
1103
|
+
summary: string;
|
|
462
1104
|
description: string;
|
|
463
1105
|
parameters: {
|
|
464
1106
|
name: string;
|
|
465
1107
|
in: string;
|
|
1108
|
+
required: boolean;
|
|
466
1109
|
description: string;
|
|
467
1110
|
schema: {
|
|
468
1111
|
type: string;
|
|
469
|
-
description: string;
|
|
470
1112
|
};
|
|
471
1113
|
}[];
|
|
472
1114
|
requestBody: {
|
|
@@ -475,14 +1117,21 @@ declare const _default: {
|
|
|
475
1117
|
schema: {
|
|
476
1118
|
type: string;
|
|
477
1119
|
properties: {
|
|
478
|
-
|
|
1120
|
+
values: {
|
|
479
1121
|
type: string;
|
|
1122
|
+
description: string;
|
|
480
1123
|
properties: {
|
|
481
|
-
|
|
1124
|
+
status: {
|
|
482
1125
|
type: string;
|
|
1126
|
+
description: string;
|
|
483
1127
|
};
|
|
484
|
-
|
|
1128
|
+
result: {
|
|
485
1129
|
type: string;
|
|
1130
|
+
description: string;
|
|
1131
|
+
};
|
|
1132
|
+
meta: {
|
|
1133
|
+
type: string;
|
|
1134
|
+
description: string;
|
|
486
1135
|
};
|
|
487
1136
|
};
|
|
488
1137
|
};
|
|
@@ -494,9 +1143,65 @@ declare const _default: {
|
|
|
494
1143
|
responses: {
|
|
495
1144
|
202: {
|
|
496
1145
|
description: string;
|
|
1146
|
+
content: {
|
|
1147
|
+
'application/json': {
|
|
1148
|
+
schema: {
|
|
1149
|
+
$ref: string;
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
};
|
|
1154
|
+
404: {
|
|
1155
|
+
description: string;
|
|
497
1156
|
};
|
|
498
|
-
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
1160
|
+
'/userWorkflowTasks:listMine': {
|
|
1161
|
+
get: {
|
|
1162
|
+
tags: string[];
|
|
1163
|
+
summary: string;
|
|
1164
|
+
description: string;
|
|
1165
|
+
parameters: ({
|
|
1166
|
+
name: string;
|
|
1167
|
+
in: string;
|
|
1168
|
+
description: string;
|
|
1169
|
+
schema: {
|
|
1170
|
+
type: string;
|
|
1171
|
+
items?: undefined;
|
|
1172
|
+
};
|
|
1173
|
+
} | {
|
|
1174
|
+
name: string;
|
|
1175
|
+
in: string;
|
|
1176
|
+
description: string;
|
|
1177
|
+
schema: {
|
|
1178
|
+
type: string;
|
|
1179
|
+
items: {
|
|
1180
|
+
type: string;
|
|
1181
|
+
};
|
|
1182
|
+
};
|
|
1183
|
+
} | {
|
|
1184
|
+
name: string;
|
|
1185
|
+
in: string;
|
|
1186
|
+
schema: {
|
|
1187
|
+
type: string;
|
|
1188
|
+
items?: undefined;
|
|
1189
|
+
};
|
|
1190
|
+
description?: undefined;
|
|
1191
|
+
})[];
|
|
1192
|
+
responses: {
|
|
1193
|
+
200: {
|
|
499
1194
|
description: string;
|
|
1195
|
+
content: {
|
|
1196
|
+
'application/json': {
|
|
1197
|
+
schema: {
|
|
1198
|
+
type: string;
|
|
1199
|
+
items: {
|
|
1200
|
+
$ref: string;
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
500
1205
|
};
|
|
501
1206
|
};
|
|
502
1207
|
};
|
|
@@ -525,6 +1230,10 @@ declare const _default: {
|
|
|
525
1230
|
type: string;
|
|
526
1231
|
description: string;
|
|
527
1232
|
};
|
|
1233
|
+
triggerTitle: {
|
|
1234
|
+
type: string;
|
|
1235
|
+
description: string;
|
|
1236
|
+
};
|
|
528
1237
|
current: {
|
|
529
1238
|
type: string;
|
|
530
1239
|
description: string;
|
|
@@ -537,10 +1246,39 @@ declare const _default: {
|
|
|
537
1246
|
type: string;
|
|
538
1247
|
description: string;
|
|
539
1248
|
};
|
|
1249
|
+
sync: {
|
|
1250
|
+
type: string;
|
|
1251
|
+
description: string;
|
|
1252
|
+
};
|
|
540
1253
|
config: {
|
|
541
1254
|
type: string;
|
|
542
1255
|
description: string;
|
|
543
1256
|
};
|
|
1257
|
+
options: {
|
|
1258
|
+
type: string;
|
|
1259
|
+
description: string;
|
|
1260
|
+
properties: {
|
|
1261
|
+
deleteExecutionOnStatus: {
|
|
1262
|
+
type: string;
|
|
1263
|
+
description: string;
|
|
1264
|
+
items: {
|
|
1265
|
+
type: string;
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1268
|
+
stackLimit: {
|
|
1269
|
+
type: string;
|
|
1270
|
+
description: string;
|
|
1271
|
+
default: number;
|
|
1272
|
+
};
|
|
1273
|
+
};
|
|
1274
|
+
};
|
|
1275
|
+
categories: {
|
|
1276
|
+
type: string;
|
|
1277
|
+
description: string;
|
|
1278
|
+
items: {
|
|
1279
|
+
type: string;
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
544
1282
|
nodes: {
|
|
545
1283
|
type: string;
|
|
546
1284
|
description: string;
|
|
@@ -611,6 +1349,7 @@ declare const _default: {
|
|
|
611
1349
|
};
|
|
612
1350
|
upstreamId: {
|
|
613
1351
|
type: string;
|
|
1352
|
+
nullable: boolean;
|
|
614
1353
|
description: string;
|
|
615
1354
|
};
|
|
616
1355
|
upstream: {
|
|
@@ -620,8 +1359,8 @@ declare const _default: {
|
|
|
620
1359
|
};
|
|
621
1360
|
downstreamId: {
|
|
622
1361
|
type: string;
|
|
1362
|
+
nullable: boolean;
|
|
623
1363
|
description: string;
|
|
624
|
-
$ref: string;
|
|
625
1364
|
};
|
|
626
1365
|
downstream: {
|
|
627
1366
|
type: string;
|
|
@@ -638,6 +1377,7 @@ declare const _default: {
|
|
|
638
1377
|
};
|
|
639
1378
|
branchIndex: {
|
|
640
1379
|
type: string;
|
|
1380
|
+
nullable: boolean;
|
|
641
1381
|
description: string;
|
|
642
1382
|
};
|
|
643
1383
|
branches: {
|
|
@@ -673,6 +1413,10 @@ declare const _default: {
|
|
|
673
1413
|
type: string;
|
|
674
1414
|
description: string;
|
|
675
1415
|
};
|
|
1416
|
+
output: {
|
|
1417
|
+
type: string;
|
|
1418
|
+
description: string;
|
|
1419
|
+
};
|
|
676
1420
|
jobs: {
|
|
677
1421
|
type: string;
|
|
678
1422
|
description: string;
|
|
@@ -698,6 +1442,10 @@ declare const _default: {
|
|
|
698
1442
|
type: string;
|
|
699
1443
|
description: string;
|
|
700
1444
|
};
|
|
1445
|
+
nodeKey: {
|
|
1446
|
+
type: string;
|
|
1447
|
+
description: string;
|
|
1448
|
+
};
|
|
701
1449
|
status: {
|
|
702
1450
|
type: string;
|
|
703
1451
|
description: string;
|
|
@@ -706,6 +1454,10 @@ declare const _default: {
|
|
|
706
1454
|
type: string;
|
|
707
1455
|
description: string;
|
|
708
1456
|
};
|
|
1457
|
+
meta: {
|
|
1458
|
+
type: string;
|
|
1459
|
+
description: string;
|
|
1460
|
+
};
|
|
709
1461
|
};
|
|
710
1462
|
};
|
|
711
1463
|
user_job: {
|