@rockster/core 0.0.1 → 0.0.4

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 (1096) hide show
  1. package/access/access.module.d.ts +11 -0
  2. package/access/access.module.js +60 -0
  3. package/access/access.module.js.map +1 -0
  4. package/access/controllers/controllers.d.ts +6 -0
  5. package/access/controllers/controllers.js +16 -0
  6. package/access/controllers/controllers.js.map +1 -0
  7. package/access/controllers/scope-group-user.controller.d.ts +13 -0
  8. package/access/controllers/scope-group-user.controller.js +84 -0
  9. package/access/controllers/scope-group-user.controller.js.map +1 -0
  10. package/access/controllers/scope-group.controller.d.ts +19 -0
  11. package/access/controllers/scope-group.controller.js +123 -0
  12. package/access/controllers/scope-group.controller.js.map +1 -0
  13. package/access/controllers/scope-key.controller.d.ts +7 -0
  14. package/access/controllers/scope-key.controller.js +45 -0
  15. package/access/controllers/scope-key.controller.js.map +1 -0
  16. package/access/controllers/scope-owner.controller.d.ts +8 -0
  17. package/access/controllers/scope-owner.controller.js +66 -0
  18. package/access/controllers/scope-owner.controller.js.map +1 -0
  19. package/access/controllers/scope-user.controller.d.ts +14 -0
  20. package/access/controllers/scope-user.controller.js +95 -0
  21. package/access/controllers/scope-user.controller.js.map +1 -0
  22. package/access/entities/entities.d.ts +6 -0
  23. package/access/entities/entities.js +18 -0
  24. package/access/entities/entities.js.map +1 -0
  25. package/access/entities/index.d.ts +5 -0
  26. package/access/entities/index.js +22 -0
  27. package/access/entities/index.js.map +1 -0
  28. package/access/entities/scope-access.d.ts +9 -0
  29. package/access/entities/scope-access.js +58 -0
  30. package/access/entities/scope-access.js.map +1 -0
  31. package/access/entities/scope-group-user.d.ts +7 -0
  32. package/access/entities/scope-group-user.js +47 -0
  33. package/access/entities/scope-group-user.js.map +1 -0
  34. package/access/entities/scope-group.d.ts +9 -0
  35. package/access/entities/scope-group.js +56 -0
  36. package/access/entities/scope-group.js.map +1 -0
  37. package/access/entities/scope-key.d.ts +5 -0
  38. package/access/entities/scope-key.js +35 -0
  39. package/access/entities/scope-key.js.map +1 -0
  40. package/access/entities/scope-owner.d.ts +7 -0
  41. package/access/entities/scope-owner.js +45 -0
  42. package/access/entities/scope-owner.js.map +1 -0
  43. package/access/env.d.ts +10 -0
  44. package/access/env.js +10 -0
  45. package/access/env.js.map +1 -0
  46. package/access/functions/get-context-id-service.d.ts +1 -0
  47. package/access/functions/get-context-id-service.js +8 -0
  48. package/access/functions/get-context-id-service.js.map +1 -0
  49. package/access/functions/get-is-owner.d.ts +1 -0
  50. package/access/functions/get-is-owner.js +8 -0
  51. package/access/functions/get-is-owner.js.map +1 -0
  52. package/access/functions/get-user-keys.d.ts +2 -0
  53. package/access/functions/get-user-keys.js +10 -0
  54. package/access/functions/get-user-keys.js.map +1 -0
  55. package/access/functions/index.d.ts +3 -0
  56. package/access/functions/index.js +20 -0
  57. package/access/functions/index.js.map +1 -0
  58. package/access/functions/register-scope.d.ts +8 -0
  59. package/access/functions/register-scope.js +82 -0
  60. package/access/functions/register-scope.js.map +1 -0
  61. package/access/index.d.ts +5 -0
  62. package/access/index.js +22 -0
  63. package/access/index.js.map +1 -0
  64. package/access/interfaces/index.d.ts +2 -0
  65. package/access/interfaces/index.js +19 -0
  66. package/access/interfaces/index.js.map +1 -0
  67. package/access/interfaces/scope-service-registry.d.ts +6 -0
  68. package/access/interfaces/scope-service-registry.js +3 -0
  69. package/access/interfaces/scope-service-registry.js.map +1 -0
  70. package/access/interfaces/scope-service.d.ts +12 -0
  71. package/access/interfaces/scope-service.js +3 -0
  72. package/access/interfaces/scope-service.js.map +1 -0
  73. package/access/models/scope-context.d.ts +4 -0
  74. package/access/models/scope-context.js +27 -0
  75. package/access/models/scope-context.js.map +1 -0
  76. package/access/models/scope-keys-update.d.ts +7 -0
  77. package/access/models/scope-keys-update.js +38 -0
  78. package/access/models/scope-keys-update.js.map +1 -0
  79. package/access/models/scope-owner.d.ts +5 -0
  80. package/access/models/scope-owner.js +32 -0
  81. package/access/models/scope-owner.js.map +1 -0
  82. package/access/models/scope-user-mapped.d.ts +8 -0
  83. package/access/models/scope-user-mapped.js +42 -0
  84. package/access/models/scope-user-mapped.js.map +1 -0
  85. package/access/models/scope-user.d.ts +9 -0
  86. package/access/models/scope-user.js +49 -0
  87. package/access/models/scope-user.js.map +1 -0
  88. package/access/queries/scope-group-user.query.d.ts +1 -0
  89. package/access/queries/scope-group-user.query.js +26 -0
  90. package/access/queries/scope-group-user.query.js.map +1 -0
  91. package/access/queries/scope-group.query.d.ts +1 -0
  92. package/access/queries/scope-group.query.js +12 -0
  93. package/access/queries/scope-group.query.js.map +1 -0
  94. package/access/services/index.d.ts +6 -0
  95. package/access/services/index.js +23 -0
  96. package/access/services/index.js.map +1 -0
  97. package/access/services/scope-access.service.d.ts +11 -0
  98. package/access/services/scope-access.service.js +87 -0
  99. package/access/services/scope-access.service.js.map +1 -0
  100. package/access/services/scope-group-user.service.d.ts +8 -0
  101. package/access/services/scope-group-user.service.js +49 -0
  102. package/access/services/scope-group-user.service.js.map +1 -0
  103. package/access/services/scope-group.service.d.ts +7 -0
  104. package/access/services/scope-group.service.js +38 -0
  105. package/access/services/scope-group.service.js.map +1 -0
  106. package/access/services/scope-key.service.d.ts +9 -0
  107. package/access/services/scope-key.service.js +52 -0
  108. package/access/services/scope-key.service.js.map +1 -0
  109. package/access/services/scope-owner.service.d.ts +7 -0
  110. package/access/services/scope-owner.service.js +35 -0
  111. package/access/services/scope-owner.service.js.map +1 -0
  112. package/access/services/scope-service.d.ts +10 -0
  113. package/access/services/scope-service.js +52 -0
  114. package/access/services/scope-service.js.map +1 -0
  115. package/cache/cache-cleaner.js +1 -0
  116. package/cache/cache-cleaner.js.map +1 -0
  117. package/cache/cache.controller.js +1 -0
  118. package/cache/cache.controller.js.map +1 -0
  119. package/cache/constants.js +1 -0
  120. package/cache/constants.js.map +1 -0
  121. package/cache/decorators/index.js +1 -0
  122. package/cache/decorators/index.js.map +1 -0
  123. package/cache/decorators/inject-cache.decorator.js +1 -0
  124. package/cache/decorators/inject-cache.decorator.js.map +1 -0
  125. package/cache/decorators/key-value.js +1 -0
  126. package/cache/decorators/key-value.js.map +1 -0
  127. package/cache/functions/get-cache.js +1 -0
  128. package/cache/functions/get-cache.js.map +1 -0
  129. package/cache/functions/get-key.-handle.js +1 -0
  130. package/cache/functions/get-key.-handle.js.map +1 -0
  131. package/cache/index.js +1 -0
  132. package/cache/index.js.map +1 -0
  133. package/cache/interfaces/cache-instance.js +1 -0
  134. package/cache/interfaces/cache-instance.js.map +1 -0
  135. package/cache/interfaces/cache-key-options.js +1 -0
  136. package/cache/interfaces/cache-key-options.js.map +1 -0
  137. package/cache/interfaces/cache-options.js +1 -0
  138. package/cache/interfaces/cache-options.js.map +1 -0
  139. package/cache/interfaces/get-key-value-handle.js +1 -0
  140. package/cache/interfaces/get-key-value-handle.js.map +1 -0
  141. package/cache/interfaces/index.js +1 -0
  142. package/cache/interfaces/index.js.map +1 -0
  143. package/command/constants.js +1 -0
  144. package/command/constants.js.map +1 -0
  145. package/command/decorators/index.js +1 -0
  146. package/command/decorators/index.js.map +1 -0
  147. package/command/decorators/only-modify.decorator.js +1 -0
  148. package/command/decorators/only-modify.decorator.js.map +1 -0
  149. package/command/decorators/post-action.decorator.js +1 -0
  150. package/command/decorators/post-action.decorator.js.map +1 -0
  151. package/command/decorators/post-content.decorator.js +1 -0
  152. package/command/decorators/post-content.decorator.js.map +1 -0
  153. package/command/decorators/read-only.decorator.js +1 -0
  154. package/command/decorators/read-only.decorator.js.map +1 -0
  155. package/command/decorators/remove-action.decorator.js +1 -0
  156. package/command/decorators/remove-action.decorator.js.map +1 -0
  157. package/command/decorators/remove-content.decorator.js +1 -0
  158. package/command/decorators/remove-content.decorator.js.map +1 -0
  159. package/command/functions/execute-post.js +7 -7
  160. package/command/functions/execute-post.js.map +1 -0
  161. package/command/functions/execute-remove.js +1 -0
  162. package/command/functions/execute-remove.js.map +1 -0
  163. package/command/interfaces/command-property.js +1 -0
  164. package/command/interfaces/command-property.js.map +1 -0
  165. package/command/interfaces/index.js +1 -0
  166. package/command/interfaces/index.js.map +1 -0
  167. package/command/interfaces/post-action-options.js +1 -0
  168. package/command/interfaces/post-action-options.js.map +1 -0
  169. package/command/interfaces/post-content.js +1 -0
  170. package/command/interfaces/post-content.js.map +1 -0
  171. package/command/interfaces/remove-aciton-options.js +1 -0
  172. package/command/interfaces/remove-aciton-options.js.map +1 -0
  173. package/command/interfaces/remove-content.js +1 -0
  174. package/command/interfaces/remove-content.js.map +1 -0
  175. package/command/services/post-action-builder.js +13 -2
  176. package/command/services/post-action-builder.js.map +1 -0
  177. package/command/services/remove-action-builder.js +13 -3
  178. package/command/services/remove-action-builder.js.map +1 -0
  179. package/command/utils/deep-merge-keep-undefined.js +1 -0
  180. package/command/utils/deep-merge-keep-undefined.js.map +1 -0
  181. package/common/entities/base-entity.d.ts +1 -1
  182. package/common/entities/base-entity.js +3 -0
  183. package/common/entities/base-entity.js.map +1 -0
  184. package/common/index.js +1 -0
  185. package/common/index.js.map +1 -0
  186. package/common/interfaces/enum/index.js +1 -0
  187. package/common/interfaces/enum/index.js.map +1 -0
  188. package/common/interfaces/enum/object-type.d.ts +2 -1
  189. package/common/interfaces/enum/object-type.js +2 -0
  190. package/common/interfaces/enum/object-type.js.map +1 -0
  191. package/common/interfaces/enum/property-type.js +1 -0
  192. package/common/interfaces/enum/property-type.js.map +1 -0
  193. package/common/interfaces/enum/request-status.js +1 -0
  194. package/common/interfaces/enum/request-status.js.map +1 -0
  195. package/common/interfaces/get-type-callback.js +1 -0
  196. package/common/interfaces/get-type-callback.js.map +1 -0
  197. package/common/interfaces/index.js +1 -0
  198. package/common/interfaces/index.js.map +1 -0
  199. package/common/models/executed-response.js +1 -0
  200. package/common/models/executed-response.js.map +1 -0
  201. package/controllers/constants/controller-transaction.d.ts +2 -0
  202. package/controllers/constants/controller-transaction.js +6 -0
  203. package/controllers/constants/controller-transaction.js.map +1 -0
  204. package/controllers/constants.js +1 -0
  205. package/controllers/constants.js.map +1 -0
  206. package/controllers/controller.controller.d.ts +1 -1
  207. package/controllers/controller.controller.js +5 -4
  208. package/controllers/controller.controller.js.map +1 -0
  209. package/controllers/decorators/actions/action-content.decorator.js +1 -0
  210. package/controllers/decorators/actions/action-content.decorator.js.map +1 -0
  211. package/controllers/decorators/actions/action.decorator.js +1 -0
  212. package/controllers/decorators/actions/action.decorator.js.map +1 -0
  213. package/controllers/decorators/actions/index.js +1 -0
  214. package/controllers/decorators/actions/index.js.map +1 -0
  215. package/controllers/decorators/controller.decorator.js +9 -0
  216. package/controllers/decorators/controller.decorator.js.map +1 -0
  217. package/controllers/decorators/http-methods/custom-response.decorator.js +1 -0
  218. package/controllers/decorators/http-methods/custom-response.decorator.js.map +1 -0
  219. package/controllers/decorators/http-methods/delete.decorator.js +1 -0
  220. package/controllers/decorators/http-methods/delete.decorator.js.map +1 -0
  221. package/controllers/decorators/http-methods/from-body.decorator.js +1 -0
  222. package/controllers/decorators/http-methods/from-body.decorator.js.map +1 -0
  223. package/controllers/decorators/http-methods/from-headers.decorator.js +1 -0
  224. package/controllers/decorators/http-methods/from-headers.decorator.js.map +1 -0
  225. package/controllers/decorators/http-methods/from-params.decorator.js +1 -0
  226. package/controllers/decorators/http-methods/from-params.decorator.js.map +1 -0
  227. package/controllers/decorators/http-methods/from-query.decorator.js +1 -0
  228. package/controllers/decorators/http-methods/from-query.decorator.js.map +1 -0
  229. package/controllers/decorators/http-methods/get.decorator.js +1 -0
  230. package/controllers/decorators/http-methods/get.decorator.js.map +1 -0
  231. package/controllers/decorators/http-methods/http-req.decorator.js +1 -0
  232. package/controllers/decorators/http-methods/http-req.decorator.js.map +1 -0
  233. package/controllers/decorators/http-methods/index.js +1 -0
  234. package/controllers/decorators/http-methods/index.js.map +1 -0
  235. package/controllers/decorators/http-methods/patch.decorator.js +1 -0
  236. package/controllers/decorators/http-methods/patch.decorator.js.map +1 -0
  237. package/controllers/decorators/http-methods/post.decorator.js +1 -0
  238. package/controllers/decorators/http-methods/post.decorator.js.map +1 -0
  239. package/controllers/decorators/http-methods/put.decorator.js +1 -0
  240. package/controllers/decorators/http-methods/put.decorator.js.map +1 -0
  241. package/controllers/decorators/http-methods/response-type.decorator.js +1 -0
  242. package/controllers/decorators/http-methods/response-type.decorator.js.map +1 -0
  243. package/controllers/decorators/index.d.ts +1 -0
  244. package/controllers/decorators/index.js +2 -0
  245. package/controllers/decorators/index.js.map +1 -0
  246. package/controllers/decorators/no-auth.decorator.js +1 -0
  247. package/controllers/decorators/no-auth.decorator.js.map +1 -0
  248. package/controllers/decorators/request-context.decorator.js +1 -0
  249. package/controllers/decorators/request-context.decorator.js.map +1 -0
  250. package/controllers/decorators/session.decorator.js +1 -0
  251. package/controllers/decorators/session.decorator.js.map +1 -0
  252. package/controllers/decorators/transaction.decorator.d.ts +7 -0
  253. package/controllers/decorators/transaction.decorator.js +23 -0
  254. package/controllers/decorators/transaction.decorator.js.map +1 -0
  255. package/controllers/index.js +1 -0
  256. package/controllers/index.js.map +1 -0
  257. package/controllers/interfaces/action-options.js +1 -0
  258. package/controllers/interfaces/action-options.js.map +1 -0
  259. package/controllers/interfaces/content-options.js +1 -0
  260. package/controllers/interfaces/content-options.js.map +1 -0
  261. package/controllers/interfaces/controller-object.d.ts +1 -0
  262. package/controllers/interfaces/controller-object.js +1 -0
  263. package/controllers/interfaces/controller-object.js.map +1 -0
  264. package/controllers/interfaces/controller-options.d.ts +1 -0
  265. package/controllers/interfaces/controller-options.js +1 -0
  266. package/controllers/interfaces/controller-options.js.map +1 -0
  267. package/controllers/interfaces/controller-property.d.ts +3 -0
  268. package/controllers/interfaces/controller-property.js +1 -0
  269. package/controllers/interfaces/controller-property.js.map +1 -0
  270. package/controllers/interfaces/enum/index.js +1 -0
  271. package/controllers/interfaces/enum/index.js.map +1 -0
  272. package/controllers/interfaces/enum/request-interceptor.js +1 -0
  273. package/controllers/interfaces/enum/request-interceptor.js.map +1 -0
  274. package/controllers/interfaces/get-only-data.js +1 -0
  275. package/controllers/interfaces/get-only-data.js.map +1 -0
  276. package/controllers/interfaces/index.js +1 -0
  277. package/controllers/interfaces/index.js.map +1 -0
  278. package/controllers/interfaces/on-before-validation-data.js +1 -0
  279. package/controllers/interfaces/on-before-validation-data.js.map +1 -0
  280. package/controllers/interfaces/response-options.js +1 -0
  281. package/controllers/interfaces/response-options.js.map +1 -0
  282. package/controllers/services/default-action-builder.js +43 -5
  283. package/controllers/services/default-action-builder.js.map +1 -0
  284. package/controllers/services/restful-action-builder.d.ts +1 -0
  285. package/controllers/services/restful-action-builder.js +31 -0
  286. package/controllers/services/restful-action-builder.js.map +1 -0
  287. package/core/core.controller.d.ts +2 -3
  288. package/core/core.controller.js +20 -11
  289. package/core/core.controller.js.map +1 -0
  290. package/core/functions/bootstrap.js +1 -0
  291. package/core/functions/bootstrap.js.map +1 -0
  292. package/core/functions/create-action.js +2 -3
  293. package/core/functions/create-action.js.map +1 -0
  294. package/core/functions/create-interceptor.js +3 -2
  295. package/core/functions/create-interceptor.js.map +1 -0
  296. package/core/functions/format-message.js +1 -0
  297. package/core/functions/format-message.js.map +1 -0
  298. package/core/functions/get-action-path.js +1 -0
  299. package/core/functions/get-action-path.js.map +1 -0
  300. package/core/functions/get-env.js +1 -0
  301. package/core/functions/get-env.js.map +1 -0
  302. package/core/functions/get-node-key.js +1 -0
  303. package/core/functions/get-node-key.js.map +1 -0
  304. package/core/functions/get-other-types.js +1 -0
  305. package/core/functions/get-other-types.js.map +1 -0
  306. package/core/functions/resolve-action-transactional.d.ts +3 -0
  307. package/core/functions/resolve-action-transactional.js +10 -0
  308. package/core/functions/resolve-action-transactional.js.map +1 -0
  309. package/core/index.js +1 -0
  310. package/core/index.js.map +1 -0
  311. package/core/interfaces/action-def.d.ts +2 -5
  312. package/core/interfaces/action-def.js +1 -0
  313. package/core/interfaces/action-def.js.map +1 -0
  314. package/core/interfaces/action-docs.d.ts +18 -3
  315. package/core/interfaces/action-docs.js +1 -0
  316. package/core/interfaces/action-docs.js.map +1 -0
  317. package/core/interfaces/action-handle.d.ts +5 -0
  318. package/core/interfaces/action-handle.js +3 -0
  319. package/core/interfaces/action-handle.js.map +1 -0
  320. package/core/interfaces/core-options.d.ts +1 -0
  321. package/core/interfaces/core-options.js +1 -0
  322. package/core/interfaces/core-options.js.map +1 -0
  323. package/core/interfaces/docs-options.js +1 -0
  324. package/core/interfaces/docs-options.js.map +1 -0
  325. package/core/interfaces/enum/connect-type.js +1 -0
  326. package/core/interfaces/enum/connect-type.js.map +1 -0
  327. package/core/interfaces/enum/index.js +1 -0
  328. package/core/interfaces/enum/index.js.map +1 -0
  329. package/core/interfaces/format-message-options.js +1 -0
  330. package/core/interfaces/format-message-options.js.map +1 -0
  331. package/core/interfaces/forms-options.js +1 -0
  332. package/core/interfaces/forms-options.js.map +1 -0
  333. package/core/interfaces/index.js +1 -0
  334. package/core/interfaces/index.js.map +1 -0
  335. package/core/interfaces/interceptor.d.ts +1 -1
  336. package/core/interfaces/interceptor.js +1 -0
  337. package/core/interfaces/interceptor.js.map +1 -0
  338. package/core/interfaces/locale-options.js +1 -0
  339. package/core/interfaces/locale-options.js.map +1 -0
  340. package/core/interfaces/mapper.js +1 -0
  341. package/core/interfaces/mapper.js.map +1 -0
  342. package/core/interfaces/object-docs.js +1 -0
  343. package/core/interfaces/object-docs.js.map +1 -0
  344. package/core/interfaces/object.d.ts +4 -2
  345. package/core/interfaces/object.js +1 -0
  346. package/core/interfaces/object.js.map +1 -0
  347. package/core/interfaces/pending-action.js +1 -0
  348. package/core/interfaces/pending-action.js.map +1 -0
  349. package/core/interfaces/property-docs.js +1 -0
  350. package/core/interfaces/property-docs.js.map +1 -0
  351. package/core/interfaces/property.js +1 -0
  352. package/core/interfaces/property.js.map +1 -0
  353. package/core/interfaces/request-callback-handle.js +1 -0
  354. package/core/interfaces/request-callback-handle.js.map +1 -0
  355. package/core/interfaces/request-callback.js +1 -0
  356. package/core/interfaces/request-callback.js.map +1 -0
  357. package/core/interfaces/request-callbacks.js +1 -0
  358. package/core/interfaces/request-callbacks.js.map +1 -0
  359. package/core/interfaces/request-context.d.ts +2 -2
  360. package/core/interfaces/request-context.js +1 -0
  361. package/core/interfaces/request-context.js.map +1 -0
  362. package/core/interfaces/request-data.js +1 -0
  363. package/core/interfaces/request-data.js.map +1 -0
  364. package/core/interfaces/router-options.js +1 -0
  365. package/core/interfaces/router-options.js.map +1 -0
  366. package/core/interfaces/sanitizer.js +1 -0
  367. package/core/interfaces/sanitizer.js.map +1 -0
  368. package/core/interfaces/storage-options.js +1 -0
  369. package/core/interfaces/storage-options.js.map +1 -0
  370. package/core/interfaces/translations-options.js +1 -0
  371. package/core/interfaces/translations-options.js.map +1 -0
  372. package/core/interfaces/transport-options.js +1 -0
  373. package/core/interfaces/transport-options.js.map +1 -0
  374. package/core/services/context-builder.js +1 -0
  375. package/core/services/context-builder.js.map +1 -0
  376. package/core/services/locale-service.js +1 -0
  377. package/core/services/locale-service.js.map +1 -0
  378. package/core/services/node-control.service.js +1 -0
  379. package/core/services/node-control.service.js.map +1 -0
  380. package/core/services/object-loader.js +1 -0
  381. package/core/services/object-loader.js.map +1 -0
  382. package/core/services/request-executor.d.ts +8 -0
  383. package/core/services/request-executor.js +89 -0
  384. package/core/services/request-executor.js.map +1 -0
  385. package/core/services/request-router.js +4 -3
  386. package/core/services/request-router.js.map +1 -0
  387. package/database/contexts/index.js +1 -0
  388. package/database/contexts/index.js.map +1 -0
  389. package/database/contexts/transaction-context.js +1 -0
  390. package/database/contexts/transaction-context.js.map +1 -0
  391. package/database/database.controller.d.ts +3 -1
  392. package/database/database.controller.js +15 -15
  393. package/database/database.controller.js.map +1 -0
  394. package/database/decorators/column.decorator.js +1 -0
  395. package/database/decorators/column.decorator.js.map +1 -0
  396. package/database/decorators/entity.decorator.d.ts +3 -1
  397. package/database/decorators/entity.decorator.js +15 -5
  398. package/database/decorators/entity.decorator.js.map +1 -0
  399. package/database/decorators/external-column.decorator.d.ts +17 -0
  400. package/database/decorators/external-column.decorator.js +30 -0
  401. package/database/decorators/external-column.decorator.js.map +1 -0
  402. package/database/decorators/id-generated.decorator.js +1 -0
  403. package/database/decorators/id-generated.decorator.js.map +1 -0
  404. package/database/decorators/id.decorator.js +1 -0
  405. package/database/decorators/id.decorator.js.map +1 -0
  406. package/database/decorators/index.d.ts +2 -0
  407. package/database/decorators/index.js +3 -0
  408. package/database/decorators/index.js.map +1 -0
  409. package/database/decorators/inject-data-source.decorator.js +1 -0
  410. package/database/decorators/inject-data-source.decorator.js.map +1 -0
  411. package/database/decorators/inject-repository.decorator.js +1 -0
  412. package/database/decorators/inject-repository.decorator.js.map +1 -0
  413. package/database/decorators/jsonb-index.decorator.d.ts +21 -0
  414. package/database/decorators/jsonb-index.decorator.js +23 -0
  415. package/database/decorators/jsonb-index.decorator.js.map +1 -0
  416. package/database/decorators/protect-context-column.decorator.js +1 -0
  417. package/database/decorators/protect-context-column.decorator.js.map +1 -0
  418. package/database/decorators/protect-entity.decorator.js +1 -0
  419. package/database/decorators/protect-entity.decorator.js.map +1 -0
  420. package/database/decorators/protect-key-column.decorator.js +1 -0
  421. package/database/decorators/protect-key-column.decorator.js.map +1 -0
  422. package/database/decorators/protect-target-column.decorator.js +1 -0
  423. package/database/decorators/protect-target-column.decorator.js.map +1 -0
  424. package/database/decorators/protected-entity.decorator.js +1 -0
  425. package/database/decorators/protected-entity.decorator.js.map +1 -0
  426. package/database/decorators/relation.decorator.d.ts +2 -2
  427. package/database/decorators/relation.decorator.js +1 -0
  428. package/database/decorators/relation.decorator.js.map +1 -0
  429. package/database/decorators/virtual-column.decorator.js +1 -0
  430. package/database/decorators/virtual-column.decorator.js.map +1 -0
  431. package/database/{environment.d.ts → env.d.ts} +3 -1
  432. package/database/{environment.js → env.js} +4 -2
  433. package/database/env.js.map +1 -0
  434. package/database/exports/index.js +1 -0
  435. package/database/exports/index.js.map +1 -0
  436. package/database/exports/typeorm.js +1 -0
  437. package/database/exports/typeorm.js.map +1 -0
  438. package/database/extensions/select-query-builder.d.ts +1 -5
  439. package/database/extensions/select-query-builder.js +1 -0
  440. package/database/extensions/select-query-builder.js.map +1 -0
  441. package/database/functions/column-decorator.js +3 -0
  442. package/database/functions/column-decorator.js.map +1 -0
  443. package/database/functions/create-entity.js +1 -0
  444. package/database/functions/create-entity.js.map +1 -0
  445. package/database/functions/create-new-class.js +1 -0
  446. package/database/functions/create-new-class.js.map +1 -0
  447. package/database/functions/entity-decorator.js +1 -0
  448. package/database/functions/entity-decorator.js.map +1 -0
  449. package/database/functions/execute-if-not-exists-column.js +1 -0
  450. package/database/functions/execute-if-not-exists-column.js.map +1 -0
  451. package/database/functions/execute-if-not-exists-table.js +1 -0
  452. package/database/functions/execute-if-not-exists-table.js.map +1 -0
  453. package/database/functions/find-relation.d.ts +2 -1
  454. package/database/functions/find-relation.js +4 -3
  455. package/database/functions/find-relation.js.map +1 -0
  456. package/database/functions/generate-entity-id.d.ts +2 -0
  457. package/database/functions/{generate-id.js → generate-entity-id.js} +3 -2
  458. package/database/functions/generate-entity-id.js.map +1 -0
  459. package/database/functions/get-column-type.js +1 -0
  460. package/database/functions/get-column-type.js.map +1 -0
  461. package/database/functions/get-id-property.js +1 -0
  462. package/database/functions/get-id-property.js.map +1 -0
  463. package/database/functions/get-name-by-strategy.js +1 -0
  464. package/database/functions/get-name-by-strategy.js.map +1 -0
  465. package/database/functions/get-primitive-type.js +1 -0
  466. package/database/functions/get-primitive-type.js.map +1 -0
  467. package/database/functions/get-relations.d.ts +1 -1
  468. package/database/functions/get-relations.js +1 -0
  469. package/database/functions/get-relations.js.map +1 -0
  470. package/database/functions/has-update.js +1 -0
  471. package/database/functions/has-update.js.map +1 -0
  472. package/database/functions/inject-repository-handle.js +1 -0
  473. package/database/functions/inject-repository-handle.js.map +1 -0
  474. package/database/functions/object-to-jsonb.js +1 -0
  475. package/database/functions/object-to-jsonb.js.map +1 -0
  476. package/database/functions/register-column.js +1 -0
  477. package/database/functions/register-column.js.map +1 -0
  478. package/database/functions/register-entity.js +1 -0
  479. package/database/functions/register-entity.js.map +1 -0
  480. package/database/functions/register-generated-id.js +1 -0
  481. package/database/functions/register-generated-id.js.map +1 -0
  482. package/database/functions/register-id.js +1 -0
  483. package/database/functions/register-id.js.map +1 -0
  484. package/database/functions/register-relation.js +1 -0
  485. package/database/functions/register-relation.js.map +1 -0
  486. package/database/functions/relation-decorator.js +3 -2
  487. package/database/functions/relation-decorator.js.map +1 -0
  488. package/database/functions/use-protector.js +2 -1
  489. package/database/functions/use-protector.js.map +1 -0
  490. package/database/functions/use-repository.js +1 -0
  491. package/database/functions/use-repository.js.map +1 -0
  492. package/database/functions/use-transaction.d.ts +1 -0
  493. package/database/functions/use-transaction.js +3 -6
  494. package/database/functions/use-transaction.js.map +1 -0
  495. package/database/index.js +1 -0
  496. package/database/index.js.map +1 -0
  497. package/database/interfaces/base-columns-name-override.js +1 -0
  498. package/database/interfaces/base-columns-name-override.js.map +1 -0
  499. package/database/interfaces/column-def.js +1 -0
  500. package/database/interfaces/column-def.js.map +1 -0
  501. package/database/interfaces/connection.options.js +1 -0
  502. package/database/interfaces/connection.options.js.map +1 -0
  503. package/database/interfaces/direact-alias.js +1 -0
  504. package/database/interfaces/direact-alias.js.map +1 -0
  505. package/database/interfaces/entity-dto-object.d.ts +7 -0
  506. package/database/interfaces/entity-dto-object.js +3 -0
  507. package/database/interfaces/entity-dto-object.js.map +1 -0
  508. package/database/interfaces/entity-object.d.ts +1 -0
  509. package/database/interfaces/entity-object.js +1 -0
  510. package/database/interfaces/entity-object.js.map +1 -0
  511. package/database/interfaces/entity-options.js +1 -0
  512. package/database/interfaces/entity-options.js.map +1 -0
  513. package/database/interfaces/entity-property.d.ts +14 -0
  514. package/database/interfaces/entity-property.js +1 -0
  515. package/database/interfaces/entity-property.js.map +1 -0
  516. package/database/interfaces/enum/column-def-type.js +1 -0
  517. package/database/interfaces/enum/column-def-type.js.map +1 -0
  518. package/database/interfaces/enum/index.js +1 -0
  519. package/database/interfaces/enum/index.js.map +1 -0
  520. package/database/interfaces/enum/naming-strategy-type.js +1 -0
  521. package/database/interfaces/enum/naming-strategy-type.js.map +1 -0
  522. package/database/interfaces/enum/nano-id-alphabet-type.js +1 -0
  523. package/database/interfaces/enum/nano-id-alphabet-type.js.map +1 -0
  524. package/database/interfaces/enum/order-by-direction.js +1 -0
  525. package/database/interfaces/enum/order-by-direction.js.map +1 -0
  526. package/database/interfaces/enum/primary-strategy-type.js +1 -0
  527. package/database/interfaces/enum/primary-strategy-type.js.map +1 -0
  528. package/database/interfaces/enum/relation-path-type.js +1 -0
  529. package/database/interfaces/enum/relation-path-type.js.map +1 -0
  530. package/database/interfaces/execute-callback.js +1 -0
  531. package/database/interfaces/execute-callback.js.map +1 -0
  532. package/database/interfaces/id-column-def.js +1 -0
  533. package/database/interfaces/id-column-def.js.map +1 -0
  534. package/database/interfaces/index.js +1 -0
  535. package/database/interfaces/index.js.map +1 -0
  536. package/database/interfaces/inverse-alias.js +1 -0
  537. package/database/interfaces/inverse-alias.js.map +1 -0
  538. package/database/interfaces/nano-id-column-options.js +1 -0
  539. package/database/interfaces/nano-id-column-options.js.map +1 -0
  540. package/database/interfaces/path.d.ts +6 -2
  541. package/database/interfaces/path.js +1 -0
  542. package/database/interfaces/path.js.map +1 -0
  543. package/database/interfaces/protector.js +1 -0
  544. package/database/interfaces/protector.js.map +1 -0
  545. package/database/interfaces/register-one-to-many-handle.js +1 -0
  546. package/database/interfaces/register-one-to-many-handle.js.map +1 -0
  547. package/database/interfaces/register-one-to-many.js +1 -0
  548. package/database/interfaces/register-one-to-many.js.map +1 -0
  549. package/database/interfaces/relation-def.js +1 -0
  550. package/database/interfaces/relation-def.js.map +1 -0
  551. package/database/interfaces/relation-path.js +1 -0
  552. package/database/interfaces/relation-path.js.map +1 -0
  553. package/database/interfaces/relation.options.js +1 -0
  554. package/database/interfaces/relation.options.js.map +1 -0
  555. package/database/interfaces/repository.js +1 -0
  556. package/database/interfaces/repository.js.map +1 -0
  557. package/database/interfaces/virtual-select.d.ts +4 -0
  558. package/database/interfaces/virtual-select.js +3 -0
  559. package/database/interfaces/virtual-select.js.map +1 -0
  560. package/database/migrations/1737637321043-UUIDVarcharMigration.js +3 -2
  561. package/database/migrations/1737637321043-UUIDVarcharMigration.js.map +1 -0
  562. package/database/migrations/use-uuid-varchar-migration.js +3 -2
  563. package/database/migrations/use-uuid-varchar-migration.js.map +1 -0
  564. package/database/services/jsonb-index-creator.d.ts +23 -0
  565. package/database/services/jsonb-index-creator.js +156 -0
  566. package/database/services/jsonb-index-creator.js.map +1 -0
  567. package/database/services/paths-builder.js +1 -0
  568. package/database/services/paths-builder.js.map +1 -0
  569. package/database/services/protect-builder.d.ts +3 -2
  570. package/database/services/protect-builder.js +3 -2
  571. package/database/services/protect-builder.js.map +1 -0
  572. package/database/services/repository.service.d.ts +1 -1
  573. package/database/services/repository.service.js +4 -6
  574. package/database/services/repository.service.js.map +1 -0
  575. package/docs/controllers/controllers.d.ts +2 -0
  576. package/docs/controllers/controllers.js +6 -0
  577. package/docs/controllers/controllers.js.map +1 -0
  578. package/docs/controllers/docs.controller.d.ts +7 -0
  579. package/docs/controllers/docs.controller.js +58 -0
  580. package/docs/controllers/docs.controller.js.map +1 -0
  581. package/docs/docs.d.ts +10 -0
  582. package/docs/docs.js +10 -0
  583. package/docs/docs.js.map +1 -0
  584. package/docs/docs.module.d.ts +6 -0
  585. package/docs/docs.module.js +70 -0
  586. package/docs/docs.module.js.map +1 -0
  587. package/docs/entities/docs-controller-action.entity.d.ts +23 -0
  588. package/docs/entities/docs-controller-action.entity.js +148 -0
  589. package/docs/entities/docs-controller-action.entity.js.map +1 -0
  590. package/docs/entities/docs-controller.entity.d.ts +9 -0
  591. package/docs/entities/docs-controller.entity.js +54 -0
  592. package/docs/entities/docs-controller.entity.js.map +1 -0
  593. package/docs/entities/docs-version.entity.d.ts +10 -0
  594. package/docs/entities/docs-version.entity.js +59 -0
  595. package/docs/entities/docs-version.entity.js.map +1 -0
  596. package/docs/entities/entities.d.ts +4 -0
  597. package/docs/entities/entities.js +12 -0
  598. package/docs/entities/entities.js.map +1 -0
  599. package/docs/models/docs-model-property-validator.d.ts +11 -0
  600. package/docs/models/docs-model-property-validator.js +53 -0
  601. package/docs/models/docs-model-property-validator.js.map +1 -0
  602. package/docs/models/docs-model-property.d.ts +11 -0
  603. package/docs/models/docs-model-property.js +55 -0
  604. package/docs/models/docs-model-property.js.map +1 -0
  605. package/docs/models/docs-model.d.ts +7 -0
  606. package/docs/models/docs-model.js +43 -0
  607. package/docs/models/docs-model.js.map +1 -0
  608. package/docs/queries/docs-controller-action.query.d.ts +1 -0
  609. package/docs/queries/docs-controller-action.query.js +10 -0
  610. package/docs/queries/docs-controller-action.query.js.map +1 -0
  611. package/docs/queries/docs-controller.query.d.ts +1 -0
  612. package/docs/queries/docs-controller.query.js +10 -0
  613. package/docs/queries/docs-controller.query.js.map +1 -0
  614. package/docs/queries/docs-model.query.d.ts +1 -0
  615. package/docs/queries/docs-model.query.js +17 -0
  616. package/docs/queries/docs-model.query.js.map +1 -0
  617. package/docs/queries/docs-version.query.d.ts +1 -0
  618. package/docs/queries/docs-version.query.js +10 -0
  619. package/docs/queries/docs-version.query.js.map +1 -0
  620. package/docs/services/docs-controller-action.service.d.ts +19 -0
  621. package/docs/services/docs-controller-action.service.js +106 -0
  622. package/docs/services/docs-controller-action.service.js.map +1 -0
  623. package/docs/services/docs-controller.service.d.ts +7 -0
  624. package/docs/services/docs-controller.service.js +47 -0
  625. package/docs/services/docs-controller.service.js.map +1 -0
  626. package/docs/services/docs-version.service.d.ts +7 -0
  627. package/docs/services/docs-version.service.js +51 -0
  628. package/docs/services/docs-version.service.js.map +1 -0
  629. package/docs/services/docs.service.d.ts +10 -0
  630. package/docs/services/docs.service.js +48 -0
  631. package/docs/services/docs.service.js.map +1 -0
  632. package/forms/entities/form.js +1 -0
  633. package/forms/entities/form.js.map +1 -0
  634. package/forms/entities/property.js +1 -0
  635. package/forms/entities/property.js.map +1 -0
  636. package/forms/forms.controller.js +1 -0
  637. package/forms/forms.controller.js.map +1 -0
  638. package/forms/interfaces/form-item.js +1 -0
  639. package/forms/interfaces/form-item.js.map +1 -0
  640. package/forms/interfaces/form.js +1 -0
  641. package/forms/interfaces/form.js.map +1 -0
  642. package/forms/interfaces/property.js +1 -0
  643. package/forms/interfaces/property.js.map +1 -0
  644. package/forms/migrations/1725969116484-CreateFormsTables.js +1 -0
  645. package/forms/migrations/1725969116484-CreateFormsTables.js.map +1 -0
  646. package/forms/models/form-load.request.js +1 -0
  647. package/forms/models/form-load.request.js.map +1 -0
  648. package/forms/queries/form.query.d.ts +1 -1
  649. package/forms/queries/form.query.js +1 -0
  650. package/forms/queries/form.query.js.map +1 -0
  651. package/forms/queries/property.query.d.ts +1 -1
  652. package/forms/queries/property.query.js +1 -0
  653. package/forms/queries/property.query.js.map +1 -0
  654. package/forms/requests/form.request.js +1 -0
  655. package/forms/requests/form.request.js.map +1 -0
  656. package/forms/requests/property.request.js +1 -0
  657. package/forms/requests/property.request.js.map +1 -0
  658. package/forms/services/form.service.js +1 -0
  659. package/forms/services/form.service.js.map +1 -0
  660. package/forms/services/property.service.js +1 -0
  661. package/forms/services/property.service.js.map +1 -0
  662. package/forms/utils/build-form-validator.js +1 -0
  663. package/forms/utils/build-form-validator.js.map +1 -0
  664. package/forms/utils/get-form-items.js +1 -0
  665. package/forms/utils/get-form-items.js.map +1 -0
  666. package/global.d.ts +3 -1
  667. package/global.js +6 -2
  668. package/global.js.map +1 -0
  669. package/http/http.controller.d.ts +3 -6
  670. package/http/http.controller.js +4 -2
  671. package/http/http.controller.js.map +1 -0
  672. package/http/index.js +1 -0
  673. package/http/index.js.map +1 -0
  674. package/http/interfaces/csrf.options.js +1 -0
  675. package/http/interfaces/csrf.options.js.map +1 -0
  676. package/http/interfaces/http-request.js +1 -0
  677. package/http/interfaces/http-request.js.map +1 -0
  678. package/http/interfaces/http-response.js +1 -0
  679. package/http/interfaces/http-response.js.map +1 -0
  680. package/http/interfaces/http-settings.js +1 -0
  681. package/http/interfaces/http-settings.js.map +1 -0
  682. package/http/interfaces/http-use.js +1 -0
  683. package/http/interfaces/http-use.js.map +1 -0
  684. package/http/interfaces/index.js +1 -0
  685. package/http/interfaces/index.js.map +1 -0
  686. package/http/interfaces/route.js +1 -0
  687. package/http/interfaces/route.js.map +1 -0
  688. package/index.d.ts +3 -1
  689. package/index.js +3 -6
  690. package/index.js.map +1 -0
  691. package/jobs/constants.js +1 -0
  692. package/jobs/constants.js.map +1 -0
  693. package/jobs/decorators/index.js +1 -0
  694. package/jobs/decorators/index.js.map +1 -0
  695. package/jobs/decorators/job.decorator.js +1 -0
  696. package/jobs/decorators/job.decorator.js.map +1 -0
  697. package/jobs/interfaces/index.js +1 -0
  698. package/jobs/interfaces/index.js.map +1 -0
  699. package/jobs/interfaces/job-data.js +1 -0
  700. package/jobs/interfaces/job-data.js.map +1 -0
  701. package/jobs/interfaces/job-executor.js +1 -0
  702. package/jobs/interfaces/job-executor.js.map +1 -0
  703. package/jobs/interfaces/job-object.js +1 -0
  704. package/jobs/interfaces/job-object.js.map +1 -0
  705. package/jobs/interfaces/job.options.js +1 -0
  706. package/jobs/interfaces/job.options.js.map +1 -0
  707. package/jobs/jobs.controller.js +3 -0
  708. package/jobs/jobs.controller.js.map +1 -0
  709. package/module/decorators/index.js +1 -0
  710. package/module/decorators/index.js.map +1 -0
  711. package/module/decorators/module.decorator.js +1 -0
  712. package/module/decorators/module.decorator.js.map +1 -0
  713. package/module/decorators/on-after-app-start.js +1 -0
  714. package/module/decorators/on-after-app-start.js.map +1 -0
  715. package/module/decorators/on-after-database-init.js +1 -0
  716. package/module/decorators/on-after-database-init.js.map +1 -0
  717. package/module/decorators/on-module-init.js +1 -0
  718. package/module/decorators/on-module-init.js.map +1 -0
  719. package/module/index.js +1 -0
  720. package/module/index.js.map +1 -0
  721. package/module/interfaces/index.js +1 -0
  722. package/module/interfaces/index.js.map +1 -0
  723. package/module/interfaces/module-events.js +1 -0
  724. package/module/interfaces/module-events.js.map +1 -0
  725. package/module/interfaces/module-object.js +1 -0
  726. package/module/interfaces/module-object.js.map +1 -0
  727. package/module/interfaces/module-options.d.ts +1 -0
  728. package/module/interfaces/module-options.js +1 -0
  729. package/module/interfaces/module-options.js.map +1 -0
  730. package/module/module.controller.d.ts +3 -2
  731. package/module/module.controller.js +6 -0
  732. package/module/module.controller.js.map +1 -0
  733. package/package.json +13 -11
  734. package/query/constants.js +1 -0
  735. package/query/constants.js.map +1 -0
  736. package/query/decorators/index.js +1 -0
  737. package/query/decorators/index.js.map +1 -0
  738. package/query/decorators/query-content.decorator.js +1 -0
  739. package/query/decorators/query-content.decorator.js.map +1 -0
  740. package/query/functions/add-join.js +9 -5
  741. package/query/functions/add-join.js.map +1 -0
  742. package/query/functions/collect-external-column-owners.d.ts +10 -0
  743. package/query/functions/collect-external-column-owners.js +100 -0
  744. package/query/functions/collect-external-column-owners.js.map +1 -0
  745. package/query/functions/create-query-builder.js +48 -16
  746. package/query/functions/create-query-builder.js.map +1 -0
  747. package/query/functions/create-query-cache-hash.d.ts +16 -0
  748. package/query/functions/create-query-cache-hash.js +70 -0
  749. package/query/functions/create-query-cache-hash.js.map +1 -0
  750. package/query/functions/create-query.d.ts +8 -3
  751. package/query/functions/create-query.js +16 -9
  752. package/query/functions/create-query.js.map +1 -0
  753. package/query/functions/describe-query-filter.js +8 -4
  754. package/query/functions/describe-query-filter.js.map +1 -0
  755. package/query/functions/execute-query.js +56 -14
  756. package/query/functions/execute-query.js.map +1 -0
  757. package/query/functions/expand-select-with-external-dependencies.d.ts +9 -0
  758. package/query/functions/expand-select-with-external-dependencies.js +34 -0
  759. package/query/functions/expand-select-with-external-dependencies.js.map +1 -0
  760. package/query/functions/external-column-owner-path.d.ts +5 -0
  761. package/query/functions/external-column-owner-path.js +18 -0
  762. package/query/functions/external-column-owner-path.js.map +1 -0
  763. package/query/functions/get-column-path.js +1 -0
  764. package/query/functions/get-column-path.js.map +1 -0
  765. package/query/functions/get-entity-object-class.d.ts +2 -0
  766. package/query/functions/get-entity-object-class.js +12 -0
  767. package/query/functions/get-entity-object-class.js.map +1 -0
  768. package/query/functions/get-native-select.d.ts +4 -1
  769. package/query/functions/get-native-select.js +12 -1
  770. package/query/functions/get-native-select.js.map +1 -0
  771. package/query/functions/load-properties.d.ts +20 -2
  772. package/query/functions/load-properties.js +123 -39
  773. package/query/functions/load-properties.js.map +1 -0
  774. package/query/functions/map-query-property-to-column-name.js +2 -1
  775. package/query/functions/map-query-property-to-column-name.js.map +1 -0
  776. package/query/functions/query-structure-cache.d.ts +24 -0
  777. package/query/functions/query-structure-cache.js +66 -0
  778. package/query/functions/query-structure-cache.js.map +1 -0
  779. package/query/functions/replace-property-key-to-column-name.js +1 -0
  780. package/query/functions/replace-property-key-to-column-name.js.map +1 -0
  781. package/query/interfaces/index.js +1 -0
  782. package/query/interfaces/index.js.map +1 -0
  783. package/query/interfaces/query-action-options.js +1 -0
  784. package/query/interfaces/query-action-options.js.map +1 -0
  785. package/query/interfaces/query-object.js +1 -0
  786. package/query/interfaces/query-object.js.map +1 -0
  787. package/query/interfaces/query.d.ts +46 -2
  788. package/query/interfaces/query.js +1 -0
  789. package/query/interfaces/query.js.map +1 -0
  790. package/query/models/base-query-response.js +1 -0
  791. package/query/models/base-query-response.js.map +1 -0
  792. package/query/services/query-action-builder.d.ts +4 -1
  793. package/query/services/query-action-builder.js +43 -14
  794. package/query/services/query-action-builder.js.map +1 -0
  795. package/security/auth.controller.js +1 -0
  796. package/security/auth.controller.js.map +1 -0
  797. package/security/constants.js +1 -0
  798. package/security/constants.js.map +1 -0
  799. package/security/env.js +1 -0
  800. package/security/env.js.map +1 -0
  801. package/security/functions/add-protect.js +1 -0
  802. package/security/functions/add-protect.js.map +1 -0
  803. package/security/functions/add-protected.js +1 -0
  804. package/security/functions/add-protected.js.map +1 -0
  805. package/security/functions/create-authorization.js +1 -0
  806. package/security/functions/create-authorization.js.map +1 -0
  807. package/security/functions/find-auth-context.js +1 -0
  808. package/security/functions/find-auth-context.js.map +1 -0
  809. package/security/functions/is-auth-enabled.js +1 -0
  810. package/security/functions/is-auth-enabled.js.map +1 -0
  811. package/security/functions/use-auth.js +1 -0
  812. package/security/functions/use-auth.js.map +1 -0
  813. package/security/index.js +1 -0
  814. package/security/index.js.map +1 -0
  815. package/security/interceptors/index.js +1 -0
  816. package/security/interceptors/index.js.map +1 -0
  817. package/security/interceptors/is-authorized.interceptor.js +1 -0
  818. package/security/interceptors/is-authorized.interceptor.js.map +1 -0
  819. package/security/interfaces/auth-controller.js +1 -0
  820. package/security/interfaces/auth-controller.js.map +1 -0
  821. package/security/interfaces/auth-object.js +1 -0
  822. package/security/interfaces/auth-object.js.map +1 -0
  823. package/security/interfaces/auth-property.js +1 -0
  824. package/security/interfaces/auth-property.js.map +1 -0
  825. package/security/interfaces/authorization-schema.js +1 -0
  826. package/security/interfaces/authorization-schema.js.map +1 -0
  827. package/security/interfaces/index.js +1 -0
  828. package/security/interfaces/index.js.map +1 -0
  829. package/security/interfaces/security-options.js +1 -0
  830. package/security/interfaces/security-options.js.map +1 -0
  831. package/security/interfaces/ssl-certificate.js +1 -0
  832. package/security/interfaces/ssl-certificate.js.map +1 -0
  833. package/security/models/auth-context-data.js +1 -0
  834. package/security/models/auth-context-data.js.map +1 -0
  835. package/security/models/auth-context.js +1 -0
  836. package/security/models/auth-context.js.map +1 -0
  837. package/security/models/auth-key.js +1 -0
  838. package/security/models/auth-key.js.map +1 -0
  839. package/security/models/get-user-permissions-payload.js +1 -0
  840. package/security/models/get-user-permissions-payload.js.map +1 -0
  841. package/security/models/get-user-permissions-response.js +1 -0
  842. package/security/models/get-user-permissions-response.js.map +1 -0
  843. package/security/models/set-user-permissions-payload.js +1 -0
  844. package/security/models/set-user-permissions-payload.js.map +1 -0
  845. package/security/requests/security.request.js +2 -1
  846. package/security/requests/security.request.js.map +1 -0
  847. package/security/services/authorization.service.js +1 -0
  848. package/security/services/authorization.service.js.map +1 -0
  849. package/storage/entities/metadata.entity.js +2 -1
  850. package/storage/entities/metadata.entity.js.map +1 -0
  851. package/storage/entities/storage.entity.js +2 -1
  852. package/storage/entities/storage.entity.js.map +1 -0
  853. package/storage/env.js +1 -0
  854. package/storage/env.js.map +1 -0
  855. package/storage/functions/index.js +1 -0
  856. package/storage/functions/index.js.map +1 -0
  857. package/storage/functions/set-storage-settings.js +1 -0
  858. package/storage/functions/set-storage-settings.js.map +1 -0
  859. package/storage/index.js +1 -0
  860. package/storage/index.js.map +1 -0
  861. package/storage/interfaces/directory-metadata.js +1 -0
  862. package/storage/interfaces/directory-metadata.js.map +1 -0
  863. package/storage/interfaces/enum/gcp-credentials-type.js +1 -0
  864. package/storage/interfaces/enum/gcp-credentials-type.js.map +1 -0
  865. package/storage/interfaces/enum/index.js +1 -0
  866. package/storage/interfaces/enum/index.js.map +1 -0
  867. package/storage/interfaces/enum/metadata-type.js +1 -0
  868. package/storage/interfaces/enum/metadata-type.js.map +1 -0
  869. package/storage/interfaces/enum/storage-type.js +1 -0
  870. package/storage/interfaces/enum/storage-type.js.map +1 -0
  871. package/storage/interfaces/file-metadata.js +1 -0
  872. package/storage/interfaces/file-metadata.js.map +1 -0
  873. package/storage/interfaces/index.js +1 -0
  874. package/storage/interfaces/index.js.map +1 -0
  875. package/storage/interfaces/metadata.js +1 -0
  876. package/storage/interfaces/metadata.js.map +1 -0
  877. package/storage/interfaces/storage-controller.js +1 -0
  878. package/storage/interfaces/storage-controller.js.map +1 -0
  879. package/storage/interfaces/storage-settings.js +1 -0
  880. package/storage/interfaces/storage-settings.js.map +1 -0
  881. package/storage/interfaces/storage.js +1 -0
  882. package/storage/interfaces/storage.js.map +1 -0
  883. package/storage/services/routes.service.js +1 -0
  884. package/storage/services/routes.service.js.map +1 -0
  885. package/storage/services/storage.service.d.ts +1 -1
  886. package/storage/services/storage.service.js +3 -3
  887. package/storage/services/storage.service.js.map +1 -0
  888. package/storage/storage.controller.js +1 -0
  889. package/storage/storage.controller.js.map +1 -0
  890. package/tasks/constants.d.ts +2 -2
  891. package/tasks/constants.js +4 -2
  892. package/tasks/constants.js.map +1 -0
  893. package/tasks/controllers/task.controller.d.ts +9 -0
  894. package/tasks/controllers/task.controller.js +53 -0
  895. package/tasks/controllers/task.controller.js.map +1 -0
  896. package/tasks/decorators/index.js +1 -0
  897. package/tasks/decorators/index.js.map +1 -0
  898. package/tasks/decorators/task.decorator.js +9 -3
  899. package/tasks/decorators/task.decorator.js.map +1 -0
  900. package/tasks/functions/create-task-message-controller.d.ts +3 -0
  901. package/tasks/functions/create-task-message-controller.js +15 -0
  902. package/tasks/functions/create-task-message-controller.js.map +1 -0
  903. package/tasks/functions/create-task-message-find.js +7 -6
  904. package/tasks/functions/create-task-message-find.js.map +1 -0
  905. package/tasks/functions/create-task-message-model.js +11 -0
  906. package/tasks/functions/create-task-message-model.js.map +1 -0
  907. package/tasks/functions/{create-task-message-receptor.d.ts → create-task-message-post.d.ts} +1 -1
  908. package/tasks/functions/create-task-message-post.js +29 -0
  909. package/tasks/functions/create-task-message-post.js.map +1 -0
  910. package/tasks/functions/create-task-message-query.d.ts +3 -0
  911. package/tasks/functions/create-task-message-query.js +23 -0
  912. package/tasks/functions/create-task-message-query.js.map +1 -0
  913. package/tasks/functions/create-task-message-retry.js +7 -6
  914. package/tasks/functions/create-task-message-retry.js.map +1 -0
  915. package/tasks/functions/create-task-message-schema.js +1 -0
  916. package/tasks/functions/create-task-message-schema.js.map +1 -0
  917. package/tasks/functions/create-task-naming.js +9 -11
  918. package/tasks/functions/create-task-naming.js.map +1 -0
  919. package/tasks/functions/generate-entity-id.js +1 -0
  920. package/tasks/functions/generate-entity-id.js.map +1 -0
  921. package/tasks/functions/get-check-table-exists-script.js +1 -0
  922. package/tasks/functions/get-check-table-exists-script.js.map +1 -0
  923. package/tasks/functions/get-create-table-partition-script.js +1 -0
  924. package/tasks/functions/get-create-table-partition-script.js.map +1 -0
  925. package/tasks/functions/get-create-table-script.js +15 -11
  926. package/tasks/functions/get-create-table-script.js.map +1 -0
  927. package/tasks/functions/get-database-connection-name.js +1 -0
  928. package/tasks/functions/get-database-connection-name.js.map +1 -0
  929. package/tasks/functions/get-database-uri.js +1 -0
  930. package/tasks/functions/get-database-uri.js.map +1 -0
  931. package/tasks/functions/get-partitions-of-table-script.js +1 -0
  932. package/tasks/functions/get-partitions-of-table-script.js.map +1 -0
  933. package/tasks/functions/get-pending-task-script.d.ts +1 -1
  934. package/tasks/functions/get-pending-task-script.js +17 -13
  935. package/tasks/functions/get-pending-task-script.js.map +1 -0
  936. package/tasks/functions/throw-task-error.js +1 -0
  937. package/tasks/functions/throw-task-error.js.map +1 -0
  938. package/tasks/index.d.ts +2 -0
  939. package/tasks/index.js +3 -0
  940. package/tasks/index.js.map +1 -0
  941. package/tasks/interfaces/index.js +1 -0
  942. package/tasks/interfaces/index.js.map +1 -0
  943. package/tasks/interfaces/task-naming.d.ts +3 -3
  944. package/tasks/interfaces/task-naming.js +1 -0
  945. package/tasks/interfaces/task-naming.js.map +1 -0
  946. package/tasks/interfaces/task-object.d.ts +4 -2
  947. package/tasks/interfaces/task-object.js +1 -0
  948. package/tasks/interfaces/task-object.js.map +1 -0
  949. package/tasks/interfaces/task-post-intercept.d.ts +1 -8
  950. package/tasks/interfaces/task-post-intercept.js +1 -0
  951. package/tasks/interfaces/task-post-intercept.js.map +1 -0
  952. package/tasks/interfaces/task-runner.d.ts +2 -1
  953. package/tasks/interfaces/task-runner.js +1 -0
  954. package/tasks/interfaces/task-runner.js.map +1 -0
  955. package/tasks/interfaces/task-search-intercept.js +1 -0
  956. package/tasks/interfaces/task-search-intercept.js.map +1 -0
  957. package/tasks/interfaces/task-settings.d.ts +3 -1
  958. package/tasks/interfaces/task-settings.js +1 -0
  959. package/tasks/interfaces/task-settings.js.map +1 -0
  960. package/tasks/models/index.d.ts +3 -0
  961. package/tasks/models/index.js +20 -0
  962. package/tasks/models/index.js.map +1 -0
  963. package/tasks/models/task-error.js +2 -1
  964. package/tasks/models/task-error.js.map +1 -0
  965. package/tasks/models/task-message-find.js +1 -0
  966. package/tasks/models/task-message-find.js.map +1 -0
  967. package/tasks/models/task-message.d.ts +3 -3
  968. package/tasks/models/task-message.js +32 -5
  969. package/tasks/models/task-message.js.map +1 -0
  970. package/tasks/services/task-manager.service.js +7 -9
  971. package/tasks/services/task-manager.service.js.map +1 -0
  972. package/tasks/services/task-runner.service.d.ts +7 -0
  973. package/tasks/services/task-runner.service.js +61 -39
  974. package/tasks/services/task-runner.service.js.map +1 -0
  975. package/tasks/tasks.controller.d.ts +2 -10
  976. package/tasks/tasks.controller.js +4 -49
  977. package/tasks/tasks.controller.js.map +1 -0
  978. package/tasks/tasks.module.d.ts +12 -0
  979. package/tasks/tasks.module.js +65 -0
  980. package/tasks/tasks.module.js.map +1 -0
  981. package/translations/{requests/translation.request.d.ts → controllers/translation.controller.d.ts} +1 -1
  982. package/translations/{requests/translation.request.js → controllers/translation.controller.js} +23 -19
  983. package/translations/controllers/translation.controller.js.map +1 -0
  984. package/translations/entities/translation-config.entity.js +1 -0
  985. package/translations/entities/translation-config.entity.js.map +1 -0
  986. package/translations/entities/translation-values.entity.d.ts +1 -1
  987. package/translations/entities/translation-values.entity.js +12 -6
  988. package/translations/entities/translation-values.entity.js.map +1 -0
  989. package/translations/env.js +1 -0
  990. package/translations/env.js.map +1 -0
  991. package/translations/functions/check-can-use.js +1 -0
  992. package/translations/functions/check-can-use.js.map +1 -0
  993. package/translations/functions/create-translation-config.js +1 -0
  994. package/translations/functions/create-translation-config.js.map +1 -0
  995. package/translations/functions/create-translation-values.js +3 -5
  996. package/translations/functions/create-translation-values.js.map +1 -0
  997. package/translations/functions/get-translation-config.js +1 -0
  998. package/translations/functions/get-translation-config.js.map +1 -0
  999. package/translations/interfaces/translation-config.js +1 -0
  1000. package/translations/interfaces/translation-config.js.map +1 -0
  1001. package/translations/interfaces/translation-values.js +1 -0
  1002. package/translations/interfaces/translation-values.js.map +1 -0
  1003. package/translations/interfaces/translator-handle.js +1 -0
  1004. package/translations/interfaces/translator-handle.js.map +1 -0
  1005. package/translations/migrations/1723760669185-CreateTranslationTables.js +4 -3
  1006. package/translations/migrations/1723760669185-CreateTranslationTables.js.map +1 -0
  1007. package/translations/models/get-values.request.js +1 -0
  1008. package/translations/models/get-values.request.js.map +1 -0
  1009. package/translations/models/get-values.response.js +1 -0
  1010. package/translations/models/get-values.response.js.map +1 -0
  1011. package/translations/queries/translation-config.query.d.ts +1 -1
  1012. package/translations/queries/translation-config.query.js +1 -0
  1013. package/translations/queries/translation-config.query.js.map +1 -0
  1014. package/translations/queries/translation-values.query.d.ts +1 -1
  1015. package/translations/queries/translation-values.query.js +2 -1
  1016. package/translations/queries/translation-values.query.js.map +1 -0
  1017. package/translations/services/translations.service.js +1 -0
  1018. package/translations/services/translations.service.js.map +1 -0
  1019. package/translations/services/translator.service.js +1 -0
  1020. package/translations/services/translator.service.js.map +1 -0
  1021. package/translations/translations.controller.d.ts +1 -1
  1022. package/translations/translations.controller.js +8 -9
  1023. package/translations/translations.controller.js.map +1 -0
  1024. package/transport/entities/transport-client.js +1 -0
  1025. package/transport/entities/transport-client.js.map +1 -0
  1026. package/transport/entities/transport-gateway-status.js +1 -0
  1027. package/transport/entities/transport-gateway-status.js.map +1 -0
  1028. package/transport/entities/transport-gateway.js +1 -0
  1029. package/transport/entities/transport-gateway.js.map +1 -0
  1030. package/transport/environment.js +1 -0
  1031. package/transport/environment.js.map +1 -0
  1032. package/transport/index.js +1 -0
  1033. package/transport/index.js.map +1 -0
  1034. package/transport/interfaces/index.js +1 -0
  1035. package/transport/interfaces/index.js.map +1 -0
  1036. package/transport/interfaces/transport-module-options.js +1 -0
  1037. package/transport/interfaces/transport-module-options.js.map +1 -0
  1038. package/transport/transport.module.js +1 -0
  1039. package/transport/transport.module.js.map +1 -0
  1040. package/web-socket/constants.js +1 -0
  1041. package/web-socket/constants.js.map +1 -0
  1042. package/web-socket/functions/encode-message.js +1 -0
  1043. package/web-socket/functions/encode-message.js.map +1 -0
  1044. package/web-socket/functions/get-fake-http-context.js +1 -0
  1045. package/web-socket/functions/get-fake-http-context.js.map +1 -0
  1046. package/web-socket/functions/get-ip-address.js +1 -0
  1047. package/web-socket/functions/get-ip-address.js.map +1 -0
  1048. package/web-socket/functions/parse-message.js +1 -0
  1049. package/web-socket/functions/parse-message.js.map +1 -0
  1050. package/web-socket/index.js +1 -0
  1051. package/web-socket/index.js.map +1 -0
  1052. package/web-socket/interfaces/client.js +1 -0
  1053. package/web-socket/interfaces/client.js.map +1 -0
  1054. package/web-socket/interfaces/enum/client-type.js +1 -0
  1055. package/web-socket/interfaces/enum/client-type.js.map +1 -0
  1056. package/web-socket/interfaces/enum/index.js +1 -0
  1057. package/web-socket/interfaces/enum/index.js.map +1 -0
  1058. package/web-socket/interfaces/enum/message-type.js +1 -0
  1059. package/web-socket/interfaces/enum/message-type.js.map +1 -0
  1060. package/web-socket/interfaces/enum/ws-connection-type.js +1 -0
  1061. package/web-socket/interfaces/enum/ws-connection-type.js.map +1 -0
  1062. package/web-socket/interfaces/index.js +1 -0
  1063. package/web-socket/interfaces/index.js.map +1 -0
  1064. package/web-socket/interfaces/message.js +1 -0
  1065. package/web-socket/interfaces/message.js.map +1 -0
  1066. package/web-socket/interfaces/ws-connection.js +1 -0
  1067. package/web-socket/interfaces/ws-connection.js.map +1 -0
  1068. package/web-socket/web-socket.controller.js +1 -0
  1069. package/web-socket/web-socket.controller.js.map +1 -0
  1070. package/workers/functions/decode-message.js +1 -0
  1071. package/workers/functions/decode-message.js.map +1 -0
  1072. package/workers/functions/dispatch-task.js +1 -0
  1073. package/workers/functions/dispatch-task.js.map +1 -0
  1074. package/workers/functions/encode-message.js +1 -0
  1075. package/workers/functions/encode-message.js.map +1 -0
  1076. package/workers/interfaces/enum/index.js +1 -0
  1077. package/workers/interfaces/enum/index.js.map +1 -0
  1078. package/workers/interfaces/enum/worker-message-type.js +1 -0
  1079. package/workers/interfaces/enum/worker-message-type.js.map +1 -0
  1080. package/workers/interfaces/index.js +1 -0
  1081. package/workers/interfaces/index.js.map +1 -0
  1082. package/workers/interfaces/worker-data.js +1 -0
  1083. package/workers/interfaces/worker-data.js.map +1 -0
  1084. package/workers/interfaces/worker-message.js +1 -0
  1085. package/workers/interfaces/worker-message.js.map +1 -0
  1086. package/workers/workers.controller.d.ts +1 -1
  1087. package/workers/workers.controller.js +11 -6
  1088. package/workers/workers.controller.js.map +1 -0
  1089. package/database/functions/generate-id.d.ts +0 -2
  1090. package/tasks/functions/create-task-message-receptor.js +0 -23
  1091. package/tasks/functions/create-task-message-trigger.d.ts +0 -2
  1092. package/tasks/functions/create-task-message-trigger.js +0 -18
  1093. package/tasks/functions/parse-task-message-search.d.ts +0 -20
  1094. package/tasks/functions/parse-task-message-search.js +0 -62
  1095. package/tasks/requests/task.request.d.ts +0 -17
  1096. package/tasks/requests/task.request.js +0 -71
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Segments to walk from each root query row to the object that owns an external column.
3
+ * Empty when the owner is the root entity row (e.g. root-level `status`).
4
+ */
5
+ export declare function toExternalOwnerWalkSegments(ownerFullPath: string, rootAlias: string): string[];
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toExternalOwnerWalkSegments = toExternalOwnerWalkSegments;
4
+ /**
5
+ * Segments to walk from each root query row to the object that owns an external column.
6
+ * Empty when the owner is the root entity row (e.g. root-level `status`).
7
+ */
8
+ function toExternalOwnerWalkSegments(ownerFullPath, rootAlias) {
9
+ if (ownerFullPath === rootAlias) {
10
+ return [];
11
+ }
12
+ const prefix = `${rootAlias}.`;
13
+ if (ownerFullPath.startsWith(prefix)) {
14
+ return ownerFullPath.slice(prefix.length).split(".").filter(Boolean);
15
+ }
16
+ return ownerFullPath.split(".").filter(Boolean);
17
+ }
18
+ //# sourceMappingURL=external-column-owner-path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-column-owner-path.js","sourceRoot":"./","sources":["query/functions/external-column-owner-path.ts"],"names":[],"mappings":";;AAIA,kEAYC;AAhBD;;;GAGG;AACH,SAAgB,2BAA2B,CACxC,aAAqB,EACrB,SAAiB;IAEjB,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,EAAE,CAAC;IACb,CAAC;IACD,MAAM,MAAM,GAAG,GAAG,SAAS,GAAG,CAAC;IAC/B,IAAI,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACpC,OAAO,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACnD,CAAC"}
@@ -12,3 +12,4 @@ const getColumnPath = (path, currentPath = '') => {
12
12
  return fullPath;
13
13
  };
