@nocobase/plugin-flow-engine 2.1.0-alpha.18 → 2.1.0-alpha.19

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.
Files changed (56) hide show
  1. package/dist/externalVersion.js +11 -11
  2. package/dist/node_modules/ses/package.json +1 -1
  3. package/dist/node_modules/zod/package.json +1 -1
  4. package/dist/server/flow-surfaces/action-scope.js +3 -1
  5. package/dist/server/flow-surfaces/apply/compiler.js +84 -5
  6. package/dist/server/flow-surfaces/approval/blueprint-service.d.ts +84 -0
  7. package/dist/server/flow-surfaces/approval/blueprint-service.js +589 -0
  8. package/dist/server/flow-surfaces/approval/blueprint.d.ts +21 -0
  9. package/dist/server/flow-surfaces/approval/blueprint.js +190 -0
  10. package/dist/server/flow-surfaces/approval/builder.d.ts +225 -0
  11. package/dist/server/flow-surfaces/approval/builder.js +384 -0
  12. package/dist/server/flow-surfaces/approval/catalog-specs.d.ts +33 -0
  13. package/dist/server/flow-surfaces/approval/catalog-specs.js +156 -0
  14. package/dist/server/flow-surfaces/approval/index.d.ts +14 -0
  15. package/dist/server/flow-surfaces/approval/index.js +40 -0
  16. package/dist/server/flow-surfaces/approval/runtime-config.d.ts +44 -0
  17. package/dist/server/flow-surfaces/approval/runtime-config.js +299 -0
  18. package/dist/server/flow-surfaces/approval/semantic-use.d.ts +23 -0
  19. package/dist/server/flow-surfaces/approval/semantic-use.js +155 -0
  20. package/dist/server/flow-surfaces/blueprint/compile-blocks.js +36 -2
  21. package/dist/server/flow-surfaces/blueprint/public-types.d.ts +7 -0
  22. package/dist/server/flow-surfaces/builder.d.ts +2 -0
  23. package/dist/server/flow-surfaces/builder.js +83 -10
  24. package/dist/server/flow-surfaces/catalog.d.ts +10 -0
  25. package/dist/server/flow-surfaces/catalog.js +368 -9
  26. package/dist/server/flow-surfaces/chart-config.d.ts +1 -1
  27. package/dist/server/flow-surfaces/compose-compiler.d.ts +1 -0
  28. package/dist/server/flow-surfaces/compose-compiler.js +2 -1
  29. package/dist/server/flow-surfaces/configure-options.js +61 -3
  30. package/dist/server/flow-surfaces/constants.d.ts +342 -5
  31. package/dist/server/flow-surfaces/constants.js +59 -125
  32. package/dist/server/flow-surfaces/default-action-popup.d.ts +1 -0
  33. package/dist/server/flow-surfaces/default-action-popup.js +6 -2
  34. package/dist/server/flow-surfaces/field-semantics.js +2 -1
  35. package/dist/server/flow-surfaces/index.js +21 -273
  36. package/dist/server/flow-surfaces/locator.js +8 -6
  37. package/dist/server/flow-surfaces/node-use-sets.js +15 -3
  38. package/dist/server/flow-surfaces/placement.js +11 -7
  39. package/dist/server/flow-surfaces/planning/action-specs.d.ts +1 -1
  40. package/dist/server/flow-surfaces/planning/compiler.d.ts +1 -1
  41. package/dist/server/flow-surfaces/planning/key-kind.js +7 -5
  42. package/dist/server/flow-surfaces/reaction/registry.d.ts +13 -0
  43. package/dist/server/flow-surfaces/reaction/registry.js +13 -0
  44. package/dist/server/flow-surfaces/service-utils.d.ts +10 -14
  45. package/dist/server/flow-surfaces/service-utils.js +4 -2
  46. package/dist/server/flow-surfaces/service.d.ts +63 -1
  47. package/dist/server/flow-surfaces/service.js +1058 -109
  48. package/dist/server/flow-surfaces/surface-context.d.ts +1 -0
  49. package/dist/server/flow-surfaces/surface-context.js +99 -19
  50. package/dist/server/flow-surfaces/types.d.ts +4 -1
  51. package/dist/swagger/flow-surfaces.d.ts +406 -2
  52. package/dist/swagger/flow-surfaces.examples.d.ts +164 -0
  53. package/dist/swagger/flow-surfaces.examples.js +184 -0
  54. package/dist/swagger/flow-surfaces.js +390 -76
  55. package/dist/swagger/index.d.ts +406 -2
  56. package/package.json +2 -2
