import { IBillingProfileEntity } from "../billing_profile.entity.interface"; import { IEntityAuditColumn } from "../entity-audit-columns.interface"; import { IFieldMinMaxConstraint } from "./utils"; /** * excluded, and why: * - "name", "code", "status" enum columns, enums carry no min/max * - "id", keyof IEntityAuditColumn generated columns * - "logoFilePath" url field, bounded by max_size, allowed_file_formats and count, * not by a character length * * billing_profile is a seeded, read-only master — it has no create or update DTO, so every bound * here comes from the TypeORM entity alone and there is no min to harvest. */ export type IBillingProfileFieldLengthConstraintsExclude = "status" | "id" | "name" | "code" | "logoFilePath" | 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 IBillingProfileFieldMinMaxConstraints = { [K in keyof Omit]-?: IFieldMinMaxConstraint; }; export declare const billingProfileFieldMinMaxConstraints: IBillingProfileFieldMinMaxConstraints;