@venizia/ignis 0.0.7-2 → 0.0.7-21

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 (559) hide show
  1. package/README.md +2757 -28
  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 +16 -130
  14. package/dist/base/controllers/abstract.d.ts.map +1 -1
  15. package/dist/base/controllers/abstract.js +62 -112
  16. package/dist/base/controllers/abstract.js.map +1 -1
  17. package/dist/base/controllers/base.d.ts +10 -118
  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 +10 -29
  24. package/dist/base/controllers/common/constants.js.map +1 -1
  25. package/dist/base/controllers/common/types.d.ts +34 -152
  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 +37 -199
  30. package/dist/base/controllers/factory/controller.d.ts.map +1 -1
  31. package/dist/base/controllers/factory/controller.js +21 -146
  32. package/dist/base/controllers/factory/controller.js.map +1 -1
  33. package/dist/base/controllers/factory/definition.d.ts +15 -9
  34. package/dist/base/controllers/factory/definition.d.ts.map +1 -1
  35. package/dist/base/controllers/factory/definition.js +62 -58
  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 +8 -31
  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 +31 -5
  175. package/dist/components/auth/authenticate/common/constants.d.ts.map +1 -1
  176. package/dist/components/auth/authenticate/common/constants.js +41 -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 +63 -37
  187. package/dist/components/auth/authenticate/common/types.d.ts.map +1 -1
  188. package/dist/components/auth/authenticate/component.d.ts +5 -18
  189. package/dist/components/auth/authenticate/component.d.ts.map +1 -1
  190. package/dist/components/auth/authenticate/component.js +114 -82
  191. package/dist/components/auth/authenticate/component.js.map +1 -1
  192. package/dist/components/auth/authenticate/controllers/factory.d.ts +12 -12
  193. package/dist/components/auth/authenticate/controllers/factory.d.ts.map +1 -1
  194. package/dist/components/auth/authenticate/controllers/factory.js +23 -22
  195. package/dist/components/auth/authenticate/controllers/factory.js.map +1 -1
  196. package/dist/components/auth/authenticate/controllers/index.d.ts +1 -0
  197. package/dist/components/auth/authenticate/controllers/index.d.ts.map +1 -1
  198. package/dist/components/auth/authenticate/controllers/index.js +1 -0
  199. package/dist/components/auth/authenticate/controllers/index.js.map +1 -1
  200. package/dist/components/auth/authenticate/controllers/jwks/controller.d.ts +9 -0
  201. package/dist/components/auth/authenticate/controllers/jwks/controller.d.ts.map +1 -0
  202. package/dist/components/auth/authenticate/controllers/jwks/controller.js +54 -0
  203. package/dist/components/auth/authenticate/controllers/jwks/controller.js.map +1 -0
  204. package/dist/components/auth/authenticate/controllers/jwks/definitions.d.ts +66 -0
  205. package/dist/components/auth/authenticate/controllers/jwks/definitions.d.ts.map +1 -0
  206. package/dist/components/auth/authenticate/controllers/jwks/definitions.js +32 -0
  207. package/dist/components/auth/authenticate/controllers/jwks/definitions.js.map +1 -0
  208. package/dist/components/auth/authenticate/controllers/jwks/index.d.ts +2 -0
  209. package/dist/components/auth/authenticate/controllers/jwks/index.d.ts.map +1 -0
  210. package/dist/components/auth/authenticate/controllers/jwks/index.js +18 -0
  211. package/dist/components/auth/authenticate/controllers/jwks/index.js.map +1 -0
  212. package/dist/components/auth/authenticate/index.d.ts +2 -0
  213. package/dist/components/auth/authenticate/index.d.ts.map +1 -1
  214. package/dist/components/auth/authenticate/index.js +2 -0
  215. package/dist/components/auth/authenticate/index.js.map +1 -1
  216. package/dist/components/auth/authenticate/middlewares/authenticate.middleware.d.ts +6 -0
  217. package/dist/components/auth/authenticate/middlewares/authenticate.middleware.d.ts.map +1 -0
  218. package/dist/components/auth/authenticate/middlewares/authenticate.middleware.js +12 -0
  219. package/dist/components/auth/authenticate/middlewares/authenticate.middleware.js.map +1 -0
  220. package/dist/components/auth/authenticate/middlewares/index.d.ts +2 -0
  221. package/dist/components/auth/authenticate/middlewares/index.d.ts.map +1 -0
  222. package/dist/components/auth/authenticate/middlewares/index.js +18 -0
  223. package/dist/components/auth/authenticate/middlewares/index.js.map +1 -0
  224. package/dist/components/auth/authenticate/providers/authentication.provider.d.ts +12 -0
  225. package/dist/components/auth/authenticate/providers/authentication.provider.d.ts.map +1 -0
  226. package/dist/components/auth/authenticate/providers/authentication.provider.js +117 -0
  227. package/dist/components/auth/authenticate/providers/authentication.provider.js.map +1 -0
  228. package/dist/components/auth/authenticate/providers/index.d.ts +2 -0
  229. package/dist/components/auth/authenticate/providers/index.d.ts.map +1 -0
  230. package/dist/components/auth/authenticate/providers/index.js +18 -0
  231. package/dist/components/auth/authenticate/providers/index.js.map +1 -0
  232. package/dist/components/auth/authenticate/services/basic/index.d.ts +2 -0
  233. package/dist/components/auth/authenticate/services/basic/index.d.ts.map +1 -0
  234. package/dist/components/auth/authenticate/services/basic/index.js +18 -0
  235. package/dist/components/auth/authenticate/services/basic/index.js.map +1 -0
  236. package/dist/components/auth/authenticate/services/basic/service.d.ts +24 -0
  237. package/dist/components/auth/authenticate/services/basic/service.d.ts.map +1 -0
  238. package/dist/components/auth/authenticate/services/{basic-token.service.js → basic/service.js} +10 -49
  239. package/dist/components/auth/authenticate/services/basic/service.js.map +1 -0
  240. package/dist/components/auth/authenticate/services/bearer/abstract.service.d.ts +52 -0
  241. package/dist/components/auth/authenticate/services/bearer/abstract.service.d.ts.map +1 -0
  242. package/dist/components/auth/authenticate/services/bearer/abstract.service.js +177 -0
  243. package/dist/components/auth/authenticate/services/bearer/abstract.service.js.map +1 -0
  244. package/dist/components/auth/authenticate/services/bearer/index.d.ts +4 -0
  245. package/dist/components/auth/authenticate/services/bearer/index.d.ts.map +1 -0
  246. package/dist/components/auth/authenticate/services/bearer/index.js +20 -0
  247. package/dist/components/auth/authenticate/services/bearer/index.js.map +1 -0
  248. package/dist/components/auth/authenticate/services/bearer/jwks/abstract.service.d.ts +16 -0
  249. package/dist/components/auth/authenticate/services/bearer/jwks/abstract.service.d.ts.map +1 -0
  250. package/dist/components/auth/authenticate/services/bearer/jwks/abstract.service.js +32 -0
  251. package/dist/components/auth/authenticate/services/bearer/jwks/abstract.service.js.map +1 -0
  252. package/dist/components/auth/authenticate/services/bearer/jwks/index.d.ts +4 -0
  253. package/dist/components/auth/authenticate/services/bearer/jwks/index.d.ts.map +1 -0
  254. package/dist/components/auth/authenticate/services/bearer/jwks/index.js +20 -0
  255. package/dist/components/auth/authenticate/services/bearer/jwks/index.js.map +1 -0
  256. package/dist/components/auth/authenticate/services/bearer/jwks/issuer.service.d.ts +46 -0
  257. package/dist/components/auth/authenticate/services/bearer/jwks/issuer.service.d.ts.map +1 -0
  258. package/dist/components/auth/authenticate/services/bearer/jwks/issuer.service.js +168 -0
  259. package/dist/components/auth/authenticate/services/bearer/jwks/issuer.service.js.map +1 -0
  260. package/dist/components/auth/authenticate/services/bearer/jwks/verifier.service.d.ts +18 -0
  261. package/dist/components/auth/authenticate/services/bearer/jwks/verifier.service.d.ts.map +1 -0
  262. package/dist/components/auth/authenticate/services/bearer/jwks/verifier.service.js +73 -0
  263. package/dist/components/auth/authenticate/services/bearer/jwks/verifier.service.js.map +1 -0
  264. package/dist/components/auth/authenticate/services/bearer/jws.service.d.ts +19 -0
  265. package/dist/components/auth/authenticate/services/bearer/jws.service.d.ts.map +1 -0
  266. package/dist/components/auth/authenticate/services/bearer/jws.service.js +76 -0
  267. package/dist/components/auth/authenticate/services/bearer/jws.service.js.map +1 -0
  268. package/dist/components/auth/authenticate/services/index.d.ts +2 -2
  269. package/dist/components/auth/authenticate/services/index.d.ts.map +1 -1
  270. package/dist/components/auth/authenticate/services/index.js +2 -2
  271. package/dist/components/auth/authenticate/services/index.js.map +1 -1
  272. package/dist/components/auth/authenticate/strategies/basic.strategy.d.ts +2 -23
  273. package/dist/components/auth/authenticate/strategies/basic.strategy.d.ts.map +1 -1
  274. package/dist/components/auth/authenticate/strategies/basic.strategy.js +12 -26
  275. package/dist/components/auth/authenticate/strategies/basic.strategy.js.map +1 -1
  276. package/dist/components/auth/authenticate/strategies/index.d.ts +2 -1
  277. package/dist/components/auth/authenticate/strategies/index.d.ts.map +1 -1
  278. package/dist/components/auth/authenticate/strategies/index.js +2 -1
  279. package/dist/components/auth/authenticate/strategies/index.js.map +1 -1
  280. package/dist/components/auth/authenticate/strategies/jwks.strategy.d.ts +21 -0
  281. package/dist/components/auth/authenticate/strategies/jwks.strategy.d.ts.map +1 -0
  282. package/dist/components/auth/authenticate/strategies/jwks.strategy.js +68 -0
  283. package/dist/components/auth/authenticate/strategies/jwks.strategy.js.map +1 -0
  284. package/dist/components/auth/authenticate/strategies/{jwt.strategy.d.ts → jws.strategy.d.ts} +6 -5
  285. package/dist/components/auth/authenticate/strategies/jws.strategy.d.ts.map +1 -0
  286. package/dist/components/auth/authenticate/strategies/{jwt.strategy.js → jws.strategy.js} +21 -13
  287. package/dist/components/auth/authenticate/strategies/jws.strategy.js.map +1 -0
  288. package/dist/components/auth/authenticate/strategies/strategy-registry.d.ts +11 -24
  289. package/dist/components/auth/authenticate/strategies/strategy-registry.d.ts.map +1 -1
  290. package/dist/components/auth/authenticate/strategies/strategy-registry.js +9 -132
  291. package/dist/components/auth/authenticate/strategies/strategy-registry.js.map +1 -1
  292. package/dist/components/auth/authorize/adapters/base-filtered.d.ts +73 -0
  293. package/dist/components/auth/authorize/adapters/base-filtered.d.ts.map +1 -0
  294. package/dist/components/auth/authorize/adapters/base-filtered.js +90 -0
  295. package/dist/components/auth/authorize/adapters/base-filtered.js.map +1 -0
  296. package/dist/components/auth/authorize/adapters/drizzle-casbin.d.ts +40 -0
  297. package/dist/components/auth/authorize/adapters/drizzle-casbin.d.ts.map +1 -0
  298. package/dist/components/auth/authorize/adapters/drizzle-casbin.js +99 -0
  299. package/dist/components/auth/authorize/adapters/drizzle-casbin.js.map +1 -0
  300. package/dist/components/auth/authorize/adapters/index.d.ts +3 -0
  301. package/dist/components/auth/authorize/adapters/index.d.ts.map +1 -0
  302. package/dist/components/auth/authorize/adapters/index.js +19 -0
  303. package/dist/components/auth/authorize/adapters/index.js.map +1 -0
  304. package/dist/components/auth/authorize/common/constants.d.ts +70 -0
  305. package/dist/components/auth/authorize/common/constants.d.ts.map +1 -0
  306. package/dist/components/auth/authorize/common/constants.js +130 -0
  307. package/dist/components/auth/authorize/common/constants.js.map +1 -0
  308. package/dist/components/auth/authorize/common/index.d.ts +4 -0
  309. package/dist/components/auth/authorize/common/index.d.ts.map +1 -0
  310. package/dist/components/auth/authorize/common/index.js +20 -0
  311. package/dist/components/auth/authorize/common/index.js.map +1 -0
  312. package/dist/components/auth/authorize/common/keys.d.ts +6 -0
  313. package/dist/components/auth/authorize/common/keys.d.ts.map +1 -0
  314. package/dist/components/auth/authorize/common/keys.js +12 -0
  315. package/dist/components/auth/authorize/common/keys.js.map +1 -0
  316. package/dist/components/auth/authorize/common/types.d.ts +107 -0
  317. package/dist/components/auth/authorize/common/types.d.ts.map +1 -0
  318. package/dist/components/auth/authorize/{middleware.js → common/types.js} +1 -1
  319. package/dist/components/auth/authorize/common/types.js.map +1 -0
  320. package/dist/components/auth/authorize/component.d.ts +10 -0
  321. package/dist/components/auth/authorize/component.d.ts.map +1 -0
  322. package/dist/components/auth/authorize/component.js +58 -0
  323. package/dist/components/auth/authorize/component.js.map +1 -0
  324. package/dist/components/auth/authorize/enforcers/casbin.enforcer.d.ts +56 -0
  325. package/dist/components/auth/authorize/enforcers/casbin.enforcer.d.ts.map +1 -0
  326. package/dist/components/auth/authorize/enforcers/casbin.enforcer.js +254 -0
  327. package/dist/components/auth/authorize/enforcers/casbin.enforcer.js.map +1 -0
  328. package/dist/components/auth/authorize/enforcers/enforcer-registry.d.ts +33 -0
  329. package/dist/components/auth/authorize/enforcers/enforcer-registry.d.ts.map +1 -0
  330. package/dist/components/auth/authorize/enforcers/enforcer-registry.js +79 -0
  331. package/dist/components/auth/authorize/enforcers/enforcer-registry.js.map +1 -0
  332. package/dist/components/auth/authorize/enforcers/index.d.ts +3 -0
  333. package/dist/components/auth/authorize/enforcers/index.d.ts.map +1 -0
  334. package/dist/components/auth/authorize/enforcers/index.js +19 -0
  335. package/dist/components/auth/authorize/enforcers/index.js.map +1 -0
  336. package/dist/components/auth/authorize/index.d.ts +7 -1
  337. package/dist/components/auth/authorize/index.d.ts.map +1 -1
  338. package/dist/components/auth/authorize/index.js +21 -0
  339. package/dist/components/auth/authorize/index.js.map +1 -1
  340. package/dist/components/auth/authorize/middlewares/authorize.middleware.d.ts +6 -0
  341. package/dist/components/auth/authorize/middlewares/authorize.middleware.d.ts.map +1 -0
  342. package/dist/components/auth/authorize/middlewares/authorize.middleware.js +12 -0
  343. package/dist/components/auth/authorize/middlewares/authorize.middleware.js.map +1 -0
  344. package/dist/components/auth/authorize/middlewares/index.d.ts +2 -0
  345. package/dist/components/auth/authorize/middlewares/index.d.ts.map +1 -0
  346. package/dist/components/auth/authorize/middlewares/index.js +18 -0
  347. package/dist/components/auth/authorize/middlewares/index.js.map +1 -0
  348. package/dist/components/auth/authorize/models/abilities/index.d.ts +3 -0
  349. package/dist/components/auth/authorize/models/abilities/index.d.ts.map +1 -0
  350. package/dist/components/auth/authorize/models/abilities/index.js +19 -0
  351. package/dist/components/auth/authorize/models/abilities/index.js.map +1 -0
  352. package/dist/components/auth/authorize/models/abilities/string-action.model.d.ts +14 -0
  353. package/dist/components/auth/authorize/models/abilities/string-action.model.d.ts.map +1 -0
  354. package/dist/components/auth/authorize/models/abilities/string-action.model.js +23 -0
  355. package/dist/components/auth/authorize/models/abilities/string-action.model.js.map +1 -0
  356. package/dist/components/auth/authorize/models/abilities/string-resource.model.d.ts +13 -0
  357. package/dist/components/auth/authorize/models/abilities/string-resource.model.d.ts.map +1 -0
  358. package/dist/components/auth/authorize/models/abilities/string-resource.model.js +19 -0
  359. package/dist/components/auth/authorize/models/abilities/string-resource.model.js.map +1 -0
  360. package/dist/components/auth/authorize/models/authorization-role.model.d.ts +30 -0
  361. package/dist/components/auth/authorize/models/authorization-role.model.d.ts.map +1 -0
  362. package/dist/components/auth/authorize/models/authorization-role.model.js +30 -0
  363. package/dist/components/auth/authorize/models/authorization-role.model.js.map +1 -0
  364. package/dist/components/auth/authorize/models/index.d.ts +3 -0
  365. package/dist/components/auth/authorize/models/index.d.ts.map +1 -0
  366. package/dist/components/auth/authorize/models/index.js +19 -0
  367. package/dist/components/auth/authorize/models/index.js.map +1 -0
  368. package/dist/components/auth/authorize/providers/authorization.provider.d.ts +10 -0
  369. package/dist/components/auth/authorize/providers/authorization.provider.d.ts.map +1 -0
  370. package/dist/components/auth/authorize/providers/authorization.provider.js +135 -0
  371. package/dist/components/auth/authorize/providers/authorization.provider.js.map +1 -0
  372. package/dist/components/auth/authorize/providers/index.d.ts +2 -0
  373. package/dist/components/auth/authorize/providers/index.d.ts.map +1 -0
  374. package/dist/components/auth/authorize/providers/index.js +18 -0
  375. package/dist/components/auth/authorize/providers/index.js.map +1 -0
  376. package/dist/components/auth/base/abstract-auth-registry.d.ts +27 -0
  377. package/dist/components/auth/base/abstract-auth-registry.d.ts.map +1 -0
  378. package/dist/components/auth/base/abstract-auth-registry.js +62 -0
  379. package/dist/components/auth/base/abstract-auth-registry.js.map +1 -0
  380. package/dist/components/auth/base/index.d.ts +2 -0
  381. package/dist/components/auth/base/index.d.ts.map +1 -0
  382. package/dist/components/auth/base/index.js +18 -0
  383. package/dist/components/auth/base/index.js.map +1 -0
  384. package/dist/components/auth/context-variables.d.ts +14 -0
  385. package/dist/components/auth/context-variables.d.ts.map +1 -0
  386. package/dist/components/auth/context-variables.js +3 -0
  387. package/dist/components/auth/context-variables.js.map +1 -0
  388. package/dist/components/auth/index.d.ts +2 -0
  389. package/dist/components/auth/index.d.ts.map +1 -1
  390. package/dist/components/auth/index.js +2 -0
  391. package/dist/components/auth/index.js.map +1 -1
  392. package/dist/components/auth/models/entities/index.d.ts +1 -2
  393. package/dist/components/auth/models/entities/index.d.ts.map +1 -1
  394. package/dist/components/auth/models/entities/index.js +1 -2
  395. package/dist/components/auth/models/entities/index.js.map +1 -1
  396. package/dist/components/auth/models/entities/permission.model.d.ts +0 -1
  397. package/dist/components/auth/models/entities/permission.model.d.ts.map +1 -1
  398. package/dist/components/auth/models/entities/permission.model.js +0 -2
  399. package/dist/components/auth/models/entities/permission.model.js.map +1 -1
  400. package/dist/components/auth/models/entities/policy-definition.model.d.ts +24 -0
  401. package/dist/components/auth/models/entities/policy-definition.model.d.ts.map +1 -0
  402. package/dist/components/auth/models/entities/policy-definition.model.js +39 -0
  403. package/dist/components/auth/models/entities/policy-definition.model.js.map +1 -0
  404. package/dist/components/auth/models/entities/role.model.d.ts +3 -1
  405. package/dist/components/auth/models/entities/role.model.d.ts.map +1 -1
  406. package/dist/components/auth/models/entities/role.model.js +5 -3
  407. package/dist/components/auth/models/entities/role.model.js.map +1 -1
  408. package/dist/components/auth/models/entities/user.model.d.ts +4 -2
  409. package/dist/components/auth/models/entities/user.model.d.ts.map +1 -1
  410. package/dist/components/auth/models/entities/user.model.js +6 -5
  411. package/dist/components/auth/models/entities/user.model.js.map +1 -1
  412. package/dist/components/auth/models/requests/change-password.schema.js +3 -3
  413. package/dist/components/auth/models/requests/change-password.schema.js.map +1 -1
  414. package/dist/components/auth/models/requests/sign-in.schema.js +5 -5
  415. package/dist/components/auth/models/requests/sign-in.schema.js.map +1 -1
  416. package/dist/components/health-check/controller.d.ts.map +1 -1
  417. package/dist/components/health-check/controller.js +0 -1
  418. package/dist/components/health-check/controller.js.map +1 -1
  419. package/dist/components/index.d.ts +0 -2
  420. package/dist/components/index.d.ts.map +1 -1
  421. package/dist/components/index.js +4 -2
  422. package/dist/components/index.js.map +1 -1
  423. package/dist/components/mail/common/types.d.ts +1 -1
  424. package/dist/components/mail/common/types.d.ts.map +1 -1
  425. package/dist/components/mail/component.d.ts.map +1 -1
  426. package/dist/components/mail/component.js +2 -7
  427. package/dist/components/mail/component.js.map +1 -1
  428. package/dist/components/mail/helpers/executors/bull-mq-executor.helper.d.ts +2 -1
  429. package/dist/components/mail/helpers/executors/bull-mq-executor.helper.d.ts.map +1 -1
  430. package/dist/components/mail/helpers/executors/bull-mq-executor.helper.js +10 -9
  431. package/dist/components/mail/helpers/executors/bull-mq-executor.helper.js.map +1 -1
  432. package/dist/components/mail/helpers/executors/direct-executor.helper.d.ts +1 -1
  433. package/dist/components/mail/helpers/executors/direct-executor.helper.d.ts.map +1 -1
  434. package/dist/components/mail/helpers/executors/direct-executor.helper.js +3 -3
  435. package/dist/components/mail/helpers/executors/direct-executor.helper.js.map +1 -1
  436. package/dist/components/mail/helpers/executors/internal-queue-executor.helper.d.ts +1 -1
  437. package/dist/components/mail/helpers/executors/internal-queue-executor.helper.d.ts.map +1 -1
  438. package/dist/components/mail/helpers/executors/internal-queue-executor.helper.js +4 -4
  439. package/dist/components/mail/helpers/executors/internal-queue-executor.helper.js.map +1 -1
  440. package/dist/components/mail/helpers/transporters/mailgun-transporter.helper.d.ts +1 -1
  441. package/dist/components/mail/helpers/transporters/mailgun-transporter.helper.d.ts.map +1 -1
  442. package/dist/components/mail/helpers/transporters/mailgun-transporter.helper.js +3 -3
  443. package/dist/components/mail/helpers/transporters/mailgun-transporter.helper.js.map +1 -1
  444. package/dist/components/mail/helpers/transporters/nodemail-transporter.helper.d.ts +1 -1
  445. package/dist/components/mail/helpers/transporters/nodemail-transporter.helper.d.ts.map +1 -1
  446. package/dist/components/mail/helpers/transporters/nodemail-transporter.helper.js +3 -3
  447. package/dist/components/mail/helpers/transporters/nodemail-transporter.helper.js.map +1 -1
  448. package/dist/components/mail/providers/mail-queue-executor.provider.d.ts.map +1 -1
  449. package/dist/components/mail/providers/mail-queue-executor.provider.js +8 -8
  450. package/dist/components/mail/providers/mail-queue-executor.provider.js.map +1 -1
  451. package/dist/components/mail/providers/mail-transporter.provider.d.ts.map +1 -1
  452. package/dist/components/mail/providers/mail-transporter.provider.js +6 -6
  453. package/dist/components/mail/providers/mail-transporter.provider.js.map +1 -1
  454. package/dist/components/mail/services/mail.service.d.ts +1 -1
  455. package/dist/components/mail/services/mail.service.d.ts.map +1 -1
  456. package/dist/components/mail/services/mail.service.js +9 -9
  457. package/dist/components/mail/services/mail.service.js.map +1 -1
  458. package/dist/components/mail/services/template.service.d.ts +1 -1
  459. package/dist/components/mail/services/template.service.d.ts.map +1 -1
  460. package/dist/components/mail/services/template.service.js +4 -4
  461. package/dist/components/mail/services/template.service.js.map +1 -1
  462. package/dist/components/mail/utilities/type.utility.d.ts +1 -1
  463. package/dist/components/mail/utilities/type.utility.d.ts.map +1 -1
  464. package/dist/components/socket-io/common/types.d.ts +2 -1
  465. package/dist/components/socket-io/common/types.d.ts.map +1 -1
  466. package/dist/components/socket-io/component.d.ts.map +1 -1
  467. package/dist/components/socket-io/component.js +2 -5
  468. package/dist/components/socket-io/component.js.map +1 -1
  469. package/dist/components/socket-io/handlers/node.handler.d.ts +1 -1
  470. package/dist/components/socket-io/handlers/node.handler.d.ts.map +1 -1
  471. package/dist/components/socket-io/handlers/node.handler.js +2 -1
  472. package/dist/components/socket-io/handlers/node.handler.js.map +1 -1
  473. package/dist/components/static-asset/common/constants.d.ts +1 -0
  474. package/dist/components/static-asset/common/constants.d.ts.map +1 -1
  475. package/dist/components/static-asset/common/constants.js +2 -1
  476. package/dist/components/static-asset/common/constants.js.map +1 -1
  477. package/dist/components/static-asset/common/types.d.ts +44 -1
  478. package/dist/components/static-asset/common/types.d.ts.map +1 -1
  479. package/dist/components/static-asset/controller/base.definition.d.ts +81 -80
  480. package/dist/components/static-asset/controller/base.definition.d.ts.map +1 -1
  481. package/dist/components/static-asset/controller/base.definition.js +1 -2
  482. package/dist/components/static-asset/controller/base.definition.js.map +1 -1
  483. package/dist/components/static-asset/controller/factory.d.ts +8 -12
  484. package/dist/components/static-asset/controller/factory.d.ts.map +1 -1
  485. package/dist/components/static-asset/controller/factory.js +41 -42
  486. package/dist/components/static-asset/controller/factory.js.map +1 -1
  487. package/dist/components/static-asset/models/base.model.d.ts +49 -19
  488. package/dist/components/static-asset/models/base.model.d.ts.map +1 -1
  489. package/dist/components/static-asset/models/base.model.js +3 -7
  490. package/dist/components/static-asset/models/base.model.js.map +1 -1
  491. package/dist/components/swagger/ui-factory.d.ts.map +1 -1
  492. package/dist/components/swagger/ui-factory.js +0 -2
  493. package/dist/components/swagger/ui-factory.js.map +1 -1
  494. package/dist/components/websocket/component.d.ts.map +1 -1
  495. package/dist/components/websocket/component.js +0 -3
  496. package/dist/components/websocket/component.js.map +1 -1
  497. package/dist/helpers/base-helper.d.ts +2 -0
  498. package/dist/helpers/base-helper.d.ts.map +1 -0
  499. package/dist/helpers/base-helper.js +6 -0
  500. package/dist/helpers/base-helper.js.map +1 -0
  501. package/dist/helpers/index.d.ts +2 -1
  502. package/dist/helpers/index.d.ts.map +1 -1
  503. package/dist/helpers/index.js +1 -1
  504. package/dist/helpers/index.js.map +1 -1
  505. package/dist/helpers/inversion/common/keys.d.ts.map +1 -1
  506. package/dist/helpers/inversion/common/keys.js +0 -2
  507. package/dist/helpers/inversion/common/keys.js.map +1 -1
  508. package/dist/helpers/inversion/common/types.d.ts +18 -56
  509. package/dist/helpers/inversion/common/types.d.ts.map +1 -1
  510. package/dist/helpers/inversion/container.d.ts.map +1 -1
  511. package/dist/helpers/inversion/container.js +0 -1
  512. package/dist/helpers/inversion/container.js.map +1 -1
  513. package/dist/helpers/inversion/index.d.ts +1 -1
  514. package/dist/helpers/inversion/index.d.ts.map +1 -1
  515. package/dist/helpers/inversion/index.js +5 -1
  516. package/dist/helpers/inversion/index.js.map +1 -1
  517. package/dist/helpers/inversion/mixins/controller.mixin.d.ts.map +1 -1
  518. package/dist/helpers/inversion/mixins/controller.mixin.js +0 -3
  519. package/dist/helpers/inversion/mixins/controller.mixin.js.map +1 -1
  520. package/dist/helpers/inversion/mixins/datasource.mixin.d.ts.map +1 -1
  521. package/dist/helpers/inversion/mixins/datasource.mixin.js +0 -3
  522. package/dist/helpers/inversion/mixins/datasource.mixin.js.map +1 -1
  523. package/dist/helpers/inversion/mixins/model.mixin.d.ts +29 -1
  524. package/dist/helpers/inversion/mixins/model.mixin.d.ts.map +1 -1
  525. package/dist/helpers/inversion/mixins/model.mixin.js +66 -2
  526. package/dist/helpers/inversion/mixins/model.mixin.js.map +1 -1
  527. package/dist/helpers/inversion/mixins/repository.mixin.d.ts.map +1 -1
  528. package/dist/helpers/inversion/mixins/repository.mixin.js +0 -2
  529. package/dist/helpers/inversion/mixins/repository.mixin.js.map +1 -1
  530. package/dist/helpers/inversion/registry.d.ts +22 -0
  531. package/dist/helpers/inversion/registry.d.ts.map +1 -1
  532. package/dist/utilities/jsx.utility.d.ts +2 -16
  533. package/dist/utilities/jsx.utility.d.ts.map +1 -1
  534. package/dist/utilities/jsx.utility.js +2 -16
  535. package/dist/utilities/jsx.utility.js.map +1 -1
  536. package/dist/utilities/schema.utility.d.ts.map +1 -1
  537. package/dist/utilities/schema.utility.js +0 -2
  538. package/dist/utilities/schema.utility.js.map +1 -1
  539. package/package.json +117 -77
  540. package/dist/components/auth/authenticate/services/basic-token.service.d.ts +0 -60
  541. package/dist/components/auth/authenticate/services/basic-token.service.d.ts.map +0 -1
  542. package/dist/components/auth/authenticate/services/basic-token.service.js.map +0 -1
  543. package/dist/components/auth/authenticate/services/jwt-token.service.d.ts +0 -34
  544. package/dist/components/auth/authenticate/services/jwt-token.service.d.ts.map +0 -1
  545. package/dist/components/auth/authenticate/services/jwt-token.service.js +0 -219
  546. package/dist/components/auth/authenticate/services/jwt-token.service.js.map +0 -1
  547. package/dist/components/auth/authenticate/strategies/jwt.strategy.d.ts.map +0 -1
  548. package/dist/components/auth/authenticate/strategies/jwt.strategy.js.map +0 -1
  549. package/dist/components/auth/authorize/middleware.d.ts +0 -2
  550. package/dist/components/auth/authorize/middleware.d.ts.map +0 -1
  551. package/dist/components/auth/authorize/middleware.js.map +0 -1
  552. package/dist/components/auth/models/entities/permission-mapping.model.d.ts +0 -26
  553. package/dist/components/auth/models/entities/permission-mapping.model.d.ts.map +0 -1
  554. package/dist/components/auth/models/entities/permission-mapping.model.js +0 -33
  555. package/dist/components/auth/models/entities/permission-mapping.model.js.map +0 -1
  556. package/dist/components/auth/models/entities/user-role.model.d.ts +0 -17
  557. package/dist/components/auth/models/entities/user-role.model.d.ts.map +0 -1
  558. package/dist/components/auth/models/entities/user-role.model.js +0 -34
  559. package/dist/components/auth/models/entities/user-role.model.js.map +0 -1
