@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
19 lines (18 loc) • 1.15 kB
TypeScript
import ReportStoreService from './reportStoreService';
import ReportDataStore from '../data/reportDataStore';
import { ReportStoreConfig } from '../types/ReportStore';
import { defaultFilterValue } from '../utils/Personalisation/types';
import { FiltersType } from '../components/_filters/filtersTypeEnum';
import { ServiceFeatureConfig } from '../types/DprConfig';
declare class DefaultFilterValuesService extends ReportStoreService {
enabled: boolean;
constructor(reportDataStore: ReportDataStore, serviceFeatureConfig: ServiceFeatureConfig);
init(userConfig: ReportStoreConfig, userId: string): Promise<void>;
save(userId: string, reportId: string, id: string, values: defaultFilterValue[]): Promise<void>;
get(userId: string, reportId: string, id: string, filtersType: FiltersType): Promise<defaultFilterValue[] | undefined>;
hasDefaults(userId: string, reportId: string, id: string, type?: FiltersType): Promise<boolean>;
private getIndex;
delete(userId: string, reportId: string, id: string, type: FiltersType): Promise<void>;
}
export { DefaultFilterValuesService };
export default DefaultFilterValuesService;