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.

20 lines (19 loc) 1.42 kB
import ReportStoreService from '../../../../services/reportStoreService'; import UserDataStore from '../../../../data/reportDataStore'; import { RequestedReport, RecentlyViewedReport, StoredReportData } from '../../../../types/UserReports'; import { ReportStoreConfig } from '../../../../types/ReportStore'; declare class RecentlyViewedStoreService extends ReportStoreService { constructor(userDataStore: UserDataStore); getAllReports(userId: string): Promise<StoredReportData[]>; getReportByExecutionId(id: string, userId: string): Promise<StoredReportData | undefined>; getReportByTableId(id: string, userId: string): Promise<StoredReportData | undefined>; setRecentlyViewed(reportData: RequestedReport, userId: string): Promise<void>; addReport(reportData: RecentlyViewedReport, userId: string, userConfig: ReportStoreConfig): Promise<void>; setToExpired(id: string, userId: string): Promise<void>; setToExpiredByTableId(id: string, userId: string): Promise<void>; saveExpiredState(userConfig: ReportStoreConfig, index: number, userId: string): Promise<void>; removeReport(userId: string, reportId?: string | undefined, id?: string | undefined, tableId?: string | undefined): Promise<void>; removeSupersededViewedReports(removedExecutionIds: string[], userId: string): Promise<void>; } export { RecentlyViewedStoreService }; export default RecentlyViewedStoreService;