@nocobase/plugin-workflow 0.12.0-alpha.5 → 0.13.0-alpha.2

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.
@@ -0,0 +1,704 @@
1
+ declare const _default: {
2
+ openapi: string;
3
+ info: {
4
+ title: string;
5
+ };
6
+ tags: any[];
7
+ paths: {
8
+ '/workflows:list': {
9
+ get: {
10
+ tags: string[];
11
+ description: string;
12
+ parameters: any[];
13
+ responses: {
14
+ 200: {
15
+ description: string;
16
+ content: {
17
+ 'application/json': {
18
+ schema: {
19
+ allOf: {
20
+ $ref: string;
21
+ }[];
22
+ };
23
+ };
24
+ };
25
+ };
26
+ };
27
+ };
28
+ };
29
+ '/workflows:get': {
30
+ get: {
31
+ tags: string[];
32
+ description: string;
33
+ parameters: any[];
34
+ responses: {
35
+ 200: {
36
+ description: string;
37
+ content: {
38
+ 'application/json': {
39
+ schema: {
40
+ allOf: ({
41
+ $ref: string;
42
+ type?: undefined;
43
+ properties?: undefined;
44
+ } | {
45
+ type: string;
46
+ properties: {
47
+ nodes: {
48
+ type: string;
49
+ items: {
50
+ $ref: string;
51
+ };
52
+ };
53
+ };
54
+ $ref?: undefined;
55
+ })[];
56
+ };
57
+ };
58
+ };
59
+ };
60
+ };
61
+ };
62
+ };
63
+ '/workflows:create': {
64
+ post: {
65
+ tags: string[];
66
+ description: string;
67
+ parameters: any[];
68
+ requestBody: {
69
+ content: {
70
+ 'application/json': {
71
+ schema: {
72
+ type: string;
73
+ properties: {
74
+ title: {
75
+ $ref: string;
76
+ };
77
+ type: {
78
+ $ref: string;
79
+ };
80
+ description: {
81
+ $ref: string;
82
+ };
83
+ };
84
+ };
85
+ };
86
+ };
87
+ };
88
+ responses: {
89
+ 200: {
90
+ description: string;
91
+ content: {
92
+ 'application/json': {
93
+ schema: {
94
+ allOf: {
95
+ $ref: string;
96
+ }[];
97
+ };
98
+ };
99
+ };
100
+ };
101
+ };
102
+ };
103
+ };
104
+ '/workflows:update': {
105
+ post: {
106
+ tags: string[];
107
+ description: string;
108
+ parameters: any[];
109
+ requestBody: {
110
+ content: {
111
+ 'application/json': {
112
+ schema: {
113
+ type: string;
114
+ properties: {
115
+ title: {
116
+ $ref: string;
117
+ };
118
+ enabled: {
119
+ $ref: string;
120
+ };
121
+ description: {
122
+ $ref: string;
123
+ };
124
+ config: {
125
+ $ref: string;
126
+ };
127
+ };
128
+ };
129
+ };
130
+ };
131
+ };
132
+ responses: {
133
+ 200: {
134
+ description: string;
135
+ };
136
+ };
137
+ };
138
+ };
139
+ '/workflows:destroy': {
140
+ post: {
141
+ tags: string[];
142
+ description: string;
143
+ parameters: ({
144
+ name: string;
145
+ in: string;
146
+ description: string;
147
+ schema: {
148
+ type: string;
149
+ description: string;
150
+ properties?: undefined;
151
+ };
152
+ } | {
153
+ name: string;
154
+ in: string;
155
+ description: string;
156
+ schema: {
157
+ type: string;
158
+ properties: {
159
+ key: {
160
+ type: string;
161
+ description: string;
162
+ };
163
+ };
164
+ description?: undefined;
165
+ };
166
+ })[];
167
+ responses: {
168
+ 200: {
169
+ description: string;
170
+ };
171
+ };
172
+ };
173
+ };
174
+ '/workflows:revision': {
175
+ post: {
176
+ tags: string[];
177
+ description: string;
178
+ parameters: ({
179
+ name: string;
180
+ in: string;
181
+ description: string;
182
+ schema: {
183
+ type: string;
184
+ description: string;
185
+ properties?: undefined;
186
+ };
187
+ } | {
188
+ name: string;
189
+ in: string;
190
+ description: string;
191
+ schema: {
192
+ type: string;
193
+ properties: {
194
+ key: {
195
+ type: string;
196
+ description: string;
197
+ };
198
+ };
199
+ description?: undefined;
200
+ };
201
+ })[];
202
+ responses: {
203
+ 200: {
204
+ description: string;
205
+ };
206
+ };
207
+ };
208
+ };
209
+ '/workflows:trigger': {
210
+ post: {
211
+ tags: string[];
212
+ description: string;
213
+ parameters: {
214
+ name: string;
215
+ in: string;
216
+ description: string;
217
+ schema: {
218
+ type: string;
219
+ };
220
+ }[];
221
+ responses: {
222
+ 202: {
223
+ description: string;
224
+ };
225
+ 400: {
226
+ description: string;
227
+ };
228
+ };
229
+ };
230
+ };
231
+ '/workflows/{workflowId}/nodes:create': {
232
+ post: {
233
+ tags: string[];
234
+ description: string;
235
+ parameters: any[];
236
+ requestBody: {
237
+ content: {
238
+ 'application/json': {
239
+ schema: {
240
+ type: string;
241
+ properties: {
242
+ title: {
243
+ $ref: string;
244
+ };
245
+ type: {
246
+ $ref: string;
247
+ };
248
+ upstreamId: {
249
+ $ref: string;
250
+ };
251
+ branchIndex: {
252
+ $ref: string;
253
+ };
254
+ };
255
+ };
256
+ };
257
+ };
258
+ };
259
+ responses: {
260
+ 200: {
261
+ description: string;
262
+ content: {
263
+ 'application/json': {
264
+ schema: {
265
+ allOf: {
266
+ $ref: string;
267
+ }[];
268
+ };
269
+ };
270
+ };
271
+ };
272
+ };
273
+ };
274
+ };
275
+ '/flow_nodes:update': {
276
+ post: {
277
+ tags: string[];
278
+ description: string;
279
+ parameters: {
280
+ name: string;
281
+ in: string;
282
+ description: string;
283
+ schema: {
284
+ type: string;
285
+ description: string;
286
+ };
287
+ }[];
288
+ requestBody: {
289
+ content: {
290
+ 'application/json': {
291
+ schema: {
292
+ type: string;
293
+ properties: {
294
+ title: {
295
+ $ref: string;
296
+ };
297
+ config: {
298
+ $ref: string;
299
+ };
300
+ };
301
+ };
302
+ };
303
+ };
304
+ };
305
+ responses: {
306
+ 200: {
307
+ description: string;
308
+ };
309
+ 400: {
310
+ description: string;
311
+ };
312
+ };
313
+ };
314
+ };
315
+ '/flow_nodes:destroy': {
316
+ post: {
317
+ tags: string[];
318
+ description: string;
319
+ parameters: {
320
+ name: string;
321
+ in: string;
322
+ description: string;
323
+ schema: {
324
+ type: string;
325
+ description: string;
326
+ };
327
+ }[];
328
+ responses: {
329
+ 200: {
330
+ description: string;
331
+ };
332
+ 400: {
333
+ description: string;
334
+ };
335
+ };
336
+ };
337
+ };
338
+ '/executions:list': {
339
+ get: {
340
+ tags: string[];
341
+ description: string;
342
+ parameters: any[];
343
+ responses: {
344
+ 200: {
345
+ description: string;
346
+ content: {
347
+ 'application/json': {
348
+ schema: {
349
+ type: string;
350
+ description: string;
351
+ items: {
352
+ $ref: string;
353
+ type: string;
354
+ not: {
355
+ $ref: string;
356
+ };
357
+ };
358
+ };
359
+ };
360
+ };
361
+ };
362
+ };
363
+ };
364
+ };
365
+ '/executions:get': {
366
+ get: {
367
+ tags: string[];
368
+ description: string;
369
+ parameters: {
370
+ name: string;
371
+ in: string;
372
+ description: string;
373
+ schema: {
374
+ type: string;
375
+ description: string;
376
+ };
377
+ }[];
378
+ responses: {
379
+ 200: {
380
+ description: string;
381
+ content: {
382
+ 'application/json': {
383
+ schema: {
384
+ $ref: string;
385
+ };
386
+ };
387
+ };
388
+ };
389
+ };
390
+ };
391
+ };
392
+ '/users_jobs:list': {
393
+ get: {
394
+ tags: string[];
395
+ description: string;
396
+ parameters: any[];
397
+ responses: {
398
+ 200: {
399
+ description: string;
400
+ content: {
401
+ 'application/json': {
402
+ schema: {
403
+ type: string;
404
+ description: string;
405
+ items: {
406
+ $ref: string;
407
+ };
408
+ };
409
+ };
410
+ };
411
+ };
412
+ };
413
+ };
414
+ };
415
+ '/users_jobs:get': {
416
+ get: {
417
+ tags: string[];
418
+ description: string;
419
+ parameters: any[];
420
+ responses: {
421
+ 200: {
422
+ description: string;
423
+ content: {
424
+ 'application/json': {
425
+ schema: {
426
+ allOf: ({
427
+ $ref: string;
428
+ type?: undefined;
429
+ properties?: undefined;
430
+ } | {
431
+ type: string;
432
+ properties: {
433
+ execution: {
434
+ $ref: string;
435
+ };
436
+ };
437
+ $ref?: undefined;
438
+ })[];
439
+ };
440
+ };
441
+ };
442
+ };
443
+ };
444
+ };
445
+ };
446
+ '/users_jobs:submit': {
447
+ post: {
448
+ tags: string[];
449
+ description: string;
450
+ parameters: {
451
+ name: string;
452
+ in: string;
453
+ description: string;
454
+ schema: {
455
+ type: string;
456
+ description: string;
457
+ };
458
+ }[];
459
+ requestBody: {
460
+ content: {
461
+ 'application/json': {
462
+ schema: {
463
+ type: string;
464
+ properties: {
465
+ result: {
466
+ type: string;
467
+ properties: {
468
+ $formKey: {
469
+ type: string;
470
+ };
471
+ _: {
472
+ type: string;
473
+ };
474
+ };
475
+ };
476
+ };
477
+ };
478
+ };
479
+ };
480
+ };
481
+ responses: {
482
+ 202: {
483
+ description: string;
484
+ };
485
+ 400: {
486
+ description: string;
487
+ };
488
+ };
489
+ };
490
+ };
491
+ };
492
+ components: {
493
+ schemas: {
494
+ workflow: {
495
+ type: string;
496
+ description: string;
497
+ properties: {
498
+ id: {
499
+ type: string;
500
+ description: string;
501
+ };
502
+ key: {
503
+ type: string;
504
+ description: string;
505
+ };
506
+ title: {
507
+ type: string;
508
+ description: string;
509
+ };
510
+ description: {
511
+ type: string;
512
+ description: string;
513
+ };
514
+ current: {
515
+ type: string;
516
+ description: string;
517
+ };
518
+ enabled: {
519
+ type: string;
520
+ description: string;
521
+ };
522
+ type: {
523
+ type: string;
524
+ description: string;
525
+ };
526
+ config: {
527
+ type: string;
528
+ description: string;
529
+ };
530
+ nodes: {
531
+ type: string;
532
+ description: string;
533
+ };
534
+ executions: {
535
+ type: string;
536
+ description: string;
537
+ };
538
+ revisions: {
539
+ type: string;
540
+ description: string;
541
+ };
542
+ executed: {
543
+ type: string;
544
+ description: string;
545
+ };
546
+ allExecuted: {
547
+ type: string;
548
+ description: string;
549
+ };
550
+ };
551
+ };
552
+ node: {
553
+ type: string;
554
+ description: string;
555
+ properties: {
556
+ id: {
557
+ type: string;
558
+ description: string;
559
+ };
560
+ title: {
561
+ type: string;
562
+ description: string;
563
+ };
564
+ workflowId: {
565
+ type: string;
566
+ description: string;
567
+ };
568
+ upstreamId: {
569
+ type: string;
570
+ description: string;
571
+ };
572
+ upstream: {
573
+ type: string;
574
+ description: string;
575
+ $ref: string;
576
+ };
577
+ downstreamId: {
578
+ type: string;
579
+ description: string;
580
+ $ref: string;
581
+ };
582
+ downstream: {
583
+ type: string;
584
+ description: string;
585
+ $ref: string;
586
+ };
587
+ type: {
588
+ type: string;
589
+ description: string;
590
+ };
591
+ config: {
592
+ type: string;
593
+ description: string;
594
+ };
595
+ branchIndex: {
596
+ type: string;
597
+ description: string;
598
+ };
599
+ branches: {
600
+ type: string;
601
+ description: string;
602
+ items: {
603
+ $ref: string;
604
+ };
605
+ };
606
+ };
607
+ };
608
+ execution: {
609
+ type: string;
610
+ description: string;
611
+ properties: {
612
+ id: {
613
+ type: string;
614
+ description: string;
615
+ };
616
+ key: {
617
+ type: string;
618
+ description: string;
619
+ };
620
+ workflowId: {
621
+ type: string;
622
+ description: string;
623
+ };
624
+ context: {
625
+ type: string;
626
+ description: string;
627
+ };
628
+ status: {
629
+ type: string;
630
+ description: string;
631
+ };
632
+ jobs: {
633
+ type: string;
634
+ description: string;
635
+ items: {
636
+ $ref: string;
637
+ };
638
+ };
639
+ };
640
+ };
641
+ job: {
642
+ type: string;
643
+ description: string;
644
+ properties: {
645
+ id: {
646
+ type: string;
647
+ description: string;
648
+ };
649
+ executionId: {
650
+ type: string;
651
+ description: string;
652
+ };
653
+ nodeId: {
654
+ type: string;
655
+ description: string;
656
+ };
657
+ status: {
658
+ type: string;
659
+ description: string;
660
+ };
661
+ result: {
662
+ type: string;
663
+ description: string;
664
+ };
665
+ };
666
+ };
667
+ user_job: {
668
+ type: string;
669
+ description: string;
670
+ properties: {
671
+ id: {
672
+ type: string;
673
+ description: string;
674
+ };
675
+ executionId: {
676
+ type: string;
677
+ description: string;
678
+ };
679
+ nodeId: {
680
+ type: string;
681
+ description: string;
682
+ };
683
+ workflowId: {
684
+ type: string;
685
+ description: string;
686
+ };
687
+ userId: {
688
+ type: string;
689
+ description: string;
690
+ };
691
+ status: {
692
+ type: string;
693
+ description: string;
694
+ };
695
+ result: {
696
+ type: string;
697
+ description: string;
698
+ };
699
+ };
700
+ };
701
+ };
702
+ };
703
+ };
704
+ export default _default;