@nocobase/plugin-flow-engine 2.1.0-alpha.10 → 2.1.0-alpha.11

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 (563) hide show
  1. package/dist/ai/ai-employees/nathan/index.d.ts +10 -0
  2. package/dist/ai/ai-employees/nathan/index.js +152 -0
  3. package/dist/ai/ai-employees/nathan/skills/frontend-developer/SKILLS.md +69 -0
  4. package/dist/client/index.js +1 -1
  5. package/dist/externalVersion.js +12 -10
  6. package/dist/node_modules/ajv/.runkit_example.js +23 -0
  7. package/dist/node_modules/ajv/LICENSE +22 -0
  8. package/dist/node_modules/ajv/dist/2019.d.ts +19 -0
  9. package/dist/node_modules/ajv/dist/2019.js +61 -0
  10. package/dist/node_modules/ajv/dist/2020.d.ts +19 -0
  11. package/dist/node_modules/ajv/dist/2020.js +55 -0
  12. package/dist/node_modules/ajv/dist/ajv.d.ts +18 -0
  13. package/dist/node_modules/ajv/dist/ajv.js +7 -0
  14. package/dist/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  15. package/dist/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  16. package/dist/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  17. package/dist/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  18. package/dist/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  19. package/dist/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  20. package/dist/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  21. package/dist/node_modules/ajv/dist/compile/errors.js +123 -0
  22. package/dist/node_modules/ajv/dist/compile/index.d.ts +80 -0
  23. package/dist/node_modules/ajv/dist/compile/index.js +242 -0
  24. package/dist/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  25. package/dist/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  26. package/dist/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  27. package/dist/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
  28. package/dist/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  29. package/dist/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  30. package/dist/node_modules/ajv/dist/compile/names.d.ts +20 -0
  31. package/dist/node_modules/ajv/dist/compile/names.js +28 -0
  32. package/dist/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  33. package/dist/node_modules/ajv/dist/compile/ref_error.js +12 -0
  34. package/dist/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  35. package/dist/node_modules/ajv/dist/compile/resolve.js +155 -0
  36. package/dist/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  37. package/dist/node_modules/ajv/dist/compile/rules.js +26 -0
  38. package/dist/node_modules/ajv/dist/compile/util.d.ts +40 -0
  39. package/dist/node_modules/ajv/dist/compile/util.js +178 -0
  40. package/dist/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  41. package/dist/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  42. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  43. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  44. package/dist/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  45. package/dist/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  46. package/dist/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  47. package/dist/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  48. package/dist/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  49. package/dist/node_modules/ajv/dist/compile/validate/index.js +520 -0
  50. package/dist/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  51. package/dist/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  52. package/dist/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  53. package/dist/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  54. package/dist/node_modules/ajv/dist/core.d.ts +174 -0
  55. package/dist/node_modules/ajv/dist/core.js +618 -0
  56. package/dist/node_modules/ajv/dist/jtd.d.ts +47 -0
  57. package/dist/node_modules/ajv/dist/jtd.js +72 -0
  58. package/dist/node_modules/ajv/dist/refs/data.json +13 -0
  59. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  60. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  61. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  62. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  63. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  64. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  65. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  66. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  67. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  68. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  69. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  70. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  71. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  72. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  73. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  74. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  75. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  76. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  77. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  78. package/dist/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  79. package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  80. package/dist/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  81. package/dist/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  82. package/dist/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  83. package/dist/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  84. package/dist/node_modules/ajv/dist/runtime/equal.js +7 -0
  85. package/dist/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  86. package/dist/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  87. package/dist/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  88. package/dist/node_modules/ajv/dist/runtime/quote.js +30 -0
  89. package/dist/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  90. package/dist/node_modules/ajv/dist/runtime/re2.js +6 -0
  91. package/dist/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  92. package/dist/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  93. package/dist/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  94. package/dist/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  95. package/dist/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  96. package/dist/node_modules/ajv/dist/runtime/uri.js +6 -0
  97. package/dist/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  98. package/dist/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  99. package/dist/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  100. package/dist/node_modules/ajv/dist/standalone/index.js +90 -0
  101. package/dist/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  102. package/dist/node_modules/ajv/dist/standalone/instance.js +35 -0
  103. package/dist/node_modules/ajv/dist/types/index.d.ts +183 -0
  104. package/dist/node_modules/ajv/dist/types/index.js +3 -0
  105. package/dist/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  106. package/dist/node_modules/ajv/dist/types/json-schema.js +3 -0
  107. package/dist/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  108. package/dist/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  109. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  110. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  111. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  112. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  113. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  114. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  115. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  116. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  117. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  118. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  119. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  120. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  121. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  122. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  123. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  124. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  125. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  126. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  127. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  128. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  129. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  130. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  131. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  132. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  133. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  134. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  135. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  136. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  137. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  138. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  139. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  140. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  141. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  142. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  143. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  144. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  145. package/dist/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  146. package/dist/node_modules/ajv/dist/vocabularies/code.js +131 -0
  147. package/dist/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  148. package/dist/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  149. package/dist/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  150. package/dist/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  151. package/dist/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  152. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  153. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  154. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  155. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  156. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  157. package/dist/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  158. package/dist/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  159. package/dist/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  160. package/dist/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  161. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  162. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  163. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  164. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  165. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  166. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  167. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  168. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  169. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  170. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  171. package/dist/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  172. package/dist/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  173. package/dist/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  174. package/dist/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  175. package/dist/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  176. package/dist/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  177. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  178. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  179. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  180. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  181. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  182. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  183. package/dist/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  184. package/dist/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  185. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  186. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  187. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  188. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  189. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  190. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  191. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  192. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  193. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  194. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  195. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  196. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  197. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  198. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  199. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  200. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  201. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  202. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  203. package/dist/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  204. package/dist/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  205. package/dist/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  206. package/dist/node_modules/ajv/dist/vocabularies/next.js +8 -0
  207. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  208. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  209. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  210. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  211. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  212. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  213. package/dist/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  214. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  215. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  216. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  217. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  218. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  219. package/dist/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  220. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  221. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  222. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  223. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  224. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  225. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  226. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  227. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  228. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  229. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  230. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  231. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  232. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  233. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  234. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  235. package/dist/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  236. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  237. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  238. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  239. package/dist/node_modules/ajv/lib/2019.ts +81 -0
  240. package/dist/node_modules/ajv/lib/2020.ts +75 -0
  241. package/dist/node_modules/ajv/lib/ajv.ts +70 -0
  242. package/dist/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  243. package/dist/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  244. package/dist/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  245. package/dist/node_modules/ajv/lib/compile/errors.ts +184 -0
  246. package/dist/node_modules/ajv/lib/compile/index.ts +324 -0
  247. package/dist/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  248. package/dist/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
  249. package/dist/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  250. package/dist/node_modules/ajv/lib/compile/names.ts +27 -0
  251. package/dist/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  252. package/dist/node_modules/ajv/lib/compile/resolve.ts +149 -0
  253. package/dist/node_modules/ajv/lib/compile/rules.ts +50 -0
  254. package/dist/node_modules/ajv/lib/compile/util.ts +213 -0
  255. package/dist/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  256. package/dist/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  257. package/dist/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  258. package/dist/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  259. package/dist/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  260. package/dist/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  261. package/dist/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  262. package/dist/node_modules/ajv/lib/core.ts +892 -0
  263. package/dist/node_modules/ajv/lib/jtd.ts +132 -0
  264. package/dist/node_modules/ajv/lib/refs/data.json +13 -0
  265. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  266. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  267. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  268. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  269. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  270. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  271. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  272. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  273. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  274. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  275. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  276. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  277. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  278. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  279. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  280. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  281. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  282. package/dist/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  283. package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  284. package/dist/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  285. package/dist/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  286. package/dist/node_modules/ajv/lib/runtime/equal.ts +7 -0
  287. package/dist/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  288. package/dist/node_modules/ajv/lib/runtime/quote.ts +31 -0
  289. package/dist/node_modules/ajv/lib/runtime/re2.ts +6 -0
  290. package/dist/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  291. package/dist/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  292. package/dist/node_modules/ajv/lib/runtime/uri.ts +6 -0
  293. package/dist/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  294. package/dist/node_modules/ajv/lib/standalone/index.ts +100 -0
  295. package/dist/node_modules/ajv/lib/standalone/instance.ts +36 -0
  296. package/dist/node_modules/ajv/lib/types/index.ts +244 -0
  297. package/dist/node_modules/ajv/lib/types/json-schema.ts +187 -0
  298. package/dist/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  299. package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  300. package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  301. package/dist/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  302. package/dist/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  303. package/dist/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  304. package/dist/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  305. package/dist/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  306. package/dist/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  307. package/dist/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  308. package/dist/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  309. package/dist/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  310. package/dist/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  311. package/dist/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  312. package/dist/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  313. package/dist/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  314. package/dist/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  315. package/dist/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  316. package/dist/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  317. package/dist/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  318. package/dist/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  319. package/dist/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  320. package/dist/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  321. package/dist/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  322. package/dist/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  323. package/dist/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  324. package/dist/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  325. package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  326. package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  327. package/dist/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  328. package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  329. package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  330. package/dist/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  331. package/dist/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  332. package/dist/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  333. package/dist/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  334. package/dist/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  335. package/dist/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  336. package/dist/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  337. package/dist/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  338. package/dist/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  339. package/dist/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  340. package/dist/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  341. package/dist/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  342. package/dist/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  343. package/dist/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  344. package/dist/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  345. package/dist/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  346. package/dist/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  347. package/dist/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  348. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  349. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  350. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  351. package/dist/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  352. package/dist/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  353. package/dist/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  354. package/dist/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  355. package/dist/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  356. package/dist/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  357. package/dist/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  358. package/dist/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  359. package/dist/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  360. package/dist/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  361. package/dist/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
  362. package/dist/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  363. package/dist/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  364. package/dist/node_modules/ajv/package.json +1 -0
  365. package/dist/node_modules/ses/package.json +1 -1
  366. package/dist/node_modules/zod/package.json +1 -1
  367. package/dist/server/flow-models/action-handlers.d.ts +26 -0
  368. package/dist/server/flow-models/action-handlers.js +209 -0
  369. package/dist/server/flow-models/http-error-adapter.d.ts +10 -0
  370. package/dist/server/flow-models/http-error-adapter.js +58 -0
  371. package/dist/server/flow-models/mutate-executor.d.ts +17 -0
  372. package/dist/server/flow-models/mutate-executor.js +309 -0
  373. package/dist/server/flow-models/repository-internals/duplicate-helpers.d.ts +12 -0
  374. package/dist/server/flow-models/repository-internals/duplicate-helpers.js +121 -0
  375. package/dist/server/flow-models/repository-internals/ensure-lock.d.ts +15 -0
  376. package/dist/server/flow-models/repository-internals/ensure-lock.js +117 -0
  377. package/dist/server/flow-models/repository-internals/errors.d.ts +21 -0
  378. package/dist/server/flow-models/repository-internals/errors.js +78 -0
  379. package/dist/server/flow-models/schema-contribution-collector.d.ts +27 -0
  380. package/dist/server/flow-models/schema-contribution-collector.js +217 -0
  381. package/dist/server/flow-models/validation-facade.d.ts +29 -0
  382. package/dist/server/flow-models/validation-facade.js +181 -0
  383. package/dist/server/flow-schema-contributions/actions/aclCheck.d.ts +10 -0
  384. package/dist/server/flow-schema-contributions/actions/aclCheck.js +46 -0
  385. package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.d.ts +10 -0
  386. package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.js +46 -0
  387. package/dist/server/flow-schema-contributions/actions/actionLinkageRules.d.ts +10 -0
  388. package/dist/server/flow-schema-contributions/actions/actionLinkageRules.js +48 -0
  389. package/dist/server/flow-schema-contributions/actions/confirm.d.ts +10 -0
  390. package/dist/server/flow-schema-contributions/actions/confirm.js +73 -0
  391. package/dist/server/flow-schema-contributions/actions/customVariable.d.ts +10 -0
  392. package/dist/server/flow-schema-contributions/actions/customVariable.js +76 -0
  393. package/dist/server/flow-schema-contributions/actions/dataScope.d.ts +10 -0
  394. package/dist/server/flow-schema-contributions/actions/dataScope.js +79 -0
  395. package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.d.ts +10 -0
  396. package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.js +62 -0
  397. package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.d.ts +10 -0
  398. package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.js +62 -0
  399. package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.d.ts +10 -0
  400. package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.js +80 -0
  401. package/dist/server/flow-schema-contributions/actions/formAssignRules.d.ts +10 -0
  402. package/dist/server/flow-schema-contributions/actions/formAssignRules.js +62 -0
  403. package/dist/server/flow-schema-contributions/actions/index.d.ts +31 -0
  404. package/dist/server/flow-schema-contributions/actions/index.js +117 -0
  405. package/dist/server/flow-schema-contributions/actions/layout.d.ts +10 -0
  406. package/dist/server/flow-schema-contributions/actions/layout.js +68 -0
  407. package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.d.ts +10 -0
  408. package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.js +50 -0
  409. package/dist/server/flow-schema-contributions/actions/navigateToURL.d.ts +10 -0
  410. package/dist/server/flow-schema-contributions/actions/navigateToURL.js +82 -0
  411. package/dist/server/flow-schema-contributions/actions/openView.d.ts +10 -0
  412. package/dist/server/flow-schema-contributions/actions/openView.js +68 -0
  413. package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.d.ts +10 -0
  414. package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.js +56 -0
  415. package/dist/server/flow-schema-contributions/actions/runjs.d.ts +10 -0
  416. package/dist/server/flow-schema-contributions/actions/runjs.js +55 -0
  417. package/dist/server/flow-schema-contributions/actions/setTargetDataScope.d.ts +10 -0
  418. package/dist/server/flow-schema-contributions/actions/setTargetDataScope.js +59 -0
  419. package/dist/server/flow-schema-contributions/actions/showMessage.d.ts +10 -0
  420. package/dist/server/flow-schema-contributions/actions/showMessage.js +69 -0
  421. package/dist/server/flow-schema-contributions/actions/showNotification.d.ts +10 -0
  422. package/dist/server/flow-schema-contributions/actions/showNotification.js +76 -0
  423. package/dist/server/flow-schema-contributions/actions/sortingRule.d.ts +10 -0
  424. package/dist/server/flow-schema-contributions/actions/sortingRule.js +67 -0
  425. package/dist/server/flow-schema-contributions/field-models.d.ts +12 -0
  426. package/dist/server/flow-schema-contributions/field-models.js +693 -0
  427. package/dist/server/flow-schema-contributions/index.d.ts +13 -0
  428. package/dist/server/flow-schema-contributions/index.js +64 -0
  429. package/dist/server/flow-schema-contributions/models/ActionModel.d.ts +10 -0
  430. package/dist/server/flow-schema-contributions/models/ActionModel.js +202 -0
  431. package/dist/server/flow-schema-contributions/models/AddChildActionModel.d.ts +10 -0
  432. package/dist/server/flow-schema-contributions/models/AddChildActionModel.js +47 -0
  433. package/dist/server/flow-schema-contributions/models/AddNewActionModel.d.ts +10 -0
  434. package/dist/server/flow-schema-contributions/models/AddNewActionModel.js +93 -0
  435. package/dist/server/flow-schema-contributions/models/AssignFormGridModel.d.ts +10 -0
  436. package/dist/server/flow-schema-contributions/models/AssignFormGridModel.js +82 -0
  437. package/dist/server/flow-schema-contributions/models/AssignFormItemModel.d.ts +10 -0
  438. package/dist/server/flow-schema-contributions/models/AssignFormItemModel.js +80 -0
  439. package/dist/server/flow-schema-contributions/models/AssignFormModel.d.ts +10 -0
  440. package/dist/server/flow-schema-contributions/models/AssignFormModel.js +122 -0
  441. package/dist/server/flow-schema-contributions/models/BasePageTabModel.d.ts +10 -0
  442. package/dist/server/flow-schema-contributions/models/BasePageTabModel.js +71 -0
  443. package/dist/server/flow-schema-contributions/models/BlockGridModel.d.ts +10 -0
  444. package/dist/server/flow-schema-contributions/models/BlockGridModel.js +81 -0
  445. package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.d.ts +10 -0
  446. package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.js +47 -0
  447. package/dist/server/flow-schema-contributions/models/ChildPageModel.d.ts +10 -0
  448. package/dist/server/flow-schema-contributions/models/ChildPageModel.js +106 -0
  449. package/dist/server/flow-schema-contributions/models/ChildPageTabModel.d.ts +10 -0
  450. package/dist/server/flow-schema-contributions/models/ChildPageTabModel.js +114 -0
  451. package/dist/server/flow-schema-contributions/models/CreateFormModel.d.ts +10 -0
  452. package/dist/server/flow-schema-contributions/models/CreateFormModel.js +54 -0
  453. package/dist/server/flow-schema-contributions/models/DeleteActionModel.d.ts +10 -0
  454. package/dist/server/flow-schema-contributions/models/DeleteActionModel.js +47 -0
  455. package/dist/server/flow-schema-contributions/models/DetailsBlockModel.d.ts +10 -0
  456. package/dist/server/flow-schema-contributions/models/DetailsBlockModel.js +179 -0
  457. package/dist/server/flow-schema-contributions/models/DetailsGridModel.d.ts +10 -0
  458. package/dist/server/flow-schema-contributions/models/DetailsGridModel.js +82 -0
  459. package/dist/server/flow-schema-contributions/models/DetailsItemModel.d.ts +10 -0
  460. package/dist/server/flow-schema-contributions/models/DetailsItemModel.js +77 -0
  461. package/dist/server/flow-schema-contributions/models/EditActionModel.d.ts +10 -0
  462. package/dist/server/flow-schema-contributions/models/EditActionModel.js +93 -0
  463. package/dist/server/flow-schema-contributions/models/EditFormModel.d.ts +10 -0
  464. package/dist/server/flow-schema-contributions/models/EditFormModel.js +103 -0
  465. package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.d.ts +10 -0
  466. package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.js +47 -0
  467. package/dist/server/flow-schema-contributions/models/FilterActionModel.d.ts +10 -0
  468. package/dist/server/flow-schema-contributions/models/FilterActionModel.js +57 -0
  469. package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.d.ts +10 -0
  470. package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.js +155 -0
  471. package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.d.ts +10 -0
  472. package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.js +85 -0
  473. package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.d.ts +10 -0
  474. package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.js +89 -0
  475. package/dist/server/flow-schema-contributions/models/FilterFormGridModel.d.ts +10 -0
  476. package/dist/server/flow-schema-contributions/models/FilterFormGridModel.js +82 -0
  477. package/dist/server/flow-schema-contributions/models/FilterFormItemModel.d.ts +10 -0
  478. package/dist/server/flow-schema-contributions/models/FilterFormItemModel.js +77 -0
  479. package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.d.ts +10 -0
  480. package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.js +108 -0
  481. package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.d.ts +10 -0
  482. package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.js +87 -0
  483. package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.d.ts +10 -0
  484. package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.js +87 -0
  485. package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.d.ts +10 -0
  486. package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.js +78 -0
  487. package/dist/server/flow-schema-contributions/models/FormBlockModel.d.ts +10 -0
  488. package/dist/server/flow-schema-contributions/models/FormBlockModel.js +45 -0
  489. package/dist/server/flow-schema-contributions/models/FormGridModel.d.ts +10 -0
  490. package/dist/server/flow-schema-contributions/models/FormGridModel.js +67 -0
  491. package/dist/server/flow-schema-contributions/models/FormItemModel.d.ts +10 -0
  492. package/dist/server/flow-schema-contributions/models/FormItemModel.js +77 -0
  493. package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.d.ts +10 -0
  494. package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.js +87 -0
  495. package/dist/server/flow-schema-contributions/models/JSActionModel.d.ts +10 -0
  496. package/dist/server/flow-schema-contributions/models/JSActionModel.js +65 -0
  497. package/dist/server/flow-schema-contributions/models/JSBlockModel.d.ts +10 -0
  498. package/dist/server/flow-schema-contributions/models/JSBlockModel.js +90 -0
  499. package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.d.ts +10 -0
  500. package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.js +47 -0
  501. package/dist/server/flow-schema-contributions/models/JSColumnModel.d.ts +10 -0
  502. package/dist/server/flow-schema-contributions/models/JSColumnModel.js +100 -0
  503. package/dist/server/flow-schema-contributions/models/JSFormActionModel.d.ts +10 -0
  504. package/dist/server/flow-schema-contributions/models/JSFormActionModel.js +47 -0
  505. package/dist/server/flow-schema-contributions/models/JSItemModel.d.ts +10 -0
  506. package/dist/server/flow-schema-contributions/models/JSItemModel.js +87 -0
  507. package/dist/server/flow-schema-contributions/models/JSRecordActionModel.d.ts +10 -0
  508. package/dist/server/flow-schema-contributions/models/JSRecordActionModel.js +47 -0
  509. package/dist/server/flow-schema-contributions/models/LinkActionModel.d.ts +10 -0
  510. package/dist/server/flow-schema-contributions/models/LinkActionModel.js +47 -0
  511. package/dist/server/flow-schema-contributions/models/PageModel.d.ts +10 -0
  512. package/dist/server/flow-schema-contributions/models/PageModel.js +159 -0
  513. package/dist/server/flow-schema-contributions/models/PageTabModel.d.ts +10 -0
  514. package/dist/server/flow-schema-contributions/models/PageTabModel.js +69 -0
  515. package/dist/server/flow-schema-contributions/models/PopupActionModel.d.ts +10 -0
  516. package/dist/server/flow-schema-contributions/models/PopupActionModel.js +92 -0
  517. package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.d.ts +10 -0
  518. package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.js +119 -0
  519. package/dist/server/flow-schema-contributions/models/RefreshActionModel.d.ts +10 -0
  520. package/dist/server/flow-schema-contributions/models/RefreshActionModel.js +47 -0
  521. package/dist/server/flow-schema-contributions/models/RootPageModel.d.ts +10 -0
  522. package/dist/server/flow-schema-contributions/models/RootPageModel.js +124 -0
  523. package/dist/server/flow-schema-contributions/models/RootPageTabModel.d.ts +10 -0
  524. package/dist/server/flow-schema-contributions/models/RootPageTabModel.js +69 -0
  525. package/dist/server/flow-schema-contributions/models/RouteModel.d.ts +10 -0
  526. package/dist/server/flow-schema-contributions/models/RouteModel.js +121 -0
  527. package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.d.ts +10 -0
  528. package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.js +93 -0
  529. package/dist/server/flow-schema-contributions/models/TableBlockModel.d.ts +10 -0
  530. package/dist/server/flow-schema-contributions/models/TableBlockModel.js +254 -0
  531. package/dist/server/flow-schema-contributions/models/TableColumnModel.d.ts +10 -0
  532. package/dist/server/flow-schema-contributions/models/TableColumnModel.js +77 -0
  533. package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.d.ts +10 -0
  534. package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.js +66 -0
  535. package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.d.ts +10 -0
  536. package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.js +173 -0
  537. package/dist/server/flow-schema-contributions/models/ViewActionModel.d.ts +10 -0
  538. package/dist/server/flow-schema-contributions/models/ViewActionModel.js +123 -0
  539. package/dist/server/flow-schema-contributions/models/index.d.ts +66 -0
  540. package/dist/server/flow-schema-contributions/models/index.js +257 -0
  541. package/dist/server/flow-schema-contributions/shared.d.ts +501 -0
  542. package/dist/server/flow-schema-contributions/shared.js +1649 -0
  543. package/dist/server/flow-schema-service.d.ts +87 -0
  544. package/dist/server/flow-schema-service.js +963 -0
  545. package/dist/server/index.d.ts +1 -0
  546. package/dist/server/index.js +4 -1
  547. package/dist/server/plugin.d.ts +2 -0
  548. package/dist/server/plugin.js +6 -2
  549. package/dist/server/repository.d.ts +67 -9
  550. package/dist/server/repository.js +417 -106
  551. package/dist/server/server.d.ts +7 -0
  552. package/dist/server/server.js +23 -53
  553. package/dist/swagger/index.d.ts +1164 -0
  554. package/dist/swagger/index.js +732 -0
  555. package/package.json +4 -2
  556. /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextApis.d.ts +0 -0
  557. /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextApis.js +0 -0
  558. /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextEnvs.d.ts +0 -0
  559. /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextEnvs.js +0 -0
  560. /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextVars.d.ts +0 -0
  561. /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextVars.js +0 -0
  562. /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/lintAndTestJS.d.ts +0 -0
  563. /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/lintAndTestJS.js +0 -0
