@acorex-platform/framework-shared 0.0.15 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/background-job/src/lib/background-job-result.util.d.ts.map +1 -1
  2. package/background-job/src/lib/background-job-result.util.js +2 -3
  3. package/background-job/src/lib/background-job-result.util.js.map +1 -1
  4. package/background-job/src/lib/background-job.constants.d.ts +7 -7
  5. package/background-job/src/lib/background-job.constants.d.ts.map +1 -1
  6. package/background-job/src/lib/background-job.constants.js +19 -6
  7. package/background-job/src/lib/background-job.constants.js.map +1 -1
  8. package/background-job/src/lib/background-job.types.d.ts +6 -3
  9. package/background-job/src/lib/background-job.types.d.ts.map +1 -1
  10. package/background-job/src/lib/background-job.types.js +12 -11
  11. package/background-job/src/lib/background-job.types.js.map +1 -1
  12. package/core/src/lib/context-definition/context-definition.types.d.ts +24 -0
  13. package/core/src/lib/context-definition/context-definition.types.d.ts.map +1 -0
  14. package/core/src/lib/context-definition/context-definition.types.js +10 -0
  15. package/core/src/lib/context-definition/context-definition.types.js.map +1 -0
  16. package/core/src/lib/context-definition/index.d.ts +2 -0
  17. package/core/src/lib/context-definition/index.d.ts.map +1 -0
  18. package/core/src/lib/context-definition/index.js +5 -0
  19. package/core/src/lib/context-definition/index.js.map +1 -0
  20. package/core/src/lib/core/response.types.d.ts +2 -4
  21. package/core/src/lib/core/response.types.d.ts.map +1 -1
  22. package/core/src/lib/core/response.types.js +0 -1
  23. package/core/src/lib/core/response.types.js.map +1 -1
  24. package/core/src/lib/data/data.types.d.ts +5 -0
  25. package/core/src/lib/data/data.types.d.ts.map +1 -1
  26. package/core/src/lib/data/data.types.js.map +1 -1
  27. package/core/src/lib/domain/address.types.d.ts +6 -3
  28. package/core/src/lib/domain/address.types.d.ts.map +1 -1
  29. package/core/src/lib/domain/address.types.js +0 -1
  30. package/core/src/lib/domain/address.types.js.map +1 -1
  31. package/core/src/lib/domain/format-address.util.d.ts +1 -1
  32. package/core/src/lib/domain/format-address.util.d.ts.map +1 -1
  33. package/core/src/lib/domain/format-address.util.js +11 -7
  34. package/core/src/lib/domain/format-address.util.js.map +1 -1
  35. package/core/src/lib/errors/index.d.ts +3 -0
  36. package/core/src/lib/errors/index.d.ts.map +1 -0
  37. package/core/src/lib/errors/index.js +6 -0
  38. package/core/src/lib/errors/index.js.map +1 -0
  39. package/core/src/lib/errors/platform-error-codes.d.ts +17 -0
  40. package/core/src/lib/errors/platform-error-codes.d.ts.map +1 -0
  41. package/core/src/lib/errors/platform-error-codes.js +21 -0
  42. package/core/src/lib/errors/platform-error-codes.js.map +1 -0
  43. package/core/src/lib/errors/request-error.d.ts +35 -0
  44. package/core/src/lib/errors/request-error.d.ts.map +1 -0
  45. package/core/src/lib/errors/request-error.js +116 -0
  46. package/core/src/lib/errors/request-error.js.map +1 -0
  47. package/core/src/lib/expression-evaluator/expression-evaluator-scope.types.d.ts +20 -0
  48. package/core/src/lib/expression-evaluator/expression-evaluator-scope.types.d.ts.map +1 -0
  49. package/core/src/lib/expression-evaluator/expression-evaluator-scope.types.js +25 -0
  50. package/core/src/lib/expression-evaluator/expression-evaluator-scope.types.js.map +1 -0
  51. package/core/src/lib/expression-evaluator/expression-evaluator.engine.d.ts +29 -0
  52. package/core/src/lib/expression-evaluator/expression-evaluator.engine.d.ts.map +1 -0
  53. package/core/src/lib/expression-evaluator/expression-evaluator.engine.js +111 -0
  54. package/core/src/lib/expression-evaluator/expression-evaluator.engine.js.map +1 -0
  55. package/core/src/lib/expression-evaluator/index.d.ts +3 -0
  56. package/core/src/lib/expression-evaluator/index.d.ts.map +1 -0
  57. package/core/src/lib/expression-evaluator/index.js +6 -0
  58. package/core/src/lib/expression-evaluator/index.js.map +1 -0
  59. package/core/src/lib/index.d.ts +3 -0
  60. package/core/src/lib/index.d.ts.map +1 -1
  61. package/core/src/lib/index.js +3 -0
  62. package/core/src/lib/index.js.map +1 -1
  63. package/core/src/lib/integration/constants/category.constants.d.ts +1 -0
  64. package/core/src/lib/integration/constants/category.constants.d.ts.map +1 -1
  65. package/core/src/lib/integration/constants/category.constants.js +1 -0
  66. package/core/src/lib/integration/constants/category.constants.js.map +1 -1
  67. package/core/src/lib/integration/integration.types.d.ts +1 -0
  68. package/core/src/lib/integration/integration.types.d.ts.map +1 -1
  69. package/core/src/lib/integration/integration.types.js.map +1 -1
  70. package/core/src/lib/interaction/index.d.ts +1 -0
  71. package/core/src/lib/interaction/index.d.ts.map +1 -1
  72. package/core/src/lib/interaction/index.js +1 -0
  73. package/core/src/lib/interaction/index.js.map +1 -1
  74. package/core/src/lib/interaction/interactive.types.d.ts +64 -20
  75. package/core/src/lib/interaction/interactive.types.d.ts.map +1 -1
  76. package/core/src/lib/interaction/interactive.types.js.map +1 -1
  77. package/core/src/lib/interaction/runtime-result.util.d.ts +67 -0
  78. package/core/src/lib/interaction/runtime-result.util.d.ts.map +1 -0
  79. package/core/src/lib/interaction/runtime-result.util.js +167 -0
  80. package/core/src/lib/interaction/runtime-result.util.js.map +1 -0
  81. package/core/src/lib/keys/index.d.ts +0 -1
  82. package/core/src/lib/keys/index.d.ts.map +1 -1
  83. package/core/src/lib/keys/index.js +0 -1
  84. package/core/src/lib/keys/index.js.map +1 -1
  85. package/core/src/lib/keys/regional-settings.keys.d.ts +6 -1
  86. package/core/src/lib/keys/regional-settings.keys.d.ts.map +1 -1
  87. package/core/src/lib/keys/regional-settings.keys.js +5 -0
  88. package/core/src/lib/keys/regional-settings.keys.js.map +1 -1
  89. package/core/src/lib/multi-language-string/resolve-multi-language-string.util.d.ts +9 -0
  90. package/core/src/lib/multi-language-string/resolve-multi-language-string.util.d.ts.map +1 -1
  91. package/core/src/lib/multi-language-string/resolve-multi-language-string.util.js +25 -7
  92. package/core/src/lib/multi-language-string/resolve-multi-language-string.util.js.map +1 -1
  93. package/core/src/lib/utils/object-util.d.ts +8 -1
  94. package/core/src/lib/utils/object-util.d.ts.map +1 -1
  95. package/core/src/lib/utils/object-util.js +79 -6
  96. package/core/src/lib/utils/object-util.js.map +1 -1
  97. package/core/src/lib/widgets/widgets-catalog.d.ts +1 -0
  98. package/core/src/lib/widgets/widgets-catalog.d.ts.map +1 -1
  99. package/core/src/lib/widgets/widgets-catalog.js +1 -0
  100. package/core/src/lib/widgets/widgets-catalog.js.map +1 -1
  101. package/core/src/lib/widgets/widgets-list.d.ts +1 -0
  102. package/core/src/lib/widgets/widgets-list.d.ts.map +1 -1
  103. package/core/src/lib/widgets/widgets-list.js +1 -0
  104. package/core/src/lib/widgets/widgets-list.js.map +1 -1
  105. package/core/src/lib/workflow/activity.types.js +1 -1
  106. package/domain/src/lib/definitions/permission-definition.types.d.ts +4 -0
  107. package/domain/src/lib/definitions/permission-definition.types.d.ts.map +1 -1
  108. package/domain/src/lib/definitions/permission-definition.types.js.map +1 -1
  109. package/domain/src/lib/definitions/query-registry.types.d.ts +50 -4
  110. package/domain/src/lib/definitions/query-registry.types.d.ts.map +1 -1
  111. package/domain/src/lib/definitions/query-registry.types.js.map +1 -1
  112. package/domain/src/lib/definitions/widget-registry.types.d.ts +6 -1
  113. package/domain/src/lib/definitions/widget-registry.types.d.ts.map +1 -1
  114. package/domain/src/lib/definitions/widget-registry.types.js.map +1 -1
  115. package/entity/src/lib/constants/entity-events.keys.d.ts +4 -0
  116. package/entity/src/lib/constants/entity-events.keys.d.ts.map +1 -1
  117. package/entity/src/lib/constants/entity-events.keys.js +3 -0
  118. package/entity/src/lib/constants/entity-events.keys.js.map +1 -1
  119. package/entity/src/lib/constants/index.d.ts +0 -1
  120. package/entity/src/lib/constants/index.d.ts.map +1 -1
  121. package/entity/src/lib/constants/index.js +0 -1
  122. package/entity/src/lib/constants/index.js.map +1 -1
  123. package/entity/src/lib/helpers/entity-action.helpers.d.ts +1 -0
  124. package/entity/src/lib/helpers/entity-action.helpers.d.ts.map +1 -1
  125. package/entity/src/lib/helpers/entity-action.helpers.js +18 -10
  126. package/entity/src/lib/helpers/entity-action.helpers.js.map +1 -1
  127. package/entity/src/lib/types/entity-display-field.types.d.ts +5 -1
  128. package/entity/src/lib/types/entity-display-field.types.d.ts.map +1 -1
  129. package/entity/src/lib/types/entity-display-field.types.js.map +1 -1
  130. package/entity/src/lib/types/entity-event-payload.types.d.ts +31 -0
  131. package/entity/src/lib/types/entity-event-payload.types.d.ts.map +1 -0
  132. package/entity/src/lib/types/entity-event-payload.types.js +5 -0
  133. package/entity/src/lib/types/entity-event-payload.types.js.map +1 -0
  134. package/entity/src/lib/types/entity-model.types.d.ts +10 -4
  135. package/entity/src/lib/types/entity-model.types.d.ts.map +1 -1
  136. package/entity/src/lib/types/entity-model.types.js.map +1 -1
  137. package/entity/src/lib/types/entity-property.types.d.ts +10 -1
  138. package/entity/src/lib/types/entity-property.types.d.ts.map +1 -1
  139. package/entity/src/lib/types/entity-property.types.js.map +1 -1
  140. package/entity/src/lib/types/entity-query-view.types.d.ts +4 -0
  141. package/entity/src/lib/types/entity-query-view.types.d.ts.map +1 -1
  142. package/entity/src/lib/types/entity-query-view.types.js.map +1 -1
  143. package/entity/src/lib/types/index.d.ts +1 -0
  144. package/entity/src/lib/types/index.d.ts.map +1 -1
  145. package/entity/src/lib/types/index.js +1 -0
  146. package/entity/src/lib/types/index.js.map +1 -1
  147. package/entity/src/lib/types/lookup-widget.types.d.ts +21 -0
  148. package/entity/src/lib/types/lookup-widget.types.d.ts.map +1 -1
  149. package/entity/src/lib/types/lookup-widget.types.js.map +1 -1
  150. package/entity/src/lib/utils/entity-list-filter-definitions.util.d.ts.map +1 -1
  151. package/entity/src/lib/utils/entity-list-filter-definitions.util.js +2 -1
  152. package/entity/src/lib/utils/entity-list-filter-definitions.util.js.map +1 -1
  153. package/entity/src/lib/utils/entity-query-fields.util.d.ts +17 -0
  154. package/entity/src/lib/utils/entity-query-fields.util.d.ts.map +1 -0
  155. package/entity/src/lib/utils/entity-query-fields.util.js +46 -0
  156. package/entity/src/lib/utils/entity-query-fields.util.js.map +1 -0
  157. package/entity/src/lib/utils/index.d.ts +1 -0
  158. package/entity/src/lib/utils/index.d.ts.map +1 -1
  159. package/entity/src/lib/utils/index.js +1 -0
  160. package/entity/src/lib/utils/index.js.map +1 -1
  161. package/entity/src/lib/utils/lookup-create-options.util.d.ts.map +1 -1
  162. package/entity/src/lib/utils/lookup-create-options.util.js +4 -2
  163. package/entity/src/lib/utils/lookup-create-options.util.js.map +1 -1
  164. package/entity/src/lib/utils/page-list-widget-name.util.d.ts +3 -2
  165. package/entity/src/lib/utils/page-list-widget-name.util.d.ts.map +1 -1
  166. package/entity/src/lib/utils/page-list-widget-name.util.js +3 -2
  167. package/entity/src/lib/utils/page-list-widget-name.util.js.map +1 -1
  168. package/package.json +1 -1
  169. package/rule-engine/src/lib/rule-engine.constants.d.ts +4 -0
  170. package/rule-engine/src/lib/rule-engine.constants.d.ts.map +1 -1
  171. package/rule-engine/src/lib/rule-engine.constants.js +4 -0
  172. package/rule-engine/src/lib/rule-engine.constants.js.map +1 -1
  173. package/runtime/src/catalog-sidecars.d.ts +2 -0
  174. package/runtime/src/catalog-sidecars.d.ts.map +1 -1
  175. package/runtime/src/catalog-sidecars.js +2 -0
  176. package/runtime/src/catalog-sidecars.js.map +1 -1
  177. package/runtime/src/lib/commands/auth-command-keys.d.ts +10 -0
  178. package/runtime/src/lib/commands/auth-command-keys.d.ts.map +1 -0
  179. package/runtime/src/lib/commands/auth-command-keys.js +15 -0
  180. package/runtime/src/lib/commands/auth-command-keys.js.map +1 -0
  181. package/runtime/src/lib/commands/bulk-command-failure.util.d.ts +24 -0
  182. package/runtime/src/lib/commands/bulk-command-failure.util.d.ts.map +1 -0
  183. package/runtime/src/lib/commands/bulk-command-failure.util.js +75 -0
  184. package/runtime/src/lib/commands/bulk-command-failure.util.js.map +1 -0
  185. package/runtime/src/lib/commands/bulk-command.types.d.ts +45 -0
  186. package/runtime/src/lib/commands/bulk-command.types.d.ts.map +1 -0
  187. package/runtime/src/lib/commands/bulk-command.types.js +12 -0
  188. package/runtime/src/lib/commands/bulk-command.types.js.map +1 -0
  189. package/runtime/src/lib/commands/catalog-command-definition.d.ts +1 -1
  190. package/runtime/src/lib/commands/catalog-command-definition.d.ts.map +1 -1
  191. package/runtime/src/lib/commands/catalog-command-definition.js +2 -2
  192. package/runtime/src/lib/commands/catalog-command-definition.js.map +1 -1
  193. package/runtime/src/lib/commands/command-definition.types.d.ts.map +1 -1
  194. package/runtime/src/lib/commands/command-definition.types.js.map +1 -1
  195. package/runtime/src/lib/commands/command-execute-options.types.d.ts +8 -0
  196. package/runtime/src/lib/commands/command-execute-options.types.d.ts.map +1 -0
  197. package/runtime/src/lib/commands/command-execute-options.types.js +5 -0
  198. package/runtime/src/lib/commands/command-execute-options.types.js.map +1 -0
  199. package/runtime/src/lib/commands/command.interface.d.ts +15 -4
  200. package/runtime/src/lib/commands/command.interface.d.ts.map +1 -1
  201. package/runtime/src/lib/commands/command.interface.js +2 -0
  202. package/runtime/src/lib/commands/command.interface.js.map +1 -1
  203. package/runtime/src/lib/commands/command.middleware.d.ts +22 -0
  204. package/runtime/src/lib/commands/command.middleware.d.ts.map +1 -0
  205. package/runtime/src/lib/commands/command.middleware.js +16 -0
  206. package/runtime/src/lib/commands/command.middleware.js.map +1 -0
  207. package/runtime/src/lib/commands/entity-action-command-input.d.ts +101 -0
  208. package/runtime/src/lib/commands/entity-action-command-input.d.ts.map +1 -0
  209. package/runtime/src/lib/commands/entity-action-command-input.js +204 -0
  210. package/runtime/src/lib/commands/entity-action-command-input.js.map +1 -0
  211. package/runtime/src/lib/commands/entity-command-keys.d.ts +29 -1
  212. package/runtime/src/lib/commands/entity-command-keys.d.ts.map +1 -1
  213. package/runtime/src/lib/commands/entity-command-keys.js +64 -9
  214. package/runtime/src/lib/commands/entity-command-keys.js.map +1 -1
  215. package/runtime/src/lib/commands/file-command-keys.d.ts +10 -0
  216. package/runtime/src/lib/commands/file-command-keys.d.ts.map +1 -0
  217. package/runtime/src/lib/commands/file-command-keys.js +15 -0
  218. package/runtime/src/lib/commands/file-command-keys.js.map +1 -0
  219. package/runtime/src/lib/commands/lock-command-keys.d.ts +5 -0
  220. package/runtime/src/lib/commands/lock-command-keys.d.ts.map +1 -0
  221. package/runtime/src/lib/commands/lock-command-keys.js +10 -0
  222. package/runtime/src/lib/commands/lock-command-keys.js.map +1 -0
  223. package/runtime/src/lib/commands/presence-command-keys.d.ts +2 -0
  224. package/runtime/src/lib/commands/presence-command-keys.d.ts.map +1 -0
  225. package/runtime/src/lib/commands/presence-command-keys.js +7 -0
  226. package/runtime/src/lib/commands/presence-command-keys.js.map +1 -0
  227. package/runtime/src/lib/commands/workflow-command-keys.d.ts +21 -0
  228. package/runtime/src/lib/commands/workflow-command-keys.d.ts.map +1 -0
  229. package/runtime/src/lib/commands/workflow-command-keys.js +26 -0
  230. package/runtime/src/lib/commands/workflow-command-keys.js.map +1 -0
  231. package/runtime/src/lib/index.d.ts +33 -13
  232. package/runtime/src/lib/index.d.ts.map +1 -1
  233. package/runtime/src/lib/index.js +33 -13
  234. package/runtime/src/lib/index.js.map +1 -1
  235. package/runtime/src/lib/queries/define-query.d.ts +18 -2
  236. package/runtime/src/lib/queries/define-query.d.ts.map +1 -1
  237. package/runtime/src/lib/queries/define-query.js +140 -2
  238. package/runtime/src/lib/queries/define-query.js.map +1 -1
  239. package/runtime/src/lib/queries/domain-query-keys.d.ts +15 -0
  240. package/runtime/src/lib/queries/domain-query-keys.d.ts.map +1 -0
  241. package/runtime/src/lib/queries/domain-query-keys.js +8 -0
  242. package/runtime/src/lib/queries/domain-query-keys.js.map +1 -0
  243. package/runtime/src/lib/queries/presence-query-keys.d.ts +3 -0
  244. package/runtime/src/lib/queries/presence-query-keys.d.ts.map +1 -0
  245. package/runtime/src/lib/queries/presence-query-keys.js +8 -0
  246. package/runtime/src/lib/queries/presence-query-keys.js.map +1 -0
  247. package/runtime/src/lib/queries/query-capability.types.d.ts +71 -0
  248. package/runtime/src/lib/queries/query-capability.types.d.ts.map +1 -0
  249. package/runtime/src/lib/queries/query-capability.types.js +15 -0
  250. package/runtime/src/lib/queries/query-capability.types.js.map +1 -0
  251. package/runtime/src/lib/queries/query-definition.types.d.ts +48 -1
  252. package/runtime/src/lib/queries/query-definition.types.d.ts.map +1 -1
  253. package/runtime/src/lib/queries/query-definition.types.js +3 -1
  254. package/runtime/src/lib/queries/query-definition.types.js.map +1 -1
  255. package/runtime/src/lib/queries/query-execute-options.types.d.ts +23 -0
  256. package/runtime/src/lib/queries/query-execute-options.types.d.ts.map +1 -0
  257. package/runtime/src/lib/queries/query-execute-options.types.js +5 -0
  258. package/runtime/src/lib/queries/query-execute-options.types.js.map +1 -0
  259. package/runtime/src/lib/queries/query-input.packs.d.ts +27 -0
  260. package/runtime/src/lib/queries/query-input.packs.d.ts.map +1 -0
  261. package/runtime/src/lib/queries/query-input.packs.js +53 -0
  262. package/runtime/src/lib/queries/query-input.packs.js.map +1 -0
  263. package/runtime/src/lib/queries/query-kind.types.d.ts +10 -0
  264. package/runtime/src/lib/queries/query-kind.types.d.ts.map +1 -0
  265. package/runtime/src/lib/queries/query-kind.types.js +7 -0
  266. package/runtime/src/lib/queries/query-kind.types.js.map +1 -0
  267. package/runtime/src/lib/queries/query.interface.d.ts +33 -2
  268. package/runtime/src/lib/queries/query.interface.d.ts.map +1 -1
  269. package/runtime/src/lib/queries/query.interface.js +2 -0
  270. package/runtime/src/lib/queries/query.interface.js.map +1 -1
  271. package/runtime/src/lib/queries/query.middleware.d.ts +17 -0
  272. package/runtime/src/lib/queries/query.middleware.d.ts.map +1 -0
  273. package/runtime/src/lib/queries/query.middleware.js +16 -0
  274. package/runtime/src/lib/queries/query.middleware.js.map +1 -0
  275. package/runtime/src/lib/transports/runtime-invoke-url.util.d.ts +12 -0
  276. package/runtime/src/lib/transports/runtime-invoke-url.util.d.ts.map +1 -0
  277. package/runtime/src/lib/transports/runtime-invoke-url.util.js +32 -0
  278. package/runtime/src/lib/transports/runtime-invoke-url.util.js.map +1 -0
  279. package/runtime/src/lib/transports/runtime-transport.keys.d.ts +14 -0
  280. package/runtime/src/lib/transports/runtime-transport.keys.d.ts.map +1 -0
  281. package/runtime/src/lib/transports/runtime-transport.keys.js +19 -0
  282. package/runtime/src/lib/transports/runtime-transport.keys.js.map +1 -0
  283. package/runtime/src/lib/widgets/get-widgets-for-ai-agent-scope.util.d.ts +13 -0
  284. package/runtime/src/lib/widgets/get-widgets-for-ai-agent-scope.util.d.ts.map +1 -0
  285. package/runtime/src/lib/widgets/get-widgets-for-ai-agent-scope.util.js +77 -0
  286. package/runtime/src/lib/widgets/get-widgets-for-ai-agent-scope.util.js.map +1 -0
  287. package/runtime/src/lib/widgets/widget-definition.types.d.ts +7 -1
  288. package/runtime/src/lib/widgets/widget-definition.types.d.ts.map +1 -1
  289. package/runtime/src/lib/widgets/widget-definition.types.js.map +1 -1
  290. package/widget-core/src/lib/types/widget.types.d.ts +1 -1
  291. package/widget-core/src/lib/types/widget.types.d.ts.map +1 -1
  292. package/widget-core/src/lib/types/widget.types.js.map +1 -1
  293. package/core/src/lib/keys/platform-core-datasource.keys.d.ts +0 -6
  294. package/core/src/lib/keys/platform-core-datasource.keys.d.ts.map +0 -1
  295. package/core/src/lib/keys/platform-core-datasource.keys.js +0 -11
  296. package/core/src/lib/keys/platform-core-datasource.keys.js.map +0 -1
  297. package/entity/src/lib/constants/entity-datasource.keys.d.ts +0 -5
  298. package/entity/src/lib/constants/entity-datasource.keys.d.ts.map +0 -1
  299. package/entity/src/lib/constants/entity-datasource.keys.js +0 -10
  300. package/entity/src/lib/constants/entity-datasource.keys.js.map +0 -1
