intercom-client
Version:
Official Node bindings to the Intercom API
163 lines (162 loc) • 8.25 kB
JavaScript
// This file was auto-generated by Fern from our API Definition.
import { AdminsClient } from "./api/resources/admins/client/Client.mjs";
import { AiContentClient } from "./api/resources/aiContent/client/Client.mjs";
import { ArticlesClient } from "./api/resources/articles/client/Client.mjs";
import { AwayStatusReasonsClient } from "./api/resources/awayStatusReasons/client/Client.mjs";
import { CallsClient } from "./api/resources/calls/client/Client.mjs";
import { CompaniesClient } from "./api/resources/companies/client/Client.mjs";
import { ContactsClient } from "./api/resources/contacts/client/Client.mjs";
import { ConversationsClient } from "./api/resources/conversations/client/Client.mjs";
import { CustomChannelEventsClient } from "./api/resources/customChannelEvents/client/Client.mjs";
import { CustomObjectInstancesClient } from "./api/resources/customObjectInstances/client/Client.mjs";
import { DataAttributesClient } from "./api/resources/dataAttributes/client/Client.mjs";
import { DataExportClient } from "./api/resources/dataExport/client/Client.mjs";
import { EventsClient } from "./api/resources/events/client/Client.mjs";
import { ExportClient } from "./api/resources/export/client/Client.mjs";
import { HelpCentersClient } from "./api/resources/helpCenters/client/Client.mjs";
import { InternalArticlesClient } from "./api/resources/internalArticles/client/Client.mjs";
import { IpAllowlistClient } from "./api/resources/ipAllowlist/client/Client.mjs";
import { JobsClient } from "./api/resources/jobs/client/Client.mjs";
import { MessagesClient } from "./api/resources/messages/client/Client.mjs";
import { NewsClient } from "./api/resources/news/client/Client.mjs";
import { NotesClient } from "./api/resources/notes/client/Client.mjs";
import { PhoneCallRedirectsClient } from "./api/resources/phoneCallRedirects/client/Client.mjs";
import { SegmentsClient } from "./api/resources/segments/client/Client.mjs";
import { SubscriptionTypesClient } from "./api/resources/subscriptionTypes/client/Client.mjs";
import { TagsClient } from "./api/resources/tags/client/Client.mjs";
import { TeamsClient } from "./api/resources/teams/client/Client.mjs";
import { TicketStatesClient } from "./api/resources/ticketStates/client/Client.mjs";
import { TicketsClient } from "./api/resources/tickets/client/Client.mjs";
import { TicketTypesClient } from "./api/resources/ticketTypes/client/Client.mjs";
import { UnstableClient } from "./api/resources/unstable/client/Client.mjs";
import { VisitorsClient } from "./api/resources/visitors/client/Client.mjs";
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
export class IntercomClient {
constructor(options = {}) {
this._options = normalizeClientOptionsWithAuth(options);
}
get admins() {
var _a;
return ((_a = this._admins) !== null && _a !== void 0 ? _a : (this._admins = new AdminsClient(this._options)));
}
get aiContent() {
var _a;
return ((_a = this._aiContent) !== null && _a !== void 0 ? _a : (this._aiContent = new AiContentClient(this._options)));
}
get articles() {
var _a;
return ((_a = this._articles) !== null && _a !== void 0 ? _a : (this._articles = new ArticlesClient(this._options)));
}
get awayStatusReasons() {
var _a;
return ((_a = this._awayStatusReasons) !== null && _a !== void 0 ? _a : (this._awayStatusReasons = new AwayStatusReasonsClient(this._options)));
}
get export() {
var _a;
return ((_a = this._export) !== null && _a !== void 0 ? _a : (this._export = new ExportClient(this._options)));
}
get dataExport() {
var _a;
return ((_a = this._dataExport) !== null && _a !== void 0 ? _a : (this._dataExport = new DataExportClient(this._options)));
}
get helpCenters() {
var _a;
return ((_a = this._helpCenters) !== null && _a !== void 0 ? _a : (this._helpCenters = new HelpCentersClient(this._options)));
}
get internalArticles() {
var _a;
return ((_a = this._internalArticles) !== null && _a !== void 0 ? _a : (this._internalArticles = new InternalArticlesClient(this._options)));
}
get ipAllowlist() {
var _a;
return ((_a = this._ipAllowlist) !== null && _a !== void 0 ? _a : (this._ipAllowlist = new IpAllowlistClient(this._options)));
}
get companies() {
var _a;
return ((_a = this._companies) !== null && _a !== void 0 ? _a : (this._companies = new CompaniesClient(this._options)));
}
get contacts() {
var _a;
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new ContactsClient(this._options)));
}
get notes() {
var _a;
return ((_a = this._notes) !== null && _a !== void 0 ? _a : (this._notes = new NotesClient(this._options)));
}
get tags() {
var _a;
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new TagsClient(this._options)));
}
get conversations() {
var _a;
return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new ConversationsClient(this._options)));
}
get customChannelEvents() {
var _a;
return ((_a = this._customChannelEvents) !== null && _a !== void 0 ? _a : (this._customChannelEvents = new CustomChannelEventsClient(this._options)));
}
get customObjectInstances() {
var _a;
return ((_a = this._customObjectInstances) !== null && _a !== void 0 ? _a : (this._customObjectInstances = new CustomObjectInstancesClient(this._options)));
}
get dataAttributes() {
var _a;
return ((_a = this._dataAttributes) !== null && _a !== void 0 ? _a : (this._dataAttributes = new DataAttributesClient(this._options)));
}
get events() {
var _a;
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new EventsClient(this._options)));
}
get jobs() {
var _a;
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new JobsClient(this._options)));
}
get messages() {
var _a;
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new MessagesClient(this._options)));
}
get segments() {
var _a;
return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new SegmentsClient(this._options)));
}
get subscriptionTypes() {
var _a;
return ((_a = this._subscriptionTypes) !== null && _a !== void 0 ? _a : (this._subscriptionTypes = new SubscriptionTypesClient(this._options)));
}
get phoneCallRedirects() {
var _a;
return ((_a = this._phoneCallRedirects) !== null && _a !== void 0 ? _a : (this._phoneCallRedirects = new PhoneCallRedirectsClient(this._options)));
}
get calls() {
var _a;
return ((_a = this._calls) !== null && _a !== void 0 ? _a : (this._calls = new CallsClient(this._options)));
}
get teams() {
var _a;
return ((_a = this._teams) !== null && _a !== void 0 ? _a : (this._teams = new TeamsClient(this._options)));
}
get ticketStates() {
var _a;
return ((_a = this._ticketStates) !== null && _a !== void 0 ? _a : (this._ticketStates = new TicketStatesClient(this._options)));
}
get ticketTypes() {
var _a;
return ((_a = this._ticketTypes) !== null && _a !== void 0 ? _a : (this._ticketTypes = new TicketTypesClient(this._options)));
}
get tickets() {
var _a;
return ((_a = this._tickets) !== null && _a !== void 0 ? _a : (this._tickets = new TicketsClient(this._options)));
}
get visitors() {
var _a;
return ((_a = this._visitors) !== null && _a !== void 0 ? _a : (this._visitors = new VisitorsClient(this._options)));
}
get news() {
var _a;
return ((_a = this._news) !== null && _a !== void 0 ? _a : (this._news = new NewsClient(this._options)));
}
get unstable() {
var _a;
return ((_a = this._unstable) !== null && _a !== void 0 ? _a : (this._unstable = new UnstableClient(this._options)));
}
}