@venizia/ignis-kernel 0.3.0 → 0.3.2

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 (423) hide show
  1. package/dist/cjs/base/applications/abstract.js.map +1 -1
  2. package/dist/cjs/base/applications/artifact-group.js.map +1 -1
  3. package/dist/cjs/base/applications/artifact-index.js.map +1 -1
  4. package/dist/cjs/base/applications/boot-sequence.js.map +1 -1
  5. package/dist/cjs/base/applications/common/constants.js.map +1 -1
  6. package/dist/cjs/base/applications/common/index.js.map +1 -1
  7. package/dist/cjs/base/applications/common/types/application.js.map +1 -1
  8. package/dist/cjs/base/applications/common/types/artifacts.js.map +1 -1
  9. package/dist/cjs/base/applications/common/types/index.js.map +1 -1
  10. package/dist/cjs/base/applications/common/types/middlewares.js.map +1 -1
  11. package/dist/cjs/base/applications/index.js.map +1 -1
  12. package/dist/cjs/base/applications/rest.js.map +1 -1
  13. package/dist/cjs/base/auth/authenticate/common/codecs.js.map +1 -1
  14. package/dist/cjs/base/auth/authenticate/common/constants/authentication.js.map +1 -1
  15. package/dist/cjs/base/auth/authenticate/common/constants/index.js.map +1 -1
  16. package/dist/cjs/base/auth/authenticate/common/constants/jose.js.map +1 -1
  17. package/dist/cjs/base/auth/authenticate/common/constants/service-assertion.js.map +1 -1
  18. package/dist/cjs/base/auth/authenticate/common/errors.js.map +1 -1
  19. package/dist/cjs/base/auth/authenticate/common/index.js.map +1 -1
  20. package/dist/cjs/base/auth/authenticate/common/keys.js.map +1 -1
  21. package/dist/cjs/base/auth/authenticate/common/types/basic.js.map +1 -1
  22. package/dist/cjs/base/auth/authenticate/common/types/index.js.map +1 -1
  23. package/dist/cjs/base/auth/authenticate/common/types/jwt.js.map +1 -1
  24. package/dist/cjs/base/auth/authenticate/common/types/options.js.map +1 -1
  25. package/dist/cjs/base/auth/authenticate/common/types/rest.js.map +1 -1
  26. package/dist/cjs/base/auth/authenticate/common/types/service.js.map +1 -1
  27. package/dist/cjs/base/auth/authenticate/common/types/strategy.js.map +1 -1
  28. package/dist/cjs/base/auth/authenticate/index.js.map +1 -1
  29. package/dist/cjs/base/auth/authenticate/middlewares/authenticate.middleware.js.map +1 -1
  30. package/dist/cjs/base/auth/authenticate/middlewares/index.js.map +1 -1
  31. package/dist/cjs/base/auth/authenticate/providers/authentication.provider.js.map +1 -1
  32. package/dist/cjs/base/auth/authenticate/providers/index.js.map +1 -1
  33. package/dist/cjs/base/auth/authenticate/strategies/index.js.map +1 -1
  34. package/dist/cjs/base/auth/authenticate/strategies/strategy-registry.js.map +1 -1
  35. package/dist/cjs/base/auth/authorize/builders/grant.builder.js.map +1 -1
  36. package/dist/cjs/base/auth/authorize/builders/index.js.map +1 -1
  37. package/dist/cjs/base/auth/authorize/builders/permission.builder.js.map +1 -1
  38. package/dist/cjs/base/auth/authorize/builders/policy.builder.js.map +1 -1
  39. package/dist/cjs/base/auth/authorize/common/constants/authorization.js.map +1 -1
  40. package/dist/cjs/base/auth/authorize/common/constants/binding-keys.js.map +1 -1
  41. package/dist/cjs/base/auth/authorize/common/constants/enforcer.js.map +1 -1
  42. package/dist/cjs/base/auth/authorize/common/constants/index.js.map +1 -1
  43. package/dist/cjs/base/auth/authorize/common/errors.js.map +1 -1
  44. package/dist/cjs/base/auth/authorize/common/index.js.map +1 -1
  45. package/dist/cjs/base/auth/authorize/common/types/enforcer.js.map +1 -1
  46. package/dist/cjs/base/auth/authorize/common/types/grant.js.map +1 -1
  47. package/dist/cjs/base/auth/authorize/common/types/index.js.map +1 -1
  48. package/dist/cjs/base/auth/authorize/common/types/request.js.map +1 -1
  49. package/dist/cjs/base/auth/authorize/enforcers/enforcer-registry.js.map +1 -1
  50. package/dist/cjs/base/auth/authorize/enforcers/index.js.map +1 -1
  51. package/dist/cjs/base/auth/authorize/index.js.map +1 -1
  52. package/dist/cjs/base/auth/authorize/middlewares/authorize.middleware.js.map +1 -1
  53. package/dist/cjs/base/auth/authorize/middlewares/index.js.map +1 -1
  54. package/dist/cjs/base/auth/authorize/models/authorization-role.model.js.map +1 -1
  55. package/dist/cjs/base/auth/authorize/models/index.js.map +1 -1
  56. package/dist/cjs/base/auth/authorize/providers/authorization.provider.js.map +1 -1
  57. package/dist/cjs/base/auth/authorize/providers/index.js.map +1 -1
  58. package/dist/cjs/base/auth/authorize/providers/request-domain.js.map +1 -1
  59. package/dist/cjs/base/auth/base/abstract-auth-registry.js.map +1 -1
  60. package/dist/cjs/base/auth/base/index.js.map +1 -1
  61. package/dist/cjs/base/auth/context-variables.js.map +1 -1
  62. package/dist/cjs/base/auth/index.js.map +1 -1
  63. package/dist/cjs/base/auth/models/index.js.map +1 -1
  64. package/dist/cjs/base/auth/models/requests/change-password.schema.js.map +1 -1
  65. package/dist/cjs/base/auth/models/requests/index.js.map +1 -1
  66. package/dist/cjs/base/auth/models/requests/sign-in.schema.js.map +1 -1
  67. package/dist/cjs/base/auth/models/requests/sign-up.schema.js.map +1 -1
  68. package/dist/cjs/base/components/base.js.map +1 -1
  69. package/dist/cjs/base/components/controller/index.js.map +1 -1
  70. package/dist/cjs/base/components/controller/rest/common/index.js.map +1 -1
  71. package/dist/cjs/base/components/controller/rest/common/types.js.map +1 -1
  72. package/dist/cjs/base/components/controller/rest/index.js.map +1 -1
  73. package/dist/cjs/base/components/controller/rest/rest.component.js.map +1 -1
  74. package/dist/cjs/base/components/index.js.map +1 -1
  75. package/dist/cjs/base/configurations/base.js.map +1 -1
  76. package/dist/cjs/base/configurations/common/index.js.map +1 -1
  77. package/dist/cjs/base/configurations/common/types.js.map +1 -1
  78. package/dist/cjs/base/configurations/index.js.map +1 -1
  79. package/dist/cjs/base/controllers/common/constants.js.map +1 -1
  80. package/dist/cjs/base/controllers/common/html-response.js.map +1 -1
  81. package/dist/cjs/base/controllers/common/index.js.map +1 -1
  82. package/dist/cjs/base/controllers/common/schema-builders.js.map +1 -1
  83. package/dist/cjs/base/controllers/common/schemas.js.map +1 -1
  84. package/dist/cjs/base/controllers/common/types/context.js.map +1 -1
  85. package/dist/cjs/base/controllers/common/types/controller.js.map +1 -1
  86. package/dist/cjs/base/controllers/common/types/index.js.map +1 -1
  87. package/dist/cjs/base/controllers/common/types/route.js.map +1 -1
  88. package/dist/cjs/base/controllers/context.js.map +1 -1
  89. package/dist/cjs/base/controllers/factory/controller.js.map +1 -1
  90. package/dist/cjs/base/controllers/factory/crud/abstract.js.map +1 -1
  91. package/dist/cjs/base/controllers/factory/crud/index.js.map +1 -1
  92. package/dist/cjs/base/controllers/factory/crud/persistable.js.map +1 -1
  93. package/dist/cjs/base/controllers/factory/crud/readable.js.map +1 -1
  94. package/dist/cjs/base/controllers/factory/definition.js.map +1 -1
  95. package/dist/cjs/base/controllers/factory/helper.js.map +1 -1
  96. package/dist/cjs/base/controllers/factory/index.js.map +1 -1
  97. package/dist/cjs/base/controllers/factory/repository-injection.js.map +1 -1
  98. package/dist/cjs/base/controllers/index.js.map +1 -1
  99. package/dist/cjs/base/controllers/rest/abstract.js.map +1 -1
  100. package/dist/cjs/base/controllers/rest/base.js.map +1 -1
  101. package/dist/cjs/base/controllers/rest/extras.js.map +1 -1
  102. package/dist/cjs/base/controllers/rest/index.js.map +1 -1
  103. package/dist/cjs/base/datasources/abstract.js.map +1 -1
  104. package/dist/cjs/base/datasources/common/index.js.map +1 -1
  105. package/dist/cjs/base/datasources/common/types.js.map +1 -1
  106. package/dist/cjs/base/datasources/index.js.map +1 -1
  107. package/dist/cjs/base/events/common/constants.js.map +1 -1
  108. package/dist/cjs/base/events/common/index.js.map +1 -1
  109. package/dist/cjs/base/events/common/types.js.map +1 -1
  110. package/dist/cjs/base/events/event-bus.js.map +1 -1
  111. package/dist/cjs/base/events/index.js.map +1 -1
  112. package/dist/cjs/base/index.js.map +1 -1
  113. package/dist/cjs/base/metadata/artifact-keys.js.map +1 -1
  114. package/dist/cjs/base/metadata/index.js.map +1 -1
  115. package/dist/cjs/base/metadata/injectable.js.map +1 -1
  116. package/dist/cjs/base/metadata/injectors.js.map +1 -1
  117. package/dist/cjs/base/metadata/persistents.js.map +1 -1
  118. package/dist/cjs/base/metadata/routes/common.js.map +1 -1
  119. package/dist/cjs/base/metadata/routes/controller.js.map +1 -1
  120. package/dist/cjs/base/metadata/routes/index.js.map +1 -1
  121. package/dist/cjs/base/metadata/routes/rest.js.map +1 -1
  122. package/dist/cjs/base/metadata/routes/rpc.js.map +1 -1
  123. package/dist/cjs/base/middlewares/app-error/app-error.middleware.js.map +1 -1
  124. package/dist/cjs/base/middlewares/app-error/common/index.js.map +1 -1
  125. package/dist/cjs/base/middlewares/app-error/common/types.js.map +1 -1
  126. package/dist/cjs/base/middlewares/app-error/database.handler.js.map +1 -1
  127. package/dist/cjs/base/middlewares/app-error/definition.js.map +1 -1
  128. package/dist/cjs/base/middlewares/app-error/index.js.map +1 -1
  129. package/dist/cjs/base/middlewares/app-error/zod.handler.js.map +1 -1
  130. package/dist/cjs/base/middlewares/common/constants.js.map +1 -1
  131. package/dist/cjs/base/middlewares/common/errors.js.map +1 -1
  132. package/dist/cjs/base/middlewares/common/index.js.map +1 -1
  133. package/dist/cjs/base/middlewares/emoji-favicon/emoji-favicon.middleware.js.map +1 -1
  134. package/dist/cjs/base/middlewares/emoji-favicon/index.js.map +1 -1
  135. package/dist/cjs/base/middlewares/form-body/form-body.middleware.js.map +1 -1
  136. package/dist/cjs/base/middlewares/index.js.map +1 -1
  137. package/dist/cjs/base/middlewares/not-found/index.js.map +1 -1
  138. package/dist/cjs/base/middlewares/not-found/not-found.middleware.js.map +1 -1
  139. package/dist/cjs/base/mixins/common/index.js.map +1 -1
  140. package/dist/cjs/base/mixins/common/types.js.map +1 -1
  141. package/dist/cjs/base/mixins/index.js.map +1 -1
  142. package/dist/cjs/base/models/base.js.map +1 -1
  143. package/dist/cjs/base/models/common/constants.js.map +1 -1
  144. package/dist/cjs/base/models/common/index.js.map +1 -1
  145. package/dist/cjs/base/models/common/schemas.js.map +1 -1
  146. package/dist/cjs/base/models/common/types/id.js.map +1 -1
  147. package/dist/cjs/base/models/common/types/index.js.map +1 -1
  148. package/dist/cjs/base/models/common/utilities.js.map +1 -1
  149. package/dist/cjs/base/models/index.js.map +1 -1
  150. package/dist/cjs/base/providers/base.js.map +1 -1
  151. package/dist/cjs/base/providers/index.js.map +1 -1
  152. package/dist/cjs/base/repositories/common/constants.js.map +1 -1
  153. package/dist/cjs/base/repositories/common/errors.js.map +1 -1
  154. package/dist/cjs/base/repositories/common/extra-request.js.map +1 -1
  155. package/dist/cjs/base/repositories/common/index.js.map +1 -1
  156. package/dist/cjs/base/repositories/common/response-reader.js.map +1 -1
  157. package/dist/cjs/base/repositories/common/types/contracts.js.map +1 -1
  158. package/dist/cjs/base/repositories/common/types/index.js.map +1 -1
  159. package/dist/cjs/base/repositories/common/types/options.js.map +1 -1
  160. package/dist/cjs/base/repositories/common/types/query.js.map +1 -1
  161. package/dist/cjs/base/repositories/common/types/result-schemas.js.map +1 -1
  162. package/dist/cjs/base/repositories/common/types/results.js.map +1 -1
  163. package/dist/cjs/base/repositories/core/abstract.js.map +1 -1
  164. package/dist/cjs/base/repositories/core/index.js.map +1 -1
  165. package/dist/cjs/base/repositories/index.js.map +1 -1
  166. package/dist/cjs/base/repositories/query-schemas/index.js.map +1 -1
  167. package/dist/cjs/base/request-context/common/index.js.map +1 -1
  168. package/dist/cjs/base/request-context/common/types.js.map +1 -1
  169. package/dist/cjs/base/request-context/index.js.map +1 -1
  170. package/dist/cjs/base/request-context/registry.js.map +1 -1
  171. package/dist/cjs/base/services/base.js.map +1 -1
  172. package/dist/cjs/base/services/common/index.js.map +1 -1
  173. package/dist/cjs/base/services/common/types.js.map +1 -1
  174. package/dist/cjs/base/services/index.js.map +1 -1
  175. package/dist/cjs/common/bindings.js.map +1 -1
  176. package/dist/cjs/common/error-codes.js.map +1 -1
  177. package/dist/cjs/common/index.js.map +1 -1
  178. package/dist/cjs/common/statuses/common.js.map +1 -1
  179. package/dist/cjs/common/statuses/index.js.map +1 -1
  180. package/dist/cjs/common/statuses/migration.js.map +1 -1
  181. package/dist/cjs/common/statuses/role.js.map +1 -1
  182. package/dist/cjs/common/statuses/user.js.map +1 -1
  183. package/dist/cjs/helpers/index.js.map +1 -1
  184. package/dist/cjs/helpers/inversion/common/constants.js.map +1 -1
  185. package/dist/cjs/helpers/inversion/common/index.js.map +1 -1
  186. package/dist/cjs/helpers/inversion/common/keys.js.map +1 -1
  187. package/dist/cjs/helpers/inversion/common/relation-builder.js.map +1 -1
  188. package/dist/cjs/helpers/inversion/common/types/artifact.js.map +1 -1
  189. package/dist/cjs/helpers/inversion/common/types/controller.js.map +1 -1
  190. package/dist/cjs/helpers/inversion/common/types/index.js.map +1 -1
  191. package/dist/cjs/helpers/inversion/common/types/injection.js.map +1 -1
  192. package/dist/cjs/helpers/inversion/common/types/model.js.map +1 -1
  193. package/dist/cjs/helpers/inversion/common/types/persistence.js.map +1 -1
  194. package/dist/cjs/helpers/inversion/container.js.map +1 -1
  195. package/dist/cjs/helpers/inversion/index.js.map +1 -1
  196. package/dist/cjs/helpers/inversion/mixins/artifact.mixin.js.map +1 -1
  197. package/dist/cjs/helpers/inversion/mixins/controllers/controller.js.map +1 -1
  198. package/dist/cjs/helpers/inversion/mixins/controllers/grpc.js.map +1 -1
  199. package/dist/cjs/helpers/inversion/mixins/controllers/index.js.map +1 -1
  200. package/dist/cjs/helpers/inversion/mixins/controllers/rest.js.map +1 -1
  201. package/dist/cjs/helpers/inversion/mixins/datasource.mixin.js.map +1 -1
  202. package/dist/cjs/helpers/inversion/mixins/index.js.map +1 -1
  203. package/dist/cjs/helpers/inversion/mixins/model.mixin.js.map +1 -1
  204. package/dist/cjs/helpers/inversion/mixins/repository.mixin.js.map +1 -1
  205. package/dist/cjs/helpers/inversion/registry.js.map +1 -1
  206. package/dist/cjs/helpers/singleton-realm.js.map +1 -1
  207. package/dist/cjs/index.js.map +1 -1
  208. package/dist/cjs/metadata.js.map +1 -1
  209. package/dist/cjs/repository.js.map +1 -1
  210. package/dist/cjs/utilities/error.utility.js.map +1 -1
  211. package/dist/cjs/utilities/index.js.map +1 -1
  212. package/dist/esm/base/applications/abstract.js.map +1 -1
  213. package/dist/esm/base/applications/artifact-group.js.map +1 -1
  214. package/dist/esm/base/applications/artifact-index.js.map +1 -1
  215. package/dist/esm/base/applications/boot-sequence.js.map +1 -1
  216. package/dist/esm/base/applications/common/constants.js.map +1 -1
  217. package/dist/esm/base/applications/common/index.js.map +1 -1
  218. package/dist/esm/base/applications/common/types/application.js.map +1 -1
  219. package/dist/esm/base/applications/common/types/artifacts.js.map +1 -1
  220. package/dist/esm/base/applications/common/types/index.js.map +1 -1
  221. package/dist/esm/base/applications/common/types/middlewares.js.map +1 -1
  222. package/dist/esm/base/applications/index.js.map +1 -1
  223. package/dist/esm/base/applications/rest.js.map +1 -1
  224. package/dist/esm/base/auth/authenticate/common/codecs.js.map +1 -1
  225. package/dist/esm/base/auth/authenticate/common/constants/authentication.js.map +1 -1
  226. package/dist/esm/base/auth/authenticate/common/constants/index.js.map +1 -1
  227. package/dist/esm/base/auth/authenticate/common/constants/jose.js.map +1 -1
  228. package/dist/esm/base/auth/authenticate/common/constants/service-assertion.js.map +1 -1
  229. package/dist/esm/base/auth/authenticate/common/errors.js.map +1 -1
  230. package/dist/esm/base/auth/authenticate/common/index.js.map +1 -1
  231. package/dist/esm/base/auth/authenticate/common/keys.js.map +1 -1
  232. package/dist/esm/base/auth/authenticate/common/types/basic.js.map +1 -1
  233. package/dist/esm/base/auth/authenticate/common/types/index.js.map +1 -1
  234. package/dist/esm/base/auth/authenticate/common/types/jwt.js.map +1 -1
  235. package/dist/esm/base/auth/authenticate/common/types/options.js.map +1 -1
  236. package/dist/esm/base/auth/authenticate/common/types/rest.js.map +1 -1
  237. package/dist/esm/base/auth/authenticate/common/types/service.js.map +1 -1
  238. package/dist/esm/base/auth/authenticate/common/types/strategy.js.map +1 -1
  239. package/dist/esm/base/auth/authenticate/index.js.map +1 -1
  240. package/dist/esm/base/auth/authenticate/middlewares/authenticate.middleware.js.map +1 -1
  241. package/dist/esm/base/auth/authenticate/middlewares/index.js.map +1 -1
  242. package/dist/esm/base/auth/authenticate/providers/authentication.provider.js.map +1 -1
  243. package/dist/esm/base/auth/authenticate/providers/index.js.map +1 -1
  244. package/dist/esm/base/auth/authenticate/strategies/index.js.map +1 -1
  245. package/dist/esm/base/auth/authenticate/strategies/strategy-registry.js.map +1 -1
  246. package/dist/esm/base/auth/authorize/builders/grant.builder.js.map +1 -1
  247. package/dist/esm/base/auth/authorize/builders/index.js.map +1 -1
  248. package/dist/esm/base/auth/authorize/builders/permission.builder.js.map +1 -1
  249. package/dist/esm/base/auth/authorize/builders/policy.builder.js.map +1 -1
  250. package/dist/esm/base/auth/authorize/common/constants/authorization.js.map +1 -1
  251. package/dist/esm/base/auth/authorize/common/constants/binding-keys.js.map +1 -1
  252. package/dist/esm/base/auth/authorize/common/constants/enforcer.js.map +1 -1
  253. package/dist/esm/base/auth/authorize/common/constants/index.js.map +1 -1
  254. package/dist/esm/base/auth/authorize/common/errors.js.map +1 -1
  255. package/dist/esm/base/auth/authorize/common/index.js.map +1 -1
  256. package/dist/esm/base/auth/authorize/common/types/enforcer.js.map +1 -1
  257. package/dist/esm/base/auth/authorize/common/types/grant.js.map +1 -1
  258. package/dist/esm/base/auth/authorize/common/types/index.js.map +1 -1
  259. package/dist/esm/base/auth/authorize/common/types/request.js.map +1 -1
  260. package/dist/esm/base/auth/authorize/enforcers/enforcer-registry.js.map +1 -1
  261. package/dist/esm/base/auth/authorize/enforcers/index.js.map +1 -1
  262. package/dist/esm/base/auth/authorize/index.js.map +1 -1
  263. package/dist/esm/base/auth/authorize/middlewares/authorize.middleware.js.map +1 -1
  264. package/dist/esm/base/auth/authorize/middlewares/index.js.map +1 -1
  265. package/dist/esm/base/auth/authorize/models/authorization-role.model.js.map +1 -1
  266. package/dist/esm/base/auth/authorize/models/index.js.map +1 -1
  267. package/dist/esm/base/auth/authorize/providers/authorization.provider.js.map +1 -1
  268. package/dist/esm/base/auth/authorize/providers/index.js.map +1 -1
  269. package/dist/esm/base/auth/authorize/providers/request-domain.js.map +1 -1
  270. package/dist/esm/base/auth/base/abstract-auth-registry.js.map +1 -1
  271. package/dist/esm/base/auth/base/index.js.map +1 -1
  272. package/dist/esm/base/auth/context-variables.js.map +1 -1
  273. package/dist/esm/base/auth/index.js.map +1 -1
  274. package/dist/esm/base/auth/models/index.js.map +1 -1
  275. package/dist/esm/base/auth/models/requests/change-password.schema.js.map +1 -1
  276. package/dist/esm/base/auth/models/requests/index.js.map +1 -1
  277. package/dist/esm/base/auth/models/requests/sign-in.schema.js.map +1 -1
  278. package/dist/esm/base/auth/models/requests/sign-up.schema.js.map +1 -1
  279. package/dist/esm/base/components/base.js.map +1 -1
  280. package/dist/esm/base/components/controller/index.js.map +1 -1
  281. package/dist/esm/base/components/controller/rest/common/index.js.map +1 -1
  282. package/dist/esm/base/components/controller/rest/common/types.js.map +1 -1
  283. package/dist/esm/base/components/controller/rest/index.js.map +1 -1
  284. package/dist/esm/base/components/controller/rest/rest.component.js.map +1 -1
  285. package/dist/esm/base/components/index.js.map +1 -1
  286. package/dist/esm/base/configurations/base.js.map +1 -1
  287. package/dist/esm/base/configurations/common/index.js.map +1 -1
  288. package/dist/esm/base/configurations/common/types.js.map +1 -1
  289. package/dist/esm/base/configurations/index.js.map +1 -1
  290. package/dist/esm/base/controllers/common/constants.js.map +1 -1
  291. package/dist/esm/base/controllers/common/html-response.js.map +1 -1
  292. package/dist/esm/base/controllers/common/index.js.map +1 -1
  293. package/dist/esm/base/controllers/common/schema-builders.js.map +1 -1
  294. package/dist/esm/base/controllers/common/schemas.js.map +1 -1
  295. package/dist/esm/base/controllers/common/types/context.js.map +1 -1
  296. package/dist/esm/base/controllers/common/types/controller.js.map +1 -1
  297. package/dist/esm/base/controllers/common/types/index.js.map +1 -1
  298. package/dist/esm/base/controllers/common/types/route.js.map +1 -1
  299. package/dist/esm/base/controllers/context.js.map +1 -1
  300. package/dist/esm/base/controllers/factory/controller.js.map +1 -1
  301. package/dist/esm/base/controllers/factory/crud/abstract.js.map +1 -1
  302. package/dist/esm/base/controllers/factory/crud/index.js.map +1 -1
  303. package/dist/esm/base/controllers/factory/crud/persistable.js.map +1 -1
  304. package/dist/esm/base/controllers/factory/crud/readable.js.map +1 -1
  305. package/dist/esm/base/controllers/factory/definition.js.map +1 -1
  306. package/dist/esm/base/controllers/factory/helper.js.map +1 -1
  307. package/dist/esm/base/controllers/factory/index.js.map +1 -1
  308. package/dist/esm/base/controllers/factory/repository-injection.js.map +1 -1
  309. package/dist/esm/base/controllers/index.js.map +1 -1
  310. package/dist/esm/base/controllers/rest/abstract.js.map +1 -1
  311. package/dist/esm/base/controllers/rest/base.js.map +1 -1
  312. package/dist/esm/base/controllers/rest/extras.js.map +1 -1
  313. package/dist/esm/base/controllers/rest/index.js.map +1 -1
  314. package/dist/esm/base/datasources/abstract.js.map +1 -1
  315. package/dist/esm/base/datasources/common/index.js.map +1 -1
  316. package/dist/esm/base/datasources/common/types.js.map +1 -1
  317. package/dist/esm/base/datasources/index.js.map +1 -1
  318. package/dist/esm/base/events/common/constants.js.map +1 -1
  319. package/dist/esm/base/events/common/index.js.map +1 -1
  320. package/dist/esm/base/events/common/types.js.map +1 -1
  321. package/dist/esm/base/events/event-bus.js.map +1 -1
  322. package/dist/esm/base/events/index.js.map +1 -1
  323. package/dist/esm/base/index.js.map +1 -1
  324. package/dist/esm/base/metadata/artifact-keys.js.map +1 -1
  325. package/dist/esm/base/metadata/index.js.map +1 -1
  326. package/dist/esm/base/metadata/injectable.js.map +1 -1
  327. package/dist/esm/base/metadata/injectors.js.map +1 -1
  328. package/dist/esm/base/metadata/persistents.js.map +1 -1
  329. package/dist/esm/base/metadata/routes/common.js.map +1 -1
  330. package/dist/esm/base/metadata/routes/controller.js.map +1 -1
  331. package/dist/esm/base/metadata/routes/index.js.map +1 -1
  332. package/dist/esm/base/metadata/routes/rest.js.map +1 -1
  333. package/dist/esm/base/metadata/routes/rpc.js.map +1 -1
  334. package/dist/esm/base/middlewares/app-error/app-error.middleware.js.map +1 -1
  335. package/dist/esm/base/middlewares/app-error/common/index.js.map +1 -1
  336. package/dist/esm/base/middlewares/app-error/common/types.js.map +1 -1
  337. package/dist/esm/base/middlewares/app-error/database.handler.js.map +1 -1
  338. package/dist/esm/base/middlewares/app-error/definition.js.map +1 -1
  339. package/dist/esm/base/middlewares/app-error/index.js.map +1 -1
  340. package/dist/esm/base/middlewares/app-error/zod.handler.js.map +1 -1
  341. package/dist/esm/base/middlewares/common/constants.js.map +1 -1
  342. package/dist/esm/base/middlewares/common/errors.js.map +1 -1
  343. package/dist/esm/base/middlewares/common/index.js.map +1 -1
  344. package/dist/esm/base/middlewares/emoji-favicon/emoji-favicon.middleware.js.map +1 -1
  345. package/dist/esm/base/middlewares/emoji-favicon/index.js.map +1 -1
  346. package/dist/esm/base/middlewares/form-body/form-body.middleware.js.map +1 -1
  347. package/dist/esm/base/middlewares/index.js.map +1 -1
  348. package/dist/esm/base/middlewares/not-found/index.js.map +1 -1
  349. package/dist/esm/base/middlewares/not-found/not-found.middleware.js.map +1 -1
  350. package/dist/esm/base/mixins/common/index.js.map +1 -1
  351. package/dist/esm/base/mixins/common/types.js.map +1 -1
  352. package/dist/esm/base/mixins/index.js.map +1 -1
  353. package/dist/esm/base/models/base.js.map +1 -1
  354. package/dist/esm/base/models/common/constants.js.map +1 -1
  355. package/dist/esm/base/models/common/index.js.map +1 -1
  356. package/dist/esm/base/models/common/schemas.js.map +1 -1
  357. package/dist/esm/base/models/common/types/id.js.map +1 -1
  358. package/dist/esm/base/models/common/types/index.js.map +1 -1
  359. package/dist/esm/base/models/common/utilities.js.map +1 -1
  360. package/dist/esm/base/models/index.js.map +1 -1
  361. package/dist/esm/base/providers/base.js.map +1 -1
  362. package/dist/esm/base/providers/index.js.map +1 -1
  363. package/dist/esm/base/repositories/common/constants.js.map +1 -1
  364. package/dist/esm/base/repositories/common/errors.js.map +1 -1
  365. package/dist/esm/base/repositories/common/extra-request.js.map +1 -1
  366. package/dist/esm/base/repositories/common/index.js.map +1 -1
  367. package/dist/esm/base/repositories/common/response-reader.js.map +1 -1
  368. package/dist/esm/base/repositories/common/types/contracts.js.map +1 -1
  369. package/dist/esm/base/repositories/common/types/index.js.map +1 -1
  370. package/dist/esm/base/repositories/common/types/options.js.map +1 -1
  371. package/dist/esm/base/repositories/common/types/query.js.map +1 -1
  372. package/dist/esm/base/repositories/common/types/result-schemas.js.map +1 -1
  373. package/dist/esm/base/repositories/common/types/results.js.map +1 -1
  374. package/dist/esm/base/repositories/core/abstract.js.map +1 -1
  375. package/dist/esm/base/repositories/core/index.js.map +1 -1
  376. package/dist/esm/base/repositories/index.js.map +1 -1
  377. package/dist/esm/base/repositories/query-schemas/index.js.map +1 -1
  378. package/dist/esm/base/request-context/common/index.js.map +1 -1
  379. package/dist/esm/base/request-context/common/types.js.map +1 -1
  380. package/dist/esm/base/request-context/index.js.map +1 -1
  381. package/dist/esm/base/request-context/registry.js.map +1 -1
  382. package/dist/esm/base/services/base.js.map +1 -1
  383. package/dist/esm/base/services/common/index.js.map +1 -1
  384. package/dist/esm/base/services/common/types.js.map +1 -1
  385. package/dist/esm/base/services/index.js.map +1 -1
  386. package/dist/esm/common/bindings.js.map +1 -1
  387. package/dist/esm/common/error-codes.js.map +1 -1
  388. package/dist/esm/common/index.js.map +1 -1
  389. package/dist/esm/common/statuses/common.js.map +1 -1
  390. package/dist/esm/common/statuses/index.js.map +1 -1
  391. package/dist/esm/common/statuses/migration.js.map +1 -1
  392. package/dist/esm/common/statuses/role.js.map +1 -1
  393. package/dist/esm/common/statuses/user.js.map +1 -1
  394. package/dist/esm/helpers/index.js.map +1 -1
  395. package/dist/esm/helpers/inversion/common/constants.js.map +1 -1
  396. package/dist/esm/helpers/inversion/common/index.js.map +1 -1
  397. package/dist/esm/helpers/inversion/common/keys.js.map +1 -1
  398. package/dist/esm/helpers/inversion/common/relation-builder.js.map +1 -1
  399. package/dist/esm/helpers/inversion/common/types/artifact.js.map +1 -1
  400. package/dist/esm/helpers/inversion/common/types/controller.js.map +1 -1
  401. package/dist/esm/helpers/inversion/common/types/index.js.map +1 -1
  402. package/dist/esm/helpers/inversion/common/types/injection.js.map +1 -1
  403. package/dist/esm/helpers/inversion/common/types/model.js.map +1 -1
  404. package/dist/esm/helpers/inversion/common/types/persistence.js.map +1 -1
  405. package/dist/esm/helpers/inversion/container.js.map +1 -1
  406. package/dist/esm/helpers/inversion/index.js.map +1 -1
  407. package/dist/esm/helpers/inversion/mixins/artifact.mixin.js.map +1 -1
  408. package/dist/esm/helpers/inversion/mixins/controllers/controller.js.map +1 -1
  409. package/dist/esm/helpers/inversion/mixins/controllers/grpc.js.map +1 -1
  410. package/dist/esm/helpers/inversion/mixins/controllers/index.js.map +1 -1
  411. package/dist/esm/helpers/inversion/mixins/controllers/rest.js.map +1 -1
  412. package/dist/esm/helpers/inversion/mixins/datasource.mixin.js.map +1 -1
  413. package/dist/esm/helpers/inversion/mixins/index.js.map +1 -1
  414. package/dist/esm/helpers/inversion/mixins/model.mixin.js.map +1 -1
  415. package/dist/esm/helpers/inversion/mixins/repository.mixin.js.map +1 -1
  416. package/dist/esm/helpers/inversion/registry.js.map +1 -1
  417. package/dist/esm/helpers/singleton-realm.js.map +1 -1
  418. package/dist/esm/index.js.map +1 -1
  419. package/dist/esm/metadata.js.map +1 -1
  420. package/dist/esm/repository.js.map +1 -1
  421. package/dist/esm/utilities/error.utility.js.map +1 -1
  422. package/dist/esm/utilities/index.js.map +1 -1
  423. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"response-reader.js","sourceRoot":"","sources":["../../../../../src/base/repositories/common/response-reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAC7B,MAAM,CAAC,aAAa,CAAC,KAAc;QAC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AC7C,CAAC;YACD,OAAO,EAAE,IAAI,EAAE,CAAC;QAClB,CAAC;QAED,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;QACpC,OAAO,EAAE,IAAI,EAAE,OAAO,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,CAAC;IACvF,CAAC;CACF"}
