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.

17 lines (16 loc) 862 B
import ReportDataStore from '../data/reportDataStore'; import { UserReportData } from '../types/UserReports'; import { ReportStoreConfig } from '../types/ReportStore'; declare class ReportStoreService { readonly reportDataStore: ReportDataStore; reportStore: ReportDataStore; constructor(reportDataStore: ReportDataStore); getState(userId: string): Promise<ReportStoreConfig>; saveState(userId: string, userConfig: ReportStoreConfig): Promise<void>; findIndexByExecutionId(executionId: string, array: UserReportData[]): number; findIndexByTableId(tableId: string, array: UserReportData[]): number; findIndexByReportId(id: string, array: UserReportData[]): number; findIndexByReportAndVariantId(id: string, reportId: string, array: UserReportData[]): number; } export { ReportStoreService }; export default ReportStoreService;