@@ -206,9 +206,163 @@ declare const _default: {
206
206
  $ref: string;
207
207
  }[];
208
208
  };
209
+ FlowSurfacePopupSaveAsTemplate: {
210
+ type: string;
211
+ required: string[];
212
+ properties: {
213
+ name: {
214
+ type: string;
215
+ description: string;
216
+ };
217
+ description: {
218
+ type: string;
219
+ description: string;
220
+ };
221
+ };
222
+ additionalProperties: boolean;
223
+ };
224
+ FlowSurfaceRequestPopupTemplateRef: {
225
+ type: string;
226
+ oneOf: {
227
+ required: string[];
228
+ }[];
229
+ properties: {
230
+ uid: {
231
+ type: string;
232
+ description: string;
233
+ };
234
+ local: {
235
+ type: string;
236
+ description: string;
237
+ };
238
+ mode: {
239
+ type: string;
240
+ enum: string[];
241
+ default: string;
242
+ };
243
+ };
244
+ additionalProperties: boolean;
245
+ };
246
+ FlowSurfaceRequestPopupSaveAsTemplate: {
247
+ type: string;
248
+ required: string[];
249
+ properties: {
250
+ name: {
251
+ type: string;
252
+ description: string;
253
+ };
254
+ description: {
255
+ type: string;
256
+ description: string;
257
+ };
258
+ local: {
259
+ type: string;
260
+ description: string;
261
+ };
262
+ };
263
+ additionalProperties: boolean;
264
+ };
265
+ FlowSurfaceComposeRequestActionPopup: {
266
+ type: string;
267
+ anyOf: ({
268
+ required: string[];
269
+ anyOf?: undefined;
270
+ } | {
271
+ anyOf: {
272
+ required: string[];
273
+ }[];
274
+ required?: undefined;
275
+ })[];
276
+ properties: {
277
+ title: {
278
+ type: string;
279
+ };
280
+ template: {
281
+ $ref: string;
282
+ };
283
+ tryTemplate: {
284
+ type: string;
285
+ description: string;
286
+ };
287
+ defaultType: {
288
+ type: string;
289
+ enum: string[];
290
+ description: string;
291
+ };
292
+ saveAsTemplate: {
293
+ allOf: {
294
+ $ref: string;
295
+ }[];
296
+ description: string;
297
+ };
298
+ mode: {
299
+ type: string;
300
+ enum: string[];
301
+ };
302
+ blocks: {
303
+ type: string;
304
+ items: {
305
+ $ref: string;
306
+ };
307
+ };
308
+ layout: {
309
+ $ref: string;
310
+ };
311
+ };
312
+ additionalProperties: boolean;
313
+ };
314
+ FlowSurfaceComposeRequestFieldPopup: {
315
+ type: string;
316
+ anyOf: ({
317
+ required: string[];
318
+ anyOf?: undefined;
319
+ } | {
320
+ anyOf: {
321
+ required: string[];
322
+ }[];
323
+ required?: undefined;
324
+ })[];
325
+ properties: {
326
+ title: {
327
+ type: string;
328
+ };
329
+ template: {
330
+ $ref: string;
331
+ };
332
+ tryTemplate: {
333
+ type: string;
334
+ description: string;
335
+ };
336
+ defaultType: {
337
+ type: string;
338
+ enum: string[];
339
+ description: string;
340
+ };
341
+ saveAsTemplate: {
342
+ allOf: {
343
+ $ref: string;
344
+ }[];
345
+ description: string;
346
+ };
347
+ mode: {
348
+ type: string;
349
+ enum: string[];
350
+ };
351
+ blocks: {
352
+ type: string;
353
+ items: {
354
+ $ref: string;
355
+ };
356
+ };
357
+ layout: {
358
+ $ref: string;
359
+ };
360
+ };
361
+ additionalProperties: boolean;
362
+ };
209
363
  FlowSurfaceComposeActionPopup: {
210
364
  type: string;
211
- oneOf: ({
365
+ anyOf: ({
212
366
  required: string[];
213
367
  anyOf?: undefined;
214
368
  } | {
@@ -218,9 +372,22 @@ declare const _default: {
218
372
  required?: undefined;
219
373
  })[];
220
374
  properties: {
375
+ title: {
376
+ type: string;
377
+ };
221
378
  template: {
222
379
  $ref: string;
223
380
  };
381
+ tryTemplate: {
382
+ type: string;
383
+ description: string;
384
+ };
385
+ saveAsTemplate: {
386
+ allOf: {
387
+ $ref: string;
388
+ }[];
389
+ description: string;
390
+ };
224
391
  mode: {
225
392
  type: string;
226
393
  enum: string[];
@@ -239,7 +406,7 @@ declare const _default: {
239
406
  };
240
407
  FlowSurfaceComposeFieldPopup: {
241
408
  type: string;
242
- oneOf: ({
409
+ anyOf: ({
243
410
  required: string[];
244
411
  anyOf?: undefined;
245
412
  } | {
@@ -249,9 +416,27 @@ declare const _default: {
249
416
  required?: undefined;
250
417
  })[];
251
418
  properties: {
419
+ title: {
420
+ type: string;
421
+ };
252
422
  template: {
253
423
  $ref: string;
254
424
  };
425
+ tryTemplate: {
426
+ type: string;
427
+ description: string;
428
+ };
429
+ defaultType: {
430
+ type: string;
431
+ enum: string[];
432
+ description: string;
433
+ };
434
+ saveAsTemplate: {
435
+ allOf: {
436
+ $ref: string;
437
+ }[];
438
+ description: string;
439
+ };
255
440
  mode: {
256
441
  type: string;
257
442
  enum: string[];
@@ -296,6 +481,36 @@ declare const _default: {
296
481
  additionalProperties: boolean;
297
482
  })[];
298
483
  };
484
+ FlowSurfaceApprovalBlueprintActionSpec: {
485
+ oneOf: ({
486
+ type: string;
487
+ enum: string[];
488
+ required?: undefined;
489
+ properties?: undefined;
490
+ additionalProperties?: undefined;
491
+ } | {
492
+ type: string;
493
+ required: string[];
494
+ properties: {
495
+ key: {
496
+ type: string;
497
+ };
498
+ type: {
499
+ type: string;
500
+ enum: string[];
501
+ };
502
+ settings: {
503
+ type: string;
504
+ additionalProperties: boolean;
505
+ };
506
+ popup: {
507
+ $ref: string;
508
+ };
509
+ };
510
+ additionalProperties: boolean;
511
+ enum?: undefined;
512
+ })[];
513
+ };
299
514
  FlowSurfaceComposeRecordActionSpec: {
300
515
  oneOf: ({
301
516
  type: string;
@@ -371,6 +586,39 @@ declare const _default: {
371
586
  };
372
587
  additionalProperties: boolean;
373
588
  };
589
+ FlowSurfaceApprovalBlueprintBlockSpec: {
590
+ type: string;
591
+ required: string[];
592
+ properties: {
593
+ key: {
594
+ type: string;
595
+ };
596
+ type: {
597
+ type: string;
598
+ enum: string[];
599
+ };
600
+ resource: {
601
+ $ref: string;
602
+ };
603
+ settings: {
604
+ type: string;
605
+ additionalProperties: boolean;
606
+ };
607
+ fields: {
608
+ type: string;
609
+ items: {
610
+ $ref: string;
611
+ };
612
+ };
613
+ actions: {
614
+ type: string;
615
+ items: {
616
+ $ref: string;
617
+ };
618
+ };
619
+ };
620
+ additionalProperties: boolean;
621
+ };
374
622
  FlowSurfaceComposeRequest: {
375
623
  type: string;
376
624
  required: string[];
@@ -1705,6 +1953,21 @@ declare const _default: {
1705
1953
  template: {
1706
1954
  $ref: string;
1707
1955
  };
1956
+ tryTemplate: {
1957
+ type: string;
1958
+ description: string;
1959
+ };
1960
+ defaultType: {
1961
+ type: string;
1962
+ enum: string[];
1963
+ description: string;
1964
+ };
1965
+ saveAsTemplate: {
1966
+ allOf: {
1967
+ $ref: string;
1968
+ }[];
1969
+ description: string;
1970
+ };
1708
1971
  blocks: {
1709
1972
  type: string;
1710
1973
  description: string;
@@ -2116,6 +2379,123 @@ declare const _default: {
2116
2379
  };
2117
2380
  additionalProperties: boolean;
2118
2381
  };
2382
+ FlowSurfaceApprovalBlueprintSurface: {
2383
+ type: string;
2384
+ enum: string[];
2385
+ };
2386
+ FlowSurfaceApplyApprovalBlueprintBinding: {
2387
+ type: string;
2388
+ required: string[];
2389
+ properties: {
2390
+ resourceName: {
2391
+ type: string;
2392
+ enum: string[];
2393
+ };
2394
+ filterByTk: {
2395
+ oneOf: {
2396
+ type: string;
2397
+ }[];
2398
+ };
2399
+ configPath: {
2400
+ type: string;
2401
+ };
2402
+ };
2403
+ additionalProperties: boolean;
2404
+ };
2405
+ FlowSurfaceApplyApprovalBlueprintTarget: {
2406
+ type: string;
2407
+ required: string[];
2408
+ properties: {
2409
+ uid: {
2410
+ type: string;
2411
+ };
2412
+ workflowId: {
2413
+ oneOf: {
2414
+ type: string;
2415
+ }[];
2416
+ };
2417
+ nodeId: {
2418
+ oneOf: {
2419
+ type: string;
2420
+ }[];
2421
+ };
2422
+ };
2423
+ additionalProperties: boolean;
2424
+ };
2425
+ FlowSurfaceApplyApprovalBlueprintRequest: {
2426
+ type: string;
2427
+ required: string[];
2428
+ description: string;
2429
+ properties: {
2430
+ version: {
2431
+ type: string;
2432
+ enum: string[];
2433
+ };
2434
+ mode: {
2435
+ type: string;
2436
+ enum: string[];
2437
+ default: string;
2438
+ };
2439
+ surface: {
2440
+ $ref: string;
2441
+ };
2442
+ workflowId: {
2443
+ oneOf: {
2444
+ type: string;
2445
+ }[];
2446
+ };
2447
+ nodeId: {
2448
+ oneOf: {
2449
+ type: string;
2450
+ }[];
2451
+ };
2452
+ blocks: {
2453
+ type: string;
2454
+ items: {
2455
+ $ref: string;
2456
+ };
2457
+ description: string;
2458
+ };
2459
+ fields: {
2460
+ type: string;
2461
+ items: {
2462
+ $ref: string;
2463
+ };
2464
+ description: string;
2465
+ };
2466
+ layout: {
2467
+ $ref: string;
2468
+ };
2469
+ };
2470
+ additionalProperties: boolean;
2471
+ };
2472
+ FlowSurfaceApplyApprovalBlueprintResponse: {
2473
+ type: string;
2474
+ required: string[];
2475
+ properties: {
2476
+ version: {
2477
+ type: string;
2478
+ enum: string[];
2479
+ };
2480
+ mode: {
2481
+ type: string;
2482
+ enum: string[];
2483
+ };
2484
+ surfaceType: {
2485
+ $ref: string;
2486
+ };
2487
+ target: {
2488
+ $ref: string;
2489
+ };
2490
+ binding: {
2491
+ $ref: string;
2492
+ };
2493
+ surface: {
2494
+ $ref: string;
2495
+ };
2496
+ };
2497
+ additionalProperties: boolean;
2498
+ };
2119
2499
  FlowSurfaceConfigureRequest: {
2120
2500
  type: string;
2121
2501
  required: string[];
@@ -4953,6 +5333,9 @@ declare const _default: {
4953
5333
  use: {
4954
5334
  type: string;
4955
5335
  };
5336
+ popup: {
5337
+ $ref: string;
5338
+ };
4956
5339
  props: {
4957
5340
  type: string;
4958
5341
  additionalProperties: boolean;
@@ -4985,9 +5368,30 @@ declare const _default: {
4985
5368
  };
4986
5369
  additionalProperties: boolean;
4987
5370
  };
5371
+ FlowSurfaceApplyNodePopup: {
5372
+ type: string;
5373
+ properties: {
5374
+ template: {
5375
+ $ref: string;
5376
+ };
5377
+ tryTemplate: {
5378
+ type: string;
5379
+ description: string;
5380
+ };
5381
+ defaultType: {
5382
+ type: string;
5383
+ enum: string[];
5384
+ description: string;
5385
+ };
5386
+ };
5387
+ additionalProperties: boolean;
5388
+ };
4988
5389
  FlowSurfaceApplySpec: {
4989
5390
  type: string;
4990
5391
  properties: {
5392
+ popup: {
5393
+ $ref: string;
5394
+ };
4991
5395
  props: {
4992
5396
  type: string;
4993
5397
  additionalProperties: boolean;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "前端流引擎",
5
5
  "description": "",
6
6
  "description.zh-CN": "",
7
- "version": "2.1.0-alpha.18",
7
+ "version": "2.1.0-alpha.19",
8
8
  "main": "./dist/server/index.js",
9
9
  "license": "Apache-2.0",
10
10
  "devDependencies": {
@@ -24,5 +24,5 @@
24
24
  "@nocobase/test": "2.x",
25
25
  "@nocobase/utils": "2.x"
26
26
  },
27
- "gitHead": "e75843d4c557117bbcced047b88ed11d601ff86d"
27
+ "gitHead": "3d13700360eac1c0f9dbf6a5f167ed396a294a3c"
28
28
  }