1
+ {"version":3,"file":"response-reader.js","sourceRoot":"","sources":["../../../../../src/base/repositories/common/response-reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAC7B,MAAM,CAAC,aAAa,CAAC,KAAc;QACjC,OAAO,CACL,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,SAAS,CAC1F,CAAC;IACJ,CAAC;IAED,oEAAoE;IACpE,MAAM,CAAC,MAAM,CAAC,KAAc;QAC1B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IACvE,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CAAC,IAExB;QACC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAExB,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;QAC7D,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,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AC,KAAK,CAAC,CAAC,CAAC,SAAS;YACxD,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,KAAK;YAC5B,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;SAChE,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAsD;QAIrE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAC/B,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAE1D,IACE,CAAC,QAAQ;YACT,CAAC,kBAAkB,CAAC,aAAa,CAAC,IAAI,CAAC;YACvC,CAAC,kBAAkB,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,EAC7C,CAAC;YACD,OAAO,EAAE,IAAI,EAAE,CAAC;QAClB,CAAC;QAED,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;QACpC,OAAO,EAAE,IAAI,EAAE,OAAO,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,CAAC;IACvF,CAAC;CACF","sourcesContent":["import { HTTP } from '@venizia/ignis-helpers/common';\nimport { getError } from '@venizia/ignis-helpers/core';\nimport type { ApplicationError, TResponsedError } from '@venizia/ignis-helpers/core';\n\n/**\n * What an IGNIS server answers - `Content-Range`, the error envelope - read once, here, for every\n * client of that server: the http connector, and a client that reads it without the connector.\n */\nexport class HttpResponseReader {\n static isPlainObject(value: unknown): value is Record<string, unknown> {\n return (\n !!value && typeof value === 'object' && Object.getPrototypeOf(value) === Object.prototype\n );\n }\n\n /** An empty string reads as absent, so a fallback still applies. */\n static toText(value: unknown): string | undefined {\n return typeof value === 'string' && value !== '' ? value : undefined;\n }\n\n /**\n * A `Content-Range` header as the IGNIS server writes it: `records 0-24/137` -> skip 0, total 137;\n * an empty page, `records *\\/137` -> total 137. Anything else, including an absent header or an\n * unknown total, is `undefined`.\n */\n static parseContentRange(opts: {\n header?: string | null;\n }): { skip?: number; total: number } | undefined {\n const { header } = opts;\n\n if (!header) {\n return undefined;\n }\n\n const range = header.match(/(\\d+)\\s*-\\s*(\\d+)\\s*\\/\\s*(\\d+)/);\n if (range) {\n return { skip: Number(range[1]), total: Number(range[3]) };\n }\n\n const unsatisfied = header.match(/\\*\\s*\\/\\s*(\\d+)/);\n if (unsatisfied) {\n return { total: Number(unsatisfied[1]) };\n }\n\n return undefined;\n }\n\n /**\n * The IGNIS error envelope - `{ message, statusCode, normalized: { text, code, args }, requestId,\n * extra, details }` - read off a parsed response body. A server configured with `error.rootKey`\n * wraps it under that key; pass the same `rootKey` to unwrap it. A body without that key, or with a\n * non-object under it (a proxy's `{ error: 'Bad Gateway' }`), is read as it stands.\n *\n * A body that is not a plain object yields `{}`; any other body yields its known fields, each\n * `undefined` when absent or mistyped. An empty string reads as absent.\n */\n static readErrorEnvelope(opts: { body: unknown; rootKey?: string }): TResponsedError {\n const { body, rootKey } = opts;\n\n const wrapped = rootKey && HttpResponseReader.isPlainObject(body) ? body[rootKey] : undefined;\n const envelope = HttpResponseReader.isPlainObject(wrapped) ? wrapped : body;\n\n if (!HttpResponseReader.isPlainObject(envelope)) {\n return {};\n }\n\n const { message, statusCode, normalized, requestId, extra, details } = envelope;\n const normalizedRecord = HttpResponseReader.isPlainObject(normalized) ? normalized : {};\n const { text, code, args } = normalizedRecord;\n\n return {\n message: HttpResponseReader.toText(message),\n statusCode: typeof statusCode === 'number' ? statusCode : undefined,\n normalized: {\n text: HttpResponseReader.toText(text),\n code: HttpResponseReader.toText(code),\n args: HttpResponseReader.isPlainObject(args) ? { ...args } : undefined,\n },\n requestId: HttpResponseReader.toText(requestId),\n extra: HttpResponseReader.isPlainObject(extra) ? { ...extra } : undefined,\n details: HttpResponseReader.isPlainObject(details) ? { ...details } : undefined,\n };\n }\n\n /** A failed response's envelope. A body that is not JSON yields `{}`, and the status alone still describes it. */\n static async readError(opts: { response: Response; rootKey?: string }): Promise<TResponsedError> {\n const text = await opts.response.text().catch(() => '');\n\n let body: unknown;\n try {\n body = text ? JSON.parse(text) : undefined;\n } catch {\n return {};\n }\n\n return HttpResponseReader.readErrorEnvelope({ body, rootKey: opts.rootKey });\n }\n\n /**\n * A failed response as the error the server threw: its status, code, args and text, and its\n * `extra` with the `requestId` added. `message` is `context` plus the server's text, for logs;\n * `normalized.text` stays the server's, for display - `HTTP <status>` when the server sent none.\n * `cause` is the server's `details.cause` - a 422's per-field issues, `{ path, message, code }`.\n *\n * `requestId` names the request this client made. A relaying server's `extra` carries the id of\n * the request it made upstream: it joins `upstreamRequestIds`, nearest first, at every hop.\n */\n static async toApplicationError(opts: {\n response: Response;\n /** Where it failed, for logs - e.g. `[HttpDataSource][read] 404 | /tickets`. */\n context: string;\n rootKey?: string;\n }): Promise<ApplicationError> {\n const { response, context, rootKey } = opts;\n const server = await HttpResponseReader.readError({ response, rootKey });\n const serverText = server.normalized?.text ?? server.message;\n const displayText = serverText ?? `HTTP ${response.status}`;\n\n const extra: Record<string, unknown> = { ...server.extra };\n if (server.requestId) {\n const upstreamRequestId = extra.requestId;\n extra.requestId = server.requestId;\n\n if (upstreamRequestId !== undefined && upstreamRequestId !== server.requestId) {\n const known = Array.isArray(extra.upstreamRequestIds) ? extra.upstreamRequestIds : [];\n extra.upstreamRequestIds = [upstreamRequestId, ...known];\n }\n }\n\n return getError({\n statusCode: response.status,\n message: serverText ? `${context} | ${serverText}` : context,\n messageCode: server.normalized?.code,\n messageArgs: server.normalized?.args,\n extra: Object.keys(extra).length > 0 ? extra : undefined,\n cause: server.details?.cause,\n transform: ({ message }) => ({ ...message, text: displayText }),\n });\n }\n\n /**\n * A body the server marked with `x-response-extra` carries `extra` beside its rows. `body` is what\n * the route answers without extras: the `{ count, data }` envelope when the count was asked for in\n * the body, the rows otherwise. Any other body is returned as it stands - an unmarked object is\n * never unwrapped, so a row that has `data` and `extra` columns of its own is never misread.\n */\n static readExtra(opts: { body: unknown; headers: Pick<Headers, 'has'> }): {\n body: unknown;\n extra?: Record<string, unknown>;\n } {\n const { body, headers } = opts;\n const isMarked = headers.has(HTTP.Headers.RESPONSE_EXTRA);\n\n if (\n !isMarked ||\n !HttpResponseReader.isPlainObject(body) ||\n !HttpResponseReader.isPlainObject(body.extra)\n ) {\n return { body };\n }\n\n const { extra, ...envelope } = body;\n return { body: 'count' in envelope ? envelope : envelope.data, extra: { ...extra } };\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../../../src/base/repositories/common/types/contracts.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../../../src/base/repositories/common/types/contracts.ts"],"names":[],"mappings":"","sourcesContent":["import type { AbstractDataSource } from '@/base/datasources';\nimport type { AbstractEntity, IdType } from '@/base/models';\nimport type { TFilter, TWhere } from '@venizia/ignis-filter';\nimport type { TNullable } from '@venizia/ignis-helpers/common';\nimport type { IExtraOptions, TFindOneOptions, TFindOptions, TFindRangeOptions } from './options';\nimport type { TCount, TDataWithRange } from './results';\n\n/**\n * Base repository interface shared by every engine - engine-specific accessors (postgres's\n * `getEntitySchema()`/`getConnector()`) stay on the connector's own repository tier.\n */\nexport interface IRepository {\n dataSource: AbstractDataSource;\n entity: AbstractEntity;\n getEntity(): AbstractEntity;\n}\n\n/** Interface for read-only repository operations. `TDataObject` is the row/document shape itself. */\nexport interface IReadableRepository<\n TDataObject extends object = object,\n ExtraOptions extends IExtraOptions = IExtraOptions,\n> extends IRepository {\n count(opts: { where: TWhere<TDataObject>; options?: ExtraOptions }): Promise<TCount>;\n existsWith(opts: { where: TWhere<TDataObject>; options?: ExtraOptions }): Promise<boolean>;\n\n find<R = TDataObject>(opts: {\n filter: TFilter<TDataObject>;\n options: TFindRangeOptions<ExtraOptions, R>;\n }): Promise<TDataWithRange<R>>;\n\n find<R = TDataObject>(opts: {\n filter: TFilter<TDataObject>;\n options?: TFindOptions<ExtraOptions, R>;\n }): Promise<Array<R>>;\n\n findOne<R = TDataObject>(opts: {\n filter: TFilter<TDataObject>;\n options?: TFindOneOptions<ExtraOptions, R>;\n }): Promise<TNullable<R>>;\n\n findById<R = TDataObject>(opts: {\n id: IdType;\n filter?: Omit<TFilter<TDataObject>, 'where'>;\n options?: TFindOneOptions<ExtraOptions, R>;\n }): Promise<TNullable<R>>;\n}\n\n/** Interface for create operations. */\nexport interface ICreatableRepository<\n TDataObject extends object = object,\n TPersistObject extends object = TDataObject,\n ExtraOptions extends IExtraOptions = IExtraOptions,\n> extends IRepository {\n create(opts: {\n data: TPersistObject;\n options: ExtraOptions & { shouldReturn: false };\n }): Promise<TCount & { data: undefined | null }>;\n\n create<R = TDataObject>(opts: {\n data: TPersistObject;\n options?: ExtraOptions & { shouldReturn?: true };\n }): Promise<TCount & { data: R }>;\n\n createAll(opts: {\n data: Array<TPersistObject>;\n options: ExtraOptions & { shouldReturn: false };\n }): Promise<TCount & { data: undefined | null }>;\n\n createAll<R = TDataObject>(opts: {\n data: Array<TPersistObject>;\n options?: ExtraOptions & { shouldReturn?: true };\n }): Promise<TCount & { data: Array<R> }>;\n}\n\n/** Interface for update operations. */\nexport interface IUpdatableRepository<\n TDataObject extends object = object,\n TPersistObject extends object = TDataObject,\n ExtraOptions extends IExtraOptions = IExtraOptions,\n> extends IRepository {\n updateById(opts: {\n id: IdType;\n data: Partial<TPersistObject>;\n options: ExtraOptions & { shouldReturn: false };\n }): Promise<TCount & { data: undefined | null }>;\n\n updateById<R = TDataObject>(opts: {\n id: IdType;\n data: Partial<TPersistObject>;\n options?: ExtraOptions & { shouldReturn?: true };\n }): Promise<TCount & { data: R }>;\n\n updateAll(opts: {\n data: Partial<TPersistObject>;\n where: TWhere<TDataObject>;\n options: ExtraOptions & { shouldReturn: false; force?: boolean };\n }): Promise<TCount & { data: undefined | null }>;\n\n updateAll<R = TDataObject>(opts: {\n data: Partial<TPersistObject>;\n where: TWhere<TDataObject>;\n options?: ExtraOptions & { shouldReturn?: true; force?: boolean };\n }): Promise<TCount & { data: Array<R> | null }>;\n\n /** Alias for updateAll. */\n updateBy(opts: {\n data: Partial<TPersistObject>;\n where: TWhere<TDataObject>;\n options: ExtraOptions & { shouldReturn: false; force?: boolean };\n }): Promise<TCount & { data: undefined | null }>;\n\n /** Alias for updateAll. */\n updateBy<R = TDataObject>(opts: {\n data: Partial<TPersistObject>;\n where: TWhere<TDataObject>;\n options?: ExtraOptions & { shouldReturn?: true; force?: boolean };\n }): Promise<TCount & { data: Array<R> | null }>;\n}\n\n/** Interface for delete operations. */\nexport interface IDeletableRepository<\n TDataObject extends object = object,\n ExtraOptions extends IExtraOptions = IExtraOptions,\n> extends IRepository {\n deleteById(opts: {\n id: IdType;\n options: ExtraOptions & { shouldReturn: false };\n }): Promise<TCount & { data: undefined | null }>;\n\n deleteById<R = TDataObject>(opts: {\n id: IdType;\n options?: ExtraOptions & { shouldReturn?: true };\n }): Promise<TCount & { data: R }>;\n\n deleteAll(opts: {\n where?: TWhere<TDataObject>;\n options: ExtraOptions & { shouldReturn: false; force?: boolean };\n }): Promise<TCount & { data: undefined | null }>;\n\n deleteAll<R = TDataObject>(opts: {\n where?: TWhere<TDataObject>;\n options?: ExtraOptions & { shouldReturn?: true; force?: boolean };\n }): Promise<TCount & { data: Array<R> | null }>;\n\n /** Alias for deleteAll. */\n deleteBy(opts: {\n where?: TWhere<TDataObject>;\n options: ExtraOptions & { shouldReturn: false; force?: boolean };\n }): Promise<TCount & { data: undefined | null }>;\n\n /** Alias for deleteAll. */\n deleteBy<R = TDataObject>(opts: {\n where?: TWhere<TDataObject>;\n options?: ExtraOptions & { shouldReturn?: true; force?: boolean };\n }): Promise<TCount & { data: Array<R> | null }>;\n}\n\n/** Interface for full CRUD repository operations - reads plus create, update, and delete. */\nexport interface IPersistableRepository<\n TDataObject extends object = object,\n TPersistObject extends object = TDataObject,\n ExtraOptions extends IExtraOptions = IExtraOptions,\n>\n extends\n IReadableRepository<TDataObject, ExtraOptions>,\n ICreatableRepository<TDataObject, TPersistObject, ExtraOptions>,\n IUpdatableRepository<TDataObject, TPersistObject, ExtraOptions>,\n IDeletableRepository<TDataObject, ExtraOptions> {}\n\n/**\n * Alias for IPersistableRepository - the name both DefaultRelationalRepository and\n * DefaultSearchRepository satisfy.\n */\nexport interface ICrudRepository<\n TDataObject extends object = object,\n TPersistObject extends object = TDataObject,\n ExtraOptions extends IExtraOptions = IExtraOptions,\n> extends IPersistableRepository<TDataObject, TPersistObject, ExtraOptions> {}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/base/repositories/common/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,sGAAsG;AACtG,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/base/repositories/common/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,sGAAsG;AACtG,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './contracts';\nexport * from './options';\nexport * from './query';\nexport * from './results';\n// Carries zod. Kept out of `results.ts` so the repository types stay reachable from a browser bundle.\nexport * from './result-schemas';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../../../src/base/repositories/common/types/options.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../../../src/base/repositories/common/types/options.ts"],"names":[],"mappings":"","sourcesContent":["import type { ITransaction } from '@/base/datasources';\nimport type { IRetryBackoffOptions, TLogLevel } from '@venizia/ignis-helpers/core';\nimport type { TNullable } from '@venizia/ignis-helpers/common';\nimport type { SQL } from 'drizzle-orm';\nimport type { TLockStrength } from '../constants';\nimport type { TDataWithRange } from './results';\n\n/** Update data supporting both regular fields and JSON path updates via dot notation. */\nexport type TUpdateData<T = any> = Partial<T> & {\n [jsonPath: string]: any;\n};\n\n/** Options for Drizzle ORM query building, used internally by FilterBuilder. */\nexport type TDrizzleQueryOptions = Partial<{\n limit: number;\n offset: number;\n orderBy: SQL[];\n where: SQL;\n with: Record<string, true | TDrizzleQueryOptions>;\n columns: Record<string, boolean>;\n}>;\n\n/** Configuration for repository operation logging. */\nexport type TRepositoryLogOptions = {\n use: boolean;\n level?: TLogLevel;\n};\n\n/** Configuration for row-level lock wait behavior. Mutually exclusive: use noWait OR skipLocked. */\nexport type TLockConfig =\n | { noWait: true; skipLocked?: undefined }\n | { noWait?: undefined; skipLocked: true }\n | { noWait?: undefined; skipLocked?: undefined };\n\n/** Row-level locking options for read operations. */\nexport type TLockOptions = {\n strength: TLockStrength;\n config?: TLockConfig;\n};\n\n/** Neutral transaction association - postgres narrows to its own `IDatabaseTransaction` (via `isDatabaseTransaction`) where it needs `.connector`. */\nexport interface IWithTransaction {\n transaction?: ITransaction;\n}\n\n/** Extended options for repository operations with transaction, logging, and default filter bypass. */\nexport interface IExtraOptions extends IWithTransaction {\n log?: TRepositoryLogOptions;\n\n /** If true, bypass the default filter configured in model settings (e.g., soft delete). */\n shouldSkipDefaultFilter?: boolean;\n\n /** Row-level locking. Requires transaction. Incompatible with include/fields (Query API). */\n lock?: TLockOptions;\n}\n\n/**\n * Read-after-write retry for read verbs behind a replicated pool. The read re-executes while\n * `until(result)` returns false; on exhaustion the last result is returned as-is.\n */\nexport interface IReadRetryOptions<TResult> {\n /** Default 3. */\n maxAttempts?: number;\n\n /** Total budget across attempts AND sleeps. Default: unlimited. */\n maxTotalMs?: number;\n\n /**\n * Aborts between attempts and during backoff sleeps - pass the request signal so a cancelled\n * request stops retrying.\n */\n signal?: AbortSignal;\n\n /** Default: EXPONENTIAL from 50ms, capped at 500ms, EQUAL jitter - tuned for replica lag. */\n backoff?: IRetryBackoffOptions;\n\n /** Retry while false. Default per verb: findOne/findById non-null, find non-empty. */\n until?: (result: TResult) => boolean;\n}\n\n/**\n * Intersected into READ verb signatures only - a write verb's options type has no `retry`, so an\n * inline `{ retry }` fails to compile and a pre-built object carrying it is inert.\n */\nexport interface IWithReadRetry<TResult> {\n retry?: IReadRetryOptions<TResult>;\n}\n\n/** Options for `find` returning a plain array - the retry predicate sees `Array<R>`. */\nexport type TFindOptions<TOptions extends IExtraOptions, R> = TOptions & {\n shouldQueryRange?: false;\n} & IWithReadRetry<Array<R>>;\n\n/** Options for `find` with the range envelope - the retry predicate sees `{ data, range }`. */\nexport type TFindRangeOptions<TOptions extends IExtraOptions, R> = TOptions & {\n shouldQueryRange: true;\n} & IWithReadRetry<TDataWithRange<R>>;\n\n/** Options for `findOne`/`findById` - the retry predicate sees `TNullable<R>`. */\nexport type TFindOneOptions<TOptions extends IExtraOptions, R> = TOptions &\n IWithReadRetry<TNullable<R>>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../../src/base/repositories/common/types/query.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../../src/base/repositories/common/types/query.ts"],"names":[],"mappings":"","sourcesContent":["import type { AnyType } from '@venizia/ignis-helpers/common';\nimport type { Column, SQL } from 'drizzle-orm';\n\n/** Options passed to query operator handler functions. */\nexport interface IQueryHandlerOptions<T = any> {\n column: Column;\n value: T;\n}\n\n/**\n * Operator-name to SQL-handler table a relational dialect translates with, so a second SQL engine\n * swaps the whole table without touching the walk that reaches it. `column` is wider than\n * `IQueryHandlerOptions` names it: the JSON-path branch hands handlers a raw `#>>` extraction\n * expression, not a `Column`.\n */\nexport type TQueryOperatorHandlers = Record<\n string,\n (opts: { column: AnyType; value: AnyType }) => SQL | undefined\n>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"result-schemas.js","sourceRoot":"","sources":["../../../../../../src/base/repositories/common/types/result-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC;IAC5E,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;CACxC,CAAC,CAAC"}
1
+ {"version":3,"file":"result-schemas.js","sourceRoot":"","sources":["../../../../../../src/base/repositories/common/types/result-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC;IAC5E,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;CACxC,CAAC,CAAC","sourcesContent":["import { z } from '@hono/zod-openapi';\n\n/**\n * The zod-backed result schema, kept apart from `results.ts` ON PURPOSE. `z.object()` runs at module\n * load, so any bundle reaching this file carries the whole of zod - and `results.ts` is on\n * `AbstractRepository`'s path, which a consumer that never serves HTTP still needs.\n */\nexport const CountSchema = z.object({ count: z.number().default(0) }).openapi({\n description: 'Total count of items matching the criteria.',\n examples: [{ count: 0 }, { count: 10 }],\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"results.js","sourceRoot":"","sources":["../../../../../../src/base/repositories/common/types/results.ts"],"names":[],"mappings":"AAUA,mGAAmG;AACnG,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAK9B,EAAc,EAAE;IACf,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACjD,MAAM,KAAK,GAAG,IAAI,IAAI,MAAM,IAAI,CAAC,CAAC;IAClC,MAAM,GAAG,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC5D,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;AAC/B,CAAC,CAAC"}
1
+ {"version":3,"file":"results.js","sourceRoot":"","sources":["../../../../../../src/base/repositories/common/types/results.ts"],"names":[],"mappings":"AAUA,mGAAmG;AACnG,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAK9B,EAAc,EAAE;IACf,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACjD,MAAM,KAAK,GAAG,IAAI,IAAI,MAAM,IAAI,CAAC,CAAC;IAClC,MAAM,GAAG,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC5D,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;AAC/B,CAAC,CAAC","sourcesContent":["/** The count envelope. Spelled out rather than inferred from `CountSchema`, which lives in `result-schemas.ts` - inferring it here would put zod on every path that needs the TYPE. */\nexport type TCount = { count: number };\n\n/** Data range information for paginated queries. Follows HTTP Content-Range standard. */\nexport type TDataRange = {\n start: number;\n end: number;\n total: number;\n};\n\n/** Content-Range envelope with an inclusive `end` - an empty page collapses `end` onto `start`. */\nexport const buildDataRange = (opts: {\n skip?: number;\n offset?: number;\n dataLength: number;\n total: number;\n}): TDataRange => {\n const { skip, offset, dataLength, total } = opts;\n const start = skip ?? offset ?? 0;\n const end = dataLength > 0 ? start + dataLength - 1 : start;\n return { start, end, total };\n};\n\n/** The `shouldQueryRange: true` result envelope; `extra` carries what a list answered beside its rows - see `x-request-extra`. */\nexport type TDataWithRange<R> = {\n data: Array<R>;\n range: TDataRange;\n extra?: Record<string, unknown>;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"abstract.js","sourceRoot":"","sources":["../../../../../src/base/repositories/core/abstract.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAYpG,sGAAsG;AACtG,sFAAsF;AACtF,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAG7B;;;;GAIG;AACH,MAAM,OAAgB,kBAKpB,SAAQ,UAAU;IAiBlB,YACE,UAA+B,EAC/B,IAIC;QAED,MAAM,SAAS,GACb,IAAI,EAAE,KAAK;YACX,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAE/F,KAAK,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CA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AE,CAAC;YACpC,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACvF,CAAC;QAED,OAAO,IAAI,CAAC,SAAS,CAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;IACrD,CAAC;IA+BD,QAAQ,CAAkB,IAGzB;QACC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAEhC,IAAI,OAAO,EAAE,YAAY,KAAK,KAAK,EAAE,CAAC;YACpC,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACjF,CAAC;QAED,OAAO,IAAI,CAAC,SAAS,CAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/C,CAAC;CACF","sourcesContent":["import type { AbstractDataSource } from '@/base/datasources';\nimport type { AbstractEntity, IdType } from '@/base/models';\nimport type { IModelMetadata } from '@/helpers/inversion';\nimport { MetadataRegistry } from '@/helpers/inversion';\nimport type { TClass, TNullable } from '@venizia/ignis-helpers/common';\nimport { BaseHelper, getError } from '@venizia/ignis-helpers/core';\nimport { resolveValue } from '@venizia/ignis-helpers/common';\nimport { RetryBackoffStrategies, RetryHelper, RetryJitterModes } from '@venizia/ignis-helpers/core';\nimport type {\n IExtraOptions,\n IPersistableRepository,\n IWithReadRetry,\n TCount,\n TDataWithRange,\n TFindOneOptions,\n TFindOptions,\n TFindRangeOptions,\n TRepositoryOperationScope,\n} from '../common';\n// The file, not the `../common` barrel: the barrel re-exports the OpenAPI schemas, and this module is\n// on the `./repository` entry, which must load without `@hono/zod-openapi` installed.\nimport {\n DEFAULT_MAX_LIMIT,\n RepositoryErrorCodes,\n RepositoryOperationScopes,\n} from '../common/constants';\nimport type { TFilter, TInclusion, TWhere } from '@venizia/ignis-filter';\n\n/**\n * Engine-neutral repository plumbing - lazy dataSource/entity resolution, class-keyed `@model`\n * settings, operation scope. `TOptions` defaults to `IExtraOptions` so connectors can narrow it\n * while staying assignable to this base.\n */\nexport abstract class AbstractRepository<\n TDataObject extends object,\n TPersistObject extends object = TDataObject,\n TOptions extends IExtraOptions = IExtraOptions,\n>\n extends BaseHelper\n implements IPersistableRepository<TDataObject, TPersistObject, TOptions>\n{\n protected _operationScope: TRepositoryOperationScope;\n\n /** Lazy-resolved on first access if not provided in constructor. */\n protected _dataSource?: AbstractDataSource;\n\n /** Lazy-resolved from @repository metadata on first access. */\n protected _entity?: AbstractEntity;\n\n /**\n * Memoized @model settings for `this.entity`'s class. `null` means not yet resolved - `undefined`\n * is itself a valid resolved value: the model declares no settings.\n */\n private _modelSettings: IModelMetadata['settings'] | null = null;\n\n constructor(\n dataSource?: AbstractDataSource,\n opts?: {\n scope?: string;\n entityClass?: TClass<AbstractEntity>;\n operationScope?: TRepositoryOperationScope;\n },\n ) {\n const scopeName =\n opts?.scope ??\n (opts?.entityClass?.name ? [opts.entityClass.name, 'Repository'].join('') : new.target.name);\n\n super({ scope: scopeName });\n\n this._operationScope = opts?.operationScope ?? RepositoryOperationScopes.READ_ONLY;\n\n if (dataSource) {\n this._dataSource = dataSource;\n }\n\n if (opts?.entityClass) {\n this._entity = new opts.entityClass();\n }\n }\n\n get dataSource(): AbstractDataSource {\n if (!this._dataSource) {\n throw getError({\n message: `[${this.constructor.name}] DataSource not available. Use @repository({ model: YourModel, dataSource: YourDataSource }) or pass dataSource in constructor.`,\n });\n }\n\n return this._dataSource;\n }\n\n set dataSource(value: AbstractDataSource) {\n this._dataSource = value;\n }\n\n /** Auto-resolves from @repository metadata if not explicitly set. */\n get entity(): AbstractEntity {\n this._entity ??= this.resolveEntity();\n return this._entity;\n }\n\n set entity(value: AbstractEntity) {\n this._entity = value;\n }\n\n get operationScope(): TRepositoryOperationScope {\n return this._operationScope;\n }\n\n setDataSource(opts: { dataSource: AbstractDataSource }): void {\n this._dataSource = opts.dataSource;\n }\n\n getEntity(): AbstractEntity {\n return this.entity;\n }\n\n /**\n * Resolved `@model` settings for `this.entity`'s class, keyed by Reflect target - not by\n * `entity.name`, which can diverge from the `@model` registry key.\n */\n protected get modelSettings(): IModelMetadata['settings'] {\n if (this._modelSettings !== null) {\n return this._modelSettings;\n }\n\n this._modelSettings = MetadataRegistry.getInstance().getModelMetadata({\n target: this.entity.constructor,\n })?.settings;\n\n return this._modelSettings;\n }\n\n protected get hiddenFields(): string[] {\n return this.modelSettings?.hiddenProperties ?? [];\n }\n\n /** Default where from @model settings.defaultFilter.where, AND-merged into every query unless skipped. */\n protected get defaultWhere(): TWhere | undefined {\n return this.modelSettings?.defaultFilter?.where;\n }\n\n protected get defaultLimit(): number | undefined {\n return this.modelSettings?.defaultLimit;\n }\n\n /** Largest `limit` a caller may ask for, when the model declares one; undefined leaves the tier's own default in force. */\n protected get maxLimit(): number | undefined {\n return this.modelSettings?.maxLimit;\n }\n\n /**\n * Both bounds, in one place, for every tier.\n *\n * The upper bound is the point: `@model({ settings: { maxLimit } })` is public and validated at\n * decoration time, but the relational tier read it nowhere, so `maxLimit: 2` still issued\n * `LIMIT 50000000`.\n *\n * The lower bound matters just as much and is easy to miss: a NEGATIVE limit is not a smaller\n * page. Drizzle renders the LIMIT clause only when the value is `>= 0`, so a negative one removes\n * the clause and returns the whole table. The wire schema now rejects it too, but a server-side\n * caller reaches this method without passing through the schema at all.\n */\n protected assertLimitWithinCeiling(opts: { limit?: number; scope?: string }): void {\n const { limit, scope = 'find' } = opts;\n\n if (limit === undefined) {\n return;\n }\n\n // The shape check first, because it needs no metadata at all.\n if (!Number.isInteger(limit) || limit < 0) {\n throw getError({\n message: `[${this.constructor.name}][${scope}] Invalid 'limit' | Expected a non-negative integer | Got: ${limit}`,\n });\n }\n\n // `maxLimit` reaches `modelSettings`, which resolves the entity - and THAT throws for a\n // repository with no `@repository` model binding. Such a repository is a misconfiguration this\n // method has no business reporting, and the caller path that used to reach `getDefaultLimit()`\n // never touched it either, because `??` short-circuits when a limit is given. So the ceiling is\n // consulted only when the binding that makes it resolvable is actually present.\n const hasModelBinding = Boolean(\n MetadataRegistry.getInstance().getRepositoryBinding({ target: this.constructor })?.model,\n );\n const ceiling = (hasModelBinding ? this.maxLimit : undefined) ?? DEFAULT_MAX_LIMIT;\n\n if (limit > ceiling) {\n throw getError({\n message: `[${this.constructor.name}][${scope}] Requested page exceeds this model's limit | requested: ${limit} | maximum: ${ceiling} | raise it with @model settings.maxLimit if larger pages are genuinely needed`,\n });\n }\n }\n\n /**\n * The whole filter, relations included. Checking only the top-level `limit` left the identical\n * defect reachable one level down: a relation scope's negative limit drops Drizzle's LIMIT clause\n * for that relation and loads the entire related table.\n *\n * A relation's limit gets the SHAPE check only, not a ceiling. The ceiling belongs to the\n * relation's own model, which this repository cannot resolve - claiming otherwise would enforce\n * the parent's `maxLimit` on a different entity.\n */\n protected assertFilterLimits(opts: { filter?: TFilter; scope?: string }): void {\n const { filter, scope = 'find' } = opts;\n\n if (!filter) {\n return;\n }\n\n this.assertLimitWithinCeiling({ limit: filter.limit, scope });\n\n const walk = (inclusions: TInclusion[] | undefined, path: string): void => {\n const inclusionsList = inclusions ?? [];\n for (const inclusion of inclusionsList) {\n const relationScope = inclusion.scope;\n if (!relationScope) {\n continue;\n }\n\n const relationPath = `${path}.${inclusion.relation}`;\n const relationLimit = relationScope.limit;\n\n if (\n relationLimit !== undefined &&\n (!Number.isInteger(relationLimit) || relationLimit < 0)\n ) {\n throw getError({\n message: `[${this.constructor.name}][${scope}] Invalid 'limit' on relation scope | relation: ${relationPath} | Expected a non-negative integer | Got: ${relationLimit}`,\n });\n }\n\n walk(relationScope.include, relationPath);\n }\n };\n\n walk(filter.include, scope);\n }\n\n /** Resolves the entity instance from @repository metadata on first access. */\n protected resolveEntity(): AbstractEntity {\n const registry = MetadataRegistry.getInstance();\n const binding = registry.getRepositoryBinding({ target: this.constructor });\n\n if (!binding?.model) {\n throw getError({\n message: `[${this.constructor.name}] Cannot resolve entity. Either pass entityClass in constructor or use @repository decorator with model option.`,\n });\n }\n\n // resolveValue() erases to the resolved value's structural type, not this class-or-resolver\n // union's member - the `@repository` decorator guarantees a class constructor here.\n const ModelClass = resolveValue({ value: binding.model }) as TClass<AbstractEntity>;\n return new ModelClass();\n }\n\n /** Rejects a verb the current operation scope does not permit. */\n protected denyOperation(opts: { methodName: string }): never {\n throw getError({\n messageCode: RepositoryErrorCodes.OPERATION_NOT_ALLOWED,\n message: `[${opts.methodName}] Repository operation is NOT ALLOWED | scope: ${this.operationScope}`,\n });\n }\n\n /**\n * Shared retry orchestration for read verbs. Inside a transaction retry is skipped - the pool\n * routes transactions to the primary, so there is no replica lag to wait out.\n */\n protected executeReadWithRetry<TResult>(opts: {\n operation: string;\n options: IExtraOptions & IWithReadRetry<TResult>;\n defaultUntil: (result: TResult) => boolean;\n execution: () => Promise<TResult>;\n }): Promise<TResult> {\n const { operation, options, defaultUntil, execution } = opts;\n\n if (!options.retry) {\n return execution();\n }\n\n if (options.transaction) {\n this.logger.for(operation).debug('Read retry skipped inside transaction');\n return execution();\n }\n\n const { maxAttempts, maxTotalMs, signal, backoff, until } = options.retry;\n\n return RetryHelper.executeWithRetryUntil<TResult>({\n operation: [this.constructor.name, operation].join('.'),\n execution,\n until: until ?? defaultUntil,\n maxAttempts,\n maxTotalMs,\n signal,\n backoff: backoff ?? {\n strategy: RetryBackoffStrategies.EXPONENTIAL,\n initialDelayMs: 50,\n maxDelayMs: 500,\n jitter: RetryJitterModes.EQUAL,\n },\n logger: this.logger,\n });\n }\n\n /**\n * A copy of `options` without `retry`, so re-entering a read verb takes its non-retry path - this\n * is what keeps the retry recursion single-depth. Copy-then-delete rather than a rest-destructure\n * (lint rejects the unused rest sibling) or `lodash/omit` (its `Omit<>` return type is not\n * assignable back to `TOptions`).\n */\n private omitReadRetry<TReadOptions extends { retry?: unknown }>(\n options: TReadOptions,\n ): TReadOptions {\n const rest = { ...options };\n delete rest.retry;\n return rest;\n }\n\n /** `find`, re-executed until the retry predicate holds - connectors dispatch here from `find` when `options.retry` is set. */\n protected findUntil<R = TDataObject>(opts: {\n filter: TFilter<TDataObject>;\n options: TFindOptions<TOptions, R>;\n }): Promise<Array<R>> {\n const options = this.omitReadRetry(opts.options);\n\n return this.executeReadWithRetry<Array<R>>({\n operation: 'find',\n options: opts.options,\n defaultUntil: result => result.length > 0,\n execution: () => this.find<R>({ filter: opts.filter, options }),\n });\n }\n\n /** `find` with the range envelope, re-executed until the retry predicate holds - split from `findUntil` so each result shape is checked against its own `find` overload. */\n protected findRangeUntil<R = TDataObject>(opts: {\n filter: TFilter<TDataObject>;\n options: TFindRangeOptions<TOptions, R>;\n }): Promise<TDataWithRange<R>> {\n const options = this.omitReadRetry(opts.options);\n\n return this.executeReadWithRetry<TDataWithRange<R>>({\n operation: 'find',\n options: opts.options,\n defaultUntil: result => result.data.length > 0,\n execution: () => this.find<R>({ filter: opts.filter, options }),\n });\n }\n\n /** `findOne`, re-executed until the retry predicate holds - also serves `findById` via its findOne delegation. */\n protected findOneUntil<R = TDataObject>(opts: {\n filter: TFilter<TDataObject>;\n options: TFindOneOptions<TOptions, R>;\n }): Promise<TNullable<R>> {\n const options = this.omitReadRetry(opts.options);\n\n return this.executeReadWithRetry<TNullable<R>>({\n operation: 'findOne',\n options: opts.options,\n defaultUntil: result => result !== null && result !== undefined,\n execution: () => this.findOne<R>({ filter: opts.filter, options }),\n });\n }\n\n abstract count(opts: { where: TWhere<TDataObject>; options?: TOptions }): Promise<TCount>;\n\n abstract existsWith(opts: { where: TWhere<TDataObject>; options?: TOptions }): Promise<boolean>;\n\n abstract find<R = TDataObject>(opts: {\n filter: TFilter<TDataObject>;\n options: TFindRangeOptions<TOptions, R>;\n }): Promise<TDataWithRange<R>>;\n\n abstract find<R = TDataObject>(opts: {\n filter: TFilter<TDataObject>;\n options?: TFindOptions<TOptions, R>;\n }): Promise<R[]>;\n\n abstract findOne<R = TDataObject>(opts: {\n filter: TFilter<TDataObject>;\n options?: TFindOneOptions<TOptions, R>;\n }): Promise<TNullable<R>>;\n\n abstract findById<R = TDataObject>(opts: {\n id: IdType;\n filter?: Omit<TFilter<TDataObject>, 'where'>;\n options?: TFindOneOptions<TOptions, R>;\n }): Promise<TNullable<R>>;\n\n abstract create(opts: {\n data: TPersistObject;\n options: TOptions & { shouldReturn: false };\n }): Promise<TCount & { data: undefined | null }>;\n\n abstract create<R = TDataObject>(opts: {\n data: TPersistObject;\n options?: TOptions & { shouldReturn?: true };\n }): Promise<TCount & { data: R }>;\n\n abstract createAll(opts: {\n data: Array<TPersistObject>;\n options: TOptions & { shouldReturn: false };\n }): Promise<TCount & { data: undefined | null }>;\n\n abstract createAll<R = TDataObject>(opts: {\n data: Array<TPersistObject>;\n options?: TOptions & { shouldReturn?: true };\n }): Promise<TCount & { data: Array<R> }>;\n\n abstract updateById(opts: {\n id: IdType;\n data: Partial<TPersistObject>;\n options: TOptions & { shouldReturn: false };\n }): Promise<TCount & { data: undefined | null }>;\n\n abstract updateById<R = TDataObject>(opts: {\n id: IdType;\n data: Partial<TPersistObject>;\n options?: TOptions & { shouldReturn?: true };\n }): Promise<TCount & { data: R }>;\n\n abstract updateAll(opts: {\n data: Partial<TPersistObject>;\n where: TWhere<TDataObject>;\n options: TOptions & { shouldReturn: false; force?: boolean };\n }): Promise<TCount & { data: undefined | null }>;\n\n abstract updateAll<R = TDataObject>(opts: {\n data: Partial<TPersistObject>;\n where: TWhere<TDataObject>;\n options?: TOptions & { shouldReturn?: true; force?: boolean };\n }): Promise<TCount & { data: Array<R> | null }>;\n\n /** Alias for updateAll. */\n updateBy(opts: {\n data: Partial<TPersistObject>;\n where: TWhere<TDataObject>;\n options: TOptions & { shouldReturn: false; force?: boolean };\n }): Promise<TCount & { data: undefined | null }>;\n updateBy<R = TDataObject>(opts: {\n data: Partial<TPersistObject>;\n where: TWhere<TDataObject>;\n options?: TOptions & { shouldReturn?: true; force?: boolean };\n }): Promise<TCount & { data: Array<R> | null }>;\n updateBy<R = TDataObject>(opts: {\n data: Partial<TPersistObject>;\n where: TWhere<TDataObject>;\n options?: TOptions & { shouldReturn?: boolean; force?: boolean };\n }): Promise<TCount & { data: TNullable<Array<R>> }> {\n const { data, where, options } = opts;\n\n if (options?.shouldReturn === false) {\n return this.updateAll({ data, where, options: { ...options, shouldReturn: false } });\n }\n\n return this.updateAll<R>({ data, where, options });\n }\n\n abstract deleteById(opts: {\n id: IdType;\n options: TOptions & { shouldReturn: false };\n }): Promise<TCount & { data: undefined | null }>;\n\n abstract deleteById<R = TDataObject>(opts: {\n id: IdType;\n options?: TOptions & { shouldReturn?: true };\n }): Promise<TCount & { data: R }>;\n\n abstract deleteAll(opts: {\n where?: TWhere<TDataObject>;\n options: TOptions & { shouldReturn: false; force?: boolean };\n }): Promise<TCount & { data: undefined | null }>;\n\n abstract deleteAll<R = TDataObject>(opts: {\n where?: TWhere<TDataObject>;\n options?: TOptions & { shouldReturn?: true; force?: boolean };\n }): Promise<TCount & { data: Array<R> | null }>;\n\n /** Alias for deleteAll. */\n deleteBy(opts: {\n where: TWhere<TDataObject>;\n options: TOptions & { shouldReturn: false; force?: boolean };\n }): Promise<TCount & { data: undefined | null }>;\n deleteBy<R = TDataObject>(opts: {\n where: TWhere<TDataObject>;\n options?: TOptions & { shouldReturn?: true; force?: boolean };\n }): Promise<TCount & { data: Array<R> | null }>;\n deleteBy<R = TDataObject>(opts: {\n where: TWhere<TDataObject>;\n options?: TOptions & { shouldReturn?: boolean; force?: boolean };\n }): Promise<TCount & { data: TNullable<Array<R>> }> {\n const { where, options } = opts;\n\n if (options?.shouldReturn === false) {\n return this.deleteAll({ where, options: { ...options, shouldReturn: false } });\n }\n\n return this.deleteAll<R>({ where, options });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/base/repositories/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/base/repositories/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC","sourcesContent":["export * from './abstract';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/repositories/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/repositories/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC","sourcesContent":["export * from './common';\nexport * from './core';\nexport * from './query-schemas';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/base/repositories/query-schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAyB,MAAM,+BAA+B,CAAC;AAEzF,yaAAya;AACza,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,wVAAwV;AACxV,MAAM,gBAAgB,GAAqB,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE;IAC9D,OAAQ,MAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,EACX,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,WAAW,EACX,YAAY,EACZ,aAAa,EACb,UAAU,EACV,WAAW,GACZ,GAAG,iBAAiB,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAEtD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC;IAC1E,WAAW,EAAE,wDAAwD;CACtE,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC;IAClF,WAAW,EAAE,mBAAmB;CACjC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/base/repositories/query-schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAyB,MAAM,+BAA+B,CAAC;AAEzF,yaAAya;AACza,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,wVAAwV;AACxV,MAAM,gBAAgB,GAAqB,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE;IAC9D,OAAQ,MAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,EACX,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,WAAW,EACX,YAAY,EACZ,aAAa,EACb,UAAU,EACV,WAAW,GACZ,GAAG,iBAAiB,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAEtD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC;IAC1E,WAAW,EAAE,wDAAwD;CACtE,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC;IAClF,WAAW,EAAE,mBAAmB;CACjC,CAAC,CAAC","sourcesContent":["import { buildQuerySchemas, type TSchemaDecorator } from '@venizia/ignis-filter/schemas';\n\n/** Load order is the point: `@hono/zod-openapi` peers on `zod`, so importing it patches `.openapi()` onto the shared `ZodType` prototype. `buildQuerySchemas` runs at module scope below, and ESM evaluates imports first, so the method exists by the time the decorator is called. Without this import the schemas silently build undecorated whenever this module happens to load before anything else pulls in the OpenAPI layer. */\nimport { z } from '@hono/zod-openapi';\n\n/** The schemas themselves live in `@venizia/ignis-filter`, built with plain `zod` so a browser can use them. Documentation metadata is injected here because it is a server concern - `.openapi()` returns a new schema rather than mutating, and three of the decorations sit on inner nodes, so they cannot be applied after the tree is composed. */\nconst openApiDecorator: TSchemaDecorator = (schema, metadata) => {\n return (schema as any).openapi(metadata);\n};\n\nexport const {\n FieldsSchema,\n FilterSchema,\n InclusionSchema,\n LimitSchema,\n OffsetSchema,\n OrderBySchema,\n SkipSchema,\n WhereSchema,\n} = buildQuerySchemas({ decorate: openApiDecorator });\n\n/**\n * The query shape of a route that accepts a `filter`. The framework's own `find`, `findById` and\n * `findOne` use it, and a hand-written route gets the same contract by naming it.\n *\n * `filter` needs no `.optional()` at the call site - {@link FilterSchema} already carries one, so a\n * second is a no-op and so is a trailing `.partial()`.\n *\n * Extend it rather than rebuilding it when a route takes more than `filter`:\n * `FilterQuerySchema.extend({ q: z.string().optional() })`.\n */\nexport const FilterQuerySchema = z.object({ filter: FilterSchema }).openapi({\n description: 'Filter with where, fields, limit, skip, order, include',\n});\n\n/**\n * The query shape of a route that accepts conditions and nothing else - `count` and anything shaped\n * like it. `where` is OPTIONAL here.\n *\n * `updateBy` and `deleteBy` deliberately do not use this. Their `where` is optional in the query\n * because it may ride in the body instead; the handler refuses a request that carries it in neither\n * place - a missing one there rewrites or deletes every row in the table.\n */\nexport const WhereQuerySchema = z.object({ where: WhereSchema.optional() }).openapi({\n description: 'Filter conditions',\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/base/request-context/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/base/request-context/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC","sourcesContent":["export * from './types';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/base/request-context/common/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/base/request-context/common/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { Context } from 'hono';\n\n/**\n * Reads the host's ambient request context, synchronously. `undefined` means THERE IS NO REQUEST\n * CONTEXT - a distinct state from a context that carries no user, and callers act on the difference.\n */\nexport type TRequestContextResolver = () => Context | undefined;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/request-context/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/request-context/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC","sourcesContent":["export * from './common';\nexport * from './registry';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/base/request-context/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAkB3D,MAAM,OAAO,sBAAsB;aACjB,uBAAkB,GAAG,0BAA0B,CAAC;IAEhE,mGAAmG;IAC3F,MAAM,CAAC,IAAI;QACjB,OAAO,cAAc,CAAC,OAAO,CAAC;YAC5B,GAAG,EAAE,sBAAsB,CAAC,kBAAkB;YAC9C,MAAM,EAAE,GAAkB,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;SACvD,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,IAA2C;QAC5D,IAAI,CAAC,IAAI,EAAE,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,aAAa;QAClB,IAAI,CAAC,IAAI,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC;IAClC,CAAC"}
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/base/request-context/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAkB3D,MAAM,OAAO,sBAAsB;aACjB,uBAAkB,GAAG,0BAA0B,CAAC;IAEhE,mGAAmG;IAC3F,MAAM,CAAC,IAAI;QACjB,OAAO,cAAc,CAAC,OAAO,CAAC;YAC5B,GAAG,EAAE,sBAAsB,CAAC,kBAAkB;YAC9C,MAAM,EAAE,GAAkB,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;SACvD,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,IAA2C;QAC5D,IAAI,CAAC,IAAI,EAAE,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,aAAa;QAClB,IAAI,CAAC,IAAI,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC;IAClC,CAAC","sourcesContent":["import { SingletonRealm } from '@/helpers/singleton-realm';\nimport type { Context } from 'hono';\nimport type { TRequestContextResolver } from './common/types';\n\n/**\n * The seam that keeps `hono/context-storage` out of the kernel and the connectors: that module runs\n * `new AsyncLocalStorage()` in its own body, so importing it is a `TypeError` at load in a browser -\n * not a lazy failure at first use. The server layer installs a resolver over it; a host that\n * installs none resolves to `undefined`.\n *\n * `resolve()` returning `undefined` means NO REQUEST CONTEXT. A context that exists but carries no\n * user is a different state, reported by that context's own variables - callers that collapse the\n * two lose the distinction their error handling is built on.\n */\ninterface IResolverSlot {\n resolver: TRequestContextResolver | undefined;\n}\n\nexport class RequestContextRegistry {\n static readonly SINGLETON_REAL_KEY = 'request-context-resolver';\n\n /** Realm-anchored, so a second copy of this package installs the resolver the first copy reads. */\n private static slot(): IResolverSlot {\n return SingletonRealm.resolve({\n key: RequestContextRegistry.SINGLETON_REAL_KEY,\n create: (): IResolverSlot => ({ resolver: undefined }),\n });\n }\n\n static setResolver(opts: { resolver: TRequestContextResolver }): void {\n this.slot().resolver = opts.resolver;\n }\n\n static clearResolver(): void {\n this.slot().resolver = undefined;\n }\n\n static resolve(): Context | undefined {\n return this.slot().resolver?.();\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/base/services/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGzD,MAAM,OAAgB,WAAY,SAAQ,UAAU;IAClD,YAAY,IAA4C;QACtD,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF"}
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/base/services/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGzD,MAAM,OAAgB,WAAY,SAAQ,UAAU;IAClD,YAAY,IAA4C;QACtD,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF","sourcesContent":["import { BaseHelper } from '@venizia/ignis-helpers/core';\nimport type { IService } from './common';\n\nexport abstract class BaseService extends BaseHelper implements IService {\n constructor(opts: { scope: string; identifier?: string }) {\n super(opts);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/base/services/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/base/services/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC","sourcesContent":["export * from './types';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/base/services/common/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/base/services/common/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface IService {}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC","sourcesContent":["export * from './base';\nexport * from './common';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"bindings.js","sourceRoot":"","sources":["../../../src/common/bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAIvD,0DAA0D;AAC1D,MAAM,OAAO,iBAAiB;IAC5B,kGAAkG;aAC1E,iBAAY,GAAG,WAAW,CAAC;aAEnC,cAAS,GAAG,iBAAiB,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;aAEtE,eAAU,GAAG,iBAAiB,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC;aACxE,eAAU,GAAG,iBAAiB,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;aACzE,UAAK,GAAG,iBAAiB,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,QAAQ,E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,aAAa,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC,KAAK;KAC/C,CAAC;IAEF,MAAM,CAAC,OAAO,CAAC,IAAsB;QACnC,MAAM,SAAS,GAAG,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAExD,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,MAAM,QAAQ,CAAC;gBACb,OAAO,EAAE,yEAAyE,IAAI,CAAC,IAAI,cAAc,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;aAC9J,CAAC,CAAC;QACL,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;;AAGH,kFAAkF;AAClF,MAAM,OAAO,YAAa,SAAQ,WAAW;aAC3B,yBAAoB,GAAG,eAAe,CAAC;aACvC,uBAAkB,GAAG,aAAa,CAAC;aACnC,uBAAkB,GAAG,aAAa,CAAC;aACnC,6BAAwB,GAAG,mBAAmB,CAAC;aAE/C,4BAAuB,GAAG,kBAAkB,CAAC;aAE7C,6BAAwB,GAAG,mBAAmB,CAAC;aAC/C,mCAA8B,GAAG,yBAAyB,CAAC","sourcesContent":["import { ArtifactTypes, BindingKeys } from '@/helpers/inversion';\nimport type { TConstValue } from '@venizia/ignis-helpers/common';\nimport { getError } from '@venizia/ignis-helpers/core';\n\nexport type TBindingNamespace = TConstValue<typeof BindingNamespaces>;\n\n/** Static binding namespaces for dependency injection. */\nexport class BindingNamespaces {\n // Declared first: every constant below runs through createNamespace while this class initializes.\n private static readonly NAME_PATTERN = /^[^.\\s]+$/;\n\n static readonly COMPONENT = BindingNamespaces.createNamespace({ name: 'components' });\n\n static readonly DATASOURCE = BindingNamespaces.createNamespace({ name: 'datasources' });\n static readonly REPOSITORY = BindingNamespaces.createNamespace({ name: 'repositories' });\n static readonly MODEL = BindingNamespaces.createNamespace({ name: 'models' });\n\n static readonly SERVICE = BindingNamespaces.createNamespace({ name: 'services' });\n static readonly MIDDLEWARE = BindingNamespaces.createNamespace({ name: 'middlewares' });\n static readonly PROVIDER = BindingNamespaces.createNamespace({ name: 'providers' });\n static readonly CONTROLLER = BindingNamespaces.createNamespace({ name: 'controllers' });\n\n static readonly CONFIGURATION = BindingNamespaces.createNamespace({ name: 'configurations' });\n\n /**\n * A namespace is the leading segment of a binding key, and a binding is tagged with that segment\n * alone - a name carrying '.' or whitespace yields a key no boot step can drain by tag.\n */\n static isValid(opts: { name: string }): boolean {\n const { name } = opts;\n return typeof name === 'string' && BindingNamespaces.NAME_PATTERN.test(name);\n }\n\n static createNamespace(opts: { name: string }) {\n const { name } = opts;\n\n if (!BindingNamespaces.isValid({ name })) {\n throw getError({\n message: `[BindingNamespaces][createNamespace] Invalid namespace | Expected a single non-empty segment without '.' or whitespace | Got: '${name}'`,\n });\n }\n\n return name;\n }\n\n /** A namespace-less key is untagged: no boot step drains it and `doVerify` never sees it. */\n static assertArtifactNamespace(opts: { namespace: string; artifact: string; caller: string }) {\n const { namespace, artifact, caller } = opts;\n\n if (BindingNamespaces.isValid({ name: namespace })) {\n return namespace;\n }\n\n throw getError({\n message: `[${caller}] '${artifact}' declares a binding with no usable namespace | namespace: '${namespace}' | A key with no leading namespace segment carries no tag, so no boot step drains it and 'bootChecks.binding.doVerify' never sees it`,\n });\n }\n}\n\n/** Artifact kind -> namespace. `registerArtifact` gets its namespace from the call site; `@injectable` has only the class. */\nexport class ArtifactNamespaces {\n private static readonly BY_TYPE: Record<string, TBindingNamespace> = {\n [ArtifactTypes.CONFIGURATION]: BindingNamespaces.CONFIGURATION,\n [ArtifactTypes.COMPONENT]: BindingNamespaces.COMPONENT,\n [ArtifactTypes.CONTROLLER]: BindingNamespaces.CONTROLLER,\n [ArtifactTypes.SERVICE]: BindingNamespaces.SERVICE,\n [ArtifactTypes.REPOSITORY]: BindingNamespaces.REPOSITORY,\n [ArtifactTypes.DATASOURCE]: BindingNamespaces.DATASOURCE,\n [ArtifactTypes.MODEL]: BindingNamespaces.MODEL,\n };\n\n static resolve(opts: { type: string }): TBindingNamespace {\n const namespace = ArtifactNamespaces.BY_TYPE[opts.type];\n\n if (namespace === undefined) {\n throw getError({\n message: `[ArtifactNamespaces][resolve] No namespace for artifact type | type: '${opts.type}' | known: ${Object.keys(ArtifactNamespaces.BY_TYPE).join(', ')}`,\n });\n }\n\n return namespace;\n }\n}\n\n/** Core binding keys for fundamental application components and configuration. */\nexport class CoreBindings extends BindingKeys {\n static readonly APPLICATION_INSTANCE = '@app/instance';\n static readonly APPLICATION_SERVER = '@app/server';\n static readonly APPLICATION_CONFIG = '@app/config';\n static readonly APPLICATION_PROJECT_ROOT = '@app/project_root';\n\n static readonly APPLICATION_ROOT_ROUTER = '@app/router/root';\n\n static readonly APPLICATION_ENVIRONMENTS = '@app/environments';\n static readonly APPLICATION_MIDDLEWARE_OPTIONS = '@app/middleware_options';\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../../src/common/error-codes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,kSAAkS;AAClS,MAAM,KAAK,GAAG,CAAC,KAAoB,EAAU,EAAE;IAC7C,OAAO,WAAW,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACtC,CAAC,CAAC;AAEF,oFAAoF;AACpF,MAAM,OAAO,cAAc;aACT,kBAAa,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;aACjD,sBAAiB,GAAG,KAAK,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;;AAKtE,qGAAqG;AACrG,MAAM,OAAO,gBAAgB;aACX,cAAS,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,eAAe,EAAE,WAAW,CAAC,CAAC,CAAC;aAC1D,mBAAc,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,eAAe,EAAE,gBAAgB,CAAC,CAAC,CAAC;aACpE,iBAAY,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC,CAAC;aAChE,2BAAsB,GAAG,KAAK,CAAC;QAC7C,MAAM;QACN,eAAe;QACf,wBAAwB;KACzB,CAAC,CAAC"}
1
+ {"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../../src/common/error-codes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,kSAAkS;AAClS,MAAM,KAAK,GAAG,CAAC,KAAoB,EAAU,EAAE;IAC7C,OAAO,WAAW,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACtC,CAAC,CAAC;AAEF,oFAAoF;AACpF,MAAM,OAAO,cAAc;aACT,kBAAa,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;aACjD,sBAAiB,GAAG,KAAK,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;;AAKtE,qGAAqG;AACrG,MAAM,OAAO,gBAAgB;aACX,cAAS,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,eAAe,EAAE,WAAW,CAAC,CAAC,CAAC;aAC1D,mBAAc,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,eAAe,EAAE,gBAAgB,CAAC,CAAC,CAAC;aACpE,iBAAY,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC,CAAC;aAChE,2BAAsB,GAAG,KAAK,CAAC;QAC7C,MAAM;QACN,eAAe;QACf,wBAAwB;KACzB,CAAC,CAAC","sourcesContent":["import type { TConstValue } from '@venizia/ignis-helpers/common';\nimport { MessageCode } from '@venizia/ignis-helpers/core';\n\n/** Every machine-readable code the framework raises - clients branch on the code, so these strings ARE a public contract. Built via {@link MessageCode.build}, which rejects a malformed code at import time; `core.*` and `database.*` belong to IGNIS, applications use their own namespace. */\nconst build = (parts: Array<string>): string => {\n return MessageCode.build({ parts });\n};\n\n/** Framework-level failures that are not specific to one connector or component. */\nexport class CoreErrorCodes {\n static readonly NOT_SUPPORTED = build(['core', 'not_supported']);\n static readonly DATABASE_CONFLICT = build(['database', 'conflict']);\n}\n\nexport type TCoreErrorCode = TConstValue<typeof CoreErrorCodes>;\n\n/** Failures raised by the search connectors (Typesense, Meilisearch) and the neutral search tier. */\nexport class SearchErrorCodes {\n static readonly NOT_FOUND = build(['core', 'search_engine', 'not_found']);\n static readonly ALREADY_EXISTS = build(['core', 'search_engine', 'already_exists']);\n static readonly TASK_TIMEOUT = build(['core', 'search_engine', 'task_timeout']);\n static readonly DEPENDENCY_UNAVAILABLE = build([\n 'core',\n 'search_engine',\n 'dependency_unavailable',\n ]);\n}\n\nexport type TSearchErrorCode = TConstValue<typeof SearchErrorCodes>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC","sourcesContent":["export * from './bindings';\nexport * from './error-codes';\nexport * from './statuses';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/common/statuses/common.ts"],"names":[],"mappings":"AAAA,mHAAmH;AACnH,MAAM,OAAO,QAAQ;IACnB,gBAAgB;aACA,YAAO,GAAG,aAAa,CAAC;aACxB,UAAK,GAAG,WAAW,CAAC;IAEpC,mDAAmD;aACnC,QAAG,GAAG,SAAS,CAAC;aAChB,WAAM,GAAG,YAAY,CAAC;aACtB,cAAS,GAAG,eAAe,CAAC;aAC5B,YAAO,GAAG,aAAa,CAA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CAAC;IACrC,CAAC;;AAGH,uCAAuC;AACvC,MAAM,OAAO,cAAc;aACT,YAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;aAC3B,cAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;aAC/B,gBAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;aACnC,YAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;aAC3B,aAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;aAE7B,eAAU,GAAG,IAAI,GAAG,CAAC;QACnC,IAAI,CAAC,OAAO;QACZ,IAAI,CAAC,SAAS;QACd,IAAI,CAAC,WAAW;QAChB,IAAI,CAAC,OAAO;QACZ,IAAI,CAAC,QAAQ;KACd,CAAC,CAAC;IAEH,MAAM,CAAC,OAAO,CAAC,MAAc;QAC3B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC","sourcesContent":["/** Application statuses categorized by lifecycle phase (initial, pending, active, completed, inactive, failed). */\nexport class Statuses {\n // 0xx - Initial\n static readonly UNKNOWN = '000_UNKNOWN';\n static readonly DRAFT = '001_DRAFT';\n\n // 1xx - Pending/Waiting (awaiting action/decision)\n static readonly NEW = '100_NEW';\n static readonly QUEUED = '101_QUEUED';\n static readonly SCHEDULED = '102_SCHEDULED';\n static readonly PENDING = '103_PENDING';\n static readonly IN_REVIEW = '104_IN_REVIEW';\n\n // 2xx - Active/Running (in progress)\n static readonly ENABLED = '200_ENABLED';\n static readonly ACTIVATED = '201_ACTIVATED';\n static readonly RUNNING = '202_RUNNING';\n static readonly PROCESSING = '203_PROCESSING';\n static readonly SENT = '204_SENT';\n static readonly RECEIVED = '205_RECEIVED';\n\n // 3xx - Completed (positive terminal)\n static readonly PARTIAL = '300_PARTIAL';\n static readonly APPROVED = '301_APPROVED';\n static readonly SUCCESS = '302_SUCCESS';\n static readonly COMPLETED = '303_COMPLETED';\n static readonly SETTLED = '304_SETTLED';\n static readonly CONFIRMED = '305_CONFIRMED';\n\n // 4xx - Inactive (negative, reversible)\n static readonly DISABLED = '400_DISABLED';\n static readonly DEACTIVATED = '401_DEACTIVATED';\n static readonly SUSPENDED = '402_SUSPENDED';\n static readonly BLOCKED = '403_BLOCKED';\n static readonly CLOSED = '404_CLOSED';\n static readonly ARCHIVED = '405_ARCHIVED';\n static readonly PAUSED = '406_PAUSED';\n static readonly REVOKED = '407_REVOKED';\n static readonly REFUNDED = '408_REFUNDED';\n\n // 5xx - Failed/Error (negative terminal, final)\n static readonly FAIL = '500_FAIL';\n static readonly EXPIRED = '501_EXPIRED';\n static readonly TIMEOUT = '502_TIMEOUT';\n static readonly SKIPPED = '503_SKIPPED';\n static readonly ABORTED = '504_ABORTED';\n static readonly CANCELLED = '505_CANCELLED';\n static readonly DELETED = '506_DELETED';\n static readonly REJECTED = '507_REJECTED';\n\n static readonly INITIAL_SCHEME_SET = new Set([this.UNKNOWN, this.DRAFT]);\n\n static readonly PENDING_SCHEME_SET = new Set([\n this.NEW,\n this.QUEUED,\n this.SCHEDULED,\n this.PENDING,\n this.IN_REVIEW,\n ]);\n\n static readonly ACTIVE_SCHEME_SET = new Set([\n this.ENABLED,\n this.ACTIVATED,\n this.RUNNING,\n this.PROCESSING,\n this.SENT,\n this.RECEIVED,\n ]);\n\n static readonly COMPLETED_SCHEME_SET = new Set([\n this.COMPLETED,\n this.SUCCESS,\n this.PARTIAL,\n this.SETTLED,\n this.APPROVED,\n this.CONFIRMED,\n ]);\n\n static readonly INACTIVE_SCHEME_SET = new Set([\n this.DISABLED,\n this.DEACTIVATED,\n this.SUSPENDED,\n this.BLOCKED,\n this.CLOSED,\n this.ARCHIVED,\n this.PAUSED,\n this.REVOKED,\n this.REFUNDED,\n ]);\n\n static readonly FAILED_SCHEME_SET = new Set([\n this.FAIL,\n this.EXPIRED,\n this.TIMEOUT,\n this.SKIPPED,\n this.ABORTED,\n this.CANCELLED,\n this.DELETED,\n this.REJECTED,\n ]);\n\n static readonly SCHEME_SET = new Set([\n ...this.INITIAL_SCHEME_SET,\n ...this.PENDING_SCHEME_SET,\n ...this.ACTIVE_SCHEME_SET,\n ...this.COMPLETED_SCHEME_SET,\n ...this.INACTIVE_SCHEME_SET,\n ...this.FAILED_SCHEME_SET,\n ]);\n\n static isInitial(status: string): boolean {\n return this.INITIAL_SCHEME_SET.has(status);\n }\n\n static isPending(status: string): boolean {\n return this.PENDING_SCHEME_SET.has(status);\n }\n\n static isActive(status: string): boolean {\n return this.ACTIVE_SCHEME_SET.has(status);\n }\n\n static isCompleted(status: string): boolean {\n return this.COMPLETED_SCHEME_SET.has(status);\n }\n\n static isInactive(status: string): boolean {\n return this.INACTIVE_SCHEME_SET.has(status);\n }\n\n static isFailed(status: string): boolean {\n return this.FAILED_SCHEME_SET.has(status);\n }\n\n static isValid(status: string): boolean {\n return this.SCHEME_SET.has(status);\n }\n}\n\n/** Common reusable entity statuses. */\nexport class CommonStatuses {\n static readonly UNKNOWN = Statuses.UNKNOWN;\n static readonly ACTIVATED = Statuses.ACTIVATED;\n static readonly DEACTIVATED = Statuses.DEACTIVATED;\n static readonly BLOCKED = Statuses.BLOCKED;\n static readonly ARCHIVED = Statuses.ARCHIVED;\n\n static readonly SCHEME_SET = new Set([\n this.UNKNOWN,\n this.ACTIVATED,\n this.DEACTIVATED,\n this.BLOCKED,\n this.ARCHIVED,\n ]);\n\n static isValid(scheme: string): boolean {\n return this.SCHEME_SET.has(scheme);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/statuses/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/statuses/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC","sourcesContent":["export * from './common';\nexport * from './migration';\nexport * from './role';\nexport * from './user';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"migration.js","sourceRoot":"","sources":["../../../../src/common/statuses/migration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,mCAAmC;AACnC,MAAM,OAAO,iBAAiB;aACZ,YAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;aAC3B,YAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;aAC3B,SAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;aAErB,eAAU,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAE9E,MAAM,CAAC,OAAO,CAAC,MAAc;QAC3B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC"}
1
+ {"version":3,"file":"migration.js","sourceRoot":"","sources":["../../../../src/common/statuses/migration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,mCAAmC;AACnC,MAAM,OAAO,iBAAiB;aACZ,YAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;aAC3B,YAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;aAC3B,SAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;aAErB,eAAU,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAE9E,MAAM,CAAC,OAAO,CAAC,MAAc;QAC3B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC","sourcesContent":["import { Statuses } from './common';\n\n/** Database migration statuses. */\nexport class MigrationStatuses {\n static readonly UNKNOWN = Statuses.UNKNOWN;\n static readonly SUCCESS = Statuses.SUCCESS;\n static readonly FAIL = Statuses.FAIL;\n\n static readonly SCHEME_SET = new Set([this.UNKNOWN, this.SUCCESS, this.FAIL]);\n\n static isValid(scheme: string): boolean {\n return this.SCHEME_SET.has(scheme);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"role.js","sourceRoot":"","sources":["../../../../src/common/statuses/role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,qBAAqB;AACrB,MAAM,OAAO,YAAa,SAAQ,cAAc;CAAG"}
1
+ {"version":3,"file":"role.js","sourceRoot":"","sources":["../../../../src/common/statuses/role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,qBAAqB;AACrB,MAAM,OAAO,YAAa,SAAQ,cAAc;CAAG","sourcesContent":["import { CommonStatuses } from './common';\n\n/** Role statuses. */\nexport class RoleStatuses extends CommonStatuses {}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/common/statuses/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,qBAAqB;AACrB,MAAM,OAAO,YAAa,SAAQ,cAAc;CAAG;AAEnD,yCAAyC;AACzC,MAAM,OAAO,SAAS;aACJ,WAAM,GAAG,QAAQ,CAAC;aAClB,WAAM,GAAG,QAAQ,CAAC;aAElB,eAAU,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAEjE,MAAM,CAAC,OAAO,CAAC,OAAe;QAC5B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC"}
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/common/statuses/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,qBAAqB;AACrB,MAAM,OAAO,YAAa,SAAQ,cAAc;CAAG;AAEnD,yCAAyC;AACzC,MAAM,OAAO,SAAS;aACJ,WAAM,GAAG,QAAQ,CAAC;aAClB,WAAM,GAAG,QAAQ,CAAC;aAElB,eAAU,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAEjE,MAAM,CAAC,OAAO,CAAC,OAAe;QAC5B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC","sourcesContent":["import { CommonStatuses } from './common';\n\n/** User statuses. */\nexport class UserStatuses extends CommonStatuses {}\n\n/** User types within the application. */\nexport class UserTypes {\n static readonly SYSTEM = 'SYSTEM';\n static readonly LINKED = 'LINKED';\n\n static readonly SCHEME_SET = new Set([this.SYSTEM, this.LINKED]);\n\n static isValid(orgType: string): boolean {\n return this.SCHEME_SET.has(orgType);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC","sourcesContent":["export * from './inversion';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/helpers/inversion/common/constants.ts"],"names":[],"mappings":"AAAA,iIAAiI;AACjI,MAAM,OAAO,aAAa;aACR,kBAAa,GAAG,eAAe,CAAC;aAChC,cAAS,GAAG,WAAW,CAAC;aACxB,eAAU,GAAG,YAAY,CAAC;aAC1B,YAAO,GAAG,SAAS,CAAC;aACpB,eAAU,GAAG,YAAY,CAAC;aAC1B,eAAU,GAAG,YAAY,CAAC;aAC1B,UAAK,GAAG,OAAO,CAAC;aAEhB,eAAU,GAAG,IAAI,GAAG,CAAS;QAC3C,IAAI,CAAC,aAAa;QAClB,IAAI,CAAC,SAAS;QACd,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,OAAO;QACZ,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,KAAK;KACX,CAAC,CAAC;IAEH,MAAM,CAAC,OAAO,CAAC,KAAa;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/helpers/inversion/common/constants.ts"],"names":[],"mappings":"AAAA,iIAAiI;AACjI,MAAM,OAAO,aAAa;aACR,kBAAa,GAAG,eAAe,CAAC;aAChC,cAAS,GAAG,WAAW,CAAC;aACxB,eAAU,GAAG,YAAY,CAAC;aAC1B,YAAO,GAAG,SAAS,CAAC;aACpB,eAAU,GAAG,YAAY,CAAC;aAC1B,eAAU,GAAG,YAAY,CAAC;aAC1B,UAAK,GAAG,OAAO,CAAC;aAEhB,eAAU,GAAG,IAAI,GAAG,CAAS;QAC3C,IAAI,CAAC,aAAa;QAClB,IAAI,CAAC,SAAS;QACd,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,OAAO;QACZ,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,KAAK;KACX,CAAC,CAAC;IAEH,MAAM,CAAC,OAAO,CAAC,KAAa;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC","sourcesContent":["/** What a decorated class is to the application - the one fact the artifact generator and the registration methods both read. */\nexport class ArtifactTypes {\n static readonly CONFIGURATION = 'configuration';\n static readonly COMPONENT = 'component';\n static readonly CONTROLLER = 'controller';\n static readonly SERVICE = 'service';\n static readonly REPOSITORY = 'repository';\n static readonly DATASOURCE = 'datasource';\n static readonly MODEL = 'model';\n\n static readonly SCHEME_SET = new Set<string>([\n this.CONFIGURATION,\n this.COMPONENT,\n this.CONTROLLER,\n this.SERVICE,\n this.REPOSITORY,\n this.DATASOURCE,\n this.MODEL,\n ]);\n\n static isValid(value: string): boolean {\n return this.SCHEME_SET.has(value);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/helpers/inversion/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/helpers/inversion/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC","sourcesContent":["export * from './constants';\nexport * from './keys';\nexport * from './relation-builder';\nexport * from './types';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../src/helpers/inversion/common/keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzE,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,aAAa,EAAE;IAC3D,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC;IAC1C,qBAAqB,EAAE,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC;IAChE,qBAAqB,EAAE,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC;IAEhE,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC;IAE1C,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC;CACvC,CAAC,CAAC"}
1
+ {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../src/helpers/inversion/common/keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzE,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,aAAa,EAAE;IAC3D,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC;IAC1C,qBAAqB,EAAE,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC;IAChE,qBAAqB,EAAE,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC;IAEhE,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC;IAE1C,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC;CACvC,CAAC,CAAC","sourcesContent":["import { MetadataKeys as _MetadataKeys } from '@venizia/ignis-inversion';\n\nexport const MetadataKeys = Object.assign({}, _MetadataKeys, {\n CONTROLLER: Symbol.for('ignis:controller'),\n CONTROLLER_REST_ROUTE: Symbol.for('ignis:controller:rest:route'),\n CONTROLLER_GRPC_ROUTE: Symbol.for('ignis:controller:grpc:route'),\n\n MODEL: Symbol.for('ignis:model'),\n DATASOURCE: Symbol.for('ignis:datasource'),\n REPOSITORY: Symbol.for('ignis:repository'),\n\n ARTIFACT: Symbol.for('ignis:artifact'),\n PROVIDES: Symbol.for('ignis:provides'),\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"relation-builder.js","sourceRoot":"","sources":["../../../../../src/helpers/inversion/common/relation-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAiBvD,MAAM,OAAO,uBAAuB;aAClB,uBAAkB,GAAG,kBAAkB,CAAC;IAExD,uNAAuN;IAC/M,MAAM,CAAC,IAAI;QACjB,OAAO,cAAc,CAAC,OAAO,CAAC;YAC5B,GAAG,EAAE,uBAAuB,CAAC,kBAAkB;YAC/C,MAAM,EAAE,GAAiB,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;SACrD,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,IAAmC;QAC5C,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC;IAC7B,CAAC"}
1
+ {"version":3,"file":"relation-builder.js","sourceRoot":"","sources":["../../../../../src/helpers/inversion/common/relation-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAiBvD,MAAM,OAAO,uBAAuB;aAClB,uBAAkB,GAAG,kBAAkB,CAAC;IAExD,uNAAuN;IAC/M,MAAM,CAAC,IAAI;QACjB,OAAO,cAAc,CAAC,OAAO,CAAC;YAC5B,GAAG,EAAE,uBAAuB,CAAC,kBAAkB;YAC/C,MAAM,EAAE,GAAiB,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;SACrD,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,IAAmC;QAC5C,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC;IAC7B,CAAC","sourcesContent":["import { SingletonRealm } from '../../singleton-realm';\n\n/** Engine-neutral: the registry is shared across connectors, so each connector narrows at its own call site. */\nexport type TRelationBuilder = (opts: {\n source: unknown;\n relations: unknown;\n}) => { relations?: unknown } | undefined;\n\n/**\n * The relational connector installs itself here from its own module body. The mixin must not import\n * the connector: one value import of `createRelations` drags `drizzle-orm` into every graph that\n * uses `@repository`.\n */\ninterface IBuilderSlot {\n builder: TRelationBuilder | undefined;\n}\n\nexport class RelationBuilderRegistry {\n static readonly SINGLETON_REAL_KEY = 'relation-builder';\n\n /** Realm-anchored like the other cross-package registries: connectors installs into one copy of this package and the `@repository` mixin resolves from the other, which throws \"no relation builder is registered\". */\n private static slot(): IBuilderSlot {\n return SingletonRealm.resolve({\n key: RelationBuilderRegistry.SINGLETON_REAL_KEY,\n create: (): IBuilderSlot => ({ builder: undefined }),\n });\n }\n\n static set(opts: { builder: TRelationBuilder }): void {\n this.slot().builder = opts.builder;\n }\n\n static resolve(): TRelationBuilder | undefined {\n return this.slot().builder;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"artifact.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/common/types/artifact.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"artifact.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/common/types/artifact.ts"],"names":[],"mappings":"","sourcesContent":["import type { TClass, TConstValue, ValueOrPromise } from '@venizia/ignis-helpers/common';\nimport type { TBindingScope } from '@venizia/ignis-inversion';\nimport { type ArtifactTypes } from '../constants';\n\n/** Decorator target for any constructable class (includes Function for ClassDecorator). */\nexport type TDecoratorTarget<T = unknown> = TClass<T> | Function;\n\nexport type TArtifactType = TConstValue<typeof ArtifactTypes>;\n\n/** Decides at registration time whether the class is registered at all. Sync or async; runs before `preConfigure`, so it may read config and env, never another artifact's binding. */\nexport type TArtifactCondition<ApplicationType = unknown> = (opts: {\n application: ApplicationType;\n}) => ValueOrPromise<boolean>;\n\n/** Registration defaults a class carries for itself; an explicit `TMixinOpts` at the call site still wins. */\nexport interface IArtifactRegistrationOptions<ApplicationType = unknown> {\n binding?: { namespace: string; key: string };\n allowOverride?: boolean;\n scope?: TBindingScope;\n /** Lower registers first within its kind. Default 0; ties keep index order. */\n order?: number;\n when?: TArtifactCondition<ApplicationType>;\n /** Topological ordering for configurations: must run after these configuration classes. */\n after?: ReadonlyArray<TClass<unknown>>;\n}\n\nexport interface IArtifactMetadata<\n ApplicationType = unknown,\n> extends IArtifactRegistrationOptions<ApplicationType> {\n type: TArtifactType;\n}\n\n/** One `@provide` method: the key it binds, and the binding scope of the value (default SINGLETON). */\nexport interface IProvideMetadata {\n methodName: string | symbol;\n key: string;\n scope?: TBindingScope;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/common/types/controller.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/common/types/controller.ts"],"names":[],"mappings":"","sourcesContent":["import type { TAuthMode, TAuthStrategy } from '@/base/auth/authenticate/common';\nimport type { IAuthorizationSpec } from '@/base/auth/authorize/common/types';\nimport type { ControllerTransports } from '@/base/controllers/common/constants';\nimport type { TGrpcMethod } from '@venizia/ignis-helpers/common';\nimport type { IArtifactRegistrationOptions } from './artifact';\n\ninterface IBaseControllerMetadata extends IArtifactRegistrationOptions {\n path: string;\n tags?: string[];\n description?: string;\n}\n\nexport interface IRestControllerMetadata extends IBaseControllerMetadata {\n transport?: typeof ControllerTransports.REST;\n}\n\nexport interface IGrpcControllerMetadata<ServiceType = unknown> extends IBaseControllerMetadata {\n transport: typeof ControllerTransports.GRPC;\n service: ServiceType;\n}\n\nexport type TControllerMetadata = IRestControllerMetadata | IGrpcControllerMetadata;\n\nexport interface IRpcMetadata {\n /** Proto method name. */\n name: string;\n\n /** RPC method type (unary, server_streaming, etc.). */\n method: TGrpcMethod;\n\n /** Authentication config for this RPC method. */\n authenticate?: { strategies?: TAuthStrategy[]; mode?: TAuthMode };\n\n /** Authorization spec(s) for this RPC method. */\n authorize?: IAuthorizationSpec | IAuthorizationSpec[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/common/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/common/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC","sourcesContent":["export * from './artifact';\nexport * from './controller';\nexport * from './injection';\nexport * from './model';\nexport * from './persistence';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"injection.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/common/types/injection.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"injection.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/common/types/injection.ts"],"names":[],"mappings":"","sourcesContent":["import {\n type IInjectMetadata as _IInjectMetadata,\n type IPropertyMetadata as _IPropertyMetadata,\n} from '@venizia/ignis-inversion';\n\nexport interface IPropertyMetadata extends _IPropertyMetadata {}\n\nexport interface IInjectMetadata extends _IInjectMetadata {}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/common/types/model.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/common/types/model.ts"],"names":[],"mappings":"","sourcesContent":["import type { AbstractEntity } from '@/base/models';\nimport type {\n ScopeFilters,\n TFilter,\n TScopeFilterMissingBehavior,\n TWhere,\n} from '@/base/repositories';\nimport type { TClass, TNullable, TValueOrResolver } from '@venizia/ignis-helpers/common';\nimport type { IArtifactRegistrationOptions } from './artifact';\n\nexport interface IModelAuthorizeSettings {\n /** The authorization principal name (resource/subject) for this model. */\n principal: string;\n /** Extensible - consumers can add any extra authorization metadata. */\n [extra: string | symbol]: any;\n}\n\n/**\n * Row-scope resolver for `@model` settings.scopeFilter - resolved per query, so it can depend on\n * the current request (tenant, org, membership). Framework-internal escape hatches aside, nothing\n * short of removing this setting from the model turns scoping off.\n */\nexport interface IScopeFilterSettings {\n /**\n * Returns the scope `where`; `ScopeFilters.UNRESTRICTED` to apply no scope for THIS call (an\n * internal operator, a caller the application has decided sees everything); or null/undefined\n * when this caller's scope cannot be determined at all.\n */\n resolve: () => TNullable<TWhere> | typeof ScopeFilters.UNRESTRICTED;\n\n /**\n * What `applyScopeFilter` does when `resolve()` returns null/undefined - no request context, no\n * tenant, a background job. Defaults to `deny`: an unresolved scope matches zero rows, never\n * every row. `allow` is an explicit, reviewed opt-out for migrations and background jobs, declared\n * per MODEL - it cannot express a per-USER bypass; use `ScopeFilters.UNRESTRICTED` for that.\n */\n onMissing?: TScopeFilterMissingBehavior;\n}\n\nexport interface IModelSettings {\n /** Properties excluded from all query results at SQL level. */\n hiddenProperties?: string[];\n\n /** Default filter auto-applied to all repository operations. Bypassable via shouldSkipDefaultFilter. */\n defaultFilter?: TFilter;\n\n /**\n * Row scope: ANDed into every read and write whose scope is expressible as a filter clause, and\n * NOT removable by `shouldSkipDefaultFilter`. Resolved per query, so it can depend on the current\n * request. Ownership resolved per row or through a polymorphic reference is NOT expressible here -\n * that check is still the application's to perform.\n *\n * Relational repositories only - a search-backed model (Typesense, Meilisearch) never reads\n * this setting, so mirroring a scoped entity into a search index needs its own query-time scope.\n */\n scopeFilter?: IScopeFilterSettings;\n\n /** Default row limit when a query omits `limit`. Must be a positive integer. Falls back to DEFAULT_LIMIT (10). */\n defaultLimit?: number;\n\n /**\n * Largest `limit` a CALLER may ask for. Must be a positive integer. Falls back to\n * DEFAULT_MAX_LIMIT (1000).\n *\n * Policy, not capacity - the engine's own ceiling sits far above it. The number is chosen so\n * that reaching it means the caller is doing something unusual, and raising it is how a model\n * says so deliberately.\n */\n maxLimit?: number;\n\n /** Authorization settings for this model (principal name, etc.). */\n authorize?: IModelAuthorizeSettings;\n}\n\nexport interface IModelMetadata extends IArtifactRegistrationOptions {\n type: 'entity' | 'view';\n tableName?: string;\n skipMigrate?: boolean;\n settings?: IModelSettings;\n}\n\nexport interface IEntityStatics {\n schema?: unknown;\n relations?: TValueOrResolver<Array<unknown>>;\n}\n\nexport type TModelClass<Model extends AbstractEntity = AbstractEntity> = TClass<Model> &\n IEntityStatics;\n\n/** Decorator target for model classes (supports both strongly typed and ClassDecorator patterns). */\nexport type TDecoratorModelTarget<Model extends AbstractEntity = AbstractEntity> =\n | TModelClass<Model>\n | (Function & IEntityStatics);\n\nexport interface IModelRegistryEntry<Model extends AbstractEntity = AbstractEntity> {\n target: TValueOrResolver<TClass<Model>>;\n metadata: IModelMetadata;\n schema: unknown;\n\n /** Lazy resolver to avoid circular deps. Resolved when DataSource builds schema. */\n relationsResolver?: TValueOrResolver<Array<unknown>>;\n\n /** Cache populated on first buildSchema() call. */\n _builtRelations?: unknown;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"persistence.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/common/types/persistence.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"persistence.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/common/types/persistence.ts"],"names":[],"mappings":"","sourcesContent":["import type { IDataSource, TDataSourceDriverClass } from '@/base/datasources';\nimport type { AbstractEntity } from '@/base/models';\nimport type {\n IRepository,\n RepositoryTypes,\n TRepositoryOperationScope,\n TRepositoryType,\n} from '@/base/repositories';\nimport type { TClass, TValueOrResolver } from '@venizia/ignis-helpers/common';\nimport type { IArtifactRegistrationOptions, TDecoratorTarget } from './artifact';\n\nexport interface IDataSourceMetadata extends IArtifactRegistrationOptions {\n driver?: TDataSourceDriverClass;\n autoDiscovery?: boolean;\n}\n\n/** Members every repository type shares. */\nexport interface IRepositoryMetadataBase<\n DataSource extends IDataSource = IDataSource,\n> extends IArtifactRegistrationOptions {\n dataSource: string | TValueOrResolver<TClass<DataSource>>;\n operationScope?: TRepositoryOperationScope;\n}\n\n/** `RepositoryTypes.MODEL` - the default when `type` is omitted - a model this application declares. */\nexport interface IRepositoryMetadata<\n Model extends AbstractEntity = AbstractEntity,\n DataSource extends IDataSource = IDataSource,\n> extends IRepositoryMetadataBase<DataSource> {\n type?: typeof RepositoryTypes.MODEL;\n model: TValueOrResolver<TClass<Model>>;\n}\n\n/** `RepositoryTypes.REMOTE` - data behind another service's API: a datasource and no model. */\nexport interface IRemoteRepositoryMetadata<\n DataSource extends IDataSource = IDataSource,\n> extends IRepositoryMetadataBase<DataSource> {\n type: typeof RepositoryTypes.REMOTE;\n model?: never;\n}\n\n/** What `@repository` accepts, discriminated on `type`. */\nexport type TRepositoryMetadata<\n Model extends AbstractEntity = AbstractEntity,\n DataSource extends IDataSource = IDataSource,\n> = IRepositoryMetadata<Model, DataSource> | IRemoteRepositoryMetadata<DataSource>;\n\n/** Resolved repository metadata after lazy evaluation. */\nexport interface IResolvedRepositoryMetadata<\n Model extends AbstractEntity = AbstractEntity,\n DataSource extends IDataSource = IDataSource,\n> {\n type?: TRepositoryType;\n model?: TClass<Model>;\n dataSource?: string | TClass<DataSource>;\n operationScope?: TRepositoryOperationScope;\n}\n\nexport interface IRepositoryBinding<\n Model extends AbstractEntity = AbstractEntity,\n DataSource extends IDataSource = IDataSource,\n> {\n model: TValueOrResolver<TClass<Model>>;\n repository: TValueOrResolver<TDecoratorTarget<IRepository>>;\n dataSource: TValueOrResolver<string | TDecoratorTarget<DataSource>>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/helpers/inversion/container.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,OAAO,SAAU,SAAQ,WAAW;IAGxC,qYAAqY;IACrY,YAAY,IAAwB;QAClC,KAAK,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;QAChD,IAAI,CAAC,MAAM,GAAG,IAAI,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;IACrF,CAAC;IAEQ,mBAAmB;QAC1B,OAAO,gBAAgB,CAAC,WAAW,EAAE,CAAC;IACxC,CAAC;CACF"}
1
+ {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/helpers/inversion/container.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,OAAO,SAAU,SAAQ,WAAW;IAGxC,qYAAqY;IACrY,YAAY,IAAwB;QAClC,KAAK,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;QAChD,IAAI,CAAC,MAAM,GAAG,IAAI,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;IACrF,CAAC;IAEQ,mBAAmB;QAC1B,OAAO,gBAAgB,CAAC,WAAW,EAAE,CAAC;IACxC,CAAC;CACF","sourcesContent":["import type { ILogger } from '@venizia/ignis-helpers/core';\nimport { BaseHelper } from '@venizia/ignis-helpers/core';\nimport type { MetadataRegistry as _MetadataRegistry } from '@venizia/ignis-inversion';\nimport { Container as DIContainer } from '@venizia/ignis-inversion';\nimport { MetadataRegistry } from './registry';\n\nexport class Container extends DIContainer {\n logger: ILogger;\n\n /** Resolved through `BaseHelper`/`LoggerResolver`, never `LoggerFactory` directly - the resolver's console fallback is what keeps this constructor (and everything that extends it) browser-pure. A server host still gets the real provider: importing `LoggerFactory` as a value anywhere in the process (core's own `helpers/base-helper.ts` already does) installs it as the active resolver. */\n constructor(opts?: { scope: string }) {\n super({ scope: opts?.scope ?? Container.name });\n this.logger = new BaseHelper({ scope: opts?.scope ?? Container.name }).getLogger();\n }\n\n override getMetadataRegistry(): _MetadataRegistry {\n return MetadataRegistry.getInstance();\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/helpers/inversion/index.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,OAAO,EACL,OAAO,EACP,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,mBAAmB,GAOpB,MAAM,0BAA0B,CAAC;AAElC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/helpers/inversion/index.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,OAAO,EACL,OAAO,EACP,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,mBAAmB,GAOpB,MAAM,0BAA0B,CAAC;AAElC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC","sourcesContent":["// DI-specific symbols only available in inversion (not in helpers)\nexport {\n Binding,\n BindingKeys,\n BindingScopes,\n BindingValueTypes,\n isClass,\n isClassProvider,\n resolveInjectTarget,\n type IProvider,\n type TBindingKey,\n type TBindingScope,\n type TBindingValueType,\n type IBindingTag,\n type TInjectTarget,\n} from '@venizia/ignis-inversion';\n\nexport * from './common';\nexport * from './container';\nexport * from './registry';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"artifact.mixin.js","sourceRoot":"","sources":["../../../../../src/helpers/inversion/mixins/artifact.mixin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,SAAoB,EACpB,EAAE;IACF,OAAO,KAAM,SAAQ,SAAS;QAAvB;;YACL,mNAAmN;YACnN,wBAAmB,GAAa,EAAE,CAAC;QA8CrC,CAAC;QA5CC,qBAAqB,CAAiC,IAAwB;YAC5E,IAAI,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;gBACnD,OAAO;YACT,CAAC;YAED,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC7C,CAAC;QAED,sBAAsB;YACpB,OAAO,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC,CAAC;QACvC,CAAC;QAED,4GAA4G;QAC5G,wBAAwB;YACtB,IAAI,CAAC,mBAAmB,GAAG,EAAE,CAAC;QAChC,CAAC;QAED,mBAAmB,CAA4D,IAG9E;YACC,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5E,CAAC;QAED,gFAAgF;QAChF,mBAAmB,CAAiC,IAEnD;YACC,OAAO,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACpE,CAAC;QAED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AQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5E,CAAC;QAED,gFAAgF;QAChF,mBAAmB,CAAiC,IAEnD;YACC,OAAO,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACpE,CAAC;QAED,kBAAkB,CAAiC,IAGlD;YACC,MAAM,OAAO,GAAG,IAAI,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;YACjE,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1F,CAAC;QAED,kBAAkB,CAAiC,IAElD;YACC,OAAO,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QAC1E,CAAC;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { TMixinTarget } from '@venizia/ignis-helpers/common';\nimport type { MetadataRegistry as _MetadataRegistry } from '@venizia/ignis-inversion';\nimport { MetadataKeys } from '../common/keys';\nimport type { IArtifactMetadata, IProvideMetadata } from '../common/types';\n\nexport const ArtifactMetadataMixin = <BaseClass extends TMixinTarget<_MetadataRegistry>>(\n baseClass: BaseClass,\n) => {\n return class extends baseClass {\n /** Every class a stereotype decorated, in decoration order - which is import order, and is identical in a bundle. Discovery reads this; registration order still comes from `order` and the configuration sort. */\n discoveredArtifacts: object[] = [];\n\n addDiscoveredArtifact<Target extends object = object>(opts: { target: Target }): void {\n if (this.discoveredArtifacts.includes(opts.target)) {\n return;\n }\n\n this.discoveredArtifacts.push(opts.target);\n }\n\n getDiscoveredArtifacts(): ReadonlyArray<object> {\n return [...this.discoveredArtifacts];\n }\n\n /** Tests only: the list is process-wide and a suite that decorates classes would leak into the next one. */\n clearDiscoveredArtifacts(): void {\n this.discoveredArtifacts = [];\n }\n\n setArtifactMetadata<Target extends object = object, ApplicationType = unknown>(opts: {\n target: Target;\n metadata: IArtifactMetadata<ApplicationType>;\n }): void {\n Reflect.defineMetadata(MetadataKeys.ARTIFACT, opts.metadata, opts.target);\n }\n\n // Own metadata only: a subclass of a decorated class is not itself an artifact.\n getArtifactMetadata<Target extends object = object>(opts: {\n target: Target;\n }): IArtifactMetadata | undefined {\n return Reflect.getOwnMetadata(MetadataKeys.ARTIFACT, opts.target);\n }\n\n addProvideMetadata<Target extends object = object>(opts: {\n target: Target;\n metadata: IProvideMetadata;\n }): void {\n const current = this.getProvideMetadata({ target: opts.target });\n Reflect.defineMetadata(MetadataKeys.PROVIDES, [...current, opts.metadata], opts.target);\n }\n\n getProvideMetadata<Target extends object = object>(opts: {\n target: Target;\n }): IProvideMetadata[] {\n return Reflect.getOwnMetadata(MetadataKeys.PROVIDES, opts.target) ?? [];\n }\n };\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/mixins/controllers/controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,SAAoB,EACpB,EAAE;IACF,OAAO,KAAM,SAAQ,SAAS;QAC5B,qBAAqB,CAAiC,IAGrD;YACC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;YAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;YAC9D,OAAO,CAAC,cAAc,CACpB,YAAY,CAAC,UAAU,EACvB,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,EACrC,MAAM,CACP,CAAC;QACJ,CAAC;QAED,qBAAqB,CAAiC,IAErD;YACC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;YACxB,OAAO,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAC9D,CAAC;QAED,yBAAyB,CAAiC,IAEzD;YACC,MAAM,QAAQ,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAClD,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,SAAS,KAAK,oBAAoB,CAAC,IAAI,EAAE,CAAC;gBAClE,OAAO,SAAS,CAAC;YACnB,CAAC;YACD,OAAO,QAAmC,CAAC;QAC7C,CAAC;QAED,yBAAyB,CAAiC,IAEzD;YACC,MAAM,QAAQ,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAClD,IAAI,QAAQ,EAAE,SAAS,KAAK,oBAAoB,CAAC,IAAI,EAAE,CAAC;gBACtD,OAAO,SAAS,CAAC;YACnB,CAAC;YACD,OAAO,QAAmC,CAAC;QAC7C,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/mixins/controllers/controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,SAAoB,EACpB,EAAE;IACF,OAAO,KAAM,SAAQ,SAAS;QAC5B,qBAAqB,CAAiC,IAGrD;YACC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;YAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;YAC9D,OAAO,CAAC,cAAc,CACpB,YAAY,CAAC,UAAU,EACvB,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,EACrC,MAAM,CACP,CAAC;QACJ,CAAC;QAED,qBAAqB,CAAiC,IAErD;YACC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;YACxB,OAAO,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAC9D,CAAC;QAED,yBAAyB,CAAiC,IAEzD;YACC,MAAM,QAAQ,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAClD,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,SAAS,KAAK,oBAAoB,CAAC,IAAI,EAAE,CAAC;gBAClE,OAAO,SAAS,CAAC;YACnB,CAAC;YACD,OAAO,QAAmC,CAAC;QAC7C,CAAC;QAED,yBAAyB,CAAiC,IAEzD;YACC,MAAM,QAAQ,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAClD,IAAI,QAAQ,EAAE,SAAS,KAAK,oBAAoB,CAAC,IAAI,EAAE,CAAC;gBACtD,OAAO,SAAS,CAAC;YACnB,CAAC;YACD,OAAO,QAAmC,CAAC;QAC7C,CAAC;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { ControllerTransports } from '@/base/controllers/common/constants';\nimport type { TMixinTarget } from '@venizia/ignis-helpers/common';\nimport type { MetadataRegistry as _MetadataRegistry } from '@venizia/ignis-inversion';\nimport { MetadataKeys } from '../../common/keys';\nimport type {\n IGrpcControllerMetadata,\n IRestControllerMetadata,\n TControllerMetadata,\n} from '../../common/types';\n\nexport const ControllerMetadataMixin = <BaseClass extends TMixinTarget<_MetadataRegistry>>(\n baseClass: BaseClass,\n) => {\n return class extends baseClass {\n setControllerMetadata<Target extends object = object>(opts: {\n target: Target;\n metadata: TControllerMetadata;\n }): void {\n const { target, metadata } = opts;\n const existing = this.getControllerMetadata({ target }) ?? {};\n Reflect.defineMetadata(\n MetadataKeys.CONTROLLER,\n Object.assign({}, existing, metadata),\n target,\n );\n }\n\n getControllerMetadata<Target extends object = object>(opts: {\n target: Target;\n }): TControllerMetadata | undefined {\n const { target } = opts;\n return Reflect.getMetadata(MetadataKeys.CONTROLLER, target);\n }\n\n getRestControllerMetadata<Target extends object = object>(opts: {\n target: Target;\n }): IRestControllerMetadata | undefined {\n const metadata = this.getControllerMetadata(opts);\n if (!metadata || metadata.transport === ControllerTransports.GRPC) {\n return undefined;\n }\n return metadata as IRestControllerMetadata;\n }\n\n getGrpcControllerMetadata<Target extends object = object>(opts: {\n target: Target;\n }): IGrpcControllerMetadata | undefined {\n const metadata = this.getControllerMetadata(opts);\n if (metadata?.transport !== ControllerTransports.GRPC) {\n return undefined;\n }\n return metadata as IGrpcControllerMetadata;\n }\n };\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"grpc.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/mixins/controllers/grpc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,SAAoB,EACpB,EAAE;IACF,OAAO,KAAM,SAAQ,SAAS;QAC5B,MAAM,CAAiC,IAItC;YACC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;YAE7C,sLAAsL;YACtL,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;YAC3C,MAAM,IAAI,GACR,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,qBAAqB,EAAE,MAAM,CAAC;gBAClE,IAAI,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;YAE3B,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;YAC9B,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,qBA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3B,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;YAC9B,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,qBAAqB,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAC3E,CAAC;QAED,OAAO,CAAiC,IAEvC;YACC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;YACxB,OAAO,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;QACzE,CAAC;QAED,MAAM,CAAiC,IAGtC;YACC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;YACpC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;YACtC,OAAO,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;QAC/B,CAAC;QAED,OAAO,CAAiC,IAAwB;YAC9D,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAChC,OAAO,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QAC7C,CAAC;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { TMixinTarget } from '@venizia/ignis-helpers/common';\nimport type { MetadataRegistry as _MetadataRegistry } from '@venizia/ignis-inversion';\nimport { MetadataKeys } from '../../common/keys';\nimport type { IRpcMetadata } from '../../common/types';\n\nexport const GrpcControllerMetadataMixin = <BaseClass extends TMixinTarget<_MetadataRegistry>>(\n baseClass: BaseClass,\n) => {\n return class extends baseClass {\n addRpc<Target extends object = object>(opts: {\n target: Target;\n methodName: string | symbol;\n configs: IRpcMetadata;\n }): void {\n const { target, methodName, configs } = opts;\n\n // Copy-on-write, same reason as RestControllerMetadataMixin.addRoute: getRpcs() walks the prototype chain, so mutating the Map it returns would leak a subclass's rpcs onto its base.\n const inherited = this.getRpcs({ target });\n const rpcs: Map<string | symbol, IRpcMetadata> =\n Reflect.getOwnMetadata(MetadataKeys.CONTROLLER_GRPC_ROUTE, target) ??\n new Map(inherited ?? []);\n\n rpcs.set(methodName, configs);\n Reflect.defineMetadata(MetadataKeys.CONTROLLER_GRPC_ROUTE, rpcs, target);\n }\n\n getRpcs<Target extends object = object>(opts: {\n target: Target;\n }): Map<string | symbol, IRpcMetadata> | undefined {\n const { target } = opts;\n return Reflect.getMetadata(MetadataKeys.CONTROLLER_GRPC_ROUTE, target);\n }\n\n getRpc<Target extends object = object>(opts: {\n target: Target;\n methodName: string | symbol;\n }): IRpcMetadata | undefined {\n const { target, methodName } = opts;\n const rpcs = this.getRpcs({ target });\n return rpcs?.get(methodName);\n }\n\n hasRpcs<Target extends object = object>(opts: { target: Target }): boolean {\n const rpcs = this.getRpcs(opts);\n return rpcs !== undefined && rpcs.size > 0;\n }\n };\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/mixins/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/mixins/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC","sourcesContent":["export * from './controller';\nexport * from './grpc';\nexport * from './rest';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"rest.js","sourceRoot":"","sources":["../../../../../../src/helpers/inversion/mixins/controllers/rest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,SAAoB,EACpB,EAAE;IACF,OAAO,KAAM,SAAQ,SAAS;QAC5B,SAAS,CAAiC,IAEzC;YACC,MAAM,EAAE,MAAM,EA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C,SAAoB,EACpB,EAAE;IACF,OAAO,KAAM,SAAQ,SAAS;QAC5B,SAAS,CAAiC,IAEzC;YACC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;YACxB,OAAO,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;QACzE,CAAC;QAED,QAAQ,CAAiC,IAGxC;YACC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;YACpC,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;YAC1C,OAAO,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;QACjC,CAAC;QAED,SAAS,CAAiC,IAAwB;YAChE,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACpC,OAAO,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACjD,CAAC;QAED,QAAQ,CAAiC,IAIxC;YACC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;YAE7C,+NAA+N;YAC/N,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;YAC7C,MAAM,MAAM,GACV,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,qBAAqB,EAAE,MAAM,CAAC;gBAClE,IAAI,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;YAE3B,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;YAEhC,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,qBAAqB,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7E,CAAC;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { IAuthRouteConfig } from '@/base/controllers/common/types';\nimport type { TMixinTarget } from '@venizia/ignis-helpers/common';\nimport type { MetadataRegistry as _MetadataRegistry } from '@venizia/ignis-inversion';\nimport { MetadataKeys } from '../../common/keys';\n\nexport const RestControllerMetadataMixin = <BaseClass extends TMixinTarget<_MetadataRegistry>>(\n baseClass: BaseClass,\n) => {\n return class extends baseClass {\n getRoutes<Target extends object = object>(opts: {\n target: Target;\n }): Map<string | symbol, IAuthRouteConfig> | undefined {\n const { target } = opts;\n return Reflect.getMetadata(MetadataKeys.CONTROLLER_REST_ROUTE, target);\n }\n\n getRoute<Target extends object = object>(opts: {\n target: Target;\n methodName: string | symbol;\n }): IAuthRouteConfig | undefined {\n const { target, methodName } = opts;\n const routes = this.getRoutes({ target });\n return routes?.get(methodName);\n }\n\n hasRoutes<Target extends object = object>(opts: { target: Target }): boolean {\n const routes = this.getRoutes(opts);\n return routes !== undefined && routes.size > 0;\n }\n\n addRoute<Target extends object = object>(opts: {\n target: Target;\n methodName: string | symbol;\n configs: IAuthRouteConfig;\n }): void {\n const { target, methodName, configs } = opts;\n\n // Copy-on-write: getRoutes() walks the prototype chain, so a subclass would otherwise mutate the Map its base owns, leaking its routes onto the base and every sibling. Inherited routes stay visible - copied in, base first.\n const inherited = this.getRoutes({ target });\n const routes: Map<string | symbol, IAuthRouteConfig> =\n Reflect.getOwnMetadata(MetadataKeys.CONTROLLER_REST_ROUTE, target) ??\n new Map(inherited ?? []);\n\n routes.set(methodName, configs);\n\n Reflect.defineMetadata(MetadataKeys.CONTROLLER_REST_ROUTE, routes, target);\n }\n };\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"datasource.mixin.js","sourceRoot":"","sources":["../../../../../src/helpers/inversion/mixins/datasource.mixin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,SAAoB,EACpB,EAAE;IACF,OAAO,KAAM,SAAQ,SAAS;QAC5B,qBAAqB,CAAiC,IAGrD;YACC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;YAElC,OAAO,CAAC,cAAc,CACpB,YAAY,CAAC,UAAU,EACvB,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,QAAQ,CAAC,EACpD,MAAM,CACP,CAAC;QACJ,CAAC;QAED,qBAAqB,CAAiC,IAErD;YACC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;YACxB,OAAO,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAC9D,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"datasource.mixin.js","sourceRoot":"","sources":["../../../../../src/helpers/inversion/mixins/datasource.mixin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,SAAoB,EACpB,EAAE;IACF,OAAO,KAAM,SAAQ,SAAS;QAC5B,qBAAqB,CAAiC,IAGrD;YACC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;YAElC,OAAO,CAAC,cAAc,CACpB,YAAY,CAAC,UAAU,EACvB,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,QAAQ,CAAC,EACpD,MAAM,CACP,CAAC;QACJ,CAAC;QAED,qBAAqB,CAAiC,IAErD;YACC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;YACxB,OAAO,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAC9D,CAAC;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { TMixinTarget } from '@venizia/ignis-helpers/common';\nimport type { MetadataRegistry as _MetadataRegistry } from '@venizia/ignis-inversion';\nimport { MetadataKeys } from '../common/keys';\nimport type { IDataSourceMetadata } from '../common/types';\n\nexport const DatasourceMetadataMixin = <BaseClass extends TMixinTarget<_MetadataRegistry>>(\n baseClass: BaseClass,\n) => {\n return class extends baseClass {\n setDataSourceMetadata<Target extends object = object>(opts: {\n target: Target;\n metadata?: IDataSourceMetadata;\n }): void {\n const { target, metadata } = opts;\n\n Reflect.defineMetadata(\n MetadataKeys.DATASOURCE,\n Object.assign({}, { autoDiscovery: true }, metadata),\n target,\n );\n }\n\n getDataSourceMetadata<Target extends object = object>(opts: {\n target: Target;\n }): IDataSourceMetadata | undefined {\n const { target } = opts;\n return Reflect.getMetadata(MetadataKeys.DATASOURCE, target);\n }\n };\n};\n"]}