@elsikora/nestjs-crud-automator 1.2.0 → 1.2.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 (417) hide show
  1. package/dist/class/api/base-service.class.d.ts +5 -5
  2. package/dist/class/api/base-service.class.js +19 -10
  3. package/dist/class/api/base-service.class.js.map +1 -1
  4. package/dist/class/api/index.d.ts +0 -1
  5. package/dist/class/api/index.js +0 -1
  6. package/dist/class/api/index.js.map +1 -1
  7. package/dist/class/index.d.ts +1 -0
  8. package/dist/class/index.js +1 -0
  9. package/dist/class/index.js.map +1 -1
  10. package/dist/class/utility/dto/index.d.ts +2 -0
  11. package/dist/{decorator/api/route → class/utility/dto}/index.js +2 -2
  12. package/dist/class/utility/dto/index.js.map +1 -0
  13. package/dist/class/utility/dto/property/factory/boolean.class.d.ts +5 -0
  14. package/dist/class/utility/dto/property/factory/boolean.class.js +15 -0
  15. package/dist/class/utility/dto/property/factory/boolean.class.js.map +1 -0
  16. package/dist/class/utility/dto/property/factory/date.class.d.ts +5 -0
  17. package/dist/class/utility/dto/property/factory/date.class.js +15 -0
  18. package/dist/class/utility/dto/property/factory/date.class.js.map +1 -0
  19. package/dist/class/utility/dto/property/factory/index.d.ts +6 -0
  20. package/dist/{dto/exception → class/utility/dto/property/factory}/index.js +6 -7
  21. package/dist/class/utility/dto/property/factory/index.js.map +1 -0
  22. package/dist/class/utility/dto/property/factory/number.class.d.ts +5 -0
  23. package/dist/class/utility/dto/property/factory/number.class.js +19 -0
  24. package/dist/class/utility/dto/property/factory/number.class.js.map +1 -0
  25. package/dist/class/utility/dto/property/factory/object.class.d.ts +5 -0
  26. package/dist/class/utility/dto/property/factory/object.class.js +17 -0
  27. package/dist/class/utility/dto/property/factory/object.class.js.map +1 -0
  28. package/dist/class/utility/dto/property/factory/relation.class.d.ts +5 -0
  29. package/dist/class/utility/dto/property/factory/relation.class.js +11 -0
  30. package/dist/class/utility/dto/property/factory/relation.class.js.map +1 -0
  31. package/dist/class/utility/dto/property/factory/string.class.d.ts +5 -0
  32. package/dist/class/utility/dto/property/factory/string.class.js +15 -0
  33. package/dist/class/utility/dto/property/factory/string.class.js.map +1 -0
  34. package/dist/class/utility/dto/property/factory/uuid.class.d.ts +5 -0
  35. package/dist/class/utility/dto/property/factory/uuid.class.js +11 -0
  36. package/dist/class/utility/dto/property/factory/uuid.class.js.map +1 -0
  37. package/dist/class/utility/dto/property/index.d.ts +1 -0
  38. package/dist/{dto → class/utility/dto/property}/index.js +1 -1
  39. package/dist/class/utility/dto/property/index.js.map +1 -0
  40. package/dist/class/utility/dto/strategy/body.class.d.ts +6 -0
  41. package/dist/class/utility/dto/strategy/body.class.js +21 -0
  42. package/dist/class/utility/dto/strategy/body.class.js.map +1 -0
  43. package/dist/class/utility/dto/strategy/index.d.ts +4 -0
  44. package/dist/class/utility/dto/strategy/index.js +21 -0
  45. package/dist/class/utility/dto/strategy/index.js.map +1 -0
  46. package/dist/class/utility/dto/strategy/query.class.d.ts +6 -0
  47. package/dist/class/utility/dto/strategy/query.class.js +18 -0
  48. package/dist/class/utility/dto/strategy/query.class.js.map +1 -0
  49. package/dist/class/utility/dto/strategy/request.class.d.ts +6 -0
  50. package/dist/class/utility/dto/strategy/request.class.js +26 -0
  51. package/dist/class/utility/dto/strategy/request.class.js.map +1 -0
  52. package/dist/class/utility/dto/strategy/response.class.d.ts +6 -0
  53. package/dist/class/utility/dto/strategy/response.class.js +18 -0
  54. package/dist/class/utility/dto/strategy/response.class.js.map +1 -0
  55. package/dist/class/utility/index.d.ts +1 -0
  56. package/dist/class/utility/index.js +18 -0
  57. package/dist/class/utility/index.js.map +1 -0
  58. package/dist/constant/decorator/api/controller.constant.d.ts +1 -1
  59. package/dist/constant/decorator/api/controller.constant.js +2 -2
  60. package/dist/constant/decorator/api/controller.constant.js.map +1 -1
  61. package/dist/constant/decorator/api/function.constant.d.ts +1 -1
  62. package/dist/constant/decorator/api/function.constant.js +2 -2
  63. package/dist/constant/decorator/api/function.constant.js.map +1 -1
  64. package/dist/constant/decorator/api/property-describe.constant.d.ts +1 -1
  65. package/dist/constant/decorator/api/property-describe.constant.js +2 -2
  66. package/dist/constant/decorator/api/property-describe.constant.js.map +1 -1
  67. package/dist/constant/factory/dto/get-list-query.constant.d.ts +1 -2
  68. package/dist/constant/factory/dto/get-list-query.constant.js +2 -2
  69. package/dist/constant/factory/dto/get-list-query.constant.js.map +1 -1
  70. package/dist/constant/interface/api/filter.constant.d.ts +1 -1
  71. package/dist/constant/interface/api/filter.constant.js +2 -2
  72. package/dist/constant/interface/api/filter.constant.js.map +1 -1
  73. package/dist/constant/interface/api/index.d.ts +1 -0
  74. package/dist/constant/interface/api/index.js +1 -0
  75. package/dist/constant/interface/api/index.js.map +1 -1
  76. package/dist/constant/interface/api/property/string.constant.d.ts +1 -1
  77. package/dist/constant/interface/api/property/string.constant.js +2 -2
  78. package/dist/constant/interface/api/property/string.constant.js.map +1 -1
  79. package/dist/constant/interface/api/property/wallet.constant.d.ts +1 -1
  80. package/dist/constant/interface/api/property/wallet.constant.js +2 -2
  81. package/dist/constant/interface/api/property/wallet.constant.js.map +1 -1
  82. package/dist/constant/utility/dto/constant.d.ts +6 -0
  83. package/dist/constant/utility/dto/constant.js +27 -0
  84. package/dist/constant/utility/dto/constant.js.map +1 -0
  85. package/dist/decorator/api/controller.decorator.d.ts +3 -7
  86. package/dist/decorator/api/controller.decorator.js +2 -2
  87. package/dist/decorator/api/controller.decorator.js.map +1 -1
  88. package/dist/decorator/api/function/create.decorator.d.ts +2 -4
  89. package/dist/decorator/api/function/create.decorator.js +25 -17
  90. package/dist/decorator/api/function/create.decorator.js.map +1 -1
  91. package/dist/decorator/api/function/decorator.d.ts +3 -7
  92. package/dist/decorator/api/function/decorator.js +20 -16
  93. package/dist/decorator/api/function/decorator.js.map +1 -1
  94. package/dist/decorator/api/function/delete.decorator.d.ts +3 -3
  95. package/dist/decorator/api/function/delete.decorator.js +6 -6
  96. package/dist/decorator/api/function/delete.decorator.js.map +1 -1
  97. package/dist/decorator/api/function/get-list.decorator.d.ts +3 -3
  98. package/dist/decorator/api/function/get-list.decorator.js +9 -8
  99. package/dist/decorator/api/function/get-list.decorator.js.map +1 -1
  100. package/dist/decorator/api/function/get.decorator.d.ts +3 -3
  101. package/dist/decorator/api/function/get.decorator.js +8 -9
  102. package/dist/decorator/api/function/get.decorator.js.map +1 -1
  103. package/dist/decorator/api/function/update.decorator.d.ts +3 -3
  104. package/dist/decorator/api/function/update.decorator.js +10 -14
  105. package/dist/decorator/api/function/update.decorator.js.map +1 -1
  106. package/dist/decorator/api/index.d.ts +0 -1
  107. package/dist/decorator/api/index.js +0 -1
  108. package/dist/decorator/api/index.js.map +1 -1
  109. package/dist/decorator/api/method.decorator.js +58 -0
  110. package/dist/decorator/api/method.decorator.js.map +1 -1
  111. package/dist/decorator/api/property/date.decorator.js.map +1 -1
  112. package/dist/decorator/api/property/describe.decorator.js +1 -1
  113. package/dist/decorator/api/property/describe.decorator.js.map +1 -1
  114. package/dist/decorator/api/property/string.decorator.js +13 -6
  115. package/dist/decorator/api/property/string.decorator.js.map +1 -1
  116. package/dist/decorator/api/property/wallet.decorator.js +3 -3
  117. package/dist/decorator/api/property/wallet.decorator.js.map +1 -1
  118. package/dist/decorator/api/service.decorator.d.ts +3 -6
  119. package/dist/decorator/api/service.decorator.js +23 -49
  120. package/dist/decorator/api/service.decorator.js.map +1 -1
  121. package/dist/enum/decorator/api/authentication-type.enum.d.ts +1 -0
  122. package/dist/enum/decorator/api/authentication-type.enum.js +1 -0
  123. package/dist/enum/decorator/api/authentication-type.enum.js.map +1 -1
  124. package/dist/enum/decorator/api/dto-type.enum.d.ts +3 -3
  125. package/dist/enum/decorator/api/dto-type.enum.js +2 -2
  126. package/dist/enum/decorator/api/dto-type.enum.js.map +1 -1
  127. package/dist/enum/decorator/api/property/desribe-type.enum.d.ts +2 -1
  128. package/dist/enum/decorator/api/property/desribe-type.enum.js +1 -0
  129. package/dist/enum/decorator/api/property/desribe-type.enum.js.map +1 -1
  130. package/dist/factory/api/controller.factory.d.ts +8 -8
  131. package/dist/factory/api/controller.factory.js +89 -55
  132. package/dist/factory/api/controller.factory.js.map +1 -1
  133. package/dist/index.d.ts +0 -1
  134. package/dist/index.js +0 -1
  135. package/dist/index.js.map +1 -1
  136. package/dist/interceptor/correlation-id-response-body.interceptor.js +0 -8
  137. package/dist/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
  138. package/dist/interface/class/dto/index.d.ts +1 -0
  139. package/dist/interface/class/dto/index.js +18 -0
  140. package/dist/interface/class/dto/index.js.map +1 -0
  141. package/dist/interface/class/dto/strategy.interface.d.ts +5 -0
  142. package/dist/{type/decorator/api/function/get-properties.type.js → interface/class/dto/strategy.interface.js} +1 -1
  143. package/dist/interface/class/dto/strategy.interface.js.map +1 -0
  144. package/dist/interface/class/index.d.ts +1 -0
  145. package/dist/interface/class/index.js +18 -0
  146. package/dist/interface/class/index.js.map +1 -0
  147. package/dist/interface/decorator/api/controller-properties.interface.d.ts +12 -7
  148. package/dist/interface/decorator/api/controller-properties.interface.js.map +1 -1
  149. package/dist/interface/decorator/api/function/create-properties.interface.d.ts +4 -0
  150. package/dist/interface/decorator/api/function/create-properties.interface.js +3 -0
  151. package/dist/interface/decorator/api/function/create-properties.interface.js.map +1 -0
  152. package/dist/interface/decorator/api/index.d.ts +1 -0
  153. package/dist/interface/decorator/api/index.js +1 -0
  154. package/dist/interface/decorator/api/index.js.map +1 -1
  155. package/dist/interface/decorator/api/method/properties.interface.d.ts +3 -2
  156. package/dist/interface/decorator/api/method/properties.interface.js.map +1 -1
  157. package/dist/interface/decorator/api/property/base-properties.interface.d.ts +1 -1
  158. package/dist/interface/decorator/api/property/base-properties.interface.js.map +1 -1
  159. package/dist/interface/dto-generate-factory.interface.d.ts +5 -0
  160. package/dist/interface/dto-generate-factory.interface.js +3 -0
  161. package/dist/interface/dto-generate-factory.interface.js.map +1 -0
  162. package/dist/interface/index.d.ts +2 -0
  163. package/dist/interface/index.js +2 -0
  164. package/dist/interface/index.js.map +1 -1
  165. package/dist/interface/utility/get-entity-columns-properties.interface.d.ts +5 -0
  166. package/dist/interface/utility/get-entity-columns-properties.interface.js +3 -0
  167. package/dist/interface/utility/get-entity-columns-properties.interface.js.map +1 -0
  168. package/dist/tsconfig.build.tsbuildinfo +1 -1
  169. package/dist/type/decorator/api/controller/constructor.type.d.ts +4 -0
  170. package/dist/type/decorator/api/{function/create-properties.type.js → controller/constructor.type.js} +1 -1
  171. package/dist/type/decorator/api/controller/constructor.type.js.map +1 -0
  172. package/dist/type/decorator/api/controller/index.d.ts +1 -0
  173. package/dist/type/decorator/api/controller/index.js +18 -0
  174. package/dist/type/decorator/api/controller/index.js.map +1 -0
  175. package/dist/type/decorator/api/function/create/executor-properties.type.d.ts +8 -0
  176. package/dist/type/decorator/api/function/create/executor-properties.type.js +3 -0
  177. package/dist/type/decorator/api/function/create/executor-properties.type.js.map +1 -0
  178. package/dist/type/decorator/api/function/create/index.d.ts +2 -0
  179. package/dist/type/decorator/api/function/create/index.js +19 -0
  180. package/dist/type/decorator/api/function/create/index.js.map +1 -0
  181. package/dist/type/decorator/api/function/{update-properties.type.js → create/properties.type.js} +1 -1
  182. package/dist/type/decorator/api/function/create/properties.type.js.map +1 -0
  183. package/dist/type/decorator/api/function/delete/executor-properties.type.d.ts +9 -0
  184. package/dist/type/decorator/api/function/delete/executor-properties.type.js +3 -0
  185. package/dist/type/decorator/api/function/delete/executor-properties.type.js.map +1 -0
  186. package/dist/type/decorator/api/function/delete/index.d.ts +1 -0
  187. package/dist/type/decorator/api/function/delete/index.js +18 -0
  188. package/dist/type/decorator/api/function/delete/index.js.map +1 -0
  189. package/dist/type/decorator/api/function/get/executor-properties.type.d.ts +7 -0
  190. package/dist/type/decorator/api/function/get/executor-properties.type.js +3 -0
  191. package/dist/type/decorator/api/function/get/executor-properties.type.js.map +1 -0
  192. package/dist/type/decorator/api/function/get/index.d.ts +2 -0
  193. package/dist/type/decorator/api/function/get/index.js +19 -0
  194. package/dist/type/decorator/api/function/get/index.js.map +1 -0
  195. package/dist/type/decorator/api/function/get/properties.type.js +3 -0
  196. package/dist/type/decorator/api/function/get/properties.type.js.map +1 -0
  197. package/dist/type/decorator/api/function/get-list/base-properties.type.d.ts +16 -0
  198. package/dist/type/decorator/api/function/get-list/base-properties.type.js +3 -0
  199. package/dist/type/decorator/api/function/get-list/base-properties.type.js.map +1 -0
  200. package/dist/type/decorator/api/function/get-list/executor-properties.type.d.ts +9 -0
  201. package/dist/type/decorator/api/function/get-list/executor-properties.type.js +3 -0
  202. package/dist/type/decorator/api/function/get-list/executor-properties.type.js.map +1 -0
  203. package/dist/type/decorator/api/function/get-list/index.d.ts +3 -0
  204. package/dist/type/decorator/api/function/get-list/index.js +20 -0
  205. package/dist/type/decorator/api/function/get-list/index.js.map +1 -0
  206. package/dist/type/decorator/api/function/get-list/properties.type.d.ts +9 -0
  207. package/dist/type/decorator/api/function/get-list/properties.type.js +3 -0
  208. package/dist/type/decorator/api/function/get-list/properties.type.js.map +1 -0
  209. package/dist/type/decorator/api/function/index.d.ts +5 -4
  210. package/dist/type/decorator/api/function/index.js +5 -4
  211. package/dist/type/decorator/api/function/index.js.map +1 -1
  212. package/dist/type/decorator/api/function/properties.type.d.ts +7 -0
  213. package/dist/type/decorator/api/function/properties.type.js +3 -0
  214. package/dist/type/decorator/api/function/properties.type.js.map +1 -0
  215. package/dist/type/decorator/api/function/update/executor-properties.type.d.ts +11 -0
  216. package/dist/type/decorator/api/function/update/executor-properties.type.js +3 -0
  217. package/dist/type/decorator/api/function/update/executor-properties.type.js.map +1 -0
  218. package/dist/type/decorator/api/function/update/index.d.ts +2 -0
  219. package/dist/type/decorator/api/function/update/index.js +19 -0
  220. package/dist/type/decorator/api/function/update/index.js.map +1 -0
  221. package/dist/type/decorator/api/function/update/properties.type.js +3 -0
  222. package/dist/type/decorator/api/function/update/properties.type.js.map +1 -0
  223. package/dist/type/decorator/api/index.d.ts +1 -0
  224. package/dist/type/decorator/api/index.js +1 -0
  225. package/dist/type/decorator/api/index.js.map +1 -1
  226. package/dist/type/decorator/api/property/describe/array/index.d.ts +2 -0
  227. package/dist/type/decorator/api/property/describe/array/index.js +19 -0
  228. package/dist/type/decorator/api/property/describe/array/index.js.map +1 -0
  229. package/dist/type/decorator/api/property/describe/array/optional-properties.type.d.ts +3 -0
  230. package/dist/type/decorator/api/property/describe/array/optional-properties.type.js +3 -0
  231. package/dist/type/decorator/api/property/describe/array/optional-properties.type.js.map +1 -0
  232. package/dist/type/decorator/api/property/describe/array/required-properties.type.d.ts +6 -0
  233. package/dist/type/decorator/api/property/describe/array/required-properties.type.js +3 -0
  234. package/dist/type/decorator/api/property/describe/array/required-properties.type.js.map +1 -0
  235. package/dist/type/decorator/api/property/describe/base-properties.type.d.ts +7 -0
  236. package/dist/type/decorator/api/property/describe/base-properties.type.js +3 -0
  237. package/dist/type/decorator/api/property/describe/base-properties.type.js.map +1 -0
  238. package/dist/type/decorator/api/property/describe/boolean-properties.type.d.ts +7 -0
  239. package/dist/type/decorator/api/property/describe/boolean-properties.type.js +3 -0
  240. package/dist/type/decorator/api/property/describe/boolean-properties.type.js.map +1 -0
  241. package/dist/type/decorator/api/property/describe/date-properties.type.d.ts +7 -0
  242. package/dist/type/decorator/api/property/describe/date-properties.type.js +3 -0
  243. package/dist/type/decorator/api/property/describe/date-properties.type.js.map +1 -0
  244. package/dist/type/decorator/api/property/describe/dto/body-properties.type.d.ts +5 -0
  245. package/dist/type/decorator/api/property/describe/dto/body-properties.type.js +3 -0
  246. package/dist/type/decorator/api/property/describe/dto/body-properties.type.js.map +1 -0
  247. package/dist/type/decorator/api/property/describe/dto/index.d.ts +5 -0
  248. package/dist/type/decorator/api/property/describe/dto/index.js +22 -0
  249. package/dist/type/decorator/api/property/describe/dto/index.js.map +1 -0
  250. package/dist/type/decorator/api/property/describe/dto/properties.type.d.ts +6 -0
  251. package/dist/type/decorator/api/property/describe/dto/properties.type.js +3 -0
  252. package/dist/type/decorator/api/property/describe/dto/properties.type.js.map +1 -0
  253. package/dist/type/decorator/api/property/describe/dto/query/get-list-properties.type.d.ts +3 -0
  254. package/dist/type/decorator/api/property/describe/dto/query/get-list-properties.type.js.map +1 -0
  255. package/dist/type/decorator/api/property/describe/dto/query/index.d.ts +2 -0
  256. package/dist/type/decorator/api/property/describe/dto/query/index.js +19 -0
  257. package/dist/type/decorator/api/property/describe/dto/query/index.js.map +1 -0
  258. package/dist/type/decorator/api/property/describe/dto/query/properties.type.d.ts +6 -0
  259. package/dist/type/decorator/api/property/describe/dto/query/properties.type.js +3 -0
  260. package/dist/type/decorator/api/property/describe/dto/query/properties.type.js.map +1 -0
  261. package/dist/type/decorator/api/property/describe/dto/request-properties.type.d.ts +5 -0
  262. package/dist/type/decorator/api/property/describe/dto/request-properties.type.js +3 -0
  263. package/dist/type/decorator/api/property/describe/dto/request-properties.type.js.map +1 -0
  264. package/dist/type/decorator/api/property/describe/dto/response-properties.type.d.ts +5 -0
  265. package/dist/type/decorator/api/property/describe/dto/response-properties.type.js +3 -0
  266. package/dist/type/decorator/api/property/describe/dto/response-properties.type.js.map +1 -0
  267. package/dist/type/decorator/api/property/describe/example-properties.type.d.ts +7 -0
  268. package/dist/type/decorator/api/property/describe/example-properties.type.js +3 -0
  269. package/dist/type/decorator/api/property/describe/example-properties.type.js.map +1 -0
  270. package/dist/type/decorator/api/property/describe/index.d.ts +12 -0
  271. package/dist/type/decorator/api/property/describe/index.js +29 -0
  272. package/dist/type/decorator/api/property/describe/index.js.map +1 -0
  273. package/dist/type/decorator/api/property/describe/number-properties.type.d.ts +13 -0
  274. package/dist/type/decorator/api/property/describe/number-properties.type.js +3 -0
  275. package/dist/type/decorator/api/property/describe/number-properties.type.js.map +1 -0
  276. package/dist/type/decorator/api/property/describe/object-properties.type.d.ts +10 -0
  277. package/dist/type/decorator/api/property/describe/object-properties.type.js +3 -0
  278. package/dist/type/decorator/api/property/describe/object-properties.type.js.map +1 -0
  279. package/dist/type/decorator/api/property/describe/properties/base-dto-properties.type.d.ts +2 -0
  280. package/dist/type/decorator/api/property/describe/properties/base-dto-properties.type.js +3 -0
  281. package/dist/type/decorator/api/property/describe/properties/base-dto-properties.type.js.map +1 -0
  282. package/dist/type/decorator/api/property/describe/properties/base-properties.type.d.ts +10 -0
  283. package/dist/type/decorator/api/property/describe/properties/base-properties.type.js +3 -0
  284. package/dist/type/decorator/api/property/describe/properties/base-properties.type.js.map +1 -0
  285. package/dist/type/decorator/api/property/describe/properties/index.d.ts +2 -0
  286. package/dist/type/decorator/api/property/describe/properties/index.js +19 -0
  287. package/dist/type/decorator/api/property/describe/properties/index.js.map +1 -0
  288. package/dist/type/decorator/api/property/describe/properties.type.d.ts +8 -0
  289. package/dist/type/decorator/api/property/describe/properties.type.js +3 -0
  290. package/dist/type/decorator/api/property/describe/properties.type.js.map +1 -0
  291. package/dist/type/decorator/api/property/describe/relation-properties.type.d.ts +6 -0
  292. package/dist/type/decorator/api/property/describe/relation-properties.type.js +3 -0
  293. package/dist/type/decorator/api/property/describe/relation-properties.type.js.map +1 -0
  294. package/dist/type/decorator/api/property/describe/string-properties.type.d.ts +13 -0
  295. package/dist/type/decorator/api/property/describe/string-properties.type.js +3 -0
  296. package/dist/type/decorator/api/property/describe/string-properties.type.js.map +1 -0
  297. package/dist/type/decorator/api/property/describe/uuid-properties.type.d.ts +7 -0
  298. package/dist/type/decorator/api/property/describe/uuid-properties.type.js +3 -0
  299. package/dist/type/decorator/api/property/describe/uuid-properties.type.js.map +1 -0
  300. package/dist/type/decorator/api/property/index.d.ts +1 -1
  301. package/dist/type/decorator/api/property/index.js +1 -1
  302. package/dist/type/decorator/api/property/index.js.map +1 -1
  303. package/dist/type/decorator/api/service-properties.type.d.ts +3 -0
  304. package/dist/type/decorator/api/service-properties.type.js +3 -0
  305. package/dist/type/decorator/api/service-properties.type.js.map +1 -0
  306. package/dist/type/index.d.ts +1 -0
  307. package/dist/type/index.js +1 -0
  308. package/dist/type/index.js.map +1 -1
  309. package/dist/type/utility/dto/generate-allowed-combination.type.d.ts +9 -0
  310. package/dist/type/utility/dto/generate-allowed-combination.type.js +3 -0
  311. package/dist/type/utility/dto/generate-allowed-combination.type.js.map +1 -0
  312. package/dist/type/utility/dto/generate-is-allowed-combination.type.d.ts +3 -0
  313. package/dist/type/utility/dto/generate-is-allowed-combination.type.js +3 -0
  314. package/dist/type/utility/dto/generate-is-allowed-combination.type.js.map +1 -0
  315. package/dist/type/utility/dto/index.d.ts +2 -0
  316. package/dist/type/utility/dto/index.js +19 -0
  317. package/dist/type/utility/dto/index.js.map +1 -0
  318. package/dist/type/utility/index.d.ts +1 -0
  319. package/dist/type/utility/index.js +18 -0
  320. package/dist/type/utility/index.js.map +1 -0
  321. package/dist/utility/api/controller/get-method-name.utility.d.ts +1 -1
  322. package/dist/utility/api/controller/get-method-name.utility.js +1 -1
  323. package/dist/utility/api/controller/get-method-name.utility.js.map +1 -1
  324. package/dist/utility/api/controller/write-method.utility.d.ts +3 -3
  325. package/dist/utility/api/controller/write-method.utility.js +2 -2
  326. package/dist/utility/api/controller/write-method.utility.js.map +1 -1
  327. package/dist/utility/api/filter-order-by-from-entity.utility.d.ts +4 -2
  328. package/dist/utility/api/filter-order-by-from-entity.utility.js +17 -14
  329. package/dist/utility/api/filter-order-by-from-entity.utility.js.map +1 -1
  330. package/dist/utility/dto/analize.utility.js.map +1 -1
  331. package/dist/utility/dto/build-decorator.utility.d.ts +4 -0
  332. package/dist/utility/dto/build-decorator.utility.js +31 -0
  333. package/dist/utility/dto/build-decorator.utility.js.map +1 -0
  334. package/dist/utility/dto/generate-decorator.utility.d.ts +3 -0
  335. package/dist/utility/dto/generate-decorator.utility.js +15 -0
  336. package/dist/utility/dto/generate-decorator.utility.js.map +1 -0
  337. package/dist/utility/dto/generate-exception.utility.d.ts +2 -0
  338. package/dist/utility/dto/generate-exception.utility.js +88 -0
  339. package/dist/utility/dto/generate-exception.utility.js.map +1 -0
  340. package/dist/utility/dto/generate.utility.d.ts +2 -2
  341. package/dist/utility/dto/generate.utility.js +51 -308
  342. package/dist/utility/dto/generate.utility.js.map +1 -1
  343. package/dist/utility/dto/get-base-class.utility.d.ts +3 -0
  344. package/dist/utility/dto/get-base-class.utility.js +65 -0
  345. package/dist/utility/dto/get-base-class.utility.js.map +1 -0
  346. package/dist/utility/dto/get-decorator-config.utility.d.ts +3 -0
  347. package/dist/utility/dto/get-decorator-config.utility.js +21 -0
  348. package/dist/utility/dto/get-decorator-config.utility.js.map +1 -0
  349. package/dist/utility/dto/handle-date-property.utility.d.ts +5 -0
  350. package/dist/utility/dto/handle-date-property.utility.js +18 -0
  351. package/dist/utility/dto/handle-date-property.utility.js.map +1 -0
  352. package/dist/utility/dto/index.d.ts +8 -0
  353. package/dist/utility/dto/index.js +8 -0
  354. package/dist/utility/dto/index.js.map +1 -1
  355. package/dist/utility/dto/is-property-should-be-enabled.utility.d.ts +3 -0
  356. package/dist/utility/dto/is-property-should-be-enabled.utility.js +26 -0
  357. package/dist/utility/dto/is-property-should-be-enabled.utility.js.map +1 -0
  358. package/dist/utility/dto/is-should-be-generated.utility.d.ts +2 -0
  359. package/dist/utility/dto/is-should-be-generated.utility.js +25 -0
  360. package/dist/utility/dto/is-should-be-generated.utility.js.map +1 -0
  361. package/dist/utility/dto/validate-property-config.utility.d.ts +2 -0
  362. package/dist/utility/dto/validate-property-config.utility.js +14 -0
  363. package/dist/utility/dto/validate-property-config.utility.js.map +1 -0
  364. package/dist/utility/generate-entity-information.utility.js +15 -6
  365. package/dist/utility/generate-entity-information.utility.js.map +1 -1
  366. package/dist/utility/get-entity-columns.utility.d.ts +3 -2
  367. package/dist/utility/get-entity-columns.utility.js +4 -3
  368. package/dist/utility/get-entity-columns.utility.js.map +1 -1
  369. package/package.json +4 -1
  370. package/dist/class/api/base-controller.class.d.ts +0 -4
  371. package/dist/class/api/base-controller.class.js +0 -10
  372. package/dist/class/api/base-controller.class.js.map +0 -1
  373. package/dist/decorator/api/route/decorator.d.ts +0 -18
  374. package/dist/decorator/api/route/decorator.js +0 -43
  375. package/dist/decorator/api/route/decorator.js.map +0 -1
  376. package/dist/decorator/api/route/get.decorator.d.ts +0 -9
  377. package/dist/decorator/api/route/get.decorator.js +0 -53
  378. package/dist/decorator/api/route/get.decorator.js.map +0 -1
  379. package/dist/decorator/api/route/index.d.ts +0 -2
  380. package/dist/decorator/api/route/index.js.map +0 -1
  381. package/dist/dto/exception/bad-request.dto.d.ts +0 -8
  382. package/dist/dto/exception/bad-request.dto.js +0 -84
  383. package/dist/dto/exception/bad-request.dto.js.map +0 -1
  384. package/dist/dto/exception/conflict.dto.d.ts +0 -8
  385. package/dist/dto/exception/conflict.dto.js +0 -84
  386. package/dist/dto/exception/conflict.dto.js.map +0 -1
  387. package/dist/dto/exception/forbidden.dto.d.ts +0 -8
  388. package/dist/dto/exception/forbidden.dto.js +0 -84
  389. package/dist/dto/exception/forbidden.dto.js.map +0 -1
  390. package/dist/dto/exception/index.d.ts +0 -7
  391. package/dist/dto/exception/index.js.map +0 -1
  392. package/dist/dto/exception/internal-server-error.dto.d.ts +0 -8
  393. package/dist/dto/exception/internal-server-error.dto.js +0 -84
  394. package/dist/dto/exception/internal-server-error.dto.js.map +0 -1
  395. package/dist/dto/exception/not-found.dto.d.ts +0 -8
  396. package/dist/dto/exception/not-found.dto.js +0 -84
  397. package/dist/dto/exception/not-found.dto.js.map +0 -1
  398. package/dist/dto/exception/too-many-requests.dto.d.ts +0 -8
  399. package/dist/dto/exception/too-many-requests.dto.js +0 -84
  400. package/dist/dto/exception/too-many-requests.dto.js.map +0 -1
  401. package/dist/dto/exception/unauthorized.dto.d.ts +0 -8
  402. package/dist/dto/exception/unauthorized.dto.js +0 -84
  403. package/dist/dto/exception/unauthorized.dto.js.map +0 -1
  404. package/dist/dto/index.d.ts +0 -1
  405. package/dist/dto/index.js.map +0 -1
  406. package/dist/type/decorator/api/function/create-properties.type.js.map +0 -1
  407. package/dist/type/decorator/api/function/get-list-properties.type.d.ts +0 -23
  408. package/dist/type/decorator/api/function/get-list-properties.type.js.map +0 -1
  409. package/dist/type/decorator/api/function/get-properties.type.js.map +0 -1
  410. package/dist/type/decorator/api/function/update-properties.type.js.map +0 -1
  411. package/dist/type/decorator/api/property/describe-properties.type.d.ts +0 -64
  412. package/dist/type/decorator/api/property/describe-properties.type.js +0 -3
  413. package/dist/type/decorator/api/property/describe-properties.type.js.map +0 -1
  414. /package/dist/type/decorator/api/function/{create-properties.type.d.ts → create/properties.type.d.ts} +0 -0
  415. /package/dist/type/decorator/api/function/{get-properties.type.d.ts → get/properties.type.d.ts} +0 -0
  416. /package/dist/type/decorator/api/function/{update-properties.type.d.ts → update/properties.type.d.ts} +0 -0
  417. /package/dist/type/decorator/api/{function → property/describe/dto/query}/get-list-properties.type.js +0 -0
