@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 (14 loc) • 939 B
TypeScript
import { DownloadPermissionConfig } from '../../../../types/Download.js';
import { ReportStoreService } from '../../../../services/reportStoreService.js';
import { ReportDataStore } from '../../../../data/reportDataStore.js';
import { ServiceFeatureConfig } from '../../../../types/DprConfig.js';
declare class DownloadPermissionService extends ReportStoreService {
enabled: boolean;
feedbackEnabled: boolean;
constructor(userDataStore: ReportDataStore, 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, DownloadPermissionService as default };