import { IEntityAuditColumn } from "../entity-audit-columns.interface"; import { IProjectUserMappingEntity } from "../project_user_mapping.entity.interface"; import { IFieldMinMaxConstraint } from "./utils"; /** * excluded, and why: * - "status" enum, it carries no min/max * - "id", keyof IEntityAuditColumn generated columns * * a join table of two int foreign keys plus a status. There is no ProjectUserMappingCreateDto or * UpdateDto in the backend, so both bounds come from the column definitions */ export type IProjectUserMappingFieldLengthConstraintsExclude = "id" | "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 IProjectUserMappingFieldMinMaxConstraints = { [K in keyof Omit]-?: IFieldMinMaxConstraint; }; export declare const projectUserMappingFieldMinMaxConstraints: IProjectUserMappingFieldMinMaxConstraints;