@nocobase/plugin-workflow 1.2.13-alpha → 1.3.0-alpha.20240710084543

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 (247) hide show
  1. package/package.json +3 -3
  2. package/dist/client/AddButton.d.ts +0 -16
  3. package/dist/client/Branch.d.ts +0 -17
  4. package/dist/client/CanvasContent.d.ts +0 -12
  5. package/dist/client/ExecutionCanvas.d.ts +0 -10
  6. package/dist/client/ExecutionContextProvider.d.ts +0 -15
  7. package/dist/client/ExecutionLink.d.ts +0 -10
  8. package/dist/client/ExecutionPage.d.ts +0 -10
  9. package/dist/client/ExecutionResourceProvider.d.ts +0 -14
  10. package/dist/client/FlowContext.d.ts +0 -11
  11. package/dist/client/WorkflowCanvas.d.ts +0 -10
  12. package/dist/client/WorkflowLink.d.ts +0 -10
  13. package/dist/client/WorkflowPage.d.ts +0 -10
  14. package/dist/client/WorkflowPane.d.ts +0 -10
  15. package/dist/client/components/AssignedFieldsFormSchemaConfig.d.ts +0 -10
  16. package/dist/client/components/CheckboxGroupWithTooltip.d.ts +0 -15
  17. package/dist/client/components/CollectionBlockInitializer.d.ts +0 -10
  18. package/dist/client/components/CollectionFieldset.d.ts +0 -14
  19. package/dist/client/components/DetailsBlockProvider.d.ts +0 -14
  20. package/dist/client/components/DrawerDescription.d.ts +0 -10
  21. package/dist/client/components/DrawerForm.d.ts +0 -13
  22. package/dist/client/components/ExecutionStatus.d.ts +0 -13
  23. package/dist/client/components/FieldsSelect.d.ts +0 -10
  24. package/dist/client/components/FilterDynamicComponent.d.ts +0 -14
  25. package/dist/client/components/OpenDrawer.d.ts +0 -14
  26. package/dist/client/components/RadioWithTooltip.d.ts +0 -15
  27. package/dist/client/components/SimpleDesigner.d.ts +0 -10
  28. package/dist/client/components/StatusButton.d.ts +0 -10
  29. package/dist/client/components/TriggerOptionRender.d.ts +0 -12
  30. package/dist/client/components/ValueBlock.d.ts +0 -14
  31. package/dist/client/components/index.d.ts +0 -16
  32. package/dist/client/components/renderEngineReference.d.ts +0 -10
  33. package/dist/client/constants.d.ts +0 -45
  34. package/dist/client/hooks/index.d.ts +0 -11
  35. package/dist/client/hooks/useGetAriaLabelOfAddButton.d.ts +0 -14
  36. package/dist/client/hooks/useRefreshActionProps.d.ts +0 -11
  37. package/dist/client/hooks/useTriggerWorkflowActionProps.d.ts +0 -20
  38. package/dist/client/hooks/useWorkflowExecuted.d.ts +0 -10
  39. package/dist/client/index.d.ts +0 -43
  40. package/dist/client/index.js +0 -569
  41. package/dist/client/locale/index.d.ts +0 -11
  42. package/dist/client/nodes/calculation.d.ts +0 -80
  43. package/dist/client/nodes/condition.d.ts +0 -108
  44. package/dist/client/nodes/create.d.ts +0 -110
  45. package/dist/client/nodes/destroy.d.ts +0 -54
  46. package/dist/client/nodes/end.d.ts +0 -30
  47. package/dist/client/nodes/index.d.ts +0 -76
  48. package/dist/client/nodes/query.d.ts +0 -236
  49. package/dist/client/nodes/update.d.ts +0 -114
  50. package/dist/client/schemas/collection.d.ts +0 -170
  51. package/dist/client/schemas/executions.d.ts +0 -282
  52. package/dist/client/schemas/workflows.d.ts +0 -10
  53. package/dist/client/settings/customizeSubmitToWorkflowActionSettings.d.ts +0 -10
  54. package/dist/client/style.d.ts +0 -30
  55. package/dist/client/triggers/collection.d.ts +0 -124
  56. package/dist/client/triggers/index.d.ts +0 -36
  57. package/dist/client/triggers/schedule/EndsByField.d.ts +0 -13
  58. package/dist/client/triggers/schedule/OnField.d.ts +0 -13
  59. package/dist/client/triggers/schedule/RepeatField.d.ts +0 -13
  60. package/dist/client/triggers/schedule/ScheduleConfig.d.ts +0 -10
  61. package/dist/client/triggers/schedule/constants.d.ts +0 -12
  62. package/dist/client/triggers/schedule/index.d.ts +0 -33
  63. package/dist/client/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -42
  64. package/dist/client/utils.d.ts +0 -12
  65. package/dist/client/variable.d.ts +0 -93
  66. package/dist/externalVersion.js +0 -34
  67. package/dist/index.d.ts +0 -10
  68. package/dist/index.js +0 -48
  69. package/dist/locale/en-US.json +0 -98
  70. package/dist/locale/es-ES.json +0 -98
  71. package/dist/locale/fr-FR.json +0 -98
  72. package/dist/locale/ja-JP.json +0 -82
  73. package/dist/locale/ko_KR.json +0 -168
  74. package/dist/locale/pt-BR.json +0 -98
  75. package/dist/locale/ru-RU.json +0 -82
  76. package/dist/locale/tr-TR.json +0 -82
  77. package/dist/locale/zh-CN.json +0 -205
  78. package/dist/node_modules/cron-parser/.eslintrc.json +0 -15
  79. package/dist/node_modules/cron-parser/.travis.yml +0 -7
  80. package/dist/node_modules/cron-parser/LICENSE +0 -21
  81. package/dist/node_modules/cron-parser/component.json +0 -11
  82. package/dist/node_modules/cron-parser/index.d.ts +0 -1
  83. package/dist/node_modules/cron-parser/lib/date.js +0 -252
  84. package/dist/node_modules/cron-parser/lib/expression.js +0 -983
  85. package/dist/node_modules/cron-parser/lib/field_compactor.js +0 -70
  86. package/dist/node_modules/cron-parser/lib/field_stringify.js +0 -38
  87. package/dist/node_modules/cron-parser/lib/parser.js +0 -1
  88. package/dist/node_modules/cron-parser/node_modules/luxon/build/amd/luxon.js +0 -8489
  89. package/dist/node_modules/cron-parser/node_modules/luxon/build/cjs-browser/luxon.js +0 -8487
  90. package/dist/node_modules/cron-parser/node_modules/luxon/build/global/luxon.js +0 -8490
  91. package/dist/node_modules/cron-parser/node_modules/luxon/build/global/luxon.min.js +0 -1
  92. package/dist/node_modules/cron-parser/node_modules/luxon/build/node/luxon.js +0 -7522
  93. package/dist/node_modules/cron-parser/node_modules/luxon/package.json +0 -96
  94. package/dist/node_modules/cron-parser/node_modules/luxon/src/datetime.js +0 -2169
  95. package/dist/node_modules/cron-parser/node_modules/luxon/src/duration.js +0 -880
  96. package/dist/node_modules/cron-parser/node_modules/luxon/src/errors.js +0 -61
  97. package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/conversions.js +0 -157
  98. package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/diff.js +0 -80
  99. package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/digits.js +0 -76
  100. package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/english.js +0 -233
  101. package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/formats.js +0 -191
  102. package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/formatter.js +0 -386
  103. package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/invalid.js +0 -14
  104. package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/locale.js +0 -482
  105. package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/regexParser.js +0 -335
  106. package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/tokenParser.js +0 -424
  107. package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/util.js +0 -292
  108. package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/zoneUtil.js +0 -36
  109. package/dist/node_modules/cron-parser/node_modules/luxon/src/info.js +0 -193
  110. package/dist/node_modules/cron-parser/node_modules/luxon/src/interval.js +0 -602
  111. package/dist/node_modules/cron-parser/node_modules/luxon/src/luxon.js +0 -26
  112. package/dist/node_modules/cron-parser/node_modules/luxon/src/luxonFilled.js +0 -13
  113. package/dist/node_modules/cron-parser/node_modules/luxon/src/settings.js +0 -137
  114. package/dist/node_modules/cron-parser/node_modules/luxon/src/zone.js +0 -88
  115. package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/IANAZone.js +0 -191
  116. package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/fixedOffsetZone.js +0 -94
  117. package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/invalidZone.js +0 -53
  118. package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/localZone.js +0 -63
  119. package/dist/node_modules/cron-parser/package.json +0 -1
  120. package/dist/node_modules/cron-parser/test/31_of_month.js +0 -17
  121. package/dist/node_modules/cron-parser/test/bug.js +0 -29
  122. package/dist/node_modules/cron-parser/test/crondate.js +0 -16
  123. package/dist/node_modules/cron-parser/test/crontab.example +0 -7
  124. package/dist/node_modules/cron-parser/test/empty_around_comma.js +0 -22
  125. package/dist/node_modules/cron-parser/test/expression.js +0 -1489
  126. package/dist/node_modules/cron-parser/test/field_compactor.js +0 -250
  127. package/dist/node_modules/cron-parser/test/field_stringify.js +0 -84
  128. package/dist/node_modules/cron-parser/test/fields.js +0 -32
  129. package/dist/node_modules/cron-parser/test/increment_on_first_iteration.js +0 -22
  130. package/dist/node_modules/cron-parser/test/index-ts3.test-d.ts +0 -133
  131. package/dist/node_modules/cron-parser/test/index.test-d.ts +0 -138
  132. package/dist/node_modules/cron-parser/test/leap_year.js +0 -17
  133. package/dist/node_modules/cron-parser/test/parser.js +0 -46
  134. package/dist/node_modules/cron-parser/test/parser_crondate_formats.js +0 -145
  135. package/dist/node_modules/cron-parser/test/parser_day_of_month.js +0 -169
  136. package/dist/node_modules/cron-parser/test/prev_date.js +0 -32
  137. package/dist/node_modules/cron-parser/test/stringify.js +0 -402
  138. package/dist/node_modules/cron-parser/test/timezone.js +0 -422
  139. package/dist/node_modules/cron-parser/types/common.d.ts +0 -131
  140. package/dist/node_modules/cron-parser/types/index.d.ts +0 -45
  141. package/dist/node_modules/cron-parser/types/ts3/index.d.ts +0 -28
  142. package/dist/node_modules/lru-cache/LICENSE +0 -15
  143. package/dist/node_modules/lru-cache/dist/cjs/index-cjs.d.ts +0 -7
  144. package/dist/node_modules/lru-cache/dist/cjs/index-cjs.js +0 -1
  145. package/dist/node_modules/lru-cache/dist/cjs/index.d.ts +0 -807
  146. package/dist/node_modules/lru-cache/dist/cjs/index.js +0 -1334
  147. package/dist/node_modules/lru-cache/dist/cjs/index.min.js +0 -2
  148. package/dist/node_modules/lru-cache/dist/cjs/package.json +0 -3
  149. package/dist/node_modules/lru-cache/dist/mjs/index.d.ts +0 -807
  150. package/dist/node_modules/lru-cache/dist/mjs/index.js +0 -1330
  151. package/dist/node_modules/lru-cache/dist/mjs/index.min.js +0 -2
  152. package/dist/node_modules/lru-cache/dist/mjs/package.json +0 -3
  153. package/dist/node_modules/lru-cache/package.json +0 -1
  154. package/dist/server/Plugin.d.ts +0 -84
  155. package/dist/server/Plugin.js +0 -503
  156. package/dist/server/Processor.d.ts +0 -115
  157. package/dist/server/Processor.js +0 -363
  158. package/dist/server/actions/executions.d.ts +0 -11
  159. package/dist/server/actions/executions.js +0 -96
  160. package/dist/server/actions/index.d.ts +0 -11
  161. package/dist/server/actions/index.js +0 -66
  162. package/dist/server/actions/nodes.d.ts +0 -12
  163. package/dist/server/actions/nodes.js +0 -217
  164. package/dist/server/actions/workflows.d.ts +0 -14
  165. package/dist/server/actions/workflows.js +0 -184
  166. package/dist/server/collections/executions.d.ts +0 -11
  167. package/dist/server/collections/executions.js +0 -66
  168. package/dist/server/collections/flow_nodes.d.ts +0 -11
  169. package/dist/server/collections/flow_nodes.js +0 -87
  170. package/dist/server/collections/jobs.d.ts +0 -11
  171. package/dist/server/collections/jobs.js +0 -66
  172. package/dist/server/collections/workflows.d.ts +0 -10
  173. package/dist/server/collections/workflows.js +0 -126
  174. package/dist/server/constants.d.ts +0 -29
  175. package/dist/server/constants.js +0 -58
  176. package/dist/server/functions/index.d.ts +0 -17
  177. package/dist/server/functions/index.js +0 -40
  178. package/dist/server/index.d.ts +0 -15
  179. package/dist/server/index.js +0 -60
  180. package/dist/server/instructions/CalculationInstruction.d.ts +0 -25
  181. package/dist/server/instructions/CalculationInstruction.js +0 -59
  182. package/dist/server/instructions/ConditionInstruction.d.ts +0 -36
  183. package/dist/server/instructions/ConditionInstruction.js +0 -167
  184. package/dist/server/instructions/CreateInstruction.d.ts +0 -18
  185. package/dist/server/instructions/CreateInstruction.js +0 -75
  186. package/dist/server/instructions/DestroyInstruction.d.ts +0 -18
  187. package/dist/server/instructions/DestroyInstruction.js +0 -59
  188. package/dist/server/instructions/EndInstruction.d.ts +0 -14
  189. package/dist/server/instructions/EndInstruction.js +0 -55
  190. package/dist/server/instructions/QueryInstruction.d.ts +0 -21
  191. package/dist/server/instructions/QueryInstruction.js +0 -82
  192. package/dist/server/instructions/UpdateInstruction.d.ts +0 -18
  193. package/dist/server/instructions/UpdateInstruction.js +0 -59
  194. package/dist/server/instructions/index.d.ts +0 -31
  195. package/dist/server/instructions/index.js +0 -42
  196. package/dist/server/migrations/20221129153547-calculation-variables.d.ts +0 -14
  197. package/dist/server/migrations/20221129153547-calculation-variables.js +0 -92
  198. package/dist/server/migrations/20230221032941-change-request-body-type.d.ts +0 -14
  199. package/dist/server/migrations/20230221032941-change-request-body-type.js +0 -102
  200. package/dist/server/migrations/20230221071831-calculation-expression.d.ts +0 -13
  201. package/dist/server/migrations/20230221071831-calculation-expression.js +0 -121
  202. package/dist/server/migrations/20230221121203-condition-calculation.d.ts +0 -13
  203. package/dist/server/migrations/20230221121203-condition-calculation.js +0 -106
  204. package/dist/server/migrations/20230221162902-jsonb-to-json.d.ts +0 -13
  205. package/dist/server/migrations/20230221162902-jsonb-to-json.js +0 -63
  206. package/dist/server/migrations/20230411034722-manual-multi-form.d.ts +0 -13
  207. package/dist/server/migrations/20230411034722-manual-multi-form.js +0 -283
  208. package/dist/server/migrations/20230612021134-manual-collection-block.d.ts +0 -13
  209. package/dist/server/migrations/20230612021134-manual-collection-block.js +0 -152
  210. package/dist/server/migrations/20230710115902-manual-action-values.d.ts +0 -13
  211. package/dist/server/migrations/20230710115902-manual-action-values.js +0 -101
  212. package/dist/server/migrations/20230809113132-workflow-options.d.ts +0 -13
  213. package/dist/server/migrations/20230809113132-workflow-options.js +0 -64
  214. package/dist/server/migrations/20231024172342-add-node-key.d.ts +0 -13
  215. package/dist/server/migrations/20231024172342-add-node-key.js +0 -90
  216. package/dist/server/migrations/20231122143143-split-to-plugins.d.ts +0 -13
  217. package/dist/server/migrations/20231122143143-split-to-plugins.js +0 -67
  218. package/dist/server/migrations/20240115220721-add-node-key-to-job.d.ts +0 -14
  219. package/dist/server/migrations/20240115220721-add-node-key-to-job.js +0 -63
  220. package/dist/server/migrations/20240613222612-fix-assign-field-config.d.ts +0 -13
  221. package/dist/server/migrations/20240613222612-fix-assign-field-config.js +0 -62
  222. package/dist/server/triggers/CollectionTrigger.d.ts +0 -22
  223. package/dist/server/triggers/CollectionTrigger.js +0 -184
  224. package/dist/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.d.ts +0 -39
  225. package/dist/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.js +0 -356
  226. package/dist/server/triggers/ScheduleTrigger/StaticScheduleTrigger.d.ts +0 -21
  227. package/dist/server/triggers/ScheduleTrigger/StaticScheduleTrigger.js +0 -152
  228. package/dist/server/triggers/ScheduleTrigger/index.d.ts +0 -18
  229. package/dist/server/triggers/ScheduleTrigger/index.js +0 -84
  230. package/dist/server/triggers/ScheduleTrigger/utils.d.ts +0 -13
  231. package/dist/server/triggers/ScheduleTrigger/utils.js +0 -44
  232. package/dist/server/triggers/index.d.ts +0 -21
  233. package/dist/server/triggers/index.js +0 -46
  234. package/dist/server/types/Execution.d.ts +0 -25
  235. package/dist/server/types/Execution.js +0 -34
  236. package/dist/server/types/FlowNode.d.ts +0 -24
  237. package/dist/server/types/FlowNode.js +0 -34
  238. package/dist/server/types/Job.d.ts +0 -22
  239. package/dist/server/types/Job.js +0 -34
  240. package/dist/server/types/Workflow.d.ts +0 -35
  241. package/dist/server/types/Workflow.js +0 -34
  242. package/dist/server/types/index.d.ts +0 -12
  243. package/dist/server/types/index.js +0 -24
  244. package/dist/server/utils.d.ts +0 -9
  245. package/dist/server/utils.js +0 -51
  246. package/dist/swagger/index.d.ts +0 -762
  247. package/dist/swagger/index.js +0 -807
