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

39 lines (36 loc) • 1.09 kB
'use strict'; var teams_common = require('@microsoft/teams.common'); var apiClientSettings = require('../api-client-settings'); var signIn = require('./sign-in'); 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 teams_common.Client(); } else if ("request" in options) { this._http = options; } else { this._http = new teams_common.Client(options); } this._clientSettings = apiClientSettings.mergeApiClientSettings(clientSettings, cloud); this.signIn = new signIn.BotSignInClient(this.http, this._clientSettings, cloud); } } exports.BotClient = BotClient; Object.keys(signIn).forEach(function (k) { if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: function () { return signIn[k]; } }); }); //# sourceMappingURL=index.js.map //# sourceMappingURL=index.js.map