@@ -2,9 +2,9 @@ import type { IApiGetListResponseResult } from "../../interface";
2
2
  import type { TApiFunctionCreateProperties, TApiFunctionGetListProperties, TApiFunctionGetProperties, TApiFunctionUpdateProperties } from "../../type";
3
3
  import type { FindOptionsRelations } from "typeorm";
4
4
  export declare class BaseApiService<E> {
5
- create(_properties: TApiFunctionCreateProperties<E>): Promise<E>;
6
- delete(_id: string): Promise<void>;
7
- get(_id: string, _properties?: TApiFunctionGetProperties<E>, _relations?: FindOptionsRelations<E>): Promise<E>;
8
- getList(_properties: TApiFunctionGetListProperties<E>, _relations?: FindOptionsRelations<E>): Promise<IApiGetListResponseResult<E>>;
9
- update(_id: string, _properties: TApiFunctionUpdateProperties<E>): Promise<E>;
5
+ create(properties: TApiFunctionCreateProperties<E>): Promise<E>;
6
+ delete(id: string): Promise<void>;
7
+ get(id: string, properties?: TApiFunctionGetProperties<E>, relations?: FindOptionsRelations<E>): Promise<E>;
8
+ getList(properties: TApiFunctionGetListProperties<E>, relations?: FindOptionsRelations<E>): Promise<IApiGetListResponseResult<E>>;
9
+ update(id: string, properties: TApiFunctionUpdateProperties<E>): Promise<E>;
10
10
  }
