@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
@@ -1,23 +1,43 @@
1
1
  export * from './shared/catalog-definition-base.types';
2
2
  export * from './shared/catalog-definition.categories';
3
- export * from './commands/command.interface';
4
- export * from './commands/command-definition.types';
3
+ export * from './commands/auth-command-keys';
4
+ export * from './commands/bulk-command-failure.util';
5
+ export * from './commands/bulk-command.types';
6
+ export * from './commands/catalog-command-definition';
5
7
  export * from './commands/command-definition.categories';
8
+ export * from './commands/command-definition.types';
9
+ export * from './commands/command.interface';
10
+ export * from './commands/command-execute-options.types';
11
+ export * from './commands/command.middleware';
6
12
  export * from './commands/define-command';
7
- export * from './commands/catalog-command-definition';
13
+ export * from './commands/entity-action-command-input';
8
14
  export * from './commands/entity-command-keys';
9
- export * from './queries/query.interface';
10
- export * from './queries/query-definition.types';
11
- export * from './queries/query-definition.categories';
12
- export * from './queries/define-query';
15
+ export * from './commands/file-command-keys';
16
+ export * from './commands/lock-command-keys';
17
+ export * from './commands/presence-command-keys';
18
+ export * from './commands/workflow-command-keys';
19
+ export * from './queries/domain-query-keys';
20
+ export * from './queries/presence-query-keys';
13
21
  export * from './queries/catalog-query-definition';
22
+ export * from './queries/define-query';
23
+ export * from './queries/query-capability.types';
24
+ export * from './queries/query-definition.categories';
25
+ export * from './queries/query-definition.types';
26
+ export * from './queries/query-input.packs';
27
+ export * from './queries/query-kind.types';
28
+ export * from './queries/query-execute-options.types';
29
+ export * from './queries/query.middleware';
30
+ export * from './queries/query.interface';
14
31
  export * from './views/view.interface';
15
- export * from './widgets/widget-definition.types';
16
- export * from './widgets/widget-definition.categories';
17
- export * from './widgets/define-widget';
18
32
  export * from './widgets/catalog-widget-definition';
19
- export * from './plugins/entity-plugin-definition.types';
20
- export * from './plugins/entity-plugin-definition.categories';
21
- export * from './plugins/define-entity-plugin';
33
+ export * from './widgets/define-widget';
34
+ export * from './widgets/get-widgets-for-ai-agent-scope.util';
35
+ export * from './widgets/widget-definition.categories';
36
+ export * from './widgets/widget-definition.types';
22
37
  export * from './plugins/catalog-entity-plugin-definition';
38
+ export * from './plugins/define-entity-plugin';
39
+ export * from './plugins/entity-plugin-definition.categories';
40
+ export * from './plugins/entity-plugin-definition.types';
41
+ export * from './transports/runtime-invoke-url.util';
42
+ export * from './transports/runtime-transport.keys';
23
43
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/runtime/src/lib/index.ts"],"names":[],"mappings":"AAEA,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAE/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AAEnD,cAAc,wBAAwB,CAAC;AAEvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qCAAqC,CAAC;AAGpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4CAA4C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/runtime/src/lib/index.ts"],"names":[],"mappings":"AAEA,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAE1C,cAAc,wBAAwB,CAAC;AAEvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,yBAAyB,CAAC;AACxC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAElD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0CAA0C,CAAC;AAEzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC"}
@@ -4,25 +4,45 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const tslib_1 = require("tslib");
5
5
  tslib_1.__exportStar(require("./shared/catalog-definition-base.types"), exports);
6
6
  tslib_1.__exportStar(require("./shared/catalog-definition.categories"), exports);
7
- tslib_1.__exportStar(require("./commands/command.interface"), exports);
8
- tslib_1.__exportStar(require("./commands/command-definition.types"), exports);
7
+ tslib_1.__exportStar(require("./commands/auth-command-keys"), exports);
8
+ tslib_1.__exportStar(require("./commands/bulk-command-failure.util"), exports);
9
+ tslib_1.__exportStar(require("./commands/bulk-command.types"), exports);
10
+ tslib_1.__exportStar(require("./commands/catalog-command-definition"), exports);
9
11
  tslib_1.__exportStar(require("./commands/command-definition.categories"), exports);
12
+ tslib_1.__exportStar(require("./commands/command-definition.types"), exports);
13
+ tslib_1.__exportStar(require("./commands/command.interface"), exports);
14
+ tslib_1.__exportStar(require("./commands/command-execute-options.types"), exports);
15
+ tslib_1.__exportStar(require("./commands/command.middleware"), exports);
10
16
  tslib_1.__exportStar(require("./commands/define-command"), exports);
