UNPKG

polyv-live-cli

Version:

CLI tool for managing PolyV live streaming services.

57 lines 3.15 kB
import { BaseHandler } from './base.handler'; import { LotteryServiceConfig, LotteryCreateOptions, LotteryListOptions, LotteryGetOptions, LotteryUpdateOptions, LotteryDeleteOptions, LotteryWinnersOptions, LotteryRecordsOptions, LotteryLegacyRecordsOptions, LotteryChannelRecordsOptions, LotteryDownloadWinnersOptions, LotteryReceiveInfoOptions } from '../types/lottery'; import { AuthConfig } from '../types/auth'; export declare class LotteryHandler extends BaseHandler { private readonly lotteryService; constructor(authConfig: AuthConfig, serviceConfig: LotteryServiceConfig); createLottery(options: LotteryCreateOptions): Promise<void>; listLottery(options: LotteryListOptions): Promise<void>; getLottery(options: LotteryGetOptions): Promise<void>; updateLottery(options: LotteryUpdateOptions): Promise<void>; deleteLottery(options: LotteryDeleteOptions): Promise<void>; getWinners(options: LotteryWinnersOptions): Promise<void>; getRecords(options: LotteryRecordsOptions): Promise<void>; getChannelRecords(options: LotteryChannelRecordsOptions): Promise<void>; getLegacyRecords(options: LotteryLegacyRecordsOptions): Promise<void>; downloadWinners(options: LotteryDownloadWinnersOptions): Promise<void>; addReceiveInfo(options: LotteryReceiveInfoOptions): Promise<void>; createWaitLottery(options: Record<string, any>): Promise<void>; listViewerGroups(options: Record<string, any>): Promise<void>; createViewerGroup(options: Record<string, any>): Promise<void>; updateViewerGroup(options: Record<string, any>): Promise<void>; deleteViewerGroup(options: Record<string, any>): Promise<void>; listGroupViewers(options: Record<string, any>): Promise<void>; createGroupViewers(options: Record<string, any>): Promise<void>; createGroupViewerNames(options: Record<string, any>): Promise<void>; deleteGroupViewers(options: Record<string, any>): Promise<void>; listBlacklistViewers(options: Record<string, any>): Promise<void>; createBlacklistViewers(options: Record<string, any>): Promise<void>; deleteBlacklistViewers(options: Record<string, any>): Promise<void>; listLuckyBagWinners(options: Record<string, any>): Promise<void>; private validateCreateOptions; private validateListOptions; private validateGetOptions; private validateUpdateOptions; private validateDeleteOptions; private validateWinnersOptions; private validateRecordsOptions; private validateChannelRecordsOptions; private validateLegacyRecordsOptions; private validateDownloadWinnersOptions; private validateReceiveInfoOptions; private validatePositiveNumber; private validateOptionalPositiveInteger; private validateGenericOptions; private validateArrayOption; private toV4Params; private displayCreateResult; private displayListResult; private displayGetResult; private displayUpdateResult; private displayWinnersResult; private displayRecordsResult; private displayGenericResult; private parseReceiveInfo; private truncate; } //# sourceMappingURL=lottery.handler.d.ts.map