@venizia/ignis 0.0.7-9 → 0.0.7

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 (446) hide show
  1. package/README.md +74 -50
  2. package/dist/base/applications/abstract.d.ts.map +1 -1
  3. package/dist/base/applications/abstract.js +0 -8
  4. package/dist/base/applications/abstract.js.map +1 -1
  5. package/dist/base/applications/base.d.ts.map +1 -1
  6. package/dist/base/applications/base.js +0 -17
  7. package/dist/base/applications/base.js.map +1 -1
  8. package/dist/base/applications/types.d.ts.map +1 -1
  9. package/dist/base/applications/types.js.map +1 -1
  10. package/dist/base/components/base.d.ts.map +1 -1
  11. package/dist/base/components/base.js +0 -2
  12. package/dist/base/components/base.js.map +1 -1
  13. package/dist/base/controllers/abstract.d.ts +10 -124
  14. package/dist/base/controllers/abstract.d.ts.map +1 -1
  15. package/dist/base/controllers/abstract.js +6 -82
  16. package/dist/base/controllers/abstract.js.map +1 -1
  17. package/dist/base/controllers/base.d.ts +5 -113
  18. package/dist/base/controllers/base.d.ts.map +1 -1
  19. package/dist/base/controllers/base.js +5 -113
  20. package/dist/base/controllers/base.js.map +1 -1
  21. package/dist/base/controllers/common/constants.d.ts +1 -16
  22. package/dist/base/controllers/common/constants.d.ts.map +1 -1
  23. package/dist/base/controllers/common/constants.js +1 -20
  24. package/dist/base/controllers/common/constants.js.map +1 -1
  25. package/dist/base/controllers/common/types.d.ts +16 -167
  26. package/dist/base/controllers/common/types.d.ts.map +1 -1
  27. package/dist/base/controllers/common/types.js +1 -4
  28. package/dist/base/controllers/common/types.js.map +1 -1
  29. package/dist/base/controllers/factory/controller.d.ts +17 -198
  30. package/dist/base/controllers/factory/controller.d.ts.map +1 -1
  31. package/dist/base/controllers/factory/controller.js +13 -140
  32. package/dist/base/controllers/factory/controller.js.map +1 -1
  33. package/dist/base/controllers/factory/definition.d.ts +2 -7
  34. package/dist/base/controllers/factory/definition.d.ts.map +1 -1
  35. package/dist/base/controllers/factory/definition.js +4 -30
  36. package/dist/base/controllers/factory/definition.js.map +1 -1
  37. package/dist/base/datasources/base.d.ts +2 -31
  38. package/dist/base/datasources/base.d.ts.map +1 -1
  39. package/dist/base/datasources/base.js +2 -39
  40. package/dist/base/datasources/base.js.map +1 -1
  41. package/dist/base/datasources/common/types.d.ts +2 -4
  42. package/dist/base/datasources/common/types.d.ts.map +1 -1
  43. package/dist/base/datasources/common/types.js +1 -8
  44. package/dist/base/datasources/common/types.js.map +1 -1
  45. package/dist/base/metadata/injectors.d.ts +1 -30
  46. package/dist/base/metadata/injectors.d.ts.map +1 -1
  47. package/dist/base/metadata/injectors.js +1 -30
  48. package/dist/base/metadata/injectors.js.map +1 -1
  49. package/dist/base/metadata/persistents.d.ts +3 -63
  50. package/dist/base/metadata/persistents.d.ts.map +1 -1
  51. package/dist/base/metadata/persistents.js +11 -88
  52. package/dist/base/metadata/persistents.js.map +1 -1
  53. package/dist/base/metadata/routes.d.ts +1 -24
  54. package/dist/base/metadata/routes.d.ts.map +1 -1
  55. package/dist/base/metadata/routes.js +1 -27
  56. package/dist/base/metadata/routes.js.map +1 -1
  57. package/dist/base/middlewares/app-error.middleware.d.ts +1 -10
  58. package/dist/base/middlewares/app-error.middleware.d.ts.map +1 -1
  59. package/dist/base/middlewares/app-error.middleware.js +2 -14
  60. package/dist/base/middlewares/app-error.middleware.js.map +1 -1
  61. package/dist/base/middlewares/emoji-favicon.middleware.d.ts +1 -7
  62. package/dist/base/middlewares/emoji-favicon.middleware.d.ts.map +1 -1
  63. package/dist/base/middlewares/emoji-favicon.middleware.js +1 -7
  64. package/dist/base/middlewares/emoji-favicon.middleware.js.map +1 -1
  65. package/dist/base/middlewares/not-found.middleware.d.ts +1 -8
  66. package/dist/base/middlewares/not-found.middleware.d.ts.map +1 -1
  67. package/dist/base/middlewares/not-found.middleware.js +1 -8
  68. package/dist/base/middlewares/not-found.middleware.js.map +1 -1
  69. package/dist/base/middlewares/request-spy.middleware.d.ts +3 -19
  70. package/dist/base/middlewares/request-spy.middleware.d.ts.map +1 -1
  71. package/dist/base/middlewares/request-spy.middleware.js +3 -23
  72. package/dist/base/middlewares/request-spy.middleware.js.map +1 -1
  73. package/dist/base/mixins/component.mixin.d.ts.map +1 -1
  74. package/dist/base/mixins/controller.mixin.d.ts.map +1 -1
  75. package/dist/base/mixins/repository.mixin.d.ts.map +1 -1
  76. package/dist/base/mixins/service.mixin.d.ts.map +1 -1
  77. package/dist/base/models/base.d.ts +4 -21
  78. package/dist/base/models/base.d.ts.map +1 -1
  79. package/dist/base/models/base.js +1 -11
  80. package/dist/base/models/base.js.map +1 -1
  81. package/dist/base/models/common/types.d.ts.map +1 -1
  82. package/dist/base/models/common/types.js +0 -2
  83. package/dist/base/models/common/types.js.map +1 -1
  84. package/dist/base/models/enrichers/id.enricher.d.ts.map +1 -1
  85. package/dist/base/models/enrichers/id.enricher.js.map +1 -1
  86. package/dist/base/models/enrichers/user-audit.enricher.d.ts.map +1 -1
  87. package/dist/base/models/enrichers/user-audit.enricher.js +1 -6
  88. package/dist/base/models/enrichers/user-audit.enricher.js.map +1 -1
  89. package/dist/base/repositories/common/constants.d.ts +5 -59
  90. package/dist/base/repositories/common/constants.d.ts.map +1 -1
  91. package/dist/base/repositories/common/constants.js +3 -51
  92. package/dist/base/repositories/common/constants.js.map +1 -1
  93. package/dist/base/repositories/common/shared.d.ts +1 -13
  94. package/dist/base/repositories/common/shared.d.ts.map +1 -1
  95. package/dist/base/repositories/common/shared.js +2 -19
  96. package/dist/base/repositories/common/shared.js.map +1 -1
  97. package/dist/base/repositories/common/types.d.ts +32 -461
  98. package/dist/base/repositories/common/types.d.ts.map +1 -1
  99. package/dist/base/repositories/common/types.js +13 -159
  100. package/dist/base/repositories/common/types.js.map +1 -1
  101. package/dist/base/repositories/core/abstract.d.ts +10 -204
  102. package/dist/base/repositories/core/abstract.d.ts.map +1 -1
  103. package/dist/base/repositories/core/abstract.js +6 -126
  104. package/dist/base/repositories/core/abstract.js.map +1 -1
  105. package/dist/base/repositories/core/default-crud.d.ts +1 -36
  106. package/dist/base/repositories/core/default-crud.d.ts.map +1 -1
  107. package/dist/base/repositories/core/default-crud.js +1 -36
  108. package/dist/base/repositories/core/default-crud.js.map +1 -1
  109. package/dist/base/repositories/core/index.d.ts +1 -0
  110. package/dist/base/repositories/core/index.d.ts.map +1 -1
  111. package/dist/base/repositories/core/index.js +1 -0
  112. package/dist/base/repositories/core/index.js.map +1 -1
  113. package/dist/base/repositories/core/persistable.d.ts +2 -71
  114. package/dist/base/repositories/core/persistable.d.ts.map +1 -1
  115. package/dist/base/repositories/core/persistable.js +2 -100
  116. package/dist/base/repositories/core/persistable.js.map +1 -1
  117. package/dist/base/repositories/core/readable.d.ts +12 -127
  118. package/dist/base/repositories/core/readable.d.ts.map +1 -1
  119. package/dist/base/repositories/core/readable.js +8 -124
  120. package/dist/base/repositories/core/readable.js.map +1 -1
  121. package/dist/base/repositories/core/soft-deletable.d.ts +140 -0
  122. package/dist/base/repositories/core/soft-deletable.d.ts.map +1 -0
  123. package/dist/base/repositories/core/soft-deletable.js +99 -0
  124. package/dist/base/repositories/core/soft-deletable.js.map +1 -0
  125. package/dist/base/repositories/mixins/default-filter.d.ts +3 -49
  126. package/dist/base/repositories/mixins/default-filter.d.ts.map +1 -1
  127. package/dist/base/repositories/mixins/default-filter.js +3 -57
  128. package/dist/base/repositories/mixins/default-filter.js.map +1 -1
  129. package/dist/base/repositories/mixins/fields-visibility.d.ts +3 -59
  130. package/dist/base/repositories/mixins/fields-visibility.d.ts.map +1 -1
  131. package/dist/base/repositories/mixins/fields-visibility.js +3 -67
  132. package/dist/base/repositories/mixins/fields-visibility.js.map +1 -1
  133. package/dist/base/repositories/operators/filter.d.ts +10 -115
  134. package/dist/base/repositories/operators/filter.d.ts.map +1 -1
  135. package/dist/base/repositories/operators/filter.js +13 -154
  136. package/dist/base/repositories/operators/filter.js.map +1 -1
  137. package/dist/base/repositories/operators/json-utils.d.ts +5 -38
  138. package/dist/base/repositories/operators/json-utils.d.ts.map +1 -1
  139. package/dist/base/repositories/operators/json-utils.js +5 -47
  140. package/dist/base/repositories/operators/json-utils.js.map +1 -1
  141. package/dist/base/repositories/operators/query.d.ts +3 -56
  142. package/dist/base/repositories/operators/query.d.ts.map +1 -1
  143. package/dist/base/repositories/operators/query.js +11 -106
  144. package/dist/base/repositories/operators/query.js.map +1 -1
  145. package/dist/base/repositories/operators/relation.d.ts +1 -33
  146. package/dist/base/repositories/operators/relation.d.ts.map +1 -1
  147. package/dist/base/repositories/operators/relation.js +1 -36
  148. package/dist/base/repositories/operators/relation.js.map +1 -1
  149. package/dist/base/repositories/operators/update.d.ts +7 -72
  150. package/dist/base/repositories/operators/update.d.ts.map +1 -1
  151. package/dist/base/repositories/operators/update.js +6 -91
  152. package/dist/base/repositories/operators/update.js.map +1 -1
  153. package/dist/base/services/types.d.ts.map +1 -1
  154. package/dist/common/bindings.d.ts +2 -17
  155. package/dist/common/bindings.d.ts.map +1 -1
  156. package/dist/common/bindings.js +2 -14
  157. package/dist/common/bindings.js.map +1 -1
  158. package/dist/common/constants.d.ts +1 -3
  159. package/dist/common/constants.d.ts.map +1 -1
  160. package/dist/common/constants.js +1 -4
  161. package/dist/common/constants.js.map +1 -1
  162. package/dist/common/environments.d.ts +1 -4
  163. package/dist/common/environments.d.ts.map +1 -1
  164. package/dist/common/environments.js +1 -4
  165. package/dist/common/environments.js.map +1 -1
  166. package/dist/common/statuses.d.ts +6 -19
  167. package/dist/common/statuses.d.ts.map +1 -1
  168. package/dist/common/statuses.js +6 -27
  169. package/dist/common/statuses.js.map +1 -1
  170. package/dist/components/auth/authenticate/common/codecs.d.ts +11 -0
  171. package/dist/components/auth/authenticate/common/codecs.d.ts.map +1 -0
  172. package/dist/components/auth/authenticate/common/codecs.js +28 -0
  173. package/dist/components/auth/authenticate/common/codecs.js.map +1 -0
  174. package/dist/components/auth/authenticate/common/constants.d.ts +28 -4
  175. package/dist/components/auth/authenticate/common/constants.d.ts.map +1 -1
  176. package/dist/components/auth/authenticate/common/constants.js +37 -9
  177. package/dist/components/auth/authenticate/common/constants.js.map +1 -1
  178. package/dist/components/auth/authenticate/common/index.d.ts +1 -0
  179. package/dist/components/auth/authenticate/common/index.d.ts.map +1 -1
  180. package/dist/components/auth/authenticate/common/index.js +1 -0
  181. package/dist/components/auth/authenticate/common/index.js.map +1 -1
  182. package/dist/components/auth/authenticate/common/keys.d.ts +1 -0
  183. package/dist/components/auth/authenticate/common/keys.d.ts.map +1 -1
  184. package/dist/components/auth/authenticate/common/keys.js +1 -0
  185. package/dist/components/auth/authenticate/common/keys.js.map +1 -1
  186. package/dist/components/auth/authenticate/common/types.d.ts +55 -27
  187. package/dist/components/auth/authenticate/common/types.d.ts.map +1 -1
  188. package/dist/components/auth/authenticate/component.d.ts +2 -1
  189. package/dist/components/auth/authenticate/component.d.ts.map +1 -1
  190. package/dist/components/auth/authenticate/component.js +101 -45
  191. package/dist/components/auth/authenticate/component.js.map +1 -1
  192. package/dist/components/auth/authenticate/controllers/index.d.ts +1 -0
  193. package/dist/components/auth/authenticate/controllers/index.d.ts.map +1 -1
  194. package/dist/components/auth/authenticate/controllers/index.js +1 -0
  195. package/dist/components/auth/authenticate/controllers/index.js.map +1 -1
  196. package/dist/components/auth/authenticate/controllers/jwks/controller.d.ts +9 -0
  197. package/dist/components/auth/authenticate/controllers/jwks/controller.d.ts.map +1 -0
  198. package/dist/components/auth/authenticate/controllers/jwks/controller.js +54 -0
  199. package/dist/components/auth/authenticate/controllers/jwks/controller.js.map +1 -0
  200. package/dist/components/auth/authenticate/controllers/jwks/definitions.d.ts +66 -0
  201. package/dist/components/auth/authenticate/controllers/jwks/definitions.d.ts.map +1 -0
  202. package/dist/components/auth/authenticate/controllers/jwks/definitions.js +32 -0
  203. package/dist/components/auth/authenticate/controllers/jwks/definitions.js.map +1 -0
  204. package/dist/components/auth/authenticate/controllers/jwks/index.d.ts +2 -0
  205. package/dist/components/auth/authenticate/controllers/jwks/index.d.ts.map +1 -0
  206. package/dist/components/auth/authenticate/controllers/jwks/index.js +18 -0
  207. package/dist/components/auth/authenticate/controllers/jwks/index.js.map +1 -0
  208. package/dist/components/auth/authenticate/middlewares/authenticate.middleware.d.ts.map +1 -1
  209. package/dist/components/auth/authenticate/middlewares/authenticate.middleware.js +0 -2
  210. package/dist/components/auth/authenticate/middlewares/authenticate.middleware.js.map +1 -1
  211. package/dist/components/auth/authenticate/providers/authentication.provider.d.ts.map +1 -1
  212. package/dist/components/auth/authenticate/providers/authentication.provider.js +0 -7
  213. package/dist/components/auth/authenticate/providers/authentication.provider.js.map +1 -1
  214. package/dist/components/auth/authenticate/services/basic/index.d.ts +2 -0
  215. package/dist/components/auth/authenticate/services/basic/index.d.ts.map +1 -0
  216. package/dist/components/auth/authenticate/services/basic/index.js +18 -0
  217. package/dist/components/auth/authenticate/services/basic/index.js.map +1 -0
  218. package/dist/components/auth/authenticate/services/basic/service.d.ts +24 -0
  219. package/dist/components/auth/authenticate/services/basic/service.d.ts.map +1 -0
  220. package/dist/components/auth/authenticate/services/{basic-token.service.js → basic/service.js} +7 -45
  221. package/dist/components/auth/authenticate/services/basic/service.js.map +1 -0
  222. package/dist/components/auth/authenticate/services/bearer/abstract.service.d.ts +52 -0
  223. package/dist/components/auth/authenticate/services/bearer/abstract.service.d.ts.map +1 -0
  224. package/dist/components/auth/authenticate/services/bearer/abstract.service.js +177 -0
  225. package/dist/components/auth/authenticate/services/bearer/abstract.service.js.map +1 -0
  226. package/dist/components/auth/authenticate/services/bearer/index.d.ts +4 -0
  227. package/dist/components/auth/authenticate/services/bearer/index.d.ts.map +1 -0
  228. package/dist/components/auth/authenticate/services/bearer/index.js +20 -0
  229. package/dist/components/auth/authenticate/services/bearer/index.js.map +1 -0
  230. package/dist/components/auth/authenticate/services/bearer/jwks/abstract.service.d.ts +16 -0
  231. package/dist/components/auth/authenticate/services/bearer/jwks/abstract.service.d.ts.map +1 -0
  232. package/dist/components/auth/authenticate/services/bearer/jwks/abstract.service.js +32 -0
  233. package/dist/components/auth/authenticate/services/bearer/jwks/abstract.service.js.map +1 -0
  234. package/dist/components/auth/authenticate/services/bearer/jwks/index.d.ts +4 -0
  235. package/dist/components/auth/authenticate/services/bearer/jwks/index.d.ts.map +1 -0
  236. package/dist/components/auth/authenticate/services/bearer/jwks/index.js +20 -0
  237. package/dist/components/auth/authenticate/services/bearer/jwks/index.js.map +1 -0
  238. package/dist/components/auth/authenticate/services/bearer/jwks/issuer.service.d.ts +46 -0
  239. package/dist/components/auth/authenticate/services/bearer/jwks/issuer.service.d.ts.map +1 -0
  240. package/dist/components/auth/authenticate/services/bearer/jwks/issuer.service.js +168 -0
  241. package/dist/components/auth/authenticate/services/bearer/jwks/issuer.service.js.map +1 -0
  242. package/dist/components/auth/authenticate/services/bearer/jwks/verifier.service.d.ts +18 -0
  243. package/dist/components/auth/authenticate/services/bearer/jwks/verifier.service.d.ts.map +1 -0
  244. package/dist/components/auth/authenticate/services/bearer/jwks/verifier.service.js +73 -0
  245. package/dist/components/auth/authenticate/services/bearer/jwks/verifier.service.js.map +1 -0
  246. package/dist/components/auth/authenticate/services/bearer/jws.service.d.ts +19 -0
  247. package/dist/components/auth/authenticate/services/bearer/jws.service.d.ts.map +1 -0
  248. package/dist/components/auth/authenticate/services/bearer/jws.service.js +76 -0
  249. package/dist/components/auth/authenticate/services/bearer/jws.service.js.map +1 -0
  250. package/dist/components/auth/authenticate/services/index.d.ts +2 -2
  251. package/dist/components/auth/authenticate/services/index.d.ts.map +1 -1
  252. package/dist/components/auth/authenticate/services/index.js +2 -2
  253. package/dist/components/auth/authenticate/services/index.js.map +1 -1
  254. package/dist/components/auth/authenticate/strategies/basic.strategy.d.ts +1 -22
  255. package/dist/components/auth/authenticate/strategies/basic.strategy.d.ts.map +1 -1
  256. package/dist/components/auth/authenticate/strategies/basic.strategy.js +1 -22
  257. package/dist/components/auth/authenticate/strategies/basic.strategy.js.map +1 -1
  258. package/dist/components/auth/authenticate/strategies/index.d.ts +2 -1
  259. package/dist/components/auth/authenticate/strategies/index.d.ts.map +1 -1
  260. package/dist/components/auth/authenticate/strategies/index.js +2 -1
  261. package/dist/components/auth/authenticate/strategies/index.js.map +1 -1
  262. package/dist/components/auth/authenticate/strategies/jwks.strategy.d.ts +21 -0
  263. package/dist/components/auth/authenticate/strategies/jwks.strategy.d.ts.map +1 -0
  264. package/dist/components/auth/authenticate/strategies/jwks.strategy.js +68 -0
  265. package/dist/components/auth/authenticate/strategies/jwks.strategy.js.map +1 -0
  266. package/dist/components/auth/authenticate/strategies/{jwt.strategy.d.ts → jws.strategy.d.ts} +5 -4
  267. package/dist/components/auth/authenticate/strategies/jws.strategy.d.ts.map +1 -0
  268. package/dist/components/auth/authenticate/strategies/{jwt.strategy.js → jws.strategy.js} +11 -10
  269. package/dist/components/auth/authenticate/strategies/jws.strategy.js.map +1 -0
  270. package/dist/components/auth/authenticate/strategies/strategy-registry.d.ts.map +1 -1
  271. package/dist/components/auth/authenticate/strategies/strategy-registry.js +0 -5
  272. package/dist/components/auth/authenticate/strategies/strategy-registry.js.map +1 -1
  273. package/dist/components/auth/authorize/adapters/base-filtered.d.ts.map +1 -1
  274. package/dist/components/auth/authorize/adapters/base-filtered.js +0 -8
  275. package/dist/components/auth/authorize/adapters/base-filtered.js.map +1 -1
  276. package/dist/components/auth/authorize/adapters/drizzle-casbin.d.ts +2 -1
  277. package/dist/components/auth/authorize/adapters/drizzle-casbin.d.ts.map +1 -1
  278. package/dist/components/auth/authorize/adapters/drizzle-casbin.js +4 -5
  279. package/dist/components/auth/authorize/adapters/drizzle-casbin.js.map +1 -1
  280. package/dist/components/auth/authorize/common/constants.d.ts.map +1 -1
  281. package/dist/components/auth/authorize/common/constants.js +0 -8
  282. package/dist/components/auth/authorize/common/constants.js.map +1 -1
  283. package/dist/components/auth/authorize/common/types.d.ts +2 -32
  284. package/dist/components/auth/authorize/common/types.d.ts.map +1 -1
  285. package/dist/components/auth/authorize/component.d.ts.map +1 -1
  286. package/dist/components/auth/authorize/component.js +0 -2
  287. package/dist/components/auth/authorize/component.js.map +1 -1
  288. package/dist/components/auth/authorize/enforcers/casbin.enforcer.d.ts.map +1 -1
  289. package/dist/components/auth/authorize/enforcers/casbin.enforcer.js +0 -10
  290. package/dist/components/auth/authorize/enforcers/casbin.enforcer.js.map +1 -1
  291. package/dist/components/auth/authorize/enforcers/enforcer-registry.d.ts +1 -0
  292. package/dist/components/auth/authorize/enforcers/enforcer-registry.d.ts.map +1 -1
  293. package/dist/components/auth/authorize/enforcers/enforcer-registry.js +3 -7
  294. package/dist/components/auth/authorize/enforcers/enforcer-registry.js.map +1 -1
  295. package/dist/components/auth/authorize/middlewares/authorize.middleware.d.ts.map +1 -1
  296. package/dist/components/auth/authorize/middlewares/authorize.middleware.js +0 -2
  297. package/dist/components/auth/authorize/middlewares/authorize.middleware.js.map +1 -1
  298. package/dist/components/auth/authorize/models/abilities/string-action.model.d.ts.map +1 -1
  299. package/dist/components/auth/authorize/models/abilities/string-action.model.js +0 -1
  300. package/dist/components/auth/authorize/models/abilities/string-action.model.js.map +1 -1
  301. package/dist/components/auth/authorize/models/abilities/string-resource.model.d.ts.map +1 -1
  302. package/dist/components/auth/authorize/models/abilities/string-resource.model.js +0 -1
  303. package/dist/components/auth/authorize/models/abilities/string-resource.model.js.map +1 -1
  304. package/dist/components/auth/authorize/models/authorization-role.model.d.ts.map +1 -1
  305. package/dist/components/auth/authorize/models/authorization-role.model.js +0 -1
  306. package/dist/components/auth/authorize/models/authorization-role.model.js.map +1 -1
  307. package/dist/components/auth/authorize/providers/authorization.provider.d.ts.map +1 -1
  308. package/dist/components/auth/authorize/providers/authorization.provider.js +5 -6
  309. package/dist/components/auth/authorize/providers/authorization.provider.js.map +1 -1
  310. package/dist/components/auth/base/abstract-auth-registry.d.ts.map +1 -1
  311. package/dist/components/auth/base/abstract-auth-registry.js +0 -3
  312. package/dist/components/auth/base/abstract-auth-registry.js.map +1 -1
  313. package/dist/components/auth/context-variables.d.ts.map +1 -1
  314. package/dist/components/auth/models/entities/permission.model.d.ts.map +1 -1
  315. package/dist/components/auth/models/entities/permission.model.js.map +1 -1
  316. package/dist/components/auth/models/entities/policy-definition.model.d.ts.map +1 -1
  317. package/dist/components/auth/models/entities/policy-definition.model.js.map +1 -1
  318. package/dist/components/auth/models/entities/role.model.d.ts.map +1 -1
  319. package/dist/components/auth/models/entities/role.model.js +0 -1
  320. package/dist/components/auth/models/entities/role.model.js.map +1 -1
  321. package/dist/components/auth/models/entities/user.model.d.ts.map +1 -1
  322. package/dist/components/auth/models/entities/user.model.js +0 -1
  323. package/dist/components/auth/models/entities/user.model.js.map +1 -1
  324. package/dist/components/health-check/controller.d.ts.map +1 -1
  325. package/dist/components/health-check/controller.js +0 -1
  326. package/dist/components/health-check/controller.js.map +1 -1
  327. package/dist/components/mail/common/types.d.ts +1 -1
  328. package/dist/components/mail/common/types.d.ts.map +1 -1
  329. package/dist/components/mail/component.d.ts.map +1 -1
  330. package/dist/components/mail/component.js +2 -7
  331. package/dist/components/mail/component.js.map +1 -1
  332. package/dist/components/mail/helpers/executors/bull-mq-executor.helper.d.ts +2 -1
  333. package/dist/components/mail/helpers/executors/bull-mq-executor.helper.d.ts.map +1 -1
  334. package/dist/components/mail/helpers/executors/bull-mq-executor.helper.js +7 -7
  335. package/dist/components/mail/helpers/executors/bull-mq-executor.helper.js.map +1 -1
  336. package/dist/components/mail/helpers/executors/direct-executor.helper.d.ts +1 -1
  337. package/dist/components/mail/helpers/executors/direct-executor.helper.d.ts.map +1 -1
  338. package/dist/components/mail/helpers/executors/direct-executor.helper.js +3 -3
  339. package/dist/components/mail/helpers/executors/direct-executor.helper.js.map +1 -1
  340. package/dist/components/mail/helpers/executors/internal-queue-executor.helper.d.ts +1 -1
  341. package/dist/components/mail/helpers/executors/internal-queue-executor.helper.d.ts.map +1 -1
  342. package/dist/components/mail/helpers/executors/internal-queue-executor.helper.js +4 -4
  343. package/dist/components/mail/helpers/executors/internal-queue-executor.helper.js.map +1 -1
  344. package/dist/components/mail/helpers/transporters/mailgun-transporter.helper.d.ts +1 -1
  345. package/dist/components/mail/helpers/transporters/mailgun-transporter.helper.d.ts.map +1 -1
  346. package/dist/components/mail/helpers/transporters/mailgun-transporter.helper.js +3 -3
  347. package/dist/components/mail/helpers/transporters/mailgun-transporter.helper.js.map +1 -1
  348. package/dist/components/mail/helpers/transporters/nodemail-transporter.helper.d.ts +1 -1
  349. package/dist/components/mail/helpers/transporters/nodemail-transporter.helper.d.ts.map +1 -1
  350. package/dist/components/mail/helpers/transporters/nodemail-transporter.helper.js +3 -3
  351. package/dist/components/mail/helpers/transporters/nodemail-transporter.helper.js.map +1 -1
  352. package/dist/components/mail/providers/mail-queue-executor.provider.d.ts.map +1 -1
  353. package/dist/components/mail/providers/mail-queue-executor.provider.js +8 -8
  354. package/dist/components/mail/providers/mail-queue-executor.provider.js.map +1 -1
  355. package/dist/components/mail/providers/mail-transporter.provider.d.ts.map +1 -1
  356. package/dist/components/mail/providers/mail-transporter.provider.js +6 -6
  357. package/dist/components/mail/providers/mail-transporter.provider.js.map +1 -1
  358. package/dist/components/mail/services/mail.service.d.ts +1 -1
  359. package/dist/components/mail/services/mail.service.d.ts.map +1 -1
  360. package/dist/components/mail/services/mail.service.js +9 -9
  361. package/dist/components/mail/services/mail.service.js.map +1 -1
  362. package/dist/components/mail/services/template.service.d.ts +1 -1
  363. package/dist/components/mail/services/template.service.d.ts.map +1 -1
  364. package/dist/components/mail/services/template.service.js +4 -4
  365. package/dist/components/mail/services/template.service.js.map +1 -1
  366. package/dist/components/mail/utilities/type.utility.d.ts +1 -1
  367. package/dist/components/mail/utilities/type.utility.d.ts.map +1 -1
  368. package/dist/components/socket-io/component.d.ts.map +1 -1
  369. package/dist/components/socket-io/component.js +0 -4
  370. package/dist/components/socket-io/component.js.map +1 -1
  371. package/dist/components/static-asset/common/constants.d.ts +1 -0
  372. package/dist/components/static-asset/common/constants.d.ts.map +1 -1
  373. package/dist/components/static-asset/common/constants.js +2 -1
  374. package/dist/components/static-asset/common/constants.js.map +1 -1
  375. package/dist/components/static-asset/common/types.d.ts +43 -1
  376. package/dist/components/static-asset/common/types.d.ts.map +1 -1
  377. package/dist/components/static-asset/controller/base.definition.d.ts +81 -80
  378. package/dist/components/static-asset/controller/base.definition.d.ts.map +1 -1
  379. package/dist/components/static-asset/controller/base.definition.js +1 -2
  380. package/dist/components/static-asset/controller/base.definition.js.map +1 -1
  381. package/dist/components/static-asset/controller/factory.d.ts +2 -6
  382. package/dist/components/static-asset/controller/factory.d.ts.map +1 -1
  383. package/dist/components/static-asset/controller/factory.js +41 -42
  384. package/dist/components/static-asset/controller/factory.js.map +1 -1
  385. package/dist/components/static-asset/models/base.model.d.ts +49 -19
  386. package/dist/components/static-asset/models/base.model.d.ts.map +1 -1
  387. package/dist/components/static-asset/models/base.model.js +3 -7
  388. package/dist/components/static-asset/models/base.model.js.map +1 -1
  389. package/dist/components/swagger/ui-factory.d.ts.map +1 -1
  390. package/dist/components/swagger/ui-factory.js +0 -2
  391. package/dist/components/swagger/ui-factory.js.map +1 -1
  392. package/dist/components/websocket/component.d.ts.map +1 -1
  393. package/dist/components/websocket/component.js +0 -3
  394. package/dist/components/websocket/component.js.map +1 -1
  395. package/dist/helpers/base-helper.d.ts +2 -0
  396. package/dist/helpers/base-helper.d.ts.map +1 -0
  397. package/dist/helpers/base-helper.js +6 -0
  398. package/dist/helpers/base-helper.js.map +1 -0
  399. package/dist/helpers/index.d.ts +2 -1
  400. package/dist/helpers/index.d.ts.map +1 -1
  401. package/dist/helpers/index.js +1 -1
  402. package/dist/helpers/index.js.map +1 -1
  403. package/dist/helpers/inversion/common/keys.d.ts.map +1 -1
  404. package/dist/helpers/inversion/common/keys.js +0 -2
  405. package/dist/helpers/inversion/common/keys.js.map +1 -1
  406. package/dist/helpers/inversion/common/types.d.ts +18 -56
  407. package/dist/helpers/inversion/common/types.d.ts.map +1 -1
  408. package/dist/helpers/inversion/container.d.ts.map +1 -1
  409. package/dist/helpers/inversion/container.js +0 -1
  410. package/dist/helpers/inversion/container.js.map +1 -1
  411. package/dist/helpers/inversion/index.d.ts +1 -1
  412. package/dist/helpers/inversion/index.d.ts.map +1 -1
  413. package/dist/helpers/inversion/index.js +5 -1
  414. package/dist/helpers/inversion/index.js.map +1 -1
  415. package/dist/helpers/inversion/mixins/controller.mixin.d.ts.map +1 -1
  416. package/dist/helpers/inversion/mixins/controller.mixin.js +0 -3
  417. package/dist/helpers/inversion/mixins/controller.mixin.js.map +1 -1
  418. package/dist/helpers/inversion/mixins/datasource.mixin.d.ts.map +1 -1
  419. package/dist/helpers/inversion/mixins/datasource.mixin.js +0 -3
  420. package/dist/helpers/inversion/mixins/datasource.mixin.js.map +1 -1
  421. package/dist/helpers/inversion/mixins/model.mixin.d.ts +29 -1
  422. package/dist/helpers/inversion/mixins/model.mixin.d.ts.map +1 -1
  423. package/dist/helpers/inversion/mixins/model.mixin.js +66 -2
  424. package/dist/helpers/inversion/mixins/model.mixin.js.map +1 -1
  425. package/dist/helpers/inversion/mixins/repository.mixin.d.ts.map +1 -1
  426. package/dist/helpers/inversion/mixins/repository.mixin.js +0 -2
  427. package/dist/helpers/inversion/mixins/repository.mixin.js.map +1 -1
  428. package/dist/helpers/inversion/registry.d.ts +22 -0
  429. package/dist/helpers/inversion/registry.d.ts.map +1 -1
  430. package/dist/utilities/jsx.utility.d.ts +2 -16
  431. package/dist/utilities/jsx.utility.d.ts.map +1 -1
  432. package/dist/utilities/jsx.utility.js +2 -16
  433. package/dist/utilities/jsx.utility.js.map +1 -1
  434. package/dist/utilities/schema.utility.d.ts.map +1 -1
  435. package/dist/utilities/schema.utility.js +0 -2
  436. package/dist/utilities/schema.utility.js.map +1 -1
  437. package/package.json +3 -3
  438. package/dist/components/auth/authenticate/services/basic-token.service.d.ts +0 -60
  439. package/dist/components/auth/authenticate/services/basic-token.service.d.ts.map +0 -1
  440. package/dist/components/auth/authenticate/services/basic-token.service.js.map +0 -1
  441. package/dist/components/auth/authenticate/services/jwt-token.service.d.ts +0 -34
  442. package/dist/components/auth/authenticate/services/jwt-token.service.d.ts.map +0 -1
  443. package/dist/components/auth/authenticate/services/jwt-token.service.js +0 -218
  444. package/dist/components/auth/authenticate/services/jwt-token.service.js.map +0 -1
  445. package/dist/components/auth/authenticate/strategies/jwt.strategy.d.ts.map +0 -1
  446. package/dist/components/auth/authenticate/strategies/jwt.strategy.js.map +0 -1
