import { IBillingTimesheetEntity } from "../billing_timesheet.entity.interface"; import { IEntityAuditColumn } from "../entity-audit-columns.interface"; import { IFieldMinMaxConstraint } from "./utils"; /** * excluded, and why: * - "impact", "changedStatus" 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 IBillingTimesheetFieldLengthConstraintsExclude = "id" | "impact" | "changedStatus" | "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 IBillingTimesheetFieldMinMaxConstraints = { [K in keyof Omit]-?: IFieldMinMaxConstraint; }; export declare const billingTimesheetFieldMinMaxConstraints: IBillingTimesheetFieldMinMaxConstraints;