UNPKG

mongodb-dynamic-api

Version:

Auto generated CRUD API for MongoDB using NestJS

25 lines (24 loc) 1.03 kB
import { Type } from '@nestjs/common'; import { DynamicApiDecoratorBuilder, RouteType } from '../../interfaces'; import { BaseEntity } from '../../models'; declare class RouteDecoratorsBuilder<Entity extends BaseEntity> implements DynamicApiDecoratorBuilder<Entity> { private readonly routeType; private readonly entity; private readonly subPath; private readonly version; private readonly description; private readonly isPublic; private readonly dTOs; private readonly isArrayResponse; private readonly responseRouteTypeIsArray; private readonly bodyRouteTypeIsOptional; constructor(routeType: RouteType, entity: Type<Entity>, subPath: string | undefined, version: string | undefined, description: string | undefined, isPublic: boolean | undefined, dTOs?: { param?: Type; body?: Type; presenter?: Type; }, isArrayResponse?: boolean); build(): any[]; private getRouteDecorators; private getApiDecorators; } export { RouteDecoratorsBuilder };