14
14
  exports.getColumnPath = getColumnPath;
15
+ //# sourceMappingURL=get-column-path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-column-path.js","sourceRoot":"./","sources":["query/functions/get-column-path.ts"],"names":[],"mappings":";;;AAEO,MAAM,aAAa,GAAG,CAAC,IAAe,EAAE,cAAsB,EAAE,EAAE,EAAE;IACxE,IAAI,QAAQ,GAAG,EAAE,CAAC;IAClB,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QAC5B,QAAQ,GAAG,IAAA,qBAAa,EAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;SAAM,CAAC;QACL,QAAQ,GAAG,GAAG,IAAI,CAAC,KAAK,IAAI,WAAW,EAAE,CAAC;IAC7C,CAAC;IACD,OAAO,QAAQ,CAAC;AACnB,CAAC,CAAA;AARY,QAAA,aAAa,iBAQzB"}
@@ -0,0 +1,2 @@
1
+ import { Instantiable } from "@rockster/common";
2
+ export declare const getEntityObjectClass: (target: Instantiable) => Instantiable;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getEntityObjectClass = void 0;
4
+ const object_type_1 = require("../../common/interfaces/enum/object-type");
5
+ const getEntityObjectClass = (target) => {
6
+ const object = core.storage.findObject(target);
7
+ return object?.type === object_type_1.ObjectType.entityDto
8
+ ? object.entity()
9
+ : object?.objectClass;
10
+ };
11
+ exports.getEntityObjectClass = getEntityObjectClass;
12
+ //# sourceMappingURL=get-entity-object-class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-entity-object-class.js","sourceRoot":"./","sources":["query/functions/get-entity-object-class.ts"],"names":[],"mappings":";;;AACA,0EAAsE;AAE/D,MAAM,oBAAoB,GAAG,CAAC,MAAoB,EAAE,EAAE;IAC1D,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAC/C,OAAO,MAAM,EAAE,IAAI,KAAK,wBAAU,CAAC,SAAS;QACzC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE;QACjB,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC;AAC5B,CAAC,CAAA;AALY,QAAA,oBAAoB,wBAKhC"}
@@ -1,2 +1,5 @@
1
1
  import { Instantiable } from "@rockster/common";
