@rockster/core 0.0.2 → 0.1.0

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 (501) hide show
  1. package/access/access.module.d.ts +11 -0
  2. package/access/access.module.js +56 -0
  3. package/access/access.module.js.map +1 -0
  4. package/access/constants.d.ts +2 -0
  5. package/access/constants.js +6 -0
  6. package/access/constants.js.map +1 -0
  7. package/access/controllers/controllers.d.ts +7 -0
  8. package/access/controllers/controllers.js +18 -0
  9. package/access/controllers/controllers.js.map +1 -0
  10. package/access/controllers/scope-access-profile.controller.d.ts +17 -0
  11. package/access/controllers/scope-access-profile.controller.js +111 -0
  12. package/access/controllers/scope-access-profile.controller.js.map +1 -0
  13. package/access/controllers/scope-group-user.controller.d.ts +20 -0
  14. package/access/controllers/scope-group-user.controller.js +132 -0
  15. package/access/controllers/scope-group-user.controller.js.map +1 -0
  16. package/access/controllers/scope-group.controller.d.ts +22 -0
  17. package/access/controllers/scope-group.controller.js +177 -0
  18. package/access/controllers/scope-group.controller.js.map +1 -0
  19. package/access/controllers/scope-key.controller.d.ts +7 -0
  20. package/access/controllers/scope-key.controller.js +45 -0
  21. package/access/controllers/scope-key.controller.js.map +1 -0
  22. package/access/controllers/scope-owner.controller.d.ts +9 -0
  23. package/access/controllers/scope-owner.controller.js +80 -0
  24. package/access/controllers/scope-owner.controller.js.map +1 -0
  25. package/access/controllers/scope-user.controller.d.ts +14 -0
  26. package/access/controllers/scope-user.controller.js +109 -0
  27. package/access/controllers/scope-user.controller.js.map +1 -0
  28. package/access/decorators/context-params.decorator.d.ts +2 -0
  29. package/access/decorators/context-params.decorator.js +13 -0
  30. package/access/decorators/context-params.decorator.js.map +1 -0
  31. package/access/decorators/index.d.ts +2 -0
  32. package/access/decorators/index.js +19 -0
  33. package/access/decorators/index.js.map +1 -0
  34. package/access/decorators/scope-context-id-resolver.decorator.d.ts +10 -0
  35. package/access/decorators/scope-context-id-resolver.decorator.js +22 -0
  36. package/access/decorators/scope-context-id-resolver.decorator.js.map +1 -0
  37. package/access/entities/entities.d.ts +8 -0
  38. package/access/entities/entities.js +22 -0
  39. package/access/entities/entities.js.map +1 -0
  40. package/access/entities/index.d.ts +7 -0
  41. package/access/entities/index.js +24 -0
  42. package/access/entities/index.js.map +1 -0
  43. package/access/entities/scope-access-profile-key.d.ts +6 -0
  44. package/access/entities/scope-access-profile-key.js +40 -0
  45. package/access/entities/scope-access-profile-key.js.map +1 -0
  46. package/access/entities/scope-access-profile.d.ts +6 -0
  47. package/access/entities/scope-access-profile.js +37 -0
  48. package/access/entities/scope-access-profile.js.map +1 -0
  49. package/access/entities/scope-access.d.ts +9 -0
  50. package/access/entities/scope-access.js +58 -0
  51. package/access/entities/scope-access.js.map +1 -0
  52. package/access/entities/scope-group-user.d.ts +7 -0
  53. package/access/entities/scope-group-user.js +47 -0
  54. package/access/entities/scope-group-user.js.map +1 -0
  55. package/access/entities/scope-group.d.ts +12 -0
  56. package/access/entities/scope-group.js +72 -0
  57. package/access/entities/scope-group.js.map +1 -0
  58. package/access/entities/scope-key.d.ts +5 -0
  59. package/access/entities/scope-key.js +35 -0
  60. package/access/entities/scope-key.js.map +1 -0
  61. package/access/entities/scope-owner.d.ts +7 -0
  62. package/access/entities/scope-owner.js +45 -0
  63. package/access/entities/scope-owner.js.map +1 -0
  64. package/access/env.d.ts +10 -0
  65. package/access/env.js +10 -0
  66. package/access/env.js.map +1 -0
  67. package/access/functions/assert-context-admin-access.d.ts +15 -0
  68. package/access/functions/assert-context-admin-access.js +62 -0
  69. package/access/functions/assert-context-admin-access.js.map +1 -0
  70. package/access/functions/assert-master-or-owner.d.ts +9 -0
  71. package/access/functions/assert-master-or-owner.js +40 -0
  72. package/access/functions/assert-master-or-owner.js.map +1 -0
  73. package/access/functions/assert-scope-action-access.d.ts +32 -0
  74. package/access/functions/assert-scope-action-access.js +189 -0
  75. package/access/functions/assert-scope-action-access.js.map +1 -0
  76. package/access/functions/build-scope-resolver-initial-data.d.ts +4 -0
  77. package/access/functions/build-scope-resolver-initial-data.js +17 -0
  78. package/access/functions/build-scope-resolver-initial-data.js.map +1 -0
  79. package/access/functions/describe-action-scope.d.ts +9 -0
  80. package/access/functions/describe-action-scope.js +27 -0
  81. package/access/functions/describe-action-scope.js.map +1 -0
  82. package/access/functions/get-context-id-service.d.ts +1 -0
  83. package/access/functions/get-context-id-service.js +8 -0
  84. package/access/functions/get-context-id-service.js.map +1 -0
  85. package/access/functions/get-is-owner.d.ts +1 -0
  86. package/access/functions/get-is-owner.js +8 -0
  87. package/access/functions/get-is-owner.js.map +1 -0
  88. package/access/functions/get-user-keys.d.ts +2 -0
  89. package/access/functions/get-user-keys.js +10 -0
  90. package/access/functions/get-user-keys.js.map +1 -0
  91. package/access/functions/index.d.ts +8 -0
  92. package/access/functions/index.js +25 -0
  93. package/access/functions/index.js.map +1 -0
  94. package/access/functions/init-scope-service-executors.d.ts +3 -0
  95. package/access/functions/init-scope-service-executors.js +38 -0
  96. package/access/functions/init-scope-service-executors.js.map +1 -0
  97. package/access/functions/normalize-scope-keys.d.ts +4 -0
  98. package/access/functions/normalize-scope-keys.js +17 -0
  99. package/access/functions/normalize-scope-keys.js.map +1 -0
  100. package/access/functions/register-scope.d.ts +19 -0
  101. package/access/functions/register-scope.js +94 -0
  102. package/access/functions/register-scope.js.map +1 -0
  103. package/access/functions/resolve-scope-context-id.d.ts +9 -0
  104. package/access/functions/resolve-scope-context-id.js +71 -0
  105. package/access/functions/resolve-scope-context-id.js.map +1 -0
  106. package/access/functions/warn-if-public.d.ts +12 -0
  107. package/access/functions/warn-if-public.js +20 -0
  108. package/access/functions/warn-if-public.js.map +1 -0
  109. package/access/index.d.ts +7 -0
  110. package/access/index.js +24 -0
  111. package/access/index.js.map +1 -0
  112. package/access/interfaces/index.d.ts +3 -0
  113. package/access/interfaces/index.js +20 -0
  114. package/access/interfaces/index.js.map +1 -0
  115. package/access/interfaces/resolve-scope-context-id.d.ts +21 -0
  116. package/access/interfaces/resolve-scope-context-id.js +3 -0
  117. package/access/interfaces/resolve-scope-context-id.js.map +1 -0
  118. package/access/interfaces/scope-service-registry.d.ts +21 -0
  119. package/access/interfaces/scope-service-registry.js +3 -0
  120. package/access/interfaces/scope-service-registry.js.map +1 -0
  121. package/access/interfaces/scope-service.d.ts +11 -0
  122. package/{database/interfaces/protector.js → access/interfaces/scope-service.js} +1 -1
  123. package/access/interfaces/scope-service.js.map +1 -0
  124. package/access/models/scope-access-profile-keys-update.d.ts +5 -0
  125. package/access/models/scope-access-profile-keys-update.js +27 -0
  126. package/access/models/scope-access-profile-keys-update.js.map +1 -0
  127. package/access/models/scope-context.d.ts +4 -0
  128. package/access/models/scope-context.js +27 -0
  129. package/access/models/scope-context.js.map +1 -0
  130. package/access/models/scope-group-apply-access-profile.d.ts +6 -0
  131. package/access/models/scope-group-apply-access-profile.js +32 -0
  132. package/access/models/scope-group-apply-access-profile.js.map +1 -0
  133. package/access/models/scope-keys-update.d.ts +7 -0
  134. package/access/models/scope-keys-update.js +38 -0
  135. package/access/models/scope-keys-update.js.map +1 -0
  136. package/access/models/scope-owner.d.ts +5 -0
  137. package/access/models/scope-owner.js +32 -0
  138. package/access/models/scope-owner.js.map +1 -0
  139. package/access/models/scope-user-mapped.d.ts +9 -0
  140. package/access/models/scope-user-mapped.js +48 -0
  141. package/access/models/scope-user-mapped.js.map +1 -0
  142. package/access/models/scope-user.d.ts +9 -0
  143. package/access/models/scope-user.js +51 -0
  144. package/access/models/scope-user.js.map +1 -0
  145. package/access/queries/scope-access-profile.query.d.ts +1 -0
  146. package/access/queries/scope-access-profile.query.js +10 -0
  147. package/access/queries/scope-access-profile.query.js.map +1 -0
  148. package/access/queries/scope-group-user.query.d.ts +1 -0
  149. package/access/queries/scope-group-user.query.js +26 -0
  150. package/access/queries/scope-group-user.query.js.map +1 -0
  151. package/access/queries/scope-group.query.d.ts +1 -0
  152. package/access/queries/scope-group.query.js +19 -0
  153. package/access/queries/scope-group.query.js.map +1 -0
  154. package/access/services/index.d.ts +7 -0
  155. package/access/services/index.js +24 -0
  156. package/access/services/index.js.map +1 -0
  157. package/access/services/scope-access-profile.service.d.ts +13 -0
  158. package/access/services/scope-access-profile.service.js +75 -0
  159. package/access/services/scope-access-profile.service.js.map +1 -0
  160. package/access/services/scope-access.service.d.ts +11 -0
  161. package/access/services/scope-access.service.js +89 -0
  162. package/access/services/scope-access.service.js.map +1 -0
  163. package/access/services/scope-group-user.service.d.ts +8 -0
  164. package/access/services/scope-group-user.service.js +49 -0
  165. package/access/services/scope-group-user.service.js.map +1 -0
  166. package/access/services/scope-group.service.d.ts +17 -0
  167. package/access/services/scope-group.service.js +75 -0
  168. package/access/services/scope-group.service.js.map +1 -0
  169. package/access/services/scope-key.service.d.ts +9 -0
  170. package/access/services/scope-key.service.js +52 -0
  171. package/access/services/scope-key.service.js.map +1 -0
  172. package/access/services/scope-owner.service.d.ts +10 -0
  173. package/access/services/scope-owner.service.js +60 -0
  174. package/access/services/scope-owner.service.js.map +1 -0
  175. package/access/services/scope-service.d.ts +10 -0
  176. package/access/services/scope-service.js +52 -0
  177. package/access/services/scope-service.js.map +1 -0
  178. package/command/functions/execute-post.js +5 -7
  179. package/command/functions/execute-post.js.map +1 -1
  180. package/command/services/post-action-builder.js +21 -17
  181. package/command/services/post-action-builder.js.map +1 -1
  182. package/command/services/remove-action-builder.js +32 -22
  183. package/command/services/remove-action-builder.js.map +1 -1
  184. package/common/entities/base-entity.js +2 -0
  185. package/common/entities/base-entity.js.map +1 -1
  186. package/common/interfaces/enum/object-type.d.ts +2 -1
  187. package/common/interfaces/enum/object-type.js +1 -0
  188. package/common/interfaces/enum/object-type.js.map +1 -1
  189. package/controllers/constants/controller-transaction.d.ts +2 -0
  190. package/controllers/constants/controller-transaction.js +6 -0
  191. package/controllers/constants/controller-transaction.js.map +1 -0
  192. package/controllers/controller.controller.d.ts +1 -1
  193. package/controllers/controller.controller.js +4 -4
  194. package/controllers/controller.controller.js.map +1 -1
  195. package/controllers/decorators/controller.decorator.js +8 -0
  196. package/controllers/decorators/controller.decorator.js.map +1 -1
  197. package/controllers/decorators/index.d.ts +1 -0
  198. package/controllers/decorators/index.js +1 -0
  199. package/controllers/decorators/index.js.map +1 -1
  200. package/controllers/decorators/transaction.decorator.d.ts +7 -0
  201. package/controllers/decorators/transaction.decorator.js +23 -0
  202. package/controllers/decorators/transaction.decorator.js.map +1 -0
  203. package/controllers/interfaces/controller-object.d.ts +1 -0
  204. package/controllers/interfaces/controller-options.d.ts +1 -0
  205. package/controllers/interfaces/controller-property.d.ts +9 -0
  206. package/controllers/services/default-action-builder.js +14 -0
  207. package/controllers/services/default-action-builder.js.map +1 -1
  208. package/controllers/services/restful-action-builder.js +25 -1
  209. package/controllers/services/restful-action-builder.js.map +1 -1
  210. package/core/contexts/request-context.d.ts +5 -0
  211. package/core/contexts/request-context.js +6 -0
  212. package/core/contexts/request-context.js.map +1 -0
  213. package/core/core.controller.d.ts +1 -0
  214. package/core/core.controller.js +15 -2
  215. package/core/core.controller.js.map +1 -1
  216. package/core/functions/create-interceptor.js +2 -2
  217. package/core/functions/create-interceptor.js.map +1 -1
  218. package/core/functions/resolve-action-transactional.d.ts +3 -0
  219. package/core/functions/resolve-action-transactional.js +10 -0
  220. package/core/functions/resolve-action-transactional.js.map +1 -0
  221. package/core/interfaces/action-def.d.ts +2 -5
  222. package/core/interfaces/action-docs.d.ts +15 -0
  223. package/core/interfaces/action-handle.d.ts +5 -0
  224. package/core/interfaces/action-handle.js +3 -0
  225. package/core/interfaces/action-handle.js.map +1 -0
  226. package/core/interfaces/core-options.d.ts +1 -0
  227. package/core/interfaces/interceptor.d.ts +1 -1
  228. package/core/interfaces/object.d.ts +3 -2
  229. package/core/interfaces/request-context.d.ts +7 -2
  230. package/core/services/request-executor.d.ts +8 -0
  231. package/core/services/request-executor.js +88 -0
  232. package/core/services/request-executor.js.map +1 -1
  233. package/core/services/request-router.js +5 -4
  234. package/core/services/request-router.js.map +1 -1
  235. package/database/database.controller.d.ts +1 -3
  236. package/database/database.controller.js +1 -5
  237. package/database/database.controller.js.map +1 -1
  238. package/database/decorators/entity.decorator.d.ts +3 -1
  239. package/database/decorators/entity.decorator.js +14 -5
  240. package/database/decorators/entity.decorator.js.map +1 -1
  241. package/database/decorators/external-column.decorator.d.ts +17 -0
  242. package/database/decorators/external-column.decorator.js +30 -0
  243. package/database/decorators/external-column.decorator.js.map +1 -0
  244. package/database/decorators/index.d.ts +1 -0
  245. package/database/decorators/index.js +1 -0
  246. package/database/decorators/index.js.map +1 -1
  247. package/database/decorators/protect-entity.decorator.d.ts +1 -0
  248. package/database/decorators/protect-entity.decorator.js +2 -3
  249. package/database/decorators/protect-entity.decorator.js.map +1 -1
  250. package/database/decorators/protected-entity.decorator.d.ts +1 -0
  251. package/database/decorators/protected-entity.decorator.js +2 -16
  252. package/database/decorators/protected-entity.decorator.js.map +1 -1
  253. package/database/decorators/relation.decorator.d.ts +2 -2
  254. package/database/decorators/relation.decorator.js.map +1 -1
  255. package/database/extensions/select-query-builder.d.ts +1 -5
  256. package/database/extensions/select-query-builder.js.map +1 -1
  257. package/database/functions/find-relation.d.ts +2 -1
  258. package/database/functions/find-relation.js +3 -3
  259. package/database/functions/find-relation.js.map +1 -1
  260. package/database/functions/generate-entity-id.d.ts +2 -0
  261. package/database/functions/{generate-id.js → generate-entity-id.js} +3 -3
  262. package/database/functions/generate-entity-id.js.map +1 -0
  263. package/database/functions/get-relations.d.ts +1 -1
  264. package/database/functions/inject-repository-handle.js +4 -3
  265. package/database/functions/inject-repository-handle.js.map +1 -1
  266. package/database/functions/use-transaction.d.ts +1 -0
  267. package/database/functions/use-transaction.js +2 -6
  268. package/database/functions/use-transaction.js.map +1 -1
  269. package/database/interfaces/entity-dto-object.d.ts +7 -0
  270. package/database/interfaces/entity-dto-object.js +3 -0
  271. package/database/interfaces/entity-dto-object.js.map +1 -0
  272. package/database/interfaces/entity-object.d.ts +0 -6
  273. package/database/interfaces/entity-property.d.ts +12 -0
  274. package/database/interfaces/index.d.ts +0 -1
  275. package/database/interfaces/index.js +0 -1
  276. package/database/interfaces/index.js.map +1 -1
  277. package/database/interfaces/path.d.ts +6 -2
  278. package/database/interfaces/repository.d.ts +8 -8
  279. package/database/interfaces/virtual-select.d.ts +4 -0
  280. package/database/interfaces/virtual-select.js +3 -0
  281. package/database/interfaces/virtual-select.js.map +1 -0
  282. package/database/services/repository.service.d.ts +1 -1
  283. package/database/services/repository.service.js +3 -6
  284. package/database/services/repository.service.js.map +1 -1
  285. package/docs/docs.module.js +3 -1
  286. package/docs/docs.module.js.map +1 -1
  287. package/docs/migrations/1747584000000-CreateDocsTables.d.ts +5 -0
  288. package/docs/migrations/1747584000000-CreateDocsTables.js +90 -0
  289. package/docs/migrations/1747584000000-CreateDocsTables.js.map +1 -0
  290. package/docs/migrations/migrations.d.ts +2 -0
  291. package/docs/migrations/migrations.js +8 -0
  292. package/docs/migrations/migrations.js.map +1 -0
  293. package/docs/queries/docs-controller-action.query.d.ts +1 -1
  294. package/docs/queries/docs-controller.query.d.ts +1 -1
  295. package/docs/queries/docs-model.query.d.ts +1 -1
  296. package/docs/queries/docs-model.query.js +1 -1
  297. package/docs/queries/docs-model.query.js.map +1 -1
  298. package/docs/queries/docs-version.query.d.ts +1 -1
  299. package/docs/services/docs-version.service.js +6 -3
  300. package/docs/services/docs-version.service.js.map +1 -1
  301. package/forms/queries/form.query.d.ts +1 -1
  302. package/forms/queries/property.query.d.ts +1 -1
  303. package/global.d.ts +2 -0
  304. package/global.js +2 -1
  305. package/global.js.map +1 -1
  306. package/http/http.controller.d.ts +2 -0
  307. package/http/http.controller.js +3 -2
  308. package/http/http.controller.js.map +1 -1
  309. package/index.d.ts +5 -2
  310. package/index.js +4 -7
  311. package/index.js.map +1 -1
  312. package/jobs/jobs.controller.d.ts +2 -0
  313. package/jobs/jobs.controller.js +22 -16
  314. package/jobs/jobs.controller.js.map +1 -1
  315. package/package.json +70 -69
  316. package/query/functions/add-join.js +8 -16
  317. package/query/functions/add-join.js.map +1 -1
  318. package/query/functions/collect-external-column-owners.d.ts +10 -0
  319. package/query/functions/collect-external-column-owners.js +100 -0
  320. package/query/functions/collect-external-column-owners.js.map +1 -0
  321. package/query/functions/create-query-builder.js +47 -28
  322. package/query/functions/create-query-builder.js.map +1 -1
  323. package/query/functions/create-query-cache-hash.d.ts +16 -0
  324. package/query/functions/create-query-cache-hash.js +70 -0
  325. package/query/functions/create-query-cache-hash.js.map +1 -0
  326. package/query/functions/create-query.d.ts +8 -3
  327. package/query/functions/create-query.js +12 -9
  328. package/query/functions/create-query.js.map +1 -1
  329. package/query/functions/describe-query-filter.js +3 -2
  330. package/query/functions/describe-query-filter.js.map +1 -1
  331. package/query/functions/execute-query.js +89 -9
  332. package/query/functions/execute-query.js.map +1 -1
  333. package/query/functions/expand-select-with-external-dependencies.d.ts +9 -0
  334. package/query/functions/expand-select-with-external-dependencies.js +34 -0
  335. package/query/functions/expand-select-with-external-dependencies.js.map +1 -0
  336. package/query/functions/external-column-owner-path.d.ts +5 -0
  337. package/query/functions/external-column-owner-path.js +18 -0
  338. package/query/functions/external-column-owner-path.js.map +1 -0
  339. package/query/functions/get-entity-object-class.d.ts +2 -0
  340. package/query/functions/get-entity-object-class.js +12 -0
  341. package/query/functions/get-entity-object-class.js.map +1 -0
  342. package/query/functions/get-native-select.js +3 -0
  343. package/query/functions/get-native-select.js.map +1 -1
  344. package/query/functions/load-properties.d.ts +20 -2
  345. package/query/functions/load-properties.js +190 -40
  346. package/query/functions/load-properties.js.map +1 -1
  347. package/query/functions/map-query-property-to-column-name.js +1 -1
  348. package/query/functions/map-query-property-to-column-name.js.map +1 -1
  349. package/query/functions/query-structure-cache.d.ts +24 -0
  350. package/query/functions/query-structure-cache.js +66 -0
  351. package/query/functions/query-structure-cache.js.map +1 -0
  352. package/query/interfaces/query.d.ts +44 -1
  353. package/query/services/query-action-builder.d.ts +4 -1
  354. package/query/services/query-action-builder.js +26 -12
  355. package/query/services/query-action-builder.js.map +1 -1
  356. package/remote-logs/dtos/index.d.ts +2 -0
  357. package/remote-logs/dtos/index.js +19 -0
  358. package/remote-logs/dtos/index.js.map +1 -0
  359. package/remote-logs/dtos/remote-log-hooks.dto.d.ts +72 -0
  360. package/remote-logs/dtos/remote-log-hooks.dto.js +280 -0
  361. package/remote-logs/dtos/remote-log-hooks.dto.js.map +1 -0
  362. package/remote-logs/dtos/remote-log-search.dto.d.ts +34 -0
  363. package/remote-logs/dtos/remote-log-search.dto.js +146 -0
  364. package/remote-logs/dtos/remote-log-search.dto.js.map +1 -0
  365. package/remote-logs/environment.d.ts +4 -0
  366. package/remote-logs/environment.js +5 -0
  367. package/remote-logs/environment.js.map +1 -0
  368. package/remote-logs/index.d.ts +3 -0
  369. package/remote-logs/index.js +20 -0
  370. package/remote-logs/index.js.map +1 -0
  371. package/remote-logs/interfaces/index.d.ts +1 -0
  372. package/remote-logs/interfaces/index.js +18 -0
  373. package/remote-logs/interfaces/index.js.map +1 -0
  374. package/remote-logs/interfaces/remote-logs-module-options.d.ts +8 -0
  375. package/remote-logs/interfaces/remote-logs-module-options.js +3 -0
  376. package/remote-logs/interfaces/remote-logs-module-options.js.map +1 -0
  377. package/remote-logs/remote-logs-hooks.controller.d.ts +60 -0
  378. package/remote-logs/remote-logs-hooks.controller.js +331 -0
  379. package/remote-logs/remote-logs-hooks.controller.js.map +1 -0
  380. package/remote-logs/remote-logs.controller.d.ts +8 -0
  381. package/remote-logs/remote-logs.controller.js +41 -0
  382. package/remote-logs/remote-logs.controller.js.map +1 -0
  383. package/remote-logs/remote-logs.module.d.ts +12 -0
  384. package/remote-logs/remote-logs.module.js +107 -0
  385. package/remote-logs/remote-logs.module.js.map +1 -0
  386. package/remote-logs/services/opensearch.service.d.ts +13 -0
  387. package/remote-logs/services/opensearch.service.js +167 -0
  388. package/remote-logs/services/opensearch.service.js.map +1 -0
  389. package/security/auth.controller.js +4 -4
  390. package/security/auth.controller.js.map +1 -1
  391. package/security/env.js.map +1 -1
  392. package/security/functions/add-protected.d.ts +2 -2
  393. package/security/functions/add-protected.js +8 -5
  394. package/security/functions/add-protected.js.map +1 -1
  395. package/security/functions/create-authentication-interceptor.d.ts +44 -0
  396. package/security/functions/create-authentication-interceptor.js +114 -0
  397. package/security/functions/create-authentication-interceptor.js.map +1 -0
  398. package/security/functions/find-auth-context.d.ts +1 -2
  399. package/security/functions/find-auth-context.js +6 -11
  400. package/security/functions/find-auth-context.js.map +1 -1
  401. package/security/index.d.ts +1 -0
  402. package/security/index.js +1 -0
  403. package/security/index.js.map +1 -1
  404. package/security/interfaces/authorization-schema.d.ts +3 -1
  405. package/security/requests/security.request.js +1 -1
  406. package/security/requests/security.request.js.map +1 -1
  407. package/security/services/authorization.service.d.ts +5 -3
  408. package/security/services/authorization.service.js +56 -37
  409. package/security/services/authorization.service.js.map +1 -1
  410. package/storage/services/routes.service.js +1 -1
  411. package/storage/services/routes.service.js.map +1 -1
  412. package/tasks/constants.d.ts +3 -0
  413. package/tasks/constants.js +2 -1
  414. package/tasks/constants.js.map +1 -1
  415. package/tasks/controllers/task.controller.d.ts +3 -2
  416. package/tasks/controllers/task.controller.js +11 -40
  417. package/tasks/controllers/task.controller.js.map +1 -1
  418. package/tasks/decorators/index.d.ts +1 -0
  419. package/tasks/decorators/index.js +1 -0
  420. package/tasks/decorators/index.js.map +1 -1
  421. package/tasks/decorators/task-payload.decorator.d.ts +1 -0
  422. package/tasks/decorators/task-payload.decorator.js +12 -0
  423. package/tasks/decorators/task-payload.decorator.js.map +1 -0
  424. package/tasks/decorators/task.decorator.js +6 -2
  425. package/tasks/decorators/task.decorator.js.map +1 -1
  426. package/tasks/functions/compile-all-task-post-hooks.d.ts +1 -0
  427. package/tasks/functions/compile-all-task-post-hooks.js +27 -0
  428. package/tasks/functions/compile-all-task-post-hooks.js.map +1 -0
  429. package/tasks/functions/compile-task-hook-handle.d.ts +6 -0
  430. package/tasks/functions/compile-task-hook-handle.js +67 -0
  431. package/tasks/functions/compile-task-hook-handle.js.map +1 -0
  432. package/tasks/functions/create-task-hook.d.ts +9 -0
  433. package/tasks/functions/create-task-hook.js +13 -0
  434. package/tasks/functions/create-task-hook.js.map +1 -0
  435. package/tasks/functions/{create-task-message-receptor.d.ts → create-task-message-post.d.ts} +1 -1
  436. package/tasks/functions/{create-task-message-receptor.js → create-task-message-post.js} +10 -3
  437. package/tasks/functions/create-task-message-post.js.map +1 -0
  438. package/tasks/functions/register-task-post-hook-interceptors.d.ts +3 -0
  439. package/tasks/functions/register-task-post-hook-interceptors.js +86 -0
  440. package/tasks/functions/register-task-post-hook-interceptors.js.map +1 -0
  441. package/tasks/functions/run-task-post-hooks.d.ts +11 -0
  442. package/tasks/functions/run-task-post-hooks.js +18 -0
  443. package/tasks/functions/run-task-post-hooks.js.map +1 -0
  444. package/tasks/functions/task-message-operations.d.ts +18 -0
  445. package/tasks/functions/task-message-operations.js +100 -0
  446. package/tasks/functions/task-message-operations.js.map +1 -0
  447. package/tasks/functions/validate-task-payload.d.ts +2 -0
  448. package/tasks/functions/validate-task-payload.js +19 -0
  449. package/tasks/functions/validate-task-payload.js.map +1 -0
  450. package/tasks/hook-constants.d.ts +2 -0
  451. package/tasks/hook-constants.js +6 -0
  452. package/tasks/hook-constants.js.map +1 -0
  453. package/tasks/index.d.ts +3 -0
  454. package/tasks/index.js +3 -0
  455. package/tasks/index.js.map +1 -1
  456. package/tasks/interfaces/compiled-task-post-hooks.d.ts +17 -0
  457. package/tasks/interfaces/compiled-task-post-hooks.js +3 -0
  458. package/tasks/interfaces/compiled-task-post-hooks.js.map +1 -0
  459. package/tasks/interfaces/index.d.ts +3 -0
  460. package/tasks/interfaces/index.js +3 -0
  461. package/tasks/interfaces/index.js.map +1 -1
  462. package/tasks/interfaces/task-hook.d.ts +16 -0
  463. package/tasks/interfaces/task-hook.js +8 -0
  464. package/tasks/interfaces/task-hook.js.map +1 -0
  465. package/tasks/interfaces/task-object.d.ts +6 -2
  466. package/tasks/interfaces/task-post-hook.d.ts +2 -0
  467. package/tasks/interfaces/task-post-hook.js +3 -0
  468. package/tasks/interfaces/task-post-hook.js.map +1 -0
  469. package/tasks/interfaces/task-post-intercept.d.ts +1 -8
  470. package/tasks/interfaces/task-runner.d.ts +2 -1
  471. package/tasks/interfaces/task-settings.d.ts +7 -0
  472. package/tasks/services/task-runner.service.d.ts +24 -3
  473. package/tasks/services/task-runner.service.js +68 -28
  474. package/tasks/services/task-runner.service.js.map +1 -1
  475. package/translations/controllers/translation.controller.js +12 -9
  476. package/translations/controllers/translation.controller.js.map +1 -1
  477. package/translations/functions/create-translation-values.js +2 -5
  478. package/translations/functions/create-translation-values.js.map +1 -1
  479. package/translations/migrations/1723760669185-CreateTranslationTables.js +3 -3
  480. package/translations/migrations/1723760669185-CreateTranslationTables.js.map +1 -1
  481. package/translations/queries/translation-config.query.d.ts +1 -1
  482. package/translations/queries/translation-values.query.d.ts +1 -1
  483. package/translations/queries/translation-values.query.js +1 -1
  484. package/translations/queries/translation-values.query.js.map +1 -1
  485. package/translations/translations.controller.d.ts +1 -1
  486. package/translations/translations.controller.js +4 -4
  487. package/translations/translations.controller.js.map +1 -1
  488. package/database/functions/generate-id.d.ts +0 -2
  489. package/database/functions/generate-id.js.map +0 -1
  490. package/database/functions/use-protector.d.ts +0 -2
  491. package/database/functions/use-protector.js +0 -11
  492. package/database/functions/use-protector.js.map +0 -1
  493. package/database/interfaces/protector.d.ts +0 -51
  494. package/database/interfaces/protector.js.map +0 -1
  495. package/database/services/protect-builder.d.ts +0 -59
  496. package/database/services/protect-builder.js +0 -524
  497. package/database/services/protect-builder.js.map +0 -1
  498. package/security/functions/add-protect.d.ts +0 -2
  499. package/security/functions/add-protect.js +0 -11
  500. package/security/functions/add-protect.js.map +0 -1
  501. package/tasks/functions/create-task-message-receptor.js.map +0 -1
