import { IClientAffiliateEntity } from "../client_affiliate.entity.interface"; import { IEntityAuditColumn } from "../entity-audit-columns.interface"; import { IFieldMinMaxConstraint } from "./utils"; /** * excluded, and why: * - "id", keyof IEntityAuditColumn generated columns * - "gstDocument", "panDocument", url fields — bounded by max_size, allowed_file_formats * "tanDocument" and count, not by a character length * * client_affiliate has no status column, so there is nothing status-shaped to exclude here. */ export type IClientAffiliateFieldLengthConstraintsExclude = "status" | "id" | "gstDocument" | "panDocument" | "tanDocument" | 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 IClientAffiliateFieldMinMaxConstraints = { [K in keyof Omit]-?: IFieldMinMaxConstraint; }; export declare const clientAffiliateFieldMinMaxConstraints: IClientAffiliateFieldMinMaxConstraints;