@elsikora/nestjs-crud-automator 1.17.1-dev.1 → 1.18.0-dev.1

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 (295) hide show
  1. package/dist/cjs/class/api/authorization/policy/registry.class.d.ts +1 -5
  2. package/dist/cjs/class/api/authorization/policy/registry.class.js +41 -34
  3. package/dist/cjs/class/api/authorization/policy/registry.class.js.map +1 -1
  4. package/dist/cjs/class/api/subscriber/registry.class.js +13 -0
  5. package/dist/cjs/class/api/subscriber/registry.class.js.map +1 -1
  6. package/dist/cjs/class/metadata-storage.class.d.ts +2 -1
  7. package/dist/cjs/class/metadata-storage.class.js +53 -17
  8. package/dist/cjs/class/metadata-storage.class.js.map +1 -1
  9. package/dist/cjs/constant/dto/auto-context.constant.d.ts +4 -0
  10. package/dist/cjs/constant/dto/auto-context.constant.js +10 -0
  11. package/dist/cjs/constant/dto/auto-context.constant.js.map +1 -0
  12. package/dist/cjs/constant/dto/index.d.ts +1 -0
  13. package/dist/cjs/decorator/api/authorization/policy.decorator.d.ts +1 -0
  14. package/dist/cjs/decorator/api/authorization/policy.decorator.js +1 -0
  15. package/dist/cjs/decorator/api/authorization/policy.decorator.js.map +1 -1
  16. package/dist/cjs/decorator/api/controller/decorator.d.ts +1 -1
  17. package/dist/cjs/decorator/api/controller/decorator.js +1 -1
  18. package/dist/cjs/decorator/api/controller/observable.decorator.d.ts +1 -0
  19. package/dist/cjs/decorator/api/controller/observable.decorator.js +1 -0
  20. package/dist/cjs/decorator/api/controller/observable.decorator.js.map +1 -1
  21. package/dist/cjs/decorator/api/controller/securable.decorator.d.ts +1 -0
  22. package/dist/cjs/decorator/api/controller/securable.decorator.js +1 -0
  23. package/dist/cjs/decorator/api/controller/securable.decorator.js.map +1 -1
  24. package/dist/cjs/decorator/api/function/create.decorator.d.ts +1 -0
  25. package/dist/cjs/decorator/api/function/create.decorator.js +1 -0
  26. package/dist/cjs/decorator/api/function/create.decorator.js.map +1 -1
  27. package/dist/cjs/decorator/api/function/decorator.d.ts +1 -0
  28. package/dist/cjs/decorator/api/function/decorator.js +1 -0
  29. package/dist/cjs/decorator/api/function/decorator.js.map +1 -1
  30. package/dist/cjs/decorator/api/function/delete.decorator.d.ts +1 -0
  31. package/dist/cjs/decorator/api/function/delete.decorator.js +1 -0
  32. package/dist/cjs/decorator/api/function/delete.decorator.js.map +1 -1
  33. package/dist/cjs/decorator/api/function/get-list.decorator.d.ts +1 -0
  34. package/dist/cjs/decorator/api/function/get-list.decorator.js +1 -0
  35. package/dist/cjs/decorator/api/function/get-list.decorator.js.map +1 -1
  36. package/dist/cjs/decorator/api/function/get-many.decorator.d.ts +1 -0
  37. package/dist/cjs/decorator/api/function/get-many.decorator.js +1 -0
  38. package/dist/cjs/decorator/api/function/get-many.decorator.js.map +1 -1
  39. package/dist/cjs/decorator/api/function/get.decorator.d.ts +1 -0
  40. package/dist/cjs/decorator/api/function/get.decorator.js +1 -0
  41. package/dist/cjs/decorator/api/function/get.decorator.js.map +1 -1
  42. package/dist/cjs/decorator/api/function/update.decorator.d.ts +1 -0
  43. package/dist/cjs/decorator/api/function/update.decorator.js +1 -0
  44. package/dist/cjs/decorator/api/function/update.decorator.js.map +1 -1
  45. package/dist/cjs/decorator/api/method.decorator.d.ts +1 -0
  46. package/dist/cjs/decorator/api/method.decorator.js +1 -0
  47. package/dist/cjs/decorator/api/method.decorator.js.map +1 -1
  48. package/dist/cjs/decorator/api/property/boolean.decorator.d.ts +1 -0
  49. package/dist/cjs/decorator/api/property/boolean.decorator.js +11 -4
  50. package/dist/cjs/decorator/api/property/boolean.decorator.js.map +1 -1
  51. package/dist/cjs/decorator/api/property/copy.decorator.d.ts +34 -14
  52. package/dist/cjs/decorator/api/property/copy.decorator.js +83 -30
  53. package/dist/cjs/decorator/api/property/copy.decorator.js.map +1 -1
  54. package/dist/cjs/decorator/api/property/date.decorator.d.ts +1 -0
  55. package/dist/cjs/decorator/api/property/date.decorator.js +11 -4
  56. package/dist/cjs/decorator/api/property/date.decorator.js.map +1 -1
  57. package/dist/cjs/decorator/api/property/describe.decorator.d.ts +1 -1
  58. package/dist/cjs/decorator/api/property/describe.decorator.js +1 -1
  59. package/dist/cjs/decorator/api/property/enum.decorator.d.ts +1 -0
  60. package/dist/cjs/decorator/api/property/enum.decorator.js +11 -4
  61. package/dist/cjs/decorator/api/property/enum.decorator.js.map +1 -1
  62. package/dist/cjs/decorator/api/property/number.decorator.d.ts +1 -0
  63. package/dist/cjs/decorator/api/property/number.decorator.js +15 -5
  64. package/dist/cjs/decorator/api/property/number.decorator.js.map +1 -1
  65. package/dist/cjs/decorator/api/property/object.decorator.d.ts +1 -0
  66. package/dist/cjs/decorator/api/property/object.decorator.js +13 -4
  67. package/dist/cjs/decorator/api/property/object.decorator.js.map +1 -1
  68. package/dist/cjs/decorator/api/property/string.decorator.d.ts +1 -0
  69. package/dist/cjs/decorator/api/property/string.decorator.js +15 -5
  70. package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -1
  71. package/dist/cjs/decorator/api/property/uuid.decorator.d.ts +1 -0
  72. package/dist/cjs/decorator/api/property/uuid.decorator.js +12 -5
  73. package/dist/cjs/decorator/api/property/uuid.decorator.js.map +1 -1
  74. package/dist/cjs/decorator/api/service/observable.decorator.d.ts +1 -0
  75. package/dist/cjs/decorator/api/service/observable.decorator.js +1 -0
  76. package/dist/cjs/decorator/api/service/observable.decorator.js.map +1 -1
  77. package/dist/cjs/decorator/api/service.decorator.d.ts +1 -1
  78. package/dist/cjs/decorator/api/service.decorator.js +1 -1
  79. package/dist/cjs/decorator/api/subscriber/function.decorator.d.ts +1 -0
  80. package/dist/cjs/decorator/api/subscriber/function.decorator.js +1 -0
  81. package/dist/cjs/decorator/api/subscriber/function.decorator.js.map +1 -1
  82. package/dist/cjs/decorator/api/subscriber/route.decorator.d.ts +1 -0
  83. package/dist/cjs/decorator/api/subscriber/route.decorator.js +1 -0
  84. package/dist/cjs/decorator/api/subscriber/route.decorator.js.map +1 -1
  85. package/dist/cjs/factory/api/controller.factory.js +0 -2
  86. package/dist/cjs/factory/api/controller.factory.js.map +1 -1
  87. package/dist/cjs/index.js +27 -2
  88. package/dist/cjs/index.js.map +1 -1
  89. package/dist/cjs/interface/class/api/authorization/policy/registry.interface.d.ts +0 -1
  90. package/dist/cjs/type/auto-context-metadata.type.d.ts +5 -0
  91. package/dist/cjs/type/decorator/api/property/base/properties.type.d.ts +2 -1
  92. package/dist/cjs/type/decorator/api/property/copy-properties.type.d.ts +13 -0
  93. package/dist/cjs/type/decorator/api/property/entity.type.d.ts +3 -0
  94. package/dist/cjs/type/decorator/api/property/index.d.ts +2 -0
  95. package/dist/cjs/type/index.d.ts +1 -0
  96. package/dist/cjs/utility/api/controller/apply-metadata.utility.js +1 -1
  97. package/dist/cjs/utility/auto-dto-context-queue.utility.d.ts +11 -0
  98. package/dist/cjs/utility/auto-dto-context-queue.utility.js +40 -0
  99. package/dist/cjs/utility/auto-dto-context-queue.utility.js.map +1 -0
  100. package/dist/cjs/utility/defer-property-decorator-execution.utility.d.ts +5 -0
  101. package/dist/cjs/utility/defer-property-decorator-execution.utility.js +16 -0
  102. package/dist/cjs/utility/defer-property-decorator-execution.utility.js.map +1 -0
  103. package/dist/cjs/utility/dto/auto-context-pop.utility.d.ts +6 -0
  104. package/dist/cjs/utility/dto/auto-context-pop.utility.js +38 -0
  105. package/dist/cjs/utility/dto/auto-context-pop.utility.js.map +1 -0
  106. package/dist/cjs/utility/dto/auto-context-push.utility.d.ts +9 -0
  107. package/dist/cjs/utility/dto/auto-context-push.utility.js +35 -0
  108. package/dist/cjs/utility/dto/auto-context-push.utility.js.map +1 -0
  109. package/dist/cjs/utility/dto/build-decorator.utility.js +9 -1
  110. package/dist/cjs/utility/dto/build-decorator.utility.js.map +1 -1
  111. package/dist/cjs/utility/dto/generate-dynamic.utility.js +21 -13
  112. package/dist/cjs/utility/dto/generate-dynamic.utility.js.map +1 -1
  113. package/dist/cjs/utility/dto/generate.utility.js +35 -27
  114. package/dist/cjs/utility/dto/generate.utility.js.map +1 -1
  115. package/dist/cjs/utility/dto/index.d.ts +2 -1
  116. package/dist/cjs/utility/get-auto-dto-context.utility.d.ts +7 -0
  117. package/dist/cjs/utility/get-auto-dto-context.utility.js +19 -0
  118. package/dist/cjs/utility/get-auto-dto-context.utility.js.map +1 -0
  119. package/dist/cjs/utility/index.d.ts +9 -0
  120. package/dist/cjs/utility/is-entity-constructor.utility.d.ts +8 -0
  121. package/dist/cjs/utility/is-entity-constructor.utility.js +13 -0
  122. package/dist/cjs/utility/is-entity-constructor.utility.js.map +1 -0
  123. package/dist/cjs/utility/is-entity-factory.utility.d.ts +8 -0
  124. package/dist/cjs/utility/is-entity-factory.utility.js +15 -0
  125. package/dist/cjs/utility/is-entity-factory.utility.js.map +1 -0
  126. package/dist/cjs/utility/is-entity-literal.utility.d.ts +7 -0
  127. package/dist/cjs/utility/is-entity-literal.utility.js +13 -0
  128. package/dist/cjs/utility/is-entity-literal.utility.js.map +1 -0
  129. package/dist/cjs/utility/queue-auto-context-retry.utility.d.ts +6 -0
  130. package/dist/cjs/utility/queue-auto-context-retry.utility.js +23 -0
  131. package/dist/cjs/utility/queue-auto-context-retry.utility.js.map +1 -0
  132. package/dist/cjs/utility/register-auto-dto-child.utility.d.ts +14 -0
  133. package/dist/cjs/utility/register-auto-dto-child.utility.js +69 -0
  134. package/dist/cjs/utility/register-auto-dto-child.utility.js.map +1 -0
  135. package/dist/cjs/utility/resolve/decorator-context.utility.d.ts +13 -0
  136. package/dist/cjs/utility/resolve/decorator-context.utility.js +31 -0
  137. package/dist/cjs/utility/resolve/decorator-context.utility.js.map +1 -0
  138. package/dist/cjs/utility/resolve/index.d.ts +2 -0
  139. package/dist/cjs/utility/resolve/property-entity.utility.d.ts +16 -0
  140. package/dist/cjs/utility/resolve/property-entity.utility.js +43 -0
  141. package/dist/cjs/utility/resolve/property-entity.utility.js.map +1 -0
  142. package/dist/cjs/utility/with-resolved-property-entity.utility.d.ts +11 -0
  143. package/dist/cjs/utility/with-resolved-property-entity.utility.js +30 -0
  144. package/dist/cjs/utility/with-resolved-property-entity.utility.js.map +1 -0
  145. package/dist/esm/class/api/authorization/policy/registry.class.d.ts +1 -5
  146. package/dist/esm/class/api/authorization/policy/registry.class.js +41 -34
  147. package/dist/esm/class/api/authorization/policy/registry.class.js.map +1 -1
  148. package/dist/esm/class/api/subscriber/registry.class.js +13 -0
  149. package/dist/esm/class/api/subscriber/registry.class.js.map +1 -1
  150. package/dist/esm/class/metadata-storage.class.d.ts +2 -1
  151. package/dist/esm/class/metadata-storage.class.js +53 -17
  152. package/dist/esm/class/metadata-storage.class.js.map +1 -1
  153. package/dist/esm/constant/dto/auto-context.constant.d.ts +4 -0
  154. package/dist/esm/constant/dto/auto-context.constant.js +7 -0
  155. package/dist/esm/constant/dto/auto-context.constant.js.map +1 -0
  156. package/dist/esm/constant/dto/index.d.ts +1 -0
  157. package/dist/esm/decorator/api/authorization/policy.decorator.d.ts +1 -0
  158. package/dist/esm/decorator/api/authorization/policy.decorator.js +1 -0
  159. package/dist/esm/decorator/api/authorization/policy.decorator.js.map +1 -1
  160. package/dist/esm/decorator/api/controller/decorator.d.ts +1 -1
  161. package/dist/esm/decorator/api/controller/decorator.js +1 -1
  162. package/dist/esm/decorator/api/controller/observable.decorator.d.ts +1 -0
  163. package/dist/esm/decorator/api/controller/observable.decorator.js +1 -0
  164. package/dist/esm/decorator/api/controller/observable.decorator.js.map +1 -1
  165. package/dist/esm/decorator/api/controller/securable.decorator.d.ts +1 -0
  166. package/dist/esm/decorator/api/controller/securable.decorator.js +1 -0
  167. package/dist/esm/decorator/api/controller/securable.decorator.js.map +1 -1
  168. package/dist/esm/decorator/api/function/create.decorator.d.ts +1 -0
  169. package/dist/esm/decorator/api/function/create.decorator.js +1 -0
  170. package/dist/esm/decorator/api/function/create.decorator.js.map +1 -1
  171. package/dist/esm/decorator/api/function/decorator.d.ts +1 -0
  172. package/dist/esm/decorator/api/function/decorator.js +1 -0
  173. package/dist/esm/decorator/api/function/decorator.js.map +1 -1
  174. package/dist/esm/decorator/api/function/delete.decorator.d.ts +1 -0
  175. package/dist/esm/decorator/api/function/delete.decorator.js +1 -0
  176. package/dist/esm/decorator/api/function/delete.decorator.js.map +1 -1
  177. package/dist/esm/decorator/api/function/get-list.decorator.d.ts +1 -0
  178. package/dist/esm/decorator/api/function/get-list.decorator.js +1 -0
  179. package/dist/esm/decorator/api/function/get-list.decorator.js.map +1 -1
  180. package/dist/esm/decorator/api/function/get-many.decorator.d.ts +1 -0
  181. package/dist/esm/decorator/api/function/get-many.decorator.js +1 -0
  182. package/dist/esm/decorator/api/function/get-many.decorator.js.map +1 -1
  183. package/dist/esm/decorator/api/function/get.decorator.d.ts +1 -0
  184. package/dist/esm/decorator/api/function/get.decorator.js +1 -0
  185. package/dist/esm/decorator/api/function/get.decorator.js.map +1 -1
  186. package/dist/esm/decorator/api/function/update.decorator.d.ts +1 -0
  187. package/dist/esm/decorator/api/function/update.decorator.js +1 -0
  188. package/dist/esm/decorator/api/function/update.decorator.js.map +1 -1
  189. package/dist/esm/decorator/api/method.decorator.d.ts +1 -0
  190. package/dist/esm/decorator/api/method.decorator.js +1 -0
  191. package/dist/esm/decorator/api/method.decorator.js.map +1 -1
  192. package/dist/esm/decorator/api/property/boolean.decorator.d.ts +1 -0
  193. package/dist/esm/decorator/api/property/boolean.decorator.js +12 -5
  194. package/dist/esm/decorator/api/property/boolean.decorator.js.map +1 -1
  195. package/dist/esm/decorator/api/property/copy.decorator.d.ts +34 -14
  196. package/dist/esm/decorator/api/property/copy.decorator.js +83 -30
  197. package/dist/esm/decorator/api/property/copy.decorator.js.map +1 -1
  198. package/dist/esm/decorator/api/property/date.decorator.d.ts +1 -0
  199. package/dist/esm/decorator/api/property/date.decorator.js +12 -5
  200. package/dist/esm/decorator/api/property/date.decorator.js.map +1 -1
  201. package/dist/esm/decorator/api/property/describe.decorator.d.ts +1 -1
  202. package/dist/esm/decorator/api/property/describe.decorator.js +1 -1
  203. package/dist/esm/decorator/api/property/enum.decorator.d.ts +1 -0
  204. package/dist/esm/decorator/api/property/enum.decorator.js +12 -5
  205. package/dist/esm/decorator/api/property/enum.decorator.js.map +1 -1
  206. package/dist/esm/decorator/api/property/number.decorator.d.ts +1 -0
  207. package/dist/esm/decorator/api/property/number.decorator.js +17 -7
  208. package/dist/esm/decorator/api/property/number.decorator.js.map +1 -1
  209. package/dist/esm/decorator/api/property/object.decorator.d.ts +1 -0
  210. package/dist/esm/decorator/api/property/object.decorator.js +14 -5
  211. package/dist/esm/decorator/api/property/object.decorator.js.map +1 -1
  212. package/dist/esm/decorator/api/property/string.decorator.d.ts +1 -0
  213. package/dist/esm/decorator/api/property/string.decorator.js +17 -7
  214. package/dist/esm/decorator/api/property/string.decorator.js.map +1 -1
  215. package/dist/esm/decorator/api/property/uuid.decorator.d.ts +1 -0
  216. package/dist/esm/decorator/api/property/uuid.decorator.js +13 -6
  217. package/dist/esm/decorator/api/property/uuid.decorator.js.map +1 -1
  218. package/dist/esm/decorator/api/service/observable.decorator.d.ts +1 -0
  219. package/dist/esm/decorator/api/service/observable.decorator.js +1 -0
  220. package/dist/esm/decorator/api/service/observable.decorator.js.map +1 -1
  221. package/dist/esm/decorator/api/service.decorator.d.ts +1 -1
  222. package/dist/esm/decorator/api/service.decorator.js +1 -1
  223. package/dist/esm/decorator/api/subscriber/function.decorator.d.ts +1 -0
  224. package/dist/esm/decorator/api/subscriber/function.decorator.js +1 -0
  225. package/dist/esm/decorator/api/subscriber/function.decorator.js.map +1 -1
  226. package/dist/esm/decorator/api/subscriber/route.decorator.d.ts +1 -0
  227. package/dist/esm/decorator/api/subscriber/route.decorator.js +1 -0
  228. package/dist/esm/decorator/api/subscriber/route.decorator.js.map +1 -1
  229. package/dist/esm/factory/api/controller.factory.js +0 -2
  230. package/dist/esm/factory/api/controller.factory.js.map +1 -1
  231. package/dist/esm/index.js +13 -1
  232. package/dist/esm/index.js.map +1 -1
  233. package/dist/esm/interface/class/api/authorization/policy/registry.interface.d.ts +0 -1
  234. package/dist/esm/type/auto-context-metadata.type.d.ts +5 -0
  235. package/dist/esm/type/decorator/api/property/base/properties.type.d.ts +2 -1
  236. package/dist/esm/type/decorator/api/property/copy-properties.type.d.ts +13 -0
  237. package/dist/esm/type/decorator/api/property/entity.type.d.ts +3 -0
  238. package/dist/esm/type/decorator/api/property/index.d.ts +2 -0
  239. package/dist/esm/type/index.d.ts +1 -0
  240. package/dist/esm/utility/api/controller/apply-metadata.utility.js +1 -1
  241. package/dist/esm/utility/auto-dto-context-queue.utility.d.ts +11 -0
  242. package/dist/esm/utility/auto-dto-context-queue.utility.js +37 -0
  243. package/dist/esm/utility/auto-dto-context-queue.utility.js.map +1 -0
  244. package/dist/esm/utility/defer-property-decorator-execution.utility.d.ts +5 -0
  245. package/dist/esm/utility/defer-property-decorator-execution.utility.js +14 -0
  246. package/dist/esm/utility/defer-property-decorator-execution.utility.js.map +1 -0
  247. package/dist/esm/utility/dto/auto-context-pop.utility.d.ts +6 -0
  248. package/dist/esm/utility/dto/auto-context-pop.utility.js +36 -0
  249. package/dist/esm/utility/dto/auto-context-pop.utility.js.map +1 -0
  250. package/dist/esm/utility/dto/auto-context-push.utility.d.ts +9 -0
  251. package/dist/esm/utility/dto/auto-context-push.utility.js +33 -0
  252. package/dist/esm/utility/dto/auto-context-push.utility.js.map +1 -0
  253. package/dist/esm/utility/dto/build-decorator.utility.js +9 -1
  254. package/dist/esm/utility/dto/build-decorator.utility.js.map +1 -1
  255. package/dist/esm/utility/dto/generate-dynamic.utility.js +21 -13
  256. package/dist/esm/utility/dto/generate-dynamic.utility.js.map +1 -1
  257. package/dist/esm/utility/dto/generate.utility.js +35 -27
  258. package/dist/esm/utility/dto/generate.utility.js.map +1 -1
  259. package/dist/esm/utility/dto/index.d.ts +2 -1
  260. package/dist/esm/utility/get-auto-dto-context.utility.d.ts +7 -0
  261. package/dist/esm/utility/get-auto-dto-context.utility.js +17 -0
  262. package/dist/esm/utility/get-auto-dto-context.utility.js.map +1 -0
  263. package/dist/esm/utility/index.d.ts +9 -0
  264. package/dist/esm/utility/is-entity-constructor.utility.d.ts +8 -0
  265. package/dist/esm/utility/is-entity-constructor.utility.js +11 -0
  266. package/dist/esm/utility/is-entity-constructor.utility.js.map +1 -0
  267. package/dist/esm/utility/is-entity-factory.utility.d.ts +8 -0
  268. package/dist/esm/utility/is-entity-factory.utility.js +13 -0
  269. package/dist/esm/utility/is-entity-factory.utility.js.map +1 -0
  270. package/dist/esm/utility/is-entity-literal.utility.d.ts +7 -0
  271. package/dist/esm/utility/is-entity-literal.utility.js +11 -0
  272. package/dist/esm/utility/is-entity-literal.utility.js.map +1 -0
  273. package/dist/esm/utility/queue-auto-context-retry.utility.d.ts +6 -0
  274. package/dist/esm/utility/queue-auto-context-retry.utility.js +21 -0
  275. package/dist/esm/utility/queue-auto-context-retry.utility.js.map +1 -0
  276. package/dist/esm/utility/register-auto-dto-child.utility.d.ts +14 -0
  277. package/dist/esm/utility/register-auto-dto-child.utility.js +66 -0
  278. package/dist/esm/utility/register-auto-dto-child.utility.js.map +1 -0
  279. package/dist/esm/utility/resolve/decorator-context.utility.d.ts +13 -0
  280. package/dist/esm/utility/resolve/decorator-context.utility.js +29 -0
  281. package/dist/esm/utility/resolve/decorator-context.utility.js.map +1 -0
  282. package/dist/esm/utility/resolve/index.d.ts +2 -0
  283. package/dist/esm/utility/resolve/property-entity.utility.d.ts +16 -0
  284. package/dist/esm/utility/resolve/property-entity.utility.js +40 -0
  285. package/dist/esm/utility/resolve/property-entity.utility.js.map +1 -0
  286. package/dist/esm/utility/with-resolved-property-entity.utility.d.ts +11 -0
  287. package/dist/esm/utility/with-resolved-property-entity.utility.js +28 -0
  288. package/dist/esm/utility/with-resolved-property-entity.utility.js.map +1 -0
  289. package/package.json +4 -1
  290. package/dist/cjs/utility/dto/analize.utility.d.ts +0 -8
  291. package/dist/cjs/utility/dto/analize.utility.js +0 -17
  292. package/dist/cjs/utility/dto/analize.utility.js.map +0 -1
  293. package/dist/esm/utility/dto/analize.utility.d.ts +0 -8
  294. package/dist/esm/utility/dto/analize.utility.js +0 -15
  295. package/dist/esm/utility/dto/analize.utility.js.map +0 -1
