mirror of
https://github.com/DerTyp7/react-teamspeak-remote-app-api-types.git
synced 2025-10-30 13:17:10 +01:00
first commit
This commit is contained in:
73
src/types/events.ts
Normal file
73
src/types/events.ts
Normal file
@@ -0,0 +1,73 @@
|
||||
import { ChannelProperties, ClientProperties, Invoker } from "../index";
|
||||
|
||||
export interface LogEvent {
|
||||
type: string;
|
||||
payload: {
|
||||
channel: string;
|
||||
complete: string;
|
||||
id: number;
|
||||
level: number;
|
||||
message: string;
|
||||
time: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface TalkStatusChangedEvent {
|
||||
type: string;
|
||||
payload: {
|
||||
clientId: number;
|
||||
connectionId: number;
|
||||
isWhisper: boolean;
|
||||
status: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ChannelPropertiesUpdatedEvent {
|
||||
type: string;
|
||||
payload: {
|
||||
channelId: string;
|
||||
connectionId: number;
|
||||
properties: ChannelProperties;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ClientMovedEvent {
|
||||
type: string;
|
||||
payload: {
|
||||
clientId: number;
|
||||
connectionId: number;
|
||||
hotReload: boolean;
|
||||
newChannelId: string;
|
||||
oldChannelId: string;
|
||||
properties: ClientProperties;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ChannelEditedEvent {
|
||||
type: string;
|
||||
payload: {
|
||||
channelId: string;
|
||||
connectionId: number;
|
||||
invoker: Invoker;
|
||||
properties: ChannelProperties;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ClientPropertiesUpdatedEvent {
|
||||
type: string;
|
||||
payload: {
|
||||
clientId: number;
|
||||
connectionId: number;
|
||||
properties: ClientProperties;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ClientSelfPropertiesUpdatedEvent {
|
||||
type: string;
|
||||
payload: {
|
||||
connectionId: number;
|
||||
flag: string;
|
||||
newValue: string;
|
||||
oldValue: string;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user