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.

16 lines (15 loc) 922 B
import type { DownloadPermissionConfig } from '../../../../types/Download'; import ReportStoreService from '../../../../services/reportStoreService'; import UserDataStore from '../../../../data/reportDataStore'; import { ServiceFeatureConfig } from '../../../../types/DprConfig'; declare class DownloadPermissionService extends ReportStoreService { enabled: boolean; feedbackEnabled: boolean; constructor(userDataStore: UserDataStore, serviceFeatureConfig: ServiceFeatureConfig); saveDownloadPermissionData(userId: string, reportId: string, id: string): Promise<void>; removeDownloadPermissionData(userId: string, id: string): Promise<void>; downloadEnabledForReport(userId: string, reportId: string, id: string): Promise<boolean>; getAllDownloadPermissions(userId: string): Promise<DownloadPermissionConfig[]>; } export { DownloadPermissionService }; export default DownloadPermissionService;