2
- export declare const getNativeSelect: (target: Instantiable, select: string[]) => string[];
2
+ export declare const getNativeSelect: (target: Instantiable, select: string[]) => {
3
+ asMap: Map<string, string>;
4
+ asArry: string[];
5
+ };
@@ -4,6 +4,17 @@ exports.getNativeSelect = void 0;
4
4
  const map_query_property_to_column_name_1 = require("./map-query-property-to-column-name");
5
5
  const getNativeSelect = (target, select) => {
6
6
  const queryObject = core.storage.findObject(target);
7
- return select.map(item => (0, map_query_property_to_column_name_1.mapQueryPropertyToColumnName)(queryObject, item));
7
+ const mapper = new Map();
8
+ const arry = [];
9
+ select.forEach(item => {
10
+ const queryProperty = queryObject.properties[item];
11
+ if (queryProperty?.isExternal)
12
+ return;
13
+ const columnName = (0, map_query_property_to_column_name_1.mapQueryPropertyToColumnName)(queryObject, item);
14
+ arry.pushIfNotExists(columnName);
15
+ mapper.set(item, columnName);
16
+ });
17
+ return { asMap: mapper, asArry: arry };
8
18
  };
9
19
  exports.getNativeSelect = getNativeSelect;
20
+ //# sourceMappingURL=get-native-select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-native-select.js","sourceRoot":"./","sources":["query/functions/get-native-select.ts"],"names":[],"mappings":";;;AAGA,2FAAmF;AAE5E,MAAM,eAAe,GAAG,CAC5B,MAAoB,EACpB,MAAgB,EACjB,EAAE;IACD,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAA6B,CAAC;IAChF,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IACzC,MAAM,IAAI,GAAG,EAAc,CAAC;IAC5B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACnB,MAAM,aAAa,GAAG,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,aAAa,EAAE,UAAU;YAAE,OAAO;QACtC,MAAM,UAAU,GAAG,IAAA,gEAA4B,EAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QACjC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAC1C,CAAC,CAAA;AAfY,QAAA,eAAe,mBAe3B"}
@@ -1,6 +1,15 @@
1
1
  import { Dictionary, Instantiable } from "@rockster/common";
