Interface Api

interface Api {
    platform: string;
    activatePlugin(uid): Promise<PluginList>;
    addBlock(comment): void;
    addWaitingList(comment): Promise<boolean>;
    appendEmptyTimelineItem(): Promise<TimelineItem>;
    appendTimelineItemFromTalkScript(): Promise<null | TimelineItem>;
    backupNow(): Promise<BackupFile>;
    cancelWaitingList(ids): Promise<OrderItem[]>;
    changeActiveSurvey(activeSurvey): void;
    changeBookmark(bookmark): void;
    changePlayings(count): Promise<OrderItem[]>;
    changeResultVisible(visible): void;
    changeServiceOrder(from, to): void;
    changeThemeTemporarily(mode): void;
    checkIntegration(name, ...args): Promise<any>;
    checkLoginStatus(platforms): Promise<LoginStates>;
    checkUpdate(): Promise<UpdateCheckResult>;
    clearAllCache(): Promise<void>;
    clearAllStockComments(): Promise<void>;
    clearComents(): void;
    clearSurveyResult(surveyId, questionId): void;
    cloneTemplateResource(dir, files): Promise<string[]>;
    closeWindow(): void;
    completePlayingOrders(): Promise<OrderItem[]>;
    completeSetListItems(id, items): Promise<void>;
    completeTopOrder(): Promise<OrderItem[]>;
    completeWaitingList(ids): Promise<OrderItem[]>;
    createMusicBox(params): Promise<MusicBox>;
    createReport(): void;
    createService(): Promise<Service>;
    deactivatePlugin(uid): Promise<PluginList>;
    decrementPlayingOrder(): Promise<OrderItem[]>;
    deleteComment(id): void;
    deleteMusicBox(id): Promise<void>;
    deleteMusicList(ids): Promise<void>;
    deleteRequests(ids): Promise<RequestItem[]>;
    deleteSetList(id): Promise<void>;
    deleteSurvey(surveyId): Promise<null | Survey>;
    deleteSurveyAnswer(surveyId, questionId, label): Promise<SurveyResult>;
    deleteTemplate(templateId): Promise<boolean>;
    deleteTemplateResource(dir, files): Promise<string[]>;
    deleteUserData(ids): void;
    downloadUpdate(): void;
    dragFileStart(filename): void;
    dragStart(templateData): void;
    dragStaticFile(pathname): void;
    endSetList(): void;
    execAnalyze(conditions, filters): Promise<AnalysisResultData>;
    generateAPIToken(): Promise<string>;
    getAPIToken(): Promise<string>;
    getAllComments(): Promise<Comment[]>;
    getAllMusicList(): Promise<MusicData[]>;
    getAllStockComments(): Promise<Comment[]>;
    getBackupFiles(): Promise<BackupFile[]>;
    getBouyomiChanVoiceList(): Promise<BouyomiChanVoiceListResponse>;
    getCommentLogFiles(): Promise<CommentLogFile[]>;
    getConfig(): Promise<Config>;
    getCurrentSetListId(): Promise<number>;
    getFavorites(): Promise<string[]>;
    getFontList(): Promise<string[]>;
    getListeners(): Promise<ListenerInfo[]>;
    getLocale(): Promise<string>;
    getLoginStatus(): Promise<LoginStates>;
    getMusicBoxList(): Promise<MusicBox[]>;
    getMusicList(boxId): Promise<MusicData[]>;
    getNews(): Promise<NewsData>;
    getOrderStats(): Promise<OrderStats>;
    getPlugins(): Promise<PluginList>;
    getQuizResult(surveyId): Promise<QuizResult>;
    getRequests(): Promise<RequestItem[]>;
    getServerInfo(): Promise<ServerInfo>;
    getService(serviceId): Promise<null | Service>;
    getServices(): Promise<Service[]>;
    getSetList(id): Promise<SetList>;
    getSetLists(): Promise<SetListArray[]>;
    getSurveyResult(surveyId, questionId): Promise<SurveyResult>;
    getSurveyResultAll(surveyId): Promise<SurveyResults>;
    getSurveys(): Promise<Survey[]>;
    getTemplateList(): Promise<TemplateData[]>;
    getTemplatePath(): Promise<string>;
    getTimestamps(): Promise<TimestampData>;
    getUserData(id): Promise<UserNameData>;
    getUserDatas(): Promise<UserStoreData>;
    getVersion(): Promise<string>;
    getVoicevoxVoiceList(): Promise<VoicevoxSpeaker[]>;
    getWaitingList(): Promise<OrderItem[]>;
    getYNCRegistry(): Promise<null | YNCNeoRegistoryData>;
    getYNCVoiceList(): Promise<string[]>;
    incrementPlayingOrder(): Promise<OrderItem[]>;
    insertMusicList(boxId, params): Promise<RunResult>;
    insertSetList(name): Promise<SetList>;
    insertSetListItem(id, itemId): Promise<void>;
    isProMode(): Promise<{
        key: string;
        proMode: boolean;
        type: string;
    }>;
    joinSurveyAnswers(surveyId, questionId, from, to): Promise<SurveyResult>;
    loadWordParty(): void;
    maximizeWindow(): void;
    minimizeWindow(): void;
    openAnalysisWindow(): void;
    openAppDirectory(): void;
    openBrowserWindow(url): Promise<void>;
    openChatWindow(serviceId): void;
    openCommentStock(): void;
    openCommentTester(): void;
    openDirectorySelectDialog(): Promise<undefined | string[]>;
    openFolder(path): void;
    openGiftWindow(): void;
    openLink(url): void;
    openListenersWindow(): void;
    openLogsDirectory(): void;
    openOrderManagerWindow(): void;
    openPluginDirectory(): void;
    openPluginManagerWindow(): void;
    openSetlistManagerWindow(): void;
    openSurveyManager(): void;
    openTemplateWindow(): void;
    openTimeStampTool(): void;
    openUserDirectory(templateName?): void;
    openWordPartyWindow(dir): void;
    pinComment(comment): void;
    prioritizeLowerCount(): Promise<OrderItem[]>;
    prioritizeLowerTotalCount(): Promise<OrderItem[]>;
    receiveBookmark(callback): UnregisterFunction;
    receiveClearComments(callback): UnregisterFunction;
    receiveClearMeta(callback): UnregisterFunction;
    receiveCommentNotification(callback): UnregisterFunction;
    receiveComments(callback): UnregisterFunction;
    receiveConfigUpdate(callback): UnregisterFunction;
    receiveDeleteComment(callback): UnregisterFunction;
    receiveDeleteUserDatas(callback): UnregisterFunction;
    receiveLoadWordParty(callback): UnregisterFunction;
    receiveNotification(callback): UnregisterFunction;
    receivePageError(callback): UnregisterFunction;
    receivePinned(callback): UnregisterFunction;
    receiveProgress(callback): UnregisterFunction;
    receiveReactions(callback): UnregisterFunction;
    receiveRequests(callback): UnregisterFunction;
    receiveServices(callback): UnregisterFunction;
    receiveSetList(callback): UnregisterFunction;
    receiveStockComments(callback): UnregisterFunction;
    receiveSurveyResult(callback): UnregisterFunction;
    receiveTimestamps(callback): UnregisterFunction;
    receiveUpdateMeta(callback): UnregisterFunction;
    receiveUpdateUserDatas(callback): UnregisterFunction;
    receiveWatings(callback): UnregisterFunction;
    reloladPlugins(): Promise<PluginList>;
    removeService(service): void;
    resetResultView(): void;
    resetSettings(type): void;
    restoreBackup(path): Promise<boolean>;
    rewriteOrderFile(): void;
    rewriteSetListTemplate(): void;
    rewriteSetListTemplates(): void;
    saveFavorites(names): Promise<string[]>;
    saveWordPartyConfig(dir, config, items): Promise<void>;
    searchMusic(name): Promise<MusicDataSearchResult[]>;
    sendCorrectAnswer(surveyId, questionId): void;
    sendQuizResult(surveyId): void;
    sendSurveyResult(surveyId, questionId): void;
    sendTestComment(comment, option): void;
    showContextMenu(type, ...args): void;
    showNews(): void;
    shuffleWaitingList(): Promise<OrderItem[]>;
    speechPreview(comment, username, config): void;
    startSetList(id): void;
    stockComment(comment): Promise<void>;
    stopSpeech(): void;
    swapWaitingList(from, to): Promise<OrderItem[]>;
    toggleSecretMode(): Promise<boolean>;
    translateComment(lang, comment): void;
    unstockComments(ids): Promise<void>;
    updateConfig(config): Promise<Config>;
    updateLicense(licenseKey): void;
    updateMusicBox(id, params): Promise<MusicBox>;
    updateMusicList(id, params): Promise<void>;
    updateOrderItems(items): Promise<OrderItem[]>;
    updateService(service): void;
    updateSetList(id, name): Promise<void>;
    updateSetListItems(id, items): Promise<void>;
    updateSurveys(surveys): Promise<Survey[]>;
    updateTimestamps(data): Promise<TimestampData>;
    updateUserData(id, userData): void;
    uploadTemplate(): Promise<{
        message: string;
        path?: string;
        status: "error" | "succeeded";
    }>;
    uploadTemplateFile(filepath): Promise<{
        message: string;
        path?: string;
        status: "error" | "succeeded";
    }>;
    uploadTemplateResource(dir, files): Promise<string[]>;
}

