@nocobase/plugin-flow-engine 2.1.0-beta.2 → 2.1.0-beta.20

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 (244) hide show
  1. package/LICENSE +201 -661
  2. package/README.md +79 -9
  3. package/dist/ai/ai-employees/nathan/index.d.ts +10 -0
  4. package/dist/ai/ai-employees/nathan/index.js +41 -0
  5. package/dist/ai/ai-employees/nathan/prompt.md +132 -0
  6. package/dist/ai/ai-employees/nathan/skills/frontend-developer/SKILLS.md +69 -0
  7. package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextApis.js +2 -2
  8. package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextEnvs.js +2 -2
  9. package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextVars.js +2 -2
  10. package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/lintAndTestJS.js +2 -2
  11. package/dist/ai/docs/runjs/context/block-model.md +35 -35
  12. package/dist/ai/docs/runjs/context/collection-field.md +53 -51
  13. package/dist/ai/docs/runjs/context/collection.md +39 -39
  14. package/dist/ai/docs/runjs/context/data-source-manager.md +40 -30
  15. package/dist/ai/docs/runjs/context/data-source.md +52 -44
  16. package/dist/ai/docs/runjs/context/element.md +44 -38
  17. package/dist/ai/docs/runjs/context/exit-all.md +37 -35
  18. package/dist/ai/docs/runjs/context/exit.md +38 -35
  19. package/dist/ai/docs/runjs/context/filter-manager.md +36 -30
  20. package/dist/ai/docs/runjs/context/form.md +57 -57
  21. package/dist/ai/docs/runjs/context/get-model.md +22 -21
  22. package/dist/ai/docs/runjs/context/get-value.md +20 -19
  23. package/dist/ai/docs/runjs/context/get-var.md +61 -55
  24. package/dist/ai/docs/runjs/context/i18n.md +17 -14
  25. package/dist/ai/docs/runjs/context/import-async.md +333 -45
  26. package/dist/ai/docs/runjs/context/init-resource.md +20 -20
  27. package/dist/ai/docs/runjs/context/libs.md +31 -31
  28. package/dist/ai/docs/runjs/context/location.md +34 -31
  29. package/dist/ai/docs/runjs/context/logger.md +41 -40
  30. package/dist/ai/docs/runjs/context/make-resource.md +27 -26
  31. package/dist/ai/docs/runjs/context/message.md +42 -41
  32. package/dist/ai/docs/runjs/context/modal.md +44 -44
  33. package/dist/ai/docs/runjs/context/model.md +36 -33
  34. package/dist/ai/docs/runjs/context/notification.md +41 -40
  35. package/dist/ai/docs/runjs/context/off.md +14 -14
  36. package/dist/ai/docs/runjs/context/on.md +30 -29
  37. package/dist/ai/docs/runjs/context/open-view.md +40 -40
  38. package/dist/ai/docs/runjs/context/render.md +37 -32
  39. package/dist/ai/docs/runjs/context/request.md +46 -45
  40. package/dist/ai/docs/runjs/context/require-async.md +28 -25
  41. package/dist/ai/docs/runjs/context/resource.md +34 -34
  42. package/dist/ai/docs/runjs/context/route.md +36 -34
  43. package/dist/ai/docs/runjs/context/router.md +43 -31
  44. package/dist/ai/docs/runjs/context/set-value.md +18 -17
  45. package/dist/ai/docs/runjs/context/sql.md +7 -15
  46. package/dist/ai/docs/runjs/context/t.md +20 -17
  47. package/dist/ai/docs/runjs/context/view.md +49 -46
  48. package/dist/ai/docs/runjs/document.md +1 -0
  49. package/dist/ai/docs/runjs/import-modules.md +32 -32
  50. package/dist/ai/docs/runjs/index.md +13 -13
  51. package/dist/ai/docs/runjs/jsx.md +19 -19
  52. package/dist/ai/docs/runjs/model/form-block-model.md +1 -3
  53. package/dist/ai/docs/runjs/render.md +15 -15
  54. package/dist/ai/docs/runjs/resource/api-resource.md +53 -53
  55. package/dist/ai/docs/runjs/resource/multi-record-resource.md +64 -64
  56. package/dist/ai/docs/runjs/resource/single-record-resource.md +55 -55
  57. package/dist/ai/docs/runjs/resource/sql-resource.md +57 -57
  58. package/dist/ai/docs/runjs/window.md +5 -5
  59. package/dist/client/index.js +1 -1
  60. package/dist/externalVersion.js +12 -11
  61. package/dist/locale/en-US.json +1 -0
  62. package/dist/locale/index.d.ts +2 -0
  63. package/dist/locale/zh-CN.json +1 -0
  64. package/dist/node_modules/ses/dist/ses.cjs +1 -1
  65. package/dist/node_modules/ses/package.json +1 -1
  66. package/dist/node_modules/zod/index.cjs +1 -1
  67. package/dist/node_modules/zod/package.json +1 -1
  68. package/dist/server/collections/flowsql.js +1 -0
  69. package/dist/server/flow-surfaces/action-scope.d.ts +39 -0
  70. package/dist/server/flow-surfaces/action-scope.js +156 -0
  71. package/dist/server/flow-surfaces/apply/compiler.d.ts +13 -0
  72. package/dist/server/flow-surfaces/apply/compiler.js +969 -0
  73. package/dist/server/flow-surfaces/apply/layout.d.ts +34 -0
  74. package/dist/server/flow-surfaces/apply/layout.js +175 -0
  75. package/dist/server/flow-surfaces/apply/matching.d.ts +16 -0
  76. package/dist/server/flow-surfaces/apply/matching.js +181 -0
  77. package/dist/server/flow-surfaces/approval/blueprint-service.d.ts +84 -0
  78. package/dist/server/flow-surfaces/approval/blueprint-service.js +589 -0
  79. package/dist/server/flow-surfaces/approval/blueprint.d.ts +21 -0
  80. package/dist/server/flow-surfaces/approval/blueprint.js +187 -0
  81. package/dist/server/flow-surfaces/approval/builder.d.ts +225 -0
  82. package/dist/server/flow-surfaces/approval/builder.js +384 -0
  83. package/dist/server/flow-surfaces/approval/catalog-specs.d.ts +33 -0
  84. package/dist/server/flow-surfaces/approval/catalog-specs.js +156 -0
  85. package/dist/server/flow-surfaces/approval/index.d.ts +14 -0
  86. package/dist/server/flow-surfaces/approval/index.js +40 -0
  87. package/dist/server/flow-surfaces/approval/runtime-config.d.ts +44 -0
  88. package/dist/server/flow-surfaces/approval/runtime-config.js +299 -0
  89. package/dist/server/flow-surfaces/approval/semantic-use.d.ts +23 -0
  90. package/dist/server/flow-surfaces/approval/semantic-use.js +155 -0
  91. package/dist/server/flow-surfaces/association-title-field.d.ts +20 -0
  92. package/dist/server/flow-surfaces/association-title-field.js +192 -0
  93. package/dist/server/flow-surfaces/blueprint/compile-blocks.d.ts +14 -0
  94. package/dist/server/flow-surfaces/blueprint/compile-blocks.js +1029 -0
  95. package/dist/server/flow-surfaces/blueprint/compile-plan.d.ts +13 -0
  96. package/dist/server/flow-surfaces/blueprint/compile-plan.js +308 -0
  97. package/dist/server/flow-surfaces/blueprint/compile-reaction.d.ts +11 -0
  98. package/dist/server/flow-surfaces/blueprint/compile-reaction.js +72 -0
  99. package/dist/server/flow-surfaces/blueprint/defaults.d.ts +26 -0
  100. package/dist/server/flow-surfaces/blueprint/defaults.js +133 -0
  101. package/dist/server/flow-surfaces/blueprint/index.d.ts +12 -0
  102. package/dist/server/flow-surfaces/blueprint/index.js +44 -0
  103. package/dist/server/flow-surfaces/blueprint/normalize-document.d.ts +10 -0
  104. package/dist/server/flow-surfaces/blueprint/normalize-document.js +416 -0
  105. package/dist/server/flow-surfaces/blueprint/private-utils.d.ts +26 -0
  106. package/dist/server/flow-surfaces/blueprint/private-utils.js +182 -0
  107. package/dist/server/flow-surfaces/blueprint/public-types.d.ts +193 -0
  108. package/dist/server/flow-surfaces/blueprint/public-types.js +24 -0
  109. package/dist/server/flow-surfaces/builder.d.ts +211 -0
  110. package/dist/server/flow-surfaces/builder.js +1097 -0
  111. package/dist/server/flow-surfaces/catalog-smart.d.ts +18 -0
  112. package/dist/server/flow-surfaces/catalog-smart.js +239 -0
  113. package/dist/server/flow-surfaces/catalog-smart.projector.d.ts +15 -0
  114. package/dist/server/flow-surfaces/catalog-smart.projector.js +157 -0
  115. package/dist/server/flow-surfaces/catalog-smart.types.d.ts +99 -0
  116. package/dist/server/flow-surfaces/catalog-smart.types.js +24 -0
  117. package/dist/server/flow-surfaces/catalog.d.ts +78 -0
  118. package/dist/server/flow-surfaces/catalog.js +3577 -0
  119. package/dist/server/flow-surfaces/chart-config.d.ts +121 -0
  120. package/dist/server/flow-surfaces/chart-config.js +1394 -0
  121. package/dist/server/flow-surfaces/compose-compiler.d.ts +108 -0
  122. package/dist/server/flow-surfaces/compose-compiler.js +167 -0
  123. package/dist/server/flow-surfaces/compose-runtime.d.ts +93 -0
  124. package/dist/server/flow-surfaces/compose-runtime.js +375 -0
  125. package/dist/server/flow-surfaces/configure-options.d.ts +23 -0
  126. package/dist/server/flow-surfaces/configure-options.js +860 -0
  127. package/dist/server/flow-surfaces/constants.d.ts +351 -0
  128. package/dist/server/flow-surfaces/constants.js +104 -0
  129. package/dist/server/flow-surfaces/context.d.ts +72 -0
  130. package/dist/server/flow-surfaces/context.js +556 -0
  131. package/dist/server/flow-surfaces/contract-guard.d.ts +19 -0
  132. package/dist/server/flow-surfaces/contract-guard.js +402 -0
  133. package/dist/server/flow-surfaces/core-field-default-bindings.d.ts +12 -0
  134. package/dist/server/flow-surfaces/core-field-default-bindings.js +157 -0
  135. package/dist/server/flow-surfaces/default-action-popup.d.ts +63 -0
  136. package/dist/server/flow-surfaces/default-action-popup.js +322 -0
  137. package/dist/server/flow-surfaces/default-block-actions.d.ts +32 -0
  138. package/dist/server/flow-surfaces/default-block-actions.js +209 -0
  139. package/dist/server/flow-surfaces/errors.d.ts +47 -0
  140. package/dist/server/flow-surfaces/errors.js +145 -0
  141. package/dist/server/flow-surfaces/executor.d.ts +23 -0
  142. package/dist/server/flow-surfaces/executor.js +132 -0
  143. package/dist/server/flow-surfaces/field-binding-registry.d.ts +23 -0
  144. package/dist/server/flow-surfaces/field-binding-registry.js +391 -0
  145. package/dist/server/flow-surfaces/field-semantics.d.ts +15 -0
  146. package/dist/server/flow-surfaces/field-semantics.js +83 -0
  147. package/dist/server/flow-surfaces/filter-group.d.ts +15 -0
  148. package/dist/server/flow-surfaces/filter-group.js +94 -0
  149. package/dist/server/flow-surfaces/index.d.ts +11 -0
  150. package/dist/server/flow-surfaces/index.js +302 -0
  151. package/dist/server/flow-surfaces/locator.d.ts +28 -0
  152. package/dist/server/flow-surfaces/locator.js +240 -0
  153. package/dist/server/flow-surfaces/node-use-sets.d.ts +15 -0
  154. package/dist/server/flow-surfaces/node-use-sets.js +134 -0
  155. package/dist/server/flow-surfaces/payload-shape.d.ts +9 -0
  156. package/dist/server/flow-surfaces/payload-shape.js +61 -0
  157. package/dist/server/flow-surfaces/placement.d.ts +33 -0
  158. package/dist/server/flow-surfaces/placement.js +198 -0
  159. package/dist/server/flow-surfaces/planning/action-specs.d.ts +179 -0
  160. package/dist/server/flow-surfaces/planning/action-specs.js +190 -0
  161. package/dist/server/flow-surfaces/planning/compiler.d.ts +37 -0
  162. package/dist/server/flow-surfaces/planning/compiler.js +376 -0
  163. package/dist/server/flow-surfaces/planning/context.d.ts +30 -0
  164. package/dist/server/flow-surfaces/planning/context.js +139 -0
  165. package/dist/server/flow-surfaces/planning/created-keys.d.ts +34 -0
  166. package/dist/server/flow-surfaces/planning/created-keys.js +375 -0
  167. package/dist/server/flow-surfaces/planning/key-kind.d.ts +11 -0
  168. package/dist/server/flow-surfaces/planning/key-kind.js +88 -0
  169. package/dist/server/flow-surfaces/planning/key-persistence.d.ts +34 -0
  170. package/dist/server/flow-surfaces/planning/key-persistence.js +148 -0
  171. package/dist/server/flow-surfaces/planning/key-registry.d.ts +40 -0
  172. package/dist/server/flow-surfaces/planning/key-registry.js +206 -0
  173. package/dist/server/flow-surfaces/planning/runtime.d.ts +37 -0
  174. package/dist/server/flow-surfaces/planning/runtime.js +259 -0
  175. package/dist/server/flow-surfaces/planning/step-link.d.ts +14 -0
  176. package/dist/server/flow-surfaces/planning/step-link.js +104 -0
  177. package/dist/server/flow-surfaces/planning/types.d.ts +55 -0
  178. package/dist/server/flow-surfaces/planning/types.js +24 -0
  179. package/dist/server/flow-surfaces/public-data-surface-default-filter.d.ts +24 -0
  180. package/dist/server/flow-surfaces/public-data-surface-default-filter.js +152 -0
  181. package/dist/server/flow-surfaces/reaction/errors.d.ts +20 -0
  182. package/dist/server/flow-surfaces/reaction/errors.js +69 -0
  183. package/dist/server/flow-surfaces/reaction/field-value.d.ts +34 -0
  184. package/dist/server/flow-surfaces/reaction/field-value.js +181 -0
  185. package/dist/server/flow-surfaces/reaction/fingerprint.d.ts +16 -0
  186. package/dist/server/flow-surfaces/reaction/fingerprint.js +71 -0
  187. package/dist/server/flow-surfaces/reaction/linkage.d.ts +136 -0
  188. package/dist/server/flow-surfaces/reaction/linkage.js +882 -0
  189. package/dist/server/flow-surfaces/reaction/meta.d.ts +11 -0
  190. package/dist/server/flow-surfaces/reaction/meta.js +451 -0
  191. package/dist/server/flow-surfaces/reaction/registry.d.ts +156 -0
  192. package/dist/server/flow-surfaces/reaction/registry.js +206 -0
  193. package/dist/server/flow-surfaces/reaction/resolver.d.ts +22 -0
  194. package/dist/server/flow-surfaces/reaction/resolver.js +202 -0
  195. package/dist/server/flow-surfaces/reaction/types.d.ts +241 -0
  196. package/dist/server/flow-surfaces/reaction/types.js +24 -0
  197. package/dist/server/flow-surfaces/reaction/utils.d.ts +17 -0
  198. package/dist/server/flow-surfaces/reaction/utils.js +67 -0
  199. package/dist/server/flow-surfaces/reaction/value-expr.d.ts +15 -0
  200. package/dist/server/flow-surfaces/reaction/value-expr.js +209 -0
  201. package/dist/server/flow-surfaces/reference-guards.d.ts +19 -0
  202. package/dist/server/flow-surfaces/reference-guards.js +103 -0
  203. package/dist/server/flow-surfaces/route-sync.d.ts +47 -0
  204. package/dist/server/flow-surfaces/route-sync.js +392 -0
  205. package/dist/server/flow-surfaces/service-helpers.d.ts +42 -0
  206. package/dist/server/flow-surfaces/service-helpers.js +310 -0
  207. package/dist/server/flow-surfaces/service-utils.d.ts +108 -0
  208. package/dist/server/flow-surfaces/service-utils.js +811 -0
  209. package/dist/server/flow-surfaces/service.d.ts +814 -0
  210. package/dist/server/flow-surfaces/service.js +14276 -0
  211. package/dist/server/flow-surfaces/support-matrix.d.ts +31 -0
  212. package/dist/server/flow-surfaces/support-matrix.js +271 -0
  213. package/dist/server/flow-surfaces/surface-context.d.ts +52 -0
  214. package/dist/server/flow-surfaces/surface-context.js +440 -0
  215. package/dist/server/flow-surfaces/template-compatibility.d.ts +42 -0
  216. package/dist/server/flow-surfaces/template-compatibility.js +189 -0
  217. package/dist/server/flow-surfaces/template-display.d.ts +20 -0
  218. package/dist/server/flow-surfaces/template-display.js +289 -0
  219. package/dist/server/flow-surfaces/template-service-utils.d.ts +62 -0
  220. package/dist/server/flow-surfaces/template-service-utils.js +281 -0
  221. package/dist/server/flow-surfaces/types.d.ts +288 -0
  222. package/dist/server/flow-surfaces/types.js +24 -0
  223. package/dist/server/index.d.ts +1 -0
  224. package/dist/server/index.js +7 -2
  225. package/dist/server/plugin.d.ts +0 -1
  226. package/dist/server/plugin.js +9 -34
  227. package/dist/server/repository.js +0 -5
  228. package/dist/server/variables/resolve.d.ts +21 -0
  229. package/dist/server/variables/resolve.js +79 -0
  230. package/dist/swagger/flow-surfaces.d.ts +5964 -0
  231. package/dist/swagger/flow-surfaces.examples.d.ts +1572 -0
  232. package/dist/swagger/flow-surfaces.examples.js +1805 -0
  233. package/dist/swagger/flow-surfaces.js +5322 -0
  234. package/dist/swagger/flow-surfaces.template-action-docs.d.ts +62 -0
  235. package/dist/swagger/flow-surfaces.template-action-docs.js +121 -0
  236. package/dist/swagger/flow-surfaces.template-schemas.d.ts +239 -0
  237. package/dist/swagger/flow-surfaces.template-schemas.js +255 -0
  238. package/dist/swagger/index.d.ts +5969 -0
  239. package/dist/swagger/index.js +50 -0
  240. package/package.json +3 -3
  241. /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextApis.d.ts +0 -0
  242. /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextEnvs.d.ts +0 -0
  243. /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextVars.d.ts +0 -0
  244. /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/lintAndTestJS.d.ts +0 -0
