Fas 1a punkt 2: release_gates tabell + go/no-go-vy
This commit is contained in:
@@ -13,3 +13,4 @@ export * from "./memory.js";
|
||||
export * from "./subscriptions.js";
|
||||
export * from "./locale.js";
|
||||
export * from "./analytics.js";
|
||||
export * from "./release-gates.js";
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
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>;
|
||||
Reference in New Issue
Block a user