@@ -0,0 +1,101 @@
1
+ /**
2
+ * Flat single-input shape for entity list/toolbar/detail command invocations.
3
+ *
4
+ * Producers pass these fields at the root of `commandService.execute(key, input)`.
5
+ * Handlers should use {@link resolveEntityActionCommandInput} to normalize.
6
+ */
7
+ export interface AXPEntityActionEntityInfo {
8
+ name: string;
9
+ module: string;
10
+ title?: unknown;
11
+ parentKey?: string;
12
+ source?: string;
13
+ }
14
+ export interface AXPEntityActionCommandInput {
15
+ /** Entity full name, e.g. `HealthCore.BodyPart`. */
16
+ entity?: string;
17
+ /** Row, selection, or create seed. */
18
+ data?: unknown;
19
+ /** Evaluated action options / process flags. */
20
+ options?: Record<string, unknown>;
21
+ entityInfo?: AXPEntityActionEntityInfo;
22
+ /** Parent record when invoked from a related list. */
23
+ hostContext?: unknown;
24
+ /** Action metadata (producers / viewers). */
25
+ metadata?: unknown;
26
+ /** Bulk / multi-delete payloads. */
27
+ entities?: unknown;
28
+ /** Refresh / middleware meta (e.g. refreshTargetId). */
29
+ meta?: unknown;
30
+ /** Open-list filter conditions (when used). */
31
+ conditions?: unknown;
32
+ /** Legacy root refs still accepted by some plugins. */
33
+ refId?: unknown;
34
+ refType?: unknown;
35
+ }
36
+ export type AXPEntityActionCommandInputLike = AXPEntityActionCommandInput | null | undefined;
37
+ export interface AXPEntityActionResolvedRef {
38
+ refType: string;
39
+ refId: string;
40
+ rowData?: Record<string, unknown>;
41
+ options: Record<string, unknown>;
42
+ resolved: AXPEntityActionCommandInput;
43
+ }
44
+ export interface AXPEntityActionResolvedBulkRef {
45
+ refType: string;
46
+ ids: string[];
47
+ rows: Record<string, unknown>[];
48
+ options: Record<string, unknown>;
49
+ resolved: AXPEntityActionCommandInput;
50
+ }
51
+ /**
52
+ * Normalizes flat entity-action input into {@link AXPEntityActionCommandInput}.
53
+ * Reads only root fields (`entity`, `data`, `options`, `entityInfo`, `hostContext`,
54
+ * `metadata`, `entities`, `meta`, `conditions`, `refId`, `refType`).
55
+ */
56
+ export declare function resolveEntityActionCommandInput(input: AXPEntityActionCommandInputLike | unknown): AXPEntityActionCommandInput;
57
+ /**
58
+ * First row/object from `data` (array → first element; object → itself).
59
+ */
60
+ export declare function entityActionDataRecord(data: unknown): Record<string, unknown> | undefined;
61
+ /**
62
+ * All row objects from `data` (array, single object, or empty).
63
+ */
64
+ export declare function entityActionDataRows(data: unknown): Record<string, unknown>[];
65
+ /**
66
+ * Resolves entity/plugin refType from flat input:
67
+ * `options.refType` → `entity` → `entityInfo.source` → root `refType`.
68
+ */
69
+ export declare function entityActionRefType(resolved: AXPEntityActionCommandInput): string;
70
+ /**
71
+ * Resolves a single-record ref id from options, row data, or root `refId`.
72
+ */
73
+ export declare function entityActionRefId(resolved: AXPEntityActionCommandInput, rowData?: Record<string, unknown>): string | undefined;
74
+ /**
75
+ * Single-record entity/plugin ref (`refType` + `refId`) from flat command input.
76
+ */
77
+ export declare function resolveEntityActionRef(input: AXPEntityActionCommandInputLike | unknown): AXPEntityActionResolvedRef | null;
78
+ /**
79
+ * Bulk entity/plugin ref (`refType` + row ids) from flat command input.
80
+ */
81
+ export declare function resolveEntityActionBulkRef(input: AXPEntityActionCommandInputLike | unknown): AXPEntityActionResolvedBulkRef | null;
82
+ /**
83
+ * Picks a field from root input, falling back to `options[field]`.
84
+ * Useful for commands that accept both root and options-nested shapes.
85
+ */
86
+ export declare function pickInputOrOptionsField<T = unknown>(input: unknown, field: string): T | undefined;
87
+ /**
88
+ * Merges related-list / create seed payload:
89
+ * `hostContext` → `data` → `options.process.data` (later wins).
90
+ */
91
+ export declare function mergeEntityActionProcessData(input: AXPEntityActionCommandInputLike | unknown): Record<string, unknown>;
92
+ /**
93
+ * Hard-strips unknown envelope keys before remote transport so the HTTP body
94
+ * is business input only. Does not merge or read nested payload from those keys.
95
+ *
96
+ * Nest/express JSON body parsing (strict) accepts only objects and arrays.
97
+ * Entity `byKey` / GetOne often pass a bare id string — wrap as `{ id }` so the
98
+ * request is valid JSON over HTTP (handlers already accept both shapes).
99
+ */
100
+ export declare function normalizeCommandInputForRemote(input: unknown): unknown;
101
+ //# sourceMappingURL=entity-action-command-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-action-command-input.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/entity-action-command-input.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAA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+1,204 @@
1
+ "use strict";
2
+ //#region ----- Entity action command input (flat) -----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.resolveEntityActionCommandInput = resolveEntityActionCommandInput;
5
+ exports.entityActionDataRecord = entityActionDataRecord;
6
+ exports.entityActionDataRows = entityActionDataRows;
7
+ exports.entityActionRefType = entityActionRefType;
8
+ exports.entityActionRefId = entityActionRefId;
9
+ exports.resolveEntityActionRef = resolveEntityActionRef;
10
+ exports.resolveEntityActionBulkRef = resolveEntityActionBulkRef;
11
+ exports.pickInputOrOptionsField = pickInputOrOptionsField;
12
+ exports.mergeEntityActionProcessData = mergeEntityActionProcessData;
13
+ exports.normalizeCommandInputForRemote = normalizeCommandInputForRemote;
14
+ function isPlainObject(value) {
15
+ return value != null && typeof value === 'object' && !Array.isArray(value);
16
+ }
17
+ function asEntityInfo(value) {
18
+ if (!isPlainObject(value)) {
19
+ return undefined;
20
+ }
21
+ const name = value['name'];
22
+ const moduleName = value['module'];
23
+ if (typeof name !== 'string' || typeof moduleName !== 'string') {
24
+ return undefined;
25
+ }
26
+ return {
27
+ name,
28
+ module: moduleName,
29
+ title: value['title'],
30
+ parentKey: typeof value['parentKey'] === 'string' ? value['parentKey'] : undefined,
31
+ source: typeof value['source'] === 'string' ? value['source'] : undefined,
32
+ };
33
+ }
34
+ function pickOptionalString(value) {
35
+ if (typeof value !== 'string') {
36
+ return undefined;
37
+ }
38
+ const trimmed = value.trim();
39
+ return trimmed.length > 0 ? trimmed : undefined;
40
+ }
41
+ function asDataRecord(value) {
42
+ return isPlainObject(value) ? value : undefined;
43
+ }
44
+ /**
45
+ * Normalizes flat entity-action input into {@link AXPEntityActionCommandInput}.
46
+ * Reads only root fields (`entity`, `data`, `options`, `entityInfo`, `hostContext`,
47
+ * `metadata`, `entities`, `meta`, `conditions`, `refId`, `refType`).
48
+ */
49
+ function resolveEntityActionCommandInput(input) {
50
+ if (!isPlainObject(input)) {
51
+ return {};
52
+ }
53
+ const root = input;
54
+ return {
55
+ entity: pickOptionalString(root.entity),
56
+ data: root.data,
57
+ options: isPlainObject(root.options) ? root.options : undefined,
58
+ entityInfo: asEntityInfo(root.entityInfo),
59
+ hostContext: root.hostContext,
60
+ metadata: root.metadata,
61
+ entities: root.entities,
62
+ meta: root.meta,
63
+ conditions: root.conditions,
64
+ refId: root.refId,
65
+ refType: root.refType,
66
+ };
67
+ }
68
+ /**
69
+ * First row/object from `data` (array → first element; object → itself).
70
+ */
71
+ function entityActionDataRecord(data) {
72
+ if (Array.isArray(data)) {
73
+ return asDataRecord(data[0]);
74
+ }
75
+ return asDataRecord(data);
76
+ }
77
+ /**
78
+ * All row objects from `data` (array, single object, or empty).
79
+ */
80
+ function entityActionDataRows(data) {
81
+ if (Array.isArray(data)) {
82
+ return data.filter(isPlainObject);
83
+ }
84
+ const single = asDataRecord(data);
85
+ return single ? [single] : [];
86
+ }
87
+ /**
88
+ * Resolves entity/plugin refType from flat input:
89
+ * `options.refType` → `entity` → `entityInfo.source` → root `refType`.
90
+ */
91
+ function entityActionRefType(resolved) {
92
+ var _a, _b, _c, _d, _e, _f;
93
+ const options = (_a = resolved.options) !== null && _a !== void 0 ? _a : {};
94
+ return String((_f = (_e = (_c = (_b = options['refType']) !== null && _b !== void 0 ? _b : resolved.entity) !== null && _c !== void 0 ? _c : (_d = resolved.entityInfo) === null || _d === void 0 ? void 0 : _d.source) !== null && _e !== void 0 ? _e : resolved.refType) !== null && _f !== void 0 ? _f : '');
95
+ }
96
+ /**
97
+ * Resolves a single-record ref id from options, row data, or root `refId`.
98
+ */
99
+ function entityActionRefId(resolved, rowData) {
100
+ var _a, _b, _c, _d;
101
+ const options = (_a = resolved.options) !== null && _a !== void 0 ? _a : {};
102
+ const rawId = (_d = (_c = (_b = options['refId']) !== null && _b !== void 0 ? _b : rowData === null || rowData === void 0 ? void 0 : rowData['id']) !== null && _c !== void 0 ? _c : rowData === null || rowData === void 0 ? void 0 : rowData['_id']) !== null && _d !== void 0 ? _d : resolved.refId;
103
+ if (rawId == null || rawId === '') {
104
+ return undefined;
105
+ }
106
+ return String(rawId);
107
+ }
108
+ /**
109
+ * Single-record entity/plugin ref (`refType` + `refId`) from flat command input.
110
+ */
111
+ function resolveEntityActionRef(input) {
112
+ var _a;
113
+ const resolved = resolveEntityActionCommandInput(input);
114
+ const options = (_a = resolved.options) !== null && _a !== void 0 ? _a : {};
115
+ const rowData = entityActionDataRecord(resolved.data);
116
+ const refType = entityActionRefType(resolved);
117
+ const refId = entityActionRefId(resolved, rowData);
118
+ if (!refType || refId == null) {
119
+ return null;
120
+ }
121
+ return { refType, refId, rowData, options, resolved };
122
+ }
123
+ /**
124
+ * Bulk entity/plugin ref (`refType` + row ids) from flat command input.
125
+ */
126
+ function resolveEntityActionBulkRef(input) {
127
+ var _a;
128
+ const resolved = resolveEntityActionCommandInput(input);
129
+ const options = (_a = resolved.options) !== null && _a !== void 0 ? _a : {};
130
+ const rows = entityActionDataRows(resolved.data);
131
+ const refType = entityActionRefType(resolved);
132
+ const ids = rows
133
+ .map((row) => row['id'])
134
+ .filter((id) => id != null && id !== '')
135
+ .map(String);
136
+ if (!refType || ids.length === 0) {
137
+ return null;
138
+ }
139
+ return { refType, ids, rows, options, resolved };
140
+ }
141
+ /**
142
+ * Picks a field from root input, falling back to `options[field]`.
143
+ * Useful for commands that accept both root and options-nested shapes.
144
+ */
145
+ function pickInputOrOptionsField(input, field) {
146
+ if (!isPlainObject(input)) {
147
+ return undefined;
148
+ }
149
+ const rootValue = input[field];
150
+ if (rootValue !== undefined) {
151
+ return rootValue;
152
+ }
153
+ const options = input['options'];
154
+ if (!isPlainObject(options)) {
155
+ return undefined;
156
+ }
157
+ return options[field];
158
+ }
159
+ /**
160
+ * Merges related-list / create seed payload:
161
+ * `hostContext` → `data` → `options.process.data` (later wins).
162
+ */
163
+ function mergeEntityActionProcessData(input) {
164
+ var _a, _b, _c, _d;
165
+ const resolved = resolveEntityActionCommandInput(input);
166
+ const hostContext = (_a = asDataRecord(resolved.hostContext)) !== null && _a !== void 0 ? _a : {};
167
+ const data = (_b = asDataRecord(resolved.data)) !== null && _b !== void 0 ? _b : {};
168
+ const process = isPlainObject((_c = resolved.options) === null || _c === void 0 ? void 0 : _c['process'])
169
+ ? resolved.options['process']
170
+ : undefined;
171
+ const processData = (_d = asDataRecord(process === null || process === void 0 ? void 0 : process['data'])) !== null && _d !== void 0 ? _d : {};
172
+ return Object.assign(Object.assign(Object.assign({}, hostContext), data), processData);
173
+ }
174
+ /**
175
+ * Hard-strips unknown envelope keys before remote transport so the HTTP body
176
+ * is business input only. Does not merge or read nested payload from those keys.
177
+ *
178
+ * Nest/express JSON body parsing (strict) accepts only objects and arrays.
179
+ * Entity `byKey` / GetOne often pass a bare id string — wrap as `{ id }` so the
180
+ * request is valid JSON over HTTP (handlers already accept both shapes).
181
+ */
182
+ function normalizeCommandInputForRemote(input) {
183
+ if (input == null) {
184
+ return {};
185
+ }
186
+ if (Array.isArray(input)) {
187
+ return input;
188
+ }
189
+ if (!isPlainObject(input)) {
190
+ if (typeof input === 'string' || typeof input === 'number' || typeof input === 'boolean') {
191
+ return { id: input };
192
+ }
193
+ return {};
194
+ }
195
+ if (!('__context__' in input) && !('__metadata__' in input)) {
196
+ return input;
197
+ }
198
+ const root = Object.assign({}, input);
199
+ delete root['__context__'];
200
+ delete root['__metadata__'];
201
+ return root;
202
+ }
203
+ //#endregion
204
+ //# sourceMappingURL=entity-action-command-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-action-command-input.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/entity-action-command-input.ts"],"names":[],"mappings":";AAAA,wDAAwD;;AAgGxD,0EAsBC;AAKD,wDAKC;AAKD,oDAMC;AAMD,kDAKC;AAKD,8CAUC;AAKD,wDAcC;AAKD,gEAiBC;AAMD,0DAgBC;AAMD,oEAgBC;AAUD,wEAwBC;AAnOD,SAAS,aAAa,CAAC,KAAc;IACnC,OAAO,KAAK,IAAI,IA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zF,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;QACvB,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,cAAc,IAAI,KAAK,CAAC,EAAE,CAAC;QAC5D,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,IAAI,qBAAQ,KAAK,CAAE,CAAC;IAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC;IAC3B,OAAO,IAAI,CAAC,cAAc,CAAC,CAAC;IAC5B,OAAO,IAAI,CAAC;AACd,CAAC;AAED,YAAY"}
@@ -1,18 +1,46 @@
1
1
  export type EntityCommandOperation = 'Insert' | 'Update' | 'Delete' | 'Query' | 'GetById';
