Properties
usePermission
usePermission: ((templateNames,
base?) => SendType[]) = usePermission Type declaration
- (templateNames, base?): SendType[]
Parameters
- templateNames: ("COMMENT" | "META" | "ORDER" | "REACTION" | "SETLIST" | "WORDPAETY" | "YT_SURVEY" | "CONFIG" | "SERVICE" | "USER" | "NOTIFICATION")[]
- base: SendType[] = []
Accessors
PERM
- get PERM(): {
COMMENT: "COMMENT";
CONFIG: "CONFIG";
META: "META";
NOTIFICATION: "NOTIFICATION";
ORDER: "ORDER";
REACTION: "REACTION";
SERVICE: "SERVICE";
SETLIST: "SETLIST";
USER: "USER";
WORDPAETY: "WORDPAETY";
YT_SURVEY: "YT_SURVEY";
} Returns {
COMMENT: "COMMENT";
CONFIG: "CONFIG";
META: "META";
NOTIFICATION: "NOTIFICATION";
ORDER: "ORDER";
REACTION: "REACTION";
SERVICE: "SERVICE";
SETLIST: "SETLIST";
USER: "USER";
WORDPAETY: "WORDPAETY";
YT_SURVEY: "YT_SURVEY";
}
Readonly
COMMENT: "COMMENT"
Readonly
CONFIG: "CONFIG"
Readonly
META: "META"
Readonly
NOTIFICATION: "NOTIFICATION"
Readonly
ORDER: "ORDER"
Readonly
REACTION: "REACTION"
Readonly
SERVICE: "SERVICE"
Readonly
SETLIST: "SETLIST"
Readonly
USER: "USER"
Readonly
WORDPAETY: "WORDPAETY"
Readonly
YT_SURVEY: "YT_SURVEY"
connected
- get connected(): boolean
Returns boolean
Methods
checkLicensed
- checkLicensed(): Promise<boolean>
Returns Promise<boolean>
connect
- connect(): Promise<void>
Returns Promise<void>
delete
- delete<T>(url, config): Promise<AxiosResponse<any, any>>
Parameters
- url: string
- config: AxiosRequestConfig<T>
Returns Promise<AxiosResponse<any, any>>
get
- get<T>(url, config): Promise<AxiosResponse<any, any>>
Parameters
- url: string
- config: AxiosRequestConfig<T>
Returns Promise<AxiosResponse<any, any>>
getCommentStyle
- getCommentStyle(comment): {
[key: string]: any;
} Returns {
[key: string]: any;
}
getPinnedComment
- getPinnedComment(): Promise<null | Comment>
Returns Promise<null | Comment>
getStyleVariable
- getStyleVariable<T>(name, defaultValue, parser?): T
Parameters
- name: string
- defaultValue: T
- parser: ((val) => T) = ...
Returns T
post
- post<T>(url, config): Promise<AxiosResponse<any, any>>
Parameters
- url: string
- config: AxiosRequestConfig<T>
Returns Promise<AxiosResponse<any, any>>
put
- put<T>(url, config): Promise<AxiosResponse<any, any>>
Parameters
- url: string
- config: AxiosRequestConfig<T>
Returns Promise<AxiosResponse<any, any>>
ready
- ready(): Promise<void>
Returns Promise<void>
reset
- reset(): void
Returns void
searchComments
- searchComments(params): Promise<Comment[]>
Parameters
- params: {
comments: string[];
services: string[];
}comments: string[]
services: string[]
Returns Promise<Comment[]>
setup
- setup(op?): Promise<void>
Returns Promise<void>
subscribe
- subscribe<T>(subscriber): number
Returns number
unsubscribe
- unsubscribe(subscriberId): void
Returns void