2
2
  import { Paths } from "../../database/interfaces/path";
3
3
  import { QueryPath, QueryProperty, QueryPropertyType, QueryRelationConfig } from "../interfaces/query";
4
+ /** When traversing an object/relation property marked @ExternalColumn, descendants inherit its resolver. */
5
+ export type ExternalSubtreeContext = {
6
+ resolver: Instantiable;
7
+ /** Full query path to the entity row that owns `columnKey`. */
8
+ ownerFullPath: string;
9
+ columnKey: string;
10
+ /** Full query paths for DB columns required alongside this external column (selectDependencies). */
11
+ dependencyQueryPaths: string[];
12
+ };
4
13
  export type LoadPropertiesArgs = {
5
14
  type: QueryPropertyType;
6
15
  target: Instantiable;
@@ -14,6 +23,15 @@ export type LoadPropertiesArgs = {
14
23
  secure?: boolean;
15
24
  initializedObjects?: string[];
16
25
  rootEntity: Instantiable;
17
- rootFullPath?: string;
26
+ rootOrRelationPath?: string;
27
+ isRelation?: boolean;
28
+ /** Root query alias (first path segment); used for external owner walk segments. */
29
+ rootAlias: string;
30
+ externalSubtree?: ExternalSubtreeContext;
31
+ /**
32
+ * SQL table aliases used by {@link joinOne}/{@link joinMany} across the whole query tree.
33
+ * Root initializes this (includes the root alias); duplicate join `alias` values throw.
34
+ */
35
+ usedJoinSqlAliases?: Set<string>;
18
36
  };
19
- export declare const loadProperties: ({ type, target, alias, entityAlias, properties, parent, paths, relation, fullPath, secure, initializedObjects, rootEntity, rootFullPath }: LoadPropertiesArgs) => void;
37
+ export declare const loadProperties: ({ type, target, alias, entityAlias, properties, parent, paths, relation, fullPath, secure, initializedObjects, rootEntity, rootOrRelationPath, rootAlias, externalSubtree, usedJoinSqlAliases: usedJoinSqlAliasesArg }: LoadPropertiesArgs) => void;
@@ -4,44 +4,83 @@ exports.loadProperties = void 0;
4
4
  const class_pipe_1 = require("@rockster/class-pipe");
5
5
  const object_type_1 = require("../../common/interfaces/enum/object-type");
6
6
  const get_id_property_1 = require("../../database/functions/get-id-property");
7
- const loadProperties = ({ type, target, alias, entityAlias, properties, parent, paths, relation, fullPath = '', secure, initializedObjects = [], rootEntity, rootFullPath }) => {
8
- // fullPath agora representa o caminho global (root até aqui)
7
+ const get_entity_object_class_1 = require("./get-entity-object-class");
8
+ const external_column_owner_path_1 = require("./external-column-owner-path");
9
+ function resolveExternalColumnClass(ep, entityLabel, propertyKey) {
10
+ const Resolver = ep.getExternalResolver?.();
11
+ if (!Resolver) {
12
+ throw new Error(`External column "${propertyKey}" on ${entityLabel} must use ExternalColumn(() => ResolverClass); the callback returned nothing`);
13
+ }
14
+ return Resolver;
15
+ }
16
+ const loadProperties = ({ type, target, alias, entityAlias, properties, parent, paths, relation, fullPath = '', secure, initializedObjects = [], rootEntity, rootOrRelationPath, rootAlias, externalSubtree, usedJoinSqlAliases: usedJoinSqlAliasesArg }) => {
17
+ const usedJoinSqlAliases = usedJoinSqlAliasesArg ??
18
+ (type === "root"
19
+ ? new Set([entityAlias ?? alias])
20
+ : (() => {
21
+ throw new Error("loadProperties: join alias registry missing; this is an internal error");
22
+ })());
9
23
  const currentPath = fullPath ? `${fullPath}.${alias}` : alias;
10
- ;
11
24
  const initializedObjectKey = `${currentPath}:${target.name}`;
25
+ const targetObjectClass = (0, get_entity_object_class_1.getEntityObjectClass)(target);
26
+ const entityOwnerLabel = targetObjectClass?.name
27
+ ?? (typeof target?.name === 'string'
28
+ ? target.name
29
+ : 'Entity');
12
30
  if (initializedObjects.includes(initializedObjectKey))
13
31
  return;
14
32
  initializedObjects.push(initializedObjectKey);
15
- const targetProperties = (0, class_pipe_1.getExposeProperties)(target);
16
- targetProperties
17
- .filter((property) => {
33
+ const targetProperties = (0, class_pipe_1.getExposeProperties)(target).filter((property) => {
18
34
  if (property.subtype) {
19
35
  const object = core.storage.findObject(property.subtype);
20
- const isEntity = object?.type === object_type_1.ObjectType.entity;
36
+ const isEntity = object?.type === object_type_1.ObjectType.entity || object?.type === object_type_1.ObjectType.entityDto;
21
37
  return !isEntity;
22
38
  }
23
39
  return true;
24
- })
25
- .forEach((targetProperty) => {
40
+ });
41
+ for (const targetProperty of targetProperties) {
26
42
  const propertyKey = targetProperty.propertyKey;
27
43
  const globalPath = `${currentPath}.${propertyKey}`;
28
44
  let columnName;
29
- const entityProperty = core
30
- .storage
31
- .getProperties(targetProperty.objectClass)
32
- .find((p) => p.propertyKey === propertyKey);
45
+ const entityProperty = targetObjectClass
46
+ ? core
47
+ .storage
48
+ .getProperties(targetObjectClass)
49
+ .find((property) => {
50
+ return property.propertyKey === propertyKey;
51
+ })
52
+ : undefined;
33
53
  if (entityProperty) {
34
54
  columnName = entityProperty.columnName;
35
55
  }
36
- if (type === 'root' && !entityProperty) {
37
- return;
38
- }
39
- if ((targetProperty.type === class_pipe_1.PropertyType.object && targetProperty.subtype)
40
- || targetProperty.ifChecks?.length > 0) {
41
- const hasIfChecks = targetProperty.ifChecks?.length > 0;
42
- const objectTypes = hasIfChecks
56
+ if (type === 'root' && !entityProperty)
57
+ continue;
58
+ const subtype = targetProperty.type === class_pipe_1.PropertyType.object && targetProperty.subtype;
59
+ const multitype = targetProperty.ifChecks?.length > 0;
60
+ const hasIfChecks = targetProperty.ifChecks?.length > 0;
61
+ const objectTypes = subtype || multitype
62
+ ? hasIfChecks
43
63
  ? targetProperty.ifChecks.map((ifCheck) => ifCheck.type)
44
- : [targetProperty.subtype];
64
+ : [targetProperty.subtype].filter(Boolean)
65
+ : [];
66
+ /**
67
+ * @IsIn(enum) can surface as `object` + enum subtype; that is not an @Entity graph.
68
+ * External columns like that must register a single leaf, not recurse into the enum.
69
+ * Real external objects (Person entity, etc.) still recurse when subtype resolves in storage.
70
+ */
71
+ const shouldRecurseEmbedded = (subtype || multitype) &&
72
+ (!entityProperty?.isExternal ||
73
+ objectTypes.some((ot) => !!(0, get_entity_object_class_1.getEntityObjectClass)(ot)));
74
+ if (shouldRecurseEmbedded) {
75
+ const anchorDepPaths = (entityProperty?.externalSelectDependencies ?? []).map((d) => `${currentPath}.${d}`);
76
+ const nextSubtree = entityProperty?.isExternal
77
+ ? {
78
+ resolver: resolveExternalColumnClass(entityProperty, entityOwnerLabel, propertyKey),
79
+ ownerFullPath: currentPath,
80
+ columnKey: propertyKey,
81
+ dependencyQueryPaths: anchorDepPaths,
82
+ }
83
+ : externalSubtree;
45
84
  objectTypes.forEach((objectType) => {
46
85
  (0, exports.loadProperties)({
47
86
  type: 'embedded',
@@ -50,21 +89,47 @@ const loadProperties = ({ type, target, alias, entityAlias, properties, parent,
50
89
  target: objectType,
51
90
  fullPath: currentPath,
52
91
  initializedObjects,
92
+ entityAlias: entityAlias,
53
93
  rootEntity,
54
- rootFullPath: type === "embedded"
55
- ? rootFullPath
56
- : `${currentPath}.${targetProperty.propertyKey}`,
94
+ rootAlias,
95
+ usedJoinSqlAliases,
96
+ externalSubtree: nextSubtree,
57
97
  parent: {
58
98
  alias,
59
99
  target,
60
100
  type,
61
101
  parent,
62
102
  entityAlias
63
- }
103
+ },
104
+ rootOrRelationPath: type === "embedded"
105
+ ? rootOrRelationPath
106
+ : `${entityAlias}.${targetProperty.propertyKey}`
64
107
  });
65
108
  });
66
109
  }
67
110
  else {
111
+ const directExternal = !!entityProperty?.isExternal;
112
+ const inheritedExternal = !!externalSubtree;
113
+ const isExternal = directExternal || inheritedExternal;
114
+ const resolver = directExternal && entityProperty
115
+ ? resolveExternalColumnClass(entityProperty, entityOwnerLabel, propertyKey)
116
+ : externalSubtree?.resolver;
117
+ const ownerFullPath = directExternal
118
+ ? currentPath
119
+ : externalSubtree?.ownerFullPath ?? currentPath;
120
+ const externalColumnKey = directExternal
121
+ ? propertyKey
122
+ : externalSubtree?.columnKey ?? propertyKey;
123
+ const externalDependencyQueryPaths = isExternal
124
+ ? [
125
+ ...new Set([
126
+ ...(externalSubtree?.dependencyQueryPaths ?? []),
127
+ ...(directExternal && entityProperty
128
+ ? (entityProperty.externalSelectDependencies ?? []).map((d) => `${currentPath}.${d}`)
129
+ : []),
130
+ ]),
131
+ ]
132
+ : undefined;
68
133
  properties[globalPath] = {
69
134
  path: {
70
135
  target,
@@ -74,54 +139,73 @@ const loadProperties = ({ type, target, alias, entityAlias, properties, parent,
74
139
  parent,
75
140
  secure,
76
141
  entityAlias,
77
- rootOrRelationFullPath: rootFullPath
142
+ rootOrRelationPath
78
143
  },
79
144
  isUUID: targetProperty.type === class_pipe_1.PropertyType.string
80
145
  && targetProperty.validatorsConfigs?.some((cfg) => cfg.type === 'isUUID') || false,
81
146
  columnName,
82
147
  isArray: !!targetProperty.isArray,
83
- isJson: !!targetProperty.isJSON,
148
+ isJson: type === 'embedded',
149
+ isExternal,
150
+ externalResolver: resolver,
151
+ externalOwnerWalkSegments: isExternal
152
+ ? (0, external_column_owner_path_1.toExternalOwnerWalkSegments)(ownerFullPath, rootAlias)
153
+ : undefined,
154
+ externalColumnKey: isExternal ? externalColumnKey : undefined,
155
+ externalDependencyQueryPaths,
84
156
  fullPath: globalPath,
85
157
  name: propertyKey,
86
158
  type: targetProperty.type
87
159
  };
88
160
  }
89
- });
161
+ }
90
162
  if (paths) {
91
163
  const idProperty = (0, get_id_property_1.getIdProperty)(target);
92
164
  const pathKeys = Object.keys(paths);
93
165
  for (const pathProperty of pathKeys) {
94
166
  const path = paths[pathProperty];
167
+ const pathObjectClass = (0, get_entity_object_class_1.getEntityObjectClass)(path.target());
95
168
  const linkProperty = (path.type === 'indirect'
96
- ? core.storage.getProperties(path.target()).find((p) => p.isRelation && p.getRelationType() === target)
97
- : core.storage.getProperties(target).find((p) => p.isRelation && p.getRelationType() === path.target()));
98
- if (!linkProperty) {
99
- const line1 = `Unable to find linkProperty to ${path.alias}:${path.target()?.name} into query:${target.name}`;
169
+ ? core.storage.getProperties(pathObjectClass).find((p) => p.isRelation && p.getRelationType() === targetObjectClass)
170
+ : core.storage.getProperties(targetObjectClass).find((p) => p.isRelation && p.getRelationType() === pathObjectClass));
171
+ if (!linkProperty && !path.condition) {
172
+ const line1 = `Unable to find linkProperty to ${path.alias}:${pathObjectClass?.name} into query:${target.name}`;
100
173
  const line2 = `Use @Relation(() => <target>) to define`;
101
174
  throw new Error(`${line1}\n${line2}`);
102
175
  }
103
- const targetIdProperty = (0, get_id_property_1.getIdProperty)(path.target());
176
+ const joinSqlAlias = path.alias;
177
+ if (usedJoinSqlAliases.has(joinSqlAlias)) {
178
+ throw new Error(`Duplicate query join SQL alias "${joinSqlAlias}" (paths key "${pathProperty}" under "${currentPath}"). ` +
179
+ `Each joinOne/joinMany must use a globally unique alias in this query (e.g. routerDataCenter vs serverDataCenter).`);
180
+ }
181
+ usedJoinSqlAliases.add(joinSqlAlias);
182
+ const targetIdProperty = (0, get_id_property_1.getIdProperty)(pathObjectClass);
183
+ const joinEntityAlias = joinSqlAlias;
104
184
  const condition = path.condition ?? (() => {
105
185
  const linkName = path.linkProperty || linkProperty.columnName;
106
186
  return path.type === "direct"
107
- ? `"${entityAlias}"."${linkName}" = "${path.alias}"."${targetIdProperty.columnName}"`
108
- : `"${entityAlias}"."${idProperty.columnName}" = "${path.alias}"."${linkName}"`;
187
+ ? `"${entityAlias}"."${linkName}" = "${joinEntityAlias}"."${targetIdProperty.columnName}"`
188
+ : `"${entityAlias}"."${idProperty.columnName}" = "${joinEntityAlias}"."${linkName}"`;
109
189
  })();
110
190
  (0, exports.loadProperties)({
111
191
  alias: pathProperty,
112
- entityAlias: path.alias,
192
+ entityAlias: joinEntityAlias,
113
193
  properties,
114
194
  target: path.target(),
115
195
  type: "relation",
116
196
  paths: path.paths,
117
197
  secure: path.secure,
118
198
  rootEntity,
199
+ fullPath: currentPath,
200
+ initializedObjects,
201
+ rootAlias,
202
+ usedJoinSqlAliases,
203
+ externalSubtree,
119
204
  relation: {
120
205
  type: path.type,
121
206
  mapTo: `${alias}.${pathProperty}`,
122
207
  condition,
123
208
  },
124
- fullPath: currentPath,
125
209
  parent: {
126
210
  alias,
127
211
  target,
@@ -129,10 +213,10 @@ const loadProperties = ({ type, target, alias, entityAlias, properties, parent,
129
213
  relation,
130
214
  parent,
131
215
  entityAlias
132
- },
133
- initializedObjects
216
+ }
134
217
  });
135
218
  }
136
219
  }
137
220
  };
138
221
  exports.loadProperties = loadProperties;
222
+ //# sourceMappingURL=load-properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-properties.js","sourceRoot":"./","sources":["query/functions/load-properties.ts"],"names":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
9
9
  case "root":
10
10
  return `${queryProperty.path.entityAlias}.${queryProperty.name}`;
11
11
  case "embedded":
12
- return queryProperty.path.rootOrRelationFullPath;
12
+ return queryProperty.path.rootOrRelationPath;
13
13
  default:
14
14
  throw new Error(`${item} not found on query`);
15
15
  }
16
16
  };
17
17
  exports.mapQueryPropertyToColumnName = mapQueryPropertyToColumnName;
18
+ //# sourceMappingURL=map-query-property-to-column-name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-query-property-to-column-name.js","sourceRoot":"./","sources":["query/functions/map-query-property-to-column-name.ts"],"names":[],"mappings":";;;AAGO,MAAM,4BAA4B,GAAG,CAAC,WAAqC,EAAE,IAAY,EAAE,EAAE;IAEjG,MAAM,eAAe,GAAG,WAAW,CAAC,UAAU,CAAC;IAC/C,MAAM,aAAa,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAE5C,QAAQ,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAC/B,KAAK,UAAU,CAAC;QAChB,KAAK,MAAM;YACR,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,WAAW,IAAI,aAAa,CAAC,IAAI,EAAE,CAAC;QACpE,KAAK,UAAU;YACZ,OAAO,aAAa,CAAC,IAAI,CAAC,kBAAkB,CAAC;QAChD;YACG,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,qBAAqB,CAAC,CAAC;IACpD,CAAC;AACJ,CAAC,CAAA;AAdY,QAAA,4BAA4B,gCAcxC"}
@@ -0,0 +1,24 @@
1
+ import { QueryPath } from '../interfaces/query';
2
+ /**
3
+ * Returns cached native select (asArry, asMap) for the given structure hash, or undefined.
4
+ * Caller receives copies so cache entries are never mutated.
5
+ */
6
+ export declare function getCachedNativeSelect(structureHash: string): {
7
+ asArry: string[];
8
+ asMap: Map<string, string>;
9
+ } | undefined;
10
+ /**
11
+ * Stores native select result for the given structure hash.
12
+ * Evicts oldest entry when at MAX_ENTRIES (LRU).
13
+ */
14
+ export declare function setCachedNativeSelect(structureHash: string, asArry: string[], asMap: Map<string, string>): void;
15
+ /**
16
+ * Returns cached join plan (array of QueryPath) for the given join structure hash.
17
+ * Paths are applied to a fresh QB each request – we never cache the QB or EntityManager.
18
+ */
19
+ export declare function getCachedJoinPlan(joinStructureHash: string): QueryPath[] | undefined;
20
+ /**
21
+ * Stores join plan (order of paths to apply) for the given join structure hash.
22
+ * Evicts oldest entry when at MAX_ENTRIES (LRU).
23
+ */
24
+ export declare function setCachedJoinPlan(joinStructureHash: string, paths: QueryPath[]): void;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCachedNativeSelect = getCachedNativeSelect;
4
+ exports.setCachedNativeSelect = setCachedNativeSelect;
5
+ exports.getCachedJoinPlan = getCachedJoinPlan;
6
+ exports.setCachedJoinPlan = setCachedJoinPlan;
7
+ const MAX_ENTRIES = 500;
8
+ const cache = new Map();
9
+ const keyOrder = [];
10
+ const joinPlanCache = new Map();
11
+ const joinPlanKeyOrder = [];
12
+ function evictOne() {
13
+ const oldest = keyOrder.shift();
14
+ if (oldest != null)
15
+ cache.delete(oldest);
16
+ }
17
+ /**
18
+ * Returns cached native select (asArry, asMap) for the given structure hash, or undefined.
19
+ * Caller receives copies so cache entries are never mutated.
20
+ */
21
+ function getCachedNativeSelect(structureHash) {
22
+ const entry = cache.get(structureHash);
23
+ if (!entry)
24
+ return undefined;
25
+ return {
26
+ asArry: [...entry.asArry],
27
+ asMap: new Map(entry.asMap),
28
+ };
29
+ }
30
+ /**
31
+ * Stores native select result for the given structure hash.
32
+ * Evicts oldest entry when at MAX_ENTRIES (LRU).
33
+ */
34
+ function setCachedNativeSelect(structureHash, asArry, asMap) {
35
+ if (cache.has(structureHash))
36
+ return;
37
+ if (keyOrder.length >= MAX_ENTRIES)
38
+ evictOne();
39
+ keyOrder.push(structureHash);
40
+ cache.set(structureHash, { asArry, asMap });
41
+ }
42
+ function evictOneJoinPlan() {
43
+ const oldest = joinPlanKeyOrder.shift();
44
+ if (oldest != null)
45
+ joinPlanCache.delete(oldest);
46
+ }
47
+ /**
48
+ * Returns cached join plan (array of QueryPath) for the given join structure hash.
49
+ * Paths are applied to a fresh QB each request – we never cache the QB or EntityManager.
50
+ */
51
+ function getCachedJoinPlan(joinStructureHash) {
52
+ return joinPlanCache.get(joinStructureHash);
53
+ }
54
+ /**
55
+ * Stores join plan (order of paths to apply) for the given join structure hash.
56
+ * Evicts oldest entry when at MAX_ENTRIES (LRU).
57
+ */
58
+ function setCachedJoinPlan(joinStructureHash, paths) {
59
+ if (joinPlanCache.has(joinStructureHash))
60
+ return;
61
+ if (joinPlanKeyOrder.length >= MAX_ENTRIES)
62
+ evictOneJoinPlan();
63
+ joinPlanKeyOrder.push(joinStructureHash);
64
+ joinPlanCache.set(joinStructureHash, paths);
65
+ }
66
+ //# sourceMappingURL=query-structure-cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-structure-cache.js","sourceRoot":"./","sources":["query/functions/query-structure-cache.ts"],"names":[],"mappings":";;AAwBA,sDASC;AAMD,sDASC;AAWD,8CAEC;AAMD,8CAKC;AAtED,MAAM,WAAW,GAAG,GAAG,CAAC;AAOxB,MAAM,KAAK,GAAG,IAAI,GAAG,EAA6B,CAAC;AACnD,MAAM,QAAQ,GAAa,EAAE,CAAC;AAE9B,MAAM,aAAa,GAAG,IAAI,GAAG,EAAuB,CAAC;AACrD,MAAM,gBAAgB,GAAa,EAAE,CAAC;AAEtC,SAAS,QAAQ;IACd,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;IAChC,IAAI,MAAM,IAAI,IAAI;QAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAC5C,CAAC;AAED;;;GAGG;AACH,SAAgB,qBAAqB,CAClC,aAAqB;IAErB,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACvC,IAAI,CAAC,KAAK;QAAE,OAA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ToColumnName = replacePropertyKeyToColumnName;
11
+ //# sourceMappingURL=replace-property-key-to-column-name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-property-key-to-column-name.js","sourceRoot":"./","sources":["query/functions/replace-property-key-to-column-name.ts"],"names":[],"mappings":";;;AAAO,MAAM,8BAA8B,GAAG,CAC3C,IAAY,EACZ,KAAa,EACb,WAAmB,EACnB,UAAkB,EACnB,EAAE;IACD,MAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IAC/D,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC;QAC7B,CAAC,CAAC,gBAAgB;QAClB,CAAC,CAAC,IAAI,CAAC;AACb,CAAC,CAAA;AAVY,QAAA,8BAA8B,kCAU1C"}
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./query-action-options"), exports);
18
18
  __exportStar(require("./query-object"), exports);
19
19
  __exportStar(require("./query"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"./","sources":["query/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,iDAA+B;AAC/B,0CAAwB"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=query-action-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-action-options.js","sourceRoot":"./","sources":["query/interfaces/query-action-options.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=query-object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-object.js","sourceRoot":"./","sources":["query/interfaces/query-object.ts"],"names":[],"mappings":""}
@@ -16,9 +16,37 @@ export type Query<Entity> = {
16
16
  data?: Entity[];
17
17
  page?: boolean;
18
18
  };
19
+ /**
20
+ * One object graph node that owns ≥1 selected external property (same reference TypeORM returned;
21
+ * mutate in place so `transform` sees the values).
22
+ */
23
+ export type ExternalColumnOwner = {
24
+ object: Record<string, unknown>;
25
+ /**
26
+ * Declared external column names on `object` (e.g. `person` when select is `user.person.id`).
27
+ * Not the nested leaf (`id`); the anchor property marked with ExternalColumn.
28
+ */
29
+ properties: string[];
30
+ };
31
+ /**
32
+ * Passed to {@link ExternalColumnBatchResolver} after `getMany()`, before `transform`.
33
+ * `owners` is deduped by object identity — batch-load once per unique node (e.g. all `InfraClient` rows).
34
+ */
35
+ export type ExternalColumnResolvePayload<Entity = any> = {
36
+ roots: Entity[];
37
+ externalSelectPaths: string[];
38
+ owners: ExternalColumnOwner[];
39
+ };
40
+ /**
41
+ * Called only when at least one external column is in the query select.
42
+ * Receives raw root rows from TypeORM and a flat list of owner objects that need those columns filled.
43
+ * Mutate `owners[].object` in place (or return new `roots`); then `transform` runs on `roots`.
44
+ */
45
+ export type ExternalColumnBatchResolver<Entity = any, ContextData = any> = (payload: ExternalColumnResolvePayload<Entity>, context: IQueryContent<Entity, ContextData>) => Promise<Entity[]>;
19
46
  export type IQueryContent<Entity, ContextData = any> = {
20
47
  userId?: string;
21
- naviteSelect?: string[];
48
+ nativeSelectAsArry?: string[];
49
+ nativeSelectAsMap?: Map<string, string>;
22
50
  parameters?: Record<string, any>;
23
51
  query: Query<Entity>;
24
52
  target: Instantiable;
@@ -40,13 +68,29 @@ export type QueryPath = {
40
68
  parent?: QueryPath;
41
69
  secure?: boolean;
42
70
  entityAlias: string;
43
- rootOrRelationFullPath?: string;
71
+ rootOrRelationPath?: string;
44
72
  };
45
73
  export type QueryProperty = {
46
74
  path: QueryPath;
47
75
  isUUID?: boolean;
48
76
  isArray?: boolean;
49
77
  isJson?: boolean;
78
+ /** When true, value is provided by external service; not selected from DB. */
79
+ isExternal?: boolean;
80
+ /** Resolved Injectable class from ExternalColumn(() => Resolver); used by executeQuery. */
81
+ externalResolver?: Instantiable;
82
+ /**
83
+ * Walk from each root row through these relation/embed keys to reach the owner of {@link externalColumnKey}.
84
+ * Empty when the owner is the root row.
85
+ */
86
+ externalOwnerWalkSegments?: string[];
87
+ /** External property on that owner (object or scalar). */
88
+ externalColumnKey?: string;
89
+ /**
90
+ * Full query paths (e.g. `infraServer.client.clientId`) that must be added to the SQL select when this
91
+ * external path is selected — same entity row, declared via ExternalColumnOptions.selectDependencies.
92
+ */
93
+ externalDependencyQueryPaths?: string[];
50
94
  name: string;
51
95
  type: PropertyType;
52
96
  fullPath: string;
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.js","sourceRoot":"./","sources":["query/interfaces/query.ts"],"names":[],"mappings":""}