import { IEntityAuditColumn } from "../entity-audit-columns.interface"; import { IOfficeLocationEntity } from "../office_location.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 * * OfficeLocationUpdateDto is a standalone class rather than a PartialType of the create DTO, so the * two can and do disagree — see the note on `address` below */ export type IOfficeLocationFieldLengthConstraintsExclude = "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 IOfficeLocationFieldMinMaxConstraints = { [K in keyof Omit]-?: IFieldMinMaxConstraint; }; export declare const officeLocationFieldMinMaxConstraints: IOfficeLocationFieldMinMaxConstraints;