@tachybase/module-workflow 1.5.1 → 1.6.1

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 (75) hide show
  1. package/dist/client/WorkflowCategoriesProvider.d.ts +4 -0
  2. package/dist/client/components/ColletionTreeSelect.d.ts +16 -0
  3. package/dist/client/components/EnabledStatusFilter.d.ts +2 -0
  4. package/dist/client/components/WorkflowCategoryColumn.d.ts +8 -0
  5. package/dist/client/components/index.d.ts +3 -0
  6. package/dist/client/features/script/Script.instruction.d.ts +136 -0
  7. package/dist/client/features/script/ScriptCodeEditor.d.ts +9 -0
  8. package/dist/client/features/script/SyncRemoteCodeButton.d.ts +6 -0
  9. package/dist/client/features/trigger-instruction/TriggerInstruction.d.ts +164 -5
  10. package/dist/client/hooks/index.d.ts +2 -0
  11. package/dist/client/hooks/useDumpAction.d.ts +7 -0
  12. package/dist/client/hooks/useRevisionAction.d.ts +7 -0
  13. package/dist/client/index.d.ts +2 -0
  14. package/dist/client/index.js +85 -59
  15. package/dist/client/nodes/select.d.ts +235 -0
  16. package/dist/client/schemas/workflows.d.ts +5 -0
  17. package/dist/client/utils.d.ts +2 -2
  18. package/dist/externalVersion.js +9 -9
  19. package/dist/locale/en-US.json +49 -1
  20. package/dist/locale/es-ES.json +19 -1
  21. package/dist/locale/fr-FR.json +18 -0
  22. package/dist/locale/ja-JP.json +19 -1
  23. package/dist/locale/ko_KR.json +19 -1
  24. package/dist/locale/pt-BR.json +19 -1
  25. package/dist/locale/ru-RU.json +20 -2
  26. package/dist/locale/tr-TR.json +20 -2
  27. package/dist/locale/zh-CN.json +52 -1
  28. package/dist/node_modules/@babel/core/lib/index.js +77 -77
  29. package/dist/node_modules/@babel/core/node_modules/.bin/parser +4 -4
  30. package/dist/node_modules/@babel/core/package.json +1 -1
  31. package/dist/node_modules/@babel/preset-env/lib/index.js +88 -88
  32. package/dist/node_modules/@babel/preset-env/package.json +1 -1
  33. package/dist/node_modules/@babel/preset-react/lib/index.js +80 -80
  34. package/dist/node_modules/@babel/preset-react/package.json +1 -1
  35. package/dist/node_modules/@babel/preset-typescript/lib/index.js +77 -77
  36. package/dist/node_modules/@babel/preset-typescript/package.json +1 -1
  37. package/dist/node_modules/cron-parser/package.json +1 -1
  38. package/dist/node_modules/form-data/package.json +1 -1
  39. package/dist/node_modules/jsonata/package.json +1 -1
  40. package/dist/node_modules/lru-cache/package.json +1 -1
  41. package/dist/node_modules/mime-types/package.json +1 -1
  42. package/dist/node_modules/qrcode/package.json +1 -1
  43. package/dist/server/Plugin.js +57 -1
  44. package/dist/server/actions/executions.d.ts +3 -3
  45. package/dist/server/actions/executions.js +42 -30
  46. package/dist/server/actions/index.js +3 -2
  47. package/dist/server/actions/nodes.d.ts +13 -6
  48. package/dist/server/actions/nodes.js +160 -34
  49. package/dist/server/actions/workflows.d.ts +17 -8
  50. package/dist/server/actions/workflows.helpers.d.ts +55 -0
  51. package/dist/server/actions/workflows.helpers.js +167 -0
  52. package/dist/server/actions/workflows.js +118 -69
  53. package/dist/server/features/interception/RequestInterceptionTrigger.d.ts +1 -1
  54. package/dist/server/features/interception/RequestInterceptionTrigger.js +12 -12
  55. package/dist/server/features/manual/actions.d.ts +1 -1
  56. package/dist/server/features/manual/actions.js +12 -12
  57. package/dist/server/features/notice/actions.js +19 -19
  58. package/dist/server/features/notice/plugin.js +0 -3
  59. package/dist/server/features/omni-trigger/CustomActionTrigger.d.ts +2 -2
  60. package/dist/server/features/omni-trigger/CustomActionTrigger.js +27 -27
  61. package/dist/server/features/script/script.instruction.js +146 -4
  62. package/dist/server/features/trigger-instruction/TriggerInstruction.d.ts +4 -0
  63. package/dist/server/features/trigger-instruction/TriggerInstruction.js +71 -5
  64. package/dist/server/instructions/SelectInstruction.d.ts +13 -0
  65. package/dist/server/instructions/SelectInstruction.js +126 -0
  66. package/dist/server/services/remote-code-fetcher.d.ts +48 -0
  67. package/dist/server/services/remote-code-fetcher.js +370 -0
  68. package/dist/server/utils/get-remote-code-fetcher.d.ts +7 -0
  69. package/dist/server/utils/get-remote-code-fetcher.js +39 -0
  70. package/dist/server/utils.d.ts +16 -0
  71. package/dist/server/utils.js +33 -2
  72. package/package.json +12 -12
  73. package/dist/client/provider/EventSourceProvider.d.ts +0 -7
  74. package/dist/server/features/trigger-instruction/index.d.ts +0 -0
  75. package/dist/server/features/trigger-instruction/index.js +0 -0
