@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) • 1.05 kB
TypeScript
import superagent, { SuperAgentRequest, Response } from 'superagent';
export declare const deleteStub: (uuid: string) => SuperAgentRequest;
export declare const getMatchingRequests: (body: string | object | undefined) => superagent.Request;
export declare const resetRedis: () => Promise<boolean>;
export declare const getSentAuditEvents: () => Promise<unknown>;
export declare const getMappings: () => Promise<{
mappings: Record<string, unknown>[];
meta: {
total: number;
};
}>;
export declare const resetStubs: () => Promise<Array<Response>>;
export declare const createBasicHttpStub: (method: string, urlPattern: string, status: number, jsonBody?: object | string, fixedDelayMilliseconds?: number) => superagent.Request;
export declare const createHttpStub: (method: string, urlPathPattern: string, queryParameters: object | undefined, bodyPatterns: Array<object> | undefined, status: number, jsonBody?: object | string, fixedDelayMilliseconds?: number) => superagent.Request;
export declare const reportIdRegex = "[a-zA-Z0-9-]+";