@@ -1,4 +1,7 @@
1
1
  import { AUTHORIZATION_POLICY_DECORATOR_CONSTANT } from '../../../../constant/class/authorization/policy/decorator.constant.js';
2
+ import '../../../../external/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js';
3
+ import '../../../../external/@elsikora/cladi/dist/esm/infrastructure/constant/console-logger-default-options.constant.js';
4
+ import { createRegistry } from '../../../../external/@elsikora/cladi/dist/esm/presentation/utility/create/registry.utility.js';
2
5
  import { EApiRouteType } from '../../../../enum/decorator/api/route-type.enum.js';
3
6
  import { GenerateEntityInformation } from '../../../../utility/generate-entity-information.utility.js';
4
7
  import { LoggerUtility } from '../../../../utility/logger.utility.js';
@@ -6,15 +9,11 @@ import { ApiAuthorizationPolicyExecutor } from './executor.class.js';
6
9
 
7
10
  const policyRegistryLogger = LoggerUtility.getLogger("ApiAuthorizationPolicyRegistry");
8
11
  class ApiAuthorizationPolicyRegistry {
9
- LEGACY_POLICIES;
10
12
  POLICY_CACHE;
11
- POLICY_REGISTRATIONS_BY_ENTITY;
12
- POLICY_REGISTRATIONS_BY_ID;
13
+ POLICY_REGISTRY;
13
14
  constructor() {
14
- this.LEGACY_POLICIES = new Map();
15
15
  this.POLICY_CACHE = new Map();
16
- this.POLICY_REGISTRATIONS_BY_ENTITY = new Map();
17
- this.POLICY_REGISTRATIONS_BY_ID = new Map();
16
+ this.POLICY_REGISTRY = createRegistry({});
18
17
  }
19
18
  async buildAggregatedPolicy(entity, action) {
20
19
  const entityName = this.getEntityName(entity);
@@ -25,16 +24,13 @@ class ApiAuthorizationPolicyRegistry {
25
24
  policyRegistryLogger.debug(`Returning cached policy for "${cacheKey}"`);
26
25
  return cachedPolicy;
27
26
  }
28
- const legacyPolicy = this.LEGACY_POLICIES.get(cacheKey);
29
- if (legacyPolicy) {
30
- policyRegistryLogger.debug(`Returning legacy policy for "${cacheKey}"`);
31
- this.cachePolicy(cacheKey, legacyPolicy);
32
- return legacyPolicy;
33
- }
34
- const registrations = this.POLICY_REGISTRATIONS_BY_ENTITY.get(entityName);
35
- policyRegistryLogger.debug(`Found ${registrations?.length ?? 0} registration(s) for entity "${entityName}"`);
36
- policyRegistryLogger.debug(`All registered entities: [${[...this.POLICY_REGISTRATIONS_BY_ENTITY.keys()].join(", ")}]`);
37
- if (!registrations?.length) {
27
+ const registrationWrapper = this.POLICY_REGISTRY.get(entityName);
28
+ const registrations = registrationWrapper?.registrations ?? [];
29
+ policyRegistryLogger.debug(`Found ${registrations.length} registration(s) for entity "${entityName}"`);
30
+ policyRegistryLogger.debug(`All registered entities: [${this.POLICY_REGISTRY.getAll()
31
+ .map((wrapper) => wrapper.getName())
32
+ .join(", ")}]`);
33
+ if (registrations.length === 0) {
38
34
  return undefined;
39
35
  }
40
36
  const entityMetadata = GenerateEntityInformation(entity);
@@ -70,14 +66,8 @@ class ApiAuthorizationPolicyRegistry {
70
66
  return policy;
71
67
  }
72
68
  clear() {
73
- this.LEGACY_POLICIES.clear();
74
69
  this.POLICY_CACHE.clear();
75
- this.POLICY_REGISTRATIONS_BY_ENTITY.clear();
76
- this.POLICY_REGISTRATIONS_BY_ID.clear();
77
- }
78
- registerPolicy(policy) {
79
- const cacheKey = this.createCacheKey(policy.entity, policy.action);
80
- this.setLegacyPolicy(cacheKey, policy);
70
+ this.POLICY_REGISTRY.clear();
81
71
  }
82
72
  registerSubscriber(registration) {
83
73
  const normalizedRegistration = {
@@ -89,12 +79,13 @@ class ApiAuthorizationPolicyRegistry {
89
79
  };
90
80
  const entityName = this.getEntityName(normalizedRegistration.entity);
91
81
  policyRegistryLogger.verbose(`Registering policy subscriber for entity "${entityName}" with policyId "${normalizedRegistration.policyId}" and priority ${normalizedRegistration.priority}`);
92
- this.POLICY_REGISTRATIONS_BY_ID.set(normalizedRegistration.policyId, normalizedRegistration);
93
- const entityRegistrations = this.POLICY_REGISTRATIONS_BY_ENTITY.get(entityName) ?? [];
94
- entityRegistrations.push(normalizedRegistration);
95
- entityRegistrations.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
96
- this.POLICY_REGISTRATIONS_BY_ENTITY.set(entityName, entityRegistrations);
97
- policyRegistryLogger.debug(`Total registrations for entity "${entityName}": ${entityRegistrations.length}`);
82
+ let wrapper = this.POLICY_REGISTRY.get(entityName);
83
+ if (!wrapper) {
84
+ wrapper = new PolicySubscriberWrapper(entityName);
85
+ this.POLICY_REGISTRY.register(wrapper);
86
+ }
87
+ wrapper.addRegistration(normalizedRegistration);
88
+ policyRegistryLogger.debug(`Total registrations for entity "${entityName}": ${wrapper.getRegistrationCount()}`);
98
89
  this.invalidateCacheForEntity(entityName);
99
90
  }
100
91
  cachePolicy(cacheKey, policy) {
@@ -133,16 +124,32 @@ class ApiAuthorizationPolicyRegistry {
133
124
  const routeTypes = Object.values(EApiRouteType);
134
125
  return routeTypes.find((routeType) => routeType === action);
135
126
  }
136
- setLegacyPolicy(cacheKey, policy) {
137
- const normalizedPolicy = this.toBasePolicy(policy);
138
- this.LEGACY_POLICIES.set(cacheKey, normalizedPolicy);
139
- this.POLICY_CACHE.set(cacheKey, normalizedPolicy);
140
- }
141
127
  toBasePolicy(policy) {
142
128
  return policy;
143
129
  }
144
130
  }
145
131
  const apiAuthorizationPolicyRegistry = new ApiAuthorizationPolicyRegistry();
132
+ class PolicySubscriberWrapper {
133
+ name;
134
+ registrations;
135
+ constructor(name, registrations = []) {
136
+ this.name = name;
137
+ this.registrations = registrations;
138
+ }
139
+ addRegistration(registration) {
140
+ this.registrations.push(registration);
141
+ this.registrations.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
142
+ }
143
+ getName() {
144
+ return this.getNormalizedName();
145
+ }
146
+ getRegistrationCount() {
147
+ return this.registrations.length;
148
+ }
149
+ getNormalizedName() {
150
+ return this.name;
151
+ }
152
+ }
146
153
 
147
154
  export { ApiAuthorizationPolicyRegistry, apiAuthorizationPolicyRegistry };
148
155
  //# sourceMappingURL=registry.class.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.class.js","sources":["../../../../../../../src/class/api/authorization/policy/registry.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAYA,MAAM,oBAAoB,GAAkB,aAAa,CAAC,SAAS,CAAC,gCAAgC,CAAC;MAIxF,8BAA8B,CAAA;AACzB,IAAA,eAAe;AAEf,IAAA,YAAY;AAEZ,IAAA,8BAA8B;AAE9B,IAAA,0BAA0B;AAE3C,IAAA,WAAA,GAAA;AACC,QAAA,IAAI,CAAC,eAAe,GAAG,IAAI,GAAG,EAAE;AAChC,QAAA,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,EAAE;AAC7B,QAAA,IAAI,CAAC,8BAA8B,GAAG,IAAI,GAAG,EAAE;AAC/C,QAAA,IAAI,CAAC,0BAA0B,GAAG,IAAI,GAAG,EAAE;IAC5C;AAEO,IAAA,MAAM,qBAAqB,CAAmD,MAA6B,EAAE,MAAe,EAAA;QAClI,MAAM,UAAU,GAAW,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;QACrD,MAAM,QAAQ,GAAW,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;QAC5D,oBAAoB,CAAC,KAAK,CAAC,CAAA,uCAAA,EAA0C,UAAU,CAAA,UAAA,EAAa,MAAM,CAAA,cAAA,EAAiB,QAAQ,CAAA,CAAA,CAAG,CAAC;QAE/H,MAAM,YAAY,GAA0F,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAA0F;QAEpO,IAAI,YAAY,EAAE;AACjB,YAAA,oBAAoB,CAAC,KAAK,CAAC,gCAAgC,QAAQ,CAAA,CAAA,CAAG,CAAC;AAEvE,YAAA,OAAO,YAAY;QACpB;QAEA,MAAM,YAAY,GAA0F,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,QAAQ,CAA0F;QA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,MAAM,CAAC,aAAa,CAAkB;AAE/E,QAAA,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,SAAiB,KAAK,SAAS,KAAK,MAAM,CAA8B;IACjG;IAEQ,eAAe,CAA8B,QAAgB,EAAE,MAAqC,EAAA;QAC3G,MAAM,gBAAgB,GAAqD,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;QAEpG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,QAAQ,EAAE,gBAAgB,CAAC;QACpD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IAClD;AAEQ,IAAA,YAAY,CAA8B,MAAqC,EAAA;AACtF,QAAA,OAAO,MAAqE;IAC7E;AACA;AAEM,MAAM,8BAA8B,GAAmC,IAAI,8BAA8B;;;;"}
1
+ {"version":3,"file":"registry.class.js","sources":["../../../../../../../src/class/api/authorization/policy/registry.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAcA,MAAM,oBAAoB,GAAkB,aAAa,CAAC,SAAS,CAAC,gCAAgC,CAAC;MAIxF,8BAA8B,CAAA;AACzB,IAAA,YAAY;AAEZ,IAAA,eAAe;AAEhC,IAAA,WAAA,GAAA;AACC,QAAA,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,EAAE;AAC7B,QAAA,IAAI,CAAC,eAAe,GAAG,cAAc,CAA0B,EAAE,CAAC;IACnE;AAEO,IAAA,MAAM,qBAAqB,CAAmD,MAA6B,EAAE,MAAe,EAAA;QAClI,MAAM,UAAU,GAAW,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;QACrD,MAAM,QAAQ,GAAW,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;QAC5D,oBAAoB,CAAC,KAAK,CAAC,CAAA,uCAAA,EAA0C,UAAU,CAAA,UAAA,EAAa,MAAM,CAAA,cAAA,EAAiB,QAAQ,CAAA,CAAA,CAAG,CAAC;QAE/H,MAAM,YAAY,GAA0F,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rB,QAAA,IAAI,CAAC,aAAa,GAAG,aAAa;IACnC;AAEO,IAAA,eAAe,CAAC,YAA2E,EAAA;AACjG,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC;AACrC,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAgE,EAAE,CAAgE,KAAK,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;IACvM;IAEO,OAAO,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,iBAAiB,EAAE;IAChC;IAEO,oBAAoB,GAAA;AAC1B,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM;IACjC;IAEQ,iBAAiB,GAAA;QACxB,OAAO,IAAI,CAAC,IAAI;IACjB;AACA;;;;"}
@@ -1,7 +1,9 @@
1
1
  import '../../../external/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js';
2
2
  import '../../../external/@elsikora/cladi/dist/esm/infrastructure/constant/console-logger-default-options.constant.js';
3
3
  import { createRegistry } from '../../../external/@elsikora/cladi/dist/esm/presentation/utility/create/registry.utility.js';
4
+ import { LoggerUtility } from '../../../utility/logger.utility.js';
4
5
 
6
+ const subscriberRegistryLogger = LoggerUtility.getLogger("ApiSubscriberRegistry");
5
7
  class ApiSubscriberRegistry {
6
8
  FUNCTION_SUBSCRIBERS;
7
9
  ROUTE_SUBSCRIBERS;
@@ -23,6 +25,10 @@ class ApiSubscriberRegistry {
23
25
  this.FUNCTION_SUBSCRIBERS.register(wrapper);
24
26
  }
25
27
  wrapper.addSubscriber(subscriber, properties.priority);
28
+ subscriberRegistryLogger.debug(`Total function subscribers for "${entityName}": ${wrapper.getSubscriberCount()}`);
29
+ subscriberRegistryLogger.debug(`Registered function subscriber entities: [${this.FUNCTION_SUBSCRIBERS.getAll()
30
+ .map((registeredWrapper) => registeredWrapper.getName())
31
+ .join(", ")}]`);
26
32
  }
27
33
  registerRouteSubscriber(properties, subscriber) {
28
34
  const entityName = properties.entity.name;
@@ -32,6 +38,10 @@ class ApiSubscriberRegistry {
32
38
  this.ROUTE_SUBSCRIBERS.register(wrapper);
33
39
  }
34
40
  wrapper.addSubscriber(subscriber, properties.priority);
41
+ subscriberRegistryLogger.debug(`Total route subscribers for "${entityName}": ${wrapper.getSubscriberCount()}`);
42
+ subscriberRegistryLogger.debug(`Registered route subscriber entities: [${this.ROUTE_SUBSCRIBERS.getAll()
43
+ .map((registeredWrapper) => registeredWrapper.getName())
44
+ .join(", ")}]`);
35
45
  }
36
46
  }
37
47
  class SubscriberWrapper {
@@ -48,6 +58,9 @@ class SubscriberWrapper {
48
58
  getName() {
49
59
  return this.name;
50
60
  }
61
+ getSubscriberCount() {
62
+ return this.subscribers.length;
63
+ }
51
64
  }
52
65
  const apiSubscriberRegistry = new ApiSubscriberRegistry();
53
66
 
@@ -1 +1 @@
1
- {"version":3,"file":"registry.class.js","sources":["../../../../../../src/class/api/subscriber/registry.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAQA,MAAM,qBAAqB,CAAA;AACT,IAAA,oBAAoB;AAEpB,IAAA,iBAAiB;AAElC,IAAA,WAAA,GAAA;AACC,QAAA,IAAI,CAAC,oBAAoB,GAAG,cAAc,CAA4D,EAAE,CAAC;AACzG,QAAA,IAAI,CAAC,iBAAiB,GAAG,cAAc,CAAyD,EAAE,CAAC;IACpG;AAEO,IAAA,sBAAsB,CAA2B,UAAkB,EAAA;QACzE,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,WAAW,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC,CAA2E,KAAK,CAAC,CAAC,UAAU,CAAqC;IAC7M;AAEO,IAAA,mBAAmB,CAA2B,UAAkB,EAAA;QACtE,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,WAAW,IAAI,EAAE,EAAE,GA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QAC/C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAsC,EAAE,CAAsC,KAAK,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC;IACnI;IAEA,OAAO,GAAA;QACN,OAAO,IAAI,CAAC,IAAI;IACjB;AACA;AAEM,MAAM,qBAAqB,GAA0B,IAAI,qBAAqB;;;;"}
1
+ {"version":3,"file":"registry.class.js","sources":["../../../../../../src/class/api/subscriber/registry.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AASA,MAAM,wBAAwB,GAAkB,aAAa,CAAC,SAAS,CAAC,uBAAuB,CAAC;AAEhG,MAAM,qBAAqB,CAAA;AACT,IAAA,oBAAoB;AAEpB,IAAA,iBAAiB;AAElC,IAAA,WAAA,GAAA;AACC,QAAA,IAAI,CAAC,oBAAoB,GAAG,cAAc,CAA4D,EAAE,CAAC;AACzG,QAAA,IAAI,CAAC,iBAAiB,GAAG,cAAc,CAAyD,EAAE,CAAC;IACpG;AAEO,IAAA,sBAAsB,CAA2B,UAAkB,EAAA;QACzE,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,WAAW,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC,CAA2E,KAAK,CAAC,CAAC,UAAU,CAAqC;IAC7M;AAEO,IAAA,mBAAmB,CAA2B,UAAkB,EAAA;QACtE,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,WAAW,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC,CAAwE,KAAK,CAAC,CAAC,UAAU,CAAkC;IACpM;IAEO,0BAA0B,CAA2B,UAA+C,EAAE,UAAqC,EAAA;AACjJ,QAAA,MAAM,UAAU,GAAW,UAAU,CAAC,MAAM,CAAC,IAAI;QACjD,IAAI,OAAO,GAA0E,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,UAAU,CAAC;QAE9H,IAAI,CAAC,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AO,EAAE;AAC9G,aAAA,IAAI,CAAC,IAAI,CAAC,CAAA,CAAA,CAAG,CACf;IACF;AACA;AAED,MAAM,iBAAiB,CAAA;AAEJ,IAAA,IAAA;AACV,IAAA,WAAA;IAFR,WAAA,CACkB,IAAY,EACtB,WAAA,GAA0D,EAAE,EAAA;QADlD,IAAA,CAAA,IAAI,GAAJ,IAAI;QACd,IAAA,CAAA,WAAW,GAAX,WAAW;IAChB;AAEH,IAAA,aAAa,CAAC,UAAa,EAAE,QAAA,GAAmB,CAAC,EAAA;QAChD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;QAC/C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAsC,EAAE,CAAsC,KAAK,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC;IACnI;IAEA,OAAO,GAAA;QACN,OAAO,IAAI,CAAC,IAAI;IACjB;IAEA,kBAAkB,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM;IAC/B;AACA;AAEM,MAAM,qBAAqB,GAA0B,IAAI,qBAAqB;;;;"}
@@ -7,7 +7,8 @@ import type { TMetadata } from '../type/class/index';
7
7
  */
8
8
  export declare class MetadataStorage {
9
9
  private static instance;
10
- private readonly STORAGE;
10
+ private readonly REGISTRY;
11
+ constructor();
11
12
  static getInstance(): MetadataStorage;
12
13
  getAllEntitiesMetadata(): Record<string, TMetadata>;
13
14
  getMetadata(entityName: string): TMetadata | undefined;
@@ -1,6 +1,39 @@
1
1
  import '../constant/decorator/api/function.constant.js';
2
2
  import { PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT } from '../constant/decorator/api/property-describe.constant.js';
3
+ import '../external/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js';
4
+ import '../external/@elsikora/cladi/dist/esm/infrastructure/constant/console-logger-default-options.constant.js';
5
+ import { createRegistry } from '../external/@elsikora/cladi/dist/esm/presentation/utility/create/registry.utility.js';
6
+ import { LoggerUtility } from '../utility/logger.utility.js';
3
7
 
8
+ const metadataStorageLogger = LoggerUtility.getLogger("MetadataStorage");
9
+ class EntityMetadataWrapper {
10
+ entityName;
11
+ PROPERTIES;
12
+ constructor(entityName) {
13
+ this.entityName = entityName;
14
+ this.PROPERTIES = new Map();
15
+ }
16
+ asRecord() {
17
+ return Object.fromEntries(this.PROPERTIES);
18
+ }
19
+ getName() {
20
+ return this.entityName;
21
+ }
22
+ getProperty(propertyName) {
23
+ return this.PROPERTIES.get(propertyName);
24
+ }
25
+ getPropertyCount() {
26
+ return this.PROPERTIES.size;
27
+ }
28
+ setProperty(propertyName, key, value) {
29
+ if (!this.PROPERTIES.has(propertyName)) {
30
+ this.PROPERTIES.set(propertyName, { [PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.METADATA_KEY]: {} });
31
+ }
32
+ // eslint-disable-next-line @elsikora/typescript/no-non-null-assertion
33
+ const entry = this.PROPERTIES.get(propertyName);
34
+ entry[key] = value;
35
+ }
36
+ }
4
37
  /**
5
38
  * Singleton class for storing and retrieving entity property metadata.
6
39
  * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#metadatastorage | API Reference - MetadataStorage}
@@ -8,7 +41,10 @@ import { PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT } from '../constant/decorator/
8
41
  */
9
42
  class MetadataStorage {
10
43
  static instance;
11
- STORAGE = new Map();
44
+ REGISTRY;
45
+ constructor() {
46
+ this.REGISTRY = createRegistry({});
47
+ }
12
48
  static getInstance() {
13
49
  if (!MetadataStorage.instance) {
14
50
  MetadataStorage.instance = new MetadataStorage();
@@ -17,18 +53,18 @@ class MetadataStorage {
17
53
  }
18
54
  getAllEntitiesMetadata() {
19
55
  const result = {};
20
- for (const [entityName, entityMetadata] of this.STORAGE.entries()) {
21
- result[entityName] = Object.fromEntries(entityMetadata);
56
+ for (const wrapper of this.REGISTRY.getAll()) {
57
+ result[wrapper.getName()] = wrapper.asRecord();
22
58
  }
23
59
  return result;
24
60
  }
25
61
  getMetadata(entityName, propertyName, key) {
26
- const entityMetadata = this.STORAGE.get(entityName);
27
- if (!entityMetadata)
62
+ const wrapper = this.REGISTRY.get(entityName);
63
+ if (!wrapper)
28
64
  return undefined;
29
65
  if (!propertyName)
30
- return Object.fromEntries(entityMetadata);
31
- const propertyMetadata = entityMetadata.get(propertyName);
66
+ return wrapper.asRecord();
67
+ const propertyMetadata = wrapper.getProperty(propertyName);
32
68
  if (!propertyMetadata)
33
69
  return undefined;
34
70
  if (!key)
@@ -36,17 +72,17 @@ class MetadataStorage {
36
72
  return propertyMetadata[key];
37
73
  }
38
74
  setMetadata(entityName, propertyName, key, value) {
39
- if (!this.STORAGE.has(entityName)) {
40
- this.STORAGE.set(entityName, new Map());
75
+ let wrapper = this.REGISTRY.get(entityName);
76
+ if (!wrapper) {
77
+ wrapper = new EntityMetadataWrapper(entityName);
78
+ this.REGISTRY.register(wrapper);
79
+ metadataStorageLogger.debug(`Registered new entity metadata wrapper for "${entityName}"`);
41
80
  }
42
- // eslint-disable-next-line @elsikora/typescript/no-non-null-assertion
43
- const entityMetadata = this.STORAGE.get(entityName);
44
- if (!entityMetadata.has(propertyName)) {
45
- entityMetadata.set(propertyName, { [PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.METADATA_KEY]: {} });
46
- }
47
- // eslint-disable-next-line @elsikora/typescript/no-non-null-assertion
48
- const propertyMetadata = entityMetadata.get(propertyName);
49
- propertyMetadata[key] = value;
81
+ wrapper.setProperty(propertyName, key, value);
82
+ metadataStorageLogger.debug(`Total properties for entity "${entityName}": ${wrapper.getPropertyCount()}`);
83
+ metadataStorageLogger.debug(`All registered entities: [${this.REGISTRY.getAll()
84
+ .map((w) => w.getName())
85
+ .join(", ")}]`);
50
86
  }
51
87
  }
52
88
 
@@ -1 +1 @@
1
- {"version":3,"file":"metadata-storage.class.js","sources":["../../../../src/class/metadata-storage.class.ts"],"sourcesContent":[null],"names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C,gBAAgB;AAAE,YAAA,OAAO,SAAS;AAEvC,QAAA,IAAI,CAAC,GAAG;AAAE,YAAA,OAAO,gBAAgB;AAEjC,QAAA,OAAO,gBAAgB,CAAC,GAAG,CAAC;IAC7B;AAEO,IAAA,WAAW,CAAiC,UAAkB,EAAE,YAA6B,EAAE,GAAM,EAAE,KAAwB,EAAA;QACrI,IAAI,OAAO,GAAsC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC;QAE9E,IAAI,CAAC,OAAO,EAAE;AACb,YAAA,OAAO,GAAG,IAAI,qBAAqB,CAAC,UAAU,CAAC;AAC/C,YAAA,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC;AAC/B,YAAA,qBAAqB,CAAC,KAAK,CAAC,+CAA+C,UAAU,CAAA,CAAA,CAAG,CAAC;QAC1F;QAEA,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,GAAG,EAAE,KAAK,CAAC;AAC7C,QAAA,qBAAqB,CAAC,KAAK,CAAC,CAAA,6BAAA,EAAgC,UAAU,CAAA,GAAA,EAAM,OAAO,CAAC,gBAAgB,EAAE,CAAA,CAAE,CAAC;QACzG,qBAAqB,CAAC,KAAK,CAC1B,CAAA,0BAAA,EAA6B,IAAI,CAAC,QAAQ,CAAC,MAAM;aAC/C,GAAG,CAAC,CAAC,CAAwB,KAAK,CAAC,CAAC,OAAO,EAAE;AAC7C,aAAA,IAAI,CAAC,IAAI,CAAC,CAAA,CAAA,CAAG,CACf;IACF;AACA;;;;"}
@@ -0,0 +1,4 @@
1
+ export declare const DTO_AUTO_CONTEXT_METADATA_KEY: string;
2
+ export declare const AUTO_CONTEXT_DTO_CONSTANT: {
3
+ readonly METADATA_KEY: string;
4
+ };
@@ -0,0 +1,7 @@
1
+ const DTO_AUTO_CONTEXT_METADATA_KEY = "crud-automator:auto-dto-context";
2
+ const AUTO_CONTEXT_DTO_CONSTANT = {
3
+ METADATA_KEY: DTO_AUTO_CONTEXT_METADATA_KEY,
4
+ };
5
+
6
+ export { AUTO_CONTEXT_DTO_CONSTANT, DTO_AUTO_CONTEXT_METADATA_KEY };
7
+ //# sourceMappingURL=auto-context.constant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auto-context.constant.js","sources":["../../../../../src/constant/dto/auto-context.constant.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,6BAA6B,GAAW;AAE9C,MAAM,yBAAyB,GAElC;AACH,IAAA,YAAY,EAAE,6BAA6B;;;;;"}
@@ -1,3 +1,4 @@
1
+ export { AUTO_CONTEXT_DTO_CONSTANT } from './auto-context.constant';
1
2
  export { EXCEPTION_DTO_CONSTANT } from './exception.constant';
2
3
  export { LIST_DTO_CONSTANT } from './list.constant';
3
4
  export { TRANSFORMER_VALUE_DTO_CONSTANT } from './transformer-value.constant';
@@ -5,5 +5,6 @@ import type { IApiAuthorizationPolicySubscriberProperties } from '../../../inter
5
5
  * @template E - Entity type extending IApiBaseEntity
6
6
  * @param {IApiAuthorizationPolicySubscriberProperties<E>} properties - Policy properties.
7
7
  * @returns {ClassDecorator} Class decorator registering metadata for discovery.
8
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-authorization/api-authorization-policy | API Reference - ApiAuthorizationPolicy}
8
9
  */
9
10
  export declare function ApiAuthorizationPolicy<E extends IApiBaseEntity>(properties: IApiAuthorizationPolicySubscriberProperties<E>): ClassDecorator;
@@ -5,6 +5,7 @@ import { AUTHORIZATION_POLICY_DECORATOR_CONSTANT } from '../../../constant/class
5
5
  * @template E - Entity type extending IApiBaseEntity
6
6
  * @param {IApiAuthorizationPolicySubscriberProperties<E>} properties - Policy properties.
7
7
  * @returns {ClassDecorator} Class decorator registering metadata for discovery.
8
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-authorization/api-authorization-policy | API Reference - ApiAuthorizationPolicy}
8
9
  */
9
10
  function ApiAuthorizationPolicy(properties) {
10
11
  const normalizedPolicyId = properties.policyId ?? `${properties.entity.name?.toLowerCase() ?? "unknown"}${AUTHORIZATION_POLICY_DECORATOR_CONSTANT.DEFAULT_POLICY_ID_SUFFIX}`;
@@ -1 +1 @@
1
- {"version":3,"file":"policy.decorator.js","sources":["../../../../../../src/decorator/api/authorization/policy.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;;;;;AAKG;AACG,SAAU,sBAAsB,CAA2B,UAA0D,EAAA;IAC1H,MAAM,kBAAkB,GAAW,UAAU,CAAC,QAAQ,IAAI,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,SAAS,GAAG,uCAAuC,CAAC,wBAAwB,CAAA,CAAE;AAEpL,IAAA,MAAM,QAAQ,GAAmD;QAChE,WAAW,EAAE,UAAU,CAAC,WAAW;QACnC,MAAM,EAAE,UAAU,CAAC,MAAM;AACzB,QAAA,QAAQ,EAAE,kBAAkB;AAC5B,QAAA,QAAQ,EAAE,UAAU,CAAC,QAAQ,IAAI,CAAC;KAClC;IAED,OAAO,CAAC,MAAc,KAAI;QACzB,OAAO,CAAC,cAAc,CAAC,uCAAuC,CAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,CAAC;AAC/F,IAAA,CAAC;AACF;;;;"}
1
+ {"version":3,"file":"policy.decorator.js","sources":["../../../../../../src/decorator/api/authorization/policy.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;;;;;;AAMG;AACG,SAAU,sBAAsB,CAA2B,UAA0D,EAAA;IAC1H,MAAM,kBAAkB,GAAW,UAAU,CAAC,QAAQ,IAAI,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,SAAS,GAAG,uCAAuC,CAAC,wBAAwB,CAAA,CAAE;AAEpL,IAAA,MAAM,QAAQ,GAAmD;QAChE,WAAW,EAAE,UAAU,CAAC,WAAW;QACnC,MAAM,EAAE,UAAU,CAAC,MAAM;AACzB,QAAA,QAAQ,EAAE,kBAAkB;AAC5B,QAAA,QAAQ,EAAE,UAAU,CAAC,QAAQ,IAAI,CAAC;KAClC;IAED,OAAO,CAAC,MAAc,KAAI;QACzB,OAAO,CAAC,cAAc,CAAC,uCAAuC,CAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,CAAC;AAC/F,IAAA,CAAC;AACF;;;;"}
@@ -21,7 +21,7 @@ import type { TApiControllerConstructor } from '../../../type/decorator/api/cont
21
21
  * })
22
22
  * export class UserController {}
23
23
  * ```
24
- * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apicontroller | API Reference - ApiController}
24
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-controller/api-controller | API Reference - ApiController}
25
25
  * @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/controllers | Core Concepts - Controllers}
26
26
  */
27
27
  export declare const ApiController: <E extends IApiBaseEntity>(options: IApiControllerProperties<E>) => <T extends TApiControllerConstructor>(target: T) => T;
@@ -20,7 +20,7 @@ import { ApiControllerFactory } from '../../../factory/api/controller.factory.js
20
20
  * })
21
21
  * export class UserController {}
22
22
  * ```
23
- * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apicontroller | API Reference - ApiController}
23
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-controller/api-controller | API Reference - ApiController}
24
24
  * @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/controllers | Core Concepts - Controllers}
25
25
  */
26
26
  const ApiController = (options) => (target) => {
@@ -2,5 +2,6 @@
2
2
  * Decorator that marks a controller as observable, allowing it to be monitored by subscribers.
3
3
  * When a controller is marked as observable, its methods can be intercepted by subscribers that listen for specific events.
4
4
  * @returns {ClassDecorator} - A decorator that marks a controller as observable.
5
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-controller/api-controller-observable | API Reference - ApiControllerObservable}
5
6
  */
6
7
  export declare function ApiControllerObservable(): ClassDecorator;
@@ -4,6 +4,7 @@ import { CONTROLLER_API_DECORATOR_CONSTANT } from '../../../constant/decorator/a
4
4
  * Decorator that marks a controller as observable, allowing it to be monitored by subscribers.
5
5
  * When a controller is marked as observable, its methods can be intercepted by subscribers that listen for specific events.
6
6
  * @returns {ClassDecorator} - A decorator that marks a controller as observable.
7
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-controller/api-controller-observable | API Reference - ApiControllerObservable}
7
8
  */
8
9
  function ApiControllerObservable() {
9
10
  return (target) => {
@@ -1 +1 @@
1
- {"version":3,"file":"observable.decorator.js","sources":["../../../../../../src/decorator/api/controller/observable.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;AAIG;SACa,uBAAuB,GAAA;IACtC,OAAO,CAAC,MAAc,KAAI;QACzB,OAAO,CAAC,cAAc,CAAC,iCAAiC,CAAC,uBAAuB,EAAE,IAAI,EAAE,MAAM,CAAC;AAChG,IAAA,CAAC;AACF;;;;"}
1
+ {"version":3,"file":"observable.decorator.js","sources":["../../../../../../src/decorator/api/controller/observable.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;;AAKG;SACa,uBAAuB,GAAA;IACtC,OAAO,CAAC,MAAc,KAAI;QACzB,OAAO,CAAC,cAAc,CAAC,iCAAiC,CAAC,uBAAuB,EAAE,IAAI,EAAE,MAAM,CAAC;AAChG,IAAA,CAAC;AACF;;;;"}
@@ -2,5 +2,6 @@
2
2
  * Decorator that marks a controller as securable, enabling automatic RBAC guard application.
3
3
  * Without this decorator the authorization guard short-circuits and controller methods remain unsecured.
4
4
  * @returns {ClassDecorator} Class decorator that enables authorization for the controller.
5
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-controller/api-controller-securable | API Reference - ApiControllerSecurable}
5
6
  */
6
7
  export declare function ApiControllerSecurable(): ClassDecorator;
@@ -4,6 +4,7 @@ import { CONTROLLER_API_DECORATOR_CONSTANT } from '../../../constant/decorator/a
4
4
  * Decorator that marks a controller as securable, enabling automatic RBAC guard application.
5
5
  * Without this decorator the authorization guard short-circuits and controller methods remain unsecured.
6
6
  * @returns {ClassDecorator} Class decorator that enables authorization for the controller.
7
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-controller/api-controller-securable | API Reference - ApiControllerSecurable}
7
8
  */
8
9
  function ApiControllerSecurable() {
9
10
  return (target) => {
@@ -1 +1 @@
1
- {"version":3,"file":"securable.decorator.js","sources":["../../../../../../src/decorator/api/controller/securable.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;AAIG;SACa,sBAAsB,GAAA;IACrC,OAAO,CAAC,MAAc,KAAI;QACzB,OAAO,CAAC,cAAc,CAAC,iCAAiC,CAAC,sBAAsB,EAAE,IAAI,EAAE,MAAM,CAAC;AAC/F,IAAA,CAAC;AACF;;;;"}
1
+ {"version":3,"file":"securable.decorator.js","sources":["../../../../../../src/decorator/api/controller/securable.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;;AAKG;SACa,sBAAsB,GAAA;IACrC,OAAO,CAAC,MAAc,KAAI;QACzB,OAAO,CAAC,cAAc,CAAC,iCAAiC,CAAC,sBAAsB,EAAE,IAAI,EAAE,MAAM,CAAC;AAC/F,IAAA,CAAC;AACF;;;;"}
@@ -5,5 +5,6 @@ import type { IApiFunctionProperties } from '../../../interface/decorator/api/in
5
5
  * @template E The entity type
6
6
  * @param {IApiFunctionProperties<E>} properties - Configuration properties for the create function
7
7
  * @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity creation
8
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-create | API Reference - ApiFunctionCreate}
8
9
  */
9
10
  export declare function ApiFunctionCreate<E extends IApiBaseEntity>(properties: IApiFunctionProperties<E>): (target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
@@ -13,6 +13,7 @@ import { LoggerUtility } from '../../../utility/logger.utility.js';
13
13
  * @template E The entity type
14
14
  * @param {IApiFunctionProperties<E>} properties - Configuration properties for the create function
15
15
  * @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity creation
16
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-create | API Reference - ApiFunctionCreate}
16
17
  */
17
18
  function ApiFunctionCreate(properties) {
18
19
  const { entity } = properties;
@@ -1 +1 @@
1
- {"version":3,"file":"create.decorator.js","sources":["../../../../../../src/decorator/api/function/create.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAgBA;;;;;AAKG;AACG,SAAU,iBAAiB,CAA2B,UAAqC,EAAA;AAChG,IAAA,MAAM,EAAE,MAAM,EAAE,GAA8B,UAAU;AAExD,IAAA,OAAO,UAAU,OAAgB,EAAE,YAAoB,EAAE,UAA8B,EAAA;AACtF,QAAA,UAAU,CAAC,KAAK,GAAG,gBAAqD,gBAAiD,EAAE,YAA4B,EAAA;AACtJ,YAAA,MAAM,cAAc,GAAM,IAAI,MAAM,EAAE;AAEtC,YAAA,MAAM,gBAAgB,GAAwG;gBAC7H,IAAI,EAAE,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE;AACnD,gBAAA,MAAM,EAAE,cAAc;gBACtB,aAAa,EAAE,gBAAgB,CAAC,MAAM;AACtC,gBAAA,MAAM,EAAE,gBAAgB;aACxB;YAED,MAAM,MAAM,GAAgD,MAAM,qBAAqB,CAAC,0BAA0B,CAAC,IAAI,CAAC,WAA6D,EAAE,cAAc,EAAE,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,CAAC,MAAM,EAAE,gBAAgB,CAAC;YAE9Q,IAAI,MAAM,EAAE;AACX,gBAAA,gBAAgB,CAAC,MAAM,GAAG,MAAM;YACjC;AAEA,YAAA,MAAM,UAAU,GAAk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cAAc;AACvC,SAAA,CAAC,CACF;IACF;AACD;;;;"}
1
+ {"version":3,"file":"create.decorator.js","sources":["../../../../../../src/decorator/api/function/create.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAgBA;;;;;;AAMG;AACG,SAAU,iBAAiB,CAA2B,UAAqC,EAAA;AAChG,IAAA,MAAM,EAAE,MAAM,EAAE,GAA8B,UAAU;AAExD,IAAA,OAAO,UAAU,OAAgB,EAAE,YAAoB,EAAE,UAA8B,EAAA;AACtF,QAAA,UAAU,CAAC,KAAK,GAAG,gBAAqD,gBAAiD,EAAE,YAA4B,EAAA;AACtJ,YAAA,MAAM,cAAc,GAAM,IAAI,MAAM,EAAE;AAEtC,YAAA,MAAM,gBAAgB,GAAwG;gBAC7H,IAAI,EAAE,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE;AACnD,gBAAA,MAAM,EAAE,cAAc;gBACtB,aAAa,EAAE,gBAAgB,CAAC,MAAM;AACtC,gBAAA,MAAM,EAAE,gBAAgB;aACxB;YAED,MAAM,MAAM,GAAgD,MAAM,qBAAqB,CAAC,0BAA0B,CAAC,IAAI,CAAC,WAA6D,EAAE,cAAc,EAAE,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,CAAC,MAAM,EAAE,gBAAgB,CAAC;YAE9Q,IAAI,MAAM,EAAE;AACX,gBAAA,gBAAgB,CAAC,MAAM,GAAG,MAAM;YACjC;AAEA,YAAA,MAAM,UAAU,GAAkB,IAAI,CAAC,UAAU;YAEjD,IAAI,CAAC,UAAU,EAAE;AAChB,gBAAA,MAAM,qBAAqB,GAA4E;oBACtG,IAAI,EAAE,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE;AACnD,oBAAA,MAAM,EAAE,cAAc;oBACtB,aAAa,EAAE,gBAAgB,CAAC,MAAM;iBACtC;gBAED,MAAM,qBAAqB,CAAC,+BAA+B,CAAC,IAAI,CAAC,WAA6D,EAAE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EAAE;AAChB,YAAA,OAAO,WAAW;QACnB;AAEA,QAAA,OAAO,MAAM;IACd;IAAE,OAAO,KAAK,EAAE;AACf,QAAA,MAAM,cAAc,GAAM,IAAI,MAAM,EAAE;AAEtC,QAAA,MAAM,qBAAqB,GAA4E;AACtG,YAAA,IAAI,EAAE,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE;AAC9C,YAAA,MAAM,EAAE,cAAc;YACtB,aAAa,EAAE,gBAAgB,CAAC,MAAM;SACtC;AAED,QAAA,IAAI,KAAK,YAAY,aAAa,EAAE;YACnC,MAAM,qBAAqB,CAAC,+BAA+B,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAK,CAAC;AAEjL,YAAA,MAAM,KAAK;QACZ;AAEA,QAAA,aAAa,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,IAAI,CAAA,CAAA,CAAG,EAAE,KAAK,CAAC;QACpG,MAAM,qBAAqB,CAAC,+BAA+B,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAc,CAAC;AAE1L,QAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,kBAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;IACF;AACD;;;;"}
@@ -6,5 +6,6 @@ import type { TApiFunctionProperties } from '../../../type/decorator/api/functio
6
6
  * @param {TApiFunctionProperties<E>} properties - Configuration properties for the API function
7
7
  * @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that applies the appropriate function decorator
8
8
  * @template E - The entity type for the API function
9
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function | API Reference - ApiFunction}
9
10
  */
10
11
  export declare function ApiFunction<E extends IApiBaseEntity, R>(properties: TApiFunctionProperties<E>): (target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
@@ -26,6 +26,7 @@ import { ApiFunctionUpdate } from './update.decorator.js';
26
26
  * @param {TApiFunctionProperties<E>} properties - Configuration properties for the API function
27
27
  * @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that applies the appropriate function decorator
28
28
  * @template E - The entity type for the API function
29
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function | API Reference - ApiFunction}
29
30
  */
30
31
  // eslint-disable-next-line @elsikora/typescript/no-unnecessary-type-parameters
31
32
  function ApiFunction(properties) {
@@ -1 +1 @@
1
- {"version":3,"file":"decorator.js","sources":["../../../../../../src/decorator/api/function/decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAcA;;;;;;AAMG;AACH;AACM,SAAU,WAAW,CAA8B,UAAqC,EAAA;AAC7F,IAAA,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAA8B,UAAU;AAE9D,IAAA,OAAO,UAAU,OAAgB,EAAE,WAAmB,EAAE,UAA8B,EAAA;AACrF,QAAA,MAAM,cAAc,GAAY,UAAU,CAAC,KAAK;;AAGhD,QAAA,UAAU,CAAC,KAAK,GAAG,UAA+C,GAAG,UAA0B,EAAA;AAC9F,YAAA,IAAI,iBAA+G;YAEnH,QAAQ,IAAI;AACX,gBAAA,KAAK,gBAAgB,CAAC,MAAM,EAAE;AAC7B,oBAAA,iBAAiB,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;oBAEjD;gBACD;AAEA,gBAAA,KAAK,gBAAgB,CAAC,MAAM,EAAE;AAC7B,oBAAA,iBAAiB,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;oBAEjD;gBACD;AAEA,gBAA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import type { IApiFunctionProperties } from '../../../interface/decorator/api/in
5
5
  * @template E The entity type
6
6
  * @param {IApiFunctionProperties<E>} properties - Configuration properties for the delete function
7
7
  * @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity deletion
8
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-delete | API Reference - ApiFunctionDelete}
8
9
  */
9
10
  export declare function ApiFunctionDelete<E extends IApiBaseEntity>(properties: IApiFunctionProperties<E>): (target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
@@ -26,6 +26,7 @@ import { ApiFunctionGet } from './get.decorator.js';
26
26
  * @template E The entity type
27
27
  * @param {IApiFunctionProperties<E>} properties - Configuration properties for the delete function
28
28
  * @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity deletion
29
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-delete | API Reference - ApiFunctionDelete}
29
30
  */
30
31
  function ApiFunctionDelete(properties) {
31
32
  const { entity } = properties;
@@ -1 +1 @@
1
- {"version":3,"file":"delete.decorator.js","sources":["../../../../../../src/decorator/api/function/delete.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkBA;;;;;AAKG;AACG,SAAU,iBAAiB,CAA2B,UAAqC,EAAA;AAChG,IAAA,MAAM,EAAE,MAAM,EAAE,GAA8B,UAAU;IACxD,MAAM,YAAY,GAAiG,cAAc,CAAI,EAAE,MAAM,EAAE,CAAC;AAChJ,IAAA,IAAI,WAAmG;AAEvG,IAAA,OAAO,UAAU,OAAgB,EAAE,YAAoB,EAAE,UAA8B,EAAA;AACtF,QAAA,UAAU,CAAC,KAAK,GAAG,gBAAqD,QAAuC,EAAE,YAA4B,EAAA;AAC5I,YAAA,MAAM,cAAc,GAAM,IAAI,MAAM,EAA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AE,cAAc,EAAE,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,CAAC,KAAK,EAAE,gBAAgB,CAAC;QAE7L,IAAI,WAAW,EAAE;AAChB,YAAA,OAAO,WAAW;QACnB;AAEA,QAAA,OAAO,MAAM;IACd;IAAE,OAAO,KAAK,EAAE;AACf,QAAA,MAAM,cAAc,GAAM,IAAI,MAAM,EAAE;AAEtC,QAAA,MAAM,qBAAqB,GAA4E;AACtG,YAAA,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE;AAC5C,YAAA,MAAM,EAAE,cAAc;YACtB,aAAa,EAAE,gBAAgB,CAAC,MAAM;SACtC;AAED,QAAA,IAAI,KAAK,YAAY,aAAa,EAAE;YACnC,MAAM,qBAAqB,CAAC,+BAA+B,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAK,CAAC;AAEjL,YAAA,MAAM,KAAK;QACZ;AAEA,QAAA,aAAa,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,IAAI,CAAA,CAAA,CAAG,EAAE,KAAK,CAAC;QACpG,MAAM,qBAAqB,CAAC,+BAA+B,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAc,CAAC;AAE1L,QAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,kBAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;IACF;AACD;;;;"}
1
+ {"version":3,"file":"delete.decorator.js","sources":["../../../../../../src/decorator/api/function/delete.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkBA;;;;;;AAMG;AACG,SAAU,iBAAi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AAE,qBAAqB,EAAE,KAAc,CAAC;AAE1L,QAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,kBAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;IACF;AACD;;;;"}
@@ -5,5 +5,6 @@ import type { IApiFunctionProperties } from '../../../interface/decorator/api/in
5
5
  * @template E The entity type
6
6
  * @param {IApiFunctionProperties<E>} properties - Configuration properties for the get-list function
7
7
  * @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity list retrieval
8
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-get-list | API Reference - ApiFunctionGetList}
8
9
  */
9
10
  export declare function ApiFunctionGetList<E extends IApiBaseEntity>(properties: IApiFunctionProperties<E>): (target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
@@ -25,6 +25,7 @@ import { LoggerUtility } from '../../../utility/logger.utility.js';
25
25
  * @template E The entity type
26
26
  * @param {IApiFunctionProperties<E>} properties - Configuration properties for the get-list function
27
27
  * @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity list retrieval
28
+ * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-get-list | API Reference - ApiFunctionGetList}
28
29
  */
29
30
  function ApiFunctionGetList(properties) {
30
31
  const { entity } = properties;
@@ -1 +1 @@
1
- {"version":3,"file":"get-list.decorator.js","sources":["../../../../../../src/decorator/api/function/get-list.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAgBA;;;;;AAKG;AACG,SAAU,kBAAkB,CAA2B,UAAqC,EAAA;AACjG,IAAA,MAAM,EAAE,MAAM,EAAE,GAA8B,UAAU;AAExD,IAAA,OAAO,UAAU,OAAgB,EAAE,YAAoB,EA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5L,QAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,kBAAkB,CAAC,mBAAmB;AAC5C,SAAA,CAAC,CACF;IACF;AACD;;;;"}
1
+ {"version":3,"file":"get-list.decorator.js","sources":["../../../../../../src/decorator/api/function/get-list.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAgBA;;;;;;AAMG;AACG,SAAU,kBAAkB,CAA2B,UAAqC,EAAA;AACjG,IAAA,MAAM,EAAE,MAAM,EAAE,GAA8B,UAAU;AAExD,IAAA,OAAO,UAAU,OAAgB,EAAE,YAAoB,EAAE,UAA8B,EAAA;AACtF,QAAA,UAAU,CAAC,KAAK,GAAG,gBAAqD,iBAAmD,EAAE,YAA4B,EAAA;AACxJ,YAAA,MAAM,cAAc,GAAM,IAAI,MAAM,EAAE;AAEtC,YAAA,MAAM,gBAAgB,GAAgF;gBACrG,IAAI,EAAE,EAAE,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE;AACtE,gBAAA,MAAM,EAAE,cAAc;gBACtB,aAAa,EAAE,gBAAgB,CAAC,QAAQ;AACxC,gBAAA,MAAM,EAAE,iBAAiB;aACzB;YAED,MAAM,MAAM,GAAmC,MAAM,qBAAqB,CAAC,0BAA0B,CAAC,IAAI,CAAC,WAA6D,EAAE,cAAc,EAAE,gBAAgB,CAAC,QAAQ,EAAE,oBAAoB,CAAC,MAAM,EAAE,gBAAgB,CAAC;YAEnQ,IAAI,MAAM,EAAE;AACX,gBAAA,gBAAgB,CAAC,MAAM,GAAG,MAAM;YACjC;AAEA,YAAA,MAAM,UAAU,GAAkB,IAAI,CAAC,UAAU;YAEjD,IAAI,CAAC,UAAU,EAAE;AAChB,gBAAA,MAAM,qBAAqB,GAA4E;oBACtG,IAAI,EAAE,EAAE,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,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