mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
HealthLog — personal health-tracking PWA with weight, blood pressure, pulse, mood tracking, medication compliance, Withings integration, doctor report PDF export, and Dracula-themed UI.
17 lines
517 B
TypeScript
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>;
|