11
- tslib_1.__exportStar(require("./commands/catalog-command-definition"), exports);
17
+ tslib_1.__exportStar(require("./commands/entity-action-command-input"), exports);
12
18
  tslib_1.__exportStar(require("./commands/entity-command-keys"), exports);
13
- tslib_1.__exportStar(require("./queries/query.interface"), exports);
14
- tslib_1.__exportStar(require("./queries/query-definition.types"), exports);
15
- tslib_1.__exportStar(require("./queries/query-definition.categories"), exports);
16
- tslib_1.__exportStar(require("./queries/define-query"), exports);
19
+ tslib_1.__exportStar(require("./commands/file-command-keys"), exports);
20
+ tslib_1.__exportStar(require("./commands/lock-command-keys"), exports);
21
+ tslib_1.__exportStar(require("./commands/presence-command-keys"), exports);
22
+ tslib_1.__exportStar(require("./commands/workflow-command-keys"), exports);
23
+ tslib_1.__exportStar(require("./queries/domain-query-keys"), exports);
24
+ tslib_1.__exportStar(require("./queries/presence-query-keys"), exports);
17
25
  tslib_1.__exportStar(require("./queries/catalog-query-definition"), exports);
26
+ tslib_1.__exportStar(require("./queries/define-query"), exports);
27
+ tslib_1.__exportStar(require("./queries/query-capability.types"), exports);
28
+ tslib_1.__exportStar(require("./queries/query-definition.categories"), exports);
29
+ tslib_1.__exportStar(require("./queries/query-definition.types"), exports);
30
+ tslib_1.__exportStar(require("./queries/query-input.packs"), exports);
31
+ tslib_1.__exportStar(require("./queries/query-kind.types"), exports);
32
+ tslib_1.__exportStar(require("./queries/query-execute-options.types"), exports);
33
+ tslib_1.__exportStar(require("./queries/query.middleware"), exports);
34
+ tslib_1.__exportStar(require("./queries/query.interface"), exports);
18
35
  tslib_1.__exportStar(require("./views/view.interface"), exports);
19
- tslib_1.__exportStar(require("./widgets/widget-definition.types"), exports);
20
- tslib_1.__exportStar(require("./widgets/widget-definition.categories"), exports);
21
- tslib_1.__exportStar(require("./widgets/define-widget"), exports);
22
36
  tslib_1.__exportStar(require("./widgets/catalog-widget-definition"), exports);
23
- tslib_1.__exportStar(require("./plugins/entity-plugin-definition.types"), exports);
24
- tslib_1.__exportStar(require("./plugins/entity-plugin-definition.categories"), exports);
25
- tslib_1.__exportStar(require("./plugins/define-entity-plugin"), exports);
37
+ tslib_1.__exportStar(require("./widgets/define-widget"), exports);
38
+ tslib_1.__exportStar(require("./widgets/get-widgets-for-ai-agent-scope.util"), exports);
39
+ tslib_1.__exportStar(require("./widgets/widget-definition.categories"), exports);
40
+ tslib_1.__exportStar(require("./widgets/widget-definition.types"), exports);
26
41
  tslib_1.__exportStar(require("./plugins/catalog-entity-plugin-definition"), exports);
42
+ tslib_1.__exportStar(require("./plugins/define-entity-plugin"), exports);
43
+ tslib_1.__exportStar(require("./plugins/entity-plugin-definition.categories"), exports);
44
+ tslib_1.__exportStar(require("./plugins/entity-plugin-definition.types"), exports);
45
+ tslib_1.__exportStar(require("./transports/runtime-invoke-url.util"), exports);
46
+ tslib_1.__exportStar(require("./transports/runtime-transport.keys"), exports);
27
47
  //#endregion