2
+ /**
3
+ * Default **data** runtime keys — entity identity is passed in `input.entity`.
4
+ * Must stay distinct from UI dialog commands (`Entity:Edit`, `Entity:Remove`, `Entity:Create`, …).
5
+ *
6
+ * TODO: Rename UI vs data keys to clearer names (e.g. `Entity:OpenEditDialog` vs
7
+ * `Entity:PersistUpdate` / `Entity.Storage:Update`) so `:Default` is not required to disambiguate.
8
+ */
2
9
  export declare const ENTITY_INSERT_DEFAULT: "Entity:Insert:Default";
3
10
  export declare const ENTITY_UPDATE_DEFAULT: "Entity:Update:Default";
4
11
  export declare const ENTITY_DELETE_DEFAULT: "Entity:Delete:Default";
5
12
  export declare const ENTITY_QUERY_DEFAULT: "Entity:Query:Default";
6
13
  export declare const ENTITY_GET_BY_ID_DEFAULT: "Entity:GetById:Default";
14
+ /** Frontend UI dialog commands — must not collide with default runtime keys above. */
15
+ export declare const ENTITY_CREATE_UI: "Entity:Create";
16
+ export declare const ENTITY_EDIT_UI: "Entity:Edit";
17
+ export declare const ENTITY_REMOVE_UI: "Entity:Remove";
18
+ /**
19
+ * Custom per-entity key: `Module.Entity:Operation` (use only when overriding default runtime).
20
+ */
7
21
  export declare function buildEntityCommandKey(module: string, entity: string, operation: EntityCommandOperation): string;
