import { IEntityAuditColumn } from "../entity-audit-columns.interface"; import { IReimbursementExpenseEntity } from "../reimbursement_expense.entity.interface"; import { IFieldMinMaxConstraint } from "./utils"; /** * excluded, and why: * - "state" enum, it carries no min/max * - "id", keyof IEntityAuditColumn generated columns * * this entity has no CRUD DTO of its own — rows are built from ReimbursementExpenseAllocation * (create) and UpdateReimbursementExpenseAllocation (update), so those are the source of the * min/max harvested here; they declare the same bounds, so create and update cannot disagree */ export type IReimbursementExpenseFieldLengthConstraintsExclude = "id" | "state" | 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 IReimbursementExpenseFieldMinMaxConstraints = { [K in keyof Omit]-?: IFieldMinMaxConstraint; }; export declare const reimbursementExpenseFieldMinMaxConstraints: IReimbursementExpenseFieldMinMaxConstraints;