UNPKG

polyv-live-cli

Version:

CLI tool for managing PolyV live streaming services.

41 lines 3.26 kB
import { BaseHandler } from './base.handler'; import { AuthConfig } from '../types/auth'; import { PlatformGetOptions, PlatformSwitchGetOptions, PlatformSwitchUpdateOptions, PlatformCallbackGetOptions, PlatformCallbackUpdateOptions, PlatformServiceConfig, PlatformSettingGetOptions, PlatformSettingUpdateOptions, PlatformAnchorCreateOptions, PlatformAnchorGetOptions, PlatformAnchorRelationOptions, PlatformAnchorUpdateOptions, PlatformAnchorUpdateStatusOptions, PlatformContentGroupListOptions, PlatformCouponStatusBatchOptions, PlatformCouponUpdateOptions, PlatformCouponViewerListOptions, PlatformListAnchorsOptions } from '../types/platform'; export type { PlatformGetOptions, PlatformSwitchGetOptions, PlatformSwitchUpdateOptions, PlatformCallbackGetOptions, PlatformCallbackUpdateOptions, PlatformSettingGetOptions, PlatformSettingUpdateOptions, PlatformAnchorCreateOptions, PlatformAnchorGetOptions, PlatformAnchorRelationOptions, PlatformAnchorUpdateOptions, PlatformAnchorUpdateStatusOptions, PlatformContentGroupListOptions, PlatformCouponStatusBatchOptions, PlatformCouponUpdateOptions, PlatformCouponViewerListOptions, PlatformListAnchorsOptions, }; export declare class PlatformHandler extends BaseHandler { private readonly platformService; constructor(authConfig: AuthConfig, serviceConfig: PlatformServiceConfig); getAccountInfo(options: PlatformGetOptions): Promise<void>; getSwitchConfig(options: PlatformSwitchGetOptions): Promise<void>; updateSwitchConfig(options: PlatformSwitchUpdateOptions): Promise<void>; getCallbackSettings(options: PlatformCallbackGetOptions): Promise<void>; updateCallbackSettings(options: PlatformCallbackUpdateOptions): Promise<void>; getGlobalSettings(options: PlatformSettingGetOptions): Promise<void>; updateGlobalSettings(options: PlatformSettingUpdateOptions): Promise<void>; listAnchors(options: PlatformListAnchorsOptions): Promise<void>; getAnchor(options: PlatformAnchorGetOptions): Promise<void>; createAnchor(options: PlatformAnchorCreateOptions): Promise<void>; updateAnchor(options: PlatformAnchorUpdateOptions): Promise<void>; updateAnchorStatus(options: PlatformAnchorUpdateStatusOptions): Promise<void>; listAnchorRelations(options: PlatformAnchorRelationOptions): Promise<void>; listAnchorUnrelations(options: PlatformAnchorRelationOptions): Promise<void>; listContentGroups(options: PlatformContentGroupListOptions): Promise<void>; listCouponViewers(options: PlatformCouponViewerListOptions): Promise<void>; updateCoupon(options: PlatformCouponUpdateOptions): Promise<void>; updateCouponsStatusBatch(options: PlatformCouponStatusBatchOptions): Promise<void>; private displayGlobalSettingsTable; private displayUpdatedGlobalSettingsTable; private validateUpdateOptions; private validateCallbackOptions; private displayUserInfoTable; private displaySwitchConfigTable; private displayCallbackSettingsTable; private validateGlobalSettingsOptions; private validatePositiveNumber; private validateRequiredString; private validateAnchorCreateOptions; private compact; private validationError; private confirmWrite; } //# sourceMappingURL=platform.handler.d.ts.map