From d447ac285613923b07e820379d6969731eee76d0 Mon Sep 17 00:00:00 2001 From: DerTyp7 Date: Sun, 9 Feb 2025 20:52:23 +0100 Subject: [PATCH] bump version to 1.1.1 and add IConnectionStatus interface with updated IConnectStatusChangedEvent --- package.json | 2 +- src/types/entities.ts | 12 ++++++++++++ src/types/events.ts | 11 ++--------- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 539da29..fcb2383 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/types/entities.ts b/src/types/entities.ts index 3eb5e83..a65efa5 100644 --- a/src/types/entities.ts +++ b/src/types/entities.ts @@ -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; } \ No newline at end of file diff --git a/src/types/events.ts b/src/types/events.ts index 33c3ea4..3194c1c 100644 --- a/src/types/events.ts +++ b/src/types/events.ts @@ -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; } \ No newline at end of file