28
48
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/runtime/src/lib/index.ts"],"names":[],"mappings":";AAAA,qCAAqC;;;AAErC,iFAAuD;AACvD,iFAAuD;AAEvD,uEAA6C;AAC7C,8EAAoD;AACpD,mFAAyD;AACzD,oEAA0C;AAC1C,gFAAsD;AACtD,yEAA+C;AAE/C,oEAA0C;AAC1C,2EAAiD;AACjD,gFAAsD;AACtD,iEAAuC;AACvC,6EAAmD;AAEnD,iEAAuC;AAEvC,4EAAkD;AAClD,iFAAuD;AACvD,kEAAwC;AACxC,8EAAoD;AAGpD,mFAAyD;AACzD,wFAA8D;AAC9D,yEAA+C;AAC/C,qFAA2D;AAE3D,YAAY"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/runtime/src/lib/index.ts"],"names":[],"mappings":";AAAA,qCAAqC;;;AAErC,iFAAuD;AACvD,iFAAuD;AAEvD,uEAA6C;AAC7C,+EAAqD;AACrD,wEAA8C;AAC9C,gFAAsD;AACtD,mFAAyD;AACzD,8EAAoD;AACpD,uEAA6C;AAC7C,mFAAyD;AACzD,wEAA8C;AAC9C,oEAA0C;AAC1C,iFAAuD;AACvD,yEAA+C;AAC/C,uEAA6C;AAC7C,uEAA6C;AAC7C,2EAAiD;AACjD,2EAAiD;AAEjD,sEAA4C;AAC5C,wEAA8C;AAE9C,6EAAmD;AACnD,iEAAuC;AACvC,2EAAiD;AACjD,gFAAsD;AACtD,2EAAiD;AACjD,sEAA4C;AAC5C,qEAA2C;AAC3C,gFAAsD;AACtD,qEAA2C;AAC3C,oEAA0C;AAE1C,iEAAuC;AAEvC,8EAAoD;AACpD,kEAAwC;AACxC,wFAA8D;AAC9D,iFAAuD;AACvD,4EAAkD;AAElD,qFAA2D;AAC3D,yEAA+C;AAC/C,wFAA8D;AAC9D,mFAAyD;AAEzD,+EAAqD;AACrD,8EAAoD;AAEpD,YAAY"}
@@ -1,6 +1,22 @@
1
+ import type { AXPCatalogSchemaPropertyDefinition } from '../shared/catalog-definition-base.types';
2
+ import type { AXPQueryArgsSection, AXPQueryFilterSection, AXPQueryPagingSection, AXPQuerySortSection } from './query-capability.types';
1
3
  import type { AXPQueryMetadataDefinition } from './query-definition.types';
4
+ export type AXPAlignedQueryMetadataDefinition = Omit<AXPQueryMetadataDefinition, 'args' | 'filter' | 'sort' | 'paging' | 'columns' | 'inputs' | 'outputs'> & {
5
+ args: AXPQueryArgsSection;
6
+ filter: AXPQueryFilterSection;
7
+ sort: AXPQuerySortSection;
8
+ paging: AXPQueryPagingSection;
9
+ columns?: AXPCatalogSchemaPropertyDefinition[];
10
+ };
2
11
  /**
3
- * Typed identity helper for query metadata sidecars.
12
+ * Prepares query metadata for catalog JSON / DB seed.
13
+ * Produces explicit `{ enabled, definition }` sections for args / filter / sort / paging.
14
+ * Does not emit flattened legacy `inputs` / `outputs` — catalog uses capability sections + `columns`.
4
15
  */
5
- export declare function defineQuery<T extends AXPQueryMetadataDefinition>(definition: T): T;
16
+ export declare function alignQueryDefinitionForCatalog(definition: AXPQueryMetadataDefinition): AXPAlignedQueryMetadataDefinition;
17
+ /**
18
+ * Typed helper for query metadata sidecars.
19
+ * Asserts collection-only fields and aligns catalog capability sections before DB seed/catalog gen.
20
+ */
21
+ export declare function defineQuery<T extends AXPQueryMetadataDefinition>(definition: T): AXPAlignedQueryMetadataDefinition;
6
22
  //# sourceMappingURL=define-query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"define-query.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/define-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAI3E;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,0BAA0B,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC,CAElF"}
1
+ {"version":3,"file":"define-query.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/define-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,KAAK,EACV,mBAAmB,EAInB,qBAAqB,EAErB,qBAAqB,EAErB,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAIlC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAwH3E,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAClD,0BAA0B,EAC1B,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CACzE,GAAG;IACF,IAAI,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,OAAO,CAAC,EAAE,kCAAkC,EAAE,CAAC;CAChD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,0BAA0B,GACrC,iCAAiC,CAuCnC;AAMD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,0BAA0B,EAC9D,UAAU,EAAE,CAAC,GACZ,iCAAiC,CAenC"}
@@ -1,12 +1,150 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.alignQueryDefinitionForCatalog = alignQueryDefinitionForCatalog;
3
4
  exports.defineQuery = defineQuery;
