@tachybase/module-workflow 0.23.22 → 0.23.40
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/client/index.js +48 -48
- package/dist/client/nodes/query.d.ts +42 -27
- package/dist/client/schemas/collection.d.ts +42 -27
- package/dist/client/schemas/executions.d.ts +24 -0
- package/dist/externalVersion.js +15 -15
- package/dist/locale/en-US.json +2 -0
- package/dist/locale/zh-CN.json +5 -1
- package/dist/node_modules/@babel/core/lib/index.js +76 -76
- package/dist/node_modules/@babel/core/node_modules/.bin/parser +4 -4
- package/dist/node_modules/@babel/core/package.json +1 -1
- package/dist/node_modules/cron-parser/package.json +1 -1
- package/dist/node_modules/form-data/package.json +1 -1
- package/dist/node_modules/jsonata/package.json +1 -1
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/node_modules/mime-types/package.json +1 -1
- package/dist/node_modules/qrcode/package.json +1 -1
- package/dist/server/Plugin.js +1 -1
- package/dist/server/actions/workflows.js +2 -4
- package/dist/server/features/trigger-instruction/TriggerInstruction.js +2 -1
- package/dist/server/instructions/CreateInstruction.js +51 -10
- package/dist/server/instructions/DestroyInstruction.js +3 -1
- package/dist/server/instructions/QueryInstruction.js +3 -7
- package/dist/server/instructions/UpdateInstruction.js +51 -10
- package/package.json +17 -17
|
@@ -108,49 +108,64 @@ export default class extends Instruction {
|
|
|
108
108
|
};
|
|
109
109
|
pagination: {
|
|
110
110
|
type: string;
|
|
111
|
-
title: string;
|
|
112
|
-
'x-decorator': string;
|
|
113
|
-
'x-decorator-props': {
|
|
114
|
-
value: {
|
|
115
|
-
designable: boolean;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
'x-component': string;
|
|
119
111
|
properties: {
|
|
120
|
-
|
|
112
|
+
paginate: {
|
|
113
|
+
type: string;
|
|
114
|
+
title: string;
|
|
115
|
+
'x-decorator': string;
|
|
116
|
+
'x-component': string;
|
|
117
|
+
'x-content': string;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
pagination: {
|
|
121
121
|
type: string;
|
|
122
|
+
'x-decorator': string;
|
|
122
123
|
'x-component': string;
|
|
124
|
+
'x-reactions': {
|
|
125
|
+
dependencies: string[];
|
|
126
|
+
fulfill: {
|
|
127
|
+
state: {
|
|
128
|
+
hidden: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
}[];
|
|
123
132
|
properties: {
|
|
124
|
-
|
|
133
|
+
row: {
|
|
125
134
|
type: string;
|
|
126
135
|
'x-component': string;
|
|
127
136
|
properties: {
|
|
128
137
|
page: {
|
|
129
138
|
type: string;
|
|
130
|
-
title: string;
|
|
131
|
-
'x-decorator': string;
|
|
132
139
|
'x-component': string;
|
|
133
|
-
|
|
134
|
-
|
|
140
|
+
properties: {
|
|
141
|
+
page: {
|
|
142
|
+
type: string;
|
|
143
|
+
title: string;
|
|
144
|
+
'x-decorator': string;
|
|
145
|
+
'x-component': string;
|
|
146
|
+
'x-component-props': {
|
|
147
|
+
useTypedConstant: string[];
|
|
148
|
+
};
|
|
149
|
+
default: number;
|
|
150
|
+
};
|
|
135
151
|
};
|
|
136
|
-
default: number;
|
|
137
152
|
};
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
pageSize: {
|
|
141
|
-
type: string;
|
|
142
|
-
'x-component': string;
|
|
143
|
-
properties: {
|
|
144
153
|
pageSize: {
|
|
145
154
|
type: string;
|
|
146
|
-
title: string;
|
|
147
|
-
'x-decorator': string;
|
|
148
155
|
'x-component': string;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
156
|
+
properties: {
|
|
157
|
+
pageSize: {
|
|
158
|
+
type: string;
|
|
159
|
+
title: string;
|
|
160
|
+
'x-decorator': string;
|
|
161
|
+
'x-component': string;
|
|
162
|
+
'x-component-props': {
|
|
163
|
+
min: number;
|
|
164
|
+
max: number;
|
|
165
|
+
};
|
|
166
|
+
default: number;
|
|
167
|
+
};
|
|
152
168
|
};
|
|
153
|
-
default: number;
|
|
154
169
|
};
|
|
155
170
|
};
|
|
156
171
|
};
|
|
@@ -90,49 +90,64 @@ export declare const sort: {
|
|
|
90
90
|
};
|
|
91
91
|
export declare const pagination: {
|
|
92
92
|
type: string;
|
|
93
|
-
title: string;
|
|
94
|
-
'x-decorator': string;
|
|
95
|
-
'x-decorator-props': {
|
|
96
|
-
value: {
|
|
97
|
-
designable: boolean;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
'x-component': string;
|
|
101
93
|
properties: {
|
|
102
|
-
|
|
94
|
+
paginate: {
|
|
103
95
|
type: string;
|
|
96
|
+
title: string;
|
|
97
|
+
'x-decorator': string;
|
|
104
98
|
'x-component': string;
|
|
99
|
+
'x-content': string;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
pagination: {
|
|
103
|
+
type: string;
|
|
104
|
+
'x-decorator': string;
|
|
105
|
+
'x-component': string;
|
|
106
|
+
'x-reactions': {
|
|
107
|
+
dependencies: string[];
|
|
108
|
+
fulfill: {
|
|
109
|
+
state: {
|
|
110
|
+
hidden: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}[];
|
|
105
114
|
properties: {
|
|
106
|
-
|
|
115
|
+
row: {
|
|
107
116
|
type: string;
|
|
108
117
|
'x-component': string;
|
|
109
118
|
properties: {
|
|
110
119
|
page: {
|
|
111
120
|
type: string;
|
|
112
|
-
title: string;
|
|
113
|
-
'x-decorator': string;
|
|
114
121
|
'x-component': string;
|
|
115
|
-
|
|
116
|
-
|
|
122
|
+
properties: {
|
|
123
|
+
page: {
|
|
124
|
+
type: string;
|
|
125
|
+
title: string;
|
|
126
|
+
'x-decorator': string;
|
|
127
|
+
'x-component': string;
|
|
128
|
+
'x-component-props': {
|
|
129
|
+
useTypedConstant: string[];
|
|
130
|
+
};
|
|
131
|
+
default: number;
|
|
132
|
+
};
|
|
117
133
|
};
|
|
118
|
-
default: number;
|
|
119
134
|
};
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
pageSize: {
|
|
123
|
-
type: string;
|
|
124
|
-
'x-component': string;
|
|
125
|
-
properties: {
|
|
126
135
|
pageSize: {
|
|
127
136
|
type: string;
|
|
128
|
-
title: string;
|
|
129
|
-
'x-decorator': string;
|
|
130
137
|
'x-component': string;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
138
|
+
properties: {
|
|
139
|
+
pageSize: {
|
|
140
|
+
type: string;
|
|
141
|
+
title: string;
|
|
142
|
+
'x-decorator': string;
|
|
143
|
+
'x-component': string;
|
|
144
|
+
'x-component-props': {
|
|
145
|
+
min: number;
|
|
146
|
+
max: number;
|
|
147
|
+
};
|
|
148
|
+
default: number;
|
|
149
|
+
};
|
|
134
150
|
};
|
|
135
|
-
default: number;
|
|
136
151
|
};
|
|
137
152
|
};
|
|
138
153
|
};
|
|
@@ -45,6 +45,18 @@ export declare const getExecutionSchema: (params?: any) => {
|
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
properties: {
|
|
48
|
+
filter: {
|
|
49
|
+
type: string;
|
|
50
|
+
title: string;
|
|
51
|
+
'x-action': string;
|
|
52
|
+
'x-designer': string;
|
|
53
|
+
'x-component': string;
|
|
54
|
+
'x-use-component-props': string;
|
|
55
|
+
'x-component-props': {
|
|
56
|
+
icon: string;
|
|
57
|
+
};
|
|
58
|
+
'x-align': string;
|
|
59
|
+
};
|
|
48
60
|
refresher: {
|
|
49
61
|
type: string;
|
|
50
62
|
title: string;
|
|
@@ -230,6 +242,18 @@ export declare const executionSchema: {
|
|
|
230
242
|
};
|
|
231
243
|
};
|
|
232
244
|
properties: {
|
|
245
|
+
filter: {
|
|
246
|
+
type: string;
|
|
247
|
+
title: string;
|
|
248
|
+
'x-action': string;
|
|
249
|
+
'x-designer': string;
|
|
250
|
+
'x-component': string;
|
|
251
|
+
'x-use-component-props': string;
|
|
252
|
+
'x-component-props': {
|
|
253
|
+
icon: string;
|
|
254
|
+
};
|
|
255
|
+
'x-align': string;
|
|
256
|
+
};
|
|
233
257
|
refresher: {
|
|
234
258
|
type: string;
|
|
235
259
|
title: string;
|
package/dist/externalVersion.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"react": "18.3.1",
|
|
3
|
-
"@tachybase/client": "0.23.
|
|
3
|
+
"@tachybase/client": "0.23.40",
|
|
4
4
|
"@ant-design/icons": "5.3.7",
|
|
5
5
|
"antd": "5.22.5",
|
|
6
6
|
"lodash": "4.17.21",
|
|
7
|
-
"@tachybase/utils": "0.23.
|
|
7
|
+
"@tachybase/utils": "0.23.40",
|
|
8
8
|
"react-i18next": "15.2.0",
|
|
9
9
|
"react-router-dom": "6.28.1",
|
|
10
|
-
"@tachybase/schema": "0.23.
|
|
11
|
-
"@tachybase/database": "0.23.
|
|
12
|
-
"@tachybase/logger": "0.23.
|
|
13
|
-
"@tachybase/server": "0.23.
|
|
14
|
-
"@tachybase/evaluators": "0.23.
|
|
15
|
-
"@tachybase/components": "0.23.
|
|
16
|
-
"@tachybase/actions": "0.23.
|
|
17
|
-
"@tachybase/data-source": "0.23.
|
|
10
|
+
"@tachybase/schema": "0.23.40",
|
|
11
|
+
"@tachybase/database": "0.23.40",
|
|
12
|
+
"@tachybase/logger": "0.23.40",
|
|
13
|
+
"@tachybase/server": "0.23.40",
|
|
14
|
+
"@tachybase/evaluators": "0.23.40",
|
|
15
|
+
"@tachybase/components": "0.23.40",
|
|
16
|
+
"@tachybase/actions": "0.23.40",
|
|
17
|
+
"@tachybase/data-source": "0.23.40",
|
|
18
18
|
"axios": "1.7.7",
|
|
19
19
|
"sequelize": "6.37.5",
|
|
20
|
-
"@tachybase/plugin-workflow-test": "0.23.
|
|
21
|
-
"@tachybase/test": "0.23.
|
|
22
|
-
"@tachybase/module-error-handler": "0.23.
|
|
23
|
-
"@tachybase/resourcer": "0.23.
|
|
24
|
-
"@tachybase/module-ui-schema": "0.23.
|
|
20
|
+
"@tachybase/plugin-workflow-test": "0.23.40",
|
|
21
|
+
"@tachybase/test": "0.23.40",
|
|
22
|
+
"@tachybase/module-error-handler": "0.23.40",
|
|
23
|
+
"@tachybase/resourcer": "0.23.40",
|
|
24
|
+
"@tachybase/module-ui-schema": "0.23.40"
|
|
25
25
|
};
|
package/dist/locale/en-US.json
CHANGED
|
@@ -103,6 +103,7 @@
|
|
|
103
103
|
"Current record": "Current record",
|
|
104
104
|
"Custom form": "Custom form",
|
|
105
105
|
"Data Mapping": "Scripts",
|
|
106
|
+
"Data is the trigger variable, it can be { data: 0 }, or { data: { id: 0 }}": "Data is the trigger variable, it can be { \"data\": 0 }, or { \"data\": { \"id\": 0 }}",
|
|
106
107
|
"Data of associated collection": "Data of associated collection",
|
|
107
108
|
"Data of collection": "Data of collection",
|
|
108
109
|
"Data record": "Data record",
|
|
@@ -261,6 +262,7 @@
|
|
|
261
262
|
"Task node": "Task node",
|
|
262
263
|
"Terminate the process": "Terminate the process",
|
|
263
264
|
"Test": "Test",
|
|
265
|
+
"Test workflow": "Test workflow",
|
|
264
266
|
"The Notified Person": "The Notified Person",
|
|
265
267
|
"The interface of show notice detail": "The interface of show notice detail",
|
|
266
268
|
"The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.",
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -119,7 +119,9 @@
|
|
|
119
119
|
"Current record": "当前记录",
|
|
120
120
|
"Current status": "当前状态",
|
|
121
121
|
"Custom form": "自定义表单",
|
|
122
|
+
"Custom pagination(page number and count cannot be empty)": "自定义分页(页码和条数都不能为空)",
|
|
122
123
|
"Data Mapping": "脚本",
|
|
124
|
+
"Data is the trigger variable, it can be { data: 0 }, or { data: { id: 0 }}": "data即为触发器变量, 可以{ \"data\": 0 }, 也可以 { \"data\": { \"id\": 0 }}",
|
|
123
125
|
"Data of associated collection": "关联数据表数据",
|
|
124
126
|
"Data of collection": "数据表数据",
|
|
125
127
|
"Data operation nodes in workflow will run in a same transaction until any interruption. Any failure will cause data rollback, and will also rollback the history of the execution.": "工作流中的节点将在同一个事务中运行。任何失败都会导致数据回滚,同时也会回滚相应的执行历史。",
|
|
@@ -165,7 +167,7 @@
|
|
|
165
167
|
"Execute workflow asynchronously or synchronously based on trigger type, and could not be changed after created.": "基于触发类型异步或同步执行工作流,创建后不可更改。",
|
|
166
168
|
"Executed": "已执行",
|
|
167
169
|
"Executed at": "执行于",
|
|
168
|
-
"Executed time": "
|
|
170
|
+
"Executed time": "执行时长",
|
|
169
171
|
"Executed workflow cannot be modified": "已经执行过的工作流不能被修改",
|
|
170
172
|
"Execution history": "执行历史",
|
|
171
173
|
"Exit when query result is null": "查询结果为空时,退出流程",
|
|
@@ -249,6 +251,7 @@
|
|
|
249
251
|
"Operator": "运算符",
|
|
250
252
|
"Or": "或签",
|
|
251
253
|
"Order": "多人处理顺序",
|
|
254
|
+
"Pagination": "分页",
|
|
252
255
|
"Parallel branch": "分支",
|
|
253
256
|
"Parallelly": "并行",
|
|
254
257
|
"Parameters": "参数",
|
|
@@ -324,6 +327,7 @@
|
|
|
324
327
|
"Task node": "任务节点",
|
|
325
328
|
"Terminate the process": "终止流程",
|
|
326
329
|
"Test": "测试",
|
|
330
|
+
"Test workflow": "测试工作流",
|
|
327
331
|
"The Notified Person": "被通知人",
|
|
328
332
|
"The approval or rejection by anyone of them is the result.": "任意一人通过或否决即为结果。",
|
|
329
333
|
"The interface of show notice detail": "显示通知详情界面",
|