@@ -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,OAAO,SAAS,CAAC;IAC7B,OAAO;QACJ,MAAM,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;QACzB,KAAK,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC;KAC7B,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,SAAgB,qBAAqB,CAClC,aAAqB,EACrB,MAAgB,EAChB,KAA0B;IAE1B,IAAI,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC;QAAE,OAAO;IACrC,IAAI,QAAQ,CAAC,MAAM,IAAI,WAAW;QAAE,QAAQ,EAAE,CAAC;IAC/C,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC7B,KAAK,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,gBAAgB;IACtB,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC;IACxC,IAAI,MAAM,IAAI,IAAI;QAAE,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC;AAED;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,iBAAyB;IACxD,OAAO,aAAa,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAC/C,CAAC;AAED;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,iBAAyB,EAAE,KAAkB;IAC5E,IAAI,aAAa,CAAC,GAAG,CAAC,iBAAiB,CAAC;QAAE,OAAO;IACjD,IAAI,gBAAgB,CAAC,MAAM,IAAI,WAAW;QAAE,gBAAgB,EAAE,CAAC;IAC/D,gBAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACzC,aAAa,CAAC,GAAG,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC"}
@@ -16,6 +16,33 @@ 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
48
  nativeSelectAsArry?: string[];
@@ -41,13 +68,29 @@ export type QueryPath = {
41
68
  parent?: QueryPath;
42
69
  secure?: boolean;
43
70
  entityAlias: string;
44
- rootOrRelationFullPath?: string;
71
+ rootOrRelationPath?: string;
45
72
  };
