@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
@@ -0,0 +1,4 @@
1
+ import type { BaseApiService } from "../../../../class";
2
+ export type TApiControllerConstructor = new (...arguments_: Array<any>) => {
3
+ service: BaseApiService<any>;
4
+ };
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=create-properties.type.js.map
3
+ //# sourceMappingURL=constructor.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constructor.type.js","sourceRoot":"/","sources":["type/decorator/api/controller/constructor.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { BaseApiService } from \"../../../../class\";\n\nexport type TApiControllerConstructor = new (...arguments_: Array<any>) => { service: BaseApiService<any> };\n"]}
@@ -0,0 +1 @@
1
+ export * from "./constructor.type";
@@ -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("./constructor.type"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC","sourcesContent":["export * from \"./constructor.type\";\n"]}
@@ -0,0 +1,8 @@
1
+ import type { TApiFunctionCreateProperties } from "./properties.type";
2
+ import type { IApiBaseEntity } from "../../../../../interface";
3
+ import type { Repository } from "typeorm";
4
+ export interface IApiFunctionCreateExecutorProperties<E extends IApiBaseEntity> {
5
+ entity: IApiBaseEntity;
6
+ properties: TApiFunctionCreateProperties<E>;
7
+ repository: Repository<E>;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=executor-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/create/executor-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiFunctionCreateProperties } from \"./properties.type\";\n\nimport type { IApiBaseEntity } from \"../../../../../interface\";\nimport type { Repository } from \"typeorm\";\n\nexport interface IApiFunctionCreateExecutorProperties<E extends IApiBaseEntity> {\n\tentity: IApiBaseEntity;\n\tproperties: TApiFunctionCreateProperties<E>;\n\trepository: Repository<E>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./properties.type";
2
+ export * from "./executor-properties.type";
@@ -0,0 +1,19 @@
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("./properties.type"), exports);
18
+ __exportStar(require("./executor-properties.type"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/create/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,6DAA2C","sourcesContent":["export * from \"./properties.type\";\nexport * from \"./executor-properties.type\";\n"]}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=update-properties.type.js.map
3
+ //# sourceMappingURL=properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/create/properties.type.ts"],"names":[],"mappings":"","sourcesContent":["export type TApiFunctionCreateProperties<E> = Partial<E>;\n"]}
@@ -0,0 +1,9 @@
1
+ import type { IApiBaseEntity } from "../../../../../interface";
2
+ import type { TApiFunctionGetProperties } from "../get";
3
+ import type { Repository } from "typeorm";
4
+ export interface IApiFunctionDeleteExecutorProperties<E extends IApiBaseEntity> {
5
+ entity: IApiBaseEntity;
6
+ getFunction: (id: string, properties?: TApiFunctionGetProperties<E>) => Promise<E>;
7
+ id: number | string;
8
+ repository: Repository<E>;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=executor-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/delete/executor-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { IApiBaseEntity } from \"../../../../../interface\";\n\nimport type { TApiFunctionGetProperties } from \"../get\";\nimport type { Repository } from \"typeorm\";\n\nexport interface IApiFunctionDeleteExecutorProperties<E extends IApiBaseEntity> {\n\tentity: IApiBaseEntity;\n\tgetFunction: (id: string, properties?: TApiFunctionGetProperties<E>) => Promise<E>;\n\tid: number | string;\n\trepository: Repository<E>;\n}\n"]}
@@ -0,0 +1 @@
1
+ export * from "./executor-properties.type";
@@ -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("./executor-properties.type"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/delete/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C","sourcesContent":["export * from \"./executor-properties.type\";\n"]}
@@ -0,0 +1,7 @@
1
+ import type { IApiBaseEntity } from "../../../../../interface";
2
+ import type { FindOneOptions, Repository } from "typeorm";
3
+ export interface IApiFunctionGetExecutorProperties<E extends IApiBaseEntity> {
4
+ entity: IApiBaseEntity;
5
+ filter: FindOneOptions<E>;
6
+ repository: Repository<E>;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=executor-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/get/executor-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { IApiBaseEntity } from \"../../../../../interface\";\nimport type { FindOneOptions, Repository } from \"typeorm\";\n\nexport interface IApiFunctionGetExecutorProperties<E extends IApiBaseEntity> {\n\tentity: IApiBaseEntity;\n\tfilter: FindOneOptions<E>;\n\trepository: Repository<E>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./properties.type";
2
+ export * from "./executor-properties.type";
@@ -0,0 +1,19 @@
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("./properties.type"), exports);
18
+ __exportStar(require("./executor-properties.type"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/get/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,6DAA2C","sourcesContent":["export * from \"./properties.type\";\nexport * from \"./executor-properties.type\";\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/get/properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { FindManyOptions } from \"typeorm\";\n\nexport type TApiFunctionGetProperties<E> = {\n\tfilter?: FindManyOptions<E>;\n} & {\n\t[K in keyof E]?: E[K];\n};\n"]}
@@ -0,0 +1,16 @@
1
+ import type { EFilterOrderDirection } from "../../../../../enum";
2
+ import type { IApiFilterOrderBy } from "../../filter";
3
+ import type { FindManyOptions } from "typeorm";
4
+ export type TApiFunctionGetListBaseProperties<E> = {
5
+ createdAtFrom?: Date;
6
+ createdAtTo?: Date;
7
+ filter?: FindManyOptions<E>;
8
+ limit: number;
9
+ orderBy?: IApiFilterOrderBy<E>;
10
+ orderDirection?: EFilterOrderDirection;
11
+ page: number;
12
+ receivedAtFrom?: Date;
13
+ receivedAtTo?: Date;
14
+ updatedAtFrom?: Date;
15
+ updatedAtTo?: Date;
16
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=base-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/get-list/base-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { EFilterOrderDirection } from \"../../../../../enum\";\nimport type { IApiFilterOrderBy } from \"../../filter\";\n\nimport type { FindManyOptions } from \"typeorm\";\n\nexport type TApiFunctionGetListBaseProperties<E> = {\n\tcreatedAtFrom?: Date;\n\tcreatedAtTo?: Date;\n\tfilter?: FindManyOptions<E>;\n\tlimit: number;\n\torderBy?: IApiFilterOrderBy<E>;\n\torderDirection?: EFilterOrderDirection;\n\tpage: number;\n\treceivedAtFrom?: Date;\n\treceivedAtTo?: Date;\n\tupdatedAtFrom?: Date;\n\tupdatedAtTo?: Date;\n};\n"]}
@@ -0,0 +1,9 @@
1
+ import type { TApiFunctionGetListProperties } from "./properties.type";
2
+ import type { IApiBaseEntity } from "../../../../../interface";
3
+ import type { FindManyOptions, Repository } from "typeorm";
4
+ export interface IApiFunctionGetListExecutorProperties<E extends IApiBaseEntity> {
5
+ entity: IApiBaseEntity;
6
+ filter: FindManyOptions<E>;
7
+ properties: TApiFunctionGetListProperties<E>;
8
+ repository: Repository<E>;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=executor-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/get-list/executor-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiFunctionGetListProperties } from \"./properties.type\";\nimport type { IApiBaseEntity } from \"../../../../../interface\";\n\nimport type { FindManyOptions, Repository } from \"typeorm\";\n\nexport interface IApiFunctionGetListExecutorProperties<E extends IApiBaseEntity> {\n\tentity: IApiBaseEntity;\n\tfilter: FindManyOptions<E>;\n\tproperties: TApiFunctionGetListProperties<E>;\n\trepository: Repository<E>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./base-properties.type";
2
+ export * from "./properties.type";
3
+ export * from "./executor-properties.type";
@@ -0,0 +1,20 @@
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("./base-properties.type"), exports);
18
+ __exportStar(require("./properties.type"), exports);
19
+ __exportStar(require("./executor-properties.type"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/get-list/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,oDAAkC;AAClC,6DAA2C","sourcesContent":["export * from \"./base-properties.type\";\nexport * from \"./properties.type\";\nexport * from \"./executor-properties.type\";\n"]}
@@ -0,0 +1,9 @@
1
+ import type { TApiFunctionGetListBaseProperties } from "./base-properties.type";
2
+ import type { IApiFilterOrderBy } from "../../filter";
3
+ import type { FindManyOptions } from "typeorm";
4
+ export type TApiFunctionGetListProperties<E> = TApiFunctionGetListBaseProperties<E> & {
5
+ filter?: FindManyOptions<E>;
6
+ orderBy?: IApiFilterOrderBy<E>;
7
+ } & {
8
+ [K in Exclude<keyof Omit<E, "createdAt" | "receivedAt" | "updatedAt">, keyof TApiFunctionGetListBaseProperties<E>>]?: E[K];
9
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/get-list/properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiFunctionGetListBaseProperties } from \"./base-properties.type\";\n\nimport type { IApiFilterOrderBy } from \"../../filter\";\nimport type { FindManyOptions } from \"typeorm\";\n\nexport type TApiFunctionGetListProperties<E> = TApiFunctionGetListBaseProperties<E> & {\n\tfilter?: FindManyOptions<E>;\n\torderBy?: IApiFilterOrderBy<E>;\n} & {\n\t[K in Exclude<keyof Omit<E, \"createdAt\" | \"receivedAt\" | \"updatedAt\">, keyof TApiFunctionGetListBaseProperties<E>>]?: E[K];\n};\n"]}
@@ -1,4 +1,5 @@
1
- export * from "./get-list-properties.type";
2
- export * from "./get-properties.type";
3
- export * from "./create-properties.type";
4
- export * from "./update-properties.type";
1
+ export * from "./create";
2
+ export * from "./get-list";
3
+ export * from "./get";
4
+ export * from "./update";
5
+ export * from "./delete";
@@ -14,8 +14,9 @@ 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-list-properties.type"), exports);
18
- __exportStar(require("./get-properties.type"), exports);
19
- __exportStar(require("./create-properties.type"), exports);
20
- __exportStar(require("./update-properties.type"), exports);
17
+ __exportStar(require("./create"), exports);
18
+ __exportStar(require("./get-list"), exports);
19
+ __exportStar(require("./get"), exports);
20
+ __exportStar(require("./update"), exports);
21
+ __exportStar(require("./delete"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,wDAAsC;AACtC,2DAAyC;AACzC,2DAAyC","sourcesContent":["export * from \"./get-list-properties.type\";\nexport * from \"./get-properties.type\";\nexport * from \"./create-properties.type\";\nexport * from \"./update-properties.type\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB","sourcesContent":["export * from \"./create\";\nexport * from \"./get-list\";\nexport * from \"./get\";\nexport * from \"./update\";\nexport * from \"./delete\";\n"]}
@@ -0,0 +1,7 @@
1
+ import type { EApiFunctionType } from "../../../../enum";
2
+ import type { FindOptionsRelations } from "typeorm";
3
+ export type TApiFunctionProperties<E> = {
4
+ entity: new () => E;
5
+ relations?: FindOptionsRelations<E>;
6
+ type: EApiFunctionType;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { EApiFunctionType } from \"../../../../enum\";\n\nimport type { FindOptionsRelations } from \"typeorm\";\n\nexport type TApiFunctionProperties<E> = {\n\tentity: new () => E;\n\trelations?: FindOptionsRelations<E>;\n\ttype: EApiFunctionType;\n};\n"]}
@@ -0,0 +1,11 @@
1
+ import type { TApiFunctionUpdateProperties } from "./properties.type";
2
+ import type { IApiBaseEntity } from "../../../../../interface";
3
+ import type { TApiFunctionGetProperties } from "../get";
4
+ import type { Repository } from "typeorm";
5
+ export interface IApiFunctionUpdateExecutorProperties<E extends IApiBaseEntity> {
6
+ entity: IApiBaseEntity;
7
+ getFunction: (id: string, properties?: TApiFunctionGetProperties<E>) => Promise<E>;
8
+ id: number | string;
9
+ properties: TApiFunctionUpdateProperties<E>;
10
+ repository: Repository<E>;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=executor-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/update/executor-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiFunctionUpdateProperties } from \"./properties.type\";\nimport type { IApiBaseEntity } from \"../../../../../interface\";\n\nimport type { TApiFunctionGetProperties } from \"../get\";\nimport type { Repository } from \"typeorm\";\n\nexport interface IApiFunctionUpdateExecutorProperties<E extends IApiBaseEntity> {\n\tentity: IApiBaseEntity;\n\tgetFunction: (id: string, properties?: TApiFunctionGetProperties<E>) => Promise<E>;\n\tid: number | string;\n\tproperties: TApiFunctionUpdateProperties<E>;\n\trepository: Repository<E>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./executor-properties.type";
2
+ export * from "./properties.type";
@@ -0,0 +1,19 @@
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("./executor-properties.type"), exports);
18
+ __exportStar(require("./properties.type"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/update/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,oDAAkC","sourcesContent":["export * from \"./executor-properties.type\";\nexport * from \"./properties.type\";\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/update/properties.type.ts"],"names":[],"mappings":"","sourcesContent":["export type TApiFunctionUpdateProperties<E> = Partial<E>;\n"]}
@@ -1,3 +1,4 @@
1
1
  export * from "./filter";
