vona-module-a-swagger 5.0.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 (458) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +2 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/lib/common/index.d.ts +2 -0
  7. package/dist/lib/common/index.d.ts.map +1 -0
  8. package/dist/lib/common/index.js +2 -0
  9. package/dist/lib/common/index.js.map +1 -0
  10. package/dist/lib/common/type.interface.d.ts +4 -0
  11. package/dist/lib/common/type.interface.d.ts.map +1 -0
  12. package/dist/lib/common/type.interface.js +2 -0
  13. package/dist/lib/common/type.interface.js.map +1 -0
  14. package/dist/lib/constants.d.ts +22 -0
  15. package/dist/lib/constants.d.ts.map +1 -0
  16. package/dist/lib/constants.js +22 -0
  17. package/dist/lib/constants.js.map +1 -0
  18. package/dist/lib/decorators/api-basic.decorator.d.ts +2 -0
  19. package/dist/lib/decorators/api-basic.decorator.d.ts.map +1 -0
  20. package/dist/lib/decorators/api-basic.decorator.js +5 -0
  21. package/dist/lib/decorators/api-basic.decorator.js.map +1 -0
  22. package/dist/lib/decorators/api-bearer.decorator.d.ts +2 -0
  23. package/dist/lib/decorators/api-bearer.decorator.d.ts.map +1 -0
  24. package/dist/lib/decorators/api-bearer.decorator.js +5 -0
  25. package/dist/lib/decorators/api-bearer.decorator.js.map +1 -0
  26. package/dist/lib/decorators/api-body.decorator.d.ts +17 -0
  27. package/dist/lib/decorators/api-body.decorator.d.ts.map +1 -0
  28. package/dist/lib/decorators/api-body.decorator.js +24 -0
  29. package/dist/lib/decorators/api-body.decorator.js.map +1 -0
  30. package/dist/lib/decorators/api-callbacks.decorator.d.ts +3 -0
  31. package/dist/lib/decorators/api-callbacks.decorator.d.ts.map +1 -0
  32. package/dist/lib/decorators/api-callbacks.decorator.js +6 -0
  33. package/dist/lib/decorators/api-callbacks.decorator.js.map +1 -0
  34. package/dist/lib/decorators/api-consumes.decorator.d.ts +2 -0
  35. package/dist/lib/decorators/api-consumes.decorator.d.ts.map +1 -0
  36. package/dist/lib/decorators/api-consumes.decorator.js +6 -0
  37. package/dist/lib/decorators/api-consumes.decorator.js.map +1 -0
  38. package/dist/lib/decorators/api-cookie.decorator.d.ts +2 -0
  39. package/dist/lib/decorators/api-cookie.decorator.d.ts.map +1 -0
  40. package/dist/lib/decorators/api-cookie.decorator.js +5 -0
  41. package/dist/lib/decorators/api-cookie.decorator.js.map +1 -0
  42. package/dist/lib/decorators/api-default-getter.decorator.d.ts +25 -0
  43. package/dist/lib/decorators/api-default-getter.decorator.d.ts.map +1 -0
  44. package/dist/lib/decorators/api-default-getter.decorator.js +32 -0
  45. package/dist/lib/decorators/api-default-getter.decorator.js.map +1 -0
  46. package/dist/lib/decorators/api-exclude-controller.decorator.d.ts +2 -0
  47. package/dist/lib/decorators/api-exclude-controller.decorator.d.ts.map +1 -0
  48. package/dist/lib/decorators/api-exclude-controller.decorator.js +6 -0
  49. package/dist/lib/decorators/api-exclude-controller.decorator.js.map +1 -0
  50. package/dist/lib/decorators/api-exclude-endpoint.decorator.d.ts +2 -0
  51. package/dist/lib/decorators/api-exclude-endpoint.decorator.d.ts.map +1 -0
  52. package/dist/lib/decorators/api-exclude-endpoint.decorator.js +8 -0
  53. package/dist/lib/decorators/api-exclude-endpoint.decorator.js.map +1 -0
  54. package/dist/lib/decorators/api-extension.decorator.d.ts +2 -0
  55. package/dist/lib/decorators/api-extension.decorator.d.ts.map +1 -0
  56. package/dist/lib/decorators/api-extension.decorator.js +13 -0
  57. package/dist/lib/decorators/api-extension.decorator.js.map +1 -0
  58. package/dist/lib/decorators/api-extra-models.decorator.d.ts +2 -0
  59. package/dist/lib/decorators/api-extra-models.decorator.d.ts.map +1 -0
  60. package/dist/lib/decorators/api-extra-models.decorator.js +14 -0
  61. package/dist/lib/decorators/api-extra-models.decorator.js.map +1 -0
  62. package/dist/lib/decorators/api-header.decorator.d.ts +8 -0
  63. package/dist/lib/decorators/api-header.decorator.d.ts.map +1 -0
  64. package/dist/lib/decorators/api-header.decorator.js +40 -0
  65. package/dist/lib/decorators/api-header.decorator.js.map +1 -0
  66. package/dist/lib/decorators/api-hide-property.decorator.d.ts +2 -0
  67. package/dist/lib/decorators/api-hide-property.decorator.d.ts.map +1 -0
  68. package/dist/lib/decorators/api-hide-property.decorator.js +5 -0
  69. package/dist/lib/decorators/api-hide-property.decorator.js.map +1 -0
  70. package/dist/lib/decorators/api-link.decorator.d.ts +48 -0
  71. package/dist/lib/decorators/api-link.decorator.d.ts.map +1 -0
  72. package/dist/lib/decorators/api-link.decorator.js +50 -0
  73. package/dist/lib/decorators/api-link.decorator.js.map +1 -0
  74. package/dist/lib/decorators/api-oauth2.decorator.d.ts +2 -0
  75. package/dist/lib/decorators/api-oauth2.decorator.d.ts.map +1 -0
  76. package/dist/lib/decorators/api-oauth2.decorator.js +5 -0
  77. package/dist/lib/decorators/api-oauth2.decorator.js.map +1 -0
  78. package/dist/lib/decorators/api-operation.decorator.d.ts +6 -0
  79. package/dist/lib/decorators/api-operation.decorator.d.ts.map +1 -0
  80. package/dist/lib/decorators/api-operation.decorator.js +13 -0
  81. package/dist/lib/decorators/api-operation.decorator.js.map +1 -0
  82. package/dist/lib/decorators/api-param.decorator.d.ts +23 -0
  83. package/dist/lib/decorators/api-param.decorator.d.ts.map +1 -0
  84. package/dist/lib/decorators/api-param.decorator.js +19 -0
  85. package/dist/lib/decorators/api-param.decorator.js.map +1 -0
  86. package/dist/lib/decorators/api-produces.decorator.d.ts +2 -0
  87. package/dist/lib/decorators/api-produces.decorator.d.ts.map +1 -0
  88. package/dist/lib/decorators/api-produces.decorator.js +6 -0
  89. package/dist/lib/decorators/api-produces.decorator.js.map +1 -0
  90. package/dist/lib/decorators/api-property.decorator.d.ts +25 -0
  91. package/dist/lib/decorators/api-property.decorator.d.ts.map +1 -0
  92. package/dist/lib/decorators/api-property.decorator.js +53 -0
  93. package/dist/lib/decorators/api-property.decorator.js.map +1 -0
  94. package/dist/lib/decorators/api-query.decorator.d.ts +25 -0
  95. package/dist/lib/decorators/api-query.decorator.d.ts.map +1 -0
  96. package/dist/lib/decorators/api-query.decorator.js +28 -0
  97. package/dist/lib/decorators/api-query.decorator.js.map +1 -0
  98. package/dist/lib/decorators/api-response.decorator.d.ts +40 -0
  99. package/dist/lib/decorators/api-response.decorator.d.ts.map +1 -0
  100. package/dist/lib/decorators/api-response.decorator.js +63 -0
  101. package/dist/lib/decorators/api-response.decorator.js.map +1 -0
  102. package/dist/lib/decorators/api-schema.decorator.d.ts +9 -0
  103. package/dist/lib/decorators/api-schema.decorator.d.ts.map +1 -0
  104. package/dist/lib/decorators/api-schema.decorator.js +6 -0
  105. package/dist/lib/decorators/api-schema.decorator.js.map +1 -0
  106. package/dist/lib/decorators/api-security.decorator.d.ts +3 -0
  107. package/dist/lib/decorators/api-security.decorator.d.ts.map +1 -0
  108. package/dist/lib/decorators/api-security.decorator.js +23 -0
  109. package/dist/lib/decorators/api-security.decorator.js.map +1 -0
  110. package/dist/lib/decorators/api-use-tags.decorator.d.ts +2 -0
  111. package/dist/lib/decorators/api-use-tags.decorator.d.ts.map +1 -0
  112. package/dist/lib/decorators/api-use-tags.decorator.js +6 -0
  113. package/dist/lib/decorators/api-use-tags.decorator.js.map +1 -0
  114. package/dist/lib/decorators/helpers.d.ts +9 -0
  115. package/dist/lib/decorators/helpers.d.ts.map +1 -0
  116. package/dist/lib/decorators/helpers.js +120 -0
  117. package/dist/lib/decorators/helpers.js.map +1 -0
  118. package/dist/lib/decorators/index.d.ts +25 -0
  119. package/dist/lib/decorators/index.d.ts.map +1 -0
  120. package/dist/lib/decorators/index.js +25 -0
  121. package/dist/lib/decorators/index.js.map +1 -0
  122. package/dist/lib/document-builder.d.ts +28 -0
  123. package/dist/lib/document-builder.d.ts.map +1 -0
  124. package/dist/lib/document-builder.js +167 -0
  125. package/dist/lib/document-builder.js.map +1 -0
  126. package/dist/lib/explorers/api-callbacks.explorer.d.ts +3 -0
  127. package/dist/lib/explorers/api-callbacks.explorer.d.ts.map +1 -0
  128. package/dist/lib/explorers/api-callbacks.explorer.js +35 -0
  129. package/dist/lib/explorers/api-callbacks.explorer.js.map +1 -0
  130. package/dist/lib/explorers/api-consumes.explorer.d.ts +6 -0
  131. package/dist/lib/explorers/api-consumes.explorer.d.ts.map +1 -0
  132. package/dist/lib/explorers/api-consumes.explorer.js +7 -0
  133. package/dist/lib/explorers/api-consumes.explorer.js.map +1 -0
  134. package/dist/lib/explorers/api-exclude-controller.explorer.d.ts +3 -0
  135. package/dist/lib/explorers/api-exclude-controller.explorer.d.ts.map +1 -0
  136. package/dist/lib/explorers/api-exclude-controller.explorer.js +3 -0
  137. package/dist/lib/explorers/api-exclude-controller.explorer.js.map +1 -0
  138. package/dist/lib/explorers/api-exclude-endpoint.explorer.d.ts +3 -0
  139. package/dist/lib/explorers/api-exclude-endpoint.explorer.d.ts.map +1 -0
  140. package/dist/lib/explorers/api-exclude-endpoint.explorer.js +3 -0
  141. package/dist/lib/explorers/api-exclude-endpoint.explorer.js.map +1 -0
  142. package/dist/lib/explorers/api-extra-models.explorer.d.ts +4 -0
  143. package/dist/lib/explorers/api-extra-models.explorer.d.ts.map +1 -0
  144. package/dist/lib/explorers/api-extra-models.explorer.js +7 -0
  145. package/dist/lib/explorers/api-extra-models.explorer.js.map +1 -0
  146. package/dist/lib/explorers/api-headers.explorer.d.ts +8 -0
  147. package/dist/lib/explorers/api-headers.explorer.d.ts.map +1 -0
  148. package/dist/lib/explorers/api-headers.explorer.js +6 -0
  149. package/dist/lib/explorers/api-headers.explorer.js.map +1 -0
  150. package/dist/lib/explorers/api-operation.explorer.d.ts +3 -0
  151. package/dist/lib/explorers/api-operation.explorer.d.ts.map +1 -0
  152. package/dist/lib/explorers/api-operation.explorer.js +38 -0
  153. package/dist/lib/explorers/api-operation.explorer.js.map +1 -0
  154. package/dist/lib/explorers/api-parameters.explorer.d.ts +6 -0
  155. package/dist/lib/explorers/api-parameters.explorer.d.ts.map +1 -0
  156. package/dist/lib/explorers/api-parameters.explorer.js +44 -0
  157. package/dist/lib/explorers/api-parameters.explorer.js.map +1 -0
  158. package/dist/lib/explorers/api-produces.explorer.d.ts +6 -0
  159. package/dist/lib/explorers/api-produces.explorer.d.ts.map +1 -0
  160. package/dist/lib/explorers/api-produces.explorer.js +7 -0
  161. package/dist/lib/explorers/api-produces.explorer.js.map +1 -0
  162. package/dist/lib/explorers/api-response.explorer.d.ts +8 -0
  163. package/dist/lib/explorers/api-response.explorer.d.ts.map +1 -0
  164. package/dist/lib/explorers/api-response.explorer.js +77 -0
  165. package/dist/lib/explorers/api-response.explorer.js.map +1 -0
  166. package/dist/lib/explorers/api-security.explorer.d.ts +6 -0
  167. package/dist/lib/explorers/api-security.explorer.d.ts.map +1 -0
  168. package/dist/lib/explorers/api-security.explorer.js +9 -0
  169. package/dist/lib/explorers/api-security.explorer.js.map +1 -0
  170. package/dist/lib/explorers/api-use-tags.explorer.d.ts +6 -0
  171. package/dist/lib/explorers/api-use-tags.explorer.d.ts.map +1 -0
  172. package/dist/lib/explorers/api-use-tags.explorer.js +17 -0
  173. package/dist/lib/explorers/api-use-tags.explorer.js.map +1 -0
  174. package/dist/lib/extra/swagger-shim.d.ts +97 -0
  175. package/dist/lib/extra/swagger-shim.d.ts.map +1 -0
  176. package/dist/lib/extra/swagger-shim.js +265 -0
  177. package/dist/lib/extra/swagger-shim.js.map +1 -0
  178. package/dist/lib/fixtures/document.base.d.ts +3 -0
  179. package/dist/lib/fixtures/document.base.d.ts.map +1 -0
  180. package/dist/lib/fixtures/document.base.js +13 -0
  181. package/dist/lib/fixtures/document.base.js.map +1 -0
  182. package/dist/lib/index.d.ts +8 -0
  183. package/dist/lib/index.d.ts.map +1 -0
  184. package/dist/lib/index.js +8 -0
  185. package/dist/lib/index.js.map +1 -0
  186. package/dist/lib/interfaces/callback-object.interface.d.ts +13 -0
  187. package/dist/lib/interfaces/callback-object.interface.d.ts.map +1 -0
  188. package/dist/lib/interfaces/callback-object.interface.js +2 -0
  189. package/dist/lib/interfaces/callback-object.interface.js.map +1 -0
  190. package/dist/lib/interfaces/denormalized-doc-resolvers.interface.d.ts +8 -0
  191. package/dist/lib/interfaces/denormalized-doc-resolvers.interface.d.ts.map +1 -0
  192. package/dist/lib/interfaces/denormalized-doc-resolvers.interface.js +2 -0
  193. package/dist/lib/interfaces/denormalized-doc-resolvers.interface.js.map +1 -0
  194. package/dist/lib/interfaces/denormalized-doc.interface.d.ts +9 -0
  195. package/dist/lib/interfaces/denormalized-doc.interface.d.ts.map +1 -0
  196. package/dist/lib/interfaces/denormalized-doc.interface.js +2 -0
  197. package/dist/lib/interfaces/denormalized-doc.interface.js.map +1 -0
  198. package/dist/lib/interfaces/enum-schema-attributes.interface.d.ts +3 -0
  199. package/dist/lib/interfaces/enum-schema-attributes.interface.d.ts.map +1 -0
  200. package/dist/lib/interfaces/enum-schema-attributes.interface.js +2 -0
  201. package/dist/lib/interfaces/enum-schema-attributes.interface.js.map +1 -0
  202. package/dist/lib/interfaces/index.d.ts +4 -0
  203. package/dist/lib/interfaces/index.d.ts.map +1 -0
  204. package/dist/lib/interfaces/index.js +3 -0
  205. package/dist/lib/interfaces/index.js.map +1 -0
  206. package/dist/lib/interfaces/module-route.interface.d.ts +3 -0
  207. package/dist/lib/interfaces/module-route.interface.d.ts.map +1 -0
  208. package/dist/lib/interfaces/module-route.interface.js +2 -0
  209. package/dist/lib/interfaces/module-route.interface.js.map +1 -0
  210. package/dist/lib/interfaces/open-api-spec.interface.d.ts +241 -0
  211. package/dist/lib/interfaces/open-api-spec.interface.d.ts.map +1 -0
  212. package/dist/lib/interfaces/open-api-spec.interface.js +6 -0
  213. package/dist/lib/interfaces/open-api-spec.interface.js.map +1 -0
  214. package/dist/lib/interfaces/schema-object-metadata.interface.d.ts +24 -0
  215. package/dist/lib/interfaces/schema-object-metadata.interface.d.ts.map +1 -0
  216. package/dist/lib/interfaces/schema-object-metadata.interface.js +2 -0
  217. package/dist/lib/interfaces/schema-object-metadata.interface.js.map +1 -0
  218. package/dist/lib/interfaces/swagger-custom-options.interface.d.ts +85 -0
  219. package/dist/lib/interfaces/swagger-custom-options.interface.d.ts.map +1 -0
  220. package/dist/lib/interfaces/swagger-custom-options.interface.js +2 -0
  221. package/dist/lib/interfaces/swagger-custom-options.interface.js.map +1 -0
  222. package/dist/lib/interfaces/swagger-document-options.interface.d.ts +36 -0
  223. package/dist/lib/interfaces/swagger-document-options.interface.d.ts.map +1 -0
  224. package/dist/lib/interfaces/swagger-document-options.interface.js +2 -0
  225. package/dist/lib/interfaces/swagger-document-options.interface.js.map +1 -0
  226. package/dist/lib/interfaces/swagger-ui-init-options.interface.d.ts +8 -0
  227. package/dist/lib/interfaces/swagger-ui-init-options.interface.d.ts.map +1 -0
  228. package/dist/lib/interfaces/swagger-ui-init-options.interface.js +2 -0
  229. package/dist/lib/interfaces/swagger-ui-init-options.interface.js.map +1 -0
  230. package/dist/lib/interfaces/swagger-ui-options.interface.d.ts +21 -0
  231. package/dist/lib/interfaces/swagger-ui-options.interface.d.ts.map +1 -0
  232. package/dist/lib/interfaces/swagger-ui-options.interface.js +2 -0
  233. package/dist/lib/interfaces/swagger-ui-options.interface.js.map +1 -0
  234. package/dist/lib/plugin/compiler-plugin.d.ts +3 -0
  235. package/dist/lib/plugin/compiler-plugin.d.ts.map +1 -0
  236. package/dist/lib/plugin/compiler-plugin.js +27 -0
  237. package/dist/lib/plugin/compiler-plugin.js.map +1 -0
  238. package/dist/lib/plugin/index.d.ts +3 -0
  239. package/dist/lib/plugin/index.d.ts.map +1 -0
  240. package/dist/lib/plugin/index.js +3 -0
  241. package/dist/lib/plugin/index.js.map +1 -0
  242. package/dist/lib/plugin/merge-options.d.ts +15 -0
  243. package/dist/lib/plugin/merge-options.d.ts.map +1 -0
  244. package/dist/lib/plugin/merge-options.js +35 -0
  245. package/dist/lib/plugin/merge-options.js.map +1 -0
  246. package/dist/lib/plugin/metadata-loader.d.ts +8 -0
  247. package/dist/lib/plugin/metadata-loader.d.ts.map +1 -0
  248. package/dist/lib/plugin/metadata-loader.js +41 -0
  249. package/dist/lib/plugin/metadata-loader.js.map +1 -0
  250. package/dist/lib/plugin/plugin-constants.d.ts +4 -0
  251. package/dist/lib/plugin/plugin-constants.d.ts.map +1 -0
  252. package/dist/lib/plugin/plugin-constants.js +4 -0
  253. package/dist/lib/plugin/plugin-constants.js.map +1 -0
  254. package/dist/lib/plugin/plugin-debug-logger.d.ts +6 -0
  255. package/dist/lib/plugin/plugin-debug-logger.d.ts.map +1 -0
  256. package/dist/lib/plugin/plugin-debug-logger.js +5 -0
  257. package/dist/lib/plugin/plugin-debug-logger.js.map +1 -0
  258. package/dist/lib/plugin/utils/ast-utils.d.ts +31 -0
  259. package/dist/lib/plugin/utils/ast-utils.d.ts.map +1 -0
  260. package/dist/lib/plugin/utils/ast-utils.js +242 -0
  261. package/dist/lib/plugin/utils/ast-utils.js.map +1 -0
  262. package/dist/lib/plugin/utils/external-imports.util.d.ts +4 -0
  263. package/dist/lib/plugin/utils/external-imports.util.d.ts.map +1 -0
  264. package/dist/lib/plugin/utils/external-imports.util.js +31 -0
  265. package/dist/lib/plugin/utils/external-imports.util.js.map +1 -0
  266. package/dist/lib/plugin/utils/is-filename-matched.util.d.ts +2 -0
  267. package/dist/lib/plugin/utils/is-filename-matched.util.d.ts.map +1 -0
  268. package/dist/lib/plugin/utils/is-filename-matched.util.js +2 -0
  269. package/dist/lib/plugin/utils/is-filename-matched.util.js.map +1 -0
  270. package/dist/lib/plugin/utils/plugin-utils.d.ts +58 -0
  271. package/dist/lib/plugin/utils/plugin-utils.d.ts.map +1 -0
  272. package/dist/lib/plugin/utils/plugin-utils.js +282 -0
  273. package/dist/lib/plugin/utils/plugin-utils.js.map +1 -0
  274. package/dist/lib/plugin/utils/type-reference-to-identifier.util.d.ts +8 -0
  275. package/dist/lib/plugin/utils/type-reference-to-identifier.util.d.ts.map +1 -0
  276. package/dist/lib/plugin/utils/type-reference-to-identifier.util.js +50 -0
  277. package/dist/lib/plugin/utils/type-reference-to-identifier.util.js.map +1 -0
  278. package/dist/lib/plugin/visitors/abstract.visitor.d.ts +5 -0
  279. package/dist/lib/plugin/visitors/abstract.visitor.d.ts.map +1 -0
  280. package/dist/lib/plugin/visitors/abstract.visitor.js +20 -0
  281. package/dist/lib/plugin/visitors/abstract.visitor.js.map +1 -0
  282. package/dist/lib/plugin/visitors/controller-class.visitor.d.ts +21 -0
  283. package/dist/lib/plugin/visitors/controller-class.visitor.d.ts.map +1 -0
  284. package/dist/lib/plugin/visitors/controller-class.visitor.js +266 -0
  285. package/dist/lib/plugin/visitors/controller-class.visitor.js.map +1 -0
  286. package/dist/lib/plugin/visitors/model-class.visitor.d.ts +40 -0
  287. package/dist/lib/plugin/visitors/model-class.visitor.d.ts.map +1 -0
  288. package/dist/lib/plugin/visitors/model-class.visitor.js +445 -0
  289. package/dist/lib/plugin/visitors/model-class.visitor.js.map +1 -0
  290. package/dist/lib/plugin/visitors/readonly.visitor.d.ts +22 -0
  291. package/dist/lib/plugin/visitors/readonly.visitor.d.ts.map +1 -0
  292. package/dist/lib/plugin/visitors/readonly.visitor.js +60 -0
  293. package/dist/lib/plugin/visitors/readonly.visitor.js.map +1 -0
  294. package/dist/lib/services/constants.d.ts +2 -0
  295. package/dist/lib/services/constants.d.ts.map +1 -0
  296. package/dist/lib/services/constants.js +2 -0
  297. package/dist/lib/services/constants.js.map +1 -0
  298. package/dist/lib/services/decorators-properties.d.ts +27 -0
  299. package/dist/lib/services/decorators-properties.d.ts.map +1 -0
  300. package/dist/lib/services/decorators-properties.js +147 -0
  301. package/dist/lib/services/decorators-properties.js.map +1 -0
  302. package/dist/lib/services/mimetype-content-wrapper.d.ts +5 -0
  303. package/dist/lib/services/mimetype-content-wrapper.d.ts.map +1 -0
  304. package/dist/lib/services/mimetype-content-wrapper.js +8 -0
  305. package/dist/lib/services/mimetype-content-wrapper.js.map +1 -0
  306. package/dist/lib/services/model-properties-accessor.d.ts +7 -0
  307. package/dist/lib/services/model-properties-accessor.d.ts.map +1 -0
  308. package/dist/lib/services/model-properties-accessor.js +33 -0
  309. package/dist/lib/services/model-properties-accessor.js.map +1 -0
  310. package/dist/lib/services/parameter-metadata-accessor.d.ts +22 -0
  311. package/dist/lib/services/parameter-metadata-accessor.d.ts.map +1 -0
  312. package/dist/lib/services/parameter-metadata-accessor.js +38 -0
  313. package/dist/lib/services/parameter-metadata-accessor.js.map +1 -0
  314. package/dist/lib/services/parameters-metadata-mapper.d.ts +10 -0
  315. package/dist/lib/services/parameters-metadata-mapper.d.ts.map +1 -0
  316. package/dist/lib/services/parameters-metadata-mapper.js +45 -0
  317. package/dist/lib/services/parameters-metadata-mapper.js.map +1 -0
  318. package/dist/lib/services/response-object-factory.d.ts +15 -0
  319. package/dist/lib/services/response-object-factory.d.ts.map +1 -0
  320. package/dist/lib/services/response-object-factory.js +123 -0
  321. package/dist/lib/services/response-object-factory.js.map +1 -0
  322. package/dist/lib/services/response-object-mapper.d.ts +8 -0
  323. package/dist/lib/services/response-object-mapper.d.ts.map +1 -0
  324. package/dist/lib/services/response-object-mapper.js +55 -0
  325. package/dist/lib/services/response-object-mapper.js.map +1 -0
  326. package/dist/lib/services/schema-object-factory.d.ts +160 -0
  327. package/dist/lib/services/schema-object-factory.d.ts.map +1 -0
  328. package/dist/lib/services/schema-object-factory.js +484 -0
  329. package/dist/lib/services/schema-object-factory.js.map +1 -0
  330. package/dist/lib/services/swagger-types-mapper.d.ts +19 -0
  331. package/dist/lib/services/swagger-types-mapper.d.ts.map +1 -0
  332. package/dist/lib/services/swagger-types-mapper.js +132 -0
  333. package/dist/lib/services/swagger-types-mapper.js.map +1 -0
  334. package/dist/lib/storages/global-parameters.storage.d.ts +9 -0
  335. package/dist/lib/storages/global-parameters.storage.d.ts.map +1 -0
  336. package/dist/lib/storages/global-parameters.storage.js +23 -0
  337. package/dist/lib/storages/global-parameters.storage.js.map +1 -0
  338. package/dist/lib/swagger-transformer.d.ts +8 -0
  339. package/dist/lib/swagger-transformer.d.ts.map +1 -0
  340. package/dist/lib/swagger-transformer.js +36 -0
  341. package/dist/lib/swagger-transformer.js.map +1 -0
  342. package/dist/lib/swagger-ui/constants.d.ts +4 -0
  343. package/dist/lib/swagger-ui/constants.d.ts.map +1 -0
  344. package/dist/lib/swagger-ui/constants.js +130 -0
  345. package/dist/lib/swagger-ui/constants.js.map +1 -0
  346. package/dist/lib/swagger-ui/helpers.d.ts +6 -0
  347. package/dist/lib/swagger-ui/helpers.d.ts.map +1 -0
  348. package/dist/lib/swagger-ui/helpers.js +17 -0
  349. package/dist/lib/swagger-ui/helpers.js.map +1 -0
  350. package/dist/lib/swagger-ui/index.d.ts +2 -0
  351. package/dist/lib/swagger-ui/index.d.ts.map +1 -0
  352. package/dist/lib/swagger-ui/index.js +2 -0
  353. package/dist/lib/swagger-ui/index.js.map +1 -0
  354. package/dist/lib/swagger-ui/swagger-ui.d.ts +14 -0
  355. package/dist/lib/swagger-ui/swagger-ui.d.ts.map +1 -0
  356. package/dist/lib/swagger-ui/swagger-ui.js +64 -0
  357. package/dist/lib/swagger-ui/swagger-ui.js.map +1 -0
  358. package/dist/lib/type-helpers/index.d.ts +5 -0
  359. package/dist/lib/type-helpers/index.d.ts.map +1 -0
  360. package/dist/lib/type-helpers/index.js +5 -0
  361. package/dist/lib/type-helpers/index.js.map +1 -0
  362. package/dist/lib/type-helpers/intersection-type.helper.d.ts +9 -0
  363. package/dist/lib/type-helpers/intersection-type.helper.d.ts.map +1 -0
  364. package/dist/lib/type-helpers/intersection-type.helper.js +40 -0
  365. package/dist/lib/type-helpers/intersection-type.helper.js.map +1 -0
  366. package/dist/lib/type-helpers/mapped-types.utils.d.ts +3 -0
  367. package/dist/lib/type-helpers/mapped-types.utils.d.ts.map +1 -0
  368. package/dist/lib/type-helpers/mapped-types.utils.js +33 -0
  369. package/dist/lib/type-helpers/mapped-types.utils.js.map +1 -0
  370. package/dist/lib/type-helpers/omit-type.helper.d.ts +3 -0
  371. package/dist/lib/type-helpers/omit-type.helper.d.ts.map +1 -0
  372. package/dist/lib/type-helpers/omit-type.helper.js +38 -0
  373. package/dist/lib/type-helpers/omit-type.helper.js.map +1 -0
  374. package/dist/lib/type-helpers/partial-type.helper.d.ts +14 -0
  375. package/dist/lib/type-helpers/partial-type.helper.d.ts.map +1 -0
  376. package/dist/lib/type-helpers/partial-type.helper.js +52 -0
  377. package/dist/lib/type-helpers/partial-type.helper.js.map +1 -0
  378. package/dist/lib/type-helpers/pick-type.helper.d.ts +3 -0
  379. package/dist/lib/type-helpers/pick-type.helper.d.ts.map +1 -0
  380. package/dist/lib/type-helpers/pick-type.helper.js +38 -0
  381. package/dist/lib/type-helpers/pick-type.helper.js.map +1 -0
  382. package/dist/lib/types/swagger-enum.type.d.ts +2 -0
  383. package/dist/lib/types/swagger-enum.type.d.ts.map +1 -0
  384. package/dist/lib/types/swagger-enum.type.js +2 -0
  385. package/dist/lib/types/swagger-enum.type.js.map +1 -0
  386. package/dist/lib/utils/assign-two-levels-deep.d.ts +16 -0
  387. package/dist/lib/utils/assign-two-levels-deep.d.ts.map +1 -0
  388. package/dist/lib/utils/assign-two-levels-deep.js +24 -0
  389. package/dist/lib/utils/assign-two-levels-deep.js.map +1 -0
  390. package/dist/lib/utils/enum.utils.d.ts +10 -0
  391. package/dist/lib/utils/enum.utils.d.ts.map +1 -0
  392. package/dist/lib/utils/enum.utils.js +68 -0
  393. package/dist/lib/utils/enum.utils.js.map +1 -0
  394. package/dist/lib/utils/extend-metadata.util.d.ts +3 -0
  395. package/dist/lib/utils/extend-metadata.util.d.ts.map +1 -0
  396. package/dist/lib/utils/extend-metadata.util.js +9 -0
  397. package/dist/lib/utils/extend-metadata.util.js.map +1 -0
  398. package/dist/lib/utils/get-global-prefix.d.ts +3 -0
  399. package/dist/lib/utils/get-global-prefix.d.ts.map +1 -0
  400. package/dist/lib/utils/get-global-prefix.js +5 -0
  401. package/dist/lib/utils/get-global-prefix.js.map +1 -0
  402. package/dist/lib/utils/get-schema-path.util.d.ts +5 -0
  403. package/dist/lib/utils/get-schema-path.util.d.ts.map +1 -0
  404. package/dist/lib/utils/get-schema-path.util.js +22 -0
  405. package/dist/lib/utils/get-schema-path.util.js.map +1 -0
  406. package/dist/lib/utils/index.d.ts +2 -0
  407. package/dist/lib/utils/index.d.ts.map +1 -0
  408. package/dist/lib/utils/index.js +2 -0
  409. package/dist/lib/utils/index.js.map +1 -0
  410. package/dist/lib/utils/is-body-parameter.util.d.ts +3 -0
  411. package/dist/lib/utils/is-body-parameter.util.d.ts.map +1 -0
  412. package/dist/lib/utils/is-body-parameter.util.js +4 -0
  413. package/dist/lib/utils/is-body-parameter.util.js.map +1 -0
  414. package/dist/lib/utils/is-built-in-type.util.d.ts +3 -0
  415. package/dist/lib/utils/is-built-in-type.util.d.ts.map +1 -0
  416. package/dist/lib/utils/is-built-in-type.util.js +6 -0
  417. package/dist/lib/utils/is-built-in-type.util.js.map +1 -0
  418. package/dist/lib/utils/is-date-ctor.util.d.ts +3 -0
  419. package/dist/lib/utils/is-date-ctor.util.d.ts.map +1 -0
  420. package/dist/lib/utils/is-date-ctor.util.js +4 -0
  421. package/dist/lib/utils/is-date-ctor.util.js.map +1 -0
  422. package/dist/lib/utils/merge-and-uniq.util.d.ts +2 -0
  423. package/dist/lib/utils/merge-and-uniq.util.d.ts.map +1 -0
  424. package/dist/lib/utils/merge-and-uniq.util.js +5 -0
  425. package/dist/lib/utils/merge-and-uniq.util.js.map +1 -0
  426. package/dist/lib/utils/normalize-rel-path.d.ts +2 -0
  427. package/dist/lib/utils/normalize-rel-path.d.ts.map +1 -0
  428. package/dist/lib/utils/normalize-rel-path.js +6 -0
  429. package/dist/lib/utils/normalize-rel-path.js.map +1 -0
  430. package/dist/lib/utils/remove-undefined-keys.d.ts +6 -0
  431. package/dist/lib/utils/remove-undefined-keys.d.ts.map +1 -0
  432. package/dist/lib/utils/remove-undefined-keys.js +9 -0
  433. package/dist/lib/utils/remove-undefined-keys.js.map +1 -0
  434. package/dist/lib/utils/resolve-path.util.d.ts +2 -0
  435. package/dist/lib/utils/resolve-path.util.d.ts.map +1 -0
  436. package/dist/lib/utils/resolve-path.util.js +5 -0
  437. package/dist/lib/utils/resolve-path.util.js.map +1 -0
  438. package/dist/lib/utils/reverse-object-keys.util.d.ts +2 -0
  439. package/dist/lib/utils/reverse-object-keys.util.d.ts.map +1 -0
  440. package/dist/lib/utils/reverse-object-keys.util.js +9 -0
  441. package/dist/lib/utils/reverse-object-keys.util.js.map +1 -0
  442. package/dist/lib/utils/sort-object-lexicographically.d.ts +6 -0
  443. package/dist/lib/utils/sort-object-lexicographically.d.ts.map +1 -0
  444. package/dist/lib/utils/sort-object-lexicographically.js +9 -0
  445. package/dist/lib/utils/sort-object-lexicographically.js.map +1 -0
  446. package/dist/lib/utils/strip-last-slash.util.d.ts +2 -0
  447. package/dist/lib/utils/strip-last-slash.util.d.ts.map +1 -0
  448. package/dist/lib/utils/strip-last-slash.util.js +4 -0
  449. package/dist/lib/utils/strip-last-slash.util.js.map +1 -0
  450. package/dist/lib/utils/validate-global-prefix.util.d.ts +2 -0
  451. package/dist/lib/utils/validate-global-prefix.util.d.ts.map +1 -0
  452. package/dist/lib/utils/validate-global-prefix.util.js +4 -0
  453. package/dist/lib/utils/validate-global-prefix.util.js.map +1 -0
  454. package/dist/lib/utils/validate-path.util.d.ts +2 -0
  455. package/dist/lib/utils/validate-path.util.d.ts.map +1 -0
  456. package/dist/lib/utils/validate-path.util.js +4 -0
  457. package/dist/lib/utils/validate-path.util.js.map +1 -0
  458. package/package.json +40 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intersection-type.helper.d.ts","sourceRoot":"","sources":["../../../src/lib/type-helpers/intersection-type.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAc5B,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC;AAEhH,KAAK,uBAAuB,CAAC,CAAC,SAAS,IAAI,EAAE,IAAI;KAC9C,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK;CACvD,CAAC;AAEF,KAAK,YAAY,CAAC,CAAC,SAAS,IAAI,EAAE,IAAI,IAAI,CAAC,mBAAmB,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAEpG,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,IAAI,EAAE,EAAE,GAAG,SAAS,EAAE,CAAC,mBAqCjE"}
