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.

55 lines (54 loc) 1.82 kB
import { Request, Response } from 'express'; import { Services } from '../../types/Services'; import { DprMyReport, DprMyReportHeading, DprMyReportItem, ListType, MyReportsListTotals, MyReportsOptions } from './types'; /** * Initialises the "My Reports" component data * * @param {Request} req * @param {Response} res * @param {Services} services * @return {*} {DprMyReport} */ export declare const initMyReports: (req: Request, res: Response, services: Services, options?: MyReportsOptions | undefined) => Promise<DprMyReport | undefined>; /** * Init Requested Reports list * * @param {Request} req * @param {Response} res * @return {*} */ export declare const initRequested: (req: Request, res: Response, options?: MyReportsOptions | undefined) => Promise<{ title: string; listType: ListType; csrfToken: string; headings: DprMyReportHeading[]; items: DprMyReportItem[]; totals: MyReportsListTotals; }>; /** * Init Viewed reports list * * @param {Request} req * @param {Response} res * @return {*} */ export declare const initViewed: (req: Request, res: Response, options?: MyReportsOptions | undefined) => Promise<{ title: string; listType: ListType; csrfToken: string; headings: DprMyReportHeading[]; items: DprMyReportItem[]; totals: MyReportsListTotals; }>; export declare const initSubscribed: (req: Request, res: Response, options?: MyReportsOptions | undefined) => Promise<{ title: string; listType: ListType; csrfToken: string; headings: DprMyReportHeading[]; items: DprMyReportItem[]; totals: MyReportsListTotals; }>; declare const _default: { initMyReports: (req: Request, res: Response, services: Services, options?: MyReportsOptions | undefined) => Promise<DprMyReport | undefined>; }; export default _default;