46
73
  export type QueryProperty = {
47
74
  path: QueryPath;
48
75
  isUUID?: boolean;
49
76
  isArray?: boolean;
50
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[];
51
94
  name: string;
52
95
  type: PropertyType;
53
96
  fullPath: string;
@@ -1,8 +1,11 @@
1
1
  import { ObjectNote, PropertyNote } from "@rockster/class-memory";
2
2
  import { IControllerObject, IControllerProperty } from "../../controllers/interfaces";
3
- import { ExecuteInterceptorHandle, IActionDocs, PendingAction, IRequestContext } from "../../core";
4
3
  import { ExecutorData } from "@rockster/class-injector/interfaces";
5
4
  import { Dictionary } from "@rockster/common";
5
+ import { ExecuteInterceptorHandle } from "../../core/interfaces/interceptor";
6
+ import { IActionDocs } from "../../core/interfaces/action-docs";
7
+ import { PendingAction } from "../../core/interfaces/pending-action";
8
+ import { IRequestContext } from "../../core/interfaces/request-context";
6
9
  export declare class QueryActionBuilder {
7
10
  protected beforeInterceptors: Dictionary<ExecuteInterceptorHandle>;
8
11
  protected afterInterceptors: Dictionary<ExecuteInterceptorHandle>;
@@ -9,13 +9,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.QueryActionBuilder = void 0;
10
10
  const class_injector_1 = require("@rockster/class-injector");
11
11
  const interfaces_1 = require("../../controllers/interfaces");
12
- const core_1 = require("../../core");
13
12
  const class_pipe_1 = require("@rockster/class-pipe");
14
13
  const constants_1 = require("../constants");
14
+ const interceptor_1 = require("../../core/interfaces/interceptor");
15
15
  const constants_2 = require("../../controllers/constants");
16
16
  const describe_query_filter_1 = require("../functions/describe-query-filter");
17
17
  const web_socket_1 = require("../../web-socket");
18
18
  const docs_1 = require("@rockster/common/docs");
19
+ const get_action_path_1 = require("../../core/functions/get-action-path");
20
+ const create_interceptor_1 = require("../../core/functions/create-interceptor");
21
+ const create_action_1 = require("../../core/functions/create-action");
22
+ const assert_scope_action_access_1 = require("../../access/functions/assert-scope-action-access");
23
+ const warn_if_public_1 = require("../../access/functions/warn-if-public");
24
+ const describe_action_scope_1 = require("../../access/functions/describe-action-scope");
25
+ const resolve_action_transactional_1 = require("../../core/functions/resolve-action-transactional");
19
26
  let QueryActionBuilder = class QueryActionBuilder {
20
27
  constructor() {
21
28
  this.beforeInterceptors = {};
@@ -33,28 +40,27 @@ let QueryActionBuilder = class QueryActionBuilder {
33
40
  for (const property of properties) {
34
41
  const isSecure = !property.public;
35
42
  const name = property.name || property.propertyKey;
36
- const path = (0, core_1.getActionPath)(object.alias, name);
43
+ const path = (0, get_action_path_1.getActionPath)(object.alias, name);
44
+ (0, warn_if_public_1.warnIfPublic)(path, property);
37
45
  this.beforeInterceptors[path] =
38
- (0, core_1.createExecuteInterceptors)([core_1.commonInterceptor.onBeforeExecute], object, property);
46
+ (0, create_interceptor_1.createExecuteInterceptors)([interceptor_1.commonInterceptor.onBeforeExecute], object, property);
39
47
  this.afterInterceptors[path] =
40
- (0, core_1.createExecuteInterceptors)([core_1.commonInterceptor.onAfterExecute], object, property);
48
+ (0, create_interceptor_1.createExecuteInterceptors)([interceptor_1.commonInterceptor.onAfterExecute], object, property);
41
49
  this.beforeValidationInterceptors[path] =
42
- (0, core_1.createExecuteInterceptors)([interfaces_1.requestInterceptor.onBeforeValidation], object, property);
43
- (0, core_1.createAction)({
50
+ (0, create_interceptor_1.createExecuteInterceptors)([interfaces_1.requestInterceptor.onBeforeValidation], object, property);
51
+ (0, create_action_1.createAction)({
44
52
  objectClass: object.objectClass,
45
53
  path: path,
46
54
  name: name,
47
55
  secure: isSecure,
56
+ transactional: (0, resolve_action_transactional_1.resolveActionTransactional)(object, property),
48
57
  execute: async (action, context) => {
49
- return this
50
- .execute(action, context, data.executors[name], property);
58
+ return this.execute(action, context, data.executors[name], property);
51
59
  },
52
60
  onBefore: async (action, context) => {
53
- return this
54
- .onBefore(action, context, property);
61
+ return this.onBefore(action, context, property);
55
62
  },
56
- docs: this
57
- .createDocs(object, property, name, path, isSecure)
63
+ docs: this.createDocs(object, property, name, path, isSecure)
58
64
  });
59
65
  }
60
66
  }
@@ -72,6 +78,8 @@ let QueryActionBuilder = class QueryActionBuilder {
72
78
  path: path,
73
79
  description: property.description,
74
80
  isSecure: isSecure,
81
+ authenticated: property.authenticated,
82
+ keys: (0, describe_action_scope_1.describeActionScopeKeys)(property),
75
83
  payload: Payload,
76
84
  response: Response,
77
85
  exposeGroups: property.exposeGroups,
@@ -81,6 +89,12 @@ let QueryActionBuilder = class QueryActionBuilder {
81
89
  };
82
90
  }
83
91
  async onBefore(pending, context, property) {
92
+ await (0, assert_scope_action_access_1.assertScopeActionAccess)({
93
+ property,
94
+ slot: "query",
95
+ pending,
96
+ context,
97
+ });
84
98
  if (property.data) {
85
99
  const payload = context.request[pending.requestRef];
86
100
  await this.beforeValidationInterceptors[pending.path]({
@@ -1 +1 @@
1
- {"version":3,"file":"query-action-builder.js","sourceRoot":"./","sources":["query/services/query-action-builder.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6DAGkC;AAKlC,6DAIsC;AACtC,qCASoB;AAEpB,qDAAgD;AAEhD,4CAGsB;AACtB,2DAAkE;AAKlE,8EAAyE;AACzE,iDAAiD;AACjD,gDAAiE;AAG1D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAAxB;QAEM,uBAAkB,GAAyC,EAAE,CAAC;QAC9D,sBAAiB,GAAyC,EAAE,CAAC;QAC7D,iCAA4B,GAAyC,EAAE,CAAC;IAyLrF,CAAC;IAvLE,KAAK,CAAC,MAAM,CAAC,MAAqC;QAC/C,MAAM,IAAI,GAAG,MACV,IAAA,gCAAe,EACZ,MAAM,CAAC,WAAW,CACpB,CAAC;QACL,MAAM,UAAU,GAAG,IAAI;aACnB,OAAO;aACP,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC;aACjC,MAAM,CAAC,CAAC,QAA2C,EAAE,EAAE;YACrD,OAAO,QAAQ,CAAC,UAAU,KAAK,6BAAiB,CAAC;QACpD,CAAC,CACkC,CAAC;QACvC,KAAK,MAAM,QAAQ,IAAI,UAAU,EAAE,CAAC;YACjC,MAAM,QAAQ,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC;YAClC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,WAAW,CAAC;YACnD,MAAM,IAAI,GAAG,IAAA,oBAAa,EAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YAC/C,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;gBAC1B,IAAA,gCAAyB,EACtB,CAAC,wBAAiB,CAAC,eAAe,CAAC,EACnC,MAAM,EACN,QAAQ,CACV,CAAC;YACL,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;gBACzB,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AAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;QAE9C,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACxC,MAAM,EAAE,OAAO;YACf,OAAO;YACP,QAAQ;SACV,EAAE,IAAI,CAAC,CAAC;IACZ,CAAC;CACH,CAAA;AA3NY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,2BAAU,GAAE;GACA,kBAAkB,CA2N9B"}
@@ -0,0 +1,2 @@
1
+ export * from './remote-log-search.dto';
2
+ export * from './remote-log-hooks.dto';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./remote-log-search.dto"), exports);
18
+ __exportStar(require("./remote-log-hooks.dto"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"./","sources":["remote-logs/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,yDAAuC"}
@@ -0,0 +1,72 @@
1
+ import { ILogSettings, LogClearInterval, LogHookConditionMode, LogLevel } from '@rockster/common/logs';
2
+ import { RemoteLogSearchResponseDto } from './remote-log-search.dto';
3
+ export declare class RemoteLogHookQueryDto {
4
+ appId?: string;
5
+ }
6
+ export declare class RemoteLogHookPostDto {
7
+ id?: string;
8
+ appId: string;
9
+ url: string;
10
+ name?: string;
11
+ displayName?: string;
12
+ enabled: boolean;
13
+ conditionMode: LogHookConditionMode;
14
+ logTypes?: string[];
15
+ conditionQuery?: Record<string, unknown>;
16
+ aggregatorQuery?: Record<string, unknown>;
17
+ groupByField?: string;
18
+ }
19
+ export declare class RemoteLogHookRemoveDto {
20
+ appId: string;
21
+ id: string;
22
+ }
23
+ export declare class RemoteLogHookOkDto {
24
+ ok: boolean;
25
+ id?: string;
26
+ }
27
+ export declare class RemoteLogSettingsQueryDto {
28
+ }
29
+ export declare class RemoteLogSettingsPostDto implements ILogSettings {
30
+ id?: string;
31
+ appId?: string | null;
32
+ clearInterval: LogClearInterval;
33
+ logLevel: LogLevel;
34
+ }
35
+ export declare class RemoteLogSettingsRemoveDto {
36
+ id: string;
37
+ }
38
+ export declare class RemoteLogSettingsResponseDto implements ILogSettings {
39
+ id?: string;
40
+ appId?: string | null;
41
+ clearInterval: LogClearInterval;
42
+ logLevel: LogLevel;
43
+ date?: string;
44
+ }
45
+ export declare class RemoteLogSettingsListResponseDto {
46
+ settings: RemoteLogSettingsResponseDto[];
47
+ }
48
+ export declare class RemoteLogAppsQueryDto {
49
+ search?: string;
50
+ size?: number;
51
+ }
52
+ export declare class RemoteLogAppResponseDto {
53
+ appId: string;
54
+ date?: string;
55
+ }
56
+ export declare class RemoteLogAppsListResponseDto {
57
+ apps: RemoteLogAppResponseDto[];
58
+ }
59
+ export declare class RemoteLogEventsQueryDto {
60
+ appId: string;
61
+ hookId?: string;
62
+ fromDate?: string;
63
+ toDate?: string;
64
+ size?: number;
65
+ includeAggregations?: boolean;
66
+ }
67
+ export declare class RemoteLogEventReadDto {
68
+ appId: string;
69
+ id: string;
70
+ }
71
+ export declare class RemoteLogEventsQueryResponseDto extends RemoteLogSearchResponseDto {
72
+ }
@@ -0,0 +1,280 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.RemoteLogEventsQueryResponseDto = exports.RemoteLogEventReadDto = exports.RemoteLogEventsQueryDto = exports.RemoteLogAppsListResponseDto = exports.RemoteLogAppResponseDto = exports.RemoteLogAppsQueryDto = exports.RemoteLogSettingsListResponseDto = exports.RemoteLogSettingsResponseDto = exports.RemoteLogSettingsRemoveDto = exports.RemoteLogSettingsPostDto = exports.RemoteLogSettingsQueryDto = exports.RemoteLogHookOkDto = exports.RemoteLogHookRemoveDto = exports.RemoteLogHookPostDto = exports.RemoteLogHookQueryDto = void 0;
13
+ const class_pipe_1 = require("@rockster/class-pipe");
14
+ const logs_1 = require("@rockster/common/logs");
15
+ const remote_log_search_dto_1 = require("./remote-log-search.dto");
16
+ class RemoteLogHookQueryDto {
17
+ }
18
+ exports.RemoteLogHookQueryDto = RemoteLogHookQueryDto;
19
+ __decorate([
20
+ (0, class_pipe_1.Expose)(),
21
+ (0, class_pipe_1.IsOptional)(),
22
+ (0, class_pipe_1.IsString)({ empty: true }),
23
+ __metadata("design:type", String)
24
+ ], RemoteLogHookQueryDto.prototype, "appId", void 0);
25
+ class RemoteLogHookPostDto {
26
+ }
27
+ exports.RemoteLogHookPostDto = RemoteLogHookPostDto;
28
+ __decorate([
29
+ (0, class_pipe_1.Expose)(),
30
+ (0, class_pipe_1.IsOptional)(),
31
+ (0, class_pipe_1.IsString)(),
32
+ __metadata("design:type", String)
33
+ ], RemoteLogHookPostDto.prototype, "id", void 0);
34
+ __decorate([
35
+ (0, class_pipe_1.Expose)(),
36
+ (0, class_pipe_1.IsString)(),
37
+ __metadata("design:type", String)
38
+ ], RemoteLogHookPostDto.prototype, "appId", void 0);
39
+ __decorate([
40
+ (0, class_pipe_1.Expose)(),
41
+ (0, class_pipe_1.IsString)(),
42
+ __metadata("design:type", String)
43
+ ], RemoteLogHookPostDto.prototype, "url", void 0);
44
+ __decorate([
45
+ (0, class_pipe_1.Expose)(),
46
+ (0, class_pipe_1.IsOptional)(),
47
+ (0, class_pipe_1.IsString)(),
48
+ __metadata("design:type", String)
49
+ ], RemoteLogHookPostDto.prototype, "name", void 0);
50
+ __decorate([
51
+ (0, class_pipe_1.Expose)(),
52
+ (0, class_pipe_1.IsOptional)(),
53
+ (0, class_pipe_1.IsString)(),
54
+ __metadata("design:type", String)
55
+ ], RemoteLogHookPostDto.prototype, "displayName", void 0);
56
+ __decorate([
57
+ (0, class_pipe_1.Expose)(),
58
+ (0, class_pipe_1.IsBoolean)(),
59
+ __metadata("design:type", Boolean)
60
+ ], RemoteLogHookPostDto.prototype, "enabled", void 0);
61
+ __decorate([
62
+ (0, class_pipe_1.Expose)(),
63
+ (0, class_pipe_1.IsIn)(Object.values(logs_1.LogHookConditionMode)),
64
+ __metadata("design:type", String)
65
+ ], RemoteLogHookPostDto.prototype, "conditionMode", void 0);
66
+ __decorate([
67
+ (0, class_pipe_1.Expose)(),
68
+ (0, class_pipe_1.IsOptional)(),
69
+ (0, class_pipe_1.IsArray)(),
70
+ __metadata("design:type", Array)
71
+ ], RemoteLogHookPostDto.prototype, "logTypes", void 0);
72
+ __decorate([
73
+ (0, class_pipe_1.Expose)(),
74
+ (0, class_pipe_1.IsOptional)(),
75
+ (0, class_pipe_1.IsObject)(),
76
+ __metadata("design:type", Object)
77
+ ], RemoteLogHookPostDto.prototype, "conditionQuery", void 0);
78
+ __decorate([
79
+ (0, class_pipe_1.Expose)(),
80
+ (0, class_pipe_1.IsOptional)(),
81
+ (0, class_pipe_1.IsObject)(),
82
+ __metadata("design:type", Object)
83
+ ], RemoteLogHookPostDto.prototype, "aggregatorQuery", void 0);
84
+ __decorate([
85
+ (0, class_pipe_1.Expose)(),
86
+ (0, class_pipe_1.IsOptional)(),
87
+ (0, class_pipe_1.IsString)(),
88
+ __metadata("design:type", String)
89
+ ], RemoteLogHookPostDto.prototype, "groupByField", void 0);
90
+ class RemoteLogHookRemoveDto {
91
+ }
92
+ exports.RemoteLogHookRemoveDto = RemoteLogHookRemoveDto;
93
+ __decorate([
94
+ (0, class_pipe_1.Expose)(),
95
+ (0, class_pipe_1.IsString)(),
96
+ __metadata("design:type", String)
97
+ ], RemoteLogHookRemoveDto.prototype, "appId", void 0);
98
+ __decorate([
99
+ (0, class_pipe_1.Expose)(),
100
+ (0, class_pipe_1.IsString)(),
101
+ __metadata("design:type", String)
102
+ ], RemoteLogHookRemoveDto.prototype, "id", void 0);
103
+ class RemoteLogHookOkDto {
104
+ }
105
+ exports.RemoteLogHookOkDto = RemoteLogHookOkDto;
106
+ __decorate([
107
+ (0, class_pipe_1.Expose)(),
108
+ (0, class_pipe_1.IsBoolean)(),
109
+ __metadata("design:type", Boolean)
110
+ ], RemoteLogHookOkDto.prototype, "ok", void 0);
111
+ __decorate([
112
+ (0, class_pipe_1.Expose)(),
113
+ (0, class_pipe_1.IsOptional)(),
114
+ (0, class_pipe_1.IsString)(),
115
+ __metadata("design:type", String)
116
+ ], RemoteLogHookOkDto.prototype, "id", void 0);
117
+ class RemoteLogSettingsQueryDto {
118
+ }
119
+ exports.RemoteLogSettingsQueryDto = RemoteLogSettingsQueryDto;
120
+ class RemoteLogSettingsPostDto {
121
+ }
122
+ exports.RemoteLogSettingsPostDto = RemoteLogSettingsPostDto;
123
+ __decorate([
124
+ (0, class_pipe_1.Expose)(),
125
+ (0, class_pipe_1.IsOptional)(),
126
+ (0, class_pipe_1.IsString)(),
127
+ __metadata("design:type", String)
128
+ ], RemoteLogSettingsPostDto.prototype, "id", void 0);
129
+ __decorate([
130
+ (0, class_pipe_1.Expose)(),
131
+ (0, class_pipe_1.IsOptional)(),
132
+ __metadata("design:type", String)
133
+ ], RemoteLogSettingsPostDto.prototype, "appId", void 0);
134
+ __decorate([
135
+ (0, class_pipe_1.Expose)(),
136
+ (0, class_pipe_1.IsIn)(Object.values(logs_1.LogClearInterval)),
137
+ __metadata("design:type", String)
138
+ ], RemoteLogSettingsPostDto.prototype, "clearInterval", void 0);
139
+ __decorate([
140
+ (0, class_pipe_1.Expose)(),
141
+ (0, class_pipe_1.IsIn)(Object.values(logs_1.LogLevel)),
142
+ __metadata("design:type", String)
143
+ ], RemoteLogSettingsPostDto.prototype, "logLevel", void 0);
144
+ class RemoteLogSettingsRemoveDto {
145
+ }
146
+ exports.RemoteLogSettingsRemoveDto = RemoteLogSettingsRemoveDto;
147
+ __decorate([
148
+ (0, class_pipe_1.Expose)(),
149
+ (0, class_pipe_1.IsString)(),
150
+ __metadata("design:type", String)
151
+ ], RemoteLogSettingsRemoveDto.prototype, "id", void 0);
152
+ class RemoteLogSettingsResponseDto {
153
+ }
154
+ exports.RemoteLogSettingsResponseDto = RemoteLogSettingsResponseDto;
155
+ __decorate([
156
+ (0, class_pipe_1.Expose)(),
157
+ (0, class_pipe_1.IsOptional)(),
158
+ (0, class_pipe_1.IsString)(),
159
+ __metadata("design:type", String)
160
+ ], RemoteLogSettingsResponseDto.prototype, "id", void 0);
161
+ __decorate([
162
+ (0, class_pipe_1.Expose)(),
163
+ (0, class_pipe_1.IsOptional)(),
164
+ __metadata("design:type", String)
165
+ ], RemoteLogSettingsResponseDto.prototype, "appId", void 0);
166
+ __decorate([
167
+ (0, class_pipe_1.Expose)(),
168
+ (0, class_pipe_1.IsIn)(Object.values(logs_1.LogClearInterval)),
169
+ __metadata("design:type", String)
170
+ ], RemoteLogSettingsResponseDto.prototype, "clearInterval", void 0);
171
+ __decorate([
172
+ (0, class_pipe_1.Expose)(),
173
+ (0, class_pipe_1.IsIn)(Object.values(logs_1.LogLevel)),
174
+ __metadata("design:type", String)
175
+ ], RemoteLogSettingsResponseDto.prototype, "logLevel", void 0);
176
+ __decorate([
177
+ (0, class_pipe_1.Expose)(),
178
+ (0, class_pipe_1.IsOptional)(),
179
+ (0, class_pipe_1.IsString)(),
180
+ __metadata("design:type", String)
181
+ ], RemoteLogSettingsResponseDto.prototype, "date", void 0);
182
+ class RemoteLogSettingsListResponseDto {
183
+ }
184
+ exports.RemoteLogSettingsListResponseDto = RemoteLogSettingsListResponseDto;
185
+ __decorate([
186
+ (0, class_pipe_1.Expose)(),
187
+ (0, class_pipe_1.IsArray)(),
188
+ (0, class_pipe_1.IsType)(() => RemoteLogSettingsResponseDto),
189
+ __metadata("design:type", Array)
190
+ ], RemoteLogSettingsListResponseDto.prototype, "settings", void 0);
191
+ class RemoteLogAppsQueryDto {
192
+ }
193
+ exports.RemoteLogAppsQueryDto = RemoteLogAppsQueryDto;
194
+ __decorate([
195
+ (0, class_pipe_1.Expose)(),
196
+ (0, class_pipe_1.IsOptional)(),
197
+ (0, class_pipe_1.IsString)({ empty: true }),
198
+ __metadata("design:type", String)
199
+ ], RemoteLogAppsQueryDto.prototype, "search", void 0);
200
+ __decorate([
201
+ (0, class_pipe_1.Expose)(),
202
+ (0, class_pipe_1.IsOptional)(),
203
+ __metadata("design:type", Number)
204
+ ], RemoteLogAppsQueryDto.prototype, "size", void 0);
205
+ class RemoteLogAppResponseDto {
206
+ }
207
+ exports.RemoteLogAppResponseDto = RemoteLogAppResponseDto;
208
+ __decorate([
209
+ (0, class_pipe_1.Expose)(),
210
+ (0, class_pipe_1.IsString)(),
211
+ __metadata("design:type", String)
212
+ ], RemoteLogAppResponseDto.prototype, "appId", void 0);
213
+ __decorate([
214
+ (0, class_pipe_1.Expose)(),
215
+ (0, class_pipe_1.IsOptional)(),
216
+ (0, class_pipe_1.IsString)(),
217
+ __metadata("design:type", String)
218
+ ], RemoteLogAppResponseDto.prototype, "date", void 0);
219
+ class RemoteLogAppsListResponseDto {
220
+ }
221
+ exports.RemoteLogAppsListResponseDto = RemoteLogAppsListResponseDto;
222
+ __decorate([
223
+ (0, class_pipe_1.Expose)(),
224
+ (0, class_pipe_1.IsArray)(),
225
+ (0, class_pipe_1.IsType)(() => RemoteLogAppResponseDto),
226
+ __metadata("design:type", Array)
227
+ ], RemoteLogAppsListResponseDto.prototype, "apps", void 0);
228
+ class RemoteLogEventsQueryDto {
229
+ }
230
+ exports.RemoteLogEventsQueryDto = RemoteLogEventsQueryDto;
231
+ __decorate([
232
+ (0, class_pipe_1.Expose)(),
233
+ (0, class_pipe_1.IsString)(),
234
+ __metadata("design:type", String)
235
+ ], RemoteLogEventsQueryDto.prototype, "appId", void 0);
236
+ __decorate([
237
+ (0, class_pipe_1.Expose)(),
238
+ (0, class_pipe_1.IsOptional)(),
239
+ (0, class_pipe_1.IsString)(),
240
+ __metadata("design:type", String)
241
+ ], RemoteLogEventsQueryDto.prototype, "hookId", void 0);
242
+ __decorate([
243
+ (0, class_pipe_1.Expose)(),
244
+ (0, class_pipe_1.IsOptional)(),
245
+ (0, class_pipe_1.IsString)(),
246
+ __metadata("design:type", String)
247
+ ], RemoteLogEventsQueryDto.prototype, "fromDate", void 0);
248
+ __decorate([
249
+ (0, class_pipe_1.Expose)(),
250
+ (0, class_pipe_1.IsOptional)(),
251
+ (0, class_pipe_1.IsString)(),
252
+ __metadata("design:type", String)
253
+ ], RemoteLogEventsQueryDto.prototype, "toDate", void 0);
254
+ __decorate([
255
+ (0, class_pipe_1.Expose)(),
256
+ (0, class_pipe_1.IsOptional)(),
257
+ __metadata("design:type", Number)
258
+ ], RemoteLogEventsQueryDto.prototype, "size", void 0);
259
+ __decorate([
260
+ (0, class_pipe_1.Expose)(),
261
+ (0, class_pipe_1.IsOptional)(),
262
+ __metadata("design:type", Boolean)
263
+ ], RemoteLogEventsQueryDto.prototype, "includeAggregations", void 0);
264
+ class RemoteLogEventReadDto {
265
+ }
266
+ exports.RemoteLogEventReadDto = RemoteLogEventReadDto;
267
+ __decorate([
268
+ (0, class_pipe_1.Expose)(),
269
+ (0, class_pipe_1.IsString)(),
270
+ __metadata("design:type", String)
271
+ ], RemoteLogEventReadDto.prototype, "appId", void 0);
272
+ __decorate([
273
+ (0, class_pipe_1.Expose)(),
274
+ (0, class_pipe_1.IsString)(),
275
+ __metadata("design:type", String)
276
+ ], RemoteLogEventReadDto.prototype, "id", void 0);
277
+ class RemoteLogEventsQueryResponseDto extends remote_log_search_dto_1.RemoteLogSearchResponseDto {
278
+ }
279
+ exports.RemoteLogEventsQueryResponseDto = RemoteLogEventsQueryResponseDto;
280
+ //# sourceMappingURL=remote-log-hooks.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-log-hooks.dto.js","sourceRoot":"./","sources":["remote-logs/dtos/remote-log-hooks.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAS8B;AAC9B,gDAK+B;AAC/B,mEAAqE;AAErE,MAAa,qBAAqB;CAKjC;AALD,sDAKC;AADE;IAHC,IAAA,mBAAM,GAAE;IACR,IAAA,uBAAU,GAAE;IACZ,IAAA,qBAAQ,EAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;oDACX;AAGlB,MAAa,oBAAoB;CAmDhC;AAnDD,oDAmDC;AA/CE;IAHC,IAAA,mBAAM,GAAE;IACR,IAAA,uBAAU,GAAE;IACZ,IAAA,qBAAQ,GAAE;;gDACC;AAIZ;IAFC,IAAA,mBAAM,GAAE;IACR,IAAA,qBAAQ,GAAE;;mDACG;AAId;IAFC,IAAA,mBAAM,GAAE;IACR,IAAA,qBAAQ,GAAE;;iDACC;AAKZ;IAHC,IAAA,mBAAM,GAAE;IACR,IAAA,uBAAU,GAAE;IACZ,IAAA,qBAAQ,GAAE;;kDACG;AAKd;IAHC,IAA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