import { IEntityAuditColumn } from "../entity-audit-columns.interface"; import { ITimesheetEntity } from "../timesheet.entity.interface"; import { IFieldMinMaxConstraint } from "./utils"; /** * excluded, and why: * - "status", "classificationStatus" enums, they carry no min/max * - "id", keyof IEntityAuditColumn generated columns * - "dateCode" a datecode held as varchar(32); flagged for an int migration * rather than bounded against a column that is the wrong type */ export type ITimesheetFieldLengthConstraintsExclude = "id" | "status" | "classificationStatus" | "dateCode" | 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 ITimesheetFieldMinMaxConstraints = { [K in keyof Omit]-?: IFieldMinMaxConstraint; }; export declare const timesheetFieldMinMaxConstraints: ITimesheetFieldMinMaxConstraints;