import { IEntityAuditColumn } from "../entity-audit-columns.interface"; import { IHolidayEntity } from "../holiday.entity.interface"; import { IFieldMinMaxConstraint } from "./utils"; /** * excluded, and why: * - "id", keyof IEntityAuditColumn generated columns * - "status" enum column driven by the entity flow — bounded by its allowed * values, not by a character length * * HolidayUpdateDto extends PartialType(OmitType(HolidayCreateDto, ...)), so it inherits every * create bound — create and update cannot disagree for this entity */ export type IHolidayFieldLengthConstraintsExclude = "status" | "id" | 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 IHolidayFieldMinMaxConstraints = { [K in keyof Omit]-?: IFieldMinMaxConstraint; }; export declare const holidayFieldMinMaxConstraints: IHolidayFieldMinMaxConstraints;