UNPKG

polyv-live-cli

Version:

CLI tool for managing PolyV live streaming services.

88 lines 4.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AccountServiceSdk = void 0; const sdk_1 = require("../sdk"); class AccountServiceSdk { constructor(authConfig, config) { this.authConfig = authConfig; this.config = config; } async channels(params = {}) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.channels(params); } async userPlaybackList(params = {}) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.userPlaybackList(params); } async userChannelBasicList(params = {}) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.userChannelBasicList(params); } async getSimpleChannelList(params = {}) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.getSimpleChannelList(params); } async channelDetailList(params = {}) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.channelDetailList(params); } async getUserDurations() { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.getUserDurations(); } async micDuration() { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.micDuration(); } async getIncomeDetail(params) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.getIncomeDetail(params); } async getCategoryList() { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.getCategoryList(); } async createCategory(categoryName) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.createCategory({ categoryName }); } async receiveList(params) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.receiveList(params); } async deleteCategory(categoryId) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.deleteCategory({ categoryId }); } async updateCategoryName(categoryId, categoryName) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.updateCategoryName({ categoryId, categoryName }); } async updateCategoryRank(categoryId, afterCategoryId) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.updateCategoryRank({ categoryId, afterCategoryId }); } async setUserLoginToken(params) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.setUserLoginToken(params); } async setUserChildrenLoginToken(params) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.setUserChildrenLoginToken(params); } async setStreamCallback(params) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.setStreamCallback(params); } async setRecordCallback(params) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.setRecordCallback(params); } async setPlaybackCallback(params) { const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl); return client.account.setPlaybackCallback(params); } } exports.AccountServiceSdk = AccountServiceSdk; //# sourceMappingURL=account-service.js.map