mongodb-dynamic-api
Version:
Auto generated CRUD API for MongoDB using NestJS
10 lines (9 loc) • 1.43 kB
TypeScript
import { Type, ValidationPipeOptions } from '@nestjs/common';
import { DynamicApiControllerOptions, DynamicAPIRouteConfig, DynamicApiServiceCallback, DynamicAPIServiceProvider, GatewayOptions } from '../../interfaces';
import { BaseEntity } from '../../models';
import { CreateManyControllerConstructor } from './create-many-controller.interface';
import { CreateManyGatewayConstructor } from './create-many-gateway.interface';
declare function createCreateManyServiceProvider<Entity extends BaseEntity>(entity: Type<Entity>, displayedName: string, version: string | undefined, callback: DynamicApiServiceCallback<Entity> | undefined): DynamicAPIServiceProvider;
declare function createCreateManyController<Entity extends BaseEntity>(entity: Type<Entity>, displayedName: string, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): CreateManyControllerConstructor<Entity>;
declare function createCreateManyGateway<Entity extends BaseEntity>(entity: Type<Entity>, displayedName: string, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions, gatewayOptions?: GatewayOptions): CreateManyGatewayConstructor<Entity>;
export { createCreateManyController, createCreateManyGateway, createCreateManyServiceProvider };