import { Response } from 'express'; import { components } from '../types/api'; import { DownloadFormat } from '../types/Download'; import ReportQuery from '../types/ReportQuery'; import { GetSubscriptionResponse } from '../types/Subscriptions'; import RestClient from './restClient'; import { ApiConfig, ListWithWarnings } from './types'; import Dict = NodeJS.Dict; declare class ReportingClient { restClient: RestClient; constructor(config: ApiConfig); getCount(resourceName: string, token: string, countRequest: ReportQuery): Promise; getList(resourceName: string, token: string, listRequest: ReportQuery): Promise>>; getListWithWarnings(resourceName: string, token: string, listRequest: ReportQuery): Promise; getDefinitionSummary(token: string, reportId: string): Promise; getDefinitions(token: string): Promise>; getDefinition(token: string, reportId: string, variantId: string, queryData?: Dict): Promise; requestAsyncReport(token: string, reportId: string, variantId: string, query: Record): Promise>; cancelAsyncRequest(token: string, reportId: string, variantId: string, executionId: string): Promise>; downloadAsyncReport(token: string, reportId: string, variantId: string, tableId: string, query: Record, res: Response, format?: DownloadFormat): Promise; downloadSyncReport(token: string, resourceName: string, query: Record, res: Response, format?: DownloadFormat): Promise; getAsyncReport(token: string, reportId: string, variantId: string, tableId: string, query: Record): Promise>>; getAsyncSummaryReport(token: string, reportId: string, variantId: string, tableId: string, summaryId: string, query: Dict): Promise>>; getAsyncReportStatus(token: string, reportId: string, variantId: string, executionId: string, tableId?: string): Promise; getAsyncCount(token: string, tableId: string): Promise; getAsyncInteractiveCount(token: string, tableId: string, reportId: string, id: string, filters: ReportQuery): Promise; /** * Gets the expiry state for tables * * @param {string} token * @param {string[]} tableIds * @return {*} * @memberof ReportingClient */ getTableExpiryState(token: string, tableIds: string[]): Promise; /** * Subscribe to a scheduled report * * @param {string} token * @param {string} reportId * @param {string} id * @return {*} {Promise<{ tableId: string }>} * @memberof ReportingClient */ subscribe(token: string, reportId: string, id: string): Promise<{ tableId: string; }>; /** * Unsubscribe from a scheduled report * * @param {string} token * @param {string} reportId * @param {string} id * @return {*} {Promise<{ success: boolean }>} * @memberof ReportingClient */ unsubscribe(token: string, reportId: string, id: string): Promise<{ success: boolean; }>; /** * Get a single subscription data * * @param {string} token * @param {string} reportId * @param {string} id * @return {*} {Promise} * @memberof ReportingClient */ getSubscription(token: string, reportId: string, id: string): Promise; /** * Get all a user subscriptions data * * @param {string} token * @return {*} {Promise} * @memberof ReportingClient */ getSubscriptions(token: string): Promise; logInfo(title: string, args?: Dict): void; } export { ReportingClient }; export default ReportingClient;