@@ -0,0 +1,134 @@
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
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var node_use_sets_exports = {};
28
+ __export(node_use_sets_exports, {
29
+ ACTION_BUTTON_USES: () => ACTION_BUTTON_USES,
30
+ COLLECTION_BLOCK_USES: () => COLLECTION_BLOCK_USES,
31
+ CREATABLE_STANDALONE_FIELD_USES: () => CREATABLE_STANDALONE_FIELD_USES,
32
+ FIELD_WRAPPER_USES: () => FIELD_WRAPPER_USES,
33
+ JS_BLOCK_USES: () => JS_BLOCK_USES,
34
+ STANDALONE_FIELD_NODE_USES: () => STANDALONE_FIELD_NODE_USES,
35
+ STATIC_CONTENT_BLOCK_USES: () => STATIC_CONTENT_BLOCK_USES
36
+ });
37
+ module.exports = __toCommonJS(node_use_sets_exports);
38
+ var import_approval = require("./approval");
39
+ const COLLECTION_BLOCK_USES = /* @__PURE__ */ new Set([
40
+ "TableBlockModel",
41
+ "CalendarBlockModel",
42
+ "KanbanBlockModel",
43
+ "CreateFormModel",
44
+ "EditFormModel",
45
+ "FormBlockModel",
46
+ "DetailsBlockModel",
47
+ "FilterFormBlockModel",
48
+ "ListBlockModel",
49
+ "GridCardBlockModel",
50
+ "MapBlockModel",
51
+ "CommentsBlockModel",
52
+ ...import_approval.APPROVAL_FORM_BLOCK_USES,
53
+ ...import_approval.APPROVAL_DETAILS_BLOCK_USES
54
+ ]);
55
+ const STATIC_CONTENT_BLOCK_USES = /* @__PURE__ */ new Set([
56
+ "MarkdownBlockModel",
57
+ "IframeBlockModel",
58
+ "ChartBlockModel",
59
+ "ActionPanelBlockModel",
60
+ "JSBlockModel"
61
+ ]);
62
+ const FIELD_WRAPPER_USES = /* @__PURE__ */ new Set([
63
+ "FormItemModel",
64
+ "FormAssociationItemModel",
65
+ "DetailsItemModel",
66
+ "FilterFormItemModel",
67
+ "TableColumnModel",
68
+ ...import_approval.APPROVAL_FIELD_WRAPPER_USES
69
+ ]);
70
+ const CREATABLE_STANDALONE_FIELD_USES = /* @__PURE__ */ new Set(["JSColumnModel", "JSItemModel", "DividerItemModel"]);
71
+ const STANDALONE_FIELD_NODE_USES = /* @__PURE__ */ new Set([...CREATABLE_STANDALONE_FIELD_USES, "FormJSFieldItemModel"]);
72
+ const ACTION_BUTTON_USES = /* @__PURE__ */ new Set([
73
+ "AddNewActionModel",
74
+ "ViewActionModel",
75
+ "EditActionModel",
76
+ "PopupCollectionActionModel",
77
+ "DeleteActionModel",
78
+ "BulkDeleteActionModel",
79
+ "BulkEditActionModel",
80
+ "UpdateRecordActionModel",
81
+ "BulkUpdateActionModel",
82
+ "DuplicateActionModel",
83
+ "AddChildActionModel",
84
+ "FilterActionModel",
85
+ "ExpandCollapseActionModel",
86
+ "FormSubmitActionModel",
87
+ "FilterFormSubmitActionModel",
88
+ "FilterFormResetActionModel",
89
+ "FilterFormCollapseActionModel",
90
+ "RefreshActionModel",
91
+ "LinkActionModel",
92
+ "ExportActionModel",
93
+ "ExportAttachmentActionModel",
94
+ "ImportActionModel",
95
+ "UploadActionModel",
96
+ "TemplatePrintCollectionActionModel",
97
+ "TemplatePrintRecordActionModel",
98
+ "CollectionTriggerWorkflowActionModel",
99
+ "RecordTriggerWorkflowActionModel",
100
+ "FormTriggerWorkflowActionModel",
101
+ "WorkbenchTriggerWorkflowActionModel",
102
+ "MailSendActionModel",
103
+ "JSCollectionActionModel",
104
+ "JSRecordActionModel",
105
+ "JSFormActionModel",
106
+ "JSItemActionModel",
107
+ "FilterFormJSActionModel",
108
+ "JSActionModel",
109
+ "CalendarTodayActionModel",
110
+ "CalendarNavActionModel",
111
+ "CalendarTitleActionModel",
112
+ "CalendarViewSelectActionModel",
113
+ "KanbanQuickCreateActionModel",
114
+ "KanbanCardViewActionModel",
115
+ "ApplyFormSubmitModel",
116
+ "ApplyFormSaveDraftModel",
117
+ "ApplyFormWithdrawModel",
118
+ "ProcessFormApproveModel",
119
+ "ProcessFormRejectModel",
120
+ "ProcessFormReturnModel",
121
+ "ProcessFormDelegateModel",
122
+ "ProcessFormAddAssigneeModel"
123
+ ]);
124
+ const JS_BLOCK_USES = /* @__PURE__ */ new Set(["JSBlockModel"]);
125
+ // Annotate the CommonJS export names for ESM import in node:
126
+ 0 && (module.exports = {
127
+ ACTION_BUTTON_USES,
128
+ COLLECTION_BLOCK_USES,
129
+ CREATABLE_STANDALONE_FIELD_USES,
130
+ FIELD_WRAPPER_USES,
131
+ JS_BLOCK_USES,
132
+ STANDALONE_FIELD_NODE_USES,
133
+ STATIC_CONTENT_BLOCK_USES
134
+ });
@@ -0,0 +1,9 @@
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 validateFlowSurfacePayloadShape(actionName: string, value: any, path: string): void;
@@ -0,0 +1,61 @@
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
+
10
+ var __create = Object.create;
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __getProtoOf = Object.getPrototypeOf;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
+ var payload_shape_exports = {};
38
+ __export(payload_shape_exports, {
39
+ validateFlowSurfacePayloadShape: () => validateFlowSurfacePayloadShape
40
+ });
41
+ module.exports = __toCommonJS(payload_shape_exports);
42
+ var import_lodash = __toESM(require("lodash"));
43
+ var import_errors = require("./errors");
44
+ var import_key_registry = require("./planning/key-registry");
45
+ function validateFlowSurfacePayloadShape(actionName, value, path) {
46
+ if (Array.isArray(value)) {
47
+ value.forEach((item, index) => validateFlowSurfacePayloadShape(actionName, item, `${path}[${index}]`));
48
+ return;
49
+ }
50
+ if (!import_lodash.default.isPlainObject(value)) {
51
+ return;
52
+ }
53
+ if (import_lodash.default.isPlainObject(value.stepParams) && Object.prototype.hasOwnProperty.call(value.stepParams, import_key_registry.FLOW_SURFACE_INTERNAL_META_KEY)) {
54
+ (0, import_errors.throwBadRequest)(`flowSurfaces ${actionName} ${path}.stepParams.${import_key_registry.FLOW_SURFACE_INTERNAL_META_KEY} is reserved`);
55
+ }
56
+ Object.entries(value).forEach(([key, child]) => validateFlowSurfacePayloadShape(actionName, child, `${path}.${key}`));
57
+ }
58
+ // Annotate the CommonJS export names for ESM import in node:
59
+ 0 && (module.exports = {
60
+ validateFlowSurfacePayloadShape
61
+ });
@@ -0,0 +1,33 @@
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
+ import type { FlowSurfaceResolvedTarget } from './types';
10
+ export declare const FLOW_SURFACE_POPUP_HOST_USES: Set<string>;
11
+ export declare const FLOW_SURFACE_FORM_BLOCK_USES: Set<string>;
12
+ export declare const FLOW_SURFACE_DETAILS_BLOCK_USES: Set<string>;
13
+ export declare const FLOW_SURFACE_FILTER_FORM_BLOCK_USES: Set<string>;
14
+ export declare const FLOW_SURFACE_GRID_USES: Set<string>;
15
+ export declare const FLOW_SURFACE_FIELD_WRAPPER_USES: Set<string>;
16
+ export declare const FLOW_SURFACE_PAGE_MODEL_USES: Set<string>;
17
+ export declare const FLOW_SURFACE_PAGE_ROUTE_TYPES: Set<string>;
18
+ export declare function isPopupHostUse(use?: string): boolean;
19
+ export declare function isFormBlockUse(use?: string): boolean;
20
+ export declare function isDetailsBlockUse(use?: string): boolean;
21
+ export declare function isFilterFormBlockUse(use?: string): boolean;
22
+ export declare function isGridUse(use?: string): boolean;
23
+ export declare function isFieldWrapperUse(use?: string): boolean;
24
+ export declare function isPageModelUse(use?: string): boolean;
25
+ export declare function isPageRouteType(routeLike?: any): boolean;
26
+ export declare function isTabsRouteType(routeLike?: any): boolean;
27
+ export declare function canCatalogAddBlock(input: {
28
+ node?: any;
29
+ resolved?: Pick<FlowSurfaceResolvedTarget, 'route' | 'pageRoute' | 'tabRoute'> | null;
30
+ }): boolean;
31
+ export declare function isFieldContainerUse(parentUse?: string, subKey?: string): boolean;
32
+ export declare function isBlockContainerUse(parentUse?: string, subKey?: string): boolean;
33
+ export declare function isActionContainerUse(parentUse?: string): boolean;
@@ -0,0 +1,198 @@
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
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var placement_exports = {};
28
+ __export(placement_exports, {
29
+ FLOW_SURFACE_DETAILS_BLOCK_USES: () => FLOW_SURFACE_DETAILS_BLOCK_USES,
30
+ FLOW_SURFACE_FIELD_WRAPPER_USES: () => FLOW_SURFACE_FIELD_WRAPPER_USES,
31
+ FLOW_SURFACE_FILTER_FORM_BLOCK_USES: () => FLOW_SURFACE_FILTER_FORM_BLOCK_USES,
32
+ FLOW_SURFACE_FORM_BLOCK_USES: () => FLOW_SURFACE_FORM_BLOCK_USES,
33
+ FLOW_SURFACE_GRID_USES: () => FLOW_SURFACE_GRID_USES,
34
+ FLOW_SURFACE_PAGE_MODEL_USES: () => FLOW_SURFACE_PAGE_MODEL_USES,
35
+ FLOW_SURFACE_PAGE_ROUTE_TYPES: () => FLOW_SURFACE_PAGE_ROUTE_TYPES,
36
+ FLOW_SURFACE_POPUP_HOST_USES: () => FLOW_SURFACE_POPUP_HOST_USES,
37
+ canCatalogAddBlock: () => canCatalogAddBlock,
38
+ isActionContainerUse: () => isActionContainerUse,
39
+ isBlockContainerUse: () => isBlockContainerUse,
40
+ isDetailsBlockUse: () => isDetailsBlockUse,
41
+ isFieldContainerUse: () => isFieldContainerUse,
42
+ isFieldWrapperUse: () => isFieldWrapperUse,
43
+ isFilterFormBlockUse: () => isFilterFormBlockUse,
44
+ isFormBlockUse: () => isFormBlockUse,
45
+ isGridUse: () => isGridUse,
46
+ isPageModelUse: () => isPageModelUse,
47
+ isPageRouteType: () => isPageRouteType,
48
+ isPopupHostUse: () => isPopupHostUse,
49
+ isTabsRouteType: () => isTabsRouteType
50
+ });
51
+ module.exports = __toCommonJS(placement_exports);
52
+ var import_approval = require("./approval");
53
+ var import_node_use_sets = require("./node-use-sets");
54
+ const FLOW_SURFACE_POPUP_HOST_USES = /* @__PURE__ */ new Set([
55
+ "AddNewActionModel",
56
+ "ViewActionModel",
57
+ "EditActionModel",
58
+ "PopupCollectionActionModel",
59
+ "CalendarQuickCreateActionModel",
60
+ "CalendarEventViewActionModel",
61
+ "KanbanQuickCreateActionModel",
62
+ "KanbanCardViewActionModel",
63
+ "ClickableFieldModel",
64
+ "DisplayTextFieldModel",
65
+ "DisplayEnumFieldModel",
66
+ "DisplayDateTimeFieldModel",
67
+ "DisplayNumberFieldModel",
68
+ "DisplayPercentFieldModel",
69
+ "DisplayTimeFieldModel",
70
+ "DisplayAssociationFieldModel",
71
+ "DisplayAssociationField",
72
+ "DisplayTitleFieldModel",
73
+ "DisplayURLFieldModel"
74
+ ]);
75
+ const FLOW_SURFACE_FORM_BLOCK_USES = /* @__PURE__ */ new Set([
76
+ "FormBlockModel",
77
+ "CreateFormModel",
78
+ "EditFormModel",
79
+ "AssignFormModel"
80
+ ]);
81
+ const FLOW_SURFACE_DETAILS_BLOCK_USES = /* @__PURE__ */ new Set(["DetailsBlockModel"]);
82
+ const FLOW_SURFACE_FILTER_FORM_BLOCK_USES = /* @__PURE__ */ new Set(["FilterFormBlockModel"]);
83
+ const FLOW_SURFACE_GRID_USES = /* @__PURE__ */ new Set([
84
+ "BlockGridModel",
85
+ "FormGridModel",
86
+ "DetailsGridModel",
87
+ "FilterFormGridModel",
88
+ "AssignFormGridModel"
89
+ ]);
90
+ const FLOW_SURFACE_FIELD_WRAPPER_USES = import_node_use_sets.FIELD_WRAPPER_USES;
91
+ const FLOW_SURFACE_PAGE_MODEL_USES = /* @__PURE__ */ new Set([
92
+ "RootPageModel",
93
+ "ChildPageModel",
94
+ "RootPageTabModel",
95
+ "ChildPageTabModel"
96
+ ]);
97
+ const FLOW_SURFACE_PAGE_ROUTE_TYPES = /* @__PURE__ */ new Set(["page", "flowPage"]);
98
+ function isPopupHostUse(use) {
99
+ return FLOW_SURFACE_POPUP_HOST_USES.has(use || "");
100
+ }
101
+ function isFormBlockUse(use) {
102
+ return FLOW_SURFACE_FORM_BLOCK_USES.has((0, import_approval.normalizeApprovalSemanticUse)(use) || "");
103
+ }
104
+ function isDetailsBlockUse(use) {
105
+ return FLOW_SURFACE_DETAILS_BLOCK_USES.has((0, import_approval.normalizeApprovalSemanticUse)(use) || "");
106
+ }
107
+ function isFilterFormBlockUse(use) {
108
+ return FLOW_SURFACE_FILTER_FORM_BLOCK_USES.has((0, import_approval.normalizeApprovalSemanticUse)(use) || "");
109
+ }
110
+ function isGridUse(use) {
111
+ return FLOW_SURFACE_GRID_USES.has((0, import_approval.normalizeApprovalSemanticUse)(use) || "");
112
+ }
113
+ function isFieldWrapperUse(use) {
114
+ return FLOW_SURFACE_FIELD_WRAPPER_USES.has(use || "");
115
+ }
116
+ function isPageModelUse(use) {
117
+ return FLOW_SURFACE_PAGE_MODEL_USES.has((0, import_approval.normalizeApprovalSemanticUse)(use) || "");
118
+ }
119
+ function isPageRouteType(routeLike) {
120
+ var _a;
121
+ const type = ((_a = routeLike == null ? void 0 : routeLike.get) == null ? void 0 : _a.call(routeLike, "type")) || (routeLike == null ? void 0 : routeLike.type);
122
+ return FLOW_SURFACE_PAGE_ROUTE_TYPES.has(type || "");
123
+ }
124
+ function isTabsRouteType(routeLike) {
125
+ var _a;
126
+ const type = ((_a = routeLike == null ? void 0 : routeLike.get) == null ? void 0 : _a.call(routeLike, "type")) || (routeLike == null ? void 0 : routeLike.type);
127
+ return type === "tabs";
128
+ }
129
+ function canCatalogAddBlock(input) {
130
+ var _a, _b;
131
+ const node = input.node;
132
+ const resolved = input.resolved;
133
+ if (!node && !resolved) {
134
+ return true;
135
+ }
136
+ if ((0, import_approval.isApprovalTaskCardGridUse)(node == null ? void 0 : node.use)) {
137
+ return false;
138
+ }
139
+ if (isGridUse(node == null ? void 0 : node.use) || isPageModelUse(node == null ? void 0 : node.use)) {
140
+ return true;
141
+ }
142
+ if (isPopupHostUse(node == null ? void 0 : node.use) || (0, import_approval.normalizeApprovalSemanticUse)((_b = (_a = node == null ? void 0 : node.subModels) == null ? void 0 : _a.page) == null ? void 0 : _b.use) === "ChildPageModel") {
143
+ return true;
144
+ }
145
+ if (!(node == null ? void 0 : node.use) && isTabsRouteType(resolved == null ? void 0 : resolved.tabRoute) || (node == null ? void 0 : node.use) === "RouteModel" && isTabsRouteType(resolved == null ? void 0 : resolved.route)) {
146
+ return true;
147
+ }
148
+ if (!(node == null ? void 0 : node.use) && isPageRouteType(resolved == null ? void 0 : resolved.pageRoute) || (node == null ? void 0 : node.use) === "RouteModel" && isPageRouteType(resolved == null ? void 0 : resolved.route)) {
149
+ return true;
150
+ }
151
+ return false;
152
+ }
153
+ function isFieldContainerUse(parentUse, subKey) {
154
+ if (subKey === "columns" && parentUse === "TableBlockModel") {
155
+ return true;
156
+ }
157
+ return subKey === "items" && (isGridUse(parentUse) || isFormBlockUse(parentUse) || isDetailsBlockUse(parentUse) || isFilterFormBlockUse(parentUse));
158
+ }
159
+ function isBlockContainerUse(parentUse, subKey) {
160
+ return subKey === "items" && (isGridUse(parentUse) && !(0, import_approval.isApprovalTaskCardGridUse)(parentUse) || isPopupHostUse(parentUse));
161
+ }
162
+ function isActionContainerUse(parentUse) {
163
+ return [
164
+ "TableBlockModel",
165
+ "CalendarBlockModel",
166
+ "KanbanBlockModel",
167
+ "TableActionsColumnModel",
168
+ "ListBlockModel",
169
+ "GridCardBlockModel",
170
+ "ListItemModel",
171
+ "GridCardItemModel",
172
+ "ActionPanelBlockModel"
173
+ ].includes(parentUse || "") || isFormBlockUse(parentUse) || isDetailsBlockUse(parentUse) || isFilterFormBlockUse(parentUse);
174
+ }
175
+ // Annotate the CommonJS export names for ESM import in node:
176
+ 0 && (module.exports = {
177
+ FLOW_SURFACE_DETAILS_BLOCK_USES,
178
+ FLOW_SURFACE_FIELD_WRAPPER_USES,
179
+ FLOW_SURFACE_FILTER_FORM_BLOCK_USES,
180
+ FLOW_SURFACE_FORM_BLOCK_USES,
181
+ FLOW_SURFACE_GRID_USES,
182
+ FLOW_SURFACE_PAGE_MODEL_USES,
183
+ FLOW_SURFACE_PAGE_ROUTE_TYPES,
184
+ FLOW_SURFACE_POPUP_HOST_USES,
185
+ canCatalogAddBlock,
186
+ isActionContainerUse,
187
+ isBlockContainerUse,
188
+ isDetailsBlockUse,
189
+ isFieldContainerUse,
190
+ isFieldWrapperUse,
191
+ isFilterFormBlockUse,
192
+ isFormBlockUse,
193
+ isGridUse,
194
+ isPageModelUse,
195
+ isPageRouteType,
196
+ isPopupHostUse,
197
+ isTabsRouteType
198
+ });
@@ -0,0 +1,179 @@
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 type FlowSurfacePlanSelectorMode = 'none' | 'target' | 'rootUidTarget' | 'sourceTarget';
10
+ export type FlowSurfacePlanActionSpec = {
11
+ selectorMode: FlowSurfacePlanSelectorMode;
12
+ };
13
+ export type FlowSurfacePlanMutateActionSpec = FlowSurfacePlanActionSpec & {
14
+ executionKind: 'mutate';
15
+ };
16
+ export type FlowSurfacePlanOnlyActionSpec = FlowSurfacePlanActionSpec & {
17
+ executionKind: 'planOnly';
18
+ };
19
+ export type FlowSurfaceResolvedPlanActionSpec = FlowSurfacePlanMutateActionSpec | FlowSurfacePlanOnlyActionSpec;
20
+ export declare const FLOW_SURFACE_PLAN_ACTION_SPECS: {
21
+ readonly createMenu: {
22
+ readonly selectorMode: "none";
23
+ readonly executionKind: "mutate";
24
+ };
25
+ readonly createPage: {
26
+ readonly selectorMode: "none";
27
+ readonly executionKind: "mutate";
28
+ };
29
+ readonly compose: {
30
+ readonly selectorMode: "target";
31
+ readonly executionKind: "planOnly";
32
+ };
33
+ readonly configure: {
34
+ readonly selectorMode: "target";
35
+ readonly executionKind: "planOnly";
36
+ };
37
+ readonly setFieldValueRules: {
38
+ readonly selectorMode: "target";
39
+ readonly executionKind: "planOnly";
40
+ };
41
+ readonly setBlockLinkageRules: {
42
+ readonly selectorMode: "target";
43
+ readonly executionKind: "planOnly";
44
+ };
45
+ readonly setFieldLinkageRules: {
46
+ readonly selectorMode: "target";
47
+ readonly executionKind: "planOnly";
48
+ };
49
+ readonly setActionLinkageRules: {
50
+ readonly selectorMode: "target";
51
+ readonly executionKind: "planOnly";
52
+ };
53
+ readonly updateSettings: {
54
+ readonly selectorMode: "target";
55
+ readonly executionKind: "mutate";
56
+ };
57
+ readonly setEventFlows: {
58
+ readonly selectorMode: "target";
59
+ readonly executionKind: "mutate";
60
+ };
61
+ readonly setLayout: {
62
+ readonly selectorMode: "target";
63
+ readonly executionKind: "mutate";
64
+ };
65
+ readonly addTab: {
66
+ readonly selectorMode: "target";
67
+ readonly executionKind: "mutate";
68
+ };
69
+ readonly updateTab: {
70
+ readonly selectorMode: "target";
71
+ readonly executionKind: "mutate";
72
+ };
73
+ readonly moveTab: {
74
+ readonly selectorMode: "sourceTarget";
75
+ readonly executionKind: "mutate";
76
+ };
77
+ readonly removeTab: {
78
+ readonly selectorMode: "rootUidTarget";
79
+ readonly executionKind: "mutate";
80
+ };
81
+ readonly addPopupTab: {
82
+ readonly selectorMode: "target";
83
+ readonly executionKind: "mutate";
84
+ };
85
+ readonly updatePopupTab: {
86
+ readonly selectorMode: "target";
87
+ readonly executionKind: "mutate";
88
+ };
89
+ readonly movePopupTab: {
90
+ readonly selectorMode: "sourceTarget";
91
+ readonly executionKind: "mutate";
92
+ };
93
+ readonly removePopupTab: {
94
+ readonly selectorMode: "target";
95
+ readonly executionKind: "mutate";
96
+ };
97
+ readonly addBlock: {
98
+ readonly selectorMode: "target";
99
+ readonly executionKind: "mutate";
100
+ };
101
+ readonly addField: {
102
+ readonly selectorMode: "target";
103
+ readonly executionKind: "mutate";
104
+ };
105
+ readonly addAction: {
106
+ readonly selectorMode: "target";
107
+ readonly executionKind: "mutate";
108
+ };
109
+ readonly addRecordAction: {
110
+ readonly selectorMode: "target";
111
+ readonly executionKind: "mutate";
112
+ };
113
+ readonly moveNode: {
114
+ readonly selectorMode: "sourceTarget";
115
+ readonly executionKind: "mutate";
116
+ };
117
+ readonly removeNode: {
118
+ readonly selectorMode: "target";
119
+ readonly executionKind: "mutate";
120
+ };
121
+ readonly convertTemplateToCopy: {
122
+ readonly selectorMode: "target";
123
+ readonly executionKind: "planOnly";
124
+ };
125
+ readonly destroyPage: {
126
+ readonly selectorMode: "rootUidTarget";
127
+ readonly executionKind: "mutate";
128
+ };
129
+ } & {
130
+ readonly createMenu: unknown;
131
+ readonly createPage: unknown;
132
+ readonly compose: unknown;
133
+ readonly configure: unknown;
134
+ readonly setFieldValueRules: unknown;
135
+ readonly setBlockLinkageRules: unknown;
136
+ readonly setFieldLinkageRules: unknown;
137
+ readonly setActionLinkageRules: unknown;
138
+ readonly updateSettings: unknown;
139
+ readonly setEventFlows: unknown;
140
+ readonly setLayout: unknown;
141
+ readonly addTab: unknown;
142
+ readonly updateTab: unknown;
143
+ readonly moveTab: unknown;
144
+ readonly removeTab: unknown;
145
+ readonly addPopupTab: unknown;
146
+ readonly updatePopupTab: unknown;
147
+ readonly movePopupTab: unknown;
148
+ readonly removePopupTab: unknown;
149
+ readonly addBlock: unknown;
150
+ readonly addField: unknown;
151
+ readonly addAction: unknown;
152
+ readonly addRecordAction: unknown;
153
+ readonly moveNode: unknown;
154
+ readonly removeNode: unknown;
155
+ readonly convertTemplateToCopy: unknown;
156
+ readonly destroyPage: unknown;
157
+ };
158
+ export type FlowSurfacePlanStepActionName = keyof typeof FLOW_SURFACE_PLAN_ACTION_SPECS;
159
+ export type FlowSurfacePlanOnlyActionName = {
160
+ [K in FlowSurfacePlanStepActionName]: (typeof FLOW_SURFACE_PLAN_ACTION_SPECS)[K] extends {
161
+ executionKind: 'planOnly';
162
+ } ? K : never;
163
+ }[FlowSurfacePlanStepActionName];
164
+ export declare const FLOW_SURFACE_PLAN_STEP_ACTIONS: ("createMenu" | "setFieldValueRules" | "setBlockLinkageRules" | "setFieldLinkageRules" | "setActionLinkageRules" | "convertTemplateToCopy" | "compose" | "configure" | "createPage" | "destroyPage" | "addTab" | "updateTab" | "moveTab" | "removeTab" | "addPopupTab" | "updatePopupTab" | "movePopupTab" | "removePopupTab" | "addBlock" | "addField" | "addAction" | "addRecordAction" | "updateSettings" | "setEventFlows" | "setLayout" | "moveNode" | "removeNode")[];
165
+ export declare function getFlowSurfacePlanSelectorRequirements(selectorMode: FlowSurfacePlanSelectorMode): {
166
+ readonly requiresTarget: false;
167
+ readonly requiresSource: false;
168
+ } | {
169
+ readonly requiresTarget: true;
170
+ readonly requiresSource: false;
171
+ } | {
172
+ readonly requiresTarget: true;
173
+ readonly requiresSource: false;
174
+ } | {
175
+ readonly requiresTarget: true;
176
+ readonly requiresSource: true;
177
+ };
178
+ export declare function getFlowSurfacePlanActionSpec(action: string): FlowSurfaceResolvedPlanActionSpec | undefined;
179
+ export declare function isFlowSurfacePlanOnlyAction(action: string): action is FlowSurfacePlanOnlyActionName;