Properties

Methods

activatePlugin addBlock addWaitingList appendEmptyTimelineItem appendTimelineItemFromTalkScript backupNow cancelWaitingList changeActiveSurvey changeBookmark changePlayings changeResultVisible changeServiceOrder changeThemeTemporarily checkIntegration checkLoginStatus checkUpdate clearAllCache clearAllStockComments clearComents clearSurveyResult cloneTemplateResource closeWindow completePlayingOrders completeSetListItems completeTopOrder completeWaitingList createMusicBox createReport createService deactivatePlugin decrementPlayingOrder deleteComment deleteMusicBox deleteMusicList deleteRequests deleteSetList deleteSurvey deleteSurveyAnswer deleteTemplate deleteTemplateResource deleteUserData downloadUpdate dragFileStart dragStart dragStaticFile endSetList execAnalyze generateAPIToken getAPIToken getAllComments getAllMusicList getAllStockComments getBackupFiles getBouyomiChanVoiceList getCommentLogFiles getConfig getCurrentSetListId getFavorites getFontList getListeners getLocale getLoginStatus getMusicBoxList getMusicList getNews getOrderStats getPlugins getQuizResult getRequests getServerInfo getService getServices getSetList getSetLists getSurveyResult getSurveyResultAll getSurveys getTemplateList getTemplatePath getTimestamps getUserData getUserDatas getVersion getVoicevoxVoiceList getWaitingList getYNCRegistry getYNCVoiceList incrementPlayingOrder insertMusicList insertSetList insertSetListItem isProMode joinSurveyAnswers loadWordParty maximizeWindow minimizeWindow openAnalysisWindow openAppDirectory openBrowserWindow openChatWindow openCommentStock openCommentTester openDirectorySelectDialog openFolder openGiftWindow openLink openListenersWindow openLogsDirectory openOrderManagerWindow openPluginDirectory openPluginManagerWindow openSetlistManagerWindow openSurveyManager openTemplateWindow openTimeStampTool openUserDirectory openWordPartyWindow pinComment prioritizeLowerCount prioritizeLowerTotalCount receiveBookmark receiveClearComments receiveClearMeta receiveCommentNotification receiveComments receiveConfigUpdate receiveDeleteComment receiveDeleteUserDatas receiveLoadWordParty receiveNotification receivePageError receivePinned receiveProgress receiveReactions receiveRequests receiveServices receiveSetList receiveStockComments receiveSurveyResult receiveTimestamps receiveUpdateMeta receiveUpdateUserDatas receiveWatings reloladPlugins removeService resetResultView resetSettings restoreBackup rewriteOrderFile rewriteSetListTemplate rewriteSetListTemplates saveFavorites saveWordPartyConfig searchMusic sendCorrectAnswer sendQuizResult sendSurveyResult sendTestComment showContextMenu showNews shuffleWaitingList speechPreview startSetList stockComment stopSpeech swapWaitingList toggleSecretMode translateComment unstockComments updateConfig updateLicense updateMusicBox updateMusicList updateOrderItems updateService updateSetList updateSetListItems updateSurveys updateTimestamps updateUserData uploadTemplate uploadTemplateFile uploadTemplateResource