5
+ const tslib_1 = require("tslib");
6
+ const query_capability_types_1 = require("./query-capability.types");
7
+ //#region ---- Section normalize ----
8
+ function isCapabilitySection(value) {
9
+ return (value != null &&
10
+ typeof value === 'object' &&
11
+ !Array.isArray(value) &&
12
+ typeof value.enabled === 'boolean');
13
+ }
14
+ function normalizeListSection(input, mapItem) {
15
+ var _a;
16
+ if (input == null) {
17
+ return { enabled: false };
18
+ }
19
+ if (isCapabilitySection(input)) {
20
+ if (!input.enabled) {
21
+ return { enabled: false };
22
+ }
23
+ const definition = ((_a = input.definition) !== null && _a !== void 0 ? _a : []).map((item) => (mapItem ? mapItem(item) : item));
24
+ if (definition.length === 0) {
25
+ return { enabled: false };
26
+ }
27
+ return { enabled: true, definition };
28
+ }
29
+ if (Array.isArray(input)) {
30
+ if (input.length === 0) {
31
+ return { enabled: false };
32
+ }
33
+ const definition = mapItem ? input.map(mapItem) : [...input];
34
+ return { enabled: true, definition };
35
+ }
36
+ return { enabled: false };
37
+ }
38
+ function normalizePagingSection(input) {
39
+ var _a;
40
+ if (input == null) {
41
+ return { enabled: false };
42
+ }
43
+ if (isCapabilitySection(input)) {
44
+ if (!input.enabled) {
45
+ return { enabled: false };
46
+ }
47
+ return {
48
+ enabled: true,
49
+ definition: Object.assign(Object.assign({}, query_capability_types_1.AXP_QUERY_DEFAULT_COLLECTION_PAGING), ((_a = input.definition) !== null && _a !== void 0 ? _a : {})),
50
+ };
51
+ }
52
+ if (typeof input === 'object') {
53
+ return {
54
+ enabled: true,
55
+ definition: Object.assign(Object.assign({}, query_capability_types_1.AXP_QUERY_DEFAULT_COLLECTION_PAGING), input),
56
+ };
57
+ }
58
+ return { enabled: false };
59
+ }
60
+ function normalizeFilterItem(item) {
61
+ var _a, _b;
62
+ const source = (_a = item.source) !== null && _a !== void 0 ? _a : (item.field != null ? 'field' : 'custom');
63
+ return Object.assign(Object.assign(Object.assign({}, item), { source }), (source === 'field' ? { field: (_b = item.field) !== null && _b !== void 0 ? _b : item.name } : {}));
64
+ }
65
+ function normalizeSortItem(item) {
66
+ var _a, _b, _c;
67
+ const source = (_a = item.source) !== null && _a !== void 0 ? _a : (item.field != null ? 'field' : 'field');
68
+ return Object.assign(Object.assign({}, item), { source, field: (_b = item.field) !== null && _b !== void 0 ? _b : item.name, directions: ((_c = item.directions) === null || _c === void 0 ? void 0 : _c.length) ? item.directions : ['asc', 'desc'] });
69
+ }
70
+ //#endregion
71
+ //#region ---- Legacy bridge ----
72
+ const PAGING_INPUT_NAMES = new Set(['skip', 'take']);
73
+ /**
74
+ * Prefer `args` / `columns`. When only legacy `inputs` / `outputs` exist, map them so catalog JSON
75
+ * still gets explicit capability sections.
76
+ */
77
+ function bridgeLegacyInputs(definition) {
78
+ var _a;
79
+ if (definition.args != null) {
80
+ return { argsInput: definition.args };
81
+ }
82
+ const inputs = (_a = definition.inputs) !== null && _a !== void 0 ? _a : [];
83
+ if (inputs.length === 0) {
84
+ return { argsInput: undefined };
85
+ }
86
+ const argsOnly = inputs.filter((row) => !PAGING_INPUT_NAMES.has(row.name));
87
+ return {
88
+ argsInput: argsOnly.length > 0 ? argsOnly : undefined,
89
+ };
90
+ }
91
+ function bridgeLegacyColumns(definition) {
92
+ if (definition.columns != null) {
93
+ return definition.columns;
94
+ }
95
+ return definition.outputs;
96
+ }
97
+ /**
98
+ * Prepares query metadata for catalog JSON / DB seed.
99
+ * Produces explicit `{ enabled, definition }` sections for args / filter / sort / paging.
100
+ * Does not emit flattened legacy `inputs` / `outputs` — catalog uses capability sections + `columns`.
101
+ */
102
+ function alignQueryDefinitionForCatalog(definition) {
103
+ const { argsInput } = bridgeLegacyInputs(definition);
104
+ const args = normalizeListSection(argsInput);
105
+ const filter = normalizeListSection(definition.filter, normalizeFilterItem);
106
+ const sort = normalizeListSection(definition.sort, normalizeSortItem);
107
+ let paging = normalizePagingSection(definition.paging);
108
+ // Collection defaults to paging unless the sidecar set `paging` explicitly (including `{ enabled: false }`).
109
+ if (definition.kind === 'collection' && definition.paging == null) {
110
+ paging = {
111
+ enabled: true,
112
+ definition: Object.assign({}, query_capability_types_1.AXP_QUERY_DEFAULT_COLLECTION_PAGING),
113
+ };
114
+ }
115
+ // Reject declaring skip/take as args when collection paging is system-managed.
116
+ if (definition.kind === 'collection' && args.enabled) {
117
+ const conflict = args.definition.find((row) => PAGING_INPUT_NAMES.has(row.name));
118
+ if (conflict) {
119
+ throw new Error(`defineQuery(${definition.key}): do not declare arg "${conflict.name}" — ` +
120
+ `skip/take belong to paging when kind is 'collection'`);
121
+ }
122
+ }
123
+ const columns = bridgeLegacyColumns(definition);
124
+ // Drop legacy flat fields from the aligned catalog payload.
125
+ const { inputs: _legacyInputs, outputs: _legacyOutputs } = definition, rest = tslib_1.__rest(definition, ["inputs", "outputs"]);
126
+ return Object.assign(Object.assign({}, rest), { args,
127
+ filter,
128
+ sort,
129
+ paging,
130
+ columns });
131
+ }
132
+ //#endregion
4
133
  //#region ---- defineQuery ----
