@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
37 lines (36 loc) • 1.58 kB
TypeScript
import { z } from 'zod';
declare const MatrixTimeseriesSchema: z.ZodObject<{
type: z.ZodLiteral<"matrix-timeseries">;
options: z.ZodOptional<z.ZodObject<{
useRagColour: z.ZodDefault<z.ZodBoolean>;
buckets: z.ZodDefault<z.ZodArray<z.ZodObject<{
min: z.ZodOptional<z.ZodNumber>;
max: z.ZodOptional<z.ZodNumber>;
hexColour: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>>;
baseColour: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
columns: z.ZodObject<{
keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodString;
optional: z.ZodDefault<z.ZodBoolean>;
type: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>>;
measures: z.ZodArray<z.ZodObject<{
id: z.ZodString;
display: z.ZodOptional<z.ZodString>;
unit: z.ZodOptional<z.ZodEnum<typeof import("../../../_dashboards/dashboard-visualisation/Validate").UnitType>>;
aggregate: z.ZodOptional<z.ZodEnum<typeof import("../../../_dashboards/dashboard-visualisation/Validate").AggregateType>>;
type: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodString;
equals: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>>;
expectNulls: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
id: z.ZodString;
display: z.ZodString;
description: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export default MatrixTimeseriesSchema;