@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
49 lines (48 loc) • 2.36 kB
TypeScript
import { LoadType, ReportType } from '../../../../../types/UserReports';
import { components } from '../../../../../types/api';
import { AsyncReportUtilsParams } from '../../../../../types/AsyncReportUtils';
export declare const renderDashboard: ({ req, res, services }: AsyncReportUtilsParams) => Promise<{
expired: true;
dashboardData?: never;
} | {
dashboardData: {
executionId?: string | undefined;
requestedTimestamp?: string | undefined;
querySummary?: import("../../../../../components/_async/request-details/types").QuerySummaryItem[];
queryData?: NodeJS.Dict<string | string[]> | undefined;
requestUrl?: import("../../../../../types/UserReports").AsyncReportUrlItemData | undefined;
defaultQuery?: string | undefined;
dataProductDefinitionsPath?: string | undefined;
actions: import("../../../../../components/_reports/report-heading/report-actions/types").ReportAction[];
downloadConfig: import("../../../../../components/_reports/report-heading/report-actions/types").DownloadActionParams | undefined;
bookmarkConfig: {
bookmarkActionEndpoint: string;
showBookmark: boolean;
linkText: string;
linkType: string;
};
subscriptionConfig: import("../../../../../types/AsyncReportUtils").SubscriptionActionConfig | undefined;
feedbackFormHref: string | undefined;
hasDefaults: boolean | undefined;
saveDefaultsEnabled: boolean;
sections: import("../../../../../components/_dashboards/dashboard-visualisation/types").DashboardSection[];
filters: import("../../../../../components/_filters/types").FilterValue[];
appliedFilters: import("../../../../../components/_filters/filters-applied/utils").AppliedFilterChip[];
reportName: string;
name: string;
description: string | undefined;
printable: boolean;
fields: components["schemas"]["FieldDefinition"][];
schedule?: string | undefined;
classification?: string | undefined;
template?: string;
specification?: components["schemas"]["Specification"];
loadType: LoadType;
csrfToken: string;
type: ReportType;
tableId?: string;
id: string;
reportId: string;
};
expired?: never;
}>;