@tachybase/plugin-workflow-approval 0.23.40 → 0.23.47

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 (28) hide show
  1. package/dist/client/base/Approval.setting.d.ts +1 -1
  2. package/dist/client/base/ApprovalPane.schema.d.ts +82 -57
  3. package/dist/client/base/ColumnShowApprovalId.d.ts +1 -0
  4. package/dist/client/base/Execution.schema.d.ts +222 -0
  5. package/dist/client/common/constants/approval-initiation-status-options.d.ts +16 -0
  6. package/dist/client/configuration/instruction-approval/initializers/ApproverShowDetail.initializer.d.ts +4 -0
  7. package/dist/client/configuration/instruction-approval/initializers/forms/FormActionButton.initializer.d.ts +4 -0
  8. package/dist/client/configuration/trigger-approval/initializers/ApplyForm.initializer.d.ts +4 -0
  9. package/dist/client/configuration/trigger-approval/initializers/ApplyFormAction.initializer.d.ts +4 -0
  10. package/dist/client/index.js +35 -35
  11. package/dist/client/usage/h5/todos/component/TabApprovalItem.d.ts +1 -2
  12. package/dist/externalVersion.js +10 -10
  13. package/dist/locale/en-US.json +2 -0
  14. package/dist/locale/zh-CN.json +3 -1
  15. package/dist/server/actions/approvals.js +11 -4
  16. package/dist/server/instructions/Approval.js +4 -1
  17. package/dist/server/instructions/ApprovalCarbonCopy.js +5 -1
  18. package/dist/server/plugin.js +0 -1
  19. package/dist/server/triggers/Approval.js +147 -146
  20. package/package.json +11 -11
  21. /package/dist/client/configuration/trigger-approval/{plugin.d.ts → kit.d.ts} +0 -0
  22. /package/dist/client/usage/pc/block/{approval-card → approval-list}/FeatureCard.component.d.ts +0 -0
  23. /package/dist/client/usage/pc/block/{approval-card → approval-list}/FeatureCard.style.d.ts +0 -0
  24. /package/dist/client/usage/pc/block/{approval-card → approval-list}/FeatureList.d.ts +0 -0
  25. /package/dist/client/usage/pc/block/{approval-card → approval-list}/FeatureList.style.d.ts +0 -0
  26. /package/dist/client/usage/pc/block/{approval-card → approval-list}/FeatureModal.schema.d.ts +0 -0
  27. /package/dist/client/usage/pc/block/{approval-card → approval-list}/FeatureModal.view.d.ts +0 -0
  28. /package/dist/client/usage/pc/block/{approval-card → approval-list}/InitiateApplication.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- export declare const systemSettingName = "system-approval";
