UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

43 lines (42 loc) 1.7 kB
import { z } from 'zod'; import { UnitType } from '../dashboard-visualisation/Validate'; declare const _default: { ScorecardSchema: z.ZodObject<{ type: z.ZodLiteral<"scorecard">; display: z.ZodString; description: z.ZodOptional<z.ZodString>; 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.ZodArray<z.ZodObject<{ id: z.ZodString; type: z.ZodOptional<z.ZodString>; optional: z.ZodDefault<z.ZodBoolean>; }, z.core.$strip>>; measures: z.ZodArray<z.ZodObject<{ id: z.ZodString; type: z.ZodOptional<z.ZodString>; unit: z.ZodOptional<z.ZodEnum<typeof UnitType>>; }, 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; }, z.core.$strip>; ScorecardMeasuresSchema: z.ZodArray<z.ZodObject<{ id: z.ZodString; type: z.ZodOptional<z.ZodString>; unit: z.ZodOptional<z.ZodEnum<typeof UnitType>>; }, z.core.$strip>>; }; export default _default;