@@ -0,0 +1,1649 @@
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 shared_exports = {};
28
+ __export(shared_exports, {
29
+ aclCheckRefreshParamsSchema: () => aclCheckRefreshParamsSchema,
30
+ actionButtonGeneralStepParamsSchema: () => actionButtonGeneralStepParamsSchema,
31
+ actionButtonSettingsStepParamsSchema: () => actionButtonSettingsStepParamsSchema,
32
+ assignFormItemStepParamsSchema: () => assignFormItemStepParamsSchema,
33
+ childPageSettingsStepParamsSchema: () => childPageSettingsStepParamsSchema,
34
+ collectionActionUses: () => collectionActionUses,
35
+ collectionResourceInitSchema: () => collectionResourceInitSchema,
36
+ collectionResourceSettingsStepParamsSchema: () => collectionResourceSettingsStepParamsSchema,
37
+ confirmStepParamsSchema: () => confirmStepParamsSchema,
38
+ coreBlockGridItemUses: () => coreBlockGridItemUses,
39
+ createActionStepParamsSchema: () => createActionStepParamsSchema,
40
+ createAssociatedCollectionPattern: () => createAssociatedCollectionPattern,
41
+ createCollectionResourceInit: () => createCollectionResourceInit,
42
+ createCollectionResourceStepParams: () => createCollectionResourceStepParams,
43
+ createCurrentRecordCollectionPattern: () => createCurrentRecordCollectionPattern,
44
+ createFieldBoundStepParamsSchema: () => createFieldBoundStepParamsSchema,
45
+ createFieldModelSchemaContribution: () => createFieldModelSchemaContribution,
46
+ createFieldModelSkeleton: () => createFieldModelSkeleton,
47
+ createFieldModelStepParamsSchema: () => createFieldModelStepParamsSchema,
48
+ createFormBlockCommonPatterns: () => createFormBlockCommonPatterns,
49
+ createFormBlockDynamicHints: () => createFormBlockDynamicHints,
50
+ createFormBlockMinimalExample: () => createFormBlockMinimalExample,
51
+ createFormBlockSkeleton: () => createFormBlockSkeleton,
52
+ createFormBlockSubModelSlots: () => createFormBlockSubModelSlots,
53
+ createFormGridDynamicHints: () => createFormGridDynamicHints,
54
+ createGridLayoutDocs: () => createGridLayoutDocs,
55
+ createGridLayoutStepParamsSchema: () => createGridLayoutStepParamsSchema,
56
+ createPopupActionExample: () => createPopupActionExample,
57
+ createPopupActionOpenViewParams: () => createPopupActionOpenViewParams,
58
+ createPopupActionPattern: () => createPopupActionPattern,
59
+ createPopupActionStepParams: () => createPopupActionStepParams,
60
+ createPopupBlockGrid: () => createPopupBlockGrid,
61
+ createPopupChildPageTree: () => createPopupChildPageTree,
62
+ createPopupPageSlotSchema: () => createPopupPageSlotSchema,
63
+ createRuntimeFieldDynamicHint: () => createRuntimeFieldDynamicHint,
64
+ createRuntimeFieldModelSlotSchema: () => createRuntimeFieldModelSlotSchema,
65
+ dataScopeParamsSchema: () => dataScopeParamsSchema,
66
+ defaultValueStepParamsSchema: () => defaultValueStepParamsSchema,
67
+ deleteActionSettingsStepParamsSchema: () => deleteActionSettingsStepParamsSchema,
68
+ descriptionStepParamsSchema: () => descriptionStepParamsSchema,
69
+ detailItemStepParamsSchema: () => detailItemStepParamsSchema,
70
+ detailsGridItemUses: () => detailsGridItemUses,
71
+ emptyObjectSchema: () => emptyObjectSchema,
72
+ expandCollapseActionSettingsStepParamsSchema: () => expandCollapseActionSettingsStepParamsSchema,
73
+ fieldBindingInitSchema: () => fieldBindingInitSchema,
74
+ filterActionSettingsStepParamsSchema: () => filterActionSettingsStepParamsSchema,
75
+ filterFieldMetadataSchema: () => filterFieldMetadataSchema,
76
+ filterFormActionUses: () => filterFormActionUses,
77
+ filterFormCollapseSettingsStepParamsSchema: () => filterFormCollapseSettingsStepParamsSchema,
78
+ filterFormGridItemUses: () => filterFormGridItemUses,
79
+ filterFormItemInitStepParamsSchema: () => filterFormItemInitStepParamsSchema,
80
+ filterFormItemStepParamsSchema: () => filterFormItemStepParamsSchema,
81
+ formBlockActionUses: () => formBlockActionUses,
82
+ formBlockAntiPatterns: () => formBlockAntiPatterns,
83
+ formBlockBaseStepParamsSchema: () => formBlockBaseStepParamsSchema,
84
+ formGridItemUses: () => formGridItemUses,
85
+ formItemStepParamsSchema: () => formItemStepParamsSchema,
86
+ formSubmitSettingsStepParamsSchema: () => formSubmitSettingsStepParamsSchema,
87
+ genericFilterSchema: () => genericFilterSchema,
88
+ genericModelNodeSchema: () => genericModelNodeSchema,
89
+ gridRowOrderSchema: () => gridRowOrderSchema,
90
+ gridRowsSchema: () => gridRowsSchema,
91
+ gridSizesSchema: () => gridSizesSchema,
92
+ labelStepParamsSchema: () => labelStepParamsSchema,
93
+ layoutParamsSchema: () => layoutParamsSchema,
94
+ linkActionSettingsStepParamsSchema: () => linkActionSettingsStepParamsSchema,
95
+ linkageRuleValueSchema: () => linkageRuleValueSchema,
96
+ linkageRulesRefreshParamsSchema: () => linkageRulesRefreshParamsSchema,
97
+ openViewParamsSchema: () => openViewParamsSchema,
98
+ pageTabSettingsStepParamsSchema: () => pageTabSettingsStepParamsSchema,
99
+ pageTabUses: () => pageTabUses,
100
+ popupActionAntiPatterns: () => popupActionAntiPatterns,
101
+ popupActionSettingsStepParamsSchema: () => popupActionSettingsStepParamsSchema,
102
+ publicBlockRootUses: () => publicBlockRootUses,
103
+ recordActionUses: () => recordActionUses,
104
+ refreshActionSettingsStepParamsSchema: () => refreshActionSettingsStepParamsSchema,
105
+ runJsActionSettingsStepParamsSchema: () => runJsActionSettingsStepParamsSchema,
106
+ showLabelStepParamsSchema: () => showLabelStepParamsSchema,
107
+ sortingRuleParamsSchema: () => sortingRuleParamsSchema,
108
+ tableColumnEditableStepParamsSchema: () => tableColumnEditableStepParamsSchema,
109
+ tableColumnSorterStepParamsSchema: () => tableColumnSorterStepParamsSchema,
110
+ tableColumnStepParamsSchema: () => tableColumnStepParamsSchema,
111
+ tableColumnUses: () => tableColumnUses,
112
+ tableColumnWidthStepParamsSchema: () => tableColumnWidthStepParamsSchema,
113
+ tooltipStepParamsSchema: () => tooltipStepParamsSchema
114
+ });
115
+ module.exports = __toCommonJS(shared_exports);
116
+ const genericFilterSchemaId = "urn:nocobase:schema:plugin-flow-engine:generic-filter";
117
+ const genericFilterSchema = {
118
+ $id: genericFilterSchemaId,
119
+ definitions: {
120
+ filterCondition: {
121
+ type: "object",
122
+ properties: {
123
+ path: {
124
+ type: "string"
125
+ },
126
+ operator: {
127
+ type: "string"
128
+ },
129
+ value: {},
130
+ noValue: {
131
+ type: "boolean"
132
+ }
133
+ },
134
+ required: ["path"],
135
+ additionalProperties: true,
136
+ allOf: [
137
+ {
138
+ not: {
139
+ required: ["logic"]
140
+ }
141
+ },
142
+ {
143
+ not: {
144
+ required: ["items"]
145
+ }
146
+ }
147
+ ]
148
+ },
149
+ filterGroup: {
150
+ type: "object",
151
+ properties: {
152
+ logic: {
153
+ type: "string",
154
+ enum: ["$and", "$or"]
155
+ },
156
+ items: {
157
+ type: "array",
158
+ items: {
159
+ oneOf: [
160
+ { $ref: `${genericFilterSchemaId}#/definitions/filterCondition` },
161
+ { $ref: `${genericFilterSchemaId}#/definitions/filterGroup` }
162
+ ]
163
+ }
164
+ }
165
+ },
166
+ required: ["logic", "items"],
167
+ additionalProperties: true,
168
+ allOf: [
169
+ {
170
+ not: {
171
+ required: ["path"]
172
+ }
173
+ },
174
+ {
175
+ not: {
176
+ required: ["operator"]
177
+ }
178
+ },
179
+ {
180
+ not: {
181
+ required: ["value"]
182
+ }
183
+ },
184
+ {
185
+ not: {
186
+ required: ["noValue"]
187
+ }
188
+ }
189
+ ]
190
+ }
191
+ },
192
+ type: "object",
193
+ properties: {
194
+ logic: {
195
+ type: "string",
196
+ enum: ["$and", "$or"]
197
+ },
198
+ items: {
199
+ type: "array",
200
+ items: {
201
+ oneOf: [
202
+ { $ref: `${genericFilterSchemaId}#/definitions/filterCondition` },
203
+ { $ref: `${genericFilterSchemaId}#/definitions/filterGroup` }
204
+ ]
205
+ }
206
+ }
207
+ },
208
+ required: ["logic", "items"],
209
+ additionalProperties: true,
210
+ allOf: [
211
+ {
212
+ not: {
213
+ required: ["path"]
214
+ }
215
+ },
216
+ {
217
+ not: {
218
+ required: ["operator"]
219
+ }
220
+ },
221
+ {
222
+ not: {
223
+ required: ["value"]
224
+ }
225
+ },
226
+ {
227
+ not: {
228
+ required: ["noValue"]
229
+ }
230
+ }
231
+ ]
232
+ };
233
+ const genericModelNodeSchema = {
234
+ type: "object",
235
+ required: ["uid", "use"],
236
+ properties: {
237
+ uid: { type: "string" },
238
+ use: { type: "string" }
239
+ },
240
+ additionalProperties: true
241
+ };
242
+ const emptyObjectSchema = {
243
+ type: "object",
244
+ additionalProperties: false
245
+ };
246
+ const linkageRuleValueSchema = {
247
+ type: "object",
248
+ properties: {
249
+ value: {
250
+ type: "array",
251
+ items: {
252
+ type: "object",
253
+ additionalProperties: true
254
+ }
255
+ }
256
+ },
257
+ additionalProperties: false
258
+ };
259
+ const layoutParamsSchema = {
260
+ type: "object",
261
+ properties: {
262
+ layout: {
263
+ type: "string",
264
+ enum: ["vertical", "horizontal"]
265
+ },
266
+ labelAlign: {
267
+ type: "string",
268
+ enum: ["left", "right"]
269
+ },
270
+ labelWidth: {
271
+ type: ["number", "string", "null"]
272
+ },
273
+ labelWrap: {
274
+ type: "boolean"
275
+ },
276
+ colon: {
277
+ type: "boolean"
278
+ }
279
+ },
280
+ required: ["layout"],
281
+ additionalProperties: false
282
+ };
283
+ const dataScopeParamsSchema = {
284
+ type: "object",
285
+ properties: {
286
+ filter: genericFilterSchema
287
+ },
288
+ additionalProperties: false
289
+ };
290
+ const sortingRuleParamsSchema = {
291
+ type: "object",
292
+ properties: {
293
+ sort: {
294
+ type: "array",
295
+ items: {
296
+ type: "object",
297
+ properties: {
298
+ field: { type: "string" },
299
+ direction: {
300
+ type: "string",
301
+ enum: ["asc", "desc"]
302
+ }
303
+ },
304
+ required: ["field", "direction"],
305
+ additionalProperties: false
306
+ }
307
+ }
308
+ },
309
+ additionalProperties: false
310
+ };
311
+ const aclCheckRefreshParamsSchema = {
312
+ type: "object",
313
+ properties: {
314
+ strategy: {
315
+ type: "string",
316
+ enum: ["default", "formItem"]
317
+ }
318
+ },
319
+ additionalProperties: false
320
+ };
321
+ const linkageRulesRefreshParamsSchema = {
322
+ type: "object",
323
+ properties: {
324
+ actionName: { type: "string" },
325
+ flowKey: { type: "string" },
326
+ stepKey: { type: "string" }
327
+ },
328
+ required: ["actionName", "flowKey"],
329
+ additionalProperties: false
330
+ };
331
+ const openViewParamsSchema = {
332
+ type: "object",
333
+ properties: {
334
+ uid: { type: "string" },
335
+ mode: {
336
+ type: "string",
337
+ enum: ["drawer", "dialog", "embed"]
338
+ },
339
+ size: {
340
+ type: "string",
341
+ enum: ["small", "medium", "large"]
342
+ },
343
+ pageModelClass: {
344
+ type: "string",
345
+ enum: ["ChildPageModel", "RootPageModel"]
346
+ },
347
+ filterByTk: { type: ["string", "number", "object"] },
348
+ sourceId: { type: ["string", "number"] },
349
+ dataSourceKey: { type: "string" },
350
+ collectionName: { type: "string" },
351
+ associationName: { type: "string" },
352
+ preventClose: { type: "boolean" },
353
+ navigation: { type: "boolean" },
354
+ tabUid: { type: "string" }
355
+ },
356
+ additionalProperties: true
357
+ };
358
+ const gridRowsSchema = {
359
+ type: "object",
360
+ description: "Map of row ids to column definitions. Each row value is a string[][] where every inner array lists the child model UIDs rendered inside one column.",
361
+ additionalProperties: {
362
+ type: "array",
363
+ items: {
364
+ type: "array",
365
+ items: {
366
+ type: "string"
367
+ }
368
+ }
369
+ }
370
+ };
371
+ const gridSizesSchema = {
372
+ type: "object",
373
+ description: "Map of row ids to column widths. Each width array uses the 24-column grid system, for example [12, 12] or [8, 8, 8].",
374
+ additionalProperties: {
375
+ type: "array",
376
+ items: {
377
+ type: "number"
378
+ }
379
+ }
380
+ };
381
+ const gridRowOrderSchema = {
382
+ type: "array",
383
+ description: "Optional explicit row order. When omitted, the persisted row key order is used.",
384
+ items: {
385
+ type: "string"
386
+ }
387
+ };
388
+ function createGridLayoutStepParamsSchema() {
389
+ return {
390
+ type: "object",
391
+ properties: {
392
+ gridSettings: {
393
+ type: "object",
394
+ properties: {
395
+ grid: {
396
+ type: "object",
397
+ description: "Persisted multi-row, multi-column grid layout.",
398
+ properties: {
399
+ rows: gridRowsSchema,
400
+ sizes: gridSizesSchema,
401
+ rowOrder: gridRowOrderSchema
402
+ },
403
+ additionalProperties: false
404
+ }
405
+ },
406
+ additionalProperties: true
407
+ }
408
+ },
409
+ additionalProperties: true
410
+ };
411
+ }
412
+ function createGridLayoutStepParamsValue(rows, sizes, rowOrder) {
413
+ return {
414
+ gridSettings: {
415
+ grid: {
416
+ rows,
417
+ sizes,
418
+ rowOrder
419
+ }
420
+ }
421
+ };
422
+ }
423
+ function createGridLayoutItems(itemUses, prefix, count) {
424
+ const uses = itemUses.length > 0 ? itemUses : ["FlowModel"];
425
+ return Array.from({ length: count }, (_, index) => ({
426
+ uid: `${prefix}-item-${index + 1}`,
427
+ use: uses[index % uses.length]
428
+ }));
429
+ }
430
+ function createGridLayoutDocs(options) {
431
+ const minimalItems = createGridLayoutItems(options.itemUses, `${options.prefix}-minimal`, 1);
432
+ const standardItems = createGridLayoutItems(options.itemUses, `${options.prefix}-standard`, 5);
433
+ const customSizeItems = createGridLayoutItems(options.itemUses, `${options.prefix}-sizes`, 5);
434
+ const minimalRows = {
435
+ rowMain: [[minimalItems[0].uid]]
436
+ };
437
+ const standardRows = {
438
+ rowTop: [[standardItems[0].uid], [standardItems[1].uid]],
439
+ rowBottom: [[standardItems[2].uid], [standardItems[3].uid], [standardItems[4].uid]]
440
+ };
441
+ const customSizeRows = {
442
+ rowTop: [[customSizeItems[0].uid], [customSizeItems[1].uid]],
443
+ rowBottom: [[customSizeItems[2].uid], [customSizeItems[3].uid], [customSizeItems[4].uid]]
444
+ };
445
+ return {
446
+ minimalExample: {
447
+ uid: `${options.prefix}-grid`,
448
+ use: options.use,
449
+ stepParams: createGridLayoutStepParamsValue(minimalRows, { rowMain: [24] }, ["rowMain"]),
450
+ subModels: {
451
+ items: minimalItems
452
+ }
453
+ },
454
+ commonPatterns: [
455
+ {
456
+ title: "Single row with one column",
457
+ description: "Use one row with a single 24-column slot when the grid only needs one child model.",
458
+ snippet: {
459
+ use: options.use,
460
+ stepParams: createGridLayoutStepParamsValue(minimalRows, { rowMain: [24] }, ["rowMain"]),
461
+ subModels: {
462
+ items: minimalItems
463
+ }
464
+ }
465
+ },
466
+ {
467
+ title: "Two rows with 2 + 3 columns",
468
+ description: "The first row has 2 columns and the second row has 3 columns with equal widths.",
469
+ snippet: {
470
+ use: options.use,
471
+ stepParams: createGridLayoutStepParamsValue(
472
+ standardRows,
473
+ {
474
+ rowTop: [12, 12],
475
+ rowBottom: [8, 8, 8]
476
+ },
477
+ ["rowTop", "rowBottom"]
478
+ ),
479
+ subModels: {
480
+ items: standardItems
481
+ }
482
+ }
483
+ },
484
+ {
485
+ title: "Two rows with custom column sizes",
486
+ description: "Use sizes to express non-equal column widths while keeping the rows definition stable.",
487
+ snippet: {
488
+ use: options.use,
489
+ stepParams: createGridLayoutStepParamsValue(
490
+ customSizeRows,
491
+ {
492
+ rowTop: [8, 16],
493
+ rowBottom: [6, 10, 8]
494
+ },
495
+ ["rowTop", "rowBottom"]
496
+ ),
497
+ subModels: {
498
+ items: customSizeItems
499
+ }
500
+ }
501
+ }
502
+ ],
503
+ dynamicHints: options.dynamicHints || []
504
+ };
505
+ }
506
+ const publicBlockRootUses = [
507
+ "CreateFormModel",
508
+ "DetailsBlockModel",
509
+ "EditFormModel",
510
+ "FilterFormBlockModel",
511
+ "JSBlockModel",
512
+ "TableBlockModel"
513
+ ];
514
+ const pageTabUses = ["RootPageTabModel", "PageTabModel"];
515
+ const tableColumnUses = [
516
+ "TableColumnModel",
517
+ "TableActionsColumnModel",
518
+ "JSColumnModel",
519
+ "TableCustomColumnModel"
520
+ ];
521
+ const coreBlockGridItemUses = [...publicBlockRootUses];
522
+ const collectionActionUses = [
523
+ "AddNewActionModel",
524
+ "BulkDeleteActionModel",
525
+ "ExpandCollapseActionModel",
526
+ "FilterActionModel",
527
+ "JSCollectionActionModel",
528
+ "LinkActionModel",
529
+ "PopupCollectionActionModel",
530
+ "RefreshActionModel"
531
+ ];
532
+ const recordActionUses = [
533
+ "AddChildActionModel",
534
+ "DeleteActionModel",
535
+ "EditActionModel",
536
+ "JSRecordActionModel",
537
+ "LinkActionModel",
538
+ "PopupCollectionActionModel",
539
+ "UpdateRecordActionModel",
540
+ "ViewActionModel"
541
+ ];
542
+ const formBlockActionUses = ["FormSubmitActionModel", "JSFormActionModel"];
543
+ const filterFormActionUses = [
544
+ "FilterFormSubmitActionModel",
545
+ "FilterFormResetActionModel",
546
+ "FilterFormCollapseActionModel",
547
+ "FilterFormJSActionModel"
548
+ ];
549
+ const formGridItemUses = ["FormItemModel", "FormAssociationItemModel", "JSItemModel"];
550
+ const detailsGridItemUses = ["DetailsItemModel"];
551
+ const filterFormGridItemUses = ["FilterFormItemModel", "FilterFormCustomFieldModel"];
552
+ const fieldBindingInitSchema = {
553
+ type: "object",
554
+ properties: {
555
+ dataSourceKey: { type: "string" },
556
+ collectionName: { type: "string" },
557
+ fieldPath: { type: "string" },
558
+ associationPathName: { type: "string" }
559
+ },
560
+ required: ["dataSourceKey", "collectionName", "fieldPath"],
561
+ additionalProperties: true
562
+ };
563
+ const filterFieldMetadataSchema = {
564
+ type: "object",
565
+ properties: {
566
+ name: { type: "string" },
567
+ title: { type: "string" },
568
+ interface: { type: "string" },
569
+ type: { type: "string" }
570
+ },
571
+ additionalProperties: true
572
+ };
573
+ function createRuntimeFieldModelSlotSchema(fieldBindingContext, description = "Field renderer model is resolved from runtime field bindings.") {
574
+ return {
575
+ type: "object",
576
+ dynamic: true,
577
+ fieldBindingContext,
578
+ schema: genericModelNodeSchema,
579
+ description
580
+ };
581
+ }
582
+ const showLabelStepParamsSchema = {
583
+ type: "object",
584
+ properties: {
585
+ showLabel: { type: "boolean" }
586
+ },
587
+ additionalProperties: false
588
+ };
589
+ const labelStepParamsSchema = {
590
+ type: "object",
591
+ properties: {
592
+ label: { type: "string" },
593
+ title: { type: "string" }
594
+ },
595
+ additionalProperties: false
596
+ };
597
+ const tooltipStepParamsSchema = {
598
+ type: "object",
599
+ properties: {
600
+ tooltip: { type: "string" }
601
+ },
602
+ additionalProperties: false
603
+ };
604
+ const descriptionStepParamsSchema = {
605
+ type: "object",
606
+ properties: {
607
+ description: { type: "string" }
608
+ },
609
+ additionalProperties: false
610
+ };
611
+ const defaultValueStepParamsSchema = {
612
+ type: "object",
613
+ properties: {
614
+ defaultValue: {}
615
+ },
616
+ additionalProperties: false
617
+ };
618
+ const tableColumnWidthStepParamsSchema = {
619
+ type: "object",
620
+ properties: {
621
+ width: {
622
+ type: "number"
623
+ }
624
+ },
625
+ additionalProperties: false
626
+ };
627
+ const tableColumnEditableStepParamsSchema = {
628
+ type: "object",
629
+ properties: {
630
+ editable: { type: "boolean" }
631
+ },
632
+ additionalProperties: false
633
+ };
634
+ const tableColumnSorterStepParamsSchema = {
635
+ type: "object",
636
+ properties: {
637
+ sorter: { type: "boolean" }
638
+ },
639
+ additionalProperties: false
640
+ };
641
+ const filterFormItemInitStepParamsSchema = {
642
+ type: "object",
643
+ properties: {
644
+ filterField: filterFieldMetadataSchema,
645
+ defaultTargetUid: { type: "string" }
646
+ },
647
+ additionalProperties: true
648
+ };
649
+ const actionButtonGeneralStepParamsSchema = {
650
+ type: "object",
651
+ properties: {
652
+ title: { type: "string" },
653
+ tooltip: { type: "string" },
654
+ type: {
655
+ type: "string",
656
+ enum: ["default", "primary", "dashed", "link", "text"]
657
+ },
658
+ danger: { type: "boolean" },
659
+ icon: { type: ["string", "null"] },
660
+ color: { type: "string" }
661
+ },
662
+ additionalProperties: true
663
+ };
664
+ const actionButtonSettingsStepParamsSchema = {
665
+ type: "object",
666
+ properties: {
667
+ buttonSettings: {
668
+ type: "object",
669
+ properties: {
670
+ general: actionButtonGeneralStepParamsSchema,
671
+ linkageRules: linkageRuleValueSchema
672
+ },
673
+ additionalProperties: true
674
+ }
675
+ },
676
+ additionalProperties: true
677
+ };
678
+ function createActionStepParamsSchema(extraProperties = {}) {
679
+ return {
680
+ type: "object",
681
+ properties: {
682
+ ...actionButtonSettingsStepParamsSchema.properties || {},
683
+ ...extraProperties
684
+ },
685
+ additionalProperties: true
686
+ };
687
+ }
688
+ const confirmStepParamsSchema = {
689
+ type: "object",
690
+ properties: {
691
+ enable: { type: "boolean" },
692
+ title: { type: "string" },
693
+ content: { type: "string" }
694
+ },
695
+ additionalProperties: false
696
+ };
697
+ const popupActionSettingsStepParamsSchema = {
698
+ type: "object",
699
+ properties: {
700
+ openView: openViewParamsSchema
701
+ },
702
+ additionalProperties: true
703
+ };
704
+ const runJsActionSettingsStepParamsSchema = {
705
+ type: "object",
706
+ properties: {
707
+ runJs: {
708
+ type: "object",
709
+ properties: {
710
+ version: { type: "string" },
711
+ code: { type: "string" }
712
+ },
713
+ required: ["code"],
714
+ additionalProperties: true
715
+ }
716
+ },
717
+ additionalProperties: true
718
+ };
719
+ const deleteActionSettingsStepParamsSchema = {
720
+ type: "object",
721
+ properties: {
722
+ confirm: confirmStepParamsSchema
723
+ },
724
+ additionalProperties: true
725
+ };
726
+ const refreshActionSettingsStepParamsSchema = {
727
+ type: "object",
728
+ properties: {
729
+ refresh: {
730
+ type: "object",
731
+ additionalProperties: true
732
+ }
733
+ },
734
+ additionalProperties: true
735
+ };
736
+ const expandCollapseActionSettingsStepParamsSchema = {
737
+ type: "object",
738
+ properties: {
739
+ expandCollapse: {
740
+ type: "object",
741
+ additionalProperties: true
742
+ }
743
+ },
744
+ additionalProperties: true
745
+ };
746
+ const filterActionSettingsStepParamsSchema = {
747
+ type: "object",
748
+ properties: {
749
+ position: {
750
+ type: "object",
751
+ properties: {
752
+ position: {
753
+ type: "string",
754
+ enum: ["left", "right"]
755
+ }
756
+ },
757
+ additionalProperties: false
758
+ },
759
+ filterableFieldNames: {
760
+ type: "object",
761
+ properties: {
762
+ filterableFieldNames: {
763
+ type: "array",
764
+ items: {
765
+ type: "string"
766
+ }
767
+ }
768
+ },
769
+ additionalProperties: false
770
+ },
771
+ defaultFilter: {
772
+ type: "object",
773
+ properties: {
774
+ defaultFilter: genericFilterSchema
775
+ },
776
+ additionalProperties: false
777
+ }
778
+ },
779
+ additionalProperties: true
780
+ };
781
+ const linkActionSettingsStepParamsSchema = {
782
+ type: "object",
783
+ properties: {
784
+ editLink: {
785
+ type: "object",
786
+ properties: {
787
+ url: { type: "string" },
788
+ searchParams: {
789
+ type: "array",
790
+ items: {
791
+ type: "object",
792
+ properties: {
793
+ name: { type: "string" },
794
+ value: { type: "string" }
795
+ },
796
+ additionalProperties: true
797
+ }
798
+ },
799
+ openInNewWindow: { type: "boolean" }
800
+ },
801
+ required: ["url"],
802
+ additionalProperties: true
803
+ }
804
+ },
805
+ additionalProperties: true
806
+ };
807
+ const formSubmitSettingsStepParamsSchema = {
808
+ type: "object",
809
+ properties: {
810
+ confirm: {
811
+ type: "object",
812
+ properties: {
813
+ enable: { type: "boolean" },
814
+ title: { type: "string" },
815
+ content: { type: "string" }
816
+ },
817
+ additionalProperties: true
818
+ },
819
+ saveResource: {
820
+ type: "object",
821
+ additionalProperties: true
822
+ },
823
+ refreshAndClose: {
824
+ type: "object",
825
+ additionalProperties: true
826
+ }
827
+ },
828
+ additionalProperties: true
829
+ };
830
+ const filterFormCollapseSettingsStepParamsSchema = {
831
+ type: "object",
832
+ properties: {
833
+ toggle: {
834
+ type: "object",
835
+ properties: {
836
+ collapsedRows: {
837
+ type: "number"
838
+ }
839
+ },
840
+ additionalProperties: false
841
+ },
842
+ defaultCollapsed: {
843
+ type: "object",
844
+ properties: {
845
+ value: { type: "boolean" }
846
+ },
847
+ additionalProperties: false
848
+ }
849
+ },
850
+ additionalProperties: true
851
+ };
852
+ const pageTabSettingsStepParamsSchema = {
853
+ type: "object",
854
+ properties: {
855
+ pageTabSettings: {
856
+ type: "object",
857
+ properties: {
858
+ tab: {
859
+ type: "object",
860
+ properties: {
861
+ title: { type: "string" },
862
+ documentTitle: { type: "string" },
863
+ icon: { type: ["string", "null"] }
864
+ },
865
+ additionalProperties: false
866
+ }
867
+ },
868
+ additionalProperties: true
869
+ }
870
+ },
871
+ additionalProperties: true
872
+ };
873
+ const childPageSettingsStepParamsSchema = {
874
+ type: "object",
875
+ properties: {
876
+ pageSettings: {
877
+ type: "object",
878
+ properties: {
879
+ general: {
880
+ type: "object",
881
+ properties: {
882
+ title: { type: "string" },
883
+ documentTitle: { type: "string" },
884
+ displayTitle: { type: "boolean" },
885
+ enableTabs: { type: "boolean" }
886
+ },
887
+ additionalProperties: false
888
+ }
889
+ },
890
+ additionalProperties: true
891
+ }
892
+ },
893
+ additionalProperties: true
894
+ };
895
+ function createPopupActionOpenViewParams(overrides = {}) {
896
+ return {
897
+ mode: "drawer",
898
+ size: "medium",
899
+ pageModelClass: "ChildPageModel",
900
+ ...overrides
901
+ };
902
+ }
903
+ function createPopupBlockGrid(options) {
904
+ return {
905
+ uid: `${options.prefix}-grid`,
906
+ use: "BlockGridModel",
907
+ subModels: {
908
+ items: options.items || []
909
+ }
910
+ };
911
+ }
912
+ function createPopupChildPageTree(options) {
913
+ return {
914
+ uid: `${options.prefix}-page`,
915
+ use: "ChildPageModel",
916
+ stepParams: {
917
+ pageSettings: {
918
+ general: {
919
+ displayTitle: false,
920
+ enableTabs: true
921
+ }
922
+ }
923
+ },
924
+ subModels: {
925
+ tabs: [
926
+ {
927
+ uid: `${options.prefix}-tab`,
928
+ use: "ChildPageTabModel",
929
+ stepParams: {
930
+ pageTabSettings: {
931
+ tab: {
932
+ title: options.tabTitle || "Popup"
933
+ }
934
+ }
935
+ },
936
+ subModels: {
937
+ grid: createPopupBlockGrid({
938
+ prefix: `${options.prefix}-tab`,
939
+ items: options.items
940
+ })
941
+ }
942
+ }
943
+ ]
944
+ }
945
+ };
946
+ }
947
+ function createPopupPageSlotSchema() {
948
+ return {
949
+ type: "object",
950
+ use: "ChildPageModel",
951
+ description: "Popup child page.",
952
+ childSchemaPatch: {
953
+ subModelSlots: {
954
+ tabs: {
955
+ type: "array",
956
+ uses: ["ChildPageTabModel"],
957
+ required: true,
958
+ minItems: 1,
959
+ description: "Popup child page tabs."
960
+ }
961
+ }
962
+ }
963
+ };
964
+ }
965
+ const popupActionAntiPatterns = [
966
+ {
967
+ title: "Do not treat openView parameters alone as a complete popup",
968
+ description: "A usable popup action should provide a popup child page tree instead of relying only on runtime defaults."
969
+ },
970
+ {
971
+ title: "Do not use arbitrary pageModelClass values",
972
+ description: "pageModelClass is restricted to ChildPageModel or RootPageModel."
973
+ }
974
+ ];
975
+ function createPopupActionStepParams(title, overrides = {}) {
976
+ return {
977
+ buttonSettings: {
978
+ general: {
979
+ title,
980
+ type: "default"
981
+ }
982
+ },
983
+ popupSettings: {
984
+ openView: createPopupActionOpenViewParams(overrides)
985
+ }
986
+ };
987
+ }
988
+ function createPopupActionExample(options) {
989
+ return {
990
+ uid: options.uid,
991
+ use: options.use,
992
+ stepParams: createPopupActionStepParams(options.title, options.openView),
993
+ subModels: {
994
+ page: createPopupChildPageTree({
995
+ prefix: options.prefix,
996
+ tabTitle: options.tabTitle,
997
+ items: options.items
998
+ })
999
+ }
1000
+ };
1001
+ }
1002
+ function createPopupActionPattern(options) {
1003
+ return {
1004
+ title: options.title,
1005
+ description: options.description,
1006
+ snippet: {
1007
+ use: options.use,
1008
+ stepParams: createPopupActionStepParams(options.buttonTitle, options.openView),
1009
+ subModels: {
1010
+ page: createPopupChildPageTree({
1011
+ prefix: options.prefix,
1012
+ tabTitle: options.tabTitle,
1013
+ items: options.items
1014
+ })
1015
+ }
1016
+ }
1017
+ };
1018
+ }
1019
+ const detailItemStepParamsSchema = {
1020
+ type: "object",
1021
+ properties: {
1022
+ fieldSettings: {
1023
+ type: "object",
1024
+ properties: {
1025
+ init: fieldBindingInitSchema
1026
+ },
1027
+ additionalProperties: true
1028
+ },
1029
+ detailItemSettings: {
1030
+ type: "object",
1031
+ properties: {
1032
+ showLabel: showLabelStepParamsSchema,
1033
+ label: labelStepParamsSchema,
1034
+ aclCheck: emptyObjectSchema,
1035
+ init: emptyObjectSchema,
1036
+ tooltip: tooltipStepParamsSchema,
1037
+ description: descriptionStepParamsSchema,
1038
+ model: {
1039
+ type: "object",
1040
+ additionalProperties: true
1041
+ },
1042
+ fieldNames: {
1043
+ type: "object",
1044
+ additionalProperties: true
1045
+ }
1046
+ },
1047
+ additionalProperties: true
1048
+ },
1049
+ paginationChange: {
1050
+ type: "object",
1051
+ properties: {
1052
+ aclCheckRefresh: aclCheckRefreshParamsSchema
1053
+ },
1054
+ additionalProperties: true
1055
+ }
1056
+ },
1057
+ additionalProperties: true
1058
+ };
1059
+ const formItemStepParamsSchema = {
1060
+ type: "object",
1061
+ properties: {
1062
+ fieldSettings: {
1063
+ type: "object",
1064
+ properties: {
1065
+ init: fieldBindingInitSchema
1066
+ },
1067
+ additionalProperties: true
1068
+ },
1069
+ editItemSettings: {
1070
+ type: "object",
1071
+ properties: {
1072
+ showLabel: showLabelStepParamsSchema,
1073
+ label: labelStepParamsSchema,
1074
+ aclCheck: emptyObjectSchema,
1075
+ init: emptyObjectSchema,
1076
+ tooltip: tooltipStepParamsSchema,
1077
+ description: descriptionStepParamsSchema,
1078
+ initialValue: defaultValueStepParamsSchema,
1079
+ validation: {
1080
+ type: "object",
1081
+ additionalProperties: true
1082
+ },
1083
+ required: {
1084
+ type: "object",
1085
+ additionalProperties: true
1086
+ },
1087
+ model: {
1088
+ type: "object",
1089
+ additionalProperties: true
1090
+ },
1091
+ pattern: {
1092
+ type: "object",
1093
+ additionalProperties: true
1094
+ },
1095
+ titleField: {
1096
+ type: "object",
1097
+ additionalProperties: true
1098
+ }
1099
+ },
1100
+ additionalProperties: true
1101
+ },
1102
+ paginationChange: {
1103
+ type: "object",
1104
+ properties: {
1105
+ aclCheckRefresh: aclCheckRefreshParamsSchema
1106
+ },
1107
+ additionalProperties: true
1108
+ }
1109
+ },
1110
+ additionalProperties: true
1111
+ };
1112
+ const assignFormItemStepParamsSchema = {
1113
+ type: "object",
1114
+ properties: {
1115
+ fieldSettings: {
1116
+ type: "object",
1117
+ properties: {
1118
+ init: fieldBindingInitSchema,
1119
+ assignValue: {
1120
+ type: "object",
1121
+ properties: {
1122
+ value: {}
1123
+ },
1124
+ additionalProperties: true
1125
+ }
1126
+ },
1127
+ additionalProperties: true
1128
+ },
1129
+ editItemSettings: {
1130
+ type: "object",
1131
+ properties: {
1132
+ showLabel: showLabelStepParamsSchema,
1133
+ label: labelStepParamsSchema,
1134
+ init: emptyObjectSchema,
1135
+ tooltip: tooltipStepParamsSchema,
1136
+ description: descriptionStepParamsSchema,
1137
+ validation: {
1138
+ type: "object",
1139
+ additionalProperties: true
1140
+ },
1141
+ required: {
1142
+ type: "object",
1143
+ additionalProperties: true
1144
+ }
1145
+ },
1146
+ additionalProperties: true
1147
+ }
1148
+ },
1149
+ additionalProperties: true
1150
+ };
1151
+ const filterFormItemStepParamsSchema = {
1152
+ type: "object",
1153
+ properties: {
1154
+ fieldSettings: {
1155
+ type: "object",
1156
+ properties: {
1157
+ init: fieldBindingInitSchema
1158
+ },
1159
+ additionalProperties: true
1160
+ },
1161
+ filterFormItemSettings: {
1162
+ type: "object",
1163
+ properties: {
1164
+ init: filterFormItemInitStepParamsSchema,
1165
+ label: labelStepParamsSchema,
1166
+ showLabel: showLabelStepParamsSchema,
1167
+ tooltip: tooltipStepParamsSchema,
1168
+ description: descriptionStepParamsSchema,
1169
+ initialValue: defaultValueStepParamsSchema,
1170
+ model: {
1171
+ type: "object",
1172
+ additionalProperties: true
1173
+ },
1174
+ connectFields: {
1175
+ type: "object",
1176
+ additionalProperties: true
1177
+ },
1178
+ defaultOperator: {
1179
+ type: "object",
1180
+ additionalProperties: true
1181
+ },
1182
+ operatorComponentProps: {
1183
+ type: "object",
1184
+ additionalProperties: true
1185
+ },
1186
+ customizeFilterRender: {
1187
+ type: "object",
1188
+ additionalProperties: true
1189
+ },
1190
+ initField: emptyObjectSchema
1191
+ },
1192
+ additionalProperties: true
1193
+ }
1194
+ },
1195
+ additionalProperties: true
1196
+ };
1197
+ const tableColumnStepParamsSchema = {
1198
+ type: "object",
1199
+ properties: {
1200
+ fieldSettings: {
1201
+ type: "object",
1202
+ properties: {
1203
+ init: fieldBindingInitSchema
1204
+ },
1205
+ additionalProperties: true
1206
+ },
1207
+ tableColumnSettings: {
1208
+ type: "object",
1209
+ properties: {
1210
+ init: emptyObjectSchema,
1211
+ title: {
1212
+ type: "object",
1213
+ properties: {
1214
+ title: { type: "string" }
1215
+ },
1216
+ additionalProperties: false
1217
+ },
1218
+ tooltip: tooltipStepParamsSchema,
1219
+ width: tableColumnWidthStepParamsSchema,
1220
+ aclCheck: emptyObjectSchema,
1221
+ quickEdit: tableColumnEditableStepParamsSchema,
1222
+ model: {
1223
+ type: "object",
1224
+ additionalProperties: true
1225
+ },
1226
+ sorter: tableColumnSorterStepParamsSchema,
1227
+ fixed: {
1228
+ type: "object",
1229
+ additionalProperties: true
1230
+ },
1231
+ fieldNames: {
1232
+ type: "object",
1233
+ additionalProperties: true
1234
+ }
1235
+ },
1236
+ additionalProperties: true
1237
+ }
1238
+ },
1239
+ additionalProperties: true
1240
+ };
1241
+ function createFieldBoundStepParamsSchema(bindingFlowKey, bindingFlowSchema, extraProperties = {}) {
1242
+ return {
1243
+ type: "object",
1244
+ properties: {
1245
+ fieldSettings: {
1246
+ type: "object",
1247
+ properties: {
1248
+ init: fieldBindingInitSchema,
1249
+ ...bindingFlowKey === "fieldSettings" ? extraProperties : {}
1250
+ },
1251
+ additionalProperties: true
1252
+ },
1253
+ ...bindingFlowKey === "fieldSettings" ? {} : { [bindingFlowKey]: bindingFlowSchema },
1254
+ ...bindingFlowKey === "fieldSettings" ? {} : extraProperties
1255
+ },
1256
+ additionalProperties: true
1257
+ };
1258
+ }
1259
+ function createRuntimeFieldDynamicHint(modelUse, path, contextRequirements, unresolvedReason) {
1260
+ return {
1261
+ kind: "dynamic-children",
1262
+ path,
1263
+ message: `${modelUse} field renderer depends on runtime field bindings and collection metadata.`,
1264
+ "x-flow": {
1265
+ slotRules: {
1266
+ slotKey: "field",
1267
+ type: "object"
1268
+ },
1269
+ contextRequirements,
1270
+ unresolvedReason
1271
+ }
1272
+ };
1273
+ }
1274
+ function createFieldModelStepParamsSchema(extraFieldSettingsProperties = {}) {
1275
+ return {
1276
+ type: "object",
1277
+ properties: {
1278
+ fieldSettings: {
1279
+ type: "object",
1280
+ properties: {
1281
+ init: fieldBindingInitSchema,
1282
+ ...extraFieldSettingsProperties
1283
+ },
1284
+ additionalProperties: true
1285
+ }
1286
+ },
1287
+ additionalProperties: true
1288
+ };
1289
+ }
1290
+ function createFieldModelSkeleton(use, init = {}) {
1291
+ return {
1292
+ uid: `todo-${use}`.replace(/[^a-zA-Z0-9]+/g, "-").toLowerCase(),
1293
+ use,
1294
+ ...Object.keys(init).length > 0 ? {
1295
+ stepParams: {
1296
+ fieldSettings: {
1297
+ init: {
1298
+ ...init
1299
+ }
1300
+ }
1301
+ }
1302
+ } : {}
1303
+ };
1304
+ }
1305
+ function createFieldModelSchemaContribution(options) {
1306
+ const contribution = {
1307
+ use: options.use,
1308
+ title: options.title,
1309
+ source: options.source ?? "official",
1310
+ strict: options.strict ?? false,
1311
+ exposure: options.exposure ?? "internal",
1312
+ abstract: options.abstract,
1313
+ allowDirectUse: options.allowDirectUse,
1314
+ suggestedUses: options.suggestedUses,
1315
+ stepParamsSchema: options.stepParamsSchema || createFieldModelStepParamsSchema(),
1316
+ skeleton: options.skeleton || createFieldModelSkeleton(options.use)
1317
+ };
1318
+ return contribution;
1319
+ }
1320
+ const collectionResourceInitSchema = {
1321
+ type: "object",
1322
+ properties: {
1323
+ dataSourceKey: { type: "string" },
1324
+ collectionName: { type: "string" },
1325
+ associationName: { type: "string" },
1326
+ sourceId: { type: ["string", "number"] },
1327
+ filterByTk: { type: ["string", "number"] }
1328
+ },
1329
+ required: ["dataSourceKey", "collectionName"],
1330
+ additionalProperties: true
1331
+ };
1332
+ const collectionResourceSettingsStepParamsSchema = {
1333
+ type: "object",
1334
+ properties: {
1335
+ resourceSettings: {
1336
+ type: "object",
1337
+ properties: {
1338
+ init: collectionResourceInitSchema
1339
+ },
1340
+ additionalProperties: true
1341
+ }
1342
+ },
1343
+ additionalProperties: true
1344
+ };
1345
+ function createCollectionResourceInit(init = {}) {
1346
+ return {
1347
+ dataSourceKey: "main",
1348
+ collectionName: "users",
1349
+ ...init
1350
+ };
1351
+ }
1352
+ function createCollectionResourceStepParams(init = {}, extraStepParams = {}) {
1353
+ return {
1354
+ resourceSettings: {
1355
+ init: createCollectionResourceInit(init)
1356
+ },
1357
+ ...extraStepParams
1358
+ };
1359
+ }
1360
+ function createCurrentRecordCollectionPattern(use, extraStepParams = {}) {
1361
+ return {
1362
+ title: "Current record mode",
1363
+ description: "Bind the block to the current record when the page or popup provides filterByTk.",
1364
+ snippet: {
1365
+ use,
1366
+ stepParams: createCollectionResourceStepParams(
1367
+ {
1368
+ filterByTk: "{{ctx.view.inputArgs.filterByTk}}"
1369
+ },
1370
+ extraStepParams
1371
+ )
1372
+ }
1373
+ };
1374
+ }
1375
+ function createAssociatedCollectionPattern(use, extraStepParams = {}) {
1376
+ return {
1377
+ title: "Associated records in popup/new scene",
1378
+ description: "Use associationName + sourceId when the block should load records through a parent relation.",
1379
+ snippet: {
1380
+ use,
1381
+ stepParams: createCollectionResourceStepParams(
1382
+ {
1383
+ collectionName: "roles",
1384
+ associationName: "users.roles",
1385
+ sourceId: "{{ctx.view.inputArgs.sourceId}}"
1386
+ },
1387
+ extraStepParams
1388
+ )
1389
+ }
1390
+ };
1391
+ }
1392
+ const formBlockBaseStepParamsSchema = {
1393
+ type: "object",
1394
+ properties: {
1395
+ ...collectionResourceSettingsStepParamsSchema.properties || {},
1396
+ formModelSettings: {
1397
+ type: "object",
1398
+ properties: {
1399
+ layout: layoutParamsSchema,
1400
+ assignRules: linkageRuleValueSchema
1401
+ },
1402
+ additionalProperties: true
1403
+ },
1404
+ eventSettings: {
1405
+ type: "object",
1406
+ properties: {
1407
+ linkageRules: linkageRuleValueSchema
1408
+ },
1409
+ additionalProperties: true
1410
+ }
1411
+ },
1412
+ additionalProperties: true
1413
+ };
1414
+ function createFormGridDynamicHints() {
1415
+ return [
1416
+ {
1417
+ kind: "dynamic-children",
1418
+ path: "FormGridModel.subModels.items",
1419
+ message: "Form grid items depend on the form field tree and runtime field model factories.",
1420
+ "x-flow": {
1421
+ slotRules: {
1422
+ slotKey: "items",
1423
+ type: "array",
1424
+ allowedUses: formGridItemUses
1425
+ },
1426
+ contextRequirements: ["form field tree", "field model factories"],
1427
+ unresolvedReason: "runtime-form-grid-items"
1428
+ }
1429
+ }
1430
+ ];
1431
+ }
1432
+ function createFormBlockSubModelSlots() {
1433
+ return {
1434
+ grid: {
1435
+ type: "object",
1436
+ use: "FormGridModel",
1437
+ description: "Primary form grid container."
1438
+ },
1439
+ actions: {
1440
+ type: "array",
1441
+ uses: formBlockActionUses,
1442
+ schema: genericModelNodeSchema,
1443
+ description: "Form actions are resolved from the runtime form action registry."
1444
+ }
1445
+ };
1446
+ }
1447
+ function createFormBlockSkeleton(use) {
1448
+ return {
1449
+ uid: "todo-uid",
1450
+ use,
1451
+ stepParams: createCollectionResourceStepParams(
1452
+ {},
1453
+ {
1454
+ formModelSettings: {
1455
+ layout: {
1456
+ layout: "vertical",
1457
+ colon: true
1458
+ },
1459
+ assignRules: {
1460
+ value: []
1461
+ }
1462
+ },
1463
+ eventSettings: {
1464
+ linkageRules: {
1465
+ value: []
1466
+ }
1467
+ }
1468
+ }
1469
+ ),
1470
+ subModels: {
1471
+ grid: {
1472
+ uid: "todo-grid-uid",
1473
+ use: "FormGridModel"
1474
+ },
1475
+ actions: []
1476
+ }
1477
+ };
1478
+ }
1479
+ function createFormBlockMinimalExample(use) {
1480
+ return {
1481
+ uid: `${use}-users`.toLowerCase(),
1482
+ use,
1483
+ stepParams: createCollectionResourceStepParams(
1484
+ {},
1485
+ {
1486
+ formModelSettings: {
1487
+ layout: {
1488
+ layout: "vertical",
1489
+ colon: true
1490
+ },
1491
+ assignRules: {
1492
+ value: []
1493
+ }
1494
+ },
1495
+ eventSettings: {
1496
+ linkageRules: {
1497
+ value: []
1498
+ }
1499
+ }
1500
+ }
1501
+ ),
1502
+ subModels: {
1503
+ grid: {
1504
+ uid: `${use}-grid-users`.toLowerCase(),
1505
+ use: "FormGridModel"
1506
+ },
1507
+ actions: []
1508
+ }
1509
+ };
1510
+ }
1511
+ function createFormBlockCommonPatterns(use) {
1512
+ return [
1513
+ {
1514
+ title: "Empty editable form block shell",
1515
+ snippet: {
1516
+ use,
1517
+ stepParams: createCollectionResourceStepParams(
1518
+ {},
1519
+ {
1520
+ formModelSettings: {
1521
+ layout: {
1522
+ layout: "vertical",
1523
+ colon: true
1524
+ }
1525
+ }
1526
+ }
1527
+ ),
1528
+ subModels: {
1529
+ grid: {
1530
+ uid: "form-grid-uid",
1531
+ use: "FormGridModel"
1532
+ }
1533
+ }
1534
+ }
1535
+ }
1536
+ ];
1537
+ }
1538
+ const formBlockAntiPatterns = [
1539
+ {
1540
+ title: "Do not omit grid when generating a complete form tree",
1541
+ description: "A form block can be persisted without subModels, but useful form payloads usually need a grid child."
1542
+ }
1543
+ ];
1544
+ function createFormBlockDynamicHints(use) {
1545
+ return [
1546
+ {
1547
+ kind: "dynamic-children",
1548
+ path: `${use}.subModels`,
1549
+ message: "Form block child models are assembled from runtime model classes and field metadata.",
1550
+ "x-flow": {
1551
+ slotRules: {
1552
+ slotKey: "actions",
1553
+ type: "array",
1554
+ allowedUses: formBlockActionUses
1555
+ },
1556
+ contextRequirements: ["form field tree", "collection metadata"],
1557
+ unresolvedReason: "runtime-form-children"
1558
+ }
1559
+ }
1560
+ ];
1561
+ }
1562
+ // Annotate the CommonJS export names for ESM import in node:
1563
+ 0 && (module.exports = {
1564
+ aclCheckRefreshParamsSchema,
1565
+ actionButtonGeneralStepParamsSchema,
1566
+ actionButtonSettingsStepParamsSchema,
1567
+ assignFormItemStepParamsSchema,
1568
+ childPageSettingsStepParamsSchema,
1569
+ collectionActionUses,
1570
+ collectionResourceInitSchema,
1571
+ collectionResourceSettingsStepParamsSchema,
1572
+ confirmStepParamsSchema,
1573
+ coreBlockGridItemUses,
1574
+ createActionStepParamsSchema,
1575
+ createAssociatedCollectionPattern,
1576
+ createCollectionResourceInit,
1577
+ createCollectionResourceStepParams,
1578
+ createCurrentRecordCollectionPattern,
1579
+ createFieldBoundStepParamsSchema,
1580
+ createFieldModelSchemaContribution,
1581
+ createFieldModelSkeleton,
1582
+ createFieldModelStepParamsSchema,
1583
+ createFormBlockCommonPatterns,
1584
+ createFormBlockDynamicHints,
1585
+ createFormBlockMinimalExample,
1586
+ createFormBlockSkeleton,
1587
+ createFormBlockSubModelSlots,
1588
+ createFormGridDynamicHints,
1589
+ createGridLayoutDocs,
1590
+ createGridLayoutStepParamsSchema,
1591
+ createPopupActionExample,
1592
+ createPopupActionOpenViewParams,
1593
+ createPopupActionPattern,
1594
+ createPopupActionStepParams,
1595
+ createPopupBlockGrid,
1596
+ createPopupChildPageTree,
1597
+ createPopupPageSlotSchema,
1598
+ createRuntimeFieldDynamicHint,
1599
+ createRuntimeFieldModelSlotSchema,
1600
+ dataScopeParamsSchema,
1601
+ defaultValueStepParamsSchema,
1602
+ deleteActionSettingsStepParamsSchema,
1603
+ descriptionStepParamsSchema,
1604
+ detailItemStepParamsSchema,
1605
+ detailsGridItemUses,
1606
+ emptyObjectSchema,
1607
+ expandCollapseActionSettingsStepParamsSchema,
1608
+ fieldBindingInitSchema,
1609
+ filterActionSettingsStepParamsSchema,
1610
+ filterFieldMetadataSchema,
1611
+ filterFormActionUses,
1612
+ filterFormCollapseSettingsStepParamsSchema,
1613
+ filterFormGridItemUses,
1614
+ filterFormItemInitStepParamsSchema,
1615
+ filterFormItemStepParamsSchema,
1616
+ formBlockActionUses,
1617
+ formBlockAntiPatterns,
1618
+ formBlockBaseStepParamsSchema,
1619
+ formGridItemUses,
1620
+ formItemStepParamsSchema,
1621
+ formSubmitSettingsStepParamsSchema,
1622
+ genericFilterSchema,
1623
+ genericModelNodeSchema,
1624
+ gridRowOrderSchema,
1625
+ gridRowsSchema,
1626
+ gridSizesSchema,
1627
+ labelStepParamsSchema,
1628
+ layoutParamsSchema,
1629
+ linkActionSettingsStepParamsSchema,
1630
+ linkageRuleValueSchema,
1631
+ linkageRulesRefreshParamsSchema,
1632
+ openViewParamsSchema,
1633
+ pageTabSettingsStepParamsSchema,
1634
+ pageTabUses,
1635
+ popupActionAntiPatterns,
1636
+ popupActionSettingsStepParamsSchema,
1637
+ publicBlockRootUses,
1638
+ recordActionUses,
1639
+ refreshActionSettingsStepParamsSchema,
1640
+ runJsActionSettingsStepParamsSchema,
1641
+ showLabelStepParamsSchema,
1642
+ sortingRuleParamsSchema,
1643
+ tableColumnEditableStepParamsSchema,
1644
+ tableColumnSorterStepParamsSchema,
1645
+ tableColumnStepParamsSchema,
1646
+ tableColumnUses,
1647
+ tableColumnWidthStepParamsSchema,
1648
+ tooltipStepParamsSchema
1649
+ });