5
134
  /**
6
- * Typed identity helper for query metadata sidecars.
135
+ * Typed helper for query metadata sidecars.
136
+ * Asserts collection-only fields and aligns catalog capability sections before DB seed/catalog gen.
7
137
  */
8
138
  function defineQuery(definition) {
9
- return definition;
139
+ if (definition.kind != null && definition.kind !== 'collection') {
140
+ if (definition.binding != null) {
141
+ throw new Error(`defineQuery(${definition.key}): binding is only allowed when kind is 'collection'`);
142
+ }
143
+ if (definition.byKeyQuery != null) {
144
+ throw new Error(`defineQuery(${definition.key}): byKeyQuery is only allowed when kind is 'collection'`);
145
+ }
146
+ }
147
+ return alignQueryDefinitionForCatalog(definition);
10
148
  }
11
149
  //#endregion
12
150
  //# sourceMappingURL=define-query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"define-query.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/define-query.ts"],"names":[],"mappings":";;AAOA,kCAEC;AAPD,+BAA+B;AAE/B;;GAEG;AACH,SAAgB,WAAW,CAAuC,UAAa;IAC7E,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,YAAY"}
1
+ {"version":3,"file":"define-query.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/define-query.ts"],"names":[],"mappings":";;AAuJA,wEAyCC;AAUD,kCAiBC;;AA/MD,qEAEkC;AAGlC,qCAAqC;AAErC,SAAS,mBAAmB,CAAC,KAAc;IACzC,OAAO,CACL,KAAK,IAAI,IAAI;QACb,OAAO,KAAK,KAAK,QAAQ;QACzB,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACrB,OAAQ,KAA+B,CAAC,OAAO,KAAK,SAAS,CAC9D,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAC3B,KAAsD,EACtD,OAAwB;;IAExB,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC;IACD,IAAI,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/B,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YACnB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;QACD,MAAM,UAAU,GAAG,CAAC,MAAA,KAAK,CAAC,UAAU,mCAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,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1,15 @@
1
+ export declare const DOMAIN_GET_ENTITY_LAYOUT_DEFAULT: "Domain:GetEntityLayout";
2
+ export interface DomainGetEntityLayoutInput {
3
+ module: string;
4
+ entity: string;
5
+ }
6
+ export declare const DOMAIN_LIST_ENTITY_LAYOUTS_DEFAULT: "Domain:ListEntityLayouts";
7
+ export interface DomainListEntityLayoutsInput {
8
+ /** When set, only entities for this module are returned. */
9
+ module?: string;
10
+ }
11
+ export interface DomainEntityLayoutListItem {
12
+ module: string;
13
+ entity: string;
14
+ }
15
+ //# sourceMappingURL=domain-query-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain-query-keys.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/domain-query-keys.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gCAAgC,EAAG,wBAAiC,CAAC;AAElF,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,kCAAkC,EAAG,0BAAmC,CAAC;AAEtF,MAAM,WAAW,4BAA4B;IAC3C,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ //#region ---- Domain query keys ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DOMAIN_LIST_ENTITY_LAYOUTS_DEFAULT = exports.DOMAIN_GET_ENTITY_LAYOUT_DEFAULT = void 0;
5
+ exports.DOMAIN_GET_ENTITY_LAYOUT_DEFAULT = 'Domain:GetEntityLayout';
6
+ exports.DOMAIN_LIST_ENTITY_LAYOUTS_DEFAULT = 'Domain:ListEntityLayouts';
7
+ //#endregion
8
+ //# sourceMappingURL=domain-query-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain-query-keys.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/domain-query-keys.ts"],"names":[],"mappings":";AAAA,qCAAqC;;;AAExB,QAAA,gCAAgC,GAAG,wBAAiC,CAAC;AAOrE,QAAA,kCAAkC,GAAG,0BAAmC,CAAC;AAYtF,YAAY"}
@@ -0,0 +1,3 @@
1
+ export declare const PRESENCE_USER_ACTIVITY: "Presence:UserActivity";
2
+ export declare const PRESENCE_TENANT_ACTIVITY: "Presence:TenantActivity";
3
+ //# sourceMappingURL=presence-query-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presence-query-keys.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/presence-query-keys.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,EAAG,uBAAgC,CAAC;AACvE,eAAO,MAAM,wBAAwB,EAAG,yBAAkC,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ //#region ----- Presence query keys -----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PRESENCE_TENANT_ACTIVITY = exports.PRESENCE_USER_ACTIVITY = void 0;
5
+ exports.PRESENCE_USER_ACTIVITY = 'Presence:UserActivity';
6
+ exports.PRESENCE_TENANT_ACTIVITY = 'Presence:TenantActivity';
7
+ //#endregion
8
+ //# sourceMappingURL=presence-query-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presence-query-keys.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/presence-query-keys.ts"],"names":[],"mappings":";AAAA,yCAAyC;;;AAE5B,QAAA,sBAAsB,GAAG,uBAAgC,CAAC;AAC1D,QAAA,wBAAwB,GAAG,yBAAkC,CAAC;AAE3E,YAAY"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Query catalog capability sections for AI / report / DB seed.
3
+ * Catalog JSON uses explicit `{ enabled, definition }` (never infer support from absent lists).
4
+ */
5
+ import type { AXPCatalogSchemaPropertyDefinition } from '../shared/catalog-definition-base.types';
6
+ /**
7
+ * One request axis (args / filter / sort / paging).
8
+ * If `enabled` is false, callers and AI must not send that axis.
9
+ */
10
+ export type AXPQueryCapabilitySection<TDefinition> = {
11
+ enabled: false;
12
+ definition?: undefined;
13
+ } | {
14
+ enabled: true;
15
+ definition: TDefinition;
16
+ };
17
+ /**
18
+ * Authoring shorthand before {@link alignQueryDefinitionForCatalog}:
19
+ * - omit / undefined → `{ enabled: false }`
20
+ * - array (or paging object) → `{ enabled: true, definition }`
21
+ * - full section → kept (validated)
22
+ */
23
+ export type AXPQueryCapabilitySectionInput<TDefinition> = TDefinition | AXPQueryCapabilitySection<TDefinition> | undefined;
24
+ /** Named contract parameter (not a dynamic filter clause). */
25
+ export type AXPQueryArgDefinition = AXPCatalogSchemaPropertyDefinition;
26
+ export type AXPQueryArgsSection = AXPQueryCapabilitySection<AXPQueryArgDefinition[]>;
27
+ export type AXPQueryArgsSectionInput = AXPQueryCapabilitySectionInput<AXPQueryArgDefinition[]>;
28
+ /**
29
+ * Filter descriptor.
30
+ * - `source: 'field'` — bound to a result/column field
31
+ * - `source: 'custom'` — semantic / virtual (e.g. near|expired|both)
32
+ */
33
+ export interface AXPQueryFilterDefinition extends AXPCatalogSchemaPropertyDefinition {
34
+ source?: 'field' | 'custom';
35
+ /** When `source` is `field`, the column/field name (defaults to `name`). */
36
+ field?: string;
37
+ }
38
+ export type AXPQueryFilterSection = AXPQueryCapabilitySection<AXPQueryFilterDefinition[]>;
39
+ export type AXPQueryFilterSectionInput = AXPQueryCapabilitySectionInput<AXPQueryFilterDefinition[]>;
40
+ /** Sortable key; may reference a non-visible / non-column field. */
41
+ export interface AXPQuerySortDefinition {
42
+ name: string;
43
+ title?: string;
44
+ description?: string;
45
+ source?: 'field' | 'custom';
46
+ /** Sort field path when different from `name`. */
47
+ field?: string;
48
+ directions?: Array<'asc' | 'desc'>;
49
+ }
50
+ export type AXPQuerySortSection = AXPQueryCapabilitySection<AXPQuerySortDefinition[]>;
51
+ export type AXPQuerySortSectionInput = AXPQueryCapabilitySectionInput<AXPQuerySortDefinition[]>;
52
+ export interface AXPQueryPagingDefinition {
53
+ skip?: boolean;
54
+ take?: boolean;
55
+ /** `take: null` means fetch-all up to platform soft limit. */
56
+ takeNullMeansAll?: boolean;
57
+ /**
58
+ * Optional default page size for UI widgets that wrap this query as an AXDataSource
59
+ * (e.g. select-box). Omitted → widget / control default.
60
+ */
61
+ pageSize?: number;
62
+ }
63
+ export type AXPQueryPagingSection = AXPQueryCapabilitySection<AXPQueryPagingDefinition>;
64
+ export type AXPQueryPagingSectionInput = AXPQueryCapabilitySectionInput<AXPQueryPagingDefinition>;
65
+ /** Default collection paging contract injected by align. */
66
+ export declare const AXP_QUERY_DEFAULT_COLLECTION_PAGING: AXPQueryPagingDefinition;
67
+ /** Collection item / object field schema (result shape, not a request capability). */
68
+ export type AXPQueryColumnDefinition = AXPCatalogSchemaPropertyDefinition;
69
+ /** Builtin scalar result for `kind: 'value'`. */
70
+ export type AXPQueryValueType = 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'json';
71
+ //# sourceMappingURL=query-capability.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-capability.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-capability.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAIlG;;;GAGG;AACH,MAAM,MAAM,yBAAyB,CAAC,WAAW,IAC7C;IACE,OAAO,EAAE,KAAK,CAAC;IACf,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB,GACD;IACE,OAAO,EAAE,IAAI,CAAC;IACd,UAAU,EAAE,WAAW,CAAC;CACzB,CAAC;AAEN;;;;;GAKG;AACH,MAAM,MAAM,8BAA8B,CAAC,WAAW,IAClD,WAAW,GACX,yBAAyB,CA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AAM,MAAM,qBAAqB,GAAG,yBAAyB,CAAC,wBAAwB,CAAC,CAAC;AACxF,MAAM,MAAM,0BAA0B,GAAG,8BAA8B,CAAC,wBAAwB,CAAC,CAAC;AAElG,4DAA4D;AAC5D,eAAO,MAAM,mCAAmC,EAAE,wBAIjD,CAAC;AAMF,sFAAsF;AACtF,MAAM,MAAM,wBAAwB,GAAG,kCAAkC,CAAC;AAE1E,iDAAiD;AACjD,MAAM,MAAM,iBAAiB,GACzB,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,MAAM,GACN,UAAU,GACV,MAAM,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * Query catalog capability sections for AI / report / DB seed.
4
+ * Catalog JSON uses explicit `{ enabled, definition }` (never infer support from absent lists).
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.AXP_QUERY_DEFAULT_COLLECTION_PAGING = void 0;
8
+ /** Default collection paging contract injected by align. */
9
+ exports.AXP_QUERY_DEFAULT_COLLECTION_PAGING = {
10
+ skip: true,
11
+ take: true,
12
+ takeNullMeansAll: true,
13
+ };
14
+ //#endregion
15
+ //# sourceMappingURL=query-capability.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-capability.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-capability.types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAgGH,4DAA4D;AAC/C,QAAA,mCAAmC,GAA6B;IAC3E,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,gBAAgB,EAAE,IAAI;CACvB,CAAC;AAkBF,YAAY"}
@@ -1,14 +1,61 @@
1
1
  /**
2
2
  * Build-time query metadata for AXPQuery implementations.
3
3
  * Mirrors command metadata shape except there are no `outcomes` (queries only `fetch`).
4
- * Shares {@link AXPCatalogMetadataDefinitionBase} with commands and widgets; `inputs` / `outputs` live on the base.
4
+ * Shares {@link AXPCatalogMetadataDefinitionBase} with commands and widgets.
5
+ * Prefer `args` / `filter` / `sort` / `paging` / `columns`. Legacy `inputs` / `outputs` are
6
+ * accepted only as an inbound bridge for older sidecars and are stripped from catalog output.
5
7
  */
