@nocobase/plugin-workflow 2.2.0-beta.14 → 2.2.0-beta.15

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 (242) hide show
  1. package/client-v2.d.ts +2 -0
  2. package/client-v2.js +1 -0
  3. package/dist/client/119.e7dbd037d52d1286.js +10 -0
  4. package/dist/client/142.fb4936d78fc80007.js +10 -0
  5. package/dist/client/159.cc9a0f2d92cab2c1.js +10 -0
  6. package/dist/client/276.69fb2aea13bc7c37.js +10 -0
  7. package/dist/client/346.66d060d37843d3d1.js +10 -0
  8. package/dist/client/382.d37fba14a6b91b0b.js +10 -0
  9. package/dist/client/394.a37310b78419ad7a.js +10 -0
  10. package/dist/client/438.6c6409d821d8c353.js +10 -0
  11. package/dist/client/509.88792f5bd054b2af.js +10 -0
  12. package/dist/client/54.d81b710f7b4c1cd5.js +10 -0
  13. package/dist/client/618.1aa6c21d0f2840cb.js +10 -0
  14. package/dist/client/635.ff6085589e23d39b.js +10 -0
  15. package/dist/client/67.56a3d15a55ab7d5c.js +10 -0
  16. package/dist/client/719.f011fde3ad54571e.js +10 -0
  17. package/dist/client/728.711fd4f1ed7d4e6a.js +10 -0
  18. package/dist/client/739.49407722fca8d236.js +10 -0
  19. package/dist/client/759.13aab01e6912ed8d.js +10 -0
  20. package/dist/client/772.1ebaef11a0ac8688.js +10 -0
  21. package/dist/client/782.47792ce10fc0d5fb.js +10 -0
  22. package/dist/client/828.6880ab21513b1968.js +10 -0
  23. package/dist/client/87.083467b89aaf3e53.js +10 -0
  24. package/dist/client/938.26493fc09ba1ccbc.js +10 -0
  25. package/dist/client/964.5ab736effd480a42.js +10 -0
  26. package/dist/client/972.dd7f074d5f12e171.js +10 -0
  27. package/dist/client/AddNodeContext.d.ts +1 -9
  28. package/dist/client/BranchContext.d.ts +2 -10
  29. package/dist/client/FlowContext.d.ts +10 -5
  30. package/dist/client/NodeClipboardContext.d.ts +12 -2
  31. package/dist/client/NodeDragContext.d.ts +14 -2
  32. package/dist/client/RemoveNodeContext.d.ts +16 -2
  33. package/dist/client/index.d.ts +1 -1
  34. package/dist/client/index.js +1 -1
  35. package/dist/client/nodeVariableUtils.d.ts +7 -6
  36. package/dist/client/nodes/calculation.d.ts +3 -75
  37. package/dist/client/nodes/condition.d.ts +7 -111
  38. package/dist/client/nodes/create.d.ts +3 -124
  39. package/dist/client/nodes/destroy.d.ts +2 -57
  40. package/dist/client/nodes/end.d.ts +2 -23
  41. package/dist/client/nodes/index.d.ts +2 -91
  42. package/dist/client/nodes/multi-conditions.d.ts +10 -48
  43. package/dist/client/nodes/output.d.ts +2 -44
  44. package/dist/client/nodes/query.d.ts +3 -255
  45. package/dist/client/nodes/update.d.ts +2 -117
  46. package/dist/client/style.d.ts +7 -27
  47. package/dist/client/triggers/collection.d.ts +3 -181
  48. package/dist/client/triggers/index.d.ts +2 -36
  49. package/dist/client/triggers/schedule/index.d.ts +8 -65
  50. package/dist/client/utils.d.ts +4 -5
  51. package/dist/client/variable.d.ts +7 -53
  52. package/dist/client-v2/119.81195bcd0d451279.js +10 -0
  53. package/dist/client-v2/142.a8c8df2a9abb43c5.js +10 -0
  54. package/dist/client-v2/159.cb221540c286cd32.js +10 -0
  55. package/dist/client-v2/276.7f746d899e221e2f.js +10 -0
  56. package/dist/client-v2/326.bdc99ad8e7590970.js +10 -0
  57. package/dist/client-v2/346.8c038b3c99d4fdc9.js +10 -0
  58. package/dist/client-v2/382.05f5482bb512b179.js +10 -0
  59. package/dist/client-v2/387.5e61d648d16dbf1b.js +10 -0
  60. package/dist/client-v2/394.515ed058e7f72797.js +10 -0
  61. package/dist/client-v2/438.b7df0416b66f8f64.js +10 -0
  62. package/dist/client-v2/513.617697f74783a611.js +10 -0
  63. package/dist/client-v2/54.d3daf06e53092726.js +10 -0
  64. package/dist/client-v2/635.14a6f21cf4f16345.js +10 -0
  65. package/dist/client-v2/677.7382807126d9621a.js +10 -0
  66. package/dist/client-v2/719.05cf070ef89a78f4.js +10 -0
  67. package/dist/client-v2/728.4e8322ff8fce87b9.js +10 -0
  68. package/dist/client-v2/739.5b60845103064f8d.js +10 -0
  69. package/dist/client-v2/759.7b162ad3adf450f1.js +10 -0
  70. package/dist/client-v2/772.8e5148d8c1518449.js +10 -0
  71. package/dist/client-v2/938.717e47af39485b29.js +10 -0
  72. package/dist/client-v2/ExecutionCanvas.d.ts +15 -0
  73. package/dist/client-v2/canvas/AddNodeContext.d.ts +35 -0
  74. package/dist/client-v2/canvas/AddNodeContext.shared.d.ts +33 -0
  75. package/dist/client-v2/canvas/AddNodeSlot.d.ts +20 -0
  76. package/dist/client-v2/canvas/Branch.d.ts +32 -0
  77. package/dist/client-v2/canvas/BranchContext.d.ts +29 -0
  78. package/dist/client-v2/canvas/BranchRenderContext.d.ts +14 -0
  79. package/dist/client-v2/canvas/CanvasContent.d.ts +20 -0
  80. package/dist/client-v2/canvas/DownstreamBranchIndex.d.ts +20 -0
  81. package/dist/client-v2/canvas/Instruction.d.ts +139 -0
  82. package/dist/{client/triggers/schedule/EndsByField.d.ts → client-v2/canvas/JobButton.d.ts} +3 -3
  83. package/dist/client-v2/canvas/Node.d.ts +38 -0
  84. package/dist/client-v2/canvas/NodeClipboardContext.d.ts +64 -0
  85. package/dist/client-v2/canvas/NodeConfigDrawer.d.ts +27 -0
  86. package/dist/client-v2/canvas/NodeDragContext.d.ts +83 -0
  87. package/dist/client-v2/canvas/RemoveNodeContext.d.ts +45 -0
  88. package/dist/client-v2/canvas/WorkflowTypedVariableInput.d.ts +16 -0
  89. package/dist/client-v2/canvas/WorkflowVariableInput.d.ts +40 -0
  90. package/dist/client-v2/canvas/WorkflowVariableJsonTextArea.d.ts +15 -0
  91. package/dist/client-v2/canvas/WorkflowVariableTag.d.ts +22 -0
  92. package/dist/client-v2/canvas/WorkflowVariableTextArea.d.ts +18 -0
  93. package/dist/client-v2/canvas/adaptVariableOptionToMetaTree.d.ts +48 -0
  94. package/dist/client-v2/canvas/addNodeController.d.ts +70 -0
  95. package/dist/client-v2/canvas/collectionFieldOptions.d.ts +57 -0
  96. package/dist/client-v2/canvas/contexts.d.ts +86 -0
  97. package/dist/client-v2/canvas/dropImpact.d.ts +28 -0
  98. package/dist/client-v2/canvas/instructionAvailability.d.ts +26 -0
  99. package/dist/client-v2/canvas/nodeRenderDispatch.d.ts +79 -0
  100. package/dist/client-v2/canvas/nodeTree.d.ts +21 -0
  101. package/dist/client-v2/canvas/nodeVariableUtils.d.ts +14 -0
  102. package/dist/client-v2/canvas/removeNodeUtils.d.ts +31 -0
  103. package/dist/client-v2/canvas/style.d.ts +35 -0
  104. package/dist/client-v2/canvas/textAreaInsertion.d.ts +14 -0
  105. package/dist/client-v2/canvas/useWorkflowInstruction.d.ts +23 -0
  106. package/dist/client-v2/canvas/useWorkflowVariableOptions.d.ts +40 -0
  107. package/dist/client-v2/canvas/workflowVariableConverters.d.ts +13 -0
  108. package/dist/client-v2/components/Calculation.d.ts +18 -0
  109. package/dist/client-v2/components/ExecutionStatusIcon.d.ts +18 -0
  110. package/dist/{client/triggers/schedule/RepeatField.d.ts → client-v2/components/ExecutionStatusTag.d.ts} +3 -4
  111. package/dist/client-v2/components/ExecutionViewHeader.d.ts +29 -0
  112. package/dist/client-v2/components/ExecutionsDropdown.d.ts +25 -0
  113. package/dist/client-v2/components/FilterDynamicComponent.d.ts +28 -0
  114. package/dist/client-v2/components/HideVariableContext.d.ts +11 -0
  115. package/dist/client-v2/components/JobResultModal.d.ts +11 -0
  116. package/dist/client-v2/components/RadioWithTooltip.d.ts +23 -0
  117. package/dist/client-v2/components/SyncModeSelect.d.ts +16 -0
  118. package/dist/{client/triggers/schedule/OnField.d.ts → client-v2/components/SyncModeTag.d.ts} +3 -3
  119. package/dist/client-v2/components/TestRunButton.d.ts +36 -0
  120. package/dist/client-v2/components/TimeoutInput.d.ts +15 -0
  121. package/dist/client-v2/components/WorkflowCanvasHeader.d.ts +17 -0
  122. package/dist/client-v2/components/WorkflowDetailsModal.d.ts +25 -0
  123. package/dist/client-v2/components/WorkflowEnabledSwitch.d.ts +16 -0
  124. package/dist/client-v2/components/WorkflowMenu.d.ts +17 -0
  125. package/dist/client-v2/components/WorkflowRevisionsDropdown.d.ts +15 -0
  126. package/dist/client-v2/components/WorkflowVariableWrapper.d.ts +25 -0
  127. package/dist/client-v2/components/collection/AppendsSelect.d.ts +15 -0
  128. package/dist/client-v2/components/collection/AssignedFieldsEditor.d.ts +24 -0
  129. package/dist/client-v2/components/collection/CollectionCascader.d.ts +15 -0
  130. package/dist/client-v2/components/collection/FieldsSelect.d.ts +16 -0
  131. package/dist/client-v2/components/collection/PaginationFields.d.ts +14 -0
  132. package/dist/client-v2/components/collection/SortFieldsInput.d.ts +19 -0
  133. package/dist/client-v2/components/collection/TriggerCollectionRecordSelect.d.ts +15 -0
  134. package/dist/client-v2/components/collection/index.d.ts +16 -0
  135. package/dist/client-v2/components/collection/utils.d.ts +42 -0
  136. package/dist/client-v2/components/formatResultForDisplay.d.ts +17 -0
  137. package/dist/client-v2/components/jobStatus.d.ts +27 -0
  138. package/dist/client-v2/components/renderEngineReference.d.ts +10 -0
  139. package/dist/client-v2/components/workflowCanvas.d.ts +41 -0
  140. package/dist/client-v2/constants.d.ts +19 -0
  141. package/dist/client-v2/hooks/useWorkflowRuntimePaths.d.ts +16 -0
  142. package/dist/client-v2/index.d.ts +48 -0
  143. package/dist/client-v2/index.js +10 -0
  144. package/dist/client-v2/locale.d.ts +41 -0
  145. package/dist/{client → client-v2}/models/NodeDetailsGridModel.d.ts +1 -1
  146. package/dist/{client → client-v2}/models/NodeDetailsModel.d.ts +1 -1
  147. package/dist/{client → client-v2}/models/NodeValueModel.d.ts +1 -1
  148. package/dist/{client → client-v2}/models/TaskCardCommonItemModel.d.ts +1 -1
  149. package/dist/client-v2/models/WorkflowTasksTopbarActionModel.d.ts +18 -0
  150. package/dist/{client → client-v2}/models/index.d.ts +2 -0
  151. package/dist/client-v2/models/triggerWorkflows.d.ts +43 -0
  152. package/dist/client-v2/nodes/calculation.d.ts +38 -0
  153. package/dist/client-v2/nodes/collectionNode.d.ts +29 -0
  154. package/dist/client-v2/nodes/components/calculation.d.ts +11 -0
  155. package/dist/client-v2/nodes/components/collection.d.ts +15 -0
  156. package/dist/client-v2/nodes/components/condition.d.ts +25 -0
  157. package/dist/client-v2/nodes/components/conditionShared.d.ts +20 -0
  158. package/dist/client-v2/nodes/components/create.d.ts +12 -0
  159. package/dist/client-v2/nodes/components/destroy.d.ts +12 -0
  160. package/dist/{client/triggers/schedule/ScheduleConfig.d.ts → client-v2/nodes/components/end.d.ts} +1 -1
  161. package/dist/client-v2/nodes/components/filter.d.ts +17 -0
  162. package/dist/client-v2/nodes/components/multi-conditions.d.ts +13 -0
  163. package/dist/client-v2/nodes/components/multiConditionsShared.d.ts +20 -0
  164. package/dist/client-v2/nodes/components/output.d.ts +10 -0
  165. package/dist/client-v2/nodes/components/query.d.ts +12 -0
  166. package/dist/client-v2/nodes/components/update.d.ts +12 -0
  167. package/dist/client-v2/nodes/condition.d.ts +46 -0
  168. package/dist/client-v2/nodes/create.d.ts +30 -0
  169. package/dist/client-v2/nodes/destroy.d.ts +24 -0
  170. package/dist/client-v2/nodes/end.d.ts +21 -0
  171. package/dist/client-v2/nodes/multi-conditions.d.ts +34 -0
  172. package/dist/client-v2/nodes/output.d.ts +29 -0
  173. package/dist/client-v2/nodes/query.d.ts +32 -0
  174. package/dist/client-v2/nodes/update.d.ts +25 -0
  175. package/dist/client-v2/pages/ExecutionHistoryDrawer.d.ts +13 -0
  176. package/dist/client-v2/pages/ExecutionViewPage.d.ts +10 -0
  177. package/dist/client-v2/pages/WorkflowCanvasPage.d.ts +10 -0
  178. package/dist/client-v2/pages/WorkflowCategoryTabs.d.ts +25 -0
  179. package/dist/client-v2/pages/WorkflowFormDrawer.d.ts +40 -0
  180. package/dist/client-v2/pages/WorkflowPane.d.ts +10 -0
  181. package/dist/client-v2/pages/WorkflowTasksPage.d.ts +10 -0
  182. package/dist/client-v2/plugin.d.ts +119 -0
  183. package/dist/client-v2/taskCenter.d.ts +105 -0
  184. package/dist/client-v2/triggers/ExecuteWorkflowButton.d.ts +35 -0
  185. package/dist/client-v2/triggers/TriggerConfig.d.ts +22 -0
  186. package/dist/client-v2/triggers/TriggerExecutionButton.d.ts +13 -0
  187. package/dist/client-v2/triggers/collection/CollectionConfig.d.ts +14 -0
  188. package/dist/client-v2/triggers/collection/TriggerCollectionConfig.d.ts +11 -0
  189. package/dist/client-v2/triggers/collection/constants.d.ts +28 -0
  190. package/dist/client-v2/triggers/collection/index.d.ts +40 -0
  191. package/dist/client-v2/triggers/index.d.ts +63 -0
  192. package/dist/client-v2/triggers/schedule/EndsByField.d.ts +17 -0
  193. package/dist/client-v2/triggers/schedule/OnField.d.ts +20 -0
  194. package/dist/client-v2/triggers/schedule/RepeatField.d.ts +23 -0
  195. package/dist/client-v2/triggers/schedule/ScheduleConfig.d.ts +17 -0
  196. package/dist/client-v2/triggers/schedule/ScheduleModes.d.ts +41 -0
  197. package/dist/{client → client-v2}/triggers/schedule/TriggerScheduleConfig.d.ts +1 -0
  198. package/dist/{client → client-v2}/triggers/schedule/constants.d.ts +8 -5
  199. package/dist/client-v2/triggers/schedule/index.d.ts +40 -0
  200. package/dist/client-v2/triggers/schedule/locale/Cron.zh-CN.d.ts +11 -0
  201. package/dist/client-v2/utils/contextSingleton.d.ts +9 -0
  202. package/dist/common/collections/workflows.d.ts +16 -0
  203. package/dist/common/collections/workflows.js +5 -0
  204. package/dist/common/defaultWorkflowFilter.d.ts +21 -0
  205. package/dist/common/defaultWorkflowFilter.js +38 -0
  206. package/dist/common/executionStatus.d.ts +44 -0
  207. package/dist/common/executionStatus.js +133 -0
  208. package/dist/externalVersion.js +16 -13
  209. package/dist/locale/de-DE.json +14 -1
  210. package/dist/locale/en-US.json +25 -1
  211. package/dist/locale/es-ES.json +14 -1
  212. package/dist/locale/fr-FR.json +14 -1
  213. package/dist/locale/hu-HU.json +14 -1
  214. package/dist/locale/id-ID.json +14 -1
  215. package/dist/locale/it-IT.json +14 -1
  216. package/dist/locale/ja-JP.json +14 -1
  217. package/dist/locale/ko-KR.json +14 -1
  218. package/dist/locale/nl-NL.json +14 -1
  219. package/dist/locale/pt-BR.json +14 -1
  220. package/dist/locale/ru-RU.json +14 -1
  221. package/dist/locale/tr-TR.json +14 -1
  222. package/dist/locale/uk-UA.json +14 -1
  223. package/dist/locale/vi-VN.json +14 -1
  224. package/dist/locale/zh-CN.json +24 -1
  225. package/dist/locale/zh-TW.json +20 -1
  226. package/dist/node_modules/cron-parser/package.json +1 -1
  227. package/dist/node_modules/joi/package.json +1 -1
  228. package/dist/node_modules/lru-cache/package.json +1 -1
  229. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  230. package/dist/server/Dispatcher.js +2 -1
  231. package/dist/server/ExecutionTimeoutManager.js +2 -1
  232. package/dist/server/actions/workflows.d.ts +1 -0
  233. package/dist/server/actions/workflows.js +11 -2
  234. package/dist/server/migrations/20260713000000-remove-workflow-validation.d.ts +13 -0
  235. package/dist/server/migrations/20260713000000-remove-workflow-validation.js +56 -0
  236. package/dist/server/types/Workflow.d.ts +1 -0
  237. package/package.json +4 -2
  238. package/dist/client/618.c91be3f6e4d73501.js +0 -10
  239. package/dist/client/67.6eab22df32aca212.js +0 -10
  240. package/dist/client/964.5e11e1820fece37b.js +0 -10
  241. package/dist/client/triggers/schedule/ScheduleModes.d.ts +0 -170
  242. package/dist/client/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -42
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare function isWorkflowV2Runtime(): boolean;
10
+ export declare function getWorkflowCanvasRuntimePath(id: string | number): string;
11
+ export declare function getWorkflowExecutionRuntimePath(id: string | number): string;
12
+ export declare function useWorkflowRuntimePaths(): {
13
+ isV2Runtime: boolean;
14
+ getWorkflowCanvasPath: (id: string | number) => string;
15
+ getWorkflowExecutionPath: (id: string | number) => string;
16
+ };
@@ -0,0 +1,48 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export { default, PluginWorkflowClientV2 } from './plugin';
10
+ export type { WorkflowNotice, WorkflowListNoticeMap, WorkflowListNoticeProviderContext, WorkflowNoticeProvider, WorkflowNoticeProviderContext, WorkflowNoticeProviderFunction, WorkflowNoticeProviderObject, WorkflowNoticeResult, WorkflowNoticeSurface, } from './plugin';
11
+ export * from './constants';
12
+ export * from './taskCenter';
13
+ export * from './models';
14
+ export { Instruction, useAvailableUpstreams, useNodeContext } from './canvas/Instruction';
15
+ export type { LoaderOf, NodeAvailableContext, TempAssociationSource } from './canvas/Instruction';
16
+ export { Branch } from './canvas/Branch';
17
+ export { NodeDefaultView } from './canvas/Node';
18
+ export { useCurrentWorkflowContext, useFlowContext, WorkflowVariableSourceContext } from './canvas/contexts';
19
+ export type { CanvasNode } from './canvas/contexts';
20
+ export { default as useStyles } from './canvas/style';
21
+ export { WorkflowVariableInput } from './canvas/WorkflowVariableInput';
22
+ export type { WorkflowVariableInputProps } from './canvas/WorkflowVariableInput';
23
+ export { WorkflowVariableTag } from './canvas/WorkflowVariableTag';
24
+ export type { WorkflowVariableTagProps } from './canvas/WorkflowVariableTag';
25
+ export { WorkflowVariableTextArea } from './canvas/WorkflowVariableTextArea';
26
+ export type { WorkflowVariableTextAreaProps } from './canvas/WorkflowVariableTextArea';
27
+ export { WorkflowVariableJsonTextArea } from './canvas/WorkflowVariableJsonTextArea';
28
+ export type { WorkflowVariableJsonTextAreaProps } from './canvas/WorkflowVariableJsonTextArea';
29
+ export { HideVariableContext, useHideVariable } from './components/HideVariableContext';
30
+ export { WorkflowVariableWrapper } from './components/WorkflowVariableWrapper';
31
+ export type { WorkflowVariableWrapperProps } from './components/WorkflowVariableWrapper';
32
+ export { WorkflowTypedVariableInput, WORKFLOW_TYPED_CONSTANT_TYPES } from './canvas/WorkflowTypedVariableInput';
33
+ export type { WorkflowTypedVariableInputProps } from './canvas/WorkflowTypedVariableInput';
34
+ export { useWorkflowVariableOptions } from './canvas/useWorkflowVariableOptions';
35
+ export type { UseWorkflowVariableOptions } from './canvas/useWorkflowVariableOptions';
36
+ export { CurrentWorkflowContext } from './canvas/contexts';
37
+ export { getCollectionFieldOptions } from './canvas/collectionFieldOptions';
38
+ export { BaseTypeSets, defaultFieldNames } from './canvas/collectionFieldOptions';
39
+ export type { UseVariableOptions, VariableOption } from './canvas/collectionFieldOptions';
40
+ export { CalculationConfig } from './components/Calculation';
41
+ export type { CalculationConfigProps } from './components/Calculation';
42
+ export { RadioWithTooltip } from './components/RadioWithTooltip';
43
+ export type { RadioWithTooltipOption, RadioWithTooltipProps } from './components/RadioWithTooltip';
44
+ export { renderEngineReference } from './components/renderEngineReference';
45
+ export { Trigger } from './triggers';
46
+ export type { LoaderOf as TriggerLoaderOf, TriggerTempAssociationSource } from './triggers';
47
+ export * from './components/collection';
48
+ export { FilterDynamicComponent, ConditionField } from './components/FilterDynamicComponent';