intercom-client
Version:
Official Node bindings to the Intercom API
41 lines (40 loc) • 1.92 kB
TypeScript
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
import * as core from "../../../../core/index.js";
import * as Intercom from "../../../index.js";
export declare namespace ExportClient {
interface Options extends BaseClientOptions {
}
interface RequestOptions extends BaseRequestOptions {
}
}
export declare class ExportClient {
protected readonly _options: NormalizedClientOptionsWithAuth<ExportClient.Options>;
constructor(options?: ExportClient.Options);
/**
* @param {Intercom.PostExportReportingDataEnqueueRequest} request
* @param {ExportClient.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Intercom.BadRequestError}
* @throws {@link Intercom.UnauthorizedError}
* @throws {@link Intercom.TooManyRequestsError}
*
* @example
* await client.export.enqueueANewReportingDataExportJob({
* dataset_id: "conversation",
* attribute_ids: ["conversation_id", "conversation_started_at"],
* start_time: 1717490000,
* end_time: 1717510000
* })
*/
enqueueANewReportingDataExportJob(request: Intercom.PostExportReportingDataEnqueueRequest, requestOptions?: ExportClient.RequestOptions): core.HttpResponsePromise<Intercom.PostExportReportingDataEnqueueResponse>;
private __enqueueANewReportingDataExportJob;
/**
* @param {ExportClient.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.export.listAvailableDatasetsAndAttributes()
*/
listAvailableDatasetsAndAttributes(requestOptions?: ExportClient.RequestOptions): core.HttpResponsePromise<Intercom.GetExportReportingDataGetDatasetsResponse>;
private __listAvailableDatasetsAndAttributes;
}