Files
Cibello-app/packages/validation/src/release-gates.ts
T
2026-08-05 23:10:09 +07:00

13 lines
455 B
TypeScript

import { z } from "zod";
import { RELEASE_GATE_CATEGORIES, RELEASE_GATE_COMPARISONS } from "@app/shared-types";
export const releaseGateUpdateSchema = z.object({
targetValue: z.number().finite(),
comparison: z.enum(RELEASE_GATE_COMPARISONS),
evaluationWindowDays: z.number().int().min(1).max(365),
blocking: z.boolean(),
notes: z.string().max(2000).optional(),
});
export type ReleaseGateUpdateInput = z.infer<typeof releaseGateUpdateSchema>;