UNPKG

nestjs-prisma-base

Version:

A comprehensive NestJS package providing base classes, utilities, and decorators for building CRUD APIs with Prisma ORM integration, featuring pagination, search, filtering, relation loading, configurable DTOs, and modular composition capabilities.

31 lines (30 loc) 1.33 kB
import { SwaggerDTOConfig } from './dto-config.interface'; export declare function configureSwaggerDTOs(config: Partial<SwaggerDTOConfig>): void; export declare function getSwaggerDTOConfig(): SwaggerDTOConfig; export declare class SwaggerBaseCreateDto { protected static swaggerConfig: Partial<SwaggerDTOConfig>; static configureSwagger(config: Partial<SwaggerDTOConfig>): void; static getSwaggerConfig(): SwaggerDTOConfig; } export declare class SwaggerBaseUpdateDto { protected static swaggerConfig: Partial<SwaggerDTOConfig>; static configureSwagger(config: Partial<SwaggerDTOConfig>): void; static getSwaggerConfig(): SwaggerDTOConfig; } export declare class SwaggerBaseResponseDto { protected static swaggerConfig: Partial<SwaggerDTOConfig>; static configureSwagger(config: Partial<SwaggerDTOConfig>): void; static getSwaggerConfig(): SwaggerDTOConfig; id?: number; createdAt?: Date; updatedAt?: Date; message?: string; } export declare function EnableSwaggerBaseFields<T extends { new (...args: any[]): {}; }>(constructor: T): T; export declare function applySwaggerDecoratorsToClass<T extends object>(target: new (...args: any[]) => T, fields: Array<{ propertyKey: string; options?: any; }>): void; export declare function isSwaggerIntegrationEnabled(): boolean;