26 lines
563 B
TypeScript
26 lines
563 B
TypeScript
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"]);
|