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 { ReplaceOneControllerConstructor } from './replace-one-controller.interface';
import { ReplaceOneGatewayConstructor } from './replace-one-gateway.interface';
declare function createReplaceOneServiceProvider<Entity extends BaseEntity>(entity: Type<Entity>, displayedName: string, version: string | undefined, callback: DynamicApiServiceCallback<Entity> | undefined): DynamicAPIServiceProvider;
declare function createReplaceOneController<Entity extends BaseEntity>(entity: Type<Entity>, displayedName: string, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): ReplaceOneControllerConstructor<Entity>;
declare function createReplaceOneGateway<Entity extends BaseEntity>(entity: Type<Entity>, displayedName: string, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions, gatewayOptions?: GatewayOptions): ReplaceOneGatewayConstructor<Entity>;
export { createReplaceOneController, createReplaceOneGateway, createReplaceOneServiceProvider };