import { IEntityAuditColumn } from "../entity-audit-columns.interface"; import { IVendorInvoicePaymentEntity } from "../vendor_invoice_payment.entity.interface"; import { IFieldMinMaxConstraint } from "./utils"; /** * excluded, and why: * - "mode", "status" enums, they carry no min/max * - "id", keyof IEntityAuditColumn generated columns * * VendorInvoicePaymentUpdateDto extends PartialType(OmitType(VendorInvoicePaymentCreateDto, ...)), * so it inherits every create bound — create and update cannot disagree for this entity */ export type IVendorInvoicePaymentFieldLengthConstraintsExclude = "id" | "mode" | "status" | 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 IVendorInvoicePaymentFieldMinMaxConstraints = { [K in keyof Omit]-?: IFieldMinMaxConstraint; }; export declare const vendorInvoicePaymentFieldMinMaxConstraints: IVendorInvoicePaymentFieldMinMaxConstraints;