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[]>; } Methods
addBlock
- addBlock(comment): void
Returns void
addWaitingList
- addWaitingList(comment): Promise<boolean>
Returns Promise<boolean>
appendTimelineItemFromTalkScript
- appendTimelineItemFromTalkScript(): Promise<null | TimelineItem>
changeActiveSurvey
- changeActiveSurvey(activeSurvey): void
Returns void
changeBookmark
- changeBookmark(bookmark): void
Returns void
changeResultVisible
- changeResultVisible(visible): void
Returns void
changeServiceOrder
- changeServiceOrder(from, to): void
Returns void
changeThemeTemporarily
- changeThemeTemporarily(mode): void
Returns void
checkIntegration
- checkIntegration(name, ...args): Promise<any>
Parameters
- name: string
Rest
...args: any[]
Returns Promise<any>
clearAllCache
- clearAllCache(): Promise<void>
Returns Promise<void>
clearAllStockComments
- clearAllStockComments(): Promise<void>
Returns Promise<void>
clearComents
- clearComents(): void
Returns void
clearSurveyResult
- clearSurveyResult(surveyId, questionId): void
Parameters
- surveyId: string
- questionId: string
Returns void
cloneTemplateResource
- cloneTemplateResource(dir, files): Promise<string[]>
Parameters
- dir: string
- files: string[]
Returns Promise<string[]>
closeWindow
- closeWindow(): void
Returns void
completeSetListItems
- completeSetListItems(id, items): Promise<void>
Parameters
- id: number
- items: number[]
Returns Promise<void>
createReport
- createReport(): void
Returns void
deleteComment
- deleteComment(id): void
Returns void
deleteMusicBox
- deleteMusicBox(id): Promise<void>
Returns Promise<void>
deleteMusicList
- deleteMusicList(ids): Promise<void>
Returns Promise<void>
deleteSetList
- deleteSetList(id): Promise<void>
Returns Promise<void>
deleteSurvey
- deleteSurvey(surveyId): Promise<null | Survey>
Returns Promise<null | Survey>
deleteSurveyAnswer
- deleteSurveyAnswer(surveyId, questionId, label): Promise<SurveyResult>
Parameters
- surveyId: string
- questionId: string
- label: string
deleteTemplate
- deleteTemplate(templateId): Promise<boolean>
Returns Promise<boolean>
deleteTemplateResource
- deleteTemplateResource(dir, files): Promise<string[]>
Parameters
- dir: string
- files: string[]
Returns Promise<string[]>
deleteUserData
- deleteUserData(ids): void
Returns void
downloadUpdate
- downloadUpdate(): void
Returns void
dragFileStart
- dragFileStart(filename): void
Returns void
dragStart
- dragStart(templateData): void
Returns void
dragStaticFile
- dragStaticFile(pathname): void
Returns void
endSetList
- endSetList(): void
Returns void
generateAPIToken
- generateAPIToken(): Promise<string>
Returns Promise<string>
getAPIToken
- getAPIToken(): Promise<string>
Returns Promise<string>
getCurrentSetListId
- getCurrentSetListId(): Promise<number>
Returns Promise<number>
getFavorites
- getFavorites(): Promise<string[]>
Returns Promise<string[]>
getFontList
- getFontList(): Promise<string[]>
Returns Promise<string[]>
getLocale
- getLocale(): Promise<string>
Returns Promise<string>
getService
- getService(serviceId): Promise<null | Service>
Returns Promise<null | Service>
getSurveyResult
- getSurveyResult(surveyId, questionId): Promise<SurveyResult>
Parameters
- surveyId: string
- questionId: string
getTemplatePath
- getTemplatePath(): Promise<string>
Returns Promise<string>
getVersion
- getVersion(): Promise<string>
Returns Promise<string>
getYNCVoiceList
- getYNCVoiceList(): Promise<string[]>
Returns Promise<string[]>
insertMusicList
- insertMusicList(boxId, params): Promise<RunResult>
insertSetListItem
- insertSetListItem(id, itemId): Promise<void>
Returns Promise<void>
isProMode
- isProMode(): Promise<{
key: string;
proMode: boolean;
type: string;
}> Returns Promise<{
key: string;
proMode: boolean;
type: string;
}>
joinSurveyAnswers
- joinSurveyAnswers(surveyId, questionId, from, to): Promise<SurveyResult>
Parameters
- surveyId: string
- questionId: string
- from: string
- to: string
loadWordParty
- loadWordParty(): void
Returns void
maximizeWindow
- maximizeWindow(): void
Returns void
minimizeWindow
- minimizeWindow(): void
Returns void
openAnalysisWindow
- openAnalysisWindow(): void
Returns void
openAppDirectory
- openAppDirectory(): void
Returns void
openBrowserWindow
- openBrowserWindow(url): Promise<void>
Returns Promise<void>
openChatWindow
- openChatWindow(serviceId): void
Returns void
openCommentStock
- openCommentStock(): void
Returns void
openCommentTester
- openCommentTester(): void
Returns void
openDirectorySelectDialog
- openDirectorySelectDialog(): Promise<undefined | string[]>
Returns Promise<undefined | string[]>
openFolder
- openFolder(path): void
Returns void
openGiftWindow
- openGiftWindow(): void
Returns void
openLink
- openLink(url): void
Returns void
openListenersWindow
- openListenersWindow(): void
Returns void
openLogsDirectory
- openLogsDirectory(): void
Returns void
openOrderManagerWindow
- openOrderManagerWindow(): void
Returns void
openPluginDirectory
- openPluginDirectory(): void
Returns void
openPluginManagerWindow
- openPluginManagerWindow(): void
Returns void
openSetlistManagerWindow
- openSetlistManagerWindow(): void
Returns void
openSurveyManager
- openSurveyManager(): void
Returns void
openTemplateWindow
- openTemplateWindow(): void
Returns void
openTimeStampTool
- openTimeStampTool(): void
Returns void
openUserDirectory
- openUserDirectory(templateName?): void
Parameters
Optional
templateName: string
Returns void
openWordPartyWindow
- openWordPartyWindow(dir): void
Returns void
pinComment
- pinComment(comment): void
Returns void
prioritizeLowerTotalCount
receiveBookmark
- receiveBookmark(callback): UnregisterFunction
Parameters
- callback: ((bookmark) => void)
- (bookmark): void
Returns void
Returns UnregisterFunction
receiveClearComments
- receiveClearComments(callback): UnregisterFunction
Returns UnregisterFunction
receiveClearMeta
- receiveClearMeta(callback): UnregisterFunction
Returns UnregisterFunction
receiveCommentNotification
- receiveCommentNotification(callback): UnregisterFunction
Parameters
- callback: ((data) => void)
Returns UnregisterFunction
receiveComments
- receiveComments(callback): UnregisterFunction
Parameters
- callback: ((comments, listeners, options) => void)
- (comments, listeners, options): void
Returns void
Returns UnregisterFunction
receiveConfigUpdate
- receiveConfigUpdate(callback): UnregisterFunction
Parameters
- callback: ((config) => void)
- (config): void
Returns void
Returns UnregisterFunction
receiveDeleteComment
- receiveDeleteComment(callback): UnregisterFunction
Parameters
- callback: ((deleteComment) => void)
- (deleteComment): void
Parameters
- deleteComment: {
id: string;
message: string;
}[]
Returns void
Returns UnregisterFunction
receiveDeleteUserDatas
- receiveDeleteUserDatas(callback): UnregisterFunction
Parameters
- callback: ((ids) => void)
Returns UnregisterFunction
receiveLoadWordParty
- receiveLoadWordParty(callback): UnregisterFunction
Parameters
- callback: ((data) => void)
Returns UnregisterFunction
receiveNotification
- receiveNotification(callback): UnregisterFunction
Parameters
- callback: ((type, message) => void)
- (type, message): void
Parameters
- type: string
- message: string
Returns void
Returns UnregisterFunction
receivePageError
- receivePageError(callback): UnregisterFunction
Parameters
- callback: ((error) => void)
- (error): void
Returns void
Returns UnregisterFunction
receivePinned
- receivePinned(callback): UnregisterFunction
Parameters
- callback: ((comment) => void)
- (comment): void
Returns void
Returns UnregisterFunction
receiveProgress
- receiveProgress(callback): UnregisterFunction
Parameters
- callback: ((message) => void)
- (message): void
Returns void
Returns UnregisterFunction
receiveReactions
- receiveReactions(callback): UnregisterFunction
Parameters
- callback: ((reactions) => void)
- (reactions): void
Returns void
Returns UnregisterFunction
receiveRequests
- receiveRequests(callback): UnregisterFunction
Parameters
- callback: ((requests) => void)
- (requests): void
Returns void
Returns UnregisterFunction
receiveServices
- receiveServices(callback): UnregisterFunction
Parameters
- callback: ((services) => void)
- (services): void
Returns void
Returns UnregisterFunction
receiveSetList
- receiveSetList(callback): UnregisterFunction
Parameters
- callback: ((data) => void)
Returns UnregisterFunction
receiveStockComments
- receiveStockComments(callback): UnregisterFunction
Parameters
- callback: ((data) => void)
Returns UnregisterFunction
receiveSurveyResult
- receiveSurveyResult(callback): UnregisterFunction
Parameters
- callback: ((result) => void)
- (result): void
Returns void
Returns UnregisterFunction
receiveTimestamps
- receiveTimestamps(callback): UnregisterFunction
Parameters
- callback: ((data) => void)
Returns UnregisterFunction
receiveUpdateMeta
- receiveUpdateMeta(callback): UnregisterFunction
Parameters
- callback: ((id, meta) => void)
- (id, meta): void
Returns void
Returns UnregisterFunction
receiveUpdateUserDatas
- receiveUpdateUserDatas(callback): UnregisterFunction
Parameters
- callback: ((userData) => void)
- (userData): void
Returns void
Returns UnregisterFunction
receiveWatings
- receiveWatings(callback): UnregisterFunction
Parameters
- callback: ((orders, stats) => void)
- (orders, stats): void
Returns void
Returns UnregisterFunction
removeService
- removeService(service): void
Returns void
resetResultView
- resetResultView(): void
Returns void
resetSettings
- resetSettings(type): void
Returns void
restoreBackup
- restoreBackup(path): Promise<boolean>
Returns Promise<boolean>
rewriteOrderFile
- rewriteOrderFile(): void
Returns void
rewriteSetListTemplate
- rewriteSetListTemplate(): void
Returns void
rewriteSetListTemplates
- rewriteSetListTemplates(): void
Returns void
saveFavorites
- saveFavorites(names): Promise<string[]>
Returns Promise<string[]>
saveWordPartyConfig
- saveWordPartyConfig(dir, config, items): Promise<void>
Returns Promise<void>
sendCorrectAnswer
- sendCorrectAnswer(surveyId, questionId): void
Parameters
- surveyId: string
- questionId: string
Returns void
sendQuizResult
- sendQuizResult(surveyId): void
Returns void
sendSurveyResult
- sendSurveyResult(surveyId, questionId): void
Parameters
- surveyId: string
- questionId: string
Returns void
sendTestComment
- sendTestComment(comment, option): void
Returns void
showContextMenu
- showContextMenu(type, ...args): void
Parameters
- type: string
Rest
...args: any[]
Returns void
showNews
- showNews(): void
Returns void
speechPreview
- speechPreview(comment, username, config): void
Returns void
startSetList
- startSetList(id): void
Returns void
stockComment
- stockComment(comment): Promise<void>
Returns Promise<void>
stopSpeech
- stopSpeech(): void
Returns void
toggleSecretMode
- toggleSecretMode(): Promise<boolean>
Returns Promise<boolean>
translateComment
- translateComment(lang, comment): void
Returns void
unstockComments
- unstockComments(ids): Promise<void>
Returns Promise<void>
updateConfig
- updateConfig(config): Promise<Config>
Returns Promise<Config>
updateLicense
- updateLicense(licenseKey): void
Returns void
updateMusicList
- updateMusicList(id, params): Promise<void>
Returns Promise<void>
updateService
- updateService(service): void
Returns void
updateSetList
- updateSetList(id, name): Promise<void>
Returns Promise<void>
updateSetListItems
- updateSetListItems(id, items): Promise<void>
Parameters
- id: number
- items: number[]
Returns Promise<void>
updateSurveys
- updateSurveys(surveys): Promise<Survey[]>
Returns Promise<Survey[]>
updateUserData
- updateUserData(id, userData): void
Returns void
uploadTemplate
- uploadTemplate(): Promise<{
message: string;
path?: string;
status: "error" | "succeeded";
}> Returns Promise<{
message: string;
path?: string;
status: "error" | "succeeded";
}>
uploadTemplateFile
- uploadTemplateFile(filepath): Promise<{
message: string;
path?: string;
status: "error" | "succeeded";
}> Returns Promise<{
message: string;
path?: string;
status: "error" | "succeeded";
}>
uploadTemplateResource
- uploadTemplateResource(dir, files): Promise<string[]>
Parameters
- dir: string
- files: {
buffer: ArrayBuffer;
name: string;
type: string;
}[]
Returns Promise<string[]>