22
+ export declare function buildDefaultEntityRuntimeKey(operation: EntityCommandOperation): string;
8
23
  export interface ParsedEntityCommandKey {
9
24
  entity: string;
10
25
  operation: EntityCommandOperation;
11
26
  }
12
27
  /**
13
- * Parses `Module.Entity:Operation` command/query keys.
28
+ * Parses custom `Module.Entity:Operation` command/query keys.
14
29
  */
15
30
  export declare function parseEntityCommandKey(name: string): ParsedEntityCommandKey | null;
31
+ /**
32
+ * Parses default `Entity:Operation:Default` keys (entity name comes from runtime input).
33
+ */
34
+ export declare function parseDefaultEntityRuntimeKey(name: string): EntityCommandOperation | null;
35
+ export declare function isDefaultEntityRuntimeKey(name: string): boolean;
36
+ /**
37
+ * Resolves `Module.Entity` from default runtime command/query input.
38
+ */
39
+ export declare function resolveEntityNameFromRuntimeInput(input: unknown): string | null;
40
+ /**
41
+ * Entity name from custom key (`Module.Entity:Op`) or default key + `input.entity`.
42
+ */
43
+ export declare function resolveEntityNameFromRuntimeKey(key: string, input?: unknown): string | null;
16
44
  export declare function isEntityMutationOperation(operation: EntityCommandOperation): operation is 'Insert' | 'Update' | 'Delete';
