polyv-live-cli
Version:
CLI tool for managing PolyV live streaming services.
40 lines • 1.93 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FinanceServiceSdk = void 0;
const sdk_1 = require("../sdk");
class FinanceServiceSdk {
constructor(authConfig, config) {
this.authConfig = authConfig;
this.config = config;
}
async getAudioModerationSettings(channelId) {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.finance.getAudioModerationSettings(channelId);
}
async listAudioModerationRecords(channelId, params = {}) {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.finance.listAudioModerationRecords(channelId, params);
}
async updateAudioModerationSettings(channelId, params) {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.finance.updateAudioModerationSettings(channelId, params);
}
async getVideoModerationSettings(channelId) {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.finance.getVideoModerationSettings(channelId);
}
async updateVideoModerationSettings(channelId, params) {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.finance.updateVideoModerationSettings(channelId, params);
}
async listVideoModerationResults(channelId, params = {}) {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.finance.listVideoModerationResults(channelId, params);
}
async listBillDetails(params) {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.finance.listBillDetails(params);
}
}
exports.FinanceServiceSdk = FinanceServiceSdk;
//# sourceMappingURL=finance-service.js.map