UNPKG

@microsoft/teams.api

Version:

<p> <a href="https://www.npmjs.com/package/@microsoft/teams.api" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.api/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.api?activeTab=code" t

32 lines (30 loc) • 842 B
import { Client } from '@microsoft/teams.common'; import { mergeApiClientSettings } from '../api-client-settings.mjs'; import { BotSignInClient } from './sign-in.mjs'; export * from './sign-in.mjs'; class BotClient { signIn; get http() { return this._http; } set http(v) { this.signIn.http = v; this._http = v; } _http; _clientSettings; constructor(options, clientSettings, cloud) { if (!options) { this._http = new Client(); } else if ("request" in options) { this._http = options; } else { this._http = new Client(options); } this._clientSettings = mergeApiClientSettings(clientSettings, cloud); this.signIn = new BotSignInClient(this.http, this._clientSettings, cloud); } } export { BotClient }; //# sourceMappingURL=index.mjs.map //# sourceMappingURL=index.mjs.map