Type Alias: DurationCheckConfig
type DurationCheckConfig = ZodObject<{
condition_type: ZodLiteral<"DURATION_CHECK">;
end_field: ZodString;
max: ZodOptional<ZodNumber>;
min: ZodOptional<ZodNumber>;
start_field: ZodString;
unit: ZodOptional<ZodString>;
}, $strip>;Defined in: shared/rules/types/conditions.ts:207
Compute the duration between start_field and end_field (both ISO
dates) in the specified unit ("days" by default, also "hours")
and pass if it falls within the optional min / max bounds.