Interface ReportsAPI

interface ReportsAPI {
    clearCache: () => void;
    createReport: (
        body: ReportRequest,
        options?: ApiCallOptions,
    ) => Promise<CreateReportHttpResponse>;
    getReportStatus: (
        id: string,
        options?: ApiCallOptions,
    ) => Promise<GetReportStatusHttpResponse>;
}
Index

Properties

clearCache: () => void

Clears the cache for reports api requests.

Type declaration

    • (): void
    • Clears the cache for reports api requests.

      Returns void

createReport: (
    body: ReportRequest,
    options?: ApiCallOptions,
) => Promise<CreateReportHttpResponse>

Queue a new report request generation.

Type declaration

an object with the body content

CreateReportHttpError

getReportStatus: (
    id: string,
    options?: ApiCallOptions,
) => Promise<GetReportStatusHttpResponse>

Get report request processing status.

Type declaration

Identifier of the request.

GetReportStatusHttpError