@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
64 lines (60 loc) • 3.25 kB
JavaScript
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
class ReportingService {
reportingClient;
constructor(reportingClient) {
this.reportingClient = reportingClient;
this.reportingClient = reportingClient;
}
async getCount(resourceName, token, listRequest) {
return this.reportingClient.getCount(resourceName, token, listRequest);
}
async getList(resourceName, token, listRequest) {
return this.reportingClient.getList(resourceName, token, listRequest);
}
async getListWithWarnings(resourceName, token, listRequest) {
return this.reportingClient.getListWithWarnings(resourceName, token, listRequest);
}
async getDefinitionSummary(token, reportId, dataProductDefinitionsPath) {
return this.reportingClient.getDefinitionSummary(token, reportId, dataProductDefinitionsPath);
}
async getDefinitions(token, dataProductDefinitionsPath) {
return this.reportingClient.getDefinitions(token, dataProductDefinitionsPath);
}
async getDefinition(token, reportId, variantId, dataProductDefinitionsPath, query) {
return this.reportingClient.getDefinition(token, reportId, variantId, dataProductDefinitionsPath, query);
}
async requestAsyncReport(token, reportId, variantId, query) {
return this.reportingClient.requestAsyncReport(token, reportId, variantId, query);
}
async cancelAsyncRequest(token, reportId, variantId, executionId, dataProductDefinitionsPath) {
return this.reportingClient.cancelAsyncRequest(token, reportId, variantId, executionId, dataProductDefinitionsPath);
}
async downloadAsyncReport(token, reportId, variantId, tableId, query, res) {
return this.reportingClient.downloadAsyncReport(token, reportId, variantId, tableId, query, res);
}
async downloadSyncReport(token, resourceName, query, res) {
return this.reportingClient.downloadSyncReport(token, resourceName, query, res);
}
async getAsyncReport(token, reportId, variantId, tableId, query) {
return this.reportingClient.getAsyncReport(token, reportId, variantId, tableId, query);
}
async getAsyncSummaryReport(token, reportId, variantId, tableId, summaryId, query) {
return this.reportingClient.getAsyncSummaryReport(token, reportId, variantId, tableId, summaryId, query);
}
async getAsyncReportStatus(token, reportId, variantId, executionId, dataProductDefinitionsPath, tableId) {
return this.reportingClient.getAsyncReportStatus(token, reportId, variantId, executionId, dataProductDefinitionsPath, tableId);
}
async getAsyncCount(token, tableId, dataProductDefinitionsPath) {
return this.reportingClient.getAsyncCount(token, tableId, dataProductDefinitionsPath);
}
async getAsyncInteractiveCount(token, tableId, reportId, id, filters) {
return this.reportingClient.getAsyncInteractiveCount(token, tableId, reportId, id, filters);
}
async getTableExpiryState(token, tableIds) {
return this.reportingClient.getTableExpiryState(token, tableIds);
}
}
exports.ReportingService = ReportingService;
exports.default = ReportingService;
//# sourceMappingURL=reportingService.js.map