6
8
  import type { AXPCatalogExecutionMode, AXPCatalogMetadataDefinitionBase, AXPCatalogSchemaPropertyDefinition } from '../shared/catalog-definition-base.types';
9
+ import type { AXPQueryArgsSectionInput, AXPQueryColumnDefinition, AXPQueryFilterSectionInput, AXPQueryPagingSectionInput, AXPQuerySortSectionInput, AXPQueryValueType } from './query-capability.types';
10
+ import type { AXPQueryCollectionBinding, AXPQueryKind } from './query-kind.types';
7
11
  /** One input/output property description for query definitions (same as command / widget catalog rows). */
8
12
  export type AXPQuerySchemaPropertyDefinition = AXPCatalogSchemaPropertyDefinition;
9
13
  export interface AXPQueryMetadataDefinition extends AXPCatalogMetadataDefinitionBase {
10
14
  /** Runtime registration key (provideQuerySetups). */
11
15
  key: string;
12
16
  executionMode: AXPCatalogExecutionMode;
17
+ /**
18
+ * Result shape — must match the success `kind` returned by `fetch`
19
+ * (`value` | `object` | `collection`).
20
+ */
21
+ kind?: AXPQueryKind;
22
+ /**
23
+ * Optional stable result DTO id (e.g. `AXPBarChartQueryResult`).
24
+ * Used by chart/KPI widget designers to filter compatible queries.
25
+ */
26
+ resultType?: string;
27
+ /**
28
+ * Select/lookup binding for `kind: 'collection'` only.
29
+ * Ignored for `value` / `object`.
30
+ */
31
+ binding?: AXPQueryCollectionBinding;
32
+ /**
33
+ * Runtime query key of an `object` query used to resolve one row by `binding.valueField`.
34
+ * Collection only.
35
+ */
36
+ byKeyQuery?: string;
37
+ /**
38
+ * Contract args (named params). Prefer over stuffing everything into `inputs`.
39
+ * Authoring: array shorthand or `{ enabled, definition }`.
40
+ */
41
+ args?: AXPQueryArgsSectionInput;
42
+ /**
43
+ * Dynamic filters (field-bound or custom/semantic). Omit or empty ⇒ not supported.
44
+ */
45
+ filter?: AXPQueryFilterSectionInput;
46
+ /**
47
+ * Sort keys (may include fields not shown as columns).
48
+ */
49
+ sort?: AXPQuerySortSectionInput;
50
+ /**
51
+ * Paging contract. For `kind: 'collection'`, align injects a default when omitted.
52
+ */
53
+ paging?: AXPQueryPagingSectionInput;
54
+ /**
55
+ * Result field schema for `object` / `collection` items (catalog `outputs` equivalent).
56
+ */
57
+ columns?: AXPQueryColumnDefinition[];
58
+ /** Scalar result type when `kind: 'value'`. */
59
+ valueType?: AXPQueryValueType;
13
60
  }
