import { IClientUserMappingEntity } from "../client_user_mapping.entity.interface"; import { IEntityAuditColumn } from "../entity-audit-columns.interface"; import { IFieldMinMaxConstraint } from "./utils"; /** * excluded, and why: * - "id", keyof IEntityAuditColumn generated columns * * a join table of two int foreign keys and nothing else. Both client_user_mapping.create.dto.ts and * client_user_mapping.update.dto.ts are commented out in full, so both bounds come from the column * definitions */ export type IClientUserMappingFieldLengthConstraintsExclude = "id" | 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 IClientUserMappingFieldMinMaxConstraints = { [K in keyof Omit]-?: IFieldMinMaxConstraint; }; export declare const clientUserMappingFieldMinMaxConstraints: IClientUserMappingFieldMinMaxConstraints;