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,8 @@
1
+ import 'reflect-metadata';
2
+ export * from './common/index.js';
3
+ export * from './decorators/index.js';
4
+ export * from './document-builder.js';
5
+ export * from './interfaces/index.js';
6
+ export * from './type-helpers/index.js';
7
+ export * from './utils/index.js';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import 'reflect-metadata';
2
+ export * from './common/index.js';
3
+ export * from './decorators/index.js';
4
+ export * from './document-builder.js';
5
+ export * from './interfaces/index.js';
6
+ export * from './type-helpers/index.js';
7
+ export * from './utils/index.js';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,13 @@
1
+ export interface CallBackObject<T> {
2
+ name: string;
3
+ callbackUrl: string;
4
+ method: string;
5
+ requestBody: {
6
+ type: T;
7
+ };
8
+ expectedResponse: {
9
+ status: number;
10
+ description?: string;
11
+ };
12
+ }
13
+ //# sourceMappingURL=callback-object.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callback-object.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/callback-object.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE;QACX,IAAI,EAAE,CAAC,CAAA;KACR,CAAC;IACF,gBAAgB,EAAE;QAChB,MAAM,EAAE,MAAM,CAAA;QACd,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAC;CACH"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=callback-object.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callback-object.interface.js","sourceRoot":"","sources":["../../../src/lib/interfaces/callback-object.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface DenormalizedDocResolvers {
2
+ root: Function[];
3
+ security: Function[];
4
+ tags: Function[];
5
+ callbacks: Function[];
6
+ responses: Function[];
7
+ }
8
+ //# sourceMappingURL=denormalized-doc-resolvers.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"denormalized-doc-resolvers.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/denormalized-doc-resolvers.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=denormalized-doc-resolvers.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"denormalized-doc-resolvers.interface.js","sourceRoot":"","sources":["../../../src/lib/interfaces/denormalized-doc-resolvers.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { OpenAPIObject, OperationObject, ResponsesObject } from './open-api-spec.interface.js';
2
+ export interface DenormalizedDoc extends Partial<OpenAPIObject> {
3
+ root?: {
4
+ method: string;
5
+ path: string;
6
+ } & OperationObject;
7
+ responses?: ResponsesObject;
8
+ }
9
+ //# sourceMappingURL=denormalized-doc.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"denormalized-doc.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/denormalized-doc.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/F,MAAM,WAAW,eAAgB,SAAQ,OAAO,CAAC,aAAa,CAAC;IAC7D,IAAI,CAAC,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,eAAe,CAAC;IACpB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=denormalized-doc.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"denormalized-doc.interface.js","sourceRoot":"","sources":["../../../src/lib/interfaces/denormalized-doc.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { SchemaObject } from './open-api-spec.interface.js';
2
+ export type EnumSchemaAttributes = Pick<SchemaObject, 'default' | 'description' | 'deprecated' | 'readOnly' | 'writeOnly' | 'nullable'>;
3
+ //# sourceMappingURL=enum-schema-attributes.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-schema-attributes.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/enum-schema-attributes.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,YAAY,EACZ,SAAS,GAAG,aAAa,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,CACjF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=enum-schema-attributes.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-schema-attributes.interface.js","sourceRoot":"","sources":["../../../src/lib/interfaces/enum-schema-attributes.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export { type OpenAPIObject } from './open-api-spec.interface.js';
2
+ export * from './swagger-custom-options.interface.js';
3
+ export * from './swagger-document-options.interface.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './swagger-custom-options.interface.js';
2
+ export * from './swagger-document-options.interface.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/interfaces/index.ts"],"names":[],"mappings":"AACA,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { OpenAPIObject } from './index.js';
2
+ export type ModuleRoute = Omit<OpenAPIObject, 'openapi' | 'info'> & Record<'root', any>;
3
+ //# sourceMappingURL=module-route.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-route.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/module-route.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=module-route.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-route.interface.js","sourceRoot":"","sources":["../../../src/lib/interfaces/module-route.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,241 @@
1
+ /**
2
+ * inspired by https://github.com/metadevpro/openapi3-ts
3
+ * @see https://github.com/OAI/OpenAPI-Specification/blob/3.0.0-rc0/versions/3.0.md
4
+ */
5
+ export interface OpenAPIObject {
6
+ openapi: string;
7
+ info: InfoObject;
8
+ servers?: ServerObject[];
9
+ paths: PathsObject;
10
+ components?: ComponentsObject;
11
+ security?: SecurityRequirementObject[];
12
+ tags?: TagObject[];
13
+ externalDocs?: ExternalDocumentationObject;
14
+ }
15
+ export interface InfoObject {
16
+ title: string;
17
+ description?: string;
18
+ termsOfService?: string;
19
+ contact?: ContactObject;
20
+ license?: LicenseObject;
21
+ version: string;
22
+ }
23
+ export interface ContactObject {
24
+ name?: string;
25
+ url?: string;
26
+ email?: string;
27
+ }
28
+ export interface LicenseObject {
29
+ name: string;
30
+ url?: string;
31
+ }
32
+ export interface ServerObject {
33
+ url: string;
34
+ description?: string;
35
+ variables?: Record<string, ServerVariableObject>;
36
+ }
37
+ export interface ServerVariableObject {
38
+ enum?: string[] | boolean[] | number[];
39
+ default: string | boolean | number;
40
+ description?: string;
41
+ }
42
+ export interface ComponentsObject {
43
+ schemas?: Record<string, SchemaObject | ReferenceObject>;
44
+ responses?: Record<string, ResponseObject | ReferenceObject>;
45
+ parameters?: Record<string, ParameterObject | ReferenceObject>;
46
+ examples?: Record<string, ExampleObject | ReferenceObject>;
47
+ requestBodies?: Record<string, RequestBodyObject | ReferenceObject>;
48
+ headers?: Record<string, HeaderObject | ReferenceObject>;
49
+ securitySchemes?: Record<string, SecuritySchemeObject | ReferenceObject>;
50
+ links?: Record<string, LinkObject | ReferenceObject>;
51
+ callbacks?: Record<string, CallbackObject | ReferenceObject>;
52
+ }
53
+ export type PathsObject = Record<string, PathItemObject>;
54
+ export interface PathItemObject {
55
+ $ref?: string;
56
+ summary?: string;
57
+ description?: string;
58
+ get?: OperationObject;
59
+ put?: OperationObject;
60
+ post?: OperationObject;
61
+ delete?: OperationObject;
62
+ options?: OperationObject;
63
+ head?: OperationObject;
64
+ patch?: OperationObject;
65
+ trace?: OperationObject;
66
+ servers?: ServerObject[];
67
+ parameters?: (ParameterObject | ReferenceObject)[];
68
+ }
69
+ export interface OperationObject {
70
+ tags?: string[];
71
+ summary?: string;
72
+ description?: string;
73
+ externalDocs?: ExternalDocumentationObject;
74
+ operationId?: string;
75
+ parameters?: (ParameterObject | ReferenceObject)[];
76
+ requestBody?: RequestBodyObject | ReferenceObject;
77
+ responses: ResponsesObject;
78
+ callbacks?: CallbacksObject;
79
+ deprecated?: boolean;
80
+ security?: SecurityRequirementObject[];
81
+ servers?: ServerObject[];
82
+ }
83
+ export interface ExternalDocumentationObject {
84
+ description?: string;
85
+ url: string;
86
+ }
87
+ export type ParameterLocation = 'query' | 'header' | 'path' | 'cookie';
88
+ export type ParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
89
+ export interface BaseParameterObject {
90
+ description?: string;
91
+ required?: boolean;
92
+ deprecated?: boolean;
93
+ allowEmptyValue?: boolean;
94
+ style?: ParameterStyle;
95
+ explode?: boolean;
96
+ allowReserved?: boolean;
97
+ schema?: SchemaObject | ReferenceObject;
98
+ examples?: Record<string, ExampleObject | ReferenceObject>;
99
+ example?: any;
100
+ content?: ContentObject;
101
+ }
102
+ export interface ParameterObject extends BaseParameterObject {
103
+ name: string;
104
+ in: ParameterLocation;
105
+ }
106
+ export interface RequestBodyObject {
107
+ description?: string;
108
+ content: ContentObject;
109
+ required?: boolean;
110
+ }
111
+ export type ContentObject = Record<string, MediaTypeObject>;
112
+ export interface MediaTypeObject {
113
+ schema?: SchemaObject | ReferenceObject;
114
+ examples?: ExamplesObject;
115
+ example?: any;
116
+ encoding?: EncodingObject;
117
+ }
118
+ export type EncodingObject = Record<string, EncodingPropertyObject>;
119
+ export interface EncodingPropertyObject {
120
+ contentType?: string;
121
+ headers?: Record<string, HeaderObject | ReferenceObject>;
122
+ style?: string;
123
+ explode?: boolean;
124
+ allowReserved?: boolean;
125
+ }
126
+ export interface ResponsesObject extends Record<string, ResponseObject | ReferenceObject | undefined> {
127
+ default?: ResponseObject | ReferenceObject;
128
+ }
129
+ export interface ResponseObject {
130
+ description: string;
131
+ headers?: HeadersObject;
132
+ content?: ContentObject;
133
+ links?: LinksObject;
134
+ }
135
+ export type CallbacksObject = Record<string, CallbackObject | ReferenceObject>;
136
+ export type CallbackObject = Record<string, PathItemObject>;
137
+ export type HeadersObject = Record<string, HeaderObject | ReferenceObject>;
138
+ export interface ExampleObject {
139
+ summary?: string;
140
+ description?: string;
141
+ value?: any;
142
+ externalValue?: string;
143
+ }
144
+ export type LinksObject = Record<string, LinkObject | ReferenceObject>;
145
+ export interface LinkObject {
146
+ operationRef?: string;
147
+ operationId?: string;
148
+ parameters?: LinkParametersObject;
149
+ requestBody?: any | string;
150
+ description?: string;
151
+ server?: ServerObject;
152
+ }
153
+ export type LinkParametersObject = Record<string, any>;
154
+ export type HeaderObject = BaseParameterObject;
155
+ export interface TagObject {
156
+ name: string;
157
+ description?: string;
158
+ externalDocs?: ExternalDocumentationObject;
159
+ }
160
+ export type ExamplesObject = Record<string, ExampleObject | ReferenceObject>;
161
+ export interface ReferenceObject {
162
+ $ref: string;
163
+ }
164
+ export interface SchemaObject {
165
+ nullable?: boolean;
166
+ discriminator?: DiscriminatorObject;
167
+ readOnly?: boolean;
168
+ writeOnly?: boolean;
169
+ xml?: XmlObject;
170
+ externalDocs?: ExternalDocumentationObject;
171
+ example?: any;
172
+ examples?: any[] | Record<string, any>;
173
+ deprecated?: boolean;
174
+ type?: string;
175
+ allOf?: (SchemaObject | ReferenceObject)[];
176
+ oneOf?: (SchemaObject | ReferenceObject)[];
177
+ anyOf?: (SchemaObject | ReferenceObject)[];
178
+ not?: SchemaObject | ReferenceObject;
179
+ items?: SchemaObject | ReferenceObject;
180
+ properties?: Record<string, SchemaObject | ReferenceObject>;
181
+ additionalProperties?: SchemaObject | ReferenceObject | boolean;
182
+ patternProperties?: SchemaObject | ReferenceObject | any;
183
+ description?: string;
184
+ format?: string;
185
+ default?: any;
186
+ title?: string;
187
+ multipleOf?: number;
188
+ maximum?: number;
189
+ exclusiveMaximum?: boolean;
190
+ minimum?: number;
191
+ exclusiveMinimum?: boolean;
192
+ maxLength?: number;
193
+ minLength?: number;
194
+ pattern?: string;
195
+ maxItems?: number;
196
+ minItems?: number;
197
+ uniqueItems?: boolean;
198
+ maxProperties?: number;
199
+ minProperties?: number;
200
+ required?: string[];
201
+ enum?: any[];
202
+ }
203
+ export type SchemasObject = Record<string, SchemaObject>;
204
+ export interface DiscriminatorObject {
205
+ propertyName: string;
206
+ mapping?: Record<string, string>;
207
+ }
208
+ export interface XmlObject {
209
+ name?: string;
210
+ namespace?: string;
211
+ prefix?: string;
212
+ attribute?: boolean;
213
+ wrapped?: boolean;
214
+ }
215
+ export type SecuritySchemeType = 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';
216
+ export interface SecuritySchemeObject {
217
+ type: SecuritySchemeType;
218
+ description?: string;
219
+ name?: string;
220
+ in?: string;
221
+ scheme?: string;
222
+ bearerFormat?: string;
223
+ flows?: OAuthFlowsObject;
224
+ openIdConnectUrl?: string;
225
+ 'x-tokenName'?: string;
226
+ }
227
+ export interface OAuthFlowsObject {
228
+ implicit?: OAuthFlowObject;
229
+ password?: OAuthFlowObject;
230
+ clientCredentials?: OAuthFlowObject;
231
+ authorizationCode?: OAuthFlowObject;
232
+ }
233
+ export interface OAuthFlowObject {
234
+ authorizationUrl?: string;
235
+ tokenUrl?: string;
236
+ refreshUrl?: string;
237
+ scopes: ScopesObject;
238
+ }
239
+ export type ScopesObject = Record<string, any>;
240
+ export type SecurityRequirementObject = Record<string, string[]>;
241
+ //# sourceMappingURL=open-api-spec.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-api-spec.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/open-api-spec.interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,U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Ae,CAAC;IAC3B,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,iBAAiB,CAAC,EAAE,eAAe,CAAC;IACpC,iBAAiB,CAAC,EAAE,eAAe,CAAC;CACrC;AAED,MAAM,WAAW,eAAe;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAC/C,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * inspired by https://github.com/metadevpro/openapi3-ts
3
+ * @see https://github.com/OAI/OpenAPI-Specification/blob/3.0.0-rc0/versions/3.0.md
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=open-api-spec.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-api-spec.interface.js","sourceRoot":"","sources":["../../../src/lib/interfaces/open-api-spec.interface.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,24 @@
1
+ import { Type } from 'vona';
2
+ import { EnumSchemaAttributes } from './enum-schema-attributes.interface.js';
3
+ import { SchemaObject } from './open-api-spec.interface.js';
4
+ export type EnumAllowedTypes = any[] | Record<string, any> | (() => any[] | Record<string, any>);
5
+ interface SchemaObjectCommonMetadata extends Omit<SchemaObject, 'type' | 'required' | 'properties' | 'enum'> {
6
+ isArray?: boolean;
7
+ name?: string;
8
+ enum?: EnumAllowedTypes;
9
+ }
10
+ export type SchemaObjectMetadata = (SchemaObjectCommonMetadata & {
11
+ type?: Type<unknown> | Function | [Function] | 'array' | 'string' | 'number' | 'boolean' | 'integer' | 'null';
12
+ required?: boolean;
13
+ }) | ({
14
+ type?: Type<unknown> | Function | [Function] | Record<string, any>;
15
+ required?: boolean;
16
+ enumName: string;
17
+ enumSchema?: EnumSchemaAttributes;
18
+ } & SchemaObjectCommonMetadata) | ({
19
+ type: 'object';
20
+ properties: Record<string, SchemaObjectMetadata>;
21
+ required?: string[];
22
+ } & SchemaObjectCommonMetadata);
23
+ export {};
24
+ //# sourceMappingURL=schema-object-metadata.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-object-metadata.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/schema-object-metadata.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,GAAG,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;AAEjG,UAAU,0BAA2B,SAAQ,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;IAC1G,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAED,MAAM,MAAM,oBAAoB,GAC5B,CAAC,0BAA0B,GAAG;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,QAAQ,GAAG,CAAC,QAAQ,CAAC,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;IAC9G,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC,GACF,CAAC;IACC,IAAI,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,QAAQ,GAAG,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,oBAAoB,CAAC;CACnC,GAAG,0BAA0B,CAAC,GAC/B,CAAC;IACC,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,GAAG,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=schema-object-metadata.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-object-metadata.interface.js","sourceRoot":"","sources":["../../../src/lib/interfaces/schema-object-metadata.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,85 @@
1
+ import { SwaggerUiOptions } from './swagger-ui-options.interface.js';
2
+ import { OpenAPIObject } from './open-api-spec.interface.js';
3
+ export interface SwaggerCustomOptions {
4
+ /**
5
+ * If `true`, Swagger resources paths will be prefixed by the global prefix set through `setGlobalPrefix()`.
6
+ * Default: `false`.
7
+ * @see https://docs.nestjs.com/faq/global-prefix
8
+ */
9
+ useGlobalPrefix?: boolean;
10
+ /**
11
+ * If `false`, only API definitions (JSON and YAML) will be served (on `/{path}-json` and `/{path}-yaml`).
12
+ * This is particularly useful if you are already hosting a Swagger UI somewhere else and just want to serve API definitions.
13
+ * Default: `true`.
14
+ */
15
+ swaggerUiEnabled?: boolean;
16
+ /**
17
+ * Url point the API definition to load in Swagger UI.
18
+ */
19
+ swaggerUrl?: string;
20
+ /**
21
+ * Path of the JSON API definition to serve.
22
+ * Default: `{{path}}-json`.
23
+ */
24
+ jsonDocumentUrl?: string;
25
+ /**
26
+ * Path of the YAML API definition to serve.
27
+ * Default: `{{path}}-json`.
28
+ */
29
+ yamlDocumentUrl?: string;
30
+ /**
31
+ * Hook allowing to alter the OpenAPI document before being served.
32
+ * It's called after the document is generated and before it is served as JSON & YAML.
33
+ */
34
+ patchDocumentOnRequest?: <TRequest = any, TResponse = any>(req: TRequest, res: TResponse, document: OpenAPIObject) => OpenAPIObject;
35
+ /**
36
+ * If `true`, the selector of OpenAPI definitions is displayed in the Swagger UI interface.
37
+ * Default: `false`.
38
+ */
39
+ explorer?: boolean;
40
+ /**
41
+ * Additional Swagger UI options
42
+ */
43
+ swaggerOptions?: SwaggerUiOptions;
44
+ /**
45
+ * Custom CSS styles to inject in Swagger UI page.
46
+ */
47
+ customCss?: string;
48
+ /**
49
+ * URL(s) of a custom CSS stylesheet to load in Swagger UI page.
50
+ */
51
+ customCssUrl?: string | string[];
52
+ /**
53
+ * URL(s) of custom JavaScript files to load in Swagger UI page.
54
+ */
55
+ customJs?: string | string[];
56
+ /**
57
+ * Custom JavaScript scripts to load in Swagger UI page.
58
+ */
59
+ customJsStr?: string | string[];
60
+ /**
61
+ * Custom favicon for Swagger UI page.
62
+ */
63
+ customfavIcon?: string;
64
+ /**
65
+ * Custom title for Swagger UI page.
66
+ */
67
+ customSiteTitle?: string;
68
+ /**
69
+ * File system path (ex: ./node_modules/swagger-ui-dist) containing static Swagger UI assets.
70
+ */
71
+ customSwaggerUiPath?: string;
72
+ /**
73
+ * @deprecated This property has no effect.
74
+ */
75
+ validatorUrl?: string;
76
+ /**
77
+ * @deprecated This property has no effect.
78
+ */
79
+ url?: string;
80
+ /**
81
+ * @deprecated This property has no effect.
82
+ */
83
+ urls?: Record<'url' | 'name', string>[];
84
+ }
85
+ //# sourceMappingURL=swagger-custom-options.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swagger-custom-options.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/swagger-custom-options.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,aAAa,E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# sourceMappingURL=swagger-custom-options.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swagger-custom-options.interface.js","sourceRoot":"","sources":["../../../src/lib/interfaces/swagger-custom-options.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ export type OperationIdFactory = (controllerKey: string, methodKey: string, version?: string) => string;
2
+ export interface SwaggerDocumentOptions {
3
+ /**
4
+ * List of modules to include in the specification
5
+ */
6
+ include?: Function[];
7
+ /**
8
+ * Additional, extra models that should be inspected and included in the specification
9
+ */
10
+ extraModels?: Function[];
11
+ /**
12
+ * If `true`, swagger will ignore the global prefix set through `setGlobalPrefix()` method
13
+ */
14
+ ignoreGlobalPrefix?: boolean;
15
+ /**
16
+ * If `true`, swagger will also load routes from the modules imported by `include` modules
17
+ */
18
+ deepScanRoutes?: boolean;
19
+ /**
20
+ * Custom operationIdFactory that will be used to generate the `operationId`
21
+ * based on the `controllerKey`, `methodKey`, and version.
22
+ * @default () => controllerKey_methodKey_version
23
+ */
24
+ operationIdFactory?: OperationIdFactory;
25
+ /**
26
+ * Custom linkNameFactory that will be used to generate the name of links
27
+ * in the `links` field of responses
28
+ *
29
+ * @see [Link objects](https://swagger.io/docs/specification/links/)
30
+ *
31
+ * @default () => `${controllerKey}_${methodKey}_from_${fieldKey}`
32
+ */
33
+ linkNameFactory?: (controllerKey: string, methodKey: string, fieldKey: string) => string;
34
+ autoTagControllers?: boolean;
35
+ }
36
+ //# sourceMappingURL=swagger-document-options.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swagger-document-options.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/swagger-document-options.interface.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;AAExG,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,EAAE,CAAC;IAEzB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IAQzF,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=swagger-document-options.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swagger-document-options.interface.js","sourceRoot":"","sources":["../../../src/lib/interfaces/swagger-document-options.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { OpenAPIObject } from './open-api-spec.interface.js';
2
+ import { SwaggerUiOptions } from './swagger-ui-options.interface.js';
3
+ export interface SwaggerUIInitOptions {
4
+ swaggerDoc: OpenAPIObject;
5
+ customOptions: SwaggerUiOptions;
6
+ swaggerUrl: string;
7
+ }
8
+ //# sourceMappingURL=swagger-ui-init-options.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swagger-ui-init-options.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/swagger-ui-init-options.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,aAAa,CAAC;IAC1B,aAAa,EAAE,gBAAgB,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=swagger-ui-init-options.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swagger-ui-init-options.interface.js","sourceRoot":"","sources":["../../../src/lib/interfaces/swagger-ui-init-options.interface.ts"],"names":[],"mappings":""}