gui: work in progress

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-10-17 21:47:37 +02:00
parent b9fe6127ff
commit 206ae54dea
53 changed files with 2632 additions and 88 deletions

View File

@@ -0,0 +1,25 @@
import { z } from "zod";
export const zChartEvent = z.object({
id: z.string(),
name: z.string(),
displayName: z.string(),
filters: z.array(
z.object({
id: z.string(),
name: z.string(),
value: z.string(),
}),
),
});
export const zChartBreakdown = z.object({
id: z.string(),
name: z.string(),
});
export const zChartEvents = z.array(zChartEvent);
export const zChartBreakdowns = z.array(zChartBreakdown);
export const zChartType = z.enum(["bar", "linear"]);
export const zTimeInterval = z.enum(["day", "hour", "month"]);