1
+ export declare const systemSettingName = "workflow-approval";
2
2
  export declare const settingApproval: {
3
3
  title: string;
4
4
  icon: string;
@@ -310,8 +310,8 @@ export declare const schemaApprovalPanne: {
310
310
  properties: {
311
311
  content: {
312
312
  type: string;
313
- "x-decorator": string;
314
- "x-decorator-props": {
313
+ 'x-decorator': string;
314
+ 'x-decorator-props': {
315
315
  collection: {
316
316
  name: string;
317
317
  fields: {
@@ -332,8 +332,8 @@ export declare const schemaApprovalPanne: {
332
332
  properties: {
333
333
  actions: {
334
334
  type: string;
335
- "x-component": string;
336
- "x-component-props": {
335
+ 'x-component': string;
336
+ 'x-component-props': {
337
337
  style: {
338
338
  marginBottom: number;
339
339
  };
@@ -342,33 +342,33 @@ export declare const schemaApprovalPanne: {
342
342
  filter: {
343
343
  type: string;
344
344
  title: string;
345
- "x-action": string;
346
- "x-designer": string;
347
- "x-component": string;
348
- "x-use-component-props": string;
349
- "x-component-props": {
345
+ 'x-action': string;
346
+ 'x-designer': string;
347
+ 'x-component': string;
348
+ 'x-use-component-props': string;
349
+ 'x-component-props': {
350
350
  icon: string;
351
351
  };
352
- "x-align": string;
352
+ 'x-align': string;
353
353
  };
354
354
  refresher: {
355
355
  type: string;
356
356
  title: string;
357
- "x-action": string;
358
- "x-component": string;
359
- "x-use-component-props": string;
360
- "x-designer": string;
361
- "x-component-props": {
357
+ 'x-action': string;
358
+ 'x-component': string;
359
+ 'x-use-component-props': string;
360
+ 'x-designer': string;
361
+ 'x-component-props': {
362
362
  icon: string;
363
363
  };
364
- "x-align": string;
364
+ 'x-align': string;
365
365
  };
366
366
  clear: {
367
367
  type: string;
368
368
  title: string;
369
- "x-component": string;
370
- "x-component-props": {
371
- isShow: any;
369
+ 'x-component': string;
370
+ 'x-component-props': {
371
+ isShow: boolean;
372
372
  useAction(): {
373
373
  run(): Promise<void>;
374
374
  };
@@ -382,30 +382,37 @@ export declare const schemaApprovalPanne: {
382
382
  };
383
383
  table: {
384
384
  type: string;
385
- "x-component": string;
386
- "x-use-component-props": string;
387
- "x-component-props": {
385
+ 'x-component': string;
386
+ 'x-use-component-props': string;
387
+ 'x-component-props': {
388
388
  rowKey: string;
389
389
  };
390
390
  properties: {
391
391
  actions: {
392
392
  type: string;
393
393
  title: string;
394
- "x-component": string;
395
- "x-component-props": {
394
+ 'x-component': string;
395
+ 'x-component-props': {
396
396
  width: number;
397
+ align: string;
397
398
  };
398
399
  properties: {
399
400
  actions: {
400
401
  type: string;
401
- "x-component": string;
402
- "x-component-props": {
402
+ 'x-component': string;
403
+ 'x-component-props': {
403
404
  split: string;
404
405
  };
405
406
  properties: {
406
407
  link: {
407
408
  type: string;
408
- "x-component": string;
409
+ 'x-component': string;
410
+ };
411
+ retry: {
412
+ type: string;
413
+ title: string;
414
+ 'x-component': string;
415
+ 'x-use-component-props': string;
409
416
  };
410
417
  };
411
418
  };
@@ -413,83 +420,101 @@ export declare const schemaApprovalPanne: {
413
420
  };
414
421
  id: {
415
422
  type: string;
416
- "x-decorator": string;
417
- "x-component": string;
418
- "x-component-props": {
423
+ 'x-decorator': string;
424
+ 'x-component': string;
425
+ 'x-component-props': {
419
426
  width: number;
427
+ align: string;
420
428
  };
421
429
  properties: {
422
430
  id: {
423
431
  type: string;
424
- "x-component": string;
425
- "x-read-pretty": boolean;
432
+ 'x-component': string;
433
+ 'x-read-pretty': boolean;
434
+ };
435
+ };
436
+ };
437
+ approvalId: {
438
+ type: string;
439
+ title: string;
440
+ 'x-decorator': string;
441
+ 'x-component': string;
442
+ 'x-component-props': {
443
+ width: number;
444
+ align: string;
445
+ };
446
+ properties: {
447
+ approvalId: {
448
+ type: string;
449
+ 'x-component': string;
450
+ 'x-read-pretty': boolean;
426
451
  };
427
452
  };
428
453
  };
429
454
  createdAt: {
430
455
  type: string;
431
- "x-decorator": string;
432
- "x-component": string;
433
- "x-component-props": {
456
+ 'x-decorator': string;
457
+ 'x-component': string;
458
+ 'x-component-props': {
434
459
  width: number;
435
460
  };
436
461
  properties: {
437
462
  createdAt: {
438
463
  type: string;
439
- "x-component": string;
440
- "x-component-props": {
464
+ 'x-component': string;
465
+ 'x-component-props': {
441
466
  showTime: boolean;
442
467
  };
443
- "x-read-pretty": boolean;
468
+ 'x-read-pretty': boolean;
444
469
  };
445
470
  };
446
471
  };
447
- executionTime: {
472
+ executionCost: {
448
473
  type: string;
449
474
  title: string;
450
- "x-decorator": string;
451
- "x-component": string;
452
- "x-component-props": {
475
+ 'x-decorator': string;
476
+ 'x-component': string;
477
+ 'x-component-props': {
453
478
  width: number;
454
479
  };
455
480
  properties: {
456
- executionTime: {
481
+ executionCost: {
457
482
  type: string;
458
- "x-decorator": string;
459
- "x-component": string;
460
- "x-read-pretty": boolean;
483
+ 'x-component': string;
484
+ 'x-read-pretty': boolean;
461
485
  };
462
486
  };
463
487
  };
464
488
  workflowId: {
465
489
  type: string;
466
- "x-decorator": string;
467
- "x-component": string;
468
- "x-component-props": {
490
+ 'x-decorator': string;
491
+ 'x-component': string;
492
+ 'x-component-props': {
469
493
  width: number;
494
+ align: string;
470
495
  };
471
496
  properties: {
472
497
  workflowId: {
473
498
  type: string;
474
- "x-component": string;
475
- "x-read-pretty": boolean;
499
+ 'x-component': string;
500
+ 'x-read-pretty': boolean;
476
501
  };
477
502
  };
478
503
  };
479
504
  status: {
480
505
  type: string;
481
506
  title: string;
482
- "x-decorator": string;
483
- "x-component": string;
484
- "x-component-props": {
507
+ 'x-decorator': string;
508
+ 'x-component': string;
509
+ 'x-component-props': {
485
510
  width: number;
486
511
  };
487
512
  properties: {
488
513
  status: {
489
514
  type: string;
490
- "x-decorator": string;
491
- "x-component": string;
492
- "x-read-pretty": boolean;
515
+ 'x-decorator': string;
516
+ 'x-component': string;
517
+ 'x-read-pretty': boolean;
493
518
  };
494
519
  };
495
520
  };
@@ -0,0 +1 @@
1
+ export declare const ColumnShowApprovalId: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,222 @@
1
+ export declare const schemaExecution: {
2
+ type: string;
3
+ name: string;
4
+ title: string;
5
+ 'x-component': string;
6
+ properties: {
7
+ content: {
8
+ type: string;
9
+ 'x-decorator': string;
10
+ 'x-decorator-props': {
11
+ collection: {
12
+ name: string;
13
+ fields: {
14
+ interface: string;
15
+ type: string;
16
+ name: string;
17
+ uiSchema: import("packages/schema/lib").ISchema;
18
+ }[];
19
+ };
20
+ dataSource: string;
21
+ action: string;
22
+ params: {
23
+ appends: string[];
24
+ pageSize: number;
25
+ sort: string[];
26
+ };
27
+ };
28
+ properties: {
29
+ actions: {
30
+ type: string;
31
+ 'x-component': string;
32
+ 'x-component-props': {
33
+ style: {
34
+ marginBottom: number;
35
+ };
36
+ };
37
+ properties: {
38
+ filter: {
39
+ type: string;
40
+ title: string;
41
+ 'x-action': string;
42
+ 'x-designer': string;
43
+ 'x-component': string;
44
+ 'x-use-component-props': string;
45
+ 'x-component-props': {
46
+ icon: string;
47
+ };
48
+ 'x-align': string;
49
+ };
50
+ refresher: {
51
+ type: string;
52
+ title: string;
53
+ 'x-action': string;
54
+ 'x-component': string;
55
+ 'x-use-component-props': string;
56
+ 'x-designer': string;
57
+ 'x-component-props': {
58
+ icon: string;
59
+ };
60
+ 'x-align': string;
61
+ };
62
+ clear: {
63
+ type: string;
64
+ title: string;
65
+ 'x-component': string;
66
+ 'x-component-props': {
67
+ isShow: boolean;
68
+ useAction(): {
69
+ run(): Promise<void>;
70
+ };
71
+ confirm: {
72
+ title: string;
73
+ content: string;
74
+ };
75
+ };
76
+ };
77
+ };
78
+ };
79
+ table: {
80
+ type: string;
81
+ 'x-component': string;
82
+ 'x-use-component-props': string;
83
+ 'x-component-props': {
84
+ rowKey: string;
85
+ };
86
+ properties: {
87
+ actions: {
88
+ type: string;
89
+ title: string;
90
+ 'x-component': string;
91
+ 'x-component-props': {
92
+ width: number;
93
+ align: string;
94
+ };
95
+ properties: {
96
+ actions: {
97
+ type: string;
98
+ 'x-component': string;
99
+ 'x-component-props': {
100
+ split: string;
101
+ };
102
+ properties: {
103
+ link: {
104
+ type: string;
105
+ 'x-component': string;
106
+ };
107
+ retry: {
108
+ type: string;
109
+ title: string;
110
+ 'x-component': string;
111
+ 'x-use-component-props': string;
112
+ };
113
+ };
114
+ };
115
+ };
116
+ };
117
+ id: {
118
+ type: string;
119
+ 'x-decorator': string;
120
+ 'x-component': string;
121
+ 'x-component-props': {
122
+ width: number;
123
+ align: string;
124
+ };
125
+ properties: {
126
+ id: {
127
+ type: string;
128
+ 'x-component': string;
129
+ 'x-read-pretty': boolean;
130
+ };
131
+ };
132
+ };
133
+ approvalId: {
134
+ type: string;
135
+ title: string;
136
+ 'x-decorator': string;
137
+ 'x-component': string;
138
+ 'x-component-props': {
139
+ width: number;
140
+ align: string;
141
+ };
142
+ properties: {
143
+ approvalId: {
144
+ type: string;
145
+ 'x-component': string;
146
+ 'x-read-pretty': boolean;
147
+ };
148
+ };
149
+ };
150
+ createdAt: {
151
+ type: string;
152
+ 'x-decorator': string;
153
+ 'x-component': string;
154
+ 'x-component-props': {
155
+ width: number;
156
+ };
157
+ properties: {
158
+ createdAt: {
159
+ type: string;
160
+ 'x-component': string;
161
+ 'x-component-props': {
162
+ showTime: boolean;
163
+ };
164
+ 'x-read-pretty': boolean;
165
+ };
166
+ };
167
+ };
168
+ executionCost: {
169
+ type: string;
170
+ title: string;
171
+ 'x-decorator': string;
172
+ 'x-component': string;
173
+ 'x-component-props': {
174
+ width: number;
175
+ };
176
+ properties: {
177
+ executionCost: {
178
+ type: string;
179
+ 'x-component': string;
180
+ 'x-read-pretty': boolean;
181
+ };
182
+ };
183
+ };
184
+ workflowId: {
185
+ type: string;
186
+ 'x-decorator': string;
187
+ 'x-component': string;
188
+ 'x-component-props': {
189
+ width: number;
190
+ align: string;
191
+ };
192
+ properties: {
193
+ workflowId: {
194
+ type: string;
195
+ 'x-component': string;
196
+ 'x-read-pretty': boolean;
197
+ };
198
+ };
199
+ };
200
+ status: {
201
+ type: string;
202
+ title: string;
203
+ 'x-decorator': string;
204
+ 'x-component': string;
205
+ 'x-component-props': {
206
+ width: number;
207
+ };
208
+ properties: {
209
+ status: {
210
+ type: string;
211
+ 'x-decorator': string;
212
+ 'x-component': string;
213
+ 'x-read-pretty': boolean;
214
+ };
215
+ };
216
+ };
217
+ };
218
+ };
219
+ };
220
+ };
221
+ };
222
+ };
@@ -0,0 +1,16 @@
1
+ export declare const approvalStatusEnums: ({
2
+ value: number;
3
+ label: string;
4
+ editable: boolean;
5
+ color?: undefined;
6
+ } | {
7
+ value: number;
8
+ label: string;
9
+ color: string;
10
+ editable: boolean;
11
+ } | {
12
+ value: number;
13
+ label: string;
14
+ color: string;
15
+ editable?: undefined;
16
+ })[];
@@ -1,2 +1,6 @@
1
1
  import { SchemaInitializer } from '@tachybase/client';
2
2
  export declare const ApproverShowDetailInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
3
+ /**
4
+ * @deprecated
5
+ */
6
+ export declare const ApproverAddBlockInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -1,2 +1,6 @@
1
1
  import { SchemaInitializer } from '@tachybase/client';
2
2
  export declare const FormActionButtonInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
3
+ /**
4
+ * @deprecated
5
+ */
6
+ export declare const ApprovalAddActionButton: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -1,2 +1,6 @@
1
1
  import { SchemaInitializer } from '@tachybase/client';
2
2
  export declare const ApplyFormInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
3
+ /**
4
+ * @deprecated 完全整理重构完审批, 走完迁移逻辑, 以及充分测试现有应用后, 可删除此过期配置
5
+ */
6
+ export declare const LauncherAddBlockButtonIntializer: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -1,2 +1,6 @@
1
1
  import { SchemaInitializer } from '@tachybase/client';
2
2
  export declare const ApplyFormActionInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
3
+ /**
4
+ * @deprecated
5
+ */
6
+ export declare const LauncherActionConfigInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;