17
45
  export declare function isEntityQueryOperation(operation: EntityCommandOperation): operation is 'Query' | 'GetById';
18
46
  //# sourceMappingURL=entity-command-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity-command-keys.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/entity-command-keys.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAE1F,eAAO,MAAM,qBAAqB,EAAG,uBAAgC,CAAC;AACtE,eAAO,MAAM,qBAAqB,EAAG,uBAAgC,CAAC;AACtE,eAAO,MAAM,qBAAqB,EAAG,uBAAgC,CAAC;AACtE,eAAO,MAAM,oBAAoB,EAAG,sBAA+B,CAAC;AACpE,eAAO,MAAM,wBAAwB,EAAG,wBAAiC,CAAC;AAU1E,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,sBAAsB,GAChC,MAAM,CAER;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,sBAAsB,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,sBAAsB,GAAG,IAAI,CAkBjF;AAED,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,sBAAsB,GAChC,SAAS,IAAI,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAE7C;AAED,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,sBAAsB,GAChC,SAAS,IAAI,OAAO,GAAG,SAAS,CAElC"}
1
+ {"version":3,"file":"entity-command-keys.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/entity-command-keys.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAAG,uBAAgC,CAAC;AACtE,eAAO,MAAM,qBAAqB,EAAG,uBAAgC,CAAC;AACtE,eAAO,MAAM,qBAAqB,EAAG,uBAAgC,CAAC;AACtE,eAAO,MAAM,oBAAoB,EAAG,sBAA+B,CAAC;AACpE,eAAO,MAAM,wBAAwB,EAAG,wBAAiC,CAAC;AAE1E,sFAAsF;AACtF,eAAO,MAAM,gBAAgB,EAAG,eAAwB,CAAC;AACzD,eAAO,MAAM,cAAc,EAAG,aAAsB,CAAC;AACrD,eAAO,MAAM,gBAAgB,EAAG,eAAwB,CAAC;AAOzD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,GAAG,MAAM,CAE/G;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,sBAAsB,GAAG,MAAM,CAEtF;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,sBAAsB,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,sBAAsB,GAAG,IAAI,CAkBjF;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,GAAG,sBAAsB,GAAG,IAAI,CAGxF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE/D;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAU/E;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAS3F;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,sBAAsB,GAAG,SAAS,IAAI,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAExH;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,sBAAsB,GAAG,SAAS,IAAI,OAAO,GAAG,SAAS,CAE1G"}
@@ -1,28 +1,46 @@
1
1
  "use strict";
