bump version to 1.1.0 and add IGroup and related event interfaces

This commit is contained in:
DerTyp7
2025-02-02 03:24:55 +01:00
parent 32527f04d8
commit b8ec940729
3 changed files with 55 additions and 2 deletions

View File

@@ -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",

View File

@@ -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;
}

View File

@@ -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;
}
};
}