Files
HealthLog/src/lib/validations/phase-config.ts
T
Marc-André Bombeck 38309932f3 Initial release v1.0.0
HealthLog — personal health-tracking PWA with weight, blood pressure,
pulse, mood tracking, medication compliance, Withings integration,
doctor report PDF export, and Dracula-themed UI.
2026-03-10 20:14:33 +01:00

17 lines
517 B
TypeScript

import { z } from "zod/v4";
const phaseModeSchema = z.enum(["MINUTES", "PERCENT"]);
export const phaseConfigSchema = z.object({
greenValue: z.number().int().min(0).max(1440),
greenMode: phaseModeSchema,
yellowValue: z.number().int().min(0).max(1440),
yellowMode: phaseModeSchema,
orangeValue: z.number().int().min(0).max(1440),
orangeMode: phaseModeSchema,
redValue: z.number().int().min(0).max(1440),
redMode: phaseModeSchema,
});
export type PhaseConfigInput = z.infer<typeof phaseConfigSchema>;