2
2
  //#region ---- Entity command keys ----
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ENTITY_GET_BY_ID_DEFAULT = exports.ENTITY_QUERY_DEFAULT = exports.ENTITY_DELETE_DEFAULT = exports.ENTITY_UPDATE_DEFAULT = exports.ENTITY_INSERT_DEFAULT = void 0;
4
+ exports.ENTITY_REMOVE_UI = exports.ENTITY_EDIT_UI = exports.ENTITY_CREATE_UI = exports.ENTITY_GET_BY_ID_DEFAULT = exports.ENTITY_QUERY_DEFAULT = exports.ENTITY_DELETE_DEFAULT = exports.ENTITY_UPDATE_DEFAULT = exports.ENTITY_INSERT_DEFAULT = void 0;
5
5
  exports.buildEntityCommandKey = buildEntityCommandKey;
6
+ exports.buildDefaultEntityRuntimeKey = buildDefaultEntityRuntimeKey;
6
7
  exports.parseEntityCommandKey = parseEntityCommandKey;
8
+ exports.parseDefaultEntityRuntimeKey = parseDefaultEntityRuntimeKey;
9
+ exports.isDefaultEntityRuntimeKey = isDefaultEntityRuntimeKey;
10
+ exports.resolveEntityNameFromRuntimeInput = resolveEntityNameFromRuntimeInput;
11
+ exports.resolveEntityNameFromRuntimeKey = resolveEntityNameFromRuntimeKey;
7
12
  exports.isEntityMutationOperation = isEntityMutationOperation;
8
13
  exports.isEntityQueryOperation = isEntityQueryOperation;
14
+ /**
15
+ * Default **data** runtime keys — entity identity is passed in `input.entity`.
16
+ * Must stay distinct from UI dialog commands (`Entity:Edit`, `Entity:Remove`, `Entity:Create`, …).
17
+ *
18
+ * TODO: Rename UI vs data keys to clearer names (e.g. `Entity:OpenEditDialog` vs
19
+ * `Entity:PersistUpdate` / `Entity.Storage:Update`) so `:Default` is not required to disambiguate.
20
+ */
9
21
  exports.ENTITY_INSERT_DEFAULT = 'Entity:Insert:Default';
10
22
  exports.ENTITY_UPDATE_DEFAULT = 'Entity:Update:Default';
11
23
  exports.ENTITY_DELETE_DEFAULT = 'Entity:Delete:Default';
12
24
  exports.ENTITY_QUERY_DEFAULT = 'Entity:Query:Default';
13
25
  exports.ENTITY_GET_BY_ID_DEFAULT = 'Entity:GetById:Default';
14
- const ENTITY_OPERATIONS = new Set([
15
- 'Insert',
16
- 'Update',
17
- 'Delete',
18
- 'Query',
19
- 'GetById',
20
- ]);
26
+ /** Frontend UI dialog commands — must not collide with default runtime keys above. */
27
+ exports.ENTITY_CREATE_UI = 'Entity:Create';
28
+ exports.ENTITY_EDIT_UI = 'Entity:Edit';
29
+ exports.ENTITY_REMOVE_UI = 'Entity:Remove';
30
+ const ENTITY_OPERATIONS = new Set(['Insert', 'Update', 'Delete', 'Query', 'GetById']);
31
+ /** Matches `Entity:Update:Default` (CRUD), not UI `Entity:Edit`. */
32
+ const DEFAULT_ENTITY_RUNTIME_KEY = /^Entity:(Insert|Update|Delete|Query|GetById):Default$/;
33
+ /**
34
+ * Custom per-entity key: `Module.Entity:Operation` (use only when overriding default runtime).
35
+ */
21
36
  function buildEntityCommandKey(module, entity, operation) {
22
37
  return `${module}.${entity}:${operation}`;
23
38
  }
39
+ function buildDefaultEntityRuntimeKey(operation) {
40
+ return `Entity:${operation}:Default`;
41
+ }
24
42
  /**
25
- * Parses `Module.Entity:Operation` command/query keys.
43
+ * Parses custom `Module.Entity:Operation` command/query keys.
26
44
  */
27
45
  function parseEntityCommandKey(name) {
28
46
  const trimmed = name.trim();
@@ -40,6 +58,43 @@ function parseEntityCommandKey(name) {
40
58
  }
41
59
  return { entity, operation };
42
60
  }
61
+ /**
62
+ * Parses default `Entity:Operation:Default` keys (entity name comes from runtime input).
63
+ */
64
+ function parseDefaultEntityRuntimeKey(name) {
65
+ const match = name.trim().match(DEFAULT_ENTITY_RUNTIME_KEY);
66
+ return match ? match[1] : null;
67
+ }
68
+ function isDefaultEntityRuntimeKey(name) {
69
+ return parseDefaultEntityRuntimeKey(name) != null;
70
+ }
71
+ /**
72
+ * Resolves `Module.Entity` from default runtime command/query input.
73
+ */
74
+ function resolveEntityNameFromRuntimeInput(input) {
75
+ if (input == null || typeof input !== 'object' || Array.isArray(input)) {
76
+ return null;
77
+ }
78
+ const entity = input.entity;
79
+ if (typeof entity !== 'string') {
80
+ return null;
81
+ }
82
+ const trimmed = entity.trim();
83
+ return trimmed.length > 0 ? trimmed : null;
84
+ }
85
+ /**
86
+ * Entity name from custom key (`Module.Entity:Op`) or default key + `input.entity`.
87
+ */
88
+ function resolveEntityNameFromRuntimeKey(key, input) {
89
+ const custom = parseEntityCommandKey(key);
90
+ if (custom) {
91
+ return custom.entity;
92
+ }
93
+ if (parseDefaultEntityRuntimeKey(key)) {
94
+ return resolveEntityNameFromRuntimeInput(input);
95
+ }
96
+ return null;
97
+ }
43
98
  function isEntityMutationOperation(operation) {
44
99
  return operation === 'Insert' || operation === 'Update' || operation === 'Delete';
45
100
  }