@@ -2,20 +2,29 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BaseApiService = void 0;
4
4
  class BaseApiService {
5
- create(_properties) {
6
- return null;
5
+ create(properties) {
6
+ void properties;
7
+ return Promise.resolve({});
7
8
  }
8
- delete(_id) {
9
- return null;
9
+ delete(id) {
10
+ void id;
11
+ return Promise.resolve();
10
12
  }
11
- get(_id, _properties, _relations) {
12
- return null;
13
+ get(id, properties, relations) {
14
+ void id;
15
+ void properties;
16
+ void relations;
17
+ return Promise.resolve({});
13
18
  }
14
- getList(_properties, _relations) {
15
- return null;
19
+ getList(properties, relations) {
20
+ void properties;
21
+ void relations;
22
+ return Promise.resolve({ items: [], total: 0 });
16
23
  }
17
- update(_id, _properties) {
18
- return null;
24
+ update(id, properties) {
25
+ void id;
26
+ void properties;
27
+ return Promise.resolve({});
19
28
  }
20
29
  }
21
30
  exports.BaseApiService = BaseApiService;
@@ -1 +1 @@
1
- {"version":3,"file":"base-service.class.js","sourceRoot":"/","sources":["class/api/base-service.class.ts"],"names":[],"mappings":";;;AAMA,MAAa,cAAc;IAC1B,MAAM,CAAC,WAA4C;QAClD,OAAO,IAAW,CAAC;IACpB,CAAC;IAED,MAAM,CAAC,GAAW;QACjB,OAAO,IAAW,CAAC;IACpB,CAAC;IAED,GAAG,CAAC,GAAW,EAAE,WAA0C,EAAE,UAAoC;QAChG,OAAO,IAAW,CAAC;IACpB,CAAC;IAED,OAAO,CAAC,WAA6C,EAAE,UAAoC;QAC1F,OAAO,IAAW,CAAC;IACpB,CAAC;IAED,MAAM,CAAC,GAAW,EAAE,WAA4C;QAC/D,OAAO,IAAW,CAAC;IACpB,CAAC;CACD;AApBD,wCAoBC","sourcesContent":["import type { IApiGetListResponseResult } from \"../../interface\";\n\nimport type { TApiFunctionCreateProperties, TApiFunctionGetListProperties, TApiFunctionGetProperties, TApiFunctionUpdateProperties } from \"../../type\";\n\nimport type { FindOptionsRelations } from \"typeorm\";\n\nexport class BaseApiService<E> {\n\tcreate(_properties: TApiFunctionCreateProperties<E>): Promise<E> {\n\t\treturn null as any;\n\t}\n\n\tdelete(_id: string): Promise<void> {\n\t\treturn null as any;\n\t}\n\n\tget(_id: string, _properties?: TApiFunctionGetProperties<E>, _relations?: FindOptionsRelations<E>): Promise<E> {\n\t\treturn null as any;\n\t}\n\n\tgetList(_properties: TApiFunctionGetListProperties<E>, _relations?: FindOptionsRelations<E>): Promise<IApiGetListResponseResult<E>> {\n\t\treturn null as any;\n\t}\n\n\tupdate(_id: string, _properties: TApiFunctionUpdateProperties<E>): Promise<E> {\n\t\treturn null as any;\n\t}\n}\n"]}
1
+ {"version":3,"file":"base-service.class.js","sourceRoot":"/","sources":["class/api/base-service.class.ts"],"names":[],"mappings":";;;AAIA,MAAa,cAAc;IAC1B,MAAM,CAAC,UAA2C;QACjD,KAAK,UAAU,CAAC;QAEhB,OAAO,OAAO,CAAC,OAAO,CAAC,EAAO,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,EAAU;QAChB,KAAK,EAAE,CAAC;QAER,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAED,GAAG,CAAC,EAAU,EAAE,UAAyC,EAAE,SAAmC;QAC7F,KAAK,EAAE,CAAC;QACR,KAAK,UAAU,CAAC;QAChB,KAAK,SAAS,CAAC;QAEf,OAAO,OAAO,CAAC,OAAO,CAAC,EAAO,CAAC,CAAC;IACjC,CAAC;IAED,OAAO,CAAC,UAA4C,EAAE,SAAmC;QACxF,KAAK,UAAU,CAAC;QAChB,KAAK,SAAS,CAAC;QAEf,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAA6C,CAAC,CAAC;IAC5F,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,UAA2C;QAC7D,KAAK,EAAE,CAAC;QACR,KAAK,UAAU,CAAC;QAEhB,OAAO,OAAO,CAAC,OAAO,CAAC,EAAO,CAAC,CAAC;IACjC,CAAC;CACD;AAlCD,wCAkCC","sourcesContent":["import type { IApiGetListResponseResult } from \"../../interface\";\nimport type { TApiFunctionCreateProperties, TApiFunctionGetListProperties, TApiFunctionGetProperties, TApiFunctionUpdateProperties } from \"../../type\";\nimport type { FindOptionsRelations } from \"typeorm\";\n\nexport class BaseApiService<E> {\n\tcreate(properties: TApiFunctionCreateProperties<E>): Promise<E> {\n\t\tvoid properties;\n\n\t\treturn Promise.resolve({} as E);\n\t}\n\n\tdelete(id: string): Promise<void> {\n\t\tvoid id;\n\n\t\treturn Promise.resolve();\n\t}\n\n\tget(id: string, properties?: TApiFunctionGetProperties<E>, relations?: FindOptionsRelations<E>): Promise<E> {\n\t\tvoid id;\n\t\tvoid properties;\n\t\tvoid relations;\n\n\t\treturn Promise.resolve({} as E);\n\t}\n\n\tgetList(properties: TApiFunctionGetListProperties<E>, relations?: FindOptionsRelations<E>): Promise<IApiGetListResponseResult<E>> {\n\t\tvoid properties;\n\t\tvoid relations;\n\n\t\treturn Promise.resolve({ items: [], total: 0 } as unknown as IApiGetListResponseResult<E>);\n\t}\n\n\tupdate(id: string, properties: TApiFunctionUpdateProperties<E>): Promise<E> {\n\t\tvoid id;\n\t\tvoid properties;\n\n\t\treturn Promise.resolve({} as E);\n\t}\n}\n"]}
@@ -1,2 +1 @@
1
1
  export * from "./base-service.class";
2
- export * from "./base-controller.class";
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./base-service.class"), exports);
18
- __exportStar(require("./base-controller.class"), exports);
19
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["class/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,0DAAwC","sourcesContent":["export * from \"./base-service.class\";\nexport * from \"./base-controller.class\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["class/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC","sourcesContent":["export * from \"./base-service.class\";\n"]}
@@ -1,2 +1,3 @@
1
1
  export * from "./api";
2
2
  export * from "./metadata-storage.class";
3
+ export * from "./utility";
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./api"), exports);
18
18
  __exportStar(require("./metadata-storage.class"), exports);
19
+ __exportStar(require("./utility"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["class/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2DAAyC","sourcesContent":["export * from \"./api\";\nexport * from \"./metadata-storage.class\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["class/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2DAAyC;AACzC,4CAA0B","sourcesContent":["export * from \"./api\";\nexport * from \"./metadata-storage.class\";\nexport * from \"./utility\";\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./strategy";
2
+ export * from "./property";
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./get.decorator"), exports);
18
- __exportStar(require("./decorator"), exports);
17
+ __exportStar(require("./strategy"), exports);
18
+ __exportStar(require("./property"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["class/utility/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B","sourcesContent":["export * from \"./strategy\";\nexport * from \"./property\";\n"]}
@@ -0,0 +1,5 @@
1
+ import type { IApiEntity, IDtoGenerateFactory } from "../../../../../interface";
2
+ import type { TApiPropertyDescribeBooleanProperties, TApiPropertyDescribeDtoProperties } from "../../../../../type";
3
+ export declare class DtoPropertyFactoryBoolean implements IDtoGenerateFactory {
4
+ create(metadata: TApiPropertyDescribeBooleanProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator;
5
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DtoPropertyFactoryBoolean = void 0;
4
+ const decorator_1 = require("../../../../../decorator");
5
+ class DtoPropertyFactoryBoolean {
6
+ create(metadata, entity, config) {
7
+ return (0, decorator_1.ApiPropertyBoolean)({
8
+ description: metadata.description,
9
+ entity,
10
+ ...config,
11
+ });
12
+ }
13
+ }
14
+ exports.DtoPropertyFactoryBoolean = DtoPropertyFactoryBoolean;
15
+ //# sourceMappingURL=boolean.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean.class.js","sourceRoot":"/","sources":["class/utility/dto/property/factory/boolean.class.ts"],"names":[],"mappings":";;;AAAA,wDAA8D;AAK9D,MAAa,yBAAyB;IACrC,MAAM,CAAC,QAA+C,EAAE,MAAkB,EAAE,MAAyC;QACpH,OAAO,IAAA,8BAAkB,EAAC;YACzB,WAAW,EAAE,QAAQ,CAAC,WAAW;YACjC,MAAM;YACN,GAAG,MAAM;SACT,CAAC,CAAC;IACJ,CAAC;CACD;AARD,8DAQC","sourcesContent":["import { ApiPropertyBoolean } from \"../../../../../decorator\";\n\nimport type { IApiEntity, IDtoGenerateFactory } from \"../../../../../interface\";\nimport type { TApiPropertyDescribeBooleanProperties, TApiPropertyDescribeDtoProperties } from \"../../../../../type\";\n\nexport class DtoPropertyFactoryBoolean implements IDtoGenerateFactory {\n\tcreate(metadata: TApiPropertyDescribeBooleanProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator {\n\t\treturn ApiPropertyBoolean({\n\t\t\tdescription: metadata.description,\n\t\t\tentity,\n\t\t\t...config,\n\t\t});\n\t}\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import type { IApiEntity, IDtoGenerateFactory } from "../../../../../interface";
2
+ import type { TApiPropertyDescribeDateProperties, TApiPropertyDescribeDtoProperties } from "../../../../../type";
3
+ export declare class DtoPropertyFactoryDate implements IDtoGenerateFactory {
4
+ create(metadata: TApiPropertyDescribeDateProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator;
5
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DtoPropertyFactoryDate = void 0;
4
+ const decorator_1 = require("../../../../../decorator");
5
+ class DtoPropertyFactoryDate {
6
+ create(metadata, entity, config) {
7
+ return (0, decorator_1.ApiPropertyDate)({
8
+ entity,
9
+ ...config,
10
+ type: metadata.dataType,
11
+ });
12
+ }
13
+ }
14
+ exports.DtoPropertyFactoryDate = DtoPropertyFactoryDate;
15
+ //# sourceMappingURL=date.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.class.js","sourceRoot":"/","sources":["class/utility/dto/property/factory/date.class.ts"],"names":[],"mappings":";;;AAAA,wDAA2D;AAK3D,MAAa,sBAAsB;IAClC,MAAM,CAAC,QAA4C,EAAE,MAAkB,EAAE,MAAyC;QACjH,OAAO,IAAA,2BAAe,EAAC;YACtB,MAAM;YACN,GAAG,MAAM;YACT,IAAI,EAAE,QAAQ,CAAC,QAAQ;SACvB,CAAC,CAAC;IACJ,CAAC;CACD;AARD,wDAQC","sourcesContent":["import { ApiPropertyDate } from \"../../../../../decorator\";\n\nimport type { IApiEntity, IDtoGenerateFactory } from \"../../../../../interface\";\nimport type { TApiPropertyDescribeDateProperties, TApiPropertyDescribeDtoProperties } from \"../../../../../type\";\n\nexport class DtoPropertyFactoryDate implements IDtoGenerateFactory {\n\tcreate(metadata: TApiPropertyDescribeDateProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator {\n\t\treturn ApiPropertyDate({\n\t\t\tentity,\n\t\t\t...config,\n\t\t\ttype: metadata.dataType,\n\t\t});\n\t}\n}\n"]}
@@ -0,0 +1,6 @@
1
+ export * from "./uuid.class";
2
+ export * from "./string.class";
3
+ export * from "./object.class";
4
+ export * from "./number.class";
5
+ export * from "./boolean.class";
6
+ export * from "./date.class";
@@ -14,11 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./bad-request.dto"), exports);
18
- __exportStar(require("./forbidden.dto"), exports);
19
- __exportStar(require("./not-found.dto"), exports);
20
- __exportStar(require("./unauthorized.dto"), exports);
21
- __exportStar(require("./too-many-requests.dto"), exports);
22
- __exportStar(require("./internal-server-error.dto"), exports);
23
- __exportStar(require("./conflict.dto"), exports);
17
+ __exportStar(require("./uuid.class"), exports);
18
+ __exportStar(require("./string.class"), exports);
19
+ __exportStar(require("./object.class"), exports);
20
+ __exportStar(require("./number.class"), exports);
21
+ __exportStar(require("./boolean.class"), exports);
22
+ __exportStar(require("./date.class"), exports);
24
23
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["class/utility/dto/property/factory/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC;AAChC,+CAA6B","sourcesContent":["export * from \"./uuid.class\";\nexport * from \"./string.class\";\nexport * from \"./object.class\";\nexport * from \"./number.class\";\nexport * from \"./boolean.class\";\nexport * from \"./date.class\";\n"]}
@@ -0,0 +1,5 @@
1
+ import type { IApiEntity, IDtoGenerateFactory } from "src/interface";
2
+ import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeNumberProperties } from "src/type";
3
+ export declare class DtoPropertyFactoryNumber implements IDtoGenerateFactory {
4
+ create(metadata: TApiPropertyDescribeNumberProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator;
5
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DtoPropertyFactoryNumber = void 0;
4
+ const decorator_1 = require("../../../../../decorator");
5
+ class DtoPropertyFactoryNumber {
6
+ create(metadata, entity, config) {
7
+ return (0, decorator_1.ApiPropertyNumber)({
8
+ description: metadata.description,
9
+ entity,
10
+ ...config,
11
+ maximum: metadata.maximum,
12
+ minimum: metadata.minimum,
13
+ multipleOf: metadata.multipleOf,
14
+ type: metadata.dataType,
15
+ });
16
+ }
17
+ }
18
+ exports.DtoPropertyFactoryNumber = DtoPropertyFactoryNumber;
19
+ //# sourceMappingURL=number.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.class.js","sourceRoot":"/","sources":["class/utility/dto/property/factory/number.class.ts"],"names":[],"mappings":";;;AAAA,wDAA6D;AAK7D,MAAa,wBAAwB;IACpC,MAAM,CAAC,QAA8C,EAAE,MAAkB,EAAE,MAAyC;QACnH,OAAO,IAAA,6BAAiB,EAAC;YACxB,WAAW,EAAE,QAAQ,CAAC,WAAW;YACjC,MAAM;YACN,GAAG,MAAM;YACT,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,UAAU,EAAE,QAAQ,CAAC,UAAU;YAC/B,IAAI,EAAE,QAAQ,CAAC,QAAQ;SACvB,CAAC,CAAC;IACJ,CAAC;CACD;AAZD,4DAYC","sourcesContent":["import { ApiPropertyNumber } from \"../../../../../decorator\";\n\nimport type { IApiEntity, IDtoGenerateFactory } from \"src/interface\";\nimport type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeNumberProperties } from \"src/type\";\n\nexport class DtoPropertyFactoryNumber implements IDtoGenerateFactory {\n\tcreate(metadata: TApiPropertyDescribeNumberProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator {\n\t\treturn ApiPropertyNumber({\n\t\t\tdescription: metadata.description,\n\t\t\tentity,\n\t\t\t...config,\n\t\t\tmaximum: metadata.maximum,\n\t\t\tminimum: metadata.minimum,\n\t\t\tmultipleOf: metadata.multipleOf,\n\t\t\ttype: metadata.dataType,\n\t\t});\n\t}\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import type { IApiEntity, IDtoGenerateFactory } from "../../../../../interface";
2
+ import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeObjectProperties } from "../../../../../type";
3
+ export declare class DtoPropertyFactoryObject implements IDtoGenerateFactory {
4
+ create(metadata: TApiPropertyDescribeObjectProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator;
5
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DtoPropertyFactoryObject = void 0;
4
+ const decorator_1 = require("../../../../../decorator");
5
+ class DtoPropertyFactoryObject {
6
+ create(metadata, entity, config) {
7
+ return (0, decorator_1.ApiPropertyObject)({
8
+ entity,
9
+ ...config,
10
+ enum: metadata.enum,
11
+ ...metadata,
12
+ type: metadata.dataType,
13
+ });
14
+ }
15
+ }
16
+ exports.DtoPropertyFactoryObject = DtoPropertyFactoryObject;
17
+ //# sourceMappingURL=object.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.class.js","sourceRoot":"/","sources":["class/utility/dto/property/factory/object.class.ts"],"names":[],"mappings":";;;AAAA,wDAA6D;AAK7D,MAAa,wBAAwB;IACpC,MAAM,CAAC,QAA8C,EAAE,MAAkB,EAAE,MAAyC;QACnH,OAAO,IAAA,6BAAiB,EAAC;YACxB,MAAM;YACN,GAAG,MAAM;YACT,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,GAAG,QAAQ;YACX,IAAI,EAAE,QAAQ,CAAC,QAAQ;SACvB,CAAC,CAAC;IACJ,CAAC;CACD;AAVD,4DAUC","sourcesContent":["import { ApiPropertyObject } from \"../../../../../decorator\";\n\nimport type { IApiEntity, IDtoGenerateFactory } from \"../../../../../interface\";\nimport type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeObjectProperties } from \"../../../../../type\";\n\nexport class DtoPropertyFactoryObject implements IDtoGenerateFactory {\n\tcreate(metadata: TApiPropertyDescribeObjectProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator {\n\t\treturn ApiPropertyObject({\n\t\t\tentity,\n\t\t\t...config,\n\t\t\tenum: metadata.enum,\n\t\t\t...metadata,\n\t\t\ttype: metadata.dataType,\n\t\t});\n\t}\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import type { IApiEntity, IDtoGenerateFactory } from "../../../../../interface";
2
+ import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeUuidProperties } from "../../../../../type";
3
+ export declare class DtoPropertyFactoryRelation implements IDtoGenerateFactory {
4
+ create(metadata: TApiPropertyDescribeUuidProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator;
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DtoPropertyFactoryRelation = void 0;
4
+ const decorator_1 = require("../../../../../decorator");
5
+ class DtoPropertyFactoryRelation {
6
+ create(metadata, entity, config) {
7
+ return (0, decorator_1.ApiPropertyUUID)({ description: metadata.description, entity, ...config });
8
+ }
9
+ }
10
+ exports.DtoPropertyFactoryRelation = DtoPropertyFactoryRelation;
11
+ //# sourceMappingURL=relation.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relation.class.js","sourceRoot":"/","sources":["class/utility/dto/property/factory/relation.class.ts"],"names":[],"mappings":";;;AAAA,wDAA2D;AAK3D,MAAa,0BAA0B;IACtC,MAAM,CAAC,QAA4C,EAAE,MAAkB,EAAE,MAAyC;QACjH,OAAO,IAAA,2BAAe,EAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IAClF,CAAC;CACD;AAJD,gEAIC","sourcesContent":["import { ApiPropertyUUID } from \"../../../../../decorator\";\n\nimport type { IApiEntity, IDtoGenerateFactory } from \"../../../../../interface\";\nimport type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeUuidProperties } from \"../../../../../type\";\n\nexport class DtoPropertyFactoryRelation implements IDtoGenerateFactory {\n\tcreate(metadata: TApiPropertyDescribeUuidProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator {\n\t\treturn ApiPropertyUUID({ description: metadata.description, entity, ...config });\n\t}\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import type { IApiEntity, IDtoGenerateFactory } from "../../../../../interface";
2
+ import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeStringProperties } from "../../../../../type";
3
+ export declare class DtoPropertyFactoryString implements IDtoGenerateFactory {
4
+ create(metadata: TApiPropertyDescribeStringProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator;
5
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DtoPropertyFactoryString = void 0;
4
+ const decorator_1 = require("../../../../../decorator");
5
+ class DtoPropertyFactoryString {
6
+ create(metadata, entity, config) {
7
+ return (0, decorator_1.ApiPropertyString)({
8
+ entity,
9
+ ...config,
10
+ ...metadata,
11
+ });
12
+ }
13
+ }
14
+ exports.DtoPropertyFactoryString = DtoPropertyFactoryString;
15
+ //# sourceMappingURL=string.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.class.js","sourceRoot":"/","sources":["class/utility/dto/property/factory/string.class.ts"],"names":[],"mappings":";;;AAAA,wDAA6D;AAK7D,MAAa,wBAAwB;IACpC,MAAM,CAAC,QAA8C,EAAE,MAAkB,EAAE,MAAyC;QACnH,OAAO,IAAA,6BAAiB,EAAC;YACxB,MAAM;YACN,GAAG,MAAM;YACT,GAAG,QAAQ;SAC+C,CAAC,CAAC;IAC9D,CAAC;CACD;AARD,4DAQC","sourcesContent":["import { ApiPropertyString } from \"../../../../../decorator\";\n\nimport type { IApiEntity, IApiPropertyStringProperties, IDtoGenerateFactory } from \"../../../../../interface\";\nimport type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeStringProperties } from \"../../../../../type\";\n\nexport class DtoPropertyFactoryString implements IDtoGenerateFactory {\n\tcreate(metadata: TApiPropertyDescribeStringProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator {\n\t\treturn ApiPropertyString({\n\t\t\tentity,\n\t\t\t...config,\n\t\t\t...metadata,\n\t\t} as unknown as IApiPropertyStringProperties<typeof entity>);\n\t}\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import type { IApiEntity, IDtoGenerateFactory } from "../../../../../interface";
2
+ import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeUuidProperties } from "../../../../../type";
3
+ export declare class DtoPropertyFactoryUuid implements IDtoGenerateFactory {
4
+ create(metadata: TApiPropertyDescribeUuidProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator;
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DtoPropertyFactoryUuid = void 0;
4
+ const decorator_1 = require("../../../../../decorator");
5
+ class DtoPropertyFactoryUuid {
6
+ create(metadata, entity, config) {
7
+ return (0, decorator_1.ApiPropertyUUID)({ description: metadata.description, entity, ...config });
8
+ }
9
+ }
10
+ exports.DtoPropertyFactoryUuid = DtoPropertyFactoryUuid;
11
+ //# sourceMappingURL=uuid.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uuid.class.js","sourceRoot":"/","sources":["class/utility/dto/property/factory/uuid.class.ts"],"names":[],"mappings":";;;AAAA,wDAA2D;AAK3D,MAAa,sBAAsB;IAClC,MAAM,CAAC,QAA4C,EAAE,MAAkB,EAAE,MAAyC;QACjH,OAAO,IAAA,2BAAe,EAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IAClF,CAAC;CACD;AAJD,wDAIC","sourcesContent":["import { ApiPropertyUUID } from \"../../../../../decorator\";\n\nimport type { IApiEntity, IDtoGenerateFactory } from \"../../../../../interface\";\nimport type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeUuidProperties } from \"../../../../../type\";\n\nexport class DtoPropertyFactoryUuid implements IDtoGenerateFactory {\n\tcreate(metadata: TApiPropertyDescribeUuidProperties, entity: IApiEntity, config: TApiPropertyDescribeDtoProperties): PropertyDecorator {\n\t\treturn ApiPropertyUUID({ description: metadata.description, entity, ...config });\n\t}\n}\n"]}
@@ -0,0 +1 @@
1
+ export * from "./factory";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./exception"), exports);
17
+ __exportStar(require("./factory"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["class/utility/dto/property/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B","sourcesContent":["export * from \"./factory\";\n"]}
@@ -0,0 +1,6 @@
1
+ import { EApiRouteType } from "../../../../enum";
2
+ import type { IDtoStrategy } from "../../../../interface";
3
+ import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from "../../../../type";
4
+ export declare class DtoStrategyBody implements IDtoStrategy {
5
+ getDecoratorConfig(method: EApiRouteType, _metadata: TApiPropertyDescribeProperties): TApiPropertyDescribeDtoProperties;
6
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DtoStrategyBody = void 0;
4
+ const enum_1 = require("../../../../enum");
5
+ class DtoStrategyBody {
6
+ getDecoratorConfig(method, _metadata) {
7
+ switch (method) {
8
+ case enum_1.EApiRouteType.UPDATE: {
9
+ return { expose: false, required: true, response: false };
10
+ }
11
+ case enum_1.EApiRouteType.PARTIAL_UPDATE: {
12
+ return { expose: false, required: false, response: false };
13
+ }
14
+ default: {
15
+ return { expose: false, required: false, response: false };
16
+ }
17
+ }
18
+ }
19
+ }
20
+ exports.DtoStrategyBody = DtoStrategyBody;
21
+ //# sourceMappingURL=body.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"body.class.js","sourceRoot":"/","sources":["class/utility/dto/strategy/body.class.ts"],"names":[],"mappings":";;;AAAA,2CAAiD;AAKjD,MAAa,eAAe;IAC3B,kBAAkB,CAAC,MAAqB,EAAE,SAAyC;QAClF,QAAQ,MAAM,EAAE,CAAC;YAChB,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;YAC3D,CAAC;YAED,KAAK,oBAAa,CAAC,cAAc,CAAC,CAAC,CAAC;gBACnC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;YAC5D,CAAC;YAED,OAAO,CAAC,CAAC,CAAC;gBACT,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;YAC5D,CAAC;QACF,CAAC;IACF,CAAC;CACD;AAhBD,0CAgBC","sourcesContent":["import { EApiRouteType } from \"../../../../enum\";\n\nimport type { IDtoStrategy } from \"../../../../interface\";\nimport type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from \"../../../../type\";\n\nexport class DtoStrategyBody implements IDtoStrategy {\n\tgetDecoratorConfig(method: EApiRouteType, _metadata: TApiPropertyDescribeProperties): TApiPropertyDescribeDtoProperties {\n\t\tswitch (method) {\n\t\t\tcase EApiRouteType.UPDATE: {\n\t\t\t\treturn { expose: false, required: true, response: false };\n\t\t\t}\n\n\t\t\tcase EApiRouteType.PARTIAL_UPDATE: {\n\t\t\t\treturn { expose: false, required: false, response: false };\n\t\t\t}\n\n\t\t\tdefault: {\n\t\t\t\treturn { expose: false, required: false, response: false };\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export * from "./body.class";
2
+ export * from "./response.class";
3
+ export * from "./query.class";
4
+ export * from "./request.class";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./body.class"), exports);
18
+ __exportStar(require("./response.class"), exports);
19
+ __exportStar(require("./query.class"), exports);
20
+ __exportStar(require("./request.class"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["class/utility/dto/strategy/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,mDAAiC;AACjC,gDAA8B;AAC9B,kDAAgC","sourcesContent":["export * from \"./body.class\";\nexport * from \"./response.class\";\nexport * from \"./query.class\";\nexport * from \"./request.class\";\n"]}
@@ -0,0 +1,6 @@
1
+ import { EApiRouteType } from "../../../../enum";
2
+ import type { IDtoStrategy } from "../../../../interface";
3
+ import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from "../../../../type";
4
+ export declare class DtoStrategyQuery implements IDtoStrategy {
5
+ getDecoratorConfig(method: EApiRouteType, _metadata: TApiPropertyDescribeProperties): TApiPropertyDescribeDtoProperties;
6
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DtoStrategyQuery = void 0;
4
+ const enum_1 = require("../../../../enum");
5
+ class DtoStrategyQuery {
6
+ getDecoratorConfig(method, _metadata) {
7
+ switch (method) {
8
+ case enum_1.EApiRouteType.GET_LIST: {
9
+ return { expose: false, required: false, response: false };
10
+ }
11
+ default: {
12
+ return { expose: true, required: false, response: false };
13
+ }
14
+ }
15
+ }
16
+ }
17
+ exports.DtoStrategyQuery = DtoStrategyQuery;
18
+ //# sourceMappingURL=query.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.class.js","sourceRoot":"/","sources":["class/utility/dto/strategy/query.class.ts"],"names":[],"mappings":";;;AAAA,2CAAiD;AAKjD,MAAa,gBAAgB;IAC5B,kBAAkB,CAAC,MAAqB,EAAE,SAAyC;QAClF,QAAQ,MAAM,EAAE,CAAC;YAChB,KAAK,oBAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAC7B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;YAC5D,CAAC;YAED,OAAO,CAAC,CAAC,CAAC;gBACT,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;YAC3D,CAAC;QACF,CAAC;IACF,CAAC;CACD;AAZD,4CAYC","sourcesContent":["import { EApiRouteType } from \"../../../../enum\";\n\nimport type { IDtoStrategy } from \"../../../../interface\";\nimport type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from \"../../../../type\";\n\nexport class DtoStrategyQuery implements IDtoStrategy {\n\tgetDecoratorConfig(method: EApiRouteType, _metadata: TApiPropertyDescribeProperties): TApiPropertyDescribeDtoProperties {\n\t\tswitch (method) {\n\t\t\tcase EApiRouteType.GET_LIST: {\n\t\t\t\treturn { expose: false, required: false, response: false };\n\t\t\t}\n\n\t\t\tdefault: {\n\t\t\t\treturn { expose: true, required: false, response: false };\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { EApiRouteType } from "../../../../enum";
2
+ import type { IDtoStrategy } from "../../../../interface";
3
+ import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from "../../../../type";
4
+ export declare class DtoStrategyRequest implements IDtoStrategy {
5
+ getDecoratorConfig(method: EApiRouteType, _metadata: TApiPropertyDescribeProperties): TApiPropertyDescribeDtoProperties;
6
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DtoStrategyRequest = void 0;
4
+ const enum_1 = require("../../../../enum");
5
+ class DtoStrategyRequest {
6
+ getDecoratorConfig(method, _metadata) {
7
+ switch (method) {
8
+ case enum_1.EApiRouteType.GET:
9
+ case enum_1.EApiRouteType.DELETE: {
10
+ return { expose: false, required: true, response: false };
11
+ }
12
+ case enum_1.EApiRouteType.CREATE:
13
+ case enum_1.EApiRouteType.UPDATE: {
14
+ return { expose: false, required: true, response: false };
15
+ }
16
+ case enum_1.EApiRouteType.PARTIAL_UPDATE: {
17
+ return { expose: false, required: true, response: false };
18
+ }
19
+ default: {
20
+ return { expose: false, required: true, response: false };
21
+ }
22
+ }
23
+ }
24
+ }
25
+ exports.DtoStrategyRequest = DtoStrategyRequest;
26
+ //# sourceMappingURL=request.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.class.js","sourceRoot":"/","sources":["class/utility/dto/strategy/request.class.ts"],"names":[],"mappings":";;;AAAA,2CAAiD;AAKjD,MAAa,kBAAkB;IAC9B,kBAAkB,CAAC,MAAqB,EAAE,SAAyC;QAClF,QAAQ,MAAM,EAAE,CAAC;YAChB,KAAK,oBAAa,CAAC,GAAG,CAAC;YAEvB,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;YAC3D,CAAC;YAED,KAAK,oBAAa,CAAC,MAAM,CAAC;YAE1B,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;YAC3D,CAAC;YAED,KAAK,oBAAa,CAAC,cAAc,CAAC,CAAC,CAAC;gBACnC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;YAC3D,CAAC;YAED,OAAO,CAAC,CAAC,CAAC;gBACT,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;YAC3D,CAAC;QACF,CAAC;IACF,CAAC;CACD;AAxBD,gDAwBC","sourcesContent":["import { EApiRouteType } from \"../../../../enum\";\n\nimport type { IDtoStrategy } from \"../../../../interface\";\nimport type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from \"../../../../type\";\n\nexport class DtoStrategyRequest implements IDtoStrategy {\n\tgetDecoratorConfig(method: EApiRouteType, _metadata: TApiPropertyDescribeProperties): TApiPropertyDescribeDtoProperties {\n\t\tswitch (method) {\n\t\t\tcase EApiRouteType.GET:\n\n\t\t\tcase EApiRouteType.DELETE: {\n\t\t\t\treturn { expose: false, required: true, response: false };\n\t\t\t}\n\n\t\t\tcase EApiRouteType.CREATE:\n\n\t\t\tcase EApiRouteType.UPDATE: {\n\t\t\t\treturn { expose: false, required: true, response: false };\n\t\t\t}\n\n\t\t\tcase EApiRouteType.PARTIAL_UPDATE: {\n\t\t\t\treturn { expose: false, required: true, response: false };\n\t\t\t}\n\n\t\t\tdefault: {\n\t\t\t\treturn { expose: false, required: true, response: false };\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { EApiRouteType } from "../../../../enum";
2
+ import type { IDtoStrategy } from "../../../../interface";
3
+ import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from "../../../../type";
4
+ export declare class DtoStrategyResponse implements IDtoStrategy {
5
+ getDecoratorConfig(method: EApiRouteType, _metadata: TApiPropertyDescribeProperties): TApiPropertyDescribeDtoProperties;
6
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DtoStrategyResponse = void 0;
4
+ const enum_1 = require("../../../../enum");
5
+ class DtoStrategyResponse {
6
+ getDecoratorConfig(method, _metadata) {
7
+ switch (method) {
8
+ case enum_1.EApiRouteType.DELETE: {
9
+ return { expose: true, required: false, response: true };
10
+ }
11
+ default: {
12
+ return { expose: true, required: false, response: true };
13
+ }
14
+ }
15
+ }
16
+ }
17
+ exports.DtoStrategyResponse = DtoStrategyResponse;
18
+ //# sourceMappingURL=response.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.class.js","sourceRoot":"/","sources":["class/utility/dto/strategy/response.class.ts"],"names":[],"mappings":";;;AAAA,2CAAiD;AAKjD,MAAa,mBAAmB;IAC/B,kBAAkB,CAAC,MAAqB,EAAE,SAAyC;QAClF,QAAQ,MAAM,EAAE,CAAC;YAChB,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YAC1D,CAAC;YAED,OAAO,CAAC,CAAC,CAAC;gBACT,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YAC1D,CAAC;QACF,CAAC;IACF,CAAC;CACD;AAZD,kDAYC","sourcesContent":["import { EApiRouteType } from \"../../../../enum\";\n\nimport type { IDtoStrategy } from \"../../../../interface\";\nimport type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from \"../../../../type\";\n\nexport class DtoStrategyResponse implements IDtoStrategy {\n\tgetDecoratorConfig(method: EApiRouteType, _metadata: TApiPropertyDescribeProperties): TApiPropertyDescribeDtoProperties {\n\t\tswitch (method) {\n\t\t\tcase EApiRouteType.DELETE: {\n\t\t\t\treturn { expose: true, required: false, response: true };\n\t\t\t}\n\n\t\t\tdefault: {\n\t\t\t\treturn { expose: true, required: false, response: true };\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
@@ -0,0 +1 @@
1
+ export * from "./dto/strategy";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto/strategy"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["class/utility/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B","sourcesContent":["export * from \"./dto/strategy\";\n"]}
@@ -1,3 +1,3 @@
1
- export declare const API_CONTROLLER_DECORATOR_CONSTANT: {
1
+ export declare const CONTROLLER_API_DECORATOR_CONSTANT: {
2
2
  readonly RESERVED_METHOD_PREFIX: string;
3
3
  };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.API_CONTROLLER_DECORATOR_CONSTANT = void 0;
3
+ exports.CONTROLLER_API_DECORATOR_CONSTANT = void 0;
4
4
  const RESERVED_METHOD_PREFIX = "apiController";
5
- exports.API_CONTROLLER_DECORATOR_CONSTANT = {
5
+ exports.CONTROLLER_API_DECORATOR_CONSTANT = {
6
6
  RESERVED_METHOD_PREFIX,
7
7
  };
8
8
  //# sourceMappingURL=controller.constant.js.map