bump version to 1.1.1 and add IConnectionStatus interface with updated IConnectStatusChangedEvent

This commit is contained in:
2025-02-09 20:52:23 +01:00
parent b8ec940729
commit d447ac2856
3 changed files with 15 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "react-teamspeak-remote-app-api-types",
"version": "1.1.0",
"version": "1.1.1",
"description": "Types for the TeamSpeak 5/6 Remote App API",
"license": "ISC",
"type": "commonjs",

View File

@@ -232,4 +232,16 @@ export interface IGroup {
saveDb: boolean;
sortId: string;
type: number;
}
export interface IConnectionStatus {
connectionId: number;
error: string;
hotReload: boolean;
info?: {
clientId: number;
serverName: string;
serverUid: string;
}
status: number;
}

View File

@@ -1,4 +1,4 @@
import { IChannelInfos, IChannelProperties, IClientProperties, IGroup, IInvoker, IServerProperties } from "../index";
import { IChannelInfos, IChannelProperties, IClientProperties, IConnectionStatus, IGroup, IInvoker, IServerProperties } from "../index";
export interface ILogEvent {
type: string;
@@ -110,12 +110,5 @@ export interface IChannelsEvent {
export interface IConnectStatusChangedEvent {
type: string;
payload: {
connectionId: number;
status: number;
hotReload: boolean;
info: null | {
clientId: number;
}
};
payload: IConnectionStatus;
}