import { IEntityAuditColumn } from "../entity-audit-columns.interface"; import { IProjectRevenueSplitMappingEntity } from "../project_revenue_split_mapping.entity.interface"; import { IFieldMinMaxConstraint } from "./utils"; /** * excluded, and why: * - "status" enum, it carries no min/max * - "id", keyof IEntityAuditColumn generated columns * * this entity has no CRUD DTO of its own — rows are built from ProjectRevenueSplitDto inside * ProjectEntityCreateDto, so that DTO is the source of the min/max harvested here */ export type IProjectRevenueSplitMappingFieldLengthConstraintsExclude = "id" | "status" | keyof IEntityAuditColumn; /** * since some fields are optional, but we still need their * min & max length constraints, we need to make them required in this type * hence we are using -? to make all properties required in this type */ export type IProjectRevenueSplitMappingFieldMinMaxConstraints = { [K in keyof Omit]-?: IFieldMinMaxConstraint; }; export declare const projectRevenueSplitMappingFieldMinMaxConstraints: IProjectRevenueSplitMappingFieldMinMaxConstraints;