UNPKG

intercom-client

Version:

Official Node bindings to the Intercom API

34 lines (33 loc) 1.21 kB
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 JobsClient { interface Options extends BaseClientOptions { } interface RequestOptions extends BaseRequestOptions { } } /** * Everything about jobs */ export declare class JobsClient { protected readonly _options: NormalizedClientOptionsWithAuth<JobsClient.Options>; constructor(options?: JobsClient.Options); /** * Retrieve the status of job execution. * * @param {Intercom.JobsStatusRequest} request * @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Intercom.UnauthorizedError} * @throws {@link Intercom.NotFoundError} * * @example * await client.jobs.status({ * job_id: "job_id" * }) */ status(request: Intercom.JobsStatusRequest, requestOptions?: JobsClient.RequestOptions): core.HttpResponsePromise<Intercom.Jobs>; private __status; }