import { ICronJobsEntity } from "../cron_jobs.entity.interface"; import { IEntityAuditColumn } from "../entity-audit-columns.interface"; import { IFieldMinMaxConstraint } from "./utils"; /** * excluded, and why: * - "job", "status" enums, they carry no min/max * - "startTime", "endTime" datetime columns, they carry no length * - "id", keyof IEntityAuditColumn generated columns * * there is no CronJobsCreateDto / CronJobsUpdateDto in the backend — rows are written by the cron * runner itself — so every bound below comes from the column definition alone */ export type ICronJobsFieldLengthConstraintsExclude = "id" | "job" | "status" | "startTime" | "endTime" | 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 ICronJobsFieldMinMaxConstraints = { [K in keyof Omit]-?: IFieldMinMaxConstraint; }; export declare const cronJobsFieldMinMaxConstraints: ICronJobsFieldMinMaxConstraints;