mirror of
https://github.com/DerTyp7/react-teamspeak-remote-app-api-types.git
synced 2026-07-31 08:59:04 +02:00
bump version to 1.1.0 and add IGroup and related event interfaces
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-teamspeak-remote-app-api-types",
|
||||
"version": "1.0.4",
|
||||
"version": "1.1.0",
|
||||
"description": "Types for the TeamSpeak 5/6 Remote App API",
|
||||
"license": "ISC",
|
||||
"type": "commonjs",
|
||||
|
||||
@@ -219,4 +219,17 @@ export interface IInvoker {
|
||||
id: number;
|
||||
name: string;
|
||||
uniqueIdentifier: string;
|
||||
}
|
||||
|
||||
export interface IGroup {
|
||||
iconId: number;
|
||||
id: string;
|
||||
name: string;
|
||||
nameMode: number;
|
||||
neededMemberAddPower: number;
|
||||
neededMemberRemovePower: number;
|
||||
neededModifyPower: number;
|
||||
saveDb: boolean;
|
||||
sortId: string;
|
||||
type: number;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IChannelProperties, IClientProperties, IInvoker, IServerProperties } from "../index";
|
||||
import { IChannelInfos, IChannelProperties, IClientProperties, IGroup, IInvoker, IServerProperties } from "../index";
|
||||
|
||||
export interface ILogEvent {
|
||||
type: string;
|
||||
@@ -78,4 +78,44 @@ export interface IServerPropertiesUpdatedEvent {
|
||||
connectionId: number;
|
||||
properties: IServerProperties;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IGroupInfoEvent {
|
||||
type: string;
|
||||
payload: {
|
||||
connectionId: number;
|
||||
data: IGroup[];
|
||||
type: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface INeededPermissionsEvent {
|
||||
type: string;
|
||||
payload: {
|
||||
connectionId: number;
|
||||
data: {
|
||||
[key: string]: number;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
export interface IChannelsEvent {
|
||||
type: string;
|
||||
payload: {
|
||||
connectionId: number;
|
||||
hotReload: boolean;
|
||||
info: IChannelInfos;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IConnectStatusChangedEvent {
|
||||
type: string;
|
||||
payload: {
|
||||
connectionId: number;
|
||||
status: number;
|
||||
hotReload: boolean;
|
||||
info: null | {
|
||||
clientId: number;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user