@@ -1,33 +1,13 @@
1
- import { BaseEntity, TTableSchemaWithId } from '../../../base/models';
2
- import { AbstractRepository } from '../../../base/repositories';
1
+ import { BaseEntity } from '../../../base/models/base';
2
+ import { TTableSchemaWithId } from '../../../base/models/common/types';
3
+ import { AbstractRepository } from '../../../base/repositories/core/abstract';
3
4
  import { BaseHelper, TClass, TNullable, TResolver, ValueOrPromise } from '@venizia/ignis-helpers';
4
- import { TAuthMode, TAuthStrategy } from '../../../components/auth/authenticate/common';
5
+ import { TAuthMode, TAuthStrategy } from '../../../components/auth/authenticate/common/constants';
6
+ import { IAuthorizationSpec } from '../../../components/auth/authorize/common/types';
5
7
  import { Env, Schema } from 'hono';
6
8
  import { z } from '@hono/zod-openapi';
7
9
  import { ICustomizableRoutes, TRouteContext } from '../common';
8
- /**
9
- * Configuration options for creating a CRUD controller via {@link ControllerFactory.defineCrudController}.
10
- *
11
- * @typeParam EntitySchema - The Drizzle table schema type with an ID column
12
- * @typeParam Routes - The routes configuration type (inferred from routes option)
13
- *
14
- * @example
15
- * ```typescript
16
- * const UserControllerClass = ControllerFactory.defineCrudController<UserSchema>({
17
- * entity: UserEntity,
18
- * repository: { name: 'UserRepository' },
19
- * controller: {
20
- * name: 'UserController',
21
- * basePath: '/users'
22
- * },
23
- * authenticate: { strategies: ['jwt'] },
24
- * routes: {
25
- * find: { skipAuth: true },
26
- * findById: { skipAuth: true }
27
- * }
28
- * });
29
- * ```
30
- */
10
+ /** Configuration options for creating a CRUD controller via ControllerFactory.defineCrudController. */
31
11
  export interface ICrudControllerOptions<EntitySchema extends TTableSchemaWithId, Routes extends ICustomizableRoutes = ICustomizableRoutes> {
32
12
  /** Entity class or resolver function returning the entity class */
33
13
  entity: TClass<BaseEntity<EntitySchema>> | TResolver<TClass<BaseEntity<EntitySchema>>>;
@@ -44,123 +24,24 @@ export interface ICrudControllerOptions<EntitySchema extends TTableSchemaWithId,
44
24
  requestSchema?: boolean;
45
25
  };
