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