@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
153 lines (152 loc) • 4.03 kB
TypeScript
export namespace dataQualityHistoric {
let id: string;
let name: string;
let description: string;
let sections: ({
id: string;
display: string;
description: string;
visualisations: ({
id: string;
type: string;
display: string;
description: string;
options: {};
columns: {
keys: {
id: string;
}[];
measures: ({
id: string;
display: string;
type: string;
} | {
id: string;
display: string;
type?: never;
})[];
filters: {
id: string;
equals: string;
}[];
expectNulls: boolean;
};
} | {
id: string;
type: string;
display: string;
description: string;
options: {
useRagColour: boolean;
};
columns: {
keys: {
id: string;
}[];
measures: ({
id: string;
display: string;
type: string;
} | {
id: string;
display: string;
type?: never;
})[];
expectNulls: boolean;
};
} | {
id: string;
type: string;
display: string;
description: string;
options: {
buckets: {
hexColour: string;
}[];
};
columns: {
keys: {
id: string;
}[];
measures: ({
id: string;
display: string;
type: string;
} | {
id: string;
display: string;
type?: never;
})[];
expectNulls: boolean;
};
})[];
} | {
id: string;
display: string;
description: string;
visualisations: {
id: string;
type: string;
display: string;
description: string;
options: {
buckets: ({
max: number;
min?: never;
} | {
min: number;
max: number;
} | {
min: number;
max?: never;
})[];
};
columns: {
keys: {
id: string;
}[];
measures: ({
id: string;
display: string;
type: string;
} | {
id: string;
display: string;
type?: never;
})[];
expectNulls: boolean;
};
}[];
} | {
id: string;
display: string;
description: string;
visualisations: {
id: string;
type: string;
display: string;
columns: {
measures: never[];
};
options: {
showLatest: boolean;
};
}[];
})[];
let filterFields: {
name: string;
display: string;
sortable: boolean;
visible: boolean;
type: string;
mandatory: boolean;
filter: {
type: string;
defaultQuickFilterValue: string;
defaultValue: string;
mandatory: boolean;
defaultGranularity: string;
interactive: boolean;
};
}[];
}