46
26
  };
47
- /**
48
- * Authentication config applied to all routes (unless overridden per-route)
49
- *
50
- * @example
51
- * // Apply JWT auth to all routes
52
- * authenticate: { strategies: ['jwt'] }
53
- */
27
+ /** Authentication config applied to all routes (unless overridden per-route). */
54
28
  authenticate?: {
55
29
  strategies?: TAuthStrategy[];
56
30
  mode?: TAuthMode;
57
31
  };
58
- /**
59
- * Per-route configuration combining schema and auth
60
- *
61
- * @example
62
- * // JWT auth on all, skip for public read endpoints
63
- * authenticate: { strategies: ['jwt'] },
64
- * routes: {
65
- * find: { skipAuth: true },
66
- * findById: { skipAuth: true },
67
- * count: { skipAuth: true },
68
- * }
69
- *
70
- * @example
71
- * // No controller auth, require JWT only for writes
72
- * routes: {
73
- * create: { authenticate: { strategies: ['jwt'] } },
74
- * updateById: { authenticate: { strategies: ['jwt'] }, requestBody: CustomUpdateSchema },
75
- * deleteById: { authenticate: { strategies: ['jwt'] } },
76
- * }
77
- *
78
- * @example
79
- * // Custom response schema with auth
80
- * authenticate: { strategies: ['jwt'] },
81
- * routes: {
82
- * find: { schema: CustomFindResponseSchema, skipAuth: true },
83
- * create: { schema: CustomCreateResponseSchema, requestBody: CustomCreateBodySchema },
84
- * }
85
- */
32
+ /** Authorization config applied to all routes (unless overridden per-route). */
33
+ authorize?: IAuthorizationSpec | IAuthorizationSpec[];
34
+ /** Per-route configuration combining schema and auth overrides. */
86
35
  routes?: Routes;
