@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
115 lines (114 loc) • 5.57 kB
TypeScript
import { z } from 'zod';
declare const _default: {
DashboardSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
sections: z.ZodArray<z.ZodObject<{
id: z.ZodString;
display: z.ZodString;
description: z.ZodOptional<z.ZodString>;
visualisations: z.ZodArray<z.ZodObject<{
id: z.ZodString;
type: z.ZodEnum<{
list: "list";
doughnut: "doughnut";
bar: "bar";
"bar-timeseries": "bar-timeseries";
line: "line";
scorecard: "scorecard";
"scorecard-group": "scorecard-group";
"matrix-timeseries": "matrix-timeseries";
"line-timeseries": "line-timeseries";
}>;
display: z.ZodString;
description: z.ZodOptional<z.ZodString>;
options: z.ZodOptional<z.ZodObject<{
showLatest: z.ZodDefault<z.ZodBoolean>;
columnsAsList: z.ZodOptional<z.ZodBoolean>;
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;
display: z.ZodOptional<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("../../../../../components/_dashboards/dashboard-visualisation/Validate").UnitType>>;
aggregate: z.ZodOptional<z.ZodEnum<typeof import("../../../../../components/_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>;
}, z.core.$strip>>;
}, z.core.$strip>>;
filterFields: z.ZodOptional<z.ZodArray<z.ZodAny>>;
}, z.core.$strip>;
DashboardSectionSchema: z.ZodObject<{
id: z.ZodString;
display: z.ZodString;
description: z.ZodOptional<z.ZodString>;
visualisations: z.ZodArray<z.ZodObject<{
id: z.ZodString;
type: z.ZodEnum<{
list: "list";
doughnut: "doughnut";
bar: "bar";
"bar-timeseries": "bar-timeseries";
line: "line";
scorecard: "scorecard";
"scorecard-group": "scorecard-group";
"matrix-timeseries": "matrix-timeseries";
"line-timeseries": "line-timeseries";
}>;
display: z.ZodString;
description: z.ZodOptional<z.ZodString>;
options: z.ZodOptional<z.ZodObject<{
showLatest: z.ZodDefault<z.ZodBoolean>;
columnsAsList: z.ZodOptional<z.ZodBoolean>;
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;
display: z.ZodOptional<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("../../../../../components/_dashboards/dashboard-visualisation/Validate").UnitType>>;
aggregate: z.ZodOptional<z.ZodEnum<typeof import("../../../../../components/_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>;
}, z.core.$strip>>;
}, z.core.$strip>;
};
export default _default;