1 | import { Type } from '@nestjs/common';
|
2 | import { ParameterObject, ReferenceObject, SchemaObject } from '../interfaces/open-api-spec.interface';
|
3 | import { SwaggerEnumType } from '../types/swagger-enum.type';
|
4 | declare type ParameterOptions = Omit<ParameterObject, 'in' | 'schema' | 'name'>;
|
5 | interface ApiQueryMetadata extends ParameterOptions {
|
6 | name?: string;
|
7 | type?: Type<unknown> | Function | [Function] | string;
|
8 | isArray?: boolean;
|
9 | enum?: SwaggerEnumType;
|
10 | enumName?: string;
|
11 | }
|
12 | interface ApiQuerySchemaHost extends ParameterOptions {
|
13 | name?: string;
|
14 | schema: SchemaObject | ReferenceObject;
|
15 | }
|
16 | export declare type ApiQueryOptions = ApiQueryMetadata | ApiQuerySchemaHost;
|
17 | export declare function ApiQuery(options: ApiQueryOptions): MethodDecorator;
|
18 | export {};
|