@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
83 lines (80 loc) • 2.19 kB
TypeScript
import { Response, Request } from 'express';
import { components } from '../../../types/api.d.js';
import { Services } from '../../../types/Services.d.js';
declare const initCatalogue: ({ res, services, req }: {
res: Response;
services: Services;
req: Request;
}) => Promise<{
id: string;
list: {
head: {
text: string;
}[];
rows: {
text?: string;
html?: string;
}[][];
};
filters: {
productCollectionInfo: {
selectedProductCollection?: {
id: string;
name: string;
version: string;
ownerName: string;
products: components["schemas"]["ProductCollectionProduct"][];
};
productCollections: {
value: string;
text: string;
}[];
formAction: string;
};
csrfToken: string;
currentUrl: string;
features: {
bookmarkingEnabled: boolean;
};
};
}>;
declare const _default: {
initCatalogue: ({ res, services, req }: {
res: Response;
services: Services;
req: Request;
}) => Promise<{
id: string;
list: {
head: {
text: string;
}[];
rows: {
text?: string;
html?: string;
}[][];
};
filters: {
productCollectionInfo: {
selectedProductCollection?: {
id: string;
name: string;
version: string;
ownerName: string;
products: components["schemas"]["ProductCollectionProduct"][];
};
productCollections: {
value: string;
text: string;
}[];
formAction: string;
};
csrfToken: string;
currentUrl: string;
features: {
bookmarkingEnabled: boolean;
};
};
}>;
};
export { _default as default, initCatalogue };