2
2
  export * from "./function";
3
3
  export * from "./property";
4
+ export * from "./controller";
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./filter"), exports);
18
18
  __exportStar(require("./function"), exports);
19
19
  __exportStar(require("./property"), exports);
20
+ __exportStar(require("./controller"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,6CAA2B","sourcesContent":["export * from \"./filter\";\nexport * from \"./function\";\nexport * from \"./property\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B","sourcesContent":["export * from \"./filter\";\nexport * from \"./function\";\nexport * from \"./property\";\nexport * from \"./controller\";\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./required-properties.type";
2
+ export * from "./optional-properties.type";
@@ -0,0 +1,19 @@
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("./required-properties.type"), exports);
18
+ __exportStar(require("./optional-properties.type"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/array/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,6DAA2C","sourcesContent":["export * from \"./required-properties.type\";\nexport * from \"./optional-properties.type\";\n"]}
@@ -0,0 +1,3 @@
1
+ export type TApiPropertyDescribeArrayOptionalProperties = {
2
+ isArray?: false;
3
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=optional-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optional-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/array/optional-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["export type TApiPropertyDescribeArrayOptionalProperties = {\n\tisArray?: false;\n};\n"]}
@@ -0,0 +1,6 @@
1
+ export type TApiPropertyDescribeArrayRequiredProperties = {
2
+ isArray: true;
3
+ maxItems: number;
4
+ minItems: number;
5
+ uniqueItems: boolean;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=required-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"required-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/array/required-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["export type TApiPropertyDescribeArrayRequiredProperties = {\n\tisArray: true;\n\tmaxItems: number;\n\tminItems: number;\n\tuniqueItems: boolean;\n};\n"]}
@@ -0,0 +1,7 @@
1
+ import type { TApiPropertyDescribePropertiesBaseProperties } from "./properties/base-properties.type";
2
+ export type TApiPropertyDescribeBaseProperties = {
3
+ enum?: Record<string, number | string>;
4
+ isArray?: boolean;
5
+ nullable?: boolean;
6
+ properties?: TApiPropertyDescribePropertiesBaseProperties;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=base-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/base-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiPropertyDescribePropertiesBaseProperties } from \"./properties/base-properties.type\";\n\nexport type TApiPropertyDescribeBaseProperties = {\n\tenum?: Record<string, number | string>;\n\tisArray?: boolean;\n\tnullable?: boolean;\n\tproperties?: TApiPropertyDescribePropertiesBaseProperties;\n};\n"]}
@@ -0,0 +1,7 @@
1
+ import type { TApiPropertyDescribeArrayOptionalProperties, TApiPropertyDescribeArrayRequiredProperties } from "./array";
2
+ import type { TApiPropertyDescribeBaseProperties } from "./base-properties.type";
3
+ import type { EApiPropertyDescribeType } from "../../../../../enum";
4
+ export type TApiPropertyDescribeBooleanProperties = TApiPropertyDescribeBaseProperties & {
5
+ description: string;
6
+ type: EApiPropertyDescribeType.BOOLEAN;
7
+ } & (TApiPropertyDescribeArrayOptionalProperties | TApiPropertyDescribeArrayRequiredProperties);
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=boolean-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/boolean-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiPropertyDescribeArrayOptionalProperties, TApiPropertyDescribeArrayRequiredProperties } from \"./array\";\nimport type { TApiPropertyDescribeBaseProperties } from \"./base-properties.type\";\n\nimport type { EApiPropertyDescribeType } from \"../../../../../enum\";\n\nexport type TApiPropertyDescribeBooleanProperties = TApiPropertyDescribeBaseProperties & {\n\tdescription: string;\n\ttype: EApiPropertyDescribeType.BOOLEAN;\n} & (TApiPropertyDescribeArrayOptionalProperties | TApiPropertyDescribeArrayRequiredProperties);\n"]}
@@ -0,0 +1,7 @@
1
+ import type { TApiPropertyDescribeArrayOptionalProperties, TApiPropertyDescribeArrayRequiredProperties } from "./array";
2
+ import type { TApiPropertyDescribeBaseProperties } from "./base-properties.type";
3
+ import type { EApiPropertyDateType, EApiPropertyDescribeType } from "../../../../../enum";
4
+ export type TApiPropertyDescribeDateProperties = TApiPropertyDescribeBaseProperties & {
5
+ dataType: EApiPropertyDateType;
6
+ type: EApiPropertyDescribeType.DATE;
7
+ } & (TApiPropertyDescribeArrayOptionalProperties | TApiPropertyDescribeArrayRequiredProperties);
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=date-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/date-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiPropertyDescribeArrayOptionalProperties, TApiPropertyDescribeArrayRequiredProperties } from \"./array\";\nimport type { TApiPropertyDescribeBaseProperties } from \"./base-properties.type\";\n\nimport type { EApiPropertyDateType, EApiPropertyDescribeType } from \"../../../../../enum\";\n\nexport type TApiPropertyDescribeDateProperties = TApiPropertyDescribeBaseProperties & {\n\tdataType: EApiPropertyDateType;\n\ttype: EApiPropertyDescribeType.DATE;\n} & (TApiPropertyDescribeArrayOptionalProperties | TApiPropertyDescribeArrayRequiredProperties);\n"]}
@@ -0,0 +1,5 @@
1
+ import type { TApiPropertyDescribeDtoProperties } from "./properties.type";
2
+ import type { EApiDtoType } from "../../../../../../enum";
3
+ export type TApiPropertyDescribeDtoBodyProperties = {
4
+ [EApiDtoType.BODY]?: TApiPropertyDescribeDtoProperties;
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=body-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"body-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/dto/body-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiPropertyDescribeDtoProperties } from \"./properties.type\";\n\nimport type { EApiDtoType } from \"../../../../../../enum\";\n\nexport type TApiPropertyDescribeDtoBodyProperties = {\n\t[EApiDtoType.BODY]?: TApiPropertyDescribeDtoProperties;\n};\n"]}
@@ -0,0 +1,5 @@
1
+ export * from "./query";
2
+ export * from "./properties.type";
3
+ export * from "./body-properties.type";
4
+ export * from "./request-properties.type";
5
+ export * from "./response-properties.type";