87
36
  }
88
- /**
89
- * Factory for generating CRUD controllers from entity definitions.
90
- *
91
- * Creates fully-typed controller classes with standard CRUD endpoints
92
- * (count, find, findById, findOne, create, updateById, updateBy, deleteById, deleteBy)
93
- * based on entity schemas.
94
- *
95
- * @example
96
- * ```typescript
97
- * // Define a CRUD controller for User entity
98
- * const UserControllerClass = ControllerFactory.defineCrudController<UserSchema>({
99
- * entity: UserEntity,
100
- * repository: { name: 'UserRepository' },
101
- * controller: { name: 'UserController', basePath: '/users' },
102
- * authenticate: { strategies: ['jwt'] },
103
- * routes: {
104
- * find: { skipAuth: true },
105
- * findById: { skipAuth: true }
106
- * }
107
- * });
108
- *
109
- * // Instantiate with repository
110
- * const userController = new UserControllerClass(userRepository);
111
- * ```
112
- */
37
+ /** Factory for generating typed CRUD controllers from entity definitions. */
113
38
  export declare class ControllerFactory extends BaseHelper {
114
39
  constructor();
115
- /**
116
- * Creates a CRUD controller class for the given entity.
117
- *
118
- * The returned class extends {@link BaseController} and includes handlers for:
119
- * - `GET /count` - Count records matching filter
120
- * - `GET /` - Find all records with pagination
121
- * - `GET /:id` - Find record by ID
122
- * - `GET /find-one` - Find single record matching filter
123
- * - `POST /` - Create new record
124
- * - `PATCH /:id` - Update record by ID
125
- * - `PATCH /` - Update records matching filter
126
- * - `DELETE /:id` - Delete record by ID
127
- * - `DELETE /` - Delete records matching filter
128
- *
129
- * @typeParam EntitySchema - The Drizzle table schema type
130
- * @typeParam RouteEnv - Hono environment type
131
- * @typeParam RouteSchema - Combined route schema type
132
- * @typeParam BasePath - Base path type
133
- * @typeParam ConfigurableOptions - Controller configuration options type
134
- * @param defOpts - Controller configuration options
135
- * @returns A controller class constructor
136
- *
137
- * @example
138
- * ```typescript
139
- * const ProductController = ControllerFactory.defineCrudController({
140
- * entity: ProductEntity,
141
- * repository: { name: 'ProductRepository' },
142
- * controller: { name: 'ProductController', basePath: '/products' }
143
- * });
144
- * ```
145
- */
40
+ /** Creates a CRUD controller class with standard endpoints (count, find, findById, create, update, delete). */
146
41
  static defineCrudController<EntitySchema extends TTableSchemaWithId, Routes extends ICustomizableRoutes = ICustomizableRoutes, RouteEnv extends Env = Env, RouteSchema extends Schema = {}, BasePath extends string = '/', ConfigurableOptions extends object = {}>(defOpts: ICrudControllerOptions<EntitySchema, Routes>): {
147
42
  new (repository: AbstractRepository<EntitySchema>): {
148
- /** Repository instance for database operations */
149
43
  repository: AbstractRepository<EntitySchema>;
150
- /**
151
- * Normalizes response data based on the `x-request-count` header.
152
- *
153
- * If the header is 'true' (default), returns full response with count.
154
- * If 'false', returns only the data portion.
155
- *
156
- * Also sets the `X-Response-Count-Data` header with the count.
157
- *
158
- * @typeParam ResponseSchema - The response data type
159
- * @typeParam RequestContext - Hono context type
160
- * @typeParam ResponseData - Full response shape with count and data
161
- * @param opts - Context and response data
162
- * @returns Normalized response (full or data-only)
163
- */
44
+ /** Normalizes response based on x-request-count header (returns full or data-only). */
164
45
  normalizeCountData<ResponseSchema extends unknown, RequestContext extends TRouteContext<RouteEnv> = TRouteContext<RouteEnv>, ResponseData extends {
165
46
  count: number;
166
47
  data?: TNullable<ResponseSchema>;
@@ -171,108 +52,56 @@ export declare class ControllerFactory extends BaseHelper {
171
52
  context: RequestContext;
172
53
  responseData: ResponseData;
173
54
  }): ResponseData | TNullable<ResponseSchema>;
174
- /**
175
- * Handles GET /count - Returns count of records matching the filter.
176
- *
177
- * @param opts - Request options containing the Hono context
178
- * @returns JSON response with count
179
- */
55
+ /** GET /count */
180
56
  count(opts: {
181
57
  context: TRouteContext<RouteEnv>;
182
58
  }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
183
- /**
184
- * Handles GET / - Returns paginated list of records with Content-Range header.
185
- *
186
- * Sets `Content-Range` header following HTTP RFC 7233 standard for pagination.
187
- *
188
- * @param opts - Request options containing the Hono context
189
- * @returns JSON response with data array and range information
190
- */
59
+ /** GET / - Returns paginated list with Content-Range header. */
191
60
  find(opts: {
192
61
  context: TRouteContext<RouteEnv>;
193
62
  }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
194
- /**
195
- * Handles GET /:id - Returns single record by ID.
196
- *
197
- * @param opts - Request options containing the Hono context
198
- * @returns JSON response with the found record or null
199
- */
63
+ /** GET /:id */
200
64
  findById(opts: {
201
65
  context: TRouteContext<RouteEnv>;
202
66
  }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
203
- /**
204
- * Handles GET /find-one - Returns first record matching the filter.
205
- *
206
- * @param opts - Request options containing the Hono context
207
- * @returns JSON response with the found record or null
208
- */
67
+ /** GET /find-one */
209
68
  findOne(opts: {
210
69
  context: TRouteContext<RouteEnv>;
211
70
  }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
212
- /**
213
- * Handles POST / - Creates a new record.
214
- *
215
- * @param opts - Request options containing the Hono context with request body
216
- * @returns JSON response with created record and count
217
- */
71
+ /** POST / */
218
72
  create(opts: {
219
73
  context: TRouteContext<RouteEnv>;
220
74
  }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
221
- /**
222
- * Handles PATCH /:id - Updates a record by ID.
223
- *
224
- * @param opts - Request options containing the Hono context with ID param and body
225
- * @returns JSON response with updated record and count
226
- */
75
+ /** PATCH /:id */
227
76
  updateById(opts: {
228
77
  context: TRouteContext<RouteEnv>;
229
78
  }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
230
- /**
231
- * Handles PATCH / - Updates records matching the where filter.
232
- *
233
- * @param opts - Request options containing the Hono context with where query and body
234
- * @returns JSON response with updated records array and count
235
- */
79
+ /** PATCH / */
236
80
  updateBy(opts: {
237
81
  context: TRouteContext<RouteEnv>;
238
82
  }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
239
- /**
240
- * Handles DELETE /:id - Deletes a record by ID.
241
- *
242
- * @param opts - Request options containing the Hono context with ID param
243
- * @returns JSON response with deleted record and count
244
- */
83
+ /** DELETE /:id */
245
84
  deleteById(opts: {
246
85
  context: TRouteContext<RouteEnv>;
247
86
  }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
248
- /**
249
- * Handles DELETE / - Deletes records matching the where filter.
250
- *
251
- * @param opts - Request options containing the Hono context with where query
252
- * @returns JSON response with deleted records array and count
253
- */
87
+ /** DELETE / */
254
88
  deleteBy(opts: {
255
89
  context: TRouteContext<RouteEnv>;
256
90
  }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
257
- /**
258
- * Registers all CRUD route handlers.
259
- *
260
- * Called during controller configuration. Binds all standard CRUD
261
- * endpoints to their respective handler methods.
262
- */
91
+ /** Registers all CRUD route handlers. */
263
92
  binding(): ValueOrPromise<void>;
264
93
  toHonoHandler<ResponseType = unknown>(opts: {
265
94
  handler: import("../common").TRouteHandler<ResponseType, RouteEnv>;
266
95
  }): import("hono").Handler<RouteEnv, string, import("hono").Input, (Response | Promise<Response>) | (import("@hono/zod-openapi").RouteConfigToTypedResponse<import("@hono/zod-openapi").RouteConfig> | Promise<import("@hono/zod-openapi").RouteConfigToTypedResponse<import("@hono/zod-openapi").RouteConfig>>)>;
267
- bindRoute<RouteConfig extends import("../common").IAuthenticateRouteConfig>(opts: {
96
+ bindRoute<RouteConfig extends import("../common").IAuthRouteConfig>(opts: {
268
97
  configs: RouteConfig;
269
98
  }): import("../common").IBindRouteOptions<RouteConfig, RouteEnv, RouteSchema, BasePath>;
270
- defineRoute<RouteConfig extends import("../common").IAuthenticateRouteConfig, ResponseType = unknown>(opts: {
99
+ defineRoute<RouteConfig extends import("../common").IAuthRouteConfig, ResponseType = unknown>(opts: {
271
100
  configs: RouteConfig;
272
101
  handler: import("../common").TRouteHandler<ResponseType, RouteEnv>;
273
102
  hook?: import("@hono/zod-openapi").Hook<any, RouteEnv, string, any> | undefined;
274
103
  }): import("../common").IDefineRouteOptions<RouteConfig, RouteEnv, RouteSchema, BasePath>;
275
- defineJSXRoute<RouteConfig extends import("../common").IAuthenticateRouteConfig, ResponseType = unknown>(opts: {
104
+ defineJSXRoute<RouteConfig extends import("../common").IAuthRouteConfig, ResponseType = unknown>(opts: {
276
105
  configs: RouteConfig;
277
106
  handler: import("../common").TRouteHandler<ResponseType, RouteEnv>;
278
107
  hook?: import("@hono/zod-openapi").Hook<any, RouteEnv, string, any> | undefined;
@@ -287,6 +116,7 @@ export declare class ControllerFactory extends BaseHelper {
287
116
  strategies?: TAuthStrategy[];
288
117
  mode?: TAuthMode;
289
118
  };
119
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
290
120
  readonly request: {
291
121
  query: import("../../..").TAnyObjectSchema | z.ZodObject<{
292
122
  where: z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]> | z.ZodOptional<z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>>;
@@ -340,6 +170,7 @@ export declare class ControllerFactory extends BaseHelper {
340
170
  strategies?: TAuthStrategy[];
341
171
  mode?: TAuthMode;
342
172
  };
173
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
343
174
  readonly request: {
344
175
  query: import("../../..").TAnyObjectSchema | z.ZodObject<{
345
176
  filter: any;
@@ -394,6 +225,7 @@ export declare class ControllerFactory extends BaseHelper {
394
225
  strategies?: TAuthStrategy[];
395
226
  mode?: TAuthMode;
396
227
  };
228
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
397
229
  readonly request: {
398
230
  params: z.ZodObject<{
399
231
  id: z.ZodNumber;
@@ -453,6 +285,7 @@ export declare class ControllerFactory extends BaseHelper {
453
285
  strategies?: TAuthStrategy[];
454
286
  mode?: TAuthMode;
455
287
  };
288
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
456
289
  readonly request: {
457
290
  query: import("../../..").TAnyObjectSchema | z.ZodObject<{
458
291
  filter: any;
@@ -507,6 +340,7 @@ export declare class ControllerFactory extends BaseHelper {
507
340
  strategies?: TAuthStrategy[];
508
341
  mode?: TAuthMode;
509
342
  };
343
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
510
344
  readonly request: {
511
345
  readonly body: {
512
346
  description: string;
@@ -567,6 +401,7 @@ export declare class ControllerFactory extends BaseHelper {
567
401
  strategies?: TAuthStrategy[];
568
402
  mode?: TAuthMode;
569
403
  };
404
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
570
405
  readonly request: {
571
406
  readonly params: z.ZodObject<{
572
407
  id: z.ZodNumber;
@@ -632,6 +467,7 @@ export declare class ControllerFactory extends BaseHelper {
632
467
  strategies?: TAuthStrategy[];
633
468
  mode?: TAuthMode;
634
469
  };
470
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
635
471
  readonly request: {
636
472
  readonly query: import("../../..").TAnyObjectSchema | z.ZodObject<{
637
473
  where: z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>;
@@ -695,6 +531,7 @@ export declare class ControllerFactory extends BaseHelper {
695
531
  strategies?: TAuthStrategy[];
696
532
  mode?: TAuthMode;
697
533
  };
534
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
698
535
  readonly request: {
699
536
  params: z.ZodObject<{
700
537
  id: z.ZodNumber;
@@ -751,6 +588,7 @@ export declare class ControllerFactory extends BaseHelper {
751
588
  strategies?: TAuthStrategy[];
752
589
  mode?: TAuthMode;
753
590
  };
591
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
754
592
  readonly request: {
755
593
  query: import("../../..").TAnyObjectSchema | z.ZodObject<{
756
594
  where: z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>;
@@ -802,12 +640,12 @@ export declare class ControllerFactory extends BaseHelper {
802
640
  getRouter(): import("@hono/zod-openapi").OpenAPIHono<RouteEnv, RouteSchema, BasePath>;
803
641
  registerRoutesFromRegistry(): void;
804
642
  configure(opts?: ConfigurableOptions | undefined): Promise<import("@hono/zod-openapi").OpenAPIHono<RouteEnv, RouteSchema, BasePath>>;
805
- getRouteConfigs<RouteConfig extends import("../common").IAuthenticateRouteConfig>(opts: {
643
+ getRouteConfigs<RouteConfig extends import("../common").IAuthRouteConfig>(opts: {
806
644
  configs: RouteConfig;
807
645
  }): RouteConfig & {
808
646
  getRoutingPath(): RouteConfig["path"] extends infer T ? T extends RouteConfig["path"] ? T extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${/*elided*/ any}` : Tail}` : Tail}` : Tail}` : Tail}` : Tail}` : Tail}` : Tail}` : Tail}` : Tail}` : Tail}` : T : never : never;
809
647
  };
810
- getJSXRouteConfigs<RouteConfig extends import("../common").IAuthenticateRouteConfig>(opts: {
648
+ getJSXRouteConfigs<RouteConfig extends import("../common").IAuthRouteConfig>(opts: {
811
649
  configs: RouteConfig;
812
650
  }): RouteConfig & {
813
651
  getRoutingPath(): RouteConfig["path"] extends infer T ? T extends RouteConfig["path"] ? T extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${Tail extends `${infer Head}/{${infer Param}}${infer Tail}` ? `${Head}/:${Param}${/*elided*/ any}` : Tail}` : Tail}` : Tail}` : Tail}` : Tail}` : Tail}` : Tail}` : Tail}` : Tail}` : Tail}` : T : never : never;
@@ -1 +1 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../src/base/controllers/factory/controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAIV,kBAAkB,EACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAEL,UAAU,EAIV,MAAM,EACN,SAAS,EAET,SAAS,EACT,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEjF,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAGtC,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,sBAAsB,CACrC,YAAY,SAAS,kBAAkB,EACvC,MAAM,SAAS,mBAAmB,GAAG,mBAAmB;IAExD,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IAEvF,uCAAuC;IACvC,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IAE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