14
61
  //# sourceMappingURL=query-definition.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-definition.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-definition.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,gCAAgC,EAChC,kCAAkC,EACnC,MAAM,yCAAyC,CAAC;AAIjD,2GAA2G;AAC3G,MAAM,MAAM,gCAAgC,GAAG,kCAAkC,CAAC;AAElF,MAAM,WAAW,0BAA2B,SAAQ,gCAAgC;IAClF,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,uBAAuB,CAAC;CACxC"}
1
+ {"version":3,"file":"query-definition.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-definition.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,gCAAgC,EAChC,kCAAkC,EACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIlF,2GAA2G;AAC3G,MAAM,MAAM,gCAAgC,GAAG,kCAAkC,CAAC;AAElF,MAAM,WAAW,0BAA2B,SAAQ,gCAAgC;IAClF,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,uBAAuB,CAAC;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACrC,+CAA+C;IAC/C,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B"}
@@ -2,7 +2,9 @@
2
2
  /**
3
3
  * Build-time query metadata for AXPQuery implementations.
4
4
  * Mirrors command metadata shape except there are no `outcomes` (queries only `fetch`).
5
- * Shares {@link AXPCatalogMetadataDefinitionBase} with commands and widgets; `inputs` / `outputs` live on the base.
5
+ * Shares {@link AXPCatalogMetadataDefinitionBase} with commands and widgets.
6
+ * Prefer `args` / `filter` / `sort` / `paging` / `columns`. Legacy `inputs` / `outputs` are
7
+ * accepted only as an inbound bridge for older sidecars and are stripped from catalog output.
6
8
  */
