mongodb-dynamic-api
Version:
Auto generated CRUD API for MongoDB using NestJS
10 lines (9 loc) • 1.5 kB
TypeScript
import { Type, ValidationPipeOptions } from '@nestjs/common';
import { DynamicApiControllerOptions, DynamicAPIRouteConfig, DynamicApiServiceCallback, DynamicAPIServiceProvider, GatewayOptions } from '../../interfaces';
import { BaseEntity } from '../../models';
import { DuplicateOneControllerConstructor } from './duplicate-one-controller.interface';
import { DuplicateOneGatewayConstructor } from './duplicate-one-gateway.interface';
declare function createDuplicateOneServiceProvider<Entity extends BaseEntity>(entity: Type<Entity>, displayedName: string, version: string | undefined, callback: DynamicApiServiceCallback<Entity> | undefined): DynamicAPIServiceProvider;
declare function createDuplicateOneController<Entity extends BaseEntity>(entity: Type<Entity>, displayedName: string, { useInterceptors, ...controllerOptions }: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): DuplicateOneControllerConstructor<Entity>;
declare function createDuplicateOneGateway<Entity extends BaseEntity>(entity: Type<Entity>, displayedName: string, { useInterceptors, ...controllerOptions }: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions, gatewayOptions?: GatewayOptions): DuplicateOneGatewayConstructor<Entity>;
export { createDuplicateOneController, createDuplicateOneGateway, createDuplicateOneServiceProvider };