1 | import { Controller } from '@nestjs/common/interfaces';
|
2 | import { ApplicationConfig } from '@nestjs/core';
|
3 | import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper';
|
4 | import { DenormalizedDoc } from './interfaces/denormalized-doc.interface';
|
5 | import { SchemaObject } from './interfaces/open-api-spec.interface';
|
6 | import { SchemaObjectFactory } from './services/schema-object-factory';
|
7 | export declare class SwaggerExplorer {
|
8 | private readonly schemaObjectFactory;
|
9 | private readonly mimetypeContentWrapper;
|
10 | private readonly metadataScanner;
|
11 | private readonly schemas;
|
12 | private operationIdFactory;
|
13 | private routePathFactory?;
|
14 | constructor(schemaObjectFactory: SchemaObjectFactory);
|
15 | exploreController(wrapper: InstanceWrapper<Controller>, applicationConfig: ApplicationConfig, modulePath?: string | undefined, globalPrefix?: string | undefined, operationIdFactory?: (controllerKey: string, methodKey: string) => string): DenormalizedDoc[];
|
16 | getSchemas(): Record<string, SchemaObject>;
|
17 | private generateDenormalizedDocument;
|
18 | private exploreGlobalMetadata;
|
19 | private exploreRoutePathAndMethod;
|
20 | private getOperationId;
|
21 | private reflectControllerPath;
|
22 | private validateRoutePath;
|
23 | private mergeMetadata;
|
24 | private deepMergeMetadata;
|
25 | private mergeValues;
|
26 | private migrateOperationSchema;
|
27 | private registerExtraModels;
|
28 | private getVersionMetadata;
|
29 | }
|