7
9
  Object.defineProperty(exports, "__esModule", { value: true });
8
10
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"query-definition.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-definition.types.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAmBH,YAAY"}
1
+ {"version":3,"file":"query-definition.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-definition.types.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAwEH,YAAY"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * How this execute call should use ReportManagement query snapshots.
3
+ * Interpreted by the server query-snapshot middleware when a policy exists.
4
+ *
5
+ * - `true` — prefer snapshot; on miss/stale, sync ensure (canonical `{}`) then return
6
+ * - `{ minCalculatedAt, maxAgeMs }` — same as `true`, with a freshness floor
7
+ * - `false` — force live handler (skip snapshot serve)
8
+ * - omitted — transparent: serve ready+fresh snapshot when policy exists; miss → live (no ensure)
9
+ */
10
+ export type AXPQuerySnapshotOption = boolean | {
11
+ /** Snapshot `calculatedAt` must be at/after this epoch ms. */
12
+ minCalculatedAt?: number;
13
+ /** Max age in ms (overrides policy `staleAfterMs` for this call). */
14
+ maxAgeMs?: number;
15
+ };
16
+ /**
17
+ * Parent bag for query execute knobs (not business input).
18
+ * Extensible — add fields here instead of new positional args.
19
+ */
20
+ export interface AXPQueryExecuteOptions {
21
+ snapshot?: AXPQuerySnapshotOption;
22
+ }
23
+ //# sourceMappingURL=query-execute-options.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-execute-options.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-execute-options.types.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,MAAM,sBAAsB,GAC9B,OAAO,GACP;IACE,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEN;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACnC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ //#region ----- Query execute options -----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //#endregion
5
+ //# sourceMappingURL=query-execute-options.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-execute-options.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/runtime/src/lib/queries/query-execute-options.types.ts"],"names":[],"mappings":";AAAA,2CAA2C;;AA4B3C,YAAY"}