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,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exploreApiExcludeEndpointMetadata = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
const exploreApiExcludeEndpointMetadata = (instance, prototype, method) => Reflect.getMetadata(constants_1.DECORATORS.API_EXCLUDE_ENDPOINT, method);
|
|
6
|
+
exports.exploreApiExcludeEndpointMetadata = exploreApiExcludeEndpointMetadata;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exploreApiExtraModelsMetadata = exports.exploreGlobalApiExtraModelsMetadata = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
const exploreGlobalApiExtraModelsMetadata = (metatype) => {
|
|
6
|
+
const extraModels = Reflect.getMetadata(constants_1.DECORATORS.API_EXTRA_MODELS, metatype);
|
|
7
|
+
return extraModels || [];
|
|
8
|
+
};
|
|
9
|
+
exports.exploreGlobalApiExtraModelsMetadata = exploreGlobalApiExtraModelsMetadata;
|
|
10
|
+
const exploreApiExtraModelsMetadata = (instance, prototype, method) => Reflect.getMetadata(constants_1.DECORATORS.API_EXTRA_MODELS, method) || [];
|
|
11
|
+
exports.exploreApiExtraModelsMetadata = exploreApiExtraModelsMetadata;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exploreGlobalApiHeaderMetadata = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
const exploreGlobalApiHeaderMetadata = (metatype) => {
|
|
6
|
+
const headers = Reflect.getMetadata(constants_1.DECORATORS.API_HEADERS, metatype);
|
|
7
|
+
return headers ? { root: { parameters: headers }, depth: 1 } : undefined;
|
|
8
|
+
};
|
|
9
|
+
exports.exploreGlobalApiHeaderMetadata = exploreGlobalApiHeaderMetadata;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exploreApiOperationMetadata = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
const api_operation_decorator_1 = require("../decorators/api-operation.decorator");
|
|
6
|
+
const plugin_constants_1 = require("../plugin/plugin-constants");
|
|
7
|
+
const exploreApiOperationMetadata = (instance, prototype, method) => {
|
|
8
|
+
applyMetadataFactory(prototype, instance);
|
|
9
|
+
return Reflect.getMetadata(constants_1.DECORATORS.API_OPERATION, method);
|
|
10
|
+
};
|
|
11
|
+
exports.exploreApiOperationMetadata = exploreApiOperationMetadata;
|
|
12
|
+
function applyMetadataFactory(prototype, instance) {
|
|
13
|
+
const classPrototype = prototype;
|
|
14
|
+
do {
|
|
15
|
+
if (!prototype.constructor) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (!prototype.constructor[plugin_constants_1.METADATA_FACTORY_NAME]) {
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
const metadata = prototype.constructor[plugin_constants_1.METADATA_FACTORY_NAME]();
|
|
22
|
+
const methodKeys = Object.keys(metadata).filter((key) => typeof instance[key] === 'function');
|
|
23
|
+
methodKeys.forEach((key) => {
|
|
24
|
+
const operationMeta = {};
|
|
25
|
+
const { summary, deprecated, tags, description } = metadata[key];
|
|
26
|
+
applyIfNotNil(operationMeta, 'summary', summary);
|
|
27
|
+
applyIfNotNil(operationMeta, 'deprecated', deprecated);
|
|
28
|
+
applyIfNotNil(operationMeta, 'tags', tags);
|
|
29
|
+
applyIfNotNil(operationMeta, 'description', description);
|
|
30
|
+
if (Object.keys(operationMeta).length === 0) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
(0, api_operation_decorator_1.ApiOperation)(operationMeta, { overrideExisting: false })(classPrototype, key, Object.getOwnPropertyDescriptor(classPrototype, key));
|
|
34
|
+
});
|
|
35
|
+
} while ((prototype = Reflect.getPrototypeOf(prototype)) &&
|
|
36
|
+
prototype !== Object.prototype &&
|
|
37
|
+
prototype);
|
|
38
|
+
}
|
|
39
|
+
function applyIfNotNil(target, key, value) {
|
|
40
|
+
if (value !== undefined && value !== null) {
|
|
41
|
+
target[key] = value;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Type } from '@nestjs/common';
|
|
2
|
+
import { SchemaObject } from '../interfaces/open-api-spec.interface';
|
|
3
|
+
import { ParamWithTypeMetadata } from '../services/parameter-metadata-accessor';
|
|
4
|
+
export declare const exploreApiParametersMetadata: (schemas: Record<string, SchemaObject>, instance: object, prototype: Type<unknown>, method: Function) => {
|
|
5
|
+
parameters: (Partial<import("../interfaces/open-api-spec.interface").BaseParameterObject> | Partial<ParamWithTypeMetadata> | {
|
|
6
|
+
schema: {
|
|
7
|
+
type: string;
|
|
8
|
+
items: any;
|
|
9
|
+
nullable?: boolean;
|
|
10
|
+
discriminator?: import("../interfaces/open-api-spec.interface").DiscriminatorObject;
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
writeOnly?: boolean;
|
|
13
|
+
xml?: import("../interfaces/open-api-spec.interface").XmlObject;
|
|
14
|
+
externalDocs?: import("../interfaces/open-api-spec.interface").ExternalDocumentationObject;
|
|
15
|
+
example?: any;
|
|
16
|
+
examples?: any[] | Record<string, any>;
|
|
17
|
+
deprecated?: boolean;
|
|
18
|
+
allOf?: (SchemaObject | import("../interfaces/open-api-spec.interface").ReferenceObject)[];
|
|
19
|
+
oneOf?: (SchemaObject | import("../interfaces/open-api-spec.interface").ReferenceObject)[];
|
|
20
|
+
anyOf?: (SchemaObject | import("../interfaces/open-api-spec.interface").ReferenceObject)[];
|
|
21
|
+
not?: SchemaObject | import("../interfaces/open-api-spec.interface").ReferenceObject;
|
|
22
|
+
properties?: Record<string, SchemaObject | import("../interfaces/open-api-spec.interface").ReferenceObject>;
|
|
23
|
+
additionalProperties?: SchemaObject | import("../interfaces/open-api-spec.interface").ReferenceObject | boolean;
|
|
24
|
+
patternProperties?: Record<string, SchemaObject | import("../interfaces/open-api-spec.interface").ReferenceObject> | undefined;
|
|
25
|
+
description?: string;
|
|
26
|
+
format?: string;
|
|
27
|
+
default?: any;
|
|
28
|
+
title?: string;
|
|
29
|
+
multipleOf?: number;
|
|
30
|
+
maximum?: number;
|
|
31
|
+
exclusiveMaximum?: boolean;
|
|
32
|
+
minimum?: number;
|
|
33
|
+
exclusiveMinimum?: boolean;
|
|
34
|
+
maxLength?: number;
|
|
35
|
+
minLength?: number;
|
|
36
|
+
pattern?: string;
|
|
37
|
+
maxItems?: number;
|
|
38
|
+
minItems?: number;
|
|
39
|
+
uniqueItems?: boolean;
|
|
40
|
+
maxProperties?: number;
|
|
41
|
+
minProperties?: number;
|
|
42
|
+
required?: string[];
|
|
43
|
+
enum?: any[];
|
|
44
|
+
'x-enumNames'?: string[];
|
|
45
|
+
};
|
|
46
|
+
} | {
|
|
47
|
+
schema: import("lodash").Dictionary<any>;
|
|
48
|
+
description?: string;
|
|
49
|
+
required?: boolean;
|
|
50
|
+
deprecated?: boolean;
|
|
51
|
+
allowEmptyValue?: boolean;
|
|
52
|
+
style?: import("../interfaces/open-api-spec.interface").ParameterStyle;
|
|
53
|
+
explode?: boolean;
|
|
54
|
+
allowReserved?: boolean;
|
|
55
|
+
examples?: Record<string, import("../interfaces/open-api-spec.interface").ExampleObject | import("../interfaces/open-api-spec.interface").ReferenceObject>;
|
|
56
|
+
example?: any;
|
|
57
|
+
content?: import("../interfaces/open-api-spec.interface").ContentObject;
|
|
58
|
+
} | {
|
|
59
|
+
schema: import("lodash").Dictionary<any>;
|
|
60
|
+
name?: string | number | object;
|
|
61
|
+
type?: Type<unknown>;
|
|
62
|
+
in?: import("../interfaces/open-api-spec.interface").ParameterLocation | "body" | "placeholder";
|
|
63
|
+
isArray?: boolean;
|
|
64
|
+
items?: SchemaObject;
|
|
65
|
+
required?: boolean;
|
|
66
|
+
enum?: unknown[];
|
|
67
|
+
enumName?: string;
|
|
68
|
+
enumSchema?: import("../interfaces/enum-schema-attributes.interface").EnumSchemaAttributes;
|
|
69
|
+
selfRequired?: boolean;
|
|
70
|
+
})[];
|
|
71
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exploreApiParametersMetadata = void 0;
|
|
4
|
+
const lodash_1 = require("lodash");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
|
+
const model_properties_accessor_1 = require("../services/model-properties-accessor");
|
|
7
|
+
const parameter_metadata_accessor_1 = require("../services/parameter-metadata-accessor");
|
|
8
|
+
const parameters_metadata_mapper_1 = require("../services/parameters-metadata-mapper");
|
|
9
|
+
const schema_object_factory_1 = require("../services/schema-object-factory");
|
|
10
|
+
const swagger_types_mapper_1 = require("../services/swagger-types-mapper");
|
|
11
|
+
const global_parameters_storage_1 = require("../storages/global-parameters.storage");
|
|
12
|
+
const parameterMetadataAccessor = new parameter_metadata_accessor_1.ParameterMetadataAccessor();
|
|
13
|
+
const modelPropertiesAccessor = new model_properties_accessor_1.ModelPropertiesAccessor();
|
|
14
|
+
const parametersMetadataMapper = new parameters_metadata_mapper_1.ParametersMetadataMapper(modelPropertiesAccessor);
|
|
15
|
+
const swaggerTypesMapper = new swagger_types_mapper_1.SwaggerTypesMapper();
|
|
16
|
+
const schemaObjectFactory = new schema_object_factory_1.SchemaObjectFactory(modelPropertiesAccessor, swaggerTypesMapper);
|
|
17
|
+
const exploreApiParametersMetadata = (schemas, instance, prototype, method) => {
|
|
18
|
+
const explicitParameters = Reflect.getMetadata(constants_1.DECORATORS.API_PARAMETERS, method);
|
|
19
|
+
const globalParameters = global_parameters_storage_1.GlobalParametersStorage.getAll();
|
|
20
|
+
const parametersMetadata = parameterMetadataAccessor.explore(instance, prototype, method);
|
|
21
|
+
const noExplicitAndGlobalMetadata = (0, lodash_1.isNil)(explicitParameters) && (0, lodash_1.isNil)(globalParameters);
|
|
22
|
+
if (noExplicitAndGlobalMetadata && (0, lodash_1.isNil)(parametersMetadata)) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
const reflectedParametersAsProperties = parametersMetadataMapper.transformModelToProperties(parametersMetadata || {});
|
|
26
|
+
let properties = reflectedParametersAsProperties;
|
|
27
|
+
if (!noExplicitAndGlobalMetadata) {
|
|
28
|
+
const mergeImplicitAndExplicit = (item) => (0, lodash_1.assign)(item, (0, lodash_1.find)(explicitParameters, ['name', item.name]));
|
|
29
|
+
properties = removeBodyMetadataIfExplicitExists(properties, explicitParameters);
|
|
30
|
+
properties = (0, lodash_1.map)(properties, mergeImplicitAndExplicit);
|
|
31
|
+
properties = (0, lodash_1.unionWith)(properties, explicitParameters, globalParameters, (arrVal, othVal) => {
|
|
32
|
+
return arrVal.name === othVal.name && arrVal.in === othVal.in;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
const paramsWithDefinitions = schemaObjectFactory.createFromModel(properties, schemas);
|
|
36
|
+
const parameters = swaggerTypesMapper.mapParamTypes(paramsWithDefinitions);
|
|
37
|
+
return parameters ? { parameters } : undefined;
|
|
38
|
+
};
|
|
39
|
+
exports.exploreApiParametersMetadata = exploreApiParametersMetadata;
|
|
40
|
+
function removeBodyMetadataIfExplicitExists(properties, explicitParams) {
|
|
41
|
+
const isBodyReflected = (0, lodash_1.some)(properties, (p) => p.in === 'body');
|
|
42
|
+
const isBodyDefinedExplicitly = (0, lodash_1.some)(explicitParams, (p) => p.in === 'body');
|
|
43
|
+
if (isBodyReflected && isBodyDefinedExplicitly) {
|
|
44
|
+
return (0, lodash_1.omitBy)(properties, (p) => p.in === 'body');
|
|
45
|
+
}
|
|
46
|
+
return properties;
|
|
47
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exploreApiProducesMetadata = exports.exploreGlobalApiProducesMetadata = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
const exploreGlobalApiProducesMetadata = (metatype) => {
|
|
6
|
+
const produces = Reflect.getMetadata(constants_1.DECORATORS.API_PRODUCES, metatype);
|
|
7
|
+
return produces ? { produces } : undefined;
|
|
8
|
+
};
|
|
9
|
+
exports.exploreGlobalApiProducesMetadata = exploreGlobalApiProducesMetadata;
|
|
10
|
+
const exploreApiProducesMetadata = (instance, prototype, method) => Reflect.getMetadata(constants_1.DECORATORS.API_PRODUCES, method);
|
|
11
|
+
exports.exploreApiProducesMetadata = exploreApiProducesMetadata;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Type } from '@nestjs/common';
|
|
2
|
+
import { SchemaObject } from '../interfaces/open-api-spec.interface';
|
|
3
|
+
import { FactoriesNeededByResponseFactory } from '../services/response-object-factory';
|
|
4
|
+
export declare const exploreGlobalApiResponseMetadata: (schemas: Record<string, SchemaObject>, metatype: Type<unknown>, factories: FactoriesNeededByResponseFactory) => {
|
|
5
|
+
responses: {
|
|
6
|
+
[x: string]: boolean;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const exploreApiResponseMetadata: (schemas: Record<string, SchemaObject>, factories: FactoriesNeededByResponseFactory, instance: object, prototype: Type<unknown>, method: Function) => import("lodash").Dictionary<boolean> | {
|
|
10
|
+
[status]: {
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.exploreApiResponseMetadata = exports.exploreGlobalApiResponseMetadata = void 0;
|
|
15
|
+
const common_1 = require("@nestjs/common");
|
|
16
|
+
const constants_1 = require("@nestjs/common/constants");
|
|
17
|
+
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
18
|
+
const lodash_1 = require("lodash");
|
|
19
|
+
const constants_2 = require("../constants");
|
|
20
|
+
const decorators_1 = require("../decorators");
|
|
21
|
+
const plugin_constants_1 = require("../plugin/plugin-constants");
|
|
22
|
+
const response_object_factory_1 = require("../services/response-object-factory");
|
|
23
|
+
const global_responses_storage_1 = require("../storages/global-responses.storage");
|
|
24
|
+
const merge_and_uniq_util_1 = require("../utils/merge-and-uniq.util");
|
|
25
|
+
const responseObjectFactory = new response_object_factory_1.ResponseObjectFactory();
|
|
26
|
+
const exploreGlobalApiResponseMetadata = (schemas, metatype, factories) => {
|
|
27
|
+
const responses = Reflect.getMetadata(constants_2.DECORATORS.API_RESPONSE, metatype);
|
|
28
|
+
const globalResponses = global_responses_storage_1.GlobalResponsesStorage.getAll();
|
|
29
|
+
const mappedGlobalResponsesOrUndefined = globalResponses
|
|
30
|
+
? mapResponsesToSwaggerResponses(globalResponses, schemas, undefined, factories)
|
|
31
|
+
: undefined;
|
|
32
|
+
const produces = Reflect.getMetadata(constants_2.DECORATORS.API_PRODUCES, metatype);
|
|
33
|
+
return responses
|
|
34
|
+
? {
|
|
35
|
+
responses: Object.assign(Object.assign({}, mappedGlobalResponsesOrUndefined), mapResponsesToSwaggerResponses(responses, schemas, produces, factories))
|
|
36
|
+
}
|
|
37
|
+
: mappedGlobalResponsesOrUndefined
|
|
38
|
+
? {
|
|
39
|
+
responses: mappedGlobalResponsesOrUndefined
|
|
40
|
+
}
|
|
41
|
+
: undefined;
|
|
42
|
+
};
|
|
43
|
+
exports.exploreGlobalApiResponseMetadata = exploreGlobalApiResponseMetadata;
|
|
44
|
+
const exploreApiResponseMetadata = (schemas, factories, instance, prototype, method) => {
|
|
45
|
+
applyMetadataFactory(prototype, instance);
|
|
46
|
+
const responses = Reflect.getMetadata(constants_2.DECORATORS.API_RESPONSE, method);
|
|
47
|
+
if (responses) {
|
|
48
|
+
const classProduces = Reflect.getMetadata(constants_2.DECORATORS.API_PRODUCES, prototype);
|
|
49
|
+
const methodProduces = Reflect.getMetadata(constants_2.DECORATORS.API_PRODUCES, method);
|
|
50
|
+
const produces = (0, merge_and_uniq_util_1.mergeAndUniq)((0, lodash_1.get)(classProduces, 'produces'), methodProduces);
|
|
51
|
+
return mapResponsesToSwaggerResponses(responses, schemas, produces, factories);
|
|
52
|
+
}
|
|
53
|
+
const status = getStatusCode(method);
|
|
54
|
+
if (status) {
|
|
55
|
+
return { [status]: { description: '' } };
|
|
56
|
+
}
|
|
57
|
+
return undefined;
|
|
58
|
+
};
|
|
59
|
+
exports.exploreApiResponseMetadata = exploreApiResponseMetadata;
|
|
60
|
+
const getStatusCode = (method) => {
|
|
61
|
+
const status = Reflect.getMetadata(constants_1.HTTP_CODE_METADATA, method);
|
|
62
|
+
if (status) {
|
|
63
|
+
return status;
|
|
64
|
+
}
|
|
65
|
+
const requestMethod = Reflect.getMetadata(constants_1.METHOD_METADATA, method);
|
|
66
|
+
switch (requestMethod) {
|
|
67
|
+
case common_1.RequestMethod.POST:
|
|
68
|
+
return common_1.HttpStatus.CREATED;
|
|
69
|
+
default:
|
|
70
|
+
return common_1.HttpStatus.OK;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const omitParamType = (param) => (0, lodash_1.omit)(param, 'type');
|
|
74
|
+
const mapResponsesToSwaggerResponses = (responses, schemas, produces = ['application/json'], factories) => {
|
|
75
|
+
produces = (0, shared_utils_1.isEmpty)(produces) ? ['application/json'] : produces;
|
|
76
|
+
const openApiResponses = (0, lodash_1.mapValues)(responses, (response) => responseObjectFactory.create(response, produces, schemas, factories));
|
|
77
|
+
return (0, lodash_1.mapValues)(openApiResponses, omitParamType);
|
|
78
|
+
};
|
|
79
|
+
function applyMetadataFactory(prototype, instance) {
|
|
80
|
+
const classPrototype = prototype;
|
|
81
|
+
do {
|
|
82
|
+
if (!prototype.constructor) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (!prototype.constructor[plugin_constants_1.METADATA_FACTORY_NAME]) {
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
const metadata = prototype.constructor[plugin_constants_1.METADATA_FACTORY_NAME]();
|
|
89
|
+
const methodKeys = Object.keys(metadata).filter((key) => typeof instance[key] === 'function');
|
|
90
|
+
methodKeys.forEach((key) => {
|
|
91
|
+
const _a = metadata[key], { summary, deprecated, tags } = _a, meta = __rest(_a, ["summary", "deprecated", "tags"]);
|
|
92
|
+
if (Object.keys(meta).length === 0) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (meta.status === undefined) {
|
|
96
|
+
meta.status = getStatusCode(instance[key]);
|
|
97
|
+
}
|
|
98
|
+
(0, decorators_1.ApiResponse)(meta, { overrideExisting: false })(classPrototype, key, Object.getOwnPropertyDescriptor(classPrototype, key));
|
|
99
|
+
});
|
|
100
|
+
} while ((prototype = Reflect.getPrototypeOf(prototype)) &&
|
|
101
|
+
prototype !== Object.prototype &&
|
|
102
|
+
prototype);
|
|
103
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exploreApiSecurityMetadata = exports.exploreGlobalApiSecurityMetadata = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
const exploreGlobalApiSecurityMetadata = (metatype) => {
|
|
6
|
+
const security = Reflect.getMetadata(constants_1.DECORATORS.API_SECURITY, metatype);
|
|
7
|
+
return security ? { security } : undefined;
|
|
8
|
+
};
|
|
9
|
+
exports.exploreGlobalApiSecurityMetadata = exploreGlobalApiSecurityMetadata;
|
|
10
|
+
const exploreApiSecurityMetadata = (instance, prototype, method) => {
|
|
11
|
+
return Reflect.getMetadata(constants_1.DECORATORS.API_SECURITY, method);
|
|
12
|
+
};
|
|
13
|
+
exports.exploreApiSecurityMetadata = exploreApiSecurityMetadata;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Type } from '@nestjs/common';
|
|
2
|
+
export declare const exploreGlobalApiTagsMetadata: (autoTagControllers?: boolean) => (metatype: Type<unknown>) => {
|
|
3
|
+
tags: any;
|
|
4
|
+
};
|
|
5
|
+
export declare const exploreApiTagsMetadata: (instance: object, prototype: Type<unknown>, method: object) => any;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exploreApiTagsMetadata = exports.exploreGlobalApiTagsMetadata = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
const exploreGlobalApiTagsMetadata = (autoTagControllers) => (metatype) => {
|
|
6
|
+
const decoratorTags = Reflect.getMetadata(constants_1.DECORATORS.API_TAGS, metatype);
|
|
7
|
+
const isEmpty = !decoratorTags || decoratorTags.length === 0;
|
|
8
|
+
if (isEmpty && autoTagControllers) {
|
|
9
|
+
const defaultTag = metatype.name.replace(/Controller$/, '');
|
|
10
|
+
return {
|
|
11
|
+
tags: [defaultTag]
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return isEmpty ? undefined : { tags: decoratorTags };
|
|
15
|
+
};
|
|
16
|
+
exports.exploreGlobalApiTagsMetadata = exploreGlobalApiTagsMetadata;
|
|
17
|
+
const exploreApiTagsMetadata = (instance, prototype, method) => Reflect.getMetadata(constants_1.DECORATORS.API_TAGS, method);
|
|
18
|
+
exports.exploreApiTagsMetadata = exploreApiTagsMetadata;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export declare function ApiProperty(): () => void;
|
|
2
|
+
export declare function ApiPropertyOptional(): () => void;
|
|
3
|
+
export declare function ApiResponseProperty(): () => void;
|
|
4
|
+
export declare function ApiBasicAuth(): () => void;
|
|
5
|
+
export declare function ApiBearerAuth(): () => void;
|
|
6
|
+
export declare function ApiBody(): () => void;
|
|
7
|
+
export declare function ApiConsumes(): () => void;
|
|
8
|
+
export declare function ApiCookieAuth(): () => void;
|
|
9
|
+
export declare function ApiExcludeEndpoint(): () => void;
|
|
10
|
+
export declare function ApiExcludeController(): () => void;
|
|
11
|
+
export declare function ApiExtraModels(): () => void;
|
|
12
|
+
export declare function ApiHeader(): () => void;
|
|
13
|
+
export declare function ApiHeaders(): () => void;
|
|
14
|
+
export declare function ApiHideProperty(): () => void;
|
|
15
|
+
export declare function ApiOAuth2(): () => void;
|
|
16
|
+
export declare function ApiOperation(): () => void;
|
|
17
|
+
export declare function ApiParam(): () => void;
|
|
18
|
+
export declare function ApiProduces(): () => void;
|
|
19
|
+
export declare function ApiQuery(): () => void;
|
|
20
|
+
export declare function ApiResponse(): () => void;
|
|
21
|
+
export declare function ApiContinueResponse(): () => void;
|
|
22
|
+
export declare function ApiSwitchingProtocolsResponse(): () => void;
|
|
23
|
+
export declare function ApiProcessingResponse(): () => void;
|
|
24
|
+
export declare function ApiEarlyhintsResponse(): () => void;
|
|
25
|
+
export declare function ApiOkResponse(): () => void;
|
|
26
|
+
export declare function ApiCreatedResponse(): () => void;
|
|
27
|
+
export declare function ApiAcceptedResponse(): () => void;
|
|
28
|
+
export declare function ApiNonAuthoritativeInformationResponse(): () => void;
|
|
29
|
+
export declare function ApiNoContentResponse(): () => void;
|
|
30
|
+
export declare function ApiResetContentResponse(): () => void;
|
|
31
|
+
export declare function ApiPartialContentResponse(): () => void;
|
|
32
|
+
export declare function ApiAmbiguousResponse(): () => void;
|
|
33
|
+
export declare function ApiMovedPermanentlyResponse(): () => void;
|
|
34
|
+
export declare function ApiFoundResponse(): () => void;
|
|
35
|
+
export declare function ApiSeeOtherResponse(): () => void;
|
|
36
|
+
export declare function ApiNotModifiedResponse(): () => void;
|
|
37
|
+
export declare function ApiTemporaryRedirectResponse(): () => void;
|
|
38
|
+
export declare function ApiPermanentRedirectResponse(): () => void;
|
|
39
|
+
export declare function ApiBadRequestResponse(): () => void;
|
|
40
|
+
export declare function ApiUnauthorizedResponse(): () => void;
|
|
41
|
+
export declare function ApiPaymentRequiredResponse(): () => void;
|
|
42
|
+
export declare function ApiForbiddenResponse(): () => void;
|
|
43
|
+
export declare function ApiNotFoundResponse(): () => void;
|
|
44
|
+
export declare function ApiMethodNotAllowedResponse(): () => void;
|
|
45
|
+
export declare function ApiNotAcceptableResponse(): () => void;
|
|
46
|
+
export declare function ApiProxyAuthenticationRequiredResponse(): () => void;
|
|
47
|
+
export declare function ApiRequestTimeoutResponse(): () => void;
|
|
48
|
+
export declare function ApiConflictResponse(): () => void;
|
|
49
|
+
export declare function ApiGoneResponse(): () => void;
|
|
50
|
+
export declare function ApiLengthRequiredResponse(): () => void;
|
|
51
|
+
export declare function ApiPreconditionFailedResponse(): () => void;
|
|
52
|
+
export declare function ApiPayloadTooLargeResponse(): () => void;
|
|
53
|
+
export declare function ApiUriTooLongResponse(): () => void;
|
|
54
|
+
export declare function ApiUnsupportedMediaTypeResponse(): () => void;
|
|
55
|
+
export declare function ApiRequestedRangeNotSatisfiableResponse(): () => void;
|
|
56
|
+
export declare function ApiExpectationFailedResponse(): () => void;
|
|
57
|
+
export declare function ApiIAmATeapotResponse(): () => void;
|
|
58
|
+
export declare function ApiMisdirectedResponse(): () => void;
|
|
59
|
+
export declare function ApiUnprocessableEntityResponse(): () => void;
|
|
60
|
+
export declare function ApiFailedDependencyResponse(): () => void;
|
|
61
|
+
export declare function ApiPreconditionRequiredResponse(): () => void;
|
|
62
|
+
export declare function ApiTooManyRequestsResponse(): () => void;
|
|
63
|
+
export declare function ApiInternalServerErrorResponse(): () => void;
|
|
64
|
+
export declare function ApiNotImplementedResponse(): () => void;
|
|
65
|
+
export declare function ApiBadGatewayResponse(): () => void;
|
|
66
|
+
export declare function ApiServiceUnavailableResponse(): () => void;
|
|
67
|
+
export declare function ApiGatewayTimeoutResponse(): () => void;
|
|
68
|
+
export declare function ApiHttpVersionNotSupportedResponse(): () => void;
|
|
69
|
+
export declare function ApiDefaultResponse(): () => void;
|
|
70
|
+
export declare function ApiSchema(): () => void;
|
|
71
|
+
export declare function ApiSecurity(): () => void;
|
|
72
|
+
export declare function ApiSecurityDeviceFlow(): () => void;
|
|
73
|
+
export declare function ApiTags(): () => void;
|
|
74
|
+
export declare function ApiTagGroup(): () => void;
|
|
75
|
+
export declare function ApiCallbacks(): () => void;
|
|
76
|
+
export declare function ApiQueryMethod(): () => void;
|
|
77
|
+
export declare function ApiStreamingResponse(): () => void;
|
|
78
|
+
export declare function ApiLink(): () => void;
|
|
79
|
+
export declare function ApiDefaultGetter(): () => void;
|
|
80
|
+
export declare function ApiExtension(): () => void;
|
|
81
|
+
export declare function DocumentBuilder(): () => void;
|
|
82
|
+
export declare function SwaggerModule(): () => void;
|
|
83
|
+
export declare function IntersectionType(): {
|
|
84
|
+
new (): {};
|
|
85
|
+
};
|
|
86
|
+
export declare function OmitType(): {
|
|
87
|
+
new (): {};
|
|
88
|
+
};
|
|
89
|
+
export declare function PartialType(): {
|
|
90
|
+
new (): {};
|
|
91
|
+
};
|
|
92
|
+
export declare function PickType(): {
|
|
93
|
+
new (): {};
|
|
94
|
+
};
|
|
95
|
+
export declare function getSchemaPath(): () => string;
|
|
96
|
+
export declare function refs(): any[];
|
|
97
|
+
export declare function before(): () => string;
|
|
98
|
+
export declare function ReadonlyVisitor(): {
|
|
99
|
+
new (): {};
|
|
100
|
+
};
|