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.
- package/LICENSE +21 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/common/index.d.ts +2 -0
- package/dist/lib/common/index.d.ts.map +1 -0
- package/dist/lib/common/index.js +2 -0
- package/dist/lib/common/index.js.map +1 -0
- package/dist/lib/common/type.interface.d.ts +4 -0
- package/dist/lib/common/type.interface.d.ts.map +1 -0
- package/dist/lib/common/type.interface.js +2 -0
- package/dist/lib/common/type.interface.js.map +1 -0
- package/dist/lib/constants.d.ts +22 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +22 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/decorators/api-basic.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-basic.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-basic.decorator.js +5 -0
- package/dist/lib/decorators/api-basic.decorator.js.map +1 -0
- package/dist/lib/decorators/api-bearer.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-bearer.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-bearer.decorator.js +5 -0
- package/dist/lib/decorators/api-bearer.decorator.js.map +1 -0
- package/dist/lib/decorators/api-body.decorator.d.ts +17 -0
- package/dist/lib/decorators/api-body.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-body.decorator.js +24 -0
- package/dist/lib/decorators/api-body.decorator.js.map +1 -0
- package/dist/lib/decorators/api-callbacks.decorator.d.ts +3 -0
- package/dist/lib/decorators/api-callbacks.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-callbacks.decorator.js +6 -0
- package/dist/lib/decorators/api-callbacks.decorator.js.map +1 -0
- package/dist/lib/decorators/api-consumes.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-consumes.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-consumes.decorator.js +6 -0
- package/dist/lib/decorators/api-consumes.decorator.js.map +1 -0
- package/dist/lib/decorators/api-cookie.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-cookie.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-cookie.decorator.js +5 -0
- package/dist/lib/decorators/api-cookie.decorator.js.map +1 -0
- package/dist/lib/decorators/api-default-getter.decorator.d.ts +25 -0
- package/dist/lib/decorators/api-default-getter.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-default-getter.decorator.js +32 -0
- package/dist/lib/decorators/api-default-getter.decorator.js.map +1 -0
- package/dist/lib/decorators/api-exclude-controller.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-exclude-controller.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-exclude-controller.decorator.js +6 -0
- package/dist/lib/decorators/api-exclude-controller.decorator.js.map +1 -0
- package/dist/lib/decorators/api-exclude-endpoint.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-exclude-endpoint.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-exclude-endpoint.decorator.js +8 -0
- package/dist/lib/decorators/api-exclude-endpoint.decorator.js.map +1 -0
- package/dist/lib/decorators/api-extension.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-extension.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-extension.decorator.js +13 -0
- package/dist/lib/decorators/api-extension.decorator.js.map +1 -0
- package/dist/lib/decorators/api-extra-models.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-extra-models.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-extra-models.decorator.js +14 -0
- package/dist/lib/decorators/api-extra-models.decorator.js.map +1 -0
- package/dist/lib/decorators/api-header.decorator.d.ts +8 -0
- package/dist/lib/decorators/api-header.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-header.decorator.js +40 -0
- package/dist/lib/decorators/api-header.decorator.js.map +1 -0
- package/dist/lib/decorators/api-hide-property.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-hide-property.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-hide-property.decorator.js +5 -0
- package/dist/lib/decorators/api-hide-property.decorator.js.map +1 -0
- package/dist/lib/decorators/api-link.decorator.d.ts +48 -0
- package/dist/lib/decorators/api-link.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-link.decorator.js +50 -0
- package/dist/lib/decorators/api-link.decorator.js.map +1 -0
- package/dist/lib/decorators/api-oauth2.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-oauth2.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-oauth2.decorator.js +5 -0
- package/dist/lib/decorators/api-oauth2.decorator.js.map +1 -0
- package/dist/lib/decorators/api-operation.decorator.d.ts +6 -0
- package/dist/lib/decorators/api-operation.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-operation.decorator.js +13 -0
- package/dist/lib/decorators/api-operation.decorator.js.map +1 -0
- package/dist/lib/decorators/api-param.decorator.d.ts +23 -0
- package/dist/lib/decorators/api-param.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-param.decorator.js +19 -0
- package/dist/lib/decorators/api-param.decorator.js.map +1 -0
- package/dist/lib/decorators/api-produces.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-produces.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-produces.decorator.js +6 -0
- package/dist/lib/decorators/api-produces.decorator.js.map +1 -0
- package/dist/lib/decorators/api-property.decorator.d.ts +25 -0
- package/dist/lib/decorators/api-property.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-property.decorator.js +53 -0
- package/dist/lib/decorators/api-property.decorator.js.map +1 -0
- package/dist/lib/decorators/api-query.decorator.d.ts +25 -0
- package/dist/lib/decorators/api-query.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-query.decorator.js +28 -0
- package/dist/lib/decorators/api-query.decorator.js.map +1 -0
- package/dist/lib/decorators/api-response.decorator.d.ts +40 -0
- package/dist/lib/decorators/api-response.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-response.decorator.js +63 -0
- package/dist/lib/decorators/api-response.decorator.js.map +1 -0
- package/dist/lib/decorators/api-schema.decorator.d.ts +9 -0
- package/dist/lib/decorators/api-schema.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-schema.decorator.js +6 -0
- package/dist/lib/decorators/api-schema.decorator.js.map +1 -0
- package/dist/lib/decorators/api-security.decorator.d.ts +3 -0
- package/dist/lib/decorators/api-security.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-security.decorator.js +23 -0
- package/dist/lib/decorators/api-security.decorator.js.map +1 -0
- package/dist/lib/decorators/api-use-tags.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-use-tags.decorator.d.ts.map +1 -0
- package/dist/lib/decorators/api-use-tags.decorator.js +6 -0
- package/dist/lib/decorators/api-use-tags.decorator.js.map +1 -0
- package/dist/lib/decorators/helpers.d.ts +9 -0
- package/dist/lib/decorators/helpers.d.ts.map +1 -0
- package/dist/lib/decorators/helpers.js +120 -0
- package/dist/lib/decorators/helpers.js.map +1 -0
- package/dist/lib/decorators/index.d.ts +25 -0
- package/dist/lib/decorators/index.d.ts.map +1 -0
- package/dist/lib/decorators/index.js +25 -0
- package/dist/lib/decorators/index.js.map +1 -0
- package/dist/lib/document-builder.d.ts +28 -0
- package/dist/lib/document-builder.d.ts.map +1 -0
- package/dist/lib/document-builder.js +167 -0
- package/dist/lib/document-builder.js.map +1 -0
- package/dist/lib/explorers/api-callbacks.explorer.d.ts +3 -0
- package/dist/lib/explorers/api-callbacks.explorer.d.ts.map +1 -0
- package/dist/lib/explorers/api-callbacks.explorer.js +35 -0
- package/dist/lib/explorers/api-callbacks.explorer.js.map +1 -0
- package/dist/lib/explorers/api-consumes.explorer.d.ts +6 -0
- package/dist/lib/explorers/api-consumes.explorer.d.ts.map +1 -0
- package/dist/lib/explorers/api-consumes.explorer.js +7 -0
- package/dist/lib/explorers/api-consumes.explorer.js.map +1 -0
- package/dist/lib/explorers/api-exclude-controller.explorer.d.ts +3 -0
- package/dist/lib/explorers/api-exclude-controller.explorer.d.ts.map +1 -0
- package/dist/lib/explorers/api-exclude-controller.explorer.js +3 -0
- package/dist/lib/explorers/api-exclude-controller.explorer.js.map +1 -0
- package/dist/lib/explorers/api-exclude-endpoint.explorer.d.ts +3 -0
- package/dist/lib/explorers/api-exclude-endpoint.explorer.d.ts.map +1 -0
- package/dist/lib/explorers/api-exclude-endpoint.explorer.js +3 -0
- package/dist/lib/explorers/api-exclude-endpoint.explorer.js.map +1 -0
- package/dist/lib/explorers/api-extra-models.explorer.d.ts +4 -0
- package/dist/lib/explorers/api-extra-models.explorer.d.ts.map +1 -0
- package/dist/lib/explorers/api-extra-models.explorer.js +7 -0
- package/dist/lib/explorers/api-extra-models.explorer.js.map +1 -0
- package/dist/lib/explorers/api-headers.explorer.d.ts +8 -0
- package/dist/lib/explorers/api-headers.explorer.d.ts.map +1 -0
- package/dist/lib/explorers/api-headers.explorer.js +6 -0
- package/dist/lib/explorers/api-headers.explorer.js.map +1 -0
- package/dist/lib/explorers/api-operation.explorer.d.ts +3 -0
- package/dist/lib/explorers/api-operation.explorer.d.ts.map +1 -0
- package/dist/lib/explorers/api-operation.explorer.js +38 -0
- package/dist/lib/explorers/api-operation.explorer.js.map +1 -0
- package/dist/lib/explorers/api-parameters.explorer.d.ts +6 -0
- package/dist/lib/explorers/api-parameters.explorer.d.ts.map +1 -0
- package/dist/lib/explorers/api-parameters.explorer.js +44 -0
- package/dist/lib/explorers/api-parameters.explorer.js.map +1 -0
- package/dist/lib/explorers/api-produces.explorer.d.ts +6 -0
- package/dist/lib/explorers/api-produces.explorer.d.ts.map +1 -0
- package/dist/lib/explorers/api-produces.explorer.js +7 -0
- package/dist/lib/explorers/api-produces.explorer.js.map +1 -0
- package/dist/lib/explorers/api-response.explorer.d.ts +8 -0
- package/dist/lib/explorers/api-response.explorer.d.ts.map +1 -0
- package/dist/lib/explorers/api-response.explorer.js +77 -0
- package/dist/lib/explorers/api-response.explorer.js.map +1 -0
- package/dist/lib/explorers/api-security.explorer.d.ts +6 -0
- package/dist/lib/explorers/api-security.explorer.d.ts.map +1 -0
- package/dist/lib/explorers/api-security.explorer.js +9 -0
- package/dist/lib/explorers/api-security.explorer.js.map +1 -0
- package/dist/lib/explorers/api-use-tags.explorer.d.ts +6 -0
- package/dist/lib/explorers/api-use-tags.explorer.d.ts.map +1 -0
- package/dist/lib/explorers/api-use-tags.explorer.js +17 -0
- package/dist/lib/explorers/api-use-tags.explorer.js.map +1 -0
- package/dist/lib/extra/swagger-shim.d.ts +97 -0
- package/dist/lib/extra/swagger-shim.d.ts.map +1 -0
- package/dist/lib/extra/swagger-shim.js +265 -0
- package/dist/lib/extra/swagger-shim.js.map +1 -0
- package/dist/lib/fixtures/document.base.d.ts +3 -0
- package/dist/lib/fixtures/document.base.d.ts.map +1 -0
- package/dist/lib/fixtures/document.base.js +13 -0
- package/dist/lib/fixtures/document.base.js.map +1 -0
- package/dist/lib/index.d.ts +8 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js +8 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/interfaces/callback-object.interface.d.ts +13 -0
- package/dist/lib/interfaces/callback-object.interface.d.ts.map +1 -0
- package/dist/lib/interfaces/callback-object.interface.js +2 -0
- package/dist/lib/interfaces/callback-object.interface.js.map +1 -0
- package/dist/lib/interfaces/denormalized-doc-resolvers.interface.d.ts +8 -0
- package/dist/lib/interfaces/denormalized-doc-resolvers.interface.d.ts.map +1 -0
- package/dist/lib/interfaces/denormalized-doc-resolvers.interface.js +2 -0
- package/dist/lib/interfaces/denormalized-doc-resolvers.interface.js.map +1 -0
- package/dist/lib/interfaces/denormalized-doc.interface.d.ts +9 -0
- package/dist/lib/interfaces/denormalized-doc.interface.d.ts.map +1 -0
- package/dist/lib/interfaces/denormalized-doc.interface.js +2 -0
- package/dist/lib/interfaces/denormalized-doc.interface.js.map +1 -0
- package/dist/lib/interfaces/enum-schema-attributes.interface.d.ts +3 -0
- package/dist/lib/interfaces/enum-schema-attributes.interface.d.ts.map +1 -0
- package/dist/lib/interfaces/enum-schema-attributes.interface.js +2 -0
- package/dist/lib/interfaces/enum-schema-attributes.interface.js.map +1 -0
- package/dist/lib/interfaces/index.d.ts +4 -0
- package/dist/lib/interfaces/index.d.ts.map +1 -0
- package/dist/lib/interfaces/index.js +3 -0
- package/dist/lib/interfaces/index.js.map +1 -0
- package/dist/lib/interfaces/module-route.interface.d.ts +3 -0
- package/dist/lib/interfaces/module-route.interface.d.ts.map +1 -0
- package/dist/lib/interfaces/module-route.interface.js +2 -0
- package/dist/lib/interfaces/module-route.interface.js.map +1 -0
- package/dist/lib/interfaces/open-api-spec.interface.d.ts +241 -0
- package/dist/lib/interfaces/open-api-spec.interface.d.ts.map +1 -0
- package/dist/lib/interfaces/open-api-spec.interface.js +6 -0
- package/dist/lib/interfaces/open-api-spec.interface.js.map +1 -0
- package/dist/lib/interfaces/schema-object-metadata.interface.d.ts +24 -0
- package/dist/lib/interfaces/schema-object-metadata.interface.d.ts.map +1 -0
- package/dist/lib/interfaces/schema-object-metadata.interface.js +2 -0
- package/dist/lib/interfaces/schema-object-metadata.interface.js.map +1 -0
- package/dist/lib/interfaces/swagger-custom-options.interface.d.ts +85 -0
- package/dist/lib/interfaces/swagger-custom-options.interface.d.ts.map +1 -0
- package/dist/lib/interfaces/swagger-custom-options.interface.js +2 -0
- package/dist/lib/interfaces/swagger-custom-options.interface.js.map +1 -0
- package/dist/lib/interfaces/swagger-document-options.interface.d.ts +36 -0
- package/dist/lib/interfaces/swagger-document-options.interface.d.ts.map +1 -0
- package/dist/lib/interfaces/swagger-document-options.interface.js +2 -0
- package/dist/lib/interfaces/swagger-document-options.interface.js.map +1 -0
- package/dist/lib/interfaces/swagger-ui-init-options.interface.d.ts +8 -0
- package/dist/lib/interfaces/swagger-ui-init-options.interface.d.ts.map +1 -0
- package/dist/lib/interfaces/swagger-ui-init-options.interface.js +2 -0
- package/dist/lib/interfaces/swagger-ui-init-options.interface.js.map +1 -0
- package/dist/lib/interfaces/swagger-ui-options.interface.d.ts +21 -0
- package/dist/lib/interfaces/swagger-ui-options.interface.d.ts.map +1 -0
- package/dist/lib/interfaces/swagger-ui-options.interface.js +2 -0
- package/dist/lib/interfaces/swagger-ui-options.interface.js.map +1 -0
- package/dist/lib/plugin/compiler-plugin.d.ts +3 -0
- package/dist/lib/plugin/compiler-plugin.d.ts.map +1 -0
- package/dist/lib/plugin/compiler-plugin.js +27 -0
- package/dist/lib/plugin/compiler-plugin.js.map +1 -0
- package/dist/lib/plugin/index.d.ts +3 -0
- package/dist/lib/plugin/index.d.ts.map +1 -0
- package/dist/lib/plugin/index.js +3 -0
- package/dist/lib/plugin/index.js.map +1 -0
- package/dist/lib/plugin/merge-options.d.ts +15 -0
- package/dist/lib/plugin/merge-options.d.ts.map +1 -0
- package/dist/lib/plugin/merge-options.js +35 -0
- package/dist/lib/plugin/merge-options.js.map +1 -0
- package/dist/lib/plugin/metadata-loader.d.ts +8 -0
- package/dist/lib/plugin/metadata-loader.d.ts.map +1 -0
- package/dist/lib/plugin/metadata-loader.js +41 -0
- package/dist/lib/plugin/metadata-loader.js.map +1 -0
- package/dist/lib/plugin/plugin-constants.d.ts +4 -0
- package/dist/lib/plugin/plugin-constants.d.ts.map +1 -0
- package/dist/lib/plugin/plugin-constants.js +4 -0
- package/dist/lib/plugin/plugin-constants.js.map +1 -0
- package/dist/lib/plugin/plugin-debug-logger.d.ts +6 -0
- package/dist/lib/plugin/plugin-debug-logger.d.ts.map +1 -0
- package/dist/lib/plugin/plugin-debug-logger.js +5 -0
- package/dist/lib/plugin/plugin-debug-logger.js.map +1 -0
- package/dist/lib/plugin/utils/ast-utils.d.ts +31 -0
- package/dist/lib/plugin/utils/ast-utils.d.ts.map +1 -0
- package/dist/lib/plugin/utils/ast-utils.js +242 -0
- package/dist/lib/plugin/utils/ast-utils.js.map +1 -0
- package/dist/lib/plugin/utils/external-imports.util.d.ts +4 -0
- package/dist/lib/plugin/utils/external-imports.util.d.ts.map +1 -0
- package/dist/lib/plugin/utils/external-imports.util.js +31 -0
- package/dist/lib/plugin/utils/external-imports.util.js.map +1 -0
- package/dist/lib/plugin/utils/is-filename-matched.util.d.ts +2 -0
- package/dist/lib/plugin/utils/is-filename-matched.util.d.ts.map +1 -0
- package/dist/lib/plugin/utils/is-filename-matched.util.js +2 -0
- package/dist/lib/plugin/utils/is-filename-matched.util.js.map +1 -0
- package/dist/lib/plugin/utils/plugin-utils.d.ts +58 -0
- package/dist/lib/plugin/utils/plugin-utils.d.ts.map +1 -0
- package/dist/lib/plugin/utils/plugin-utils.js +282 -0
- package/dist/lib/plugin/utils/plugin-utils.js.map +1 -0
- package/dist/lib/plugin/utils/type-reference-to-identifier.util.d.ts +8 -0
- package/dist/lib/plugin/utils/type-reference-to-identifier.util.d.ts.map +1 -0
- package/dist/lib/plugin/utils/type-reference-to-identifier.util.js +50 -0
- package/dist/lib/plugin/utils/type-reference-to-identifier.util.js.map +1 -0
- package/dist/lib/plugin/visitors/abstract.visitor.d.ts +5 -0
- package/dist/lib/plugin/visitors/abstract.visitor.d.ts.map +1 -0
- package/dist/lib/plugin/visitors/abstract.visitor.js +20 -0
- package/dist/lib/plugin/visitors/abstract.visitor.js.map +1 -0
- package/dist/lib/plugin/visitors/controller-class.visitor.d.ts +21 -0
- package/dist/lib/plugin/visitors/controller-class.visitor.d.ts.map +1 -0
- package/dist/lib/plugin/visitors/controller-class.visitor.js +266 -0
- package/dist/lib/plugin/visitors/controller-class.visitor.js.map +1 -0
- package/dist/lib/plugin/visitors/model-class.visitor.d.ts +40 -0
- package/dist/lib/plugin/visitors/model-class.visitor.d.ts.map +1 -0
- package/dist/lib/plugin/visitors/model-class.visitor.js +445 -0
- package/dist/lib/plugin/visitors/model-class.visitor.js.map +1 -0
- package/dist/lib/plugin/visitors/readonly.visitor.d.ts +22 -0
- package/dist/lib/plugin/visitors/readonly.visitor.d.ts.map +1 -0
- package/dist/lib/plugin/visitors/readonly.visitor.js +60 -0
- package/dist/lib/plugin/visitors/readonly.visitor.js.map +1 -0
- package/dist/lib/services/constants.d.ts +2 -0
- package/dist/lib/services/constants.d.ts.map +1 -0
- package/dist/lib/services/constants.js +2 -0
- package/dist/lib/services/constants.js.map +1 -0
- package/dist/lib/services/decorators-properties.d.ts +27 -0
- package/dist/lib/services/decorators-properties.d.ts.map +1 -0
- package/dist/lib/services/decorators-properties.js +147 -0
- package/dist/lib/services/decorators-properties.js.map +1 -0
- package/dist/lib/services/mimetype-content-wrapper.d.ts +5 -0
- package/dist/lib/services/mimetype-content-wrapper.d.ts.map +1 -0
- package/dist/lib/services/mimetype-content-wrapper.js +8 -0
- package/dist/lib/services/mimetype-content-wrapper.js.map +1 -0
- package/dist/lib/services/model-properties-accessor.d.ts +7 -0
- package/dist/lib/services/model-properties-accessor.d.ts.map +1 -0
- package/dist/lib/services/model-properties-accessor.js +33 -0
- package/dist/lib/services/model-properties-accessor.js.map +1 -0
- package/dist/lib/services/parameter-metadata-accessor.d.ts +22 -0
- package/dist/lib/services/parameter-metadata-accessor.d.ts.map +1 -0
- package/dist/lib/services/parameter-metadata-accessor.js +38 -0
- package/dist/lib/services/parameter-metadata-accessor.js.map +1 -0
- package/dist/lib/services/parameters-metadata-mapper.d.ts +10 -0
- package/dist/lib/services/parameters-metadata-mapper.d.ts.map +1 -0
- package/dist/lib/services/parameters-metadata-mapper.js +45 -0
- package/dist/lib/services/parameters-metadata-mapper.js.map +1 -0
- package/dist/lib/services/response-object-factory.d.ts +15 -0
- package/dist/lib/services/response-object-factory.d.ts.map +1 -0
- package/dist/lib/services/response-object-factory.js +123 -0
- package/dist/lib/services/response-object-factory.js.map +1 -0
- package/dist/lib/services/response-object-mapper.d.ts +8 -0
- package/dist/lib/services/response-object-mapper.d.ts.map +1 -0
- package/dist/lib/services/response-object-mapper.js +55 -0
- package/dist/lib/services/response-object-mapper.js.map +1 -0
- package/dist/lib/services/schema-object-factory.d.ts +160 -0
- package/dist/lib/services/schema-object-factory.d.ts.map +1 -0
- package/dist/lib/services/schema-object-factory.js +484 -0
- package/dist/lib/services/schema-object-factory.js.map +1 -0
- package/dist/lib/services/swagger-types-mapper.d.ts +19 -0
- package/dist/lib/services/swagger-types-mapper.d.ts.map +1 -0
- package/dist/lib/services/swagger-types-mapper.js +132 -0
- package/dist/lib/services/swagger-types-mapper.js.map +1 -0
- package/dist/lib/storages/global-parameters.storage.d.ts +9 -0
- package/dist/lib/storages/global-parameters.storage.d.ts.map +1 -0
- package/dist/lib/storages/global-parameters.storage.js +23 -0
- package/dist/lib/storages/global-parameters.storage.js.map +1 -0
- package/dist/lib/swagger-transformer.d.ts +8 -0
- package/dist/lib/swagger-transformer.d.ts.map +1 -0
- package/dist/lib/swagger-transformer.js +36 -0
- package/dist/lib/swagger-transformer.js.map +1 -0
- package/dist/lib/swagger-ui/constants.d.ts +4 -0
- package/dist/lib/swagger-ui/constants.d.ts.map +1 -0
- package/dist/lib/swagger-ui/constants.js +130 -0
- package/dist/lib/swagger-ui/constants.js.map +1 -0
- package/dist/lib/swagger-ui/helpers.d.ts +6 -0
- package/dist/lib/swagger-ui/helpers.d.ts.map +1 -0
- package/dist/lib/swagger-ui/helpers.js +17 -0
- package/dist/lib/swagger-ui/helpers.js.map +1 -0
- package/dist/lib/swagger-ui/index.d.ts +2 -0
- package/dist/lib/swagger-ui/index.d.ts.map +1 -0
- package/dist/lib/swagger-ui/index.js +2 -0
- package/dist/lib/swagger-ui/index.js.map +1 -0
- package/dist/lib/swagger-ui/swagger-ui.d.ts +14 -0
- package/dist/lib/swagger-ui/swagger-ui.d.ts.map +1 -0
- package/dist/lib/swagger-ui/swagger-ui.js +64 -0
- package/dist/lib/swagger-ui/swagger-ui.js.map +1 -0
- package/dist/lib/type-helpers/index.d.ts +5 -0
- package/dist/lib/type-helpers/index.d.ts.map +1 -0
- package/dist/lib/type-helpers/index.js +5 -0
- package/dist/lib/type-helpers/index.js.map +1 -0
- package/dist/lib/type-helpers/intersection-type.helper.d.ts +9 -0
- package/dist/lib/type-helpers/intersection-type.helper.d.ts.map +1 -0
- package/dist/lib/type-helpers/intersection-type.helper.js +40 -0
- package/dist/lib/type-helpers/intersection-type.helper.js.map +1 -0
- package/dist/lib/type-helpers/mapped-types.utils.d.ts +3 -0
- package/dist/lib/type-helpers/mapped-types.utils.d.ts.map +1 -0
- package/dist/lib/type-helpers/mapped-types.utils.js +33 -0
- package/dist/lib/type-helpers/mapped-types.utils.js.map +1 -0
- package/dist/lib/type-helpers/omit-type.helper.d.ts +3 -0
- package/dist/lib/type-helpers/omit-type.helper.d.ts.map +1 -0
- package/dist/lib/type-helpers/omit-type.helper.js +38 -0
- package/dist/lib/type-helpers/omit-type.helper.js.map +1 -0
- package/dist/lib/type-helpers/partial-type.helper.d.ts +14 -0
- package/dist/lib/type-helpers/partial-type.helper.d.ts.map +1 -0
- package/dist/lib/type-helpers/partial-type.helper.js +52 -0
- package/dist/lib/type-helpers/partial-type.helper.js.map +1 -0
- package/dist/lib/type-helpers/pick-type.helper.d.ts +3 -0
- package/dist/lib/type-helpers/pick-type.helper.d.ts.map +1 -0
- package/dist/lib/type-helpers/pick-type.helper.js +38 -0
- package/dist/lib/type-helpers/pick-type.helper.js.map +1 -0
- package/dist/lib/types/swagger-enum.type.d.ts +2 -0
- package/dist/lib/types/swagger-enum.type.d.ts.map +1 -0
- package/dist/lib/types/swagger-enum.type.js +2 -0
- package/dist/lib/types/swagger-enum.type.js.map +1 -0
- package/dist/lib/utils/assign-two-levels-deep.d.ts +16 -0
- package/dist/lib/utils/assign-two-levels-deep.d.ts.map +1 -0
- package/dist/lib/utils/assign-two-levels-deep.js +24 -0
- package/dist/lib/utils/assign-two-levels-deep.js.map +1 -0
- package/dist/lib/utils/enum.utils.d.ts +10 -0
- package/dist/lib/utils/enum.utils.d.ts.map +1 -0
- package/dist/lib/utils/enum.utils.js +68 -0
- package/dist/lib/utils/enum.utils.js.map +1 -0
- package/dist/lib/utils/extend-metadata.util.d.ts +3 -0
- package/dist/lib/utils/extend-metadata.util.d.ts.map +1 -0
- package/dist/lib/utils/extend-metadata.util.js +9 -0
- package/dist/lib/utils/extend-metadata.util.js.map +1 -0
- package/dist/lib/utils/get-global-prefix.d.ts +3 -0
- package/dist/lib/utils/get-global-prefix.d.ts.map +1 -0
- package/dist/lib/utils/get-global-prefix.js +5 -0
- package/dist/lib/utils/get-global-prefix.js.map +1 -0
- package/dist/lib/utils/get-schema-path.util.d.ts +5 -0
- package/dist/lib/utils/get-schema-path.util.d.ts.map +1 -0
- package/dist/lib/utils/get-schema-path.util.js +22 -0
- package/dist/lib/utils/get-schema-path.util.js.map +1 -0
- package/dist/lib/utils/index.d.ts +2 -0
- package/dist/lib/utils/index.d.ts.map +1 -0
- package/dist/lib/utils/index.js +2 -0
- package/dist/lib/utils/index.js.map +1 -0
- package/dist/lib/utils/is-body-parameter.util.d.ts +3 -0
- package/dist/lib/utils/is-body-parameter.util.d.ts.map +1 -0
- package/dist/lib/utils/is-body-parameter.util.js +4 -0
- package/dist/lib/utils/is-body-parameter.util.js.map +1 -0
- package/dist/lib/utils/is-built-in-type.util.d.ts +3 -0
- package/dist/lib/utils/is-built-in-type.util.d.ts.map +1 -0
- package/dist/lib/utils/is-built-in-type.util.js +6 -0
- package/dist/lib/utils/is-built-in-type.util.js.map +1 -0
- package/dist/lib/utils/is-date-ctor.util.d.ts +3 -0
- package/dist/lib/utils/is-date-ctor.util.d.ts.map +1 -0
- package/dist/lib/utils/is-date-ctor.util.js +4 -0
- package/dist/lib/utils/is-date-ctor.util.js.map +1 -0
- package/dist/lib/utils/merge-and-uniq.util.d.ts +2 -0
- package/dist/lib/utils/merge-and-uniq.util.d.ts.map +1 -0
- package/dist/lib/utils/merge-and-uniq.util.js +5 -0
- package/dist/lib/utils/merge-and-uniq.util.js.map +1 -0
- package/dist/lib/utils/normalize-rel-path.d.ts +2 -0
- package/dist/lib/utils/normalize-rel-path.d.ts.map +1 -0
- package/dist/lib/utils/normalize-rel-path.js +6 -0
- package/dist/lib/utils/normalize-rel-path.js.map +1 -0
- package/dist/lib/utils/remove-undefined-keys.d.ts +6 -0
- package/dist/lib/utils/remove-undefined-keys.d.ts.map +1 -0
- package/dist/lib/utils/remove-undefined-keys.js +9 -0
- package/dist/lib/utils/remove-undefined-keys.js.map +1 -0
- package/dist/lib/utils/resolve-path.util.d.ts +2 -0
- package/dist/lib/utils/resolve-path.util.d.ts.map +1 -0
- package/dist/lib/utils/resolve-path.util.js +5 -0
- package/dist/lib/utils/resolve-path.util.js.map +1 -0
- package/dist/lib/utils/reverse-object-keys.util.d.ts +2 -0
- package/dist/lib/utils/reverse-object-keys.util.d.ts.map +1 -0
- package/dist/lib/utils/reverse-object-keys.util.js +9 -0
- package/dist/lib/utils/reverse-object-keys.util.js.map +1 -0
- package/dist/lib/utils/sort-object-lexicographically.d.ts +6 -0
- package/dist/lib/utils/sort-object-lexicographically.d.ts.map +1 -0
- package/dist/lib/utils/sort-object-lexicographically.js +9 -0
- package/dist/lib/utils/sort-object-lexicographically.js.map +1 -0
- package/dist/lib/utils/strip-last-slash.util.d.ts +2 -0
- package/dist/lib/utils/strip-last-slash.util.d.ts.map +1 -0
- package/dist/lib/utils/strip-last-slash.util.js +4 -0
- package/dist/lib/utils/strip-last-slash.util.js.map +1 -0
- package/dist/lib/utils/validate-global-prefix.util.d.ts +2 -0
- package/dist/lib/utils/validate-global-prefix.util.d.ts.map +1 -0
- package/dist/lib/utils/validate-global-prefix.util.js +4 -0
- package/dist/lib/utils/validate-global-prefix.util.js.map +1 -0
- package/dist/lib/utils/validate-path.util.d.ts +2 -0
- package/dist/lib/utils/validate-path.util.d.ts.map +1 -0
- package/dist/lib/utils/validate-path.util.js +4 -0
- package/dist/lib/utils/validate-path.util.js.map +1 -0
- 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;A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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 @@
|
|
|
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 @@
|
|
|
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,EAC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O,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":"AACA,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM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,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,I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MAAM,GAAG,MAAM,CAAC,EAAE,GACnB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -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":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAKlC,MAAM,UAAU,aAAa,CAAC,QAAmD;IAC/E,IAAI,OAAO,QAAQ,KAAK,U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AC,MAAM,aAAa,GAAG,CAAyC,GAAwB,EAAY,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;AAEtH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAA8B,EAAE,EAAE,CAC/D,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|