@@ -0,0 +1,40 @@
1
+ import { inheritPropertyInitializers, inheritTransformationMetadata, inheritValidationMetadata, } from '@nestjs/mapped-types';
2
+ import { DECORATORS } from '../constants.js';
3
+ import { ApiProperty } from '../decorators/index.js';
4
+ import { MetadataLoader } from '../plugin/metadata-loader.js';
5
+ import { ModelPropertiesAccessor } from '../services/model-properties-accessor.js';
6
+ import { clonePluginMetadataFactory } from './mapped-types.utils.js';
7
+ const modelPropertiesAccessor = new ModelPropertiesAccessor();
8
+ export function IntersectionType(...classRefs) {
9
+ class IntersectionClassType {
10
+ constructor() {
11
+ classRefs.forEach(classRef => {
12
+ inheritPropertyInitializers(this, classRef);
13
+ });
14
+ }
15
+ }
16
+ classRefs.forEach(classRef => {
17
+ const fields = modelPropertiesAccessor.getModelProperties(classRef.prototype);
18
+ inheritValidationMetadata(classRef, IntersectionClassType);
19
+ inheritTransformationMetadata(classRef, IntersectionClassType);
20
+ function applyFields(fields) {
21
+ clonePluginMetadataFactory(IntersectionClassType, classRef.prototype);
22
+ fields.forEach(propertyKey => {
23
+ const metadata = Reflect.getMetadata(DECORATORS.API_MODEL_PROPERTIES, classRef.prototype, propertyKey);
24
+ const decoratorFactory = ApiProperty(metadata);
25
+ decoratorFactory(IntersectionClassType.prototype, propertyKey);
26
+ });
27
+ }
28
+ applyFields(fields);
29
+ MetadataLoader.addRefreshHook(() => {
30
+ const fields = modelPropertiesAccessor.getModelProperties(classRef.prototype);
31
+ applyFields(fields);
32
+ });
33
+ });
34
+ const intersectedNames = classRefs.reduce((prev, ref) => prev + ref.name, '');
35
+ Object.defineProperty(IntersectionClassType, 'name', {
36
+ value: `Intersection${intersectedNames}`,
37
+ });
38
+ return IntersectionClassType;
39
+ }
40
+ //# sourceMappingURL=intersection-type.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intersection-type.helper.js","sourceRoot":"","sources":["../../../src/lib/type-helpers/intersection-type.helper.ts"],"names":[],"mappings":"AACA,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,uBAAuB,GAAG,IAAI,uBAAuB,EAAE,CAAC;AAU9D,MAAM,UAAU,gBAAgB,CAAmB,GAAG,SAAY;IAChE,MAAe,qBAAqB;QAClC;YACE,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAC3B,2BAA2B,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;YAC9C,CAAC,CAAC,CAAC;QACL,CAAC;KACF;IAED,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;QAC3B,MAAM,MAAM,GAAG,uBAAuB,CAAC,kBAAkB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAE9E,yBAAyB,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;QAC3D,6BAA6B,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;QAE/D,SAAS,WAAW,CAAC,MAAgB;YACnC,0BAA0B,CAAC,qBAAsC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;YAEvF,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;gBAC3B,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,oBAAoB,EAAE,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;gBACvG,MAAM,gBAAgB,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;gBAC/C,gBAAgB,CAAC,qBAAqB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;YACjE,CAAC,CAAC,CAAC;QACL,CAAC;QACD,WAAW,CAAC,MAAM,CAAC,CAAC;QAEpB,cAAc,CAAC,cAAc,CAAC,GAAG,EAAE;YACjC,MAAM,MAAM,GAAG,uBAAuB,CAAC,kBAAkB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;YAC9E,WAAW,CAAC,MAAM,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC9E,MAAM,CAAC,cAAc,CAAC,qBAAqB,EAAE,MAAM,EAAE;QACnD,KAAK,EAAE,eAAe,gBAAgB,EAAE;KACzC,CAAC,CAAC;IACH,OAAO,qBAAwC,CAAC;AAClD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Type } from 'vona';
2
+ export declare function clonePluginMetadataFactory(target: Type<unknown>, parent: Type<unknown>, transformFn?: (metadata: Record<string, any>) => Record<string, any>): void;
3
+ //# sourceMappingURL=mapped-types.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapped-types.utils.d.ts","sourceRoot":"","sources":["../../../src/lib/type-helpers/mapped-types.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAI5B,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,EACrB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,EACrB,WAAW,GAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAY,QA+B/E"}
@@ -0,0 +1,33 @@
1
+ import { identity } from 'lodash';
2
+ import { METADATA_FACTORY_NAME } from '../plugin/plugin-constants.js';
3
+ export function clonePluginMetadataFactory(target, parent, transformFn = identity) {
4
+ let targetMetadata = {};
5
+ do {
6
+ if (!parent.constructor) {
7
+ return;
8
+ }
9
+ if (!parent.constructor[METADATA_FACTORY_NAME]) {
10
+ continue;
11
+ }
12
+ const parentMetadata = parent.constructor[METADATA_FACTORY_NAME]();
13
+ targetMetadata = {
14
+ ...parentMetadata,
15
+ ...targetMetadata,
16
+ };
17
+ } while ((parent = Reflect.getPrototypeOf(parent)) && parent !== Object.prototype && parent);
18
+ targetMetadata = transformFn(targetMetadata);
19
+ if (target[METADATA_FACTORY_NAME]) {
20
+ const originalFactory = target[METADATA_FACTORY_NAME];
21
+ target[METADATA_FACTORY_NAME] = () => {
22
+ const originalMetadata = originalFactory();
23
+ return {
24
+ ...originalMetadata,
25
+ ...targetMetadata,
26
+ };
27
+ };
28
+ }
29
+ else {
30
+ target[METADATA_FACTORY_NAME] = () => targetMetadata;
31
+ }
32
+ }
33
+ //# sourceMappingURL=mapped-types.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapped-types.utils.js","sourceRoot":"","sources":["../../../src/lib/type-helpers/mapped-types.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,UAAU,0BAA0B,CACxC,MAAqB,EACrB,MAAqB,EACrB,cAAsE,QAAQ;IAE9E,IAAI,cAAc,GAAG,EAAE,CAAC;IAExB,GAAG,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;YACxB,OAAO;QACT,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,qBAAqB,CAAC,EAAE,CAAC;YAC/C,SAAS;QACX,CAAC;QACD,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,CAAC,qBAAqB,CAAC,EAAE,CAAC;QACnE,cAAc,GAAG;YACf,GAAG,cAAc;YACjB,GAAG,cAAc;SAClB,CAAC;IACJ,CAAC,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,MAAM,CAAc,CAAC,IAAI,MAAM,KAAK,MAAM,CAAC,SAAS,IAAI,MAAM,EAAE;IAC1G,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC;IAE7C,IAAI,MAAM,CAAC,qBAAqB,CAAC,EAAE,CAAC;QAClC,MAAM,eAAe,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;QACtD,MAAM,CAAC,qBAAqB,CAAC,GAAG,GAAG,EAAE;YACnC,MAAM,gBAAgB,GAAG,eAAe,EAAE,CAAC;YAC3C,OAAO;gBACL,GAAG,gBAAgB;gBACnB,GAAG,cAAc;aAClB,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,qBAAqB,CAAC,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC;IACvD,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Type } from 'vona';
2
+ export declare function OmitType<T, K extends keyof T>(classRef: Type<T>, keys: readonly K[]): Type<Omit<T, (typeof keys)[number]>>;
3
+ //# sourceMappingURL=omit-type.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"omit-type.helper.d.ts","sourceRoot":"","sources":["../../../src/lib/type-helpers/omit-type.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAe5B,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EAC3C,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EACjB,IAAI,EAAE,SAAS,CAAC,EAAE,GACjB,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAqCtC"}
@@ -0,0 +1,38 @@
1
+ import { inheritPropertyInitializers, inheritTransformationMetadata, inheritValidationMetadata, } from '@nestjs/mapped-types';
2
+ import { omit } from 'lodash';
3
+ import { DECORATORS } from '../constants.js';
4
+ import { ApiProperty } from '../decorators/index.js';
5
+ import { MetadataLoader } from '../plugin/metadata-loader.js';
6
+ import { ModelPropertiesAccessor } from '../services/model-properties-accessor.js';
7
+ import { clonePluginMetadataFactory } from './mapped-types.utils.js';
8
+ const modelPropertiesAccessor = new ModelPropertiesAccessor();
9
+ export function OmitType(classRef, keys) {
10
+ const fields = modelPropertiesAccessor
11
+ .getModelProperties(classRef.prototype)
12
+ .filter(item => !keys.includes(item));
13
+ const isInheritedPredicate = (propertyKey) => !keys.includes(propertyKey);
14
+ class OmitTypeClass {
15
+ constructor() {
16
+ inheritPropertyInitializers(this, classRef, isInheritedPredicate);
17
+ }
18
+ }
19
+ inheritValidationMetadata(classRef, OmitTypeClass, isInheritedPredicate);
20
+ inheritTransformationMetadata(classRef, OmitTypeClass, isInheritedPredicate);
21
+ function applyFields(fields) {
22
+ clonePluginMetadataFactory(OmitTypeClass, classRef.prototype, (metadata) => omit(metadata, keys));
23
+ fields.forEach(propertyKey => {
24
+ const metadata = Reflect.getMetadata(DECORATORS.API_MODEL_PROPERTIES, classRef.prototype, propertyKey);
25
+ const decoratorFactory = ApiProperty(metadata);
26
+ decoratorFactory(OmitTypeClass.prototype, propertyKey);
27
+ });
28
+ }
29
+ applyFields(fields);
30
+ MetadataLoader.addRefreshHook(() => {
31
+ const fields = modelPropertiesAccessor
32
+ .getModelProperties(classRef.prototype)
33
+ .filter(item => !keys.includes(item));
34
+ applyFields(fields);
35
+ });
36
+ return OmitTypeClass;
37
+ }
38
+ //# sourceMappingURL=omit-type.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"omit-type.helper.js","sourceRoot":"","sources":["../../../src/lib/type-helpers/omit-type.helper.ts"],"names":[],"mappings":"AACA,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,uBAAuB,GAAG,IAAI,uBAAuB,EAAE,CAAC;AAE9D,MAAM,UAAU,QAAQ,CACtB,QAAiB,EACjB,IAAkB;IAElB,MAAM,MAAM,GAAG,uBAAuB;SACnC,kBAAkB,CAAC,QAAQ,CAAC,SAAS,CAAC;SACtC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAS,CAAC,CAAC,CAAC;IAE7C,MAAM,oBAAoB,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAgB,CAAC,CAAC;IACvF,MAAe,aAAa;QAC1B;YACE,2BAA2B,CAAC,IAAI,EAAE,QAAQ,EAAE,oBAAoB,CAAC,CAAC;QACpE,CAAC;KACF;IAED,yBAAyB,CAAC,QAAQ,EAAE,aAAa,EAAE,oBAAoB,CAAC,CAAC;IACzE,6BAA6B,CAAC,QAAQ,EAAE,aAAa,EAAE,oBAAoB,CAAC,CAAC;IAE7E,SAAS,WAAW,CAAC,MAAgB;QACnC,0BAA0B,CAAC,aAA8B,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC,QAA6B,EAAE,EAAE,CAC/G,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CACrB,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;YAC3B,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,oBAAoB,EAAE,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;YACvG,MAAM,gBAAgB,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC/C,gBAAgB,CAAC,aAAa,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;IACL,CAAC;IACD,WAAW,CAAC,MAAM,CAAC,CAAC;IAEpB,cAAc,CAAC,cAAc,CAAC,GAAG,EAAE;QACjC,MAAM,MAAM,GAAG,uBAAuB;aACnC,kBAAkB,CAAC,QAAQ,CAAC,SAAS,CAAC;aACtC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAS,CAAC,CAAC,CAAC;QAE7C,WAAW,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,OAAO,aAAqD,CAAC;AAC/D,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Type } from 'vona';
2
+ export declare function PartialType<T>(classRef: Type<T>,
3
+ /**
4
+ * Configuration options.
5
+ */
6
+ options?: {
7
+ /**
8
+ * If true, validations will be ignored on a property if it is either null or undefined. If
9
+ * false, validations will be ignored only if the property is undefined.
10
+ * @default true
11
+ */
12
+ skipNullProperties?: boolean;
13
+ }): Type<Partial<T>>;
14
+ //# sourceMappingURL=partial-type.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partial-type.helper.d.ts","sourceRoot":"","sources":["../../../src/lib/type-helpers/partial-type.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAkB5B,wBAAgB,WAAW,CAAC,CAAC,EAC3B,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;AACjB;;GAEG;AACH,OAAO,GAAE;IACP;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CACzB,GACL,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAiDlB"}
@@ -0,0 +1,52 @@
1
+ import { applyIsOptionalDecorator, applyValidateIfDefinedDecorator, inheritPropertyInitializers, inheritTransformationMetadata, inheritValidationMetadata, } from '@nestjs/mapped-types';
2
+ import { mapValues } from 'lodash';
3
+ import { DECORATORS } from '../constants.js';
4
+ import { ApiProperty } from '../decorators/index.js';
5
+ import { MetadataLoader } from '../plugin/metadata-loader.js';
6
+ import { METADATA_FACTORY_NAME } from '../plugin/plugin-constants.js';
7
+ import { ModelPropertiesAccessor } from '../services/model-properties-accessor.js';
8
+ import { clonePluginMetadataFactory } from './mapped-types.utils.js';
9
+ const modelPropertiesAccessor = new ModelPropertiesAccessor();
10
+ export function PartialType(classRef,
11
+ /**
12
+ * Configuration options.
13
+ */
14
+ options = {}) {
15
+ const applyPartialDecoratorFn = options.skipNullProperties === false ? applyValidateIfDefinedDecorator : applyIsOptionalDecorator;
16
+ const fields = modelPropertiesAccessor.getModelProperties(classRef.prototype);
17
+ class PartialTypeClass {
18
+ constructor() {
19
+ inheritPropertyInitializers(this, classRef);
20
+ }
21
+ }
22
+ const keysWithValidationConstraints = inheritValidationMetadata(classRef, PartialTypeClass);
23
+ if (keysWithValidationConstraints) {
24
+ keysWithValidationConstraints
25
+ .filter(key => !fields.includes(key))
26
+ .forEach(key => applyPartialDecoratorFn(PartialTypeClass, key));
27
+ }
28
+ inheritTransformationMetadata(classRef, PartialTypeClass);
29
+ function applyFields(fields) {
30
+ clonePluginMetadataFactory(PartialTypeClass, classRef.prototype, (metadata) => mapValues(metadata, item => ({ ...item, required: false })));
31
+ if (PartialTypeClass[METADATA_FACTORY_NAME]) {
32
+ const pluginFields = Object.keys(PartialTypeClass[METADATA_FACTORY_NAME]());
33
+ pluginFields.forEach(key => applyPartialDecoratorFn(PartialTypeClass, key));
34
+ }
35
+ fields.forEach(key => {
36
+ const metadata = Reflect.getMetadata(DECORATORS.API_MODEL_PROPERTIES, classRef.prototype, key) || {};
37
+ const decoratorFactory = ApiProperty({
38
+ ...metadata,
39
+ required: false,
40
+ });
41
+ decoratorFactory(PartialTypeClass.prototype, key);
42
+ applyPartialDecoratorFn(PartialTypeClass, key);
43
+ });
44
+ }
45
+ applyFields(fields);
46
+ MetadataLoader.addRefreshHook(() => {
47
+ const fields = modelPropertiesAccessor.getModelProperties(classRef.prototype);
48
+ applyFields(fields);
49
+ });
50
+ return PartialTypeClass;
51
+ }
52
+ //# sourceMappingURL=partial-type.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partial-type.helper.js","sourceRoot":"","sources":["../../../src/lib/type-helpers/partial-type.helper.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ import { Type } from 'vona';
2
+ export declare function PickType<T, K extends keyof T>(classRef: Type<T>, keys: readonly K[]): Type<Pick<T, (typeof keys)[number]>>;
3
+ //# sourceMappingURL=pick-type.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pick-type.helper.d.ts","sourceRoot":"","sources":["../../../src/lib/type-helpers/pick-type.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAe5B,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EAC3C,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EACjB,IAAI,EAAE,SAAS,CAAC,EAAE,GACjB,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAsCtC"}
@@ -0,0 +1,38 @@
1
+ import { inheritPropertyInitializers, inheritTransformationMetadata, inheritValidationMetadata, } from '@nestjs/mapped-types';
2
+ import { pick } from 'lodash';
3
+ import { DECORATORS } from '../constants.js';
4
+ import { ApiProperty } from '../decorators/index.js';
5
+ import { MetadataLoader } from '../plugin/metadata-loader.js';
6
+ import { ModelPropertiesAccessor } from '../services/model-properties-accessor.js';
7
+ import { clonePluginMetadataFactory } from './mapped-types.utils.js';
8
+ const modelPropertiesAccessor = new ModelPropertiesAccessor();
9
+ export function PickType(classRef, keys) {
10
+ const fields = modelPropertiesAccessor
11
+ .getModelProperties(classRef.prototype)
12
+ .filter(item => keys.includes(item));
13
+ const isInheritedPredicate = (propertyKey) => keys.includes(propertyKey);
14
+ class PickTypeClass {
15
+ constructor() {
16
+ inheritPropertyInitializers(this, classRef, isInheritedPredicate);
17
+ }
18
+ }
19
+ inheritValidationMetadata(classRef, PickTypeClass, isInheritedPredicate);
20
+ inheritTransformationMetadata(classRef, PickTypeClass, isInheritedPredicate);
21
+ function applyFields(fields) {
22
+ clonePluginMetadataFactory(PickTypeClass, classRef.prototype, (metadata) => pick(metadata, keys));
23
+ fields.forEach(propertyKey => {
24
+ const metadata = Reflect.getMetadata(DECORATORS.API_MODEL_PROPERTIES, classRef.prototype, propertyKey);
25
+ const decoratorFactory = ApiProperty(metadata);
26
+ decoratorFactory(PickTypeClass.prototype, propertyKey);
27
+ });
28
+ }
29
+ applyFields(fields);
30
+ MetadataLoader.addRefreshHook(() => {
31
+ const fields = modelPropertiesAccessor
32
+ .getModelProperties(classRef.prototype)
33
+ .filter(item => keys.includes(item));
34
+ applyFields(fields);
35
+ });
36
+ return PickTypeClass;
37
+ }
38
+ //# sourceMappingURL=pick-type.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pick-type.helper.js","sourceRoot":"","sources":["../../../src/lib/type-helpers/pick-type.helper.ts"],"names":[],"mappings":"AACA,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,uBAAuB,GAAG,IAAI,uBAAuB,EAAE,CAAC;AAE9D,MAAM,UAAU,QAAQ,CACtB,QAAiB,EACjB,IAAkB;IAElB,MAAM,MAAM,GAAG,uBAAuB;SACnC,kBAAkB,CAAC,QAAQ,CAAC,SAAS,CAAC;SACtC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAS,CAAC,CAAC,CAAC;IAE5C,MAAM,oBAAoB,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAgB,CAAC,CAAC;IAEtF,MAAe,aAAa;QAC1B;YACE,2BAA2B,CAAC,IAAI,EAAE,QAAQ,EAAE,oBAAoB,CAAC,CAAC;QACpE,CAAC;KACF;IAED,yBAAyB,CAAC,QAAQ,EAAE,aAAa,EAAE,oBAAoB,CAAC,CAAC;IACzE,6BAA6B,CAAC,QAAQ,EAAE,aAAa,EAAE,oBAAoB,CAAC,CAAC;IAE7E,SAAS,WAAW,CAAC,MAAgB;QACnC,0BAA0B,CAAC,aAA8B,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC,QAA6B,EAAE,EAAE,CAC/G,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CACrB,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;YAC3B,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,oBAAoB,EAAE,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;YACvG,MAAM,gBAAgB,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC/C,gBAAgB,CAAC,aAAa,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;IACL,CAAC;IACD,WAAW,CAAC,MAAM,CAAC,CAAC;IAEpB,cAAc,CAAC,cAAc,CAAC,GAAG,EAAE;QACjC,MAAM,MAAM,GAAG,uBAAuB;aACnC,kBAAkB,CAAC,QAAQ,CAAC,SAAS,CAAC;aACtC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAS,CAAC,CAAC,CAAC;QAE5C,WAAW,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,OAAO,aAAqD,CAAC;AAC/D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type SwaggerEnumType = string[] | number[] | (string | number)[] | Record<number, string>;
2
+ //# sourceMappingURL=swagger-enum.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swagger-enum.type.d.ts","sourceRoot":"","sources":["../../../src/lib/types/swagger-enum.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GACvB,MAAM,EAAE,GACR,MAAM,EAAE,GACR,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GACnB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=swagger-enum.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swagger-enum.type.js","sourceRoot":"","sources":["../../../src/lib/types/swagger-enum.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Merge one level deeper than a regular Object.assign().
3
+ *
4
+ * @example
5
+ *
6
+ * ```
7
+ * const a = {foo: {bar: 1, baz: 2, bag: {x : 1}}};
8
+ * const b = {foo: {baz: 3, bag: {y: 2}}};
9
+ *
10
+ * assignTwoLevelsDeep(a, b);
11
+ *
12
+ * // a is {foo: {bar: 1, baz: 3, bag: {y: 2}}}
13
+ * ```
14
+ */
15
+ export declare function assignTwoLevelsDeep<TObject, T>(_dest: TObject, ...args: T[]): TObject & T;
16
+ //# sourceMappingURL=assign-two-levels-deep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assign-two-levels-deep.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/assign-two-levels-deep.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE,eAU3E"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Merge one level deeper than a regular Object.assign().
3
+ *
4
+ * @example
5
+ *
6
+ * ```
7
+ * const a = {foo: {bar: 1, baz: 2, bag: {x : 1}}};
8
+ * const b = {foo: {baz: 3, bag: {y: 2}}};
9
+ *
10
+ * assignTwoLevelsDeep(a, b);
11
+ *
12
+ * // a is {foo: {bar: 1, baz: 3, bag: {y: 2}}}
13
+ * ```
14
+ */
15
+ export function assignTwoLevelsDeep(_dest, ...args) {
16
+ const dest = _dest;
17
+ for (const arg of args) {
18
+ for (const [key, value] of Object.entries(arg ?? {})) {
19
+ dest[key] = { ...dest[key], ...value };
20
+ }
21
+ }
22
+ return dest;
23
+ }
24
+ //# sourceMappingURL=assign-two-levels-deep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assign-two-levels-deep.js","sourceRoot":"","sources":["../../../src/lib/utils/assign-two-levels-deep.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,mBAAmB,CAAa,KAAc,EAAE,GAAG,IAAS;IAC1E,MAAM,IAAI,GAAG,KAAoB,CAAC;IAElC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,CAAiC,EAAE,CAAC;YACrF,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC;QACzC,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { SchemaObjectMetadata } from '../interfaces/schema-object-metadata.interface.js';
2
+ import { SwaggerEnumType } from '../types/swagger-enum.type.js';
3
+ export declare function getEnumValues(enumType: SwaggerEnumType | (() => SwaggerEnumType)): string[] | number[];
4
+ export declare function getEnumType(values: (string | number)[]): 'string' | 'number';
5
+ export declare function addEnumArraySchema(paramDefinition: Partial<Record<'schema' | 'isArray' | 'enumName' | 'enumSchema', any>>, decoratorOptions: Partial<Record<'enum' | 'enumName' | 'enumSchema', any>>): void;
6
+ export declare function addEnumSchema(paramDefinition: Partial<Record<string, any>>, decoratorOptions: Partial<Record<string, any>>): void;
7
+ export declare const isEnumArray: <T extends Partial<Record<"enum" | "isArray", any>>>(obj: Record<string, any>) => obj is T;
8
+ export declare const isEnumDefined: <T extends Partial<Record<"enum", any>>>(obj: Record<string, any>) => obj is T;
9
+ export declare const isEnumMetadata: (metadata: SchemaObjectMetadata) => any;
10
+ //# sourceMappingURL=enum.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum.utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/enum.utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,eAAe,GAAG,CAAC,MAAM,eAAe,CAAC,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CA8BtG;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,QAAQ,GAAG,QAAQ,CAG5E;AAED,wBAAgB,kBAAkB,CAChC,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,EAAE,GAAG,CAAC,CAAC,EACvF,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,UAAU,GAAG,YAAY,EAAE,GAAG,CAAC,CAAC,QAoB3E;AAED,wBAAgB,aAAa,CAC3B,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAC7C,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAgB/C;AAED,eAAO,MAAM,WAAW,4DAA6D,OAAO,MAAM,EAAE,GAAG,CAAC,aAC/E,CAAC;AAE1B,eAAO,MAAM,aAAa,gDAAiD,OAAO,MAAM,EAAE,GAAG,CAAC,aAAuB,CAAC;AAEtH,eAAO,MAAM,cAAc,aAAc,oBAAoB,QACI,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { isString } from 'lodash';
2
+ export function getEnumValues(enumType) {
3
+ if (typeof enumType === 'function') {
4
+ return getEnumValues(enumType());
5
+ }
6
+ if (Array.isArray(enumType)) {
7
+ return enumType;
8
+ }
9
+ if (typeof enumType !== 'object') {
10
+ return [];
11
+ }
12
+ // Enums with numeric values
13
+ // enum Size {
14
+ // SMALL = 1,
15
+ // BIG = 2
16
+ // }
17
+ // are transpiled to include a reverse mapping
18
+ // const Size = {
19
+ // "1": "SMALL",
20
+ // "2": "BIG",
21
+ // "SMALL": 1,
22
+ // "BIG": 2,
23
+ // }
24
+ const numericValues = Object.values(enumType)
25
+ .filter(value => typeof value === 'number')
26
+ .map((value) => value.toString());
27
+ return Object.keys(enumType)
28
+ .filter(key => !numericValues.includes(key))
29
+ .map(key => enumType[key]);
30
+ }
31
+ export function getEnumType(values) {
32
+ const hasString = values.filter(isString).length > 0;
33
+ return hasString ? 'string' : 'number';
34
+ }
35
+ export function addEnumArraySchema(paramDefinition, decoratorOptions) {
36
+ const paramSchema = paramDefinition.schema || {};
37
+ paramDefinition.schema = paramSchema;
38
+ paramSchema.type = 'array';
39
+ delete paramDefinition.isArray;
40
+ const enumValues = getEnumValues(decoratorOptions.enum);
41
+ paramSchema.items = {
42
+ type: getEnumType(enumValues),
43
+ enum: enumValues,
44
+ };
45
+ if (decoratorOptions.enumName) {
46
+ paramDefinition.enumName = decoratorOptions.enumName;
47
+ }
48
+ if (decoratorOptions.enumSchema) {
49
+ paramDefinition.enumSchema = decoratorOptions.enumSchema;
50
+ }
51
+ }
52
+ export function addEnumSchema(paramDefinition, decoratorOptions) {
53
+ const paramSchema = paramDefinition.schema || {};
54
+ const enumValues = getEnumValues(decoratorOptions.enum);
55
+ paramDefinition.schema = paramSchema;
56
+ paramSchema.enum = enumValues;
57
+ paramSchema.type = getEnumType(enumValues);
58
+ if (decoratorOptions.enumName) {
59
+ paramDefinition.enumName = decoratorOptions.enumName;
60
+ }
61
+ if (decoratorOptions.enumSchema) {
62
+ paramDefinition.enumSchema = decoratorOptions.enumSchema;
63
+ }
64
+ }
65
+ export const isEnumArray = (obj) => obj.isArray && obj.enum;
66
+ export const isEnumDefined = (obj) => obj.enum;
67
+ export const isEnumMetadata = (metadata) => metadata.enum || (metadata.isArray && metadata.items?.['enum']);
68
+ //# sourceMappingURL=enum.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum.utils.js","sourceRoot":"","sources":["../../../src/lib/utils/enum.utils.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ import 'reflect-metadata';
2
+ export declare function extendMetadata<T extends Record<string, any>[] = any[]>(metadata: T, metakey: string, target: object): any;
3
+ //# sourceMappingURL=extend-metadata.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extend-metadata.util.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/extend-metadata.util.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,OAMnH"}
@@ -0,0 +1,9 @@
1
+ import 'reflect-metadata';
2
+ export function extendMetadata(metadata, metakey, target) {
3
+ const existingMetadata = Reflect.getMetadata(metakey, target);
4
+ if (!existingMetadata) {
5
+ return metadata;
6
+ }
7
+ return existingMetadata.concat(metadata);
8
+ }
9
+ //# sourceMappingURL=extend-metadata.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extend-metadata.util.js","sourceRoot":"","sources":["../../../src/lib/utils/extend-metadata.util.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,MAAM,UAAU,cAAc,CAA0C,QAAW,EAAE,OAAe,EAAE,MAAc;IAClH,MAAM,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC9D,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,OAAO,gBAAgB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC3C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { INestApplication } from '@nestjs/common';
2
+ export declare function getGlobalPrefix(app: INestApplication): string;
3
+ //# sourceMappingURL=get-global-prefix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-global-prefix.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/get-global-prefix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,wBAAgB,eAAe,CAAC,GAAG,EAAE,gBAAgB,GAAG,MAAM,CAG7D"}
@@ -0,0 +1,5 @@
1
+ export function getGlobalPrefix(app) {
2
+ const internalConfigRef = app.config;
3
+ return (internalConfigRef && internalConfigRef.getGlobalPrefix()) || '';
4
+ }
5
+ //# sourceMappingURL=get-global-prefix.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-global-prefix.js","sourceRoot":"","sources":["../../../src/lib/utils/get-global-prefix.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,eAAe,CAAC,GAAqB;IACnD,MAAM,iBAAiB,GAAI,GAAW,CAAC,MAAM,CAAC;IAC9C,OAAO,CAAC,iBAAiB,IAAI,iBAAiB,CAAC,eAAe,EAAE,CAAC,IAAI,EAAE,CAAC;AAC1E,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function getSchemaPath(model?: string | Function): string;
2
+ export declare function refs(...models: Function[]): {
3
+ $ref: string;
4
+ }[];
5
+ //# sourceMappingURL=get-schema-path.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-schema-path.util.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/get-schema-path.util.ts"],"names":[],"mappings":"AAIA,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAG/D;AAgBD,wBAAgB,IAAI,CAAC,GAAG,MAAM,EAAE,QAAQ,EAAE;;IAIzC"}
@@ -0,0 +1,22 @@
1
+ import { isString } from '@nestjs/common/utils/shared.utils.js';
2
+ import { DECORATORS } from '../constants.js';
3
+ export function getSchemaPath(model) {
4
+ const modelName = isString(model) ? model : getSchemaNameByClass(model);
5
+ return `#/components/schemas/${modelName}`;
6
+ }
7
+ function getSchemaNameByClass(target) {
8
+ if (!target || typeof target !== 'function') {
9
+ return '';
10
+ }
11
+ const customSchema = Reflect.getOwnMetadata(DECORATORS.API_SCHEMA, target);
12
+ if (!customSchema || customSchema.length === 0) {
13
+ return target.name;
14
+ }
15
+ return customSchema[0].name ?? target.name;
16
+ }
17
+ export function refs(...models) {
18
+ return models.map(item => ({
19
+ $ref: getSchemaPath(item.name),
20
+ }));
21
+ }
22
+ //# sourceMappingURL=get-schema-path.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-schema-path.util.js","sourceRoot":"","sources":["../../../src/lib/utils/get-schema-path.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,MAAM,UAAU,aAAa,CAAC,KAAyB;IACrD,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;IACxE,OAAO,wBAAwB,SAAS,EAAE,CAAC;AAC7C,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAiB;IAC7C,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;QAC5C,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,YAAY,GAAuB,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAE/F,IAAI,CAAC,YAAY,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/C,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,GAAG,MAAkB;IACxC,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACzB,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;KAC/B,CAAC,CAAC,CAAC;AACN,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './get-schema-path.util.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './get-schema-path.util.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ParamWithTypeMetadata } from '../services/parameter-metadata-accessor.js';
2
+ export declare function isBodyParameter(param: ParamWithTypeMetadata): boolean;
3
+ //# sourceMappingURL=is-body-parameter.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-body-parameter.util.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/is-body-parameter.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAEnF,wBAAgB,eAAe,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAErE"}
@@ -0,0 +1,4 @@
1
+ export function isBodyParameter(param) {
2
+ return param.in === 'body';
3
+ }
4
+ //# sourceMappingURL=is-body-parameter.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-body-parameter.util.js","sourceRoot":"","sources":["../../../src/lib/utils/is-body-parameter.util.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,eAAe,CAAC,KAA4B;IAC1D,OAAO,KAAK,CAAC,EAAE,KAAK,MAAM,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Type } from 'vona';
2
+ export declare function isBuiltInType(type: Type<unknown> | Function | string): boolean;
3
+ //# sourceMappingURL=is-built-in-type.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-built-in-type.util.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/is-built-in-type.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAI5B,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAE9E"}
@@ -0,0 +1,6 @@
1
+ import { isFunction } from 'lodash';
2
+ import { BUILT_IN_TYPES } from '../services/constants.js';
3
+ export function isBuiltInType(type) {
4
+ return isFunction(type) && BUILT_IN_TYPES.some(item => item === type);
5
+ }
6
+ //# sourceMappingURL=is-built-in-type.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-built-in-type.util.js","sourceRoot":"","sources":["../../../src/lib/utils/is-built-in-type.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,UAAU,aAAa,CAAC,IAAuC;IACnE,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACxE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Type } from 'vona';
2
+ export declare function isDateCtor(type: Type<unknown> | Function | string): boolean;
3
+ //# sourceMappingURL=is-date-ctor.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-date-ctor.util.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/is-date-ctor.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAE3E"}
@@ -0,0 +1,4 @@
1
+ export function isDateCtor(type) {
2
+ return type === Date;
3
+ }
4
+ //# sourceMappingURL=is-date-ctor.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-date-ctor.util.js","sourceRoot":"","sources":["../../../src/lib/utils/is-date-ctor.util.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,UAAU,CAAC,IAAuC;IAChE,OAAO,IAAI,KAAK,IAAI,CAAC;AACvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function mergeAndUniq<T = any>(a?: unknown, b?: unknown): T;
2
+ //# sourceMappingURL=merge-and-uniq.util.d.ts.map