Properties

platform: string

Methods

  • Parameters

    Returns void

  • Parameters

    Returns Promise<boolean>

  • Parameters

    • ids: string[]

    Returns Promise<OrderItem[]>

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • count: number

    Returns Promise<OrderItem[]>

  • Parameters

    • visible: boolean

    Returns void

  • Parameters

    • from: number
    • to: number

    Returns void

  • Parameters

    • mode: "light" | "dark"

    Returns void

  • Parameters

    • name: string
    • Rest ...args: any[]

    Returns Promise<any>

  • Returns Promise<void>

  • Returns Promise<void>

  • Returns void

  • Parameters

    • surveyId: string
    • questionId: string

    Returns void

  • Parameters

    • dir: string
    • files: string[]

    Returns Promise<string[]>

  • Returns void

  • Parameters

    • id: number
    • items: number[]

    Returns Promise<void>

  • Parameters

    • ids: string[]

    Returns Promise<OrderItem[]>

  • Returns void

  • Parameters

    • id: string

    Returns void

  • Parameters

    • id: number

    Returns Promise<void>

  • Parameters

    • ids: number[]

    Returns Promise<void>

  • Parameters

    • id: number

    Returns Promise<void>

  • Parameters

    • surveyId: string

    Returns Promise<null | Survey>

  • Parameters

    • surveyId: string
    • questionId: string
    • label: string

    Returns Promise<SurveyResult>

  • Parameters

    • templateId: string

    Returns Promise<boolean>

  • Parameters

    • dir: string
    • files: string[]

    Returns Promise<string[]>

  • Parameters

    • ids: string[]

    Returns void

  • Returns void

  • Parameters

    • filename: string

    Returns void

  • Parameters

    Returns void

  • Parameters

    • pathname: string

    Returns void

  • Returns void

  • Returns Promise<string>

  • Returns Promise<string>

  • Returns Promise<number>

  • Returns Promise<string[]>

  • Returns Promise<string[]>

  • Returns Promise<string>

  • Parameters

    • boxId: number

    Returns Promise<MusicData[]>

  • Parameters

    • serviceId: string

    Returns Promise<null | Service>

  • Parameters

    • id: number

    Returns Promise<SetList>

  • Parameters

    • surveyId: string
    • questionId: string

    Returns Promise<SurveyResult>

  • Returns Promise<string>

  • Returns Promise<string>

  • Returns Promise<string[]>

  • Parameters

    • name: string

    Returns Promise<SetList>

  • Parameters

    • id: number
    • itemId: number

    Returns Promise<void>

  • Returns Promise<{
        key: string;
        proMode: boolean;
        type: string;
    }>

  • Parameters

    • surveyId: string
    • questionId: string
    • from: string
    • to: string

    Returns Promise<SurveyResult>

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    • url: string

    Returns Promise<void>

  • Parameters

    • serviceId: string

    Returns void

  • Returns void

  • Returns void

  • Returns Promise<undefined | string[]>

  • Parameters

    • path: string

    Returns void

  • Returns void

  • Parameters

    • url: string

    Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    • Optional templateName: string

    Returns void

  • Parameters

    • dir: string

    Returns void

  • Parameters

    Returns void

  • Parameters

    • callback: ((bookmark) => void)
        • (bookmark): void
        • Parameters

          Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: (() => void)
        • (): void
        • Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: ((id) => void)
        • (id): void
        • Parameters

          • id: string

          Returns void

    Returns UnregisterFunction

  • Parameters

    Returns UnregisterFunction

  • Parameters

    Returns UnregisterFunction

  • Parameters

    • callback: ((config) => void)
        • (config): void
        • Parameters

          Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: ((deleteComment) => void)
        • (deleteComment): void
        • Parameters

          • deleteComment: {
                id: string;
                message: string;
            }[]

          Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: ((ids) => void)
        • (ids): void
        • Parameters

          • ids: string[]

          Returns void

    Returns UnregisterFunction

  • Parameters

    Returns UnregisterFunction

  • Parameters

    • callback: ((type, message) => void)
        • (type, message): void
        • Parameters

          • type: string
          • message: string

          Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: ((error) => void)

    Returns UnregisterFunction

  • Parameters

    • callback: ((comment) => void)
        • (comment): void
        • Parameters

          Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: ((message) => void)
        • (message): void
        • Parameters

          • message: string

          Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: ((reactions) => void)
        • (reactions): void
        • Parameters

          Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: ((requests) => void)
        • (requests): void
        • Parameters

          Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: ((services) => void)
        • (services): void
        • Parameters

          Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: ((data) => void)
        • (data): void
        • Parameters

          Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: ((data) => void)
        • (data): void
        • Parameters

          Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: ((result) => void)

    Returns UnregisterFunction

  • Parameters

    • callback: ((data) => void)

    Returns UnregisterFunction

  • Parameters

    • callback: ((id, meta) => void)
        • (id, meta): void
        • Parameters

          Returns void

    Returns UnregisterFunction

  • Parameters

    • callback: ((userData) => void)

    Returns UnregisterFunction

  • Parameters

    • callback: ((orders, stats) => void)

    Returns UnregisterFunction

  • Parameters

    Returns void

  • Returns void

  • Parameters

    Returns void

  • Parameters

    • path: string

    Returns Promise<boolean>

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    • names: string[]

    Returns Promise<string[]>

  • Parameters

    Returns Promise<void>

  • Parameters

    • surveyId: string
    • questionId: string

    Returns void

  • Parameters

    • surveyId: string

    Returns void

  • Parameters

    • surveyId: string
    • questionId: string

    Returns void

  • Parameters

    • type: string
    • Rest ...args: any[]

    Returns void

  • Returns void

  • Parameters

    Returns void

  • Parameters

    • id: number

    Returns void

  • Parameters

    Returns Promise<void>

  • Returns void

  • Parameters

    • from: number
    • to: number

    Returns Promise<OrderItem[]>

  • Returns Promise<boolean>

  • Parameters

    Returns void

  • Parameters

    • ids: string[]

    Returns Promise<void>

  • Parameters

    • licenseKey: string

    Returns void

  • Parameters

    Returns Promise<void>

  • Parameters

    Returns void

  • Parameters

    • id: number
    • name: string

    Returns Promise<void>

  • Parameters

    • id: number
    • items: number[]

    Returns Promise<void>

  • Parameters

    Returns Promise<Survey[]>

  • Parameters

    Returns void

  • Returns Promise<{
        message: string;
        path?: string;
        status: "error" | "succeeded";
    }>

  • Parameters

    • filepath: string

    Returns Promise<{
        message: string;
        path?: string;
        status: "error" | "succeeded";
    }>

  • Parameters

    • dir: string
    • files: {
          buffer: ArrayBuffer;
          name: string;
          type: string;
      }[]

    Returns Promise<string[]>