Fas 1a punkt 2: release_gates tabell + go/no-go-vy

This commit is contained in:
Sven (AAMOS AI)
2026-08-05 23:10:09 +07:00
parent 1250640b1d
commit d1455fb581
16 changed files with 10105 additions and 0 deletions
+1
View File
@@ -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";
+12
View File
@@ -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>;