UNPKG

polyv-live-cli

Version:

CLI tool for managing PolyV live streaming services.

28 lines 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GlobalServiceSdk = void 0; const sdk_1 = require("../sdk"); class GlobalServiceSdk { constructor(authConfig, config) { this.authConfig = authConfig; this.config = config; } async getAuth() { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.v4Global.getAuth(); } async updateAuth(params) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.v4Global.updateAuth(params); } async getPageSetting() { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.v4Global.getPageSetting(); } async updatePageSetting(params) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.v4Global.updatePageSetting(params); } } exports.GlobalServiceSdk = GlobalServiceSdk; //# sourceMappingURL=global-service.js.map