@@ -1,205 +0,0 @@
1
- {
2
- "Workflow": "工作流",
3
- "Execution history": "执行历史",
4
- "Clear all executions": "清除所有执行记录",
5
- "Clear executions will not reset executed count, and started executions will not be deleted, are you sure you want to delete them all?":
6
- "清空执行记录不会重置执行次数,且执行中的也不会被删除,确定要删除所有执行记录吗?",
7
- "Executed": "已执行",
8
- "Sync": "同步",
9
- "Sync enabled status of all workflows from database": "从数据库同步所有工作流的启用状态",
10
- "Trigger type": "触发方式",
11
- "Status": "状态",
12
- "On": "启用",
13
- "Off": "停用",
14
- "Version": "版本",
15
- "Copy to new version": "复制到新版本",
16
- "Duplicate": "复制",
17
- "Duplicate to new workflow": "复制为新工作流",
18
- "Delete a main version will cause all other revisions to be deleted too.": "删除主版本将导致其他版本一并被删除。",
19
- "Loading": "加载中",
20
- "Load failed": "加载失败",
21
- "Use transaction": "启用事务",
22
- "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.":
23
- "工作流中的节点将在同一个事务中运行。任何失败都会导致数据回滚,同时也会回滚相应的执行历史。",
24
- "Auto delete history when execution is on end status": "执行结束后自动删除对应状态的历史记录",
25
- "Trigger": "触发器",
26
- "Unknown trigger": "未知触发器",
27
- "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.": "未知类型的工作流会导致错误,请删除或检查提供该类型的插件。",
28
- "Trigger variables": "触发器变量",
29
- "Trigger data": "触发数据",
30
- "Trigger time": "触发时间",
31
- "Triggered at": "触发时间",
32
-
33
- "Execute mode": "执行模式",
34
- "Execute workflow asynchronously or synchronously based on trigger type, and could not be changed after created.": "基于触发类型异步或同步执行工作流,创建后不可更改。",
35
- "Asynchronously": "异步",
36
- "Synchronously": "同步",
37
- "Will be executed in the background as a queued task.": "将作为队列任务在后台执行。",
38
- "For user actions that require immediate feedback. Can not use asynchronous nodes in such mode, and it is not recommended to perform time-consuming operations under synchronous mode.":
39
- "适用于需要即时反馈的用户操作。不能在此模式下使用异步节点,并且不建议在同步模式下执行耗时的操作。",
40
- "Go back": "返回",
41
- "Bind workflows": "绑定工作流",
42
- "Workflow will be triggered before or after submitting succeeded based on workflow type (supports pre/post action event in local mode, and approval event).": "工作流会基于其类型在提交成功之前或之后触发(支持局部模式的操作前、操作后事件,和审批事件)。",
43
- "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "按钮点击后直接触发工作流,但不会保存数据。仅支持绑定“自定义操作事件”。",
44
- "\"Submit to workflow\" to \"Post-action event\" is deprecated, please use \"Custom action event\" instead.": "“提交至工作流”到“操作后事件”的方式已被弃用,请使用“自定义操作事件”代替。",
45
- "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).": "删除成功之前触发工作流(支持操作前事件)。",
46
- "Submit to workflow": "提交至工作流",
47
- "Add workflow": "添加工作流",
48
- "Select workflow": "选择工作流",
49
- "Trigger data context": "触发数据上下文",
50
- "Full form data": "完整表单数据",
51
- "Select context": "选择上下文",
52
- "Collection event": "数据表事件",
53
- "Triggered when data changes in the collection, such as after adding, updating, or deleting a record. Unlike \"Post-action event\", Collection event listens for data changes rather than HTTP requests. Unless you understand the exact meaning, it is recommended to use \"Post-action event\".":
54
- "当数据表中的数据发生变化时触发,比如新增、更新或删除一条数据后。与“操作后事件”不同,数据表事件监听数据变动而不是 HTTP 请求,除非你明白确切含义,否则推荐使用“操作后事件”。",
55
- "Trigger on": "触发时机",
56
- "After record added": "新增数据后",
57
- "After record updated": "更新数据后",
58
- "After record added or updated": "新增或更新数据后",
59
- "After record deleted": "删除数据后",
60
- "Changed fields": "发生变动的字段",
61
- "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.":
62
- "只有被选中的某个字段发生变动时才会触发。如果不选择,则表示任何字段变动时都会触发。新增或删除数据时,任意字段都被认为发生变动。",
63
- "Only triggers when match conditions": "满足以下条件才触发",
64
- "Preload associations": "预加载关联数据",
65
- "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.":
66
- "请选中需要在后续节点中被访问的关系字段。超过两层的对多关联可能会导致性能问题,请谨慎使用。",
67
- "Schedule event": "定时任务",
68
- "Triggered according to preset time conditions. Suitable for one-time or periodic tasks, such as sending notifications and cleaning data on a schedule.": "按预设的时间条件定时触发。适用于一次性或周期性的任务,如定时发送通知、清理数据等。",
69
- "Trigger mode": "触发模式",
70
- "Based on certain date": "自定义时间",
71
- "Based on date field of collection": "根据数据表时间字段",
72
- "Starts on": "开始于",
73
- "Ends on": "结束于",
74
- "No end": "不结束",
75
- "Exactly at": "当时",
76
- "Repeat mode": "重复模式",
77
- "Repeat limit": "重复次数",
78
- "No limit": "不限",
79
- "Seconds": "秒",
80
- "Minutes": "分钟",
81
- "Hours": "小时",
82
- "Days": "天",
83
- "Weeks": "周",
84
- "Months": "月",
85
- "No repeat": "不重复",
86
- "Every": "每",
87
- "By minute": "按分钟",
88
- "By hour": "按小时",
89
- "By day": "按天",
90
- "By week": "按周",
91
- "By month": "按月",
92
- "By field": "数据表字段",
93
- "By custom date": "自定义时间",
94
- "Advanced": "高级模式",
95
- "End": "结束",
96
- "Node result": "节点数据",
97
- "Variable key of node": "节点变量标识",
98
- "Scope variables": "局域变量",
99
-
100
- "Operator": "运算符",
101
- "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.":
102
- "基于计算引擎对一个表达式进行计算,并获得一个值作为结果。表达式中可以使用上游节点里的变量。",
103
- "String operation": "字符串",
104
- "System variables": "系统变量",
105
- "System time": "系统时间",
106
- "Date variables": "日期变量",
107
-
108
- "Executed at": "执行于",
109
- "Queueing": "队列中",
110
- "On going": "进行中",
111
- "Resolved": "完成",
112
- "Pending": "待处理",
113
- "Failed": "失败",
114
- "Error": "出错",
115
- "Aborted": "已终止",
116
- "Canceled": "已取消",
117
- "Rejected": "已拒绝",
118
- "Retry needed": "需重试",
119
-
120
- "Triggered but still waiting in queue to execute.": "已触发但仍在队列中等待执行。",
121
- "Started and executing, maybe waiting for an async callback (manual, delay etc.).":
122
- "已开始执行,可能在等待异步回调(人工、延时等)。",
123
- "Successfully finished.": "成功完成。",
124
- "Failed to satisfy node configurations.": "未满足节点配置造成的失败。",
125
- "Some node meets error.": "某个节点出错。",
126
- "Running of some node was aborted by program flow.": "某个节点被程序流程终止。",
127
- "Manually canceled whole execution when waiting.": "等待时被手动取消整个执行。",
128
- "Rejected from a manual node.": "被人工节点拒绝继续。",
129
- "General failed but should do another try.": "执行失败,需重试。",
130
-
131
- "Cancel the execution": "取消执行",
132
- "Are you sure you want to cancel the execution?": "确定要取消该执行吗?",
133
-
134
- "Operations": "操作",
135
- "This node contains branches, deleting will also be preformed to them, are you sure?":
136
- "节点包含分支,将同时删除其所有分支下的子节点,确定继续?",
137
- "Control": "流程控制",
138
- "Collection operations": "数据表操作",
139
- "Manual": "人工处理",
140
- "Extended types": "扩展类型",
141
- "Node type": "节点类型",
142
- "Unknown node": "未知节点",
143
- "Node with unknown type will cause error. Please delete it or check plugin which provide this type.": "未知类型的节点会导致错误,请删除或检查提供该类型的插件。",
144
- "Calculation": "运算",
145
- "Calculation engine": "运算引擎",
146
- "Basic": "基础",
147
- "Calculation expression": "运算表达式",
148
- "Expression syntax error": "表达式语法错误",
149
- "Syntax references: ": "语法参考:",
150
- "Calculation result": "运算结果",
151
- "True": "真",
152
- "False": "假",
153
- "concat": "连接",
154
- "Condition": "条件判断",
155
- "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\".":
156
- "基于运算结果的真假来决定“继续”或“退出”流程,或者在“是”与“否”的分支上分别继续。",
157
- "Mode": "模式",
158
- "Continue when \"Yes\"": "“是”则继续",
159
- "Branch into \"Yes\" and \"No\"": "“是”和“否”分别继续",
160
- "Condition expression": "条件表达式",
161
- "Create record": "新增数据",
162
- "Add new record to a collection. You can use variables from upstream nodes to assign values to fields.":
163
- "向一个数据表中添加新的数据。可以使用上游节点里的变量为字段赋值。",
164
- "Update record": "更新数据",
165
- "Update records of a collection. You can use variables from upstream nodes as query conditions and field values.":
166
- "更新一个数据表中的数据。可以使用上游节点里的变量作为查询条件和数据值。",
167
- "Update mode": "更新模式",
168
- "Update in a batch": "批量更新",
169
- "Update one by one": "逐条更新",
170
- "Update all eligible data at one time, which has better performance when the amount of data is large. But the updated data will not trigger other workflows, and will not record audit logs.":
171
- "一次性更新所有符合条件的数据,在数据量较大时有比较好的性能;但被更新的数据不会触发其他工作流,也不会记录更新日志。",
172
- "The updated data can trigger other workflows, and the audit log will also be recorded. But it is usually only applicable to several or dozens of pieces of data, otherwise there will be performance problems.":
173
- "被更新的数据可以再次触发其他工作流,也会记录更新日志;但通常只适用于数条或数十条数据,否则会有性能问题。",
174
- "Query record": "查询数据",
175
- "Query records from a collection. You can use variables from upstream nodes as query conditions.":
176
- "查询一个数据表中的数据。可以使用上游节点里的变量作为查询条件。",
177
- "Allow multiple records as result": "允许结果是多条数据",
178
- "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.":
179
- "选中后,当查询结果有多条记录时,会返回数组作为结果,可以使用循环节点对它逐条操作;否则,仅返回一条数据。",
180
- "Result type": "结果类型",
181
- "Single record": "单条数据",
182
- "Multiple records": "多条数据",
183
- "The result will be an object of the first matching record only, or null if no matched record.": "结果是一个对象,仅为首条匹配的记录,或空值。",
184
- "The result will be an array containing matched records, or an empty one if no matching records. This can be used to be processed in a loop node.": "结果会是一个数组,包含匹配条件的记录,没有匹配记录则为空数组。可以通过循环节点逐个处理。",
185
- "Exit when query result is null": "查询结果为空时,退出流程",
186
- "Please select collection first": "请先选择数据表",
187
- "Only update records matching conditions": "只更新满足条件的数据",
188
- "Please add at least one condition": "请添加至少一个条件",
189
- "Unassigned fields will be set to default values, and those without default values will be set to null.":
190
- "未被赋值的字段将被设置为默认值,没有默认值的设置为空值。",
191
-
192
- "Delete record": "删除数据",
193
- "Delete records of a collection. Could use variables in workflow context as filter. All records match the filter will be deleted.":
194
- "删除一个数据表中的数据。可以使用上游节点里的变量作为过滤条件。所有满足条件的数据都将被删除。",
195
-
196
- "Executed workflow cannot be modified. Could be copied to a new version to modify.": "已经执行过的工作流不能被修改,可通过复制到新版本后再修改。",
197
- "Can not delete": "无法删除",
198
- "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.":
199
- "该节点的执行结果已被其他节点({{nodes}})引用,删除前请先移除引用。",
200
-
201
- "End process": "结束流程",
202
- "End the process immediately, with set status.": "以设置的状态立即结束流程。",
203
- "End status": "结束状态",
204
- "Succeeded": "成功"
205
- }
@@ -1,15 +0,0 @@
1
- {
2
- "rules": {
3
- "eol-last": ["error", "always"],
4
- "quotes": ["error", "single"],
5
- "semi": ["error", "always"]
6
- },
7
- "overrides": [
8
- {
9
- "files": ["test/**.js"],
10
- "parserOptions": {
11
- "ecmaVersion": 6
12
- }
13
- }
14
- ]
15
- }
@@ -1,7 +0,0 @@
1
- language: node_js
2
- node_js:
3
- - '12'
4
- - '14'
5
- - '15'
6
- - '16'
7
- - '17'
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014-2016 Harri Siirak
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,11 +0,0 @@
1
- {
2
- "name": "cron-parser",
3
- "repo": "harrisiirak/cron-parser",
4
- "description": "Node.js library for parsing crontab instructions",
5
- "version": "4.3.0",
6
- "keywords": ["cron", "crontab", "parser"],
7
- "dependencies": {},
8
- "development": {},
9
- "main": "lib/parser.js",
10
- "scripts": ["lib/parser.js", "lib/expression.js", "lib/date.js", "lib/field_compactor.js", "lib/field_stringify.js"]
11
- }
@@ -1 +0,0 @@
1
- export * from './types'
@@ -1,252 +0,0 @@
1
- 'use strict';
2
-
3
- var luxon = require('luxon');
4
-
5
- CronDate.prototype.addYear = function() {
6
- this._date = this._date.plus({ years: 1 });
7
- };
8
-
9
- CronDate.prototype.addMonth = function() {
10
- this._date = this._date.plus({ months: 1 }).startOf('month');
11
- };
12
-
13
- CronDate.prototype.addDay = function() {
14
- this._date = this._date.plus({ days: 1 }).startOf('day');
15
- };
16
-
17
- CronDate.prototype.addHour = function() {
18
- var prev = this._date;
19
- this._date = this._date.plus({ hours: 1 }).startOf('hour');
20
- if (this._date <= prev) {
21
- this._date = this._date.plus({ hours: 1 });
22
- }
23
- };
24
-
25
- CronDate.prototype.addMinute = function() {
26
- var prev = this._date;
27
- this._date = this._date.plus({ minutes: 1 }).startOf('minute');
28
- if (this._date < prev) {
29
- this._date = this._date.plus({ hours: 1 });
30
- }
31
- };
32
-
33
- CronDate.prototype.addSecond = function() {
34
- var prev = this._date;
35
- this._date = this._date.plus({ seconds: 1 }).startOf('second');
36
- if (this._date < prev) {
37
- this._date = this._date.plus({ hours: 1 });
38
- }
39
- };
40
-
41
- CronDate.prototype.subtractYear = function() {
42
- this._date = this._date.minus({ years: 1 });
43
- };
44
-
45
- CronDate.prototype.subtractMonth = function() {
46
- this._date = this._date
47
- .minus({ months: 1 })
48
- .endOf('month')
49
- .startOf('second');
50
- };
51
-
52
- CronDate.prototype.subtractDay = function() {
53
- this._date = this._date
54
- .minus({ days: 1 })
55
- .endOf('day')
56
- .startOf('second');
57
- };
58
-
59
- CronDate.prototype.subtractHour = function() {
60
- var prev = this._date;
61
- this._date = this._date
62
- .minus({ hours: 1 })
63
- .endOf('hour')
64
- .startOf('second');
65
- if (this._date >= prev) {
66
- this._date = this._date.minus({ hours: 1 });
67
- }
68
- };
69
-
70
- CronDate.prototype.subtractMinute = function() {
71
- var prev = this._date;
72
- this._date = this._date.minus({ minutes: 1 })
73
- .endOf('minute')
74
- .startOf('second');
75
- if (this._date > prev) {
76
- this._date = this._date.minus({ hours: 1 });
77
- }
78
- };
79
-
80
- CronDate.prototype.subtractSecond = function() {
81
- var prev = this._date;
82
- this._date = this._date
83
- .minus({ seconds: 1 })
84
- .startOf('second');
85
- if (this._date > prev) {
86
- this._date = this._date.minus({ hours: 1 });
87
- }
88
- };
89
-
90
- CronDate.prototype.getDate = function() {
91
- return this._date.day;
92
- };
93
-
94
- CronDate.prototype.getFullYear = function() {
95
- return this._date.year;
96
- };
97
-
98
- CronDate.prototype.getDay = function() {
99
- var weekday = this._date.weekday;
100
- return weekday == 7 ? 0 : weekday;
101
- };
102
-
103
- CronDate.prototype.getMonth = function() {
104
- return this._date.month - 1;
105
- };
106
-
107
- CronDate.prototype.getHours = function() {
108
- return this._date.hour;
109
- };
110
-
111
- CronDate.prototype.getMinutes = function() {
112
- return this._date.minute;
113
- };
114
-
115
- CronDate.prototype.getSeconds = function() {
116
- return this._date.second;
117
- };
118
-
119
- CronDate.prototype.getMilliseconds = function() {
120
- return this._date.millisecond;
121
- };
122
-
123
- CronDate.prototype.getTime = function() {
124
- return this._date.valueOf();
125
- };
126
-
127
- CronDate.prototype.getUTCDate = function() {
128
- return this._getUTC().day;
129
- };
130
-
131
- CronDate.prototype.getUTCFullYear = function() {
132
- return this._getUTC().year;
133
- };
134
-
135
- CronDate.prototype.getUTCDay = function() {
136
- var weekday = this._getUTC().weekday;
137
- return weekday == 7 ? 0 : weekday;
138
- };
139
-
140
- CronDate.prototype.getUTCMonth = function() {
141
- return this._getUTC().month - 1;
142
- };
143
-
144
- CronDate.prototype.getUTCHours = function() {
145
- return this._getUTC().hour;
146
- };
147
-
148
- CronDate.prototype.getUTCMinutes = function() {
149
- return this._getUTC().minute;
150
- };
151
-
152
- CronDate.prototype.getUTCSeconds = function() {
153
- return this._getUTC().second;
154
- };
155
-
156
- CronDate.prototype.toISOString = function() {
157
- return this._date.toUTC().toISO();
158
- };
159
-
160
- CronDate.prototype.toJSON = function() {
161
- return this._date.toJSON();
162
- };
163
-
164
- CronDate.prototype.setDate = function(d) {
165
- this._date = this._date.set({ day: d });
166
- };
167
-
168
- CronDate.prototype.setFullYear = function(y) {
169
- this._date = this._date.set({ year: y });
170
- };
171
-
172
- CronDate.prototype.setDay = function(d) {
173
- this._date = this._date.set({ weekday: d });
174
- };
175
-
176
- CronDate.prototype.setMonth = function(m) {
177
- this._date = this._date.set({ month: m + 1 });
178
- };
179
-
180
- CronDate.prototype.setHours = function(h) {
181
- this._date = this._date.set({ hour: h });
182
- };
183
-
184
- CronDate.prototype.setMinutes = function(m) {
185
- this._date = this._date.set({ minute: m });
186
- };
187
-
188
- CronDate.prototype.setSeconds = function(s) {
189
- this._date = this._date.set({ second: s });
190
- };
191
-
192
- CronDate.prototype.setMilliseconds = function(s) {
193
- this._date = this._date.set({ millisecond: s });
194
- };
195
-
196
- CronDate.prototype._getUTC = function() {
197
- return this._date.toUTC();
198
- };
199
-
200
- CronDate.prototype.toString = function() {
201
- return this.toDate().toString();
202
- };
203
-
204
- CronDate.prototype.toDate = function() {
205
- return this._date.toJSDate();
206
- };
207
-
208
- CronDate.prototype.isLastDayOfMonth = function() {
209
- //next day
210
- var newDate = this._date.plus({ days: 1 }).startOf('day');
211
- return this._date.month !== newDate.month;
212
- };
213
-
214
- /**
215
- * Returns true when the current weekday is the last occurrence of this weekday
216
- * for the present month.
217
- */
218
- CronDate.prototype.isLastWeekdayOfMonth = function() {
219
- // Check this by adding 7 days to the current date and seeing if it's
220
- // a different month
221
- var newDate = this._date.plus({ days: 7 }).startOf('day');
222
- return this._date.month !== newDate.month;
223
- };
224
-
225
- function CronDate (timestamp, tz) {
226
- var dateOpts = { zone: tz };
227
- if (!timestamp) {
228
- this._date = luxon.DateTime.local();
229
- } else if (timestamp instanceof CronDate) {
230
- this._date = timestamp._date;
231
- } else if (timestamp instanceof Date) {
232
- this._date = luxon.DateTime.fromJSDate(timestamp, dateOpts);
233
- } else if (typeof timestamp === 'number') {
234
- this._date = luxon.DateTime.fromMillis(timestamp, dateOpts);
235
- } else if (typeof timestamp === 'string') {
236
- this._date = luxon.DateTime.fromISO(timestamp, dateOpts);
237
- this._date.isValid || (this._date = luxon.DateTime.fromRFC2822(timestamp, dateOpts));
238
- this._date.isValid || (this._date = luxon.DateTime.fromSQL(timestamp, dateOpts));
239
- // RFC2822-like format without the required timezone offset (used in tests)
240
- this._date.isValid || (this._date = luxon.DateTime.fromFormat(timestamp, 'EEE, d MMM yyyy HH:mm:ss', dateOpts));
241
- }
242
-
243
- if (!this._date || !this._date.isValid) {
244
- throw new Error('CronDate: unhandled timestamp: ' + JSON.stringify(timestamp));
245
- }
246
-
247
- if (tz && tz !== this._date.zoneName) {
248
- this._date = this._date.setZone(tz);
249
- }
250
- }
251
-
252
- module.exports = CronDate;