UNPKG

@weverson_na/prisma-generator-nestjs-dto

Version:

Advanced Prisma Generator with Smart Merge v2: Creates DTO and Entity classes with AST-based preservation, intelligent import management, and modular architecture for NestJS

23 lines (22 loc) 1.11 kB
import { BaseModelParamsComputer } from './base-model-params-computer'; import type { TemplateHelpers } from '../helpers/template-helpers'; import type { EntityParams, Model } from '../types'; import type { FieldProcessingConfig } from './shared'; interface ComputeEntityParamsParam { model: Model; allModels: Model[]; templateHelpers: TemplateHelpers; customDecoratorConfigsPath?: string; } export declare class EntityParamsComputer extends BaseModelParamsComputer { protected customDecoratorConfigsPath?: string | undefined; private fieldConfig; constructor(templateHelpers: TemplateHelpers, customDecoratorConfigsPath?: string | undefined); protected getFieldConfig(): FieldProcessingConfig; computeParams(model: Model, allModels: Model[], _addExposePropertyDecorator?: boolean): EntityParams; private processEntityRelation; private processRelationScalarField; private processEntityDecorators; } export declare const computeEntityParams: ({ model, allModels, templateHelpers, customDecoratorConfigsPath, }: ComputeEntityParamsParam) => EntityParams; export {};