@@ -25,163 +25,47 @@ declare const AbstractRepository_base: (abstract new (...args: any[]) => {
25
25
  set visibleProperties(value: Record<string, any> | undefined);
26
26
  getVisibleProperties(): Record<string, any> | undefined;
27
27
  }) & typeof BaseHelper;
28
- /**
29
- * Abstract base repository class with dependency injection support.
30
- *
31
- * This class provides the foundation for all repository implementations,
32
- * combining {@link FieldsVisibilityMixin} and {@link DefaultFilterMixin}
33
- * for automatic hidden field exclusion and default filter application.
34
- *
35
- * @template EntitySchema - The Drizzle table schema type with an 'id' column
36
- * @template DataObject - The type of objects returned from queries
37
- * @template PersistObject - The type for insert/update operations
38
- * @template ExtraOptions - Additional options type extending IExtraOptions
39
- *
40
- * @example
41
- * **1. Zero boilerplate - dataSource auto-injected from @repository metadata:**
42
- * ```typescript
43
- * @repository({ model: User, dataSource: PostgresDataSource })
44
- * export class UserRepository extends DefaultCRUDRepository<typeof User.schema> {
45
- * // No constructor needed - datasource auto-injected!
46
- * }
47
- * ```
48
- *
49
- * @example
50
- * **2. Explicit @inject:**
51
- * ```typescript
52
- * @repository({ model: User })
53
- * export class UserRepository extends DefaultCRUDRepository<typeof User.schema> {
54
- * constructor(
55
- * @inject({ key: 'datasources.PostgresDataSource' })
56
- * dataSource: PostgresDataSource,
57
- * ) {
58
- * super(dataSource);
59
- * }
60
- * }
61
- * ```
62
- */
28
+ /** Abstract base repository combining FieldsVisibilityMixin and DefaultFilterMixin. */
63
29
  export declare abstract class AbstractRepository<EntitySchema extends TTableSchemaWithId = TTableSchemaWithId, DataObject extends TTableObject<EntitySchema> = TTableObject<EntitySchema>, PersistObject extends TTableInsert<EntitySchema> = TTableInsert<EntitySchema>, ExtraOptions extends IExtraOptions = IExtraOptions> extends AbstractRepository_base implements IPersistableRepository<EntitySchema, DataObject, PersistObject, ExtraOptions> {
64
- /**
65
- * Repository operation scope determining allowed operations.
66
- * @see {@link RepositoryOperationScopes}
67
- */
68
30
  protected _operationScope: TRepositoryOperationScope;
69
- /**
70
- * Filter builder instance for converting filter objects to Drizzle queries.
71
- * @see {@link FilterBuilder}
72
- */
73
31
  protected _filterBuilder: FilterBuilder;
74
- /**
75
- * The data source providing database connectivity.
76
- * Lazy-resolved on first access if not provided in constructor.
77
- */
32
+ /** Lazy-resolved on first access if not provided in constructor. */
78
33
  protected _dataSource?: IDataSource;
79
- /**
80
- * The entity/model instance associated with this repository.
81
- * Lazy-resolved from @repository metadata on first access.
82
- */
34
+ /** Lazy-resolved from @repository metadata on first access. */
83
35
  protected _entity?: BaseEntity<EntitySchema>;
84
- /**
85
- * Creates a new repository instance.
86
- *
87
- * @param ds - DataSource (auto-injected from @repository decorator or passed explicitly)
88
- * @param opts - Optional configuration
89
- * @param opts.scope - Custom scope name for logging
90
- * @param opts.entityClass - Entity class if not using @repository decorator
91
- * @param opts.operationScope - Operation scope (defaults to READ_ONLY)
92
- */
93
36
  constructor(ds?: IDataSource, opts?: {
94
37
  scope?: string;
95
38
  entityClass?: TClass<BaseEntity<EntitySchema>>;
96
39
  operationScope?: TRepositoryOperationScope;
97
40
  });
98
- /**
99
- * Gets the data source for database operations.
100
- * @throws Error if dataSource is not available
101
- */
102
41
  get dataSource(): IDataSource;
103
- /** Sets the data source for database operations. */
104
42
  set dataSource(value: IDataSource);
105
- /**
106
- * Gets the entity instance.
107
- * Auto-resolves from @repository metadata if not explicitly set.
108
- */
43
+ /** Auto-resolves from @repository metadata if not explicitly set. */
109
44
  get entity(): BaseEntity<EntitySchema>;
110
- /** Sets the entity instance. */
111
45
  set entity(value: BaseEntity<EntitySchema>);
112
- /** Gets the current operation scope (READ_ONLY, WRITE_ONLY, or READ_WRITE). */
113
46
  get operationScope(): TRepositoryOperationScope;
114
- /** Gets the filter builder instance. */
115
47
  get filterBuilder(): FilterBuilder;
116
- /** Gets the database connector from the data source. */
117
48
  get connector(): import("drizzle-orm/node-postgres").NodePgDatabase<import("../../../base/datasources").TAnyDataSourceSchema> & {
118
49
  $client: import("pg").Pool;
119
50
  };
120
- /**
121
- * Sets the data source for this repository.
122
- * @param opts - Options containing the data source
123
- */
124
51
  setDataSource(opts: {
125
52
  dataSource: IDataSource;
126
53
  }): void;
127
- /**
128
- * Returns the entity instance associated with this repository.
129
- * @returns The entity instance
130
- */
131
54
  getEntity(): BaseEntity<EntitySchema>;
132
- /**
133
- * Returns the Drizzle table schema for this entity.
134
- * @returns The table schema
135
- */
136
55
  getEntitySchema(): EntitySchema;
137
- /**
138
- * Returns the database connector from the data source.
139
- * @returns The database connector
140
- */
141
56
  getConnector(): IDataSource['connector'];
142
- /**
143
- * Begins a new database transaction.
144
- * @param opts - Optional transaction configuration
145
- * @returns Promise resolving to the transaction instance
146
- */
147
57
  beginTransaction(opts?: ITransactionOptions): Promise<ITransaction>;
148
- /**
149
- * Builds Drizzle query options from a filter object.
150
- * Handles field visibility by excluding hidden properties.
151
- *
152
- * @param opts - Options containing the filter to convert
153
- * @returns Drizzle-compatible query options
154
- */
58
+ /** Builds Drizzle query options from a filter, excluding hidden properties. */
155
59
  buildQuery(opts: {
156
60
  filter: TFilter<DataObject>;
157
61
  }): TDrizzleQueryOptions;
158
- /**
159
- * Resolves the entity instance from @repository metadata.
160
- * Called lazily when entity is first accessed.
161
- *
162
- * @returns The resolved entity instance
163
- * @throws Error if entity cannot be resolved from metadata
164
- */
62
+ /** Resolves the entity instance from @repository metadata on first access. */
165
63
  protected resolveEntity(): BaseEntity<EntitySchema>;
166
- /**
167
- * Resolves the database connector, using transaction connector if provided.
168
- *
169
- * @param opts - Options containing optional transaction
170
- * @returns The database connector (from transaction or default data source)
171
- * @throws Error if transaction is no longer active
172
- */
64
+ /** Resolves the database connector, using transaction connector if provided. */
173
65
  protected resolveConnector(opts?: {
174
66
  transaction?: ITransaction;
175
67
  }): TAnyConnector;
176
- /**
177
- * Gets the Drizzle query interface for this entity.
178
- * Validates that the schema is properly registered in the connector.
179
- *
180
- * @param opts - Options containing extra options with optional transaction
181
- * @returns The Drizzle query interface for this entity
182
- * @throws Error if connector.query is not available
183
- * @throws Error if entity schema is not registered in connector
184
- */
68
+ /** Gets the Drizzle query interface, validating schema registration. */
185
69
  protected getQueryInterface(opts?: {
186
70
  options?: ExtraOptions;
187
71
  }): import("drizzle-orm/pg-core/query-builders/query").RelationalQueryBuilder<import("drizzle-orm").ExtractTablesWithRelations<import("../../../base/datasources").TAnyDataSourceSchema>, {
@@ -191,26 +75,14 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
191
75
  relations: Record<string, import("drizzle-orm").Relation<string>>;
192
76
  primaryKey: import("drizzle-orm").AnyColumn[];
193
77
  }>;
194
- /**
195
- * Counts records matching the where condition.
196
- * Must be implemented by subclasses.
197
- */
198
78
  abstract count(opts: {
199
79
  where: TWhere<DataObject>;
200
80
  options?: ExtraOptions;
201
81
  }): Promise<TCount>;
202
- /**
203
- * Checks if any records match the where condition.
204
- * Must be implemented by subclasses.
205
- */
206
82
  abstract existsWith(opts: {
207
83
  where: TWhere<DataObject>;
208
84
  options?: ExtraOptions;
209
85
  }): Promise<boolean>;
210
- /**
211
- * Finds all records matching the filter with range information.
212
- * Must be implemented by subclasses.
213
- */
214
86
  abstract find<R = DataObject>(opts: {
215
87
  filter: TFilter<DataObject>;
216
88
  options: ExtraOptions & {
@@ -220,37 +92,21 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
220
92
  data: Array<R>;
221
93
  range: TDataRange;
222
94
  }>;
223
- /**
224
- * Finds all records matching the filter.
225
- * Must be implemented by subclasses.
226
- */
227
95
  abstract find<R = DataObject>(opts: {
228
96
  filter: TFilter<DataObject>;
229
97
  options?: ExtraOptions & {
230
98
  shouldQueryRange?: false;
231
99
  };
232
100
  }): Promise<R[]>;
233
- /**
234
- * Finds the first record matching the filter.
235
- * Must be implemented by subclasses.
236
- */
237
101
  abstract findOne<R = DataObject>(opts: {
238
102
  filter: TFilter<DataObject>;
239
103
  options?: ExtraOptions;
240
104
  }): Promise<TNullable<R>>;
241
- /**
242
- * Finds a record by its ID.
243
- * Must be implemented by subclasses.
244
- */
245
105
  abstract findById<R = DataObject>(opts: {
246
106
  id: IdType;
247
107
  filter?: Omit<TFilter<DataObject>, 'where'>;
248
108
  options?: ExtraOptions;
249
109
  }): Promise<TNullable<R>>;
250
- /**
251
- * Creates a single record (without returning it).
252
- * Must be implemented by subclasses.
253
- */
254
110
  abstract create(opts: {
255
111
  data: PersistObject;
256
112
  options: ExtraOptions & {
@@ -259,10 +115,6 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
259
115
  }): Promise<TCount & {
260
116
  data: undefined | null;
261
117
  }>;
262
- /**
263
- * Creates a single record and returns it.
264
- * Must be implemented by subclasses.
265
- */
266
118
  abstract create<R = DataObject>(opts: {
267
119
  data: PersistObject;
268
120
  options?: ExtraOptions & {
@@ -271,10 +123,6 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
271
123
  }): Promise<TCount & {
272
124
  data: R;
273
125
  }>;
274
- /**
275
- * Creates multiple records (without returning them).
276
- * Must be implemented by subclasses.
277
- */
278
126
  abstract createAll(opts: {
279
127
  data: Array<PersistObject>;
280
128
  options: ExtraOptions & {
@@ -283,10 +131,6 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
283
131
  }): Promise<TCount & {
284
132
  data: undefined | null;
285
133
  }>;
286
- /**
287
- * Creates multiple records and returns them.
288
- * Must be implemented by subclasses.
289
- */
290
134
  abstract createAll<R = DataObject>(opts: {
291
135
  data: Array<PersistObject>;
292
136
  options?: ExtraOptions & {
@@ -295,10 +139,6 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
295
139
  }): Promise<TCount & {
296
140
  data: Array<R>;
297
141
  }>;
298
- /**
299
- * Updates a record by ID (without returning it).
300
- * Must be implemented by subclasses.
301
- */
302
142
  abstract updateById(opts: {
303
143
  id: IdType;
304
144
  data: Partial<PersistObject>;
@@ -308,10 +148,6 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
308
148
  }): Promise<TCount & {
309
149
  data: undefined | null;
310
150
  }>;
311
- /**
312
- * Updates a record by ID and returns it.
313
- * Must be implemented by subclasses.
314
- */
315
151
  abstract updateById<R = DataObject>(opts: {
316
152
  id: IdType;
317
153
  data: Partial<PersistObject>;
@@ -321,10 +157,6 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
321
157
  }): Promise<TCount & {
322
158
  data: R;
323
159
  }>;
324
- /**
325
- * Updates all records matching the where condition (without returning them).
326
- * Must be implemented by subclasses.
327
- */
328
160
  abstract updateAll(opts: {
329
161
  data: Partial<PersistObject>;
330
162
  where: TWhere<DataObject>;
@@ -335,10 +167,6 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
335
167
  }): Promise<TCount & {
336
168
  data: undefined | null;
337
169
  }>;
338
- /**
339
- * Updates all records matching the where condition and returns them.
340
- * Must be implemented by subclasses.
341
- */
342
170
  abstract updateAll<R = DataObject>(opts: {
343
171
  data: Partial<PersistObject>;
344
172
  where: TWhere<DataObject>;
@@ -349,10 +177,7 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
349
177
  }): Promise<TCount & {
350
178
  data: Array<R>;
351
179
  }>;
352
- /**
353
- * Alias for updateAll. Updates records matching the where condition.
354
- * Delegates to updateAll with the same parameters.
355
- */
180
+ /** Alias for updateAll. */
356
181
  updateBy(opts: {
357
182
  data: Partial<PersistObject>;
358
183
  where: TWhere<DataObject>;
@@ -373,10 +198,6 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
373
198
  }): Promise<TCount & {
374
199
  data: Array<R>;
375
200
  }>;
376
- /**
377
- * Deletes a record by ID (without returning it).
378
- * Must be implemented by subclasses.
379
- */
380
201
  abstract deleteById(opts: {
381
202
  id: IdType;
382
203
  options: ExtraOptions & {
@@ -385,10 +206,6 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
385
206
  }): Promise<TCount & {
386
207
  data: undefined | null;
387
208
  }>;
388
- /**
389
- * Deletes a record by ID and returns it.
390
- * Must be implemented by subclasses.
391
- */
392
209
  abstract deleteById<R = DataObject>(opts: {
393
210
  id: IdType;
394
211
  options?: ExtraOptions & {
@@ -397,10 +214,6 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
397
214
  }): Promise<TCount & {
398
215
  data: R;
399
216
  }>;
400
- /**
401
- * Deletes all records matching the where condition (without returning them).
402
- * Must be implemented by subclasses.
403
- */
404
217
  abstract deleteAll(opts: {
405
218
  where: TWhere<DataObject>;
406
219
  options: ExtraOptions & {
@@ -410,10 +223,6 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
410
223
  }): Promise<TCount & {
411
224
  data: undefined | null;
412
225
  }>;
413
- /**
414
- * Deletes all records matching the where condition and returns them.
415
- * Must be implemented by subclasses.
416
- */
417
226
  abstract deleteAll<R = DataObject>(opts: {
418
227
  where: TWhere<DataObject>;
419
228
  options?: ExtraOptions & {
@@ -423,10 +232,7 @@ export declare abstract class AbstractRepository<EntitySchema extends TTableSche
423
232
  }): Promise<TCount & {
424
233
  data: Array<R>;
425
234
  }>;
426
- /**
427
- * Alias for deleteAll. Deletes records matching the where condition.
428
- * Delegates to deleteAll with the same parameters.
429
- */
235
+ /** Alias for deleteAll. */
430
236
  deleteBy(opts: {
431
237
  where: TWhere<DataObject>;
432
238
  options: ExtraOptions & {
@@ -1 +1 @@
1
- {"version":3,"file":"abstract.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/core/abstract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY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AAG,OAAO,CAAC,MAAM,GAAG;QAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC;CAmBzC"}
@@ -6,57 +6,8 @@ const ignis_helpers_1 = require("@venizia/ignis-helpers");
6
6
  const common_1 = require("../common");
7
7
  const mixins_1 = require("../mixins");
8
8
  const operators_1 = require("../operators");
9
- // -----------------------------------------------------------------------------
10
- // Abstract Repository
11
- // -----------------------------------------------------------------------------
12
- /**
13
- * Abstract base repository class with dependency injection support.
14
- *
15
- * This class provides the foundation for all repository implementations,
16
- * combining {@link FieldsVisibilityMixin} and {@link DefaultFilterMixin}
17
- * for automatic hidden field exclusion and default filter application.
18
- *
19
- * @template EntitySchema - The Drizzle table schema type with an 'id' column
20
- * @template DataObject - The type of objects returned from queries
21
- * @template PersistObject - The type for insert/update operations
22
- * @template ExtraOptions - Additional options type extending IExtraOptions
23
- *
24
- * @example
25
- * **1. Zero boilerplate - dataSource auto-injected from @repository metadata:**
26
- * ```typescript
27
- * @repository({ model: User, dataSource: PostgresDataSource })
28
- * export class UserRepository extends DefaultCRUDRepository<typeof User.schema> {
29
- * // No constructor needed - datasource auto-injected!
30
- * }
31
- * ```
32
- *
33
- * @example
34
- * **2. Explicit @inject:**
35
- * ```typescript
36
- * @repository({ model: User })
37
- * export class UserRepository extends DefaultCRUDRepository<typeof User.schema> {
38
- * constructor(
39
- * @inject({ key: 'datasources.PostgresDataSource' })
40
- * dataSource: PostgresDataSource,
41
- * ) {
42
- * super(dataSource);
43
- * }
44
- * }
45
- * ```
46
- */
9
+ /** Abstract base repository combining FieldsVisibilityMixin and DefaultFilterMixin. */
47
10
  class AbstractRepository extends (0, mixins_1.DefaultFilterMixin)((0, mixins_1.FieldsVisibilityMixin)(ignis_helpers_1.BaseHelper)) {
48
- // ---------------------------------------------------------------------------
49
- // Constructor
50
- // ---------------------------------------------------------------------------
51
- /**
52
- * Creates a new repository instance.
53
- *
54
- * @param ds - DataSource (auto-injected from @repository decorator or passed explicitly)
55
- * @param opts - Optional configuration
56
- * @param opts.scope - Custom scope name for logging
57
- * @param opts.entityClass - Entity class if not using @repository decorator
58
- * @param opts.operationScope - Operation scope (defaults to READ_ONLY)
59
- */
60
11
  constructor(ds, opts) {
61
12
  const scopeName = (opts?.scope ?? opts?.entityClass?.name)
62
13
  ? [opts?.entityClass?.name, 'Repository'].join('')
@@ -71,13 +22,6 @@ class AbstractRepository extends (0, mixins_1.DefaultFilterMixin)((0, mixins_1.F
71
22
  this._entity = new opts.entityClass();
72
23
  }
73
24
  }
74
- // ---------------------------------------------------------------------------
75
- // Public Accessors
76
- // ---------------------------------------------------------------------------
77
- /**
78
- * Gets the data source for database operations.
79
- * @throws Error if dataSource is not available
80
- */
81
25
  get dataSource() {
82
26
  if (!this._dataSource) {
83
27
  throw (0, ignis_helpers_1.getError)({
@@ -86,82 +30,44 @@ class AbstractRepository extends (0, mixins_1.DefaultFilterMixin)((0, mixins_1.F
86
30
  }
87
31
  return this._dataSource;
88
32
  }
89
- /** Sets the data source for database operations. */
90
33
  set dataSource(value) {
91
34
  this._dataSource = value;
92
35
  }
93
- /**
94
- * Gets the entity instance.
95
- * Auto-resolves from @repository metadata if not explicitly set.
96
- */
36
+ /** Auto-resolves from @repository metadata if not explicitly set. */
97
37
  get entity() {
98
38
  if (!this._entity) {
99
39
  this._entity = this.resolveEntity();
100
40
  }
101
41
  return this._entity;
102
42
  }
103
- /** Sets the entity instance. */
104
43
  set entity(value) {
105
44
  this._entity = value;
106
45
  }
107
- /** Gets the current operation scope (READ_ONLY, WRITE_ONLY, or READ_WRITE). */
108
46
  get operationScope() {
109
47
  return this._operationScope;
110
48
  }
111
- /** Gets the filter builder instance. */
112
49
  get filterBuilder() {
113
50
  return this._filterBuilder;
114
51
  }
115
- /** Gets the database connector from the data source. */
116
52
  get connector() {
117
53
  return this.dataSource.connector;
118
54
  }
119
- // ---------------------------------------------------------------------------
120
- // Public Instance Methods
121
- // ---------------------------------------------------------------------------
122
- /**
123
- * Sets the data source for this repository.
124
- * @param opts - Options containing the data source
125
- */
126
55
  setDataSource(opts) {
127
56
  this._dataSource = opts.dataSource;
128
57
  }
129
- /**
130
- * Returns the entity instance associated with this repository.
131
- * @returns The entity instance
132
- */
133
58
  getEntity() {
134
59
  return this.entity;
135
60
  }
136
- /**
137
- * Returns the Drizzle table schema for this entity.
138
- * @returns The table schema
139
- */
140
61
  getEntitySchema() {
141
62
  return this.entity.schema;
142
63
  }
143
- /**
144
- * Returns the database connector from the data source.
145
- * @returns The database connector
146
- */
147
64
  getConnector() {
148
65
  return this.connector;
149
66
  }
150
- /**
151
- * Begins a new database transaction.
152
- * @param opts - Optional transaction configuration
153
- * @returns Promise resolving to the transaction instance
154
- */
155
67
  async beginTransaction(opts) {
156
68
  return this.dataSource.beginTransaction(opts);
157
69
  }
158
- /**
159
- * Builds Drizzle query options from a filter object.
160
- * Handles field visibility by excluding hidden properties.
161
- *
162
- * @param opts - Options containing the filter to convert
163
- * @returns Drizzle-compatible query options
164
- */
70
+ /** Builds Drizzle query options from a filter, excluding hidden properties. */
165
71
  buildQuery(opts) {
166
72
  const result = this.filterBuilder.build({
167
73
  tableName: this.entity.name,
@@ -194,16 +100,7 @@ class AbstractRepository extends (0, mixins_1.DefaultFilterMixin)((0, mixins_1.F
194
100
  }
195
101
  return result;
196
102
  }
197
- // ---------------------------------------------------------------------------
198
- // Entity Resolution (protected)
199
- // ---------------------------------------------------------------------------
200
- /**
201
- * Resolves the entity instance from @repository metadata.
202
- * Called lazily when entity is first accessed.
203
- *
204
- * @returns The resolved entity instance
205
- * @throws Error if entity cannot be resolved from metadata
206
- */
103
+ /** Resolves the entity instance from @repository metadata on first access. */
207
104
  resolveEntity() {
208
105
  const registry = inversion_1.MetadataRegistry.getInstance();
209
106
  const binding = registry.getRepositoryBinding({
@@ -218,16 +115,7 @@ class AbstractRepository extends (0, mixins_1.DefaultFilterMixin)((0, mixins_1.F
218
115
  const ctor = (0, ignis_helpers_1.resolveValue)(binding.model);
219
116
  return new ctor();
220
117
  }
221
- // ---------------------------------------------------------------------------
222
- // Transaction Support (protected)
223
- // ---------------------------------------------------------------------------
224
- /**
225
- * Resolves the database connector, using transaction connector if provided.
226
- *
227
- * @param opts - Options containing optional transaction
228
- * @returns The database connector (from transaction or default data source)
229
- * @throws Error if transaction is no longer active
230
- */
118
+ /** Resolves the database connector, using transaction connector if provided. */
231
119
  resolveConnector(opts) {
232
120
  const transaction = opts?.transaction;
233
121
  if (!transaction) {
@@ -240,15 +128,7 @@ class AbstractRepository extends (0, mixins_1.DefaultFilterMixin)((0, mixins_1.F
240
128
  }
241
129
  return transaction.connector;
242
130
  }
243
- /**
244
- * Gets the Drizzle query interface for this entity.
245
- * Validates that the schema is properly registered in the connector.
246
- *
247
- * @param opts - Options containing extra options with optional transaction
248
- * @returns The Drizzle query interface for this entity
249
- * @throws Error if connector.query is not available
250
- * @throws Error if entity schema is not registered in connector
251
- */
131
+ /** Gets the Drizzle query interface, validating schema registration. */
252
132
  getQueryInterface(opts) {
253
133
  const connector = this.resolveConnector({ transaction: opts?.options?.transaction });
254
134
  // Validate connector.query exists
@@ -1 +1 @@
1
- {"version":3,"file":"abstract.js","sourceRoot":"","sources":["../../../../src/base/repositories/core/abstract.ts"],"names":[],"mappings":";;;AAEA,mDAAuD;AACvD,0DAA+F;AAC/F,sCAWmB;AACnB,sCAAsE;AACtE,4CAA6C;AAE7C,gFAAgF;AAChF,sBAAsB;AACtB,gFAAgF;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAsB,kBAMpB,SAAQ,IAAA,2BAAkB,EAAC,IAAA,8BAAqB,EAAC,0BAAU,CAAC,CAAC;IA+B7D,8EAA8E;IAC9E,cAAc;IACd,8EAA8E;IAE9E;;;;;;;;OAQG;IACH,YACE,EAAgB,EAChB,IAIC;QAED,MAAM,SAAS,GACb,CAAC,IAAI,EAAE,KAAK,IAAI,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC;YACtC,CA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