@meeting-baas/sdk
Version:
Official SDK for Meeting BaaS API - https://meetingbaas.com
42 lines (41 loc) • 1.24 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaasClient = void 0;
const configuration_1 = require("../configuration");
const calendars_api_1 = require("./calendars-api");
const default_api_1 = require("./default-api");
const webhooks_api_1 = require("./webhooks-api");
/**
* Main client for the Meeting BaaS API
* This class combines all API endpoints into a single client
*/
class BaasClient {
constructor(config) {
this.configuration = new configuration_1.Configuration({
apiKey: config.apiKey,
basePath: config.baseUrl,
});
this._calendarsApi = new calendars_api_1.CalendarsApi(this.configuration);
this._defaultApi = new default_api_1.DefaultApi(this.configuration);
this._webhooksApi = new webhooks_api_1.WebhooksApi(this.configuration);
}
/**
* Get the CalendarsApi instance
*/
get calendarsApi() {
return this._calendarsApi;
}
/**
* Get the DefaultApi instance
*/
get defaultApi() {
return this._defaultApi;
}
/**
* Get the WebhooksApi instance
*/
get webhooksApi() {
return this._webhooksApi;
}
}
exports.BaasClient = BaasClient;