UNPKG

intercom-client

Version:

Official Node bindings to the Intercom API

18 lines (17 loc) 723 B
// This file was auto-generated by Fern from our API Definition. import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs"; import { FeedsClient } from "../resources/feeds/client/Client.mjs"; import { ItemsClient } from "../resources/items/client/Client.mjs"; export class NewsClient { constructor(options = {}) { this._options = normalizeClientOptionsWithAuth(options); } get items() { var _a; return ((_a = this._items) !== null && _a !== void 0 ? _a : (this._items = new ItemsClient(this._options))); } get feeds() { var _a; return ((_a = this._feeds) !== null && _a !== void 0 ? _a : (this._feeds = new FeedsClient(this._options))); } }