@@ -1 +1 @@
1
- {"version":3,"file":"entity-command-keys.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/entity-command-keys.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAkBvC,sDAMC;AAUD,sDAkBC;AAED,8DAIC;AAED,wDAIC;AA5DY,QAAA,qBAAqB,GAAG,uBAAgC,CAAC;AACzD,QAAA,qBAAqB,GAAG,uBAAgC,CAAC;AACzD,QAAA,qBAAqB,GAAG,uBAAgC,CAAC;AACzD,QAAA,oBAAoB,GAAG,sBAA+B,CAAC;AACvD,QAAA,wBAAwB,GAAG,wBAAiC,CAAC;AAE1E,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAyB;IACxD,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,SAAS;CACV,CAAC,CAAC;AAEH,SAAgB,qBAAqB,CACnC,MAAc,EACd,MAAc,EACd,SAAiC;IAEjC,OAAO,GAAG,MAAM,IAAI,MAAM,IAAI,SAAS,EAAE,CAAC;AAC5C,CAAC;AAOD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAAY;IAChD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAC5C,IAAI,UAAU,IAAI,CAAC,IAAI,UAAU,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACzD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,IAAI,EAAE,CAAC;IACnD,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,IAAI,EAA4B,CAAC;IAEjF,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAC/B,CAAC;AAED,SAAgB,yBAAyB,CACvC,SAAiC;IAEjC,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,QAAQ,CAAC;AACpF,CAAC;AAED,SAAgB,sBAAsB,CACpC,SAAiC;IAEjC,OAAO,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,SAAS,CAAC;AAC1D,CAAC;AAED,YAAY"}
1
+ {"version":3,"file":"entity-command-keys.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/entity-command-keys.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AA8BvC,sDAEC;AAED,oEAEC;AAUD,sDAkBC;AAKD,oEAGC;AAED,8DAEC;AAKD,8EAUC;AAKD,0EASC;AAED,8DAEC;AAED,wDAEC;AA7GD;;;;;;GAMG;AACU,QAAA,qBAAqB,GAAG,uBAAgC,CAAC;AACzD,QAAA,qBAAqB,GAAG,uBAAgC,CAAC;AACzD,QAAA,qBAAqB,GAAG,uBAAgC,CAAC;AACzD,QAAA,oBAAoB,GAAG,sBAA+B,CAAC;AACvD,QAAA,wBAAwB,GAAG,wBAAiC,CAAC;AAE1E,sFAAsF;AACzE,QAAA,gBAAgB,GAAG,eAAwB,CAAC;AAC5C,QAAA,cAAc,GAAG,aAAsB,CAAC;AACxC,QAAA,gBAAgB,GAAG,eAAwB,CAAC;AAEzD,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,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C;AAED,YAAY"}
@@ -0,0 +1,10 @@
1
+ export declare const FILE_SAVE_DEFAULT: "File:Save";
2
+ export declare const FILE_UPDATE_DEFAULT: "File:Update";
3
+ export declare const FILE_REMOVE_DEFAULT: "File:Remove";
4
+ export declare const FILE_COMMIT_DEFAULT: "File:Commit";
5
+ export declare const FILE_MARK_FOR_DELETION_DEFAULT: "File:MarkForDeletion";
6
+ export declare const FILE_FIND_DEFAULT: "File:Find";
7
+ export declare const FILE_FIND_MANY_DEFAULT: "File:FindMany";
8
+ export declare const FILE_GET_INFO_DEFAULT: "File:GetInfo";
9
+ export declare const FILE_DOWNLOAD_DEFAULT: "File:Download";
10
+ //# sourceMappingURL=file-command-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-command-keys.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/file-command-keys.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,EAAG,WAAoB,CAAC;AACtD,eAAO,MAAM,mBAAmB,EAAG,aAAsB,CAAC;AAC1D,eAAO,MAAM,mBAAmB,EAAG,aAAsB,CAAC;AAC1D,eAAO,MAAM,mBAAmB,EAAG,aAAsB,CAAC;AAC1D,eAAO,MAAM,8BAA8B,EAAG,sBAA+B,CAAC;AAE9E,eAAO,MAAM,iBAAiB,EAAG,WAAoB,CAAC;AACtD,eAAO,MAAM,sBAAsB,EAAG,eAAwB,CAAC;AAC/D,eAAO,MAAM,qBAAqB,EAAG,cAAuB,CAAC;AAC7D,eAAO,MAAM,qBAAqB,EAAG,eAAwB,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ //#region ---- File command/query keys ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FILE_DOWNLOAD_DEFAULT = exports.FILE_GET_INFO_DEFAULT = exports.FILE_FIND_MANY_DEFAULT = exports.FILE_FIND_DEFAULT = exports.FILE_MARK_FOR_DELETION_DEFAULT = exports.FILE_COMMIT_DEFAULT = exports.FILE_REMOVE_DEFAULT = exports.FILE_UPDATE_DEFAULT = exports.FILE_SAVE_DEFAULT = void 0;
5
+ exports.FILE_SAVE_DEFAULT = 'File:Save';
6
+ exports.FILE_UPDATE_DEFAULT = 'File:Update';
7
+ exports.FILE_REMOVE_DEFAULT = 'File:Remove';
8
+ exports.FILE_COMMIT_DEFAULT = 'File:Commit';
9
+ exports.FILE_MARK_FOR_DELETION_DEFAULT = 'File:MarkForDeletion';
10
+ exports.FILE_FIND_DEFAULT = 'File:Find';
11
+ exports.FILE_FIND_MANY_DEFAULT = 'File:FindMany';
12
+ exports.FILE_GET_INFO_DEFAULT = 'File:GetInfo';
13
+ exports.FILE_DOWNLOAD_DEFAULT = 'File:Download';
14
+ //#endregion
15
+ //# sourceMappingURL=file-command-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-command-keys.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/file-command-keys.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAE9B,QAAA,iBAAiB,GAAG,WAAoB,CAAC;AACzC,QAAA,mBAAmB,GAAG,aAAsB,CAAC;AAC7C,QAAA,mBAAmB,GAAG,aAAsB,CAAC;AAC7C,QAAA,mBAAmB,GAAG,aAAsB,CAAC;AAC7C,QAAA,8BAA8B,GAAG,sBAA+B,CAAC;AAEjE,QAAA,iBAAiB,GAAG,WAAoB,CAAC;AACzC,QAAA,sBAAsB,GAAG,eAAwB,CAAC;AAClD,QAAA,qBAAqB,GAAG,cAAuB,CAAC;AAChD,QAAA,qBAAqB,GAAG,eAAwB,CAAC;AAE9D,YAAY"}
@@ -0,0 +1,5 @@
1
+ export declare const LOCK_ACQUIRE_DEFAULT: "Lock:Acquire";
2
+ export declare const LOCK_RELEASE_DEFAULT: "Lock:Release";
3
+ export declare const LOCK_CHECK_DEFAULT: "Lock:Check";
4
+ export declare const LOCK_GET_INFO_DEFAULT: "Lock:GetInfo";
5
+ //# sourceMappingURL=lock-command-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock-command-keys.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/lock-command-keys.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,EAAG,cAAuB,CAAC;AAC5D,eAAO,MAAM,oBAAoB,EAAG,cAAuB,CAAC;AAC5D,eAAO,MAAM,kBAAkB,EAAG,YAAqB,CAAC;AACxD,eAAO,MAAM,qBAAqB,EAAG,cAAuB,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ //#region ---- Lock command/query keys ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.LOCK_GET_INFO_DEFAULT = exports.LOCK_CHECK_DEFAULT = exports.LOCK_RELEASE_DEFAULT = exports.LOCK_ACQUIRE_DEFAULT = void 0;
5
+ exports.LOCK_ACQUIRE_DEFAULT = 'Lock:Acquire';
6
+ exports.LOCK_RELEASE_DEFAULT = 'Lock:Release';
7
+ exports.LOCK_CHECK_DEFAULT = 'Lock:Check';
8
+ exports.LOCK_GET_INFO_DEFAULT = 'Lock:GetInfo';
9
+ //#endregion
10
+ //# sourceMappingURL=lock-command-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock-command-keys.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/lock-command-keys.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAE9B,QAAA,oBAAoB,GAAG,cAAuB,CAAC;AAC/C,QAAA,oBAAoB,GAAG,cAAuB,CAAC;AAC/C,QAAA,kBAAkB,GAAG,YAAqB,CAAC;AAC3C,QAAA,qBAAqB,GAAG,cAAuB,CAAC;AAE7D,YAAY"}
@@ -0,0 +1,2 @@
1
+ export declare const PRESENCE_SET_AVAILABILITY: "Presence:SetAvailability";
2
+ //# sourceMappingURL=presence-command-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presence-command-keys.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/presence-command-keys.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,EAAG,0BAAmC,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ //#region ----- Presence command keys -----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PRESENCE_SET_AVAILABILITY = void 0;
5
+ exports.PRESENCE_SET_AVAILABILITY = 'Presence:SetAvailability';
6
+ //#endregion
7
+ //# sourceMappingURL=presence-command-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presence-command-keys.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/presence-command-keys.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAE9B,QAAA,yBAAyB,GAAG,0BAAmC,CAAC;AAE7E,YAAY"}
@@ -0,0 +1,21 @@
1
+ export declare const AXP_WORKFLOW_START_DEFAULT: "Workflow:Start";
2
+ export declare const AXP_WORKFLOW_RESUME_DEFAULT: "Workflow:Resume";
3
+ export declare const AXP_WORKFLOW_FRONT_ACTIVITY_COMPLETE_DEFAULT: "Workflow:FrontActivityComplete";
4
+ export declare const AXP_WORKFLOW_CLAIM_TASK_DEFAULT: "Workflow:ClaimTask";
5
+ export declare const AXP_WORKFLOW_REASSIGN_TASK_TO_SELF_DEFAULT: "Workflow:ReassignTaskToSelf";
6
+ export declare const AXP_WORKFLOW_REVERT_RESUME_DEFAULT: "Workflow:RevertResumeAfterDeclinedContinuation";
7
+ export declare const AXP_WORKFLOW_CANCEL_INSTANCE_DEFAULT: "Workflow:CancelInstance";
8
+ export declare const AXP_WORKFLOW_GET_STATE_DEFAULT: "Workflow:GetState";
9
+ export declare const AXPWorkflowCommandKeys: {
10
+ readonly Start: "Workflow:Start";
11
+ readonly Resume: "Workflow:Resume";
12
+ readonly FrontActivityComplete: "Workflow:FrontActivityComplete";
13
+ readonly ClaimTask: "Workflow:ClaimTask";
14
+ readonly ReassignTaskToSelf: "Workflow:ReassignTaskToSelf";
15
+ readonly RevertResumeAfterDeclinedContinuation: "Workflow:RevertResumeAfterDeclinedContinuation";
16
+ readonly CancelInstance: "Workflow:CancelInstance";
17
+ };
18
+ export declare const AXPWorkflowQueryKeys: {
19
+ readonly GetState: "Workflow:GetState";
20
+ };
21
+ //# sourceMappingURL=workflow-command-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-command-keys.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/workflow-command-keys.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,EAAG,gBAAyB,CAAC;AACpE,eAAO,MAAM,2BAA2B,EAAG,iBAA0B,CAAC;AACtE,eAAO,MAAM,4CAA4C,EAAG,gCAAyC,CAAC;AACtG,eAAO,MAAM,+BAA+B,EAAG,oBAA6B,CAAC;AAC7E,eAAO,MAAM,0CAA0C,EAAG,6BAAsC,CAAC;AACjG,eAAO,MAAM,kCAAkC,EAAG,gDAAyD,CAAC;AAC5G,eAAO,MAAM,oCAAoC,EAAG,yBAAkC,CAAC;AACvF,eAAO,MAAM,8BAA8B,EAAG,mBAA4B,CAAC;AAE3E,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;CAEvB,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ //#region ---- Workflow command/query keys ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AXPWorkflowQueryKeys = exports.AXPWorkflowCommandKeys = exports.AXP_WORKFLOW_GET_STATE_DEFAULT = exports.AXP_WORKFLOW_CANCEL_INSTANCE_DEFAULT = exports.AXP_WORKFLOW_REVERT_RESUME_DEFAULT = exports.AXP_WORKFLOW_REASSIGN_TASK_TO_SELF_DEFAULT = exports.AXP_WORKFLOW_CLAIM_TASK_DEFAULT = exports.AXP_WORKFLOW_FRONT_ACTIVITY_COMPLETE_DEFAULT = exports.AXP_WORKFLOW_RESUME_DEFAULT = exports.AXP_WORKFLOW_START_DEFAULT = void 0;
5
+ exports.AXP_WORKFLOW_START_DEFAULT = 'Workflow:Start';
6
+ exports.AXP_WORKFLOW_RESUME_DEFAULT = 'Workflow:Resume';
7
+ exports.AXP_WORKFLOW_FRONT_ACTIVITY_COMPLETE_DEFAULT = 'Workflow:FrontActivityComplete';
8
+ exports.AXP_WORKFLOW_CLAIM_TASK_DEFAULT = 'Workflow:ClaimTask';
9
+ exports.AXP_WORKFLOW_REASSIGN_TASK_TO_SELF_DEFAULT = 'Workflow:ReassignTaskToSelf';
10
+ exports.AXP_WORKFLOW_REVERT_RESUME_DEFAULT = 'Workflow:RevertResumeAfterDeclinedContinuation';
11
+ exports.AXP_WORKFLOW_CANCEL_INSTANCE_DEFAULT = 'Workflow:CancelInstance';
12
+ exports.AXP_WORKFLOW_GET_STATE_DEFAULT = 'Workflow:GetState';
13
+ exports.AXPWorkflowCommandKeys = {
14
+ Start: exports.AXP_WORKFLOW_START_DEFAULT,
15
+ Resume: exports.AXP_WORKFLOW_RESUME_DEFAULT,
16
+ FrontActivityComplete: exports.AXP_WORKFLOW_FRONT_ACTIVITY_COMPLETE_DEFAULT,
17
+ ClaimTask: exports.AXP_WORKFLOW_CLAIM_TASK_DEFAULT,
18
+ ReassignTaskToSelf: exports.AXP_WORKFLOW_REASSIGN_TASK_TO_SELF_DEFAULT,
19
+ RevertResumeAfterDeclinedContinuation: exports.AXP_WORKFLOW_REVERT_RESUME_DEFAULT,
20
+ CancelInstance: exports.AXP_WORKFLOW_CANCEL_INSTANCE_DEFAULT,
21
+ };
22
+ exports.AXPWorkflowQueryKeys = {
23
+ GetState: exports.AXP_WORKFLOW_GET_STATE_DEFAULT,
24
+ };
25
+ //#endregion
26
+ //# sourceMappingURL=workflow-command-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-command-keys.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/commands/workflow-command-keys.ts"],"names":[],"mappings":";AAAA,+CAA+C;;;AAElC,QAAA,0BAA0B,GAAG,gBAAyB,CAAC;AACvD,QAAA,2BAA2B,GAAG,iBAA0B,CAAC;AACzD,QAAA,4CAA4C,GAAG,gCAAyC,CAAC;AACzF,QAAA,+BAA+B,GAAG,oBAA6B,CAAC;AAChE,QAAA,0CAA0C,GAAG,6BAAsC,CAAC;AACpF,QAAA,kCAAkC,GAAG,gDAAyD,CAAC;AAC/F,QAAA,oCAAoC,GAAG,yBAAkC,CAAC;AAC1E,QAAA,8BAA8B,GAAG,mBAA4B,CAAC;AAE9D,QAAA,sBAAsB,GAAG;IACpC,KAAK,EAAE,kCAA0B;IACjC,MAAM,EAAE,mCAA2B;IACnC,qBAAqB,EAAE,oDAA4C;IACnE,SAAS,EAAE,uCAA+B;IAC1C,kBAAkB,EAAE,kDAA0C;IAC9D,qCAAqC,EAAE,0CAAkC;IACzE,cAAc,EAAE,4CAAoC;CAC5C,CAAC;AAEE,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,sCAA8B;CAChC,CAAC;AAEX,YAAY"}