@@ -9,6 +9,7 @@
9
9
  "Add branch": "增加分支",
10
10
  "Add new record to a collection. You can use variables from upstream nodes to assign values to fields.": "向一个数据表中添加新的数据。可以使用上游节点里的变量为字段赋值。",
11
11
  "Add parameter": "添加参数",
12
+ "Add property": "添加属性",
12
13
  "Add request header": "添加请求头",
13
14
  "Add workflow": "添加工作流",
14
15
  "Advanced": "高级模式",
@@ -18,7 +19,9 @@
18
19
  "After record updated": "更新数据后",
19
20
  "Aggregate": "聚合查询",
20
21
  "Aggregator function": "聚合函数",
22
+ "Alias": "别名",
21
23
  "All pass": "全部通过",
24
+ "All statuses": "全部",
22
25
  "All succeeded": "全部成功",
23
26
  "Allow multiple records as result": "允许结果是多条数据",
24
27
  "Allow query for tree data": "添加查询条件为树结构表字段: tree: true",
@@ -60,11 +63,18 @@
60
63
  "Associated workflow not found.": "未找到关联的工作流",
61
64
  "Associations to use": "待使用的关系数据",
62
65
  "Asynchronously": "异步",
66
+ "Auth token": "认证 Token/密码",
67
+ "Auth token placeholder": "请输入认证 Token 或密码",
68
+ "Auth username": "认证用户名",
69
+ "Auth username placeholder": "请输入用户名(Basic Auth)",
70
+ "Authentication type": "认证类型",
63
71
  "Auto delete history when execution is on end status": "执行结束后自动删除对应状态的历史记录",
64
72
  "Based on boolean result of the calculation to determine whether to \"continue\" or \"exit\" the process, or continue on different branches of \"yes\" and \"no\".": "基于运算结果的真假来决定“继续”或“退出”流程,或者在“是”与“否”的分支上分别继续。",
65
73
  "Based on certain date": "自定义时间",
66
74
  "Based on date field of collection": "根据数据表时间字段",
67
75
  "Basic": "基础",
76
+ "Basic Auth": "Basic Auth",
77
+ "Bearer Token": "Bearer Token",
68
78
  "Bind collection?": "绑定数据集?",
69
79
  "Bind workflows": "绑定工作流",
70
80
  "Body": "请求体",
@@ -78,6 +88,7 @@
78
88
  "By month": "按月",
79
89
  "By using a loop node, you can perform the same operation on multiple sets of data. The source of these sets can be either multiple records from a query node or multiple associated records of a single record. Loop node can also be used for iterating a certain number of times or for looping through each character in a string. However, excessive looping may cause performance issues, so use with caution.": "使用循环节点可以对多条数据进行同样的操作,多条数据的来源可以是查询节点的多条结果,或者一条数据的多条关系数据。也可以用于一定次数的循环,或者对字符串中每一个字符的循环处理。循环次数过高可能引起性能问题,请谨慎使用。",
80
90
  "By week": "按周",
91
+ "CDN": "CDN",
81
92
  "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression.": "基于计算引擎对一个表达式进行计算,并获得一个值作为结果。表达式中可以使用上游节点里的变量。",
82
93
  "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.": "基于计算引擎计算表达式并获取值作为结果。可以在表达式中使用上游节点的变量。表达式是从表达式表中动态获取的。",
83
94
  "Calculation": "运算",
@@ -94,6 +105,17 @@
94
105
  "Clear all executions": "清除所有执行记录",
95
106
  "Clear executions will not reset executed count, and started executions will not be deleted, are you sure you want to delete them all?": "清空执行记录不会重置执行次数,且执行中的也不会被删除,确定要删除所有执行记录吗?",
96
107
  "Code": "代码",
108
+ "Code URL": "代码地址",
109
+ "Code URL is required for Git": "Git 类型时,代码地址为必填项",
110
+ "Code URL placeholder": "CDN URL 或 Git 仓库地址,例如: https://cdn.example.com/script.ts 或 https://github.com/owner/repo",
111
+ "Code branch": "代码分支",
112
+ "Code branch placeholder": "Git 分支名称,默认为 main",
113
+ "Code editor failed to load": "代码编辑器加载失败",
114
+ "Code path": "代码路径",
115
+ "Code path placeholder": "Git 仓库中的文件路径,例如: src/scripts/myScript.ts",
116
+ "Code source": "代码来源",
117
+ "Code synced successfully": "代码同步成功",
118
+ "Code type": "代码类型",
97
119
  "Collaboratively": "协作处理",
98
120
  "Collection": "数据表",
99
121
  "Collection event": "数据表事件",
@@ -129,6 +151,7 @@
129
151
  "Data of collection": "数据表数据",
130
152
  "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.": "工作流中的节点将在同一个事务中运行。任何失败都会导致数据回滚,同时也会回滚相应的执行历史。",
131
153
  "Data record": "数据记录",
154
+ "Data source map": "数据源映射",
132
155
  "Data will be updated": "更新的数据",
133
156
  "Date variables": "日期变量",
134
157
  "Days": "天",
@@ -142,6 +165,7 @@
142
165
  "Deprecated, please do not use it": "已弃用, 请勿使用",
143
166
  "Details": "详情",
144
167
  "Disabled": "已失效",
168
+ "Disabled status": "禁用",
145
169
  "Dispatcher": "调度器",
146
170
  "Distinct": "去重",
147
171
  "Draft": "草稿",
@@ -185,8 +209,10 @@
185
209
  "Extended types": "扩展类型",
186
210
  "Fail and exit": "失败并退出",
187
211
  "Failed": "失败",
212
+ "Failed to create execution": "创建执行记录失败",
188
213
  "Failed to retry execution": "重试执行失败",
189
214
  "Failed to satisfy node configurations.": "未满足节点配置造成的失败。",
215
+ "Failed to sync remote code": "同步远程代码失败",
190
216
  "False": "假",
191
217
  "Field name existed in form": "表单中已有对应标识的字段",
192
218
  "Field to aggregate": "聚合字段",
@@ -199,6 +225,8 @@
199
225
  "Full form data": "完整表单数据",
200
226
  "General event": "通用事件",
201
227
  "General failed but should do another try.": "执行失败,需重试。",
228
+ "Get specific data from JSON result of any node BY js code or json code;": "通过 js 代码或 json 代码从任意节点的 JSON 结果中获取特定数据;",
229
+ "Git": "Git",
202
230
  "Go to configure": "进入配置",
203
231
  "HTTP method": "HTTP 方法",
204
232
  "HTTP request": "HTTP 请求",
@@ -209,6 +237,7 @@
209
237
  "ID": "编号",
210
238
  "If checked, when there are multiple records in the query result, an array will be returned as the result, which can be operated on one by one using a loop node. Otherwise, only one record will be returned.": "选中后,当查询结果有多条记录时,会返回数组作为结果,可以使用循环节点对它逐条操作;否则,仅返回一条数据。",
211
239
  "If it's approved by all, it's approved. If it's rejected by anyone, it's rejected.": "所有人通过才通过,任意一人否决则否决。",
240
+ "If the type of query result is object or array of object, could map the properties which to be accessed in subsequent nodes.": "如果查询结果是对象或对象数组,可以映射属性以便在后续节点中访问。",
212
241
  "Ignore failed request and continue workflow": "忽略失败的请求并继续工作流",
213
242
  "In addition to data blocks, a global approval block can also be used to initiates and processes approvals, which typically applies to administrative data.": "除了数据卡片,还可以在全局的审批中心发起和处理审批,这通常适用于行政数据。",
214
243
  "In the workflow, notification messages can be viewed by the notified person in the notification center.": "在工作流程中通知消息, 被通知人可以在通知中心查看到消息.",
@@ -222,10 +251,14 @@
222
251
  "Input request data": "输入请求数据",
223
252
  "Insert": "插入",
224
253
  "Interceptor": "拦截器",
254
+ "Label": "标签",
255
+ "Last sync time": "最后同步时间",
225
256
  "Launch": "发起",
226
257
  "Launched time": "发起时间",
227
258
  "Load failed": "加载失败",
228
259
  "Loading": "加载中",
260
+ "Loading editor...": "加载编辑器...",
261
+ "Local code": "本地代码",
229
262
  "Loop": "循环",
230
263
  "Loop index": "当前索引",
231
264
  "Loop length": "循环长度",
@@ -235,6 +268,7 @@
235
268
  "Manually canceled whole execution when waiting.": "等待时被手动取消整个执行。",
236
269
  "Minutes": "分钟",
237
270
  "Mode": "模式",
271
+ "Monaco Editor failed to load, downgraded to basic text editor. Some features may be limited.": "Monaco Editor 无法加载,已降级到基础文本编辑器。功能可能受限。",
238
272
  "Months": "月",
239
273
  "Move": "移动",
240
274
  "Move current version to another workflow": "将当前版本移动到另一个工作流",
@@ -247,6 +281,8 @@
247
281
  "MyLaunch": "我的发起",
248
282
  "Negotiation": "协商机制",
249
283
  "Negotiation mode": "协商模式",
284
+ "No authentication": "无需认证",
285
+ "No code returned from remote source": "远程源未返回代码",
250
286
  "No data yet": "暂无数据",
251
287
  "No end": "不结束",
252
288
  "No execution records found for this workflow.": "未找到此工作流的执行记录",
@@ -256,10 +292,11 @@
256
292
  "Node result": "节点数据",
257
293
  "Node type": "节点类型",
258
294
  "Not initiated": "未开始",
295
+ "Not synced": "未同步",
259
296
  "Notice": "通知",
260
297
  "Notice Center": "通知中心",
261
298
  "Notice blocks": "通知卡片",
262
- "Off": "停用",
299
+ "Off": "禁用",
263
300
  "On": "启用",
264
301
  "On going": "进行中",
265
302
  "Only support standard JSON data": "仅支持标准 JSON 数据",
@@ -277,10 +314,15 @@
277
314
  "Passthrough mode": "直通模式",
278
315
  "Pending": "待处理",
279
316
  "Please add at least one condition": "请添加至少一个条件",
317
+ "Please enter code...": "请输入代码...",
318
+ "Please select code type first": "请先选择代码类型",
280
319
  "Please select collection first": "请先选择数据表",
320
+ "Please select remote code source first": "请先选择远程代码来源",
281
321
  "Please select the associated fields that need to be accessed in subsequent nodes. With more than two levels of to-many associations may cause performance issue, please use with caution.": "请选中需要在后续节点中被访问的关系字段。超过两层的对多关联可能会导致性能问题,请谨慎使用。",
282
322
  "Preload associations": "预加载关联数据",
283
323
  "Processing": "处理中",
324
+ "Properties mapping": "属性映射",
325
+ "Property path": "属性路径",
284
326
  "Query Notified Person": "查询被通知人",
285
327
  "Query assignees": "查询审批人",
286
328
  "Query record": "查询数据",
@@ -293,6 +335,7 @@
293
335
  "Rejected from a manual node.": "被人工节点拒绝继续。",
294
336
  "Related approvals": "相关审批",
295
337
  "Remarks": "备注",
338
+ "Remote code": "远程代码",
296
339
  "Repeat limit": "重复次数",
297
340
  "Repeat mode": "重复模式",
298
341
  "Resolved": "完成",
@@ -318,6 +361,9 @@
318
361
  "Select context": "选择上下文",
319
362
  "Select dynamic expression": "选择动态表达式",
320
363
  "Select fields to display in the approval summary": "选择审批摘要显示字段",
364
+ "Select fields to display in the collection": "选择数据表显示字段",
365
+ "Select record": "筛选数据",
366
+ "Select records from a collection. You can use variables from upstream nodes as query conditions.": "筛选一个数据表中的数据,可以使用上游节点里的变量作为查询条件。",
321
367
  "Select status": "选择状态",
322
368
  "Select target workflow": "选择目标工作流",
323
369
  "Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": "从上游节点中选择查询出来的动态表达式。你需要从动态表达式类型的数据表中查询。",
@@ -341,6 +387,9 @@
341
387
  "Successfully finished.": "成功完成。",
342
388
  "Summary": "摘要",
343
389
  "Sync enabled status of all workflows from database": "从数据库同步所有工作流的启用状态",
390
+ "Sync remote code": "同步远程代码",
391
+ "Sync status": "同步状态",
392
+ "Synced": "已同步",
344
393
  "Synchronously": "同步",
345
394
  "Syntax references: ": "语法参考:",
346
395
  "System time": "系统时间",
@@ -350,6 +399,7 @@
350
399
  "Terminate the process": "终止流程",
351
400
  "Test": "测试",
352
401
  "Test execution ended": "测试执行结束",
402
+ "Test execution failed": "测试执行失败",
353
403
  "Test workflow": "测试工作流",
354
404
  "The Notified Person": "被通知人",
355
405
  "The approval or rejection by anyone of them is the result.": "任意一人通过或否决即为结果。",
@@ -430,6 +480,7 @@
430
480
  "is false": "为假",
431
481
  "is not empty": "不为空",
432
482
  "is true": "为真",
483
+ "keyName": "键名",
433
484
  "ms": "毫秒",
434
485
  "needAuthorization": "是否携带权限校验",
435
486
  "workflow Category": "工作流类别",