nestjs-openapi-next 1.0.0
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/README.md +211 -0
- package/bun.lock +2154 -0
- package/dist/constants.d.ts +23 -0
- package/dist/constants.js +26 -0
- package/dist/decorators/api-basic.decorator.d.ts +1 -0
- package/dist/decorators/api-basic.decorator.js +7 -0
- package/dist/decorators/api-bearer.decorator.d.ts +1 -0
- package/dist/decorators/api-bearer.decorator.js +7 -0
- package/dist/decorators/api-body.decorator.d.ts +16 -0
- package/dist/decorators/api-body.decorator.js +22 -0
- package/dist/decorators/api-callbacks.decorator.d.ts +2 -0
- package/dist/decorators/api-callbacks.decorator.js +8 -0
- package/dist/decorators/api-consumes.decorator.d.ts +1 -0
- package/dist/decorators/api-consumes.decorator.js +8 -0
- package/dist/decorators/api-cookie.decorator.d.ts +1 -0
- package/dist/decorators/api-cookie.decorator.js +7 -0
- package/dist/decorators/api-default-getter.decorator.d.ts +2 -0
- package/dist/decorators/api-default-getter.decorator.js +12 -0
- package/dist/decorators/api-exclude-controller.decorator.d.ts +1 -0
- package/dist/decorators/api-exclude-controller.decorator.js +8 -0
- package/dist/decorators/api-exclude-endpoint.decorator.d.ts +1 -0
- package/dist/decorators/api-exclude-endpoint.decorator.js +10 -0
- package/dist/decorators/api-extension.decorator.d.ts +1 -0
- package/dist/decorators/api-extension.decorator.js +38 -0
- package/dist/decorators/api-extra-models.decorator.d.ts +1 -0
- package/dist/decorators/api-extra-models.decorator.js +17 -0
- package/dist/decorators/api-header.decorator.d.ts +7 -0
- package/dist/decorators/api-header.decorator.js +37 -0
- package/dist/decorators/api-hide-property.decorator.d.ts +1 -0
- package/dist/decorators/api-hide-property.decorator.js +6 -0
- package/dist/decorators/api-link.decorator.d.ts +7 -0
- package/dist/decorators/api-link.decorator.js +21 -0
- package/dist/decorators/api-oauth2.decorator.d.ts +1 -0
- package/dist/decorators/api-oauth2.decorator.js +7 -0
- package/dist/decorators/api-operation.decorator.d.ts +5 -0
- package/dist/decorators/api-operation.decorator.js +12 -0
- package/dist/decorators/api-param.decorator.d.ts +22 -0
- package/dist/decorators/api-param.decorator.js +17 -0
- package/dist/decorators/api-produces.decorator.d.ts +1 -0
- package/dist/decorators/api-produces.decorator.js +8 -0
- package/dist/decorators/api-property.decorator.d.ts +15 -0
- package/dist/decorators/api-property.decorator.js +48 -0
- package/dist/decorators/api-query-method.decorator.d.ts +1 -0
- package/dist/decorators/api-query-method.decorator.js +8 -0
- package/dist/decorators/api-query.decorator.d.ts +24 -0
- package/dist/decorators/api-query.decorator.js +25 -0
- package/dist/decorators/api-response.decorator.d.ts +39 -0
- package/dist/decorators/api-response.decorator.js +55 -0
- package/dist/decorators/api-schema.decorator.d.ts +6 -0
- package/dist/decorators/api-schema.decorator.js +8 -0
- package/dist/decorators/api-security-device-flow.decorator.d.ts +1 -0
- package/dist/decorators/api-security-device-flow.decorator.js +7 -0
- package/dist/decorators/api-security.decorator.d.ts +2 -0
- package/dist/decorators/api-security.decorator.js +25 -0
- package/dist/decorators/api-streaming-response.decorator.d.ts +7 -0
- package/dist/decorators/api-streaming-response.decorator.js +9 -0
- package/dist/decorators/api-tag-group.decorator.d.ts +11 -0
- package/dist/decorators/api-tag-group.decorator.js +13 -0
- package/dist/decorators/api-use-tags.decorator.d.ts +1 -0
- package/dist/decorators/api-use-tags.decorator.js +8 -0
- package/dist/decorators/helpers.d.ts +8 -0
- package/dist/decorators/helpers.js +123 -0
- package/dist/decorators/index.d.ts +28 -0
- package/dist/decorators/index.js +48 -0
- package/dist/document-builder.d.ts +29 -0
- package/dist/document-builder.js +142 -0
- package/dist/explorers/api-callbacks.explorer.d.ts +2 -0
- package/dist/explorers/api-callbacks.explorer.js +36 -0
- package/dist/explorers/api-consumes.explorer.d.ts +5 -0
- package/dist/explorers/api-consumes.explorer.js +11 -0
- package/dist/explorers/api-exclude-controller.explorer.d.ts +2 -0
- package/dist/explorers/api-exclude-controller.explorer.js +10 -0
- package/dist/explorers/api-exclude-endpoint.explorer.d.ts +2 -0
- package/dist/explorers/api-exclude-endpoint.explorer.js +6 -0
- package/dist/explorers/api-extra-models.explorer.d.ts +3 -0
- package/dist/explorers/api-extra-models.explorer.js +11 -0
- package/dist/explorers/api-headers.explorer.d.ts +7 -0
- package/dist/explorers/api-headers.explorer.js +9 -0
- package/dist/explorers/api-operation.explorer.d.ts +2 -0
- package/dist/explorers/api-operation.explorer.js +43 -0
- package/dist/explorers/api-parameters.explorer.d.ts +71 -0
- package/dist/explorers/api-parameters.explorer.js +47 -0
- package/dist/explorers/api-produces.explorer.d.ts +5 -0
- package/dist/explorers/api-produces.explorer.js +11 -0
- package/dist/explorers/api-response.explorer.d.ts +13 -0
- package/dist/explorers/api-response.explorer.js +103 -0
- package/dist/explorers/api-security.explorer.d.ts +5 -0
- package/dist/explorers/api-security.explorer.js +13 -0
- package/dist/explorers/api-use-tags.explorer.d.ts +5 -0
- package/dist/explorers/api-use-tags.explorer.js +18 -0
- package/dist/extra/swagger-shim.d.ts +100 -0
- package/dist/extra/swagger-shim.js +367 -0
- package/dist/fixtures/document.base.d.ts +2 -0
- package/dist/fixtures/document.base.js +16 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +23 -0
- package/dist/interfaces/callback-object.interface.d.ts +12 -0
- package/dist/interfaces/callback-object.interface.js +2 -0
- package/dist/interfaces/denormalized-doc-resolvers.interface.d.ts +7 -0
- package/dist/interfaces/denormalized-doc-resolvers.interface.js +2 -0
- package/dist/interfaces/denormalized-doc.interface.d.ts +8 -0
- package/dist/interfaces/denormalized-doc.interface.js +2 -0
- package/dist/interfaces/enum-schema-attributes.interface.d.ts +2 -0
- package/dist/interfaces/enum-schema-attributes.interface.js +2 -0
- package/dist/interfaces/index.d.ts +3 -0
- package/dist/interfaces/index.js +18 -0
- package/dist/interfaces/module-route.interface.d.ts +2 -0
- package/dist/interfaces/module-route.interface.js +2 -0
- package/dist/interfaces/open-api-spec.interface.d.ts +252 -0
- package/dist/interfaces/open-api-spec.interface.js +2 -0
- package/dist/interfaces/schema-object-metadata.interface.d.ts +30 -0
- package/dist/interfaces/schema-object-metadata.interface.js +2 -0
- package/dist/interfaces/swagger-custom-options.interface.d.ts +24 -0
- package/dist/interfaces/swagger-custom-options.interface.js +2 -0
- package/dist/interfaces/swagger-document-options.interface.d.ts +10 -0
- package/dist/interfaces/swagger-document-options.interface.js +2 -0
- package/dist/interfaces/swagger-ui-init-options.interface.d.ts +7 -0
- package/dist/interfaces/swagger-ui-init-options.interface.js +2 -0
- package/dist/interfaces/swagger-ui-options.interface.d.ts +15 -0
- package/dist/interfaces/swagger-ui-options.interface.js +2 -0
- package/dist/plugin/compiler-plugin.d.ts +2 -0
- package/dist/plugin/compiler-plugin.js +30 -0
- package/dist/plugin/index.d.ts +2 -0
- package/dist/plugin/index.js +18 -0
- package/dist/plugin/merge-options.d.ts +17 -0
- package/dist/plugin/merge-options.js +37 -0
- package/dist/plugin/metadata-loader.d.ts +7 -0
- package/dist/plugin/metadata-loader.js +51 -0
- package/dist/plugin/plugin-constants.d.ts +3 -0
- package/dist/plugin/plugin-constants.js +6 -0
- package/dist/plugin/plugin-debug-logger.d.ts +5 -0
- package/dist/plugin/plugin-debug-logger.js +7 -0
- package/dist/plugin/utils/ast-utils.d.ts +30 -0
- package/dist/plugin/utils/ast-utils.js +273 -0
- package/dist/plugin/utils/is-filename-matched.util.d.ts +1 -0
- package/dist/plugin/utils/is-filename-matched.util.js +5 -0
- package/dist/plugin/utils/plugin-utils.d.ts +30 -0
- package/dist/plugin/utils/plugin-utils.js +307 -0
- package/dist/plugin/utils/type-reference-to-identifier.util.d.ts +7 -0
- package/dist/plugin/utils/type-reference-to-identifier.util.js +52 -0
- package/dist/plugin/visitors/abstract.visitor.d.ts +4 -0
- package/dist/plugin/visitors/abstract.visitor.js +30 -0
- package/dist/plugin/visitors/controller-class.visitor.d.ts +20 -0
- package/dist/plugin/visitors/controller-class.visitor.js +265 -0
- package/dist/plugin/visitors/model-class.visitor.d.ts +35 -0
- package/dist/plugin/visitors/model-class.visitor.js +514 -0
- package/dist/plugin/visitors/readonly.visitor.d.ts +21 -0
- package/dist/plugin/visitors/readonly.visitor.js +40 -0
- package/dist/services/constants.d.ts +1 -0
- package/dist/services/constants.js +4 -0
- package/dist/services/decorators-properties.d.ts +21 -0
- package/dist/services/decorators-properties.js +149 -0
- package/dist/services/mimetype-content-wrapper.d.ts +4 -0
- package/dist/services/mimetype-content-wrapper.js +11 -0
- package/dist/services/model-properties-accessor.d.ts +6 -0
- package/dist/services/model-properties-accessor.js +37 -0
- package/dist/services/parameter-metadata-accessor.d.ts +22 -0
- package/dist/services/parameter-metadata-accessor.js +41 -0
- package/dist/services/parameters-metadata-mapper.d.ts +9 -0
- package/dist/services/parameters-metadata-mapper.js +38 -0
- package/dist/services/response-object-factory.d.ts +28 -0
- package/dist/services/response-object-factory.js +120 -0
- package/dist/services/response-object-mapper.d.ts +39 -0
- package/dist/services/response-object-mapper.js +38 -0
- package/dist/services/schema-object-factory.d.ts +156 -0
- package/dist/services/schema-object-factory.js +471 -0
- package/dist/services/swagger-types-mapper.d.ts +260 -0
- package/dist/services/swagger-types-mapper.js +107 -0
- package/dist/storages/global-parameters.storage.d.ts +8 -0
- package/dist/storages/global-parameters.storage.js +22 -0
- package/dist/storages/global-responses.storage.d.ts +10 -0
- package/dist/storages/global-responses.storage.js +21 -0
- package/dist/swagger-explorer.d.ts +41 -0
- package/dist/swagger-explorer.js +326 -0
- package/dist/swagger-module.d.ts +27 -0
- package/dist/swagger-module.js +223 -0
- package/dist/swagger-scanner.d.ts +25 -0
- package/dist/swagger-scanner.js +116 -0
- package/dist/swagger-transformer.d.ts +4 -0
- package/dist/swagger-transformer.js +22 -0
- package/dist/swagger-ui/constants.d.ts +3 -0
- package/dist/swagger-ui/constants.js +132 -0
- package/dist/swagger-ui/helpers.d.ts +2 -0
- package/dist/swagger-ui/helpers.js +16 -0
- package/dist/swagger-ui/index.d.ts +1 -0
- package/dist/swagger-ui/index.js +17 -0
- package/dist/swagger-ui/swagger-ui.d.ts +4 -0
- package/dist/swagger-ui/swagger-ui.js +62 -0
- package/dist/type-helpers/index.d.ts +4 -0
- package/dist/type-helpers/index.js +20 -0
- package/dist/type-helpers/intersection-type.helper.d.ts +8 -0
- package/dist/type-helpers/intersection-type.helper.js +42 -0
- package/dist/type-helpers/mapped-types.utils.d.ts +2 -0
- package/dist/type-helpers/mapped-types.utils.js +31 -0
- package/dist/type-helpers/omit-type.helper.d.ts +2 -0
- package/dist/type-helpers/omit-type.helper.js +40 -0
- package/dist/type-helpers/partial-type.helper.d.ts +4 -0
- package/dist/type-helpers/partial-type.helper.js +49 -0
- package/dist/type-helpers/pick-type.helper.d.ts +2 -0
- package/dist/type-helpers/pick-type.helper.js +40 -0
- package/dist/types/swagger-enum.type.d.ts +1 -0
- package/dist/types/swagger-enum.type.js +2 -0
- package/dist/utils/assign-two-levels-deep.d.ts +1 -0
- package/dist/utils/assign-two-levels-deep.js +12 -0
- package/dist/utils/enum.utils.d.ts +9 -0
- package/dist/utils/enum.utils.js +65 -0
- package/dist/utils/extend-metadata.util.d.ts +2 -0
- package/dist/utils/extend-metadata.util.js +11 -0
- package/dist/utils/get-global-prefix.d.ts +2 -0
- package/dist/utils/get-global-prefix.js +7 -0
- package/dist/utils/get-schema-path.util.d.ts +4 -0
- package/dist/utils/get-schema-path.util.js +26 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/is-body-parameter.util.d.ts +2 -0
- package/dist/utils/is-body-parameter.util.js +6 -0
- package/dist/utils/is-built-in-type.util.d.ts +2 -0
- package/dist/utils/is-built-in-type.util.js +8 -0
- package/dist/utils/is-date-ctor.util.d.ts +2 -0
- package/dist/utils/is-date-ctor.util.js +6 -0
- package/dist/utils/merge-and-uniq.util.d.ts +1 -0
- package/dist/utils/merge-and-uniq.util.js +7 -0
- package/dist/utils/normalize-rel-path.d.ts +1 -0
- package/dist/utils/normalize-rel-path.js +7 -0
- package/dist/utils/remove-undefined-keys.d.ts +5 -0
- package/dist/utils/remove-undefined-keys.js +11 -0
- package/dist/utils/resolve-path.util.d.ts +1 -0
- package/dist/utils/resolve-path.util.js +7 -0
- package/dist/utils/reverse-object-keys.util.d.ts +1 -0
- package/dist/utils/reverse-object-keys.util.js +11 -0
- package/dist/utils/sort-object-lexicographically.d.ts +5 -0
- package/dist/utils/sort-object-lexicographically.js +11 -0
- package/dist/utils/strip-last-slash.util.d.ts +1 -0
- package/dist/utils/strip-last-slash.util.js +8 -0
- package/dist/utils/validate-global-prefix.util.d.ts +1 -0
- package/dist/utils/validate-global-prefix.util.js +5 -0
- package/dist/utils/validate-path.util.d.ts +1 -0
- package/dist/utils/validate-path.util.js +5 -0
- package/eslint.config.mjs +47 -0
- package/nest-cli.json +6 -0
- package/package.json +116 -0
- package/plugin.js +10 -0
- package/tsconfig.build.json +21 -0
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiProperty = ApiProperty;
|
|
4
|
+
exports.ApiPropertyOptional = ApiPropertyOptional;
|
|
5
|
+
exports.ApiResponseProperty = ApiResponseProperty;
|
|
6
|
+
exports.ApiBasicAuth = ApiBasicAuth;
|
|
7
|
+
exports.ApiBearerAuth = ApiBearerAuth;
|
|
8
|
+
exports.ApiBody = ApiBody;
|
|
9
|
+
exports.ApiConsumes = ApiConsumes;
|
|
10
|
+
exports.ApiCookieAuth = ApiCookieAuth;
|
|
11
|
+
exports.ApiExcludeEndpoint = ApiExcludeEndpoint;
|
|
12
|
+
exports.ApiExcludeController = ApiExcludeController;
|
|
13
|
+
exports.ApiExtraModels = ApiExtraModels;
|
|
14
|
+
exports.ApiHeader = ApiHeader;
|
|
15
|
+
exports.ApiHeaders = ApiHeaders;
|
|
16
|
+
exports.ApiHideProperty = ApiHideProperty;
|
|
17
|
+
exports.ApiOAuth2 = ApiOAuth2;
|
|
18
|
+
exports.ApiOperation = ApiOperation;
|
|
19
|
+
exports.ApiParam = ApiParam;
|
|
20
|
+
exports.ApiProduces = ApiProduces;
|
|
21
|
+
exports.ApiQuery = ApiQuery;
|
|
22
|
+
exports.ApiResponse = ApiResponse;
|
|
23
|
+
exports.ApiContinueResponse = ApiContinueResponse;
|
|
24
|
+
exports.ApiSwitchingProtocolsResponse = ApiSwitchingProtocolsResponse;
|
|
25
|
+
exports.ApiProcessingResponse = ApiProcessingResponse;
|
|
26
|
+
exports.ApiEarlyhintsResponse = ApiEarlyhintsResponse;
|
|
27
|
+
exports.ApiOkResponse = ApiOkResponse;
|
|
28
|
+
exports.ApiCreatedResponse = ApiCreatedResponse;
|
|
29
|
+
exports.ApiAcceptedResponse = ApiAcceptedResponse;
|
|
30
|
+
exports.ApiNonAuthoritativeInformationResponse = ApiNonAuthoritativeInformationResponse;
|
|
31
|
+
exports.ApiNoContentResponse = ApiNoContentResponse;
|
|
32
|
+
exports.ApiResetContentResponse = ApiResetContentResponse;
|
|
33
|
+
exports.ApiPartialContentResponse = ApiPartialContentResponse;
|
|
34
|
+
exports.ApiAmbiguousResponse = ApiAmbiguousResponse;
|
|
35
|
+
exports.ApiMovedPermanentlyResponse = ApiMovedPermanentlyResponse;
|
|
36
|
+
exports.ApiFoundResponse = ApiFoundResponse;
|
|
37
|
+
exports.ApiSeeOtherResponse = ApiSeeOtherResponse;
|
|
38
|
+
exports.ApiNotModifiedResponse = ApiNotModifiedResponse;
|
|
39
|
+
exports.ApiTemporaryRedirectResponse = ApiTemporaryRedirectResponse;
|
|
40
|
+
exports.ApiPermanentRedirectResponse = ApiPermanentRedirectResponse;
|
|
41
|
+
exports.ApiBadRequestResponse = ApiBadRequestResponse;
|
|
42
|
+
exports.ApiUnauthorizedResponse = ApiUnauthorizedResponse;
|
|
43
|
+
exports.ApiPaymentRequiredResponse = ApiPaymentRequiredResponse;
|
|
44
|
+
exports.ApiForbiddenResponse = ApiForbiddenResponse;
|
|
45
|
+
exports.ApiNotFoundResponse = ApiNotFoundResponse;
|
|
46
|
+
exports.ApiMethodNotAllowedResponse = ApiMethodNotAllowedResponse;
|
|
47
|
+
exports.ApiNotAcceptableResponse = ApiNotAcceptableResponse;
|
|
48
|
+
exports.ApiProxyAuthenticationRequiredResponse = ApiProxyAuthenticationRequiredResponse;
|
|
49
|
+
exports.ApiRequestTimeoutResponse = ApiRequestTimeoutResponse;
|
|
50
|
+
exports.ApiConflictResponse = ApiConflictResponse;
|
|
51
|
+
exports.ApiGoneResponse = ApiGoneResponse;
|
|
52
|
+
exports.ApiLengthRequiredResponse = ApiLengthRequiredResponse;
|
|
53
|
+
exports.ApiPreconditionFailedResponse = ApiPreconditionFailedResponse;
|
|
54
|
+
exports.ApiPayloadTooLargeResponse = ApiPayloadTooLargeResponse;
|
|
55
|
+
exports.ApiUriTooLongResponse = ApiUriTooLongResponse;
|
|
56
|
+
exports.ApiUnsupportedMediaTypeResponse = ApiUnsupportedMediaTypeResponse;
|
|
57
|
+
exports.ApiRequestedRangeNotSatisfiableResponse = ApiRequestedRangeNotSatisfiableResponse;
|
|
58
|
+
exports.ApiExpectationFailedResponse = ApiExpectationFailedResponse;
|
|
59
|
+
exports.ApiIAmATeapotResponse = ApiIAmATeapotResponse;
|
|
60
|
+
exports.ApiMisdirectedResponse = ApiMisdirectedResponse;
|
|
61
|
+
exports.ApiUnprocessableEntityResponse = ApiUnprocessableEntityResponse;
|
|
62
|
+
exports.ApiFailedDependencyResponse = ApiFailedDependencyResponse;
|
|
63
|
+
exports.ApiPreconditionRequiredResponse = ApiPreconditionRequiredResponse;
|
|
64
|
+
exports.ApiTooManyRequestsResponse = ApiTooManyRequestsResponse;
|
|
65
|
+
exports.ApiInternalServerErrorResponse = ApiInternalServerErrorResponse;
|
|
66
|
+
exports.ApiNotImplementedResponse = ApiNotImplementedResponse;
|
|
67
|
+
exports.ApiBadGatewayResponse = ApiBadGatewayResponse;
|
|
68
|
+
exports.ApiServiceUnavailableResponse = ApiServiceUnavailableResponse;
|
|
69
|
+
exports.ApiGatewayTimeoutResponse = ApiGatewayTimeoutResponse;
|
|
70
|
+
exports.ApiHttpVersionNotSupportedResponse = ApiHttpVersionNotSupportedResponse;
|
|
71
|
+
exports.ApiDefaultResponse = ApiDefaultResponse;
|
|
72
|
+
exports.ApiSchema = ApiSchema;
|
|
73
|
+
exports.ApiSecurity = ApiSecurity;
|
|
74
|
+
exports.ApiSecurityDeviceFlow = ApiSecurityDeviceFlow;
|
|
75
|
+
exports.ApiTags = ApiTags;
|
|
76
|
+
exports.ApiTagGroup = ApiTagGroup;
|
|
77
|
+
exports.ApiCallbacks = ApiCallbacks;
|
|
78
|
+
exports.ApiQueryMethod = ApiQueryMethod;
|
|
79
|
+
exports.ApiStreamingResponse = ApiStreamingResponse;
|
|
80
|
+
exports.ApiLink = ApiLink;
|
|
81
|
+
exports.ApiDefaultGetter = ApiDefaultGetter;
|
|
82
|
+
exports.ApiExtension = ApiExtension;
|
|
83
|
+
exports.DocumentBuilder = DocumentBuilder;
|
|
84
|
+
exports.SwaggerModule = SwaggerModule;
|
|
85
|
+
exports.IntersectionType = IntersectionType;
|
|
86
|
+
exports.OmitType = OmitType;
|
|
87
|
+
exports.PartialType = PartialType;
|
|
88
|
+
exports.PickType = PickType;
|
|
89
|
+
exports.getSchemaPath = getSchemaPath;
|
|
90
|
+
exports.refs = refs;
|
|
91
|
+
exports.before = before;
|
|
92
|
+
exports.ReadonlyVisitor = ReadonlyVisitor;
|
|
93
|
+
function ApiProperty() {
|
|
94
|
+
return () => { };
|
|
95
|
+
}
|
|
96
|
+
function ApiPropertyOptional() {
|
|
97
|
+
return () => { };
|
|
98
|
+
}
|
|
99
|
+
function ApiResponseProperty() {
|
|
100
|
+
return () => { };
|
|
101
|
+
}
|
|
102
|
+
function ApiBasicAuth() {
|
|
103
|
+
return () => { };
|
|
104
|
+
}
|
|
105
|
+
function ApiBearerAuth() {
|
|
106
|
+
return () => { };
|
|
107
|
+
}
|
|
108
|
+
function ApiBody() {
|
|
109
|
+
return () => { };
|
|
110
|
+
}
|
|
111
|
+
function ApiConsumes() {
|
|
112
|
+
return () => { };
|
|
113
|
+
}
|
|
114
|
+
function ApiCookieAuth() {
|
|
115
|
+
return () => { };
|
|
116
|
+
}
|
|
117
|
+
function ApiExcludeEndpoint() {
|
|
118
|
+
return () => { };
|
|
119
|
+
}
|
|
120
|
+
function ApiExcludeController() {
|
|
121
|
+
return () => { };
|
|
122
|
+
}
|
|
123
|
+
function ApiExtraModels() {
|
|
124
|
+
return () => { };
|
|
125
|
+
}
|
|
126
|
+
function ApiHeader() {
|
|
127
|
+
return () => { };
|
|
128
|
+
}
|
|
129
|
+
function ApiHeaders() {
|
|
130
|
+
return () => { };
|
|
131
|
+
}
|
|
132
|
+
function ApiHideProperty() {
|
|
133
|
+
return () => { };
|
|
134
|
+
}
|
|
135
|
+
function ApiOAuth2() {
|
|
136
|
+
return () => { };
|
|
137
|
+
}
|
|
138
|
+
function ApiOperation() {
|
|
139
|
+
return () => { };
|
|
140
|
+
}
|
|
141
|
+
function ApiParam() {
|
|
142
|
+
return () => { };
|
|
143
|
+
}
|
|
144
|
+
function ApiProduces() {
|
|
145
|
+
return () => { };
|
|
146
|
+
}
|
|
147
|
+
function ApiQuery() {
|
|
148
|
+
return () => { };
|
|
149
|
+
}
|
|
150
|
+
function ApiResponse() {
|
|
151
|
+
return () => { };
|
|
152
|
+
}
|
|
153
|
+
function ApiContinueResponse() {
|
|
154
|
+
return () => { };
|
|
155
|
+
}
|
|
156
|
+
function ApiSwitchingProtocolsResponse() {
|
|
157
|
+
return () => { };
|
|
158
|
+
}
|
|
159
|
+
function ApiProcessingResponse() {
|
|
160
|
+
return () => { };
|
|
161
|
+
}
|
|
162
|
+
function ApiEarlyhintsResponse() {
|
|
163
|
+
return () => { };
|
|
164
|
+
}
|
|
165
|
+
function ApiOkResponse() {
|
|
166
|
+
return () => { };
|
|
167
|
+
}
|
|
168
|
+
function ApiCreatedResponse() {
|
|
169
|
+
return () => { };
|
|
170
|
+
}
|
|
171
|
+
function ApiAcceptedResponse() {
|
|
172
|
+
return () => { };
|
|
173
|
+
}
|
|
174
|
+
function ApiNonAuthoritativeInformationResponse() {
|
|
175
|
+
return () => { };
|
|
176
|
+
}
|
|
177
|
+
function ApiNoContentResponse() {
|
|
178
|
+
return () => { };
|
|
179
|
+
}
|
|
180
|
+
function ApiResetContentResponse() {
|
|
181
|
+
return () => { };
|
|
182
|
+
}
|
|
183
|
+
function ApiPartialContentResponse() {
|
|
184
|
+
return () => { };
|
|
185
|
+
}
|
|
186
|
+
function ApiAmbiguousResponse() {
|
|
187
|
+
return () => { };
|
|
188
|
+
}
|
|
189
|
+
function ApiMovedPermanentlyResponse() {
|
|
190
|
+
return () => { };
|
|
191
|
+
}
|
|
192
|
+
function ApiFoundResponse() {
|
|
193
|
+
return () => { };
|
|
194
|
+
}
|
|
195
|
+
function ApiSeeOtherResponse() {
|
|
196
|
+
return () => { };
|
|
197
|
+
}
|
|
198
|
+
function ApiNotModifiedResponse() {
|
|
199
|
+
return () => { };
|
|
200
|
+
}
|
|
201
|
+
function ApiTemporaryRedirectResponse() {
|
|
202
|
+
return () => { };
|
|
203
|
+
}
|
|
204
|
+
function ApiPermanentRedirectResponse() {
|
|
205
|
+
return () => { };
|
|
206
|
+
}
|
|
207
|
+
function ApiBadRequestResponse() {
|
|
208
|
+
return () => { };
|
|
209
|
+
}
|
|
210
|
+
function ApiUnauthorizedResponse() {
|
|
211
|
+
return () => { };
|
|
212
|
+
}
|
|
213
|
+
function ApiPaymentRequiredResponse() {
|
|
214
|
+
return () => { };
|
|
215
|
+
}
|
|
216
|
+
function ApiForbiddenResponse() {
|
|
217
|
+
return () => { };
|
|
218
|
+
}
|
|
219
|
+
function ApiNotFoundResponse() {
|
|
220
|
+
return () => { };
|
|
221
|
+
}
|
|
222
|
+
function ApiMethodNotAllowedResponse() {
|
|
223
|
+
return () => { };
|
|
224
|
+
}
|
|
225
|
+
function ApiNotAcceptableResponse() {
|
|
226
|
+
return () => { };
|
|
227
|
+
}
|
|
228
|
+
function ApiProxyAuthenticationRequiredResponse() {
|
|
229
|
+
return () => { };
|
|
230
|
+
}
|
|
231
|
+
function ApiRequestTimeoutResponse() {
|
|
232
|
+
return () => { };
|
|
233
|
+
}
|
|
234
|
+
function ApiConflictResponse() {
|
|
235
|
+
return () => { };
|
|
236
|
+
}
|
|
237
|
+
function ApiGoneResponse() {
|
|
238
|
+
return () => { };
|
|
239
|
+
}
|
|
240
|
+
function ApiLengthRequiredResponse() {
|
|
241
|
+
return () => { };
|
|
242
|
+
}
|
|
243
|
+
function ApiPreconditionFailedResponse() {
|
|
244
|
+
return () => { };
|
|
245
|
+
}
|
|
246
|
+
function ApiPayloadTooLargeResponse() {
|
|
247
|
+
return () => { };
|
|
248
|
+
}
|
|
249
|
+
function ApiUriTooLongResponse() {
|
|
250
|
+
return () => { };
|
|
251
|
+
}
|
|
252
|
+
function ApiUnsupportedMediaTypeResponse() {
|
|
253
|
+
return () => { };
|
|
254
|
+
}
|
|
255
|
+
function ApiRequestedRangeNotSatisfiableResponse() {
|
|
256
|
+
return () => { };
|
|
257
|
+
}
|
|
258
|
+
function ApiExpectationFailedResponse() {
|
|
259
|
+
return () => { };
|
|
260
|
+
}
|
|
261
|
+
function ApiIAmATeapotResponse() {
|
|
262
|
+
return () => { };
|
|
263
|
+
}
|
|
264
|
+
function ApiMisdirectedResponse() {
|
|
265
|
+
return () => { };
|
|
266
|
+
}
|
|
267
|
+
function ApiUnprocessableEntityResponse() {
|
|
268
|
+
return () => { };
|
|
269
|
+
}
|
|
270
|
+
function ApiFailedDependencyResponse() {
|
|
271
|
+
return () => { };
|
|
272
|
+
}
|
|
273
|
+
function ApiPreconditionRequiredResponse() {
|
|
274
|
+
return () => { };
|
|
275
|
+
}
|
|
276
|
+
function ApiTooManyRequestsResponse() {
|
|
277
|
+
return () => { };
|
|
278
|
+
}
|
|
279
|
+
function ApiInternalServerErrorResponse() {
|
|
280
|
+
return () => { };
|
|
281
|
+
}
|
|
282
|
+
function ApiNotImplementedResponse() {
|
|
283
|
+
return () => { };
|
|
284
|
+
}
|
|
285
|
+
function ApiBadGatewayResponse() {
|
|
286
|
+
return () => { };
|
|
287
|
+
}
|
|
288
|
+
function ApiServiceUnavailableResponse() {
|
|
289
|
+
return () => { };
|
|
290
|
+
}
|
|
291
|
+
function ApiGatewayTimeoutResponse() {
|
|
292
|
+
return () => { };
|
|
293
|
+
}
|
|
294
|
+
function ApiHttpVersionNotSupportedResponse() {
|
|
295
|
+
return () => { };
|
|
296
|
+
}
|
|
297
|
+
function ApiDefaultResponse() {
|
|
298
|
+
return () => { };
|
|
299
|
+
}
|
|
300
|
+
function ApiSchema() {
|
|
301
|
+
return () => { };
|
|
302
|
+
}
|
|
303
|
+
function ApiSecurity() {
|
|
304
|
+
return () => { };
|
|
305
|
+
}
|
|
306
|
+
function ApiSecurityDeviceFlow() {
|
|
307
|
+
return () => { };
|
|
308
|
+
}
|
|
309
|
+
function ApiTags() {
|
|
310
|
+
return () => { };
|
|
311
|
+
}
|
|
312
|
+
function ApiTagGroup() {
|
|
313
|
+
return () => { };
|
|
314
|
+
}
|
|
315
|
+
function ApiCallbacks() {
|
|
316
|
+
return () => { };
|
|
317
|
+
}
|
|
318
|
+
function ApiQueryMethod() {
|
|
319
|
+
return () => { };
|
|
320
|
+
}
|
|
321
|
+
function ApiStreamingResponse() {
|
|
322
|
+
return () => { };
|
|
323
|
+
}
|
|
324
|
+
function ApiLink() {
|
|
325
|
+
return () => { };
|
|
326
|
+
}
|
|
327
|
+
function ApiDefaultGetter() {
|
|
328
|
+
return () => { };
|
|
329
|
+
}
|
|
330
|
+
function ApiExtension() {
|
|
331
|
+
return () => { };
|
|
332
|
+
}
|
|
333
|
+
function DocumentBuilder() {
|
|
334
|
+
return () => { };
|
|
335
|
+
}
|
|
336
|
+
function SwaggerModule() {
|
|
337
|
+
return () => { };
|
|
338
|
+
}
|
|
339
|
+
function IntersectionType() {
|
|
340
|
+
return class {
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
function OmitType() {
|
|
344
|
+
return class {
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
function PartialType() {
|
|
348
|
+
return class {
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
function PickType() {
|
|
352
|
+
return class {
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
function getSchemaPath() {
|
|
356
|
+
return () => '';
|
|
357
|
+
}
|
|
358
|
+
function refs() {
|
|
359
|
+
return [];
|
|
360
|
+
}
|
|
361
|
+
function before() {
|
|
362
|
+
return () => '';
|
|
363
|
+
}
|
|
364
|
+
function ReadonlyVisitor() {
|
|
365
|
+
return class {
|
|
366
|
+
};
|
|
367
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildDocumentBase = void 0;
|
|
4
|
+
const buildDocumentBase = () => ({
|
|
5
|
+
openapi: '3.0.0',
|
|
6
|
+
info: {
|
|
7
|
+
title: '',
|
|
8
|
+
description: '',
|
|
9
|
+
version: '1.0.0',
|
|
10
|
+
contact: {}
|
|
11
|
+
},
|
|
12
|
+
tags: [],
|
|
13
|
+
servers: [],
|
|
14
|
+
components: {}
|
|
15
|
+
});
|
|
16
|
+
exports.buildDocumentBase = buildDocumentBase;
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
require("reflect-metadata");
|
|
18
|
+
__exportStar(require("./decorators"), exports);
|
|
19
|
+
__exportStar(require("./document-builder"), exports);
|
|
20
|
+
__exportStar(require("./interfaces"), exports);
|
|
21
|
+
__exportStar(require("./swagger-module"), exports);
|
|
22
|
+
__exportStar(require("./type-helpers"), exports);
|
|
23
|
+
__exportStar(require("./utils"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./swagger-custom-options.interface"), exports);
|
|
18
|
+
__exportStar(require("./swagger-document-options.interface"), exports);
|