@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
67 lines (66 loc) • 2.52 kB
TypeScript
import { z } from 'zod';
import { UnitType } from '../../../_dashboards/dashboard-visualisation/Validate';
declare const BarChartSchemas: {
BarSchema: z.ZodObject<{
type: z.ZodLiteral<"bar">;
display: z.ZodString;
options: z.ZodOptional<z.ZodObject<{
showLatest: z.ZodDefault<z.ZodBoolean>;
horizontal: z.ZodDefault<z.ZodBoolean>;
xStacked: z.ZodDefault<z.ZodBoolean>;
yStacked: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>>;
columns: z.ZodObject<{
measures: z.ZodArray<z.ZodObject<{
id: z.ZodString;
display: z.ZodOptional<z.ZodString>;
unit: z.ZodOptional<z.ZodEnum<typeof UnitType>>;
axis: z.ZodOptional<z.ZodEnum<{
x: "x";
y: "y";
}>>;
type: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodString;
display: z.ZodOptional<z.ZodString>;
optional: z.ZodDefault<z.ZodBoolean>;
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;
description: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
BarMeasureShema: z.ZodObject<{
id: z.ZodString;
display: z.ZodOptional<z.ZodString>;
unit: z.ZodOptional<z.ZodEnum<typeof UnitType>>;
axis: z.ZodOptional<z.ZodEnum<{
x: "x";
y: "y";
}>>;
type: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
BarOptionsSchema: z.ZodObject<{
showLatest: z.ZodDefault<z.ZodBoolean>;
horizontal: z.ZodDefault<z.ZodBoolean>;
xStacked: z.ZodDefault<z.ZodBoolean>;
yStacked: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
BarMeasuresSchema: z.ZodArray<z.ZodObject<{
id: z.ZodString;
display: z.ZodOptional<z.ZodString>;
unit: z.ZodOptional<z.ZodEnum<typeof UnitType>>;
axis: z.ZodOptional<z.ZodEnum<{
x: "x";
y: "y";
}>>;
type: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
};
export default BarChartSchemas;