Skip to content

Commit 36d4002

Browse files
committed
Add TODOs
1 parent c8f32db commit 36d4002

File tree

2 files changed

+145
-4
lines changed

2 files changed

+145
-4
lines changed

index.d.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ export declare class TeamSpeakClient extends events.EventEmitter {
4747
public send(cmd: "login", params: LoginParams): Q.Promise<CallbackData<LoginResponseData>>;
4848
public send(cmd: "logout"): Q.Promise<CallbackData<LogoutResponseData>>;
4949
public send(cmd: "version"): Q.Promise<CallbackData<VersionResponseData>>;
50+
public send(cmd: "hostinfo"): Q.Promise<CallbackData<HostInfoResponseData>>;
51+
public send(cmd: "instanceinfo"): Q.Promise<CallbackData<InstanceInfoResponseData>>;
52+
public send(cmd: "instanceedit"): Q.Promise<CallbackData<InstanceEditResponseData>>;
53+
public send(cmd: "bindinglist"): Q.Promise<CallbackData<BindingListResponseData>>;
5054
public send(cmd: "use", params: UseParams): Q.Promise<CallbackData<UseResponseData>>;
55+
public send(cmd: "serverstart", params: ServerStartStopParams): Q.Promise<CallbackData<ServerStartStopResponseData>>;
56+
public send(cmd: "serverstop", params: ServerStartStopParams): Q.Promise<CallbackData<ServerStartStopResponseData>>;
5157
public send(cmd: "clientlist", params: ClientListParams): Q.Promise<CallbackData<ClientListResponseData>>;
5258
public send(cmd: string): Q.Promise<CallbackData<QueryResponseItem>>;
5359
public send(cmd: string, params: IAssoc<Object>, options: string[]): Q.Promise<CallbackData<QueryResponseItem>>;
@@ -102,6 +108,10 @@ export interface UseResponseData extends QueryResponseItem {
102108
export interface UseParams extends IAssoc<any> {
103109
sid: number;
104110
}
111+
export interface ServerStartStopParams extends UseParams {
112+
}
113+
export interface ServerStartStopResponseData extends QueryResponseItem {
114+
}
105115
export interface ClientListResponseData extends QueryResponseItem {
106116
}
107117
export interface ClientListParams extends IAssoc<any> {
@@ -160,6 +170,8 @@ export interface HostInfoResponseData extends QueryResponseItem {
160170
virtualservers_running_total: number;
161171
connection_filetransfer_bandwidth_sent: number;
162172
}
173+
export interface InstanceInfoResponseData extends QueryResponseItem {
174+
}
163175
export interface InstanceEditResponseData extends QueryResponseItem {
164176
}
165177
export interface InstanceEditParams extends IAssoc<any>, InstancePropertiesChangable {
@@ -210,7 +222,7 @@ export interface InstancePropertiesChangable {
210222
*/
211223
SERVERINSTANCE_SERVERQUERY_FLOOD_BAN_TIME: number;
212224
}
213-
export interface BindingListParams extends IAssoc<any> {
225+
export interface BindingListResponseData extends QueryResponseItem {
214226
}
215227
export interface VirtualServerPropertiesChangable {
216228
/**

index.ts

+132-3
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,129 @@ export class TeamSpeakClient extends events.EventEmitter
165165
* Sends a command to the server
166166
*/
167167
// TODO: Only include constant overloads to force corrent parameterization
168+
169+
// TODO: help
170+
// TODO: quit
168171
public send(cmd: "login", params: LoginParams): Q.Promise<CallbackData<LoginResponseData>>;
169172
public send(cmd: "logout"): Q.Promise<CallbackData<LogoutResponseData>>;
170173
public send(cmd: "version"): Q.Promise<CallbackData<VersionResponseData>>;
174+
public send(cmd: "hostinfo"): Q.Promise<CallbackData<HostInfoResponseData>>;
175+
public send(cmd: "instanceinfo"): Q.Promise<CallbackData<InstanceInfoResponseData>>;
176+
public send(cmd: "instanceedit"): Q.Promise<CallbackData<InstanceEditResponseData>>;
177+
public send(cmd: "bindinglist"): Q.Promise<CallbackData<BindingListResponseData>>;
171178
public send(cmd: "use", params: UseParams): Q.Promise<CallbackData<UseResponseData>>;
179+
// TODO: serverlist
180+
// TODO: serveridgetbyport
181+
// TODO: serverdelete
182+
// TODO: servercreate
183+
public send(cmd: "serverstart", params: ServerStartStopParams): Q.Promise<CallbackData<ServerStartStopResponseData>>;
184+
public send(cmd: "serverstop", params: ServerStartStopParams): Q.Promise<CallbackData<ServerStartStopResponseData>>;
185+
// TODO: serverprocessstop
186+
// TODO: serverinfo
187+
// TODO: serverrequestconnectioninfo
188+
// TODO: serveredit
189+
// TODO: servergrouplist
190+
// TODO: servergroupadd
191+
// TODO: servergroupdel
192+
// TODO: servergroupcopy
193+
// TODO: servergrouprename
194+
// TODO: servergrouppermlist
195+
// TODO: servergroupaddperm
196+
// TODO: servergroupdelperm
197+
// TODO: servergroupaddclient
198+
// TODO: servergroupdelclient
199+
// TODO: servergroupclientlist
200+
// TODO: servergroupsbyclientid
201+
// TODO: servergroupautoaddperm
202+
// TODO: servergroupautodelperm
203+
// TODO: serversnapshotcreate
204+
// TODO: serversnapshotdeploy
205+
// TODO: servernotifyregister
206+
// TODO: servernotifyunregister
207+
// TODO: sendtextmessage
208+
// TODO: logview
209+
// TODO: logadd
210+
// TODO: gm
211+
// TODO: channellist
212+
// TODO: channelinfo
213+
// TODO: channelfind
214+
// TODO: channelmove
215+
// TODO: channelcreate
216+
// TODO: channeldelete
217+
// TODO: channeledit
218+
// TODO: channelgrouplist
219+
// TODO: channelgroupadd
220+
// TODO: channelgroupdel
221+
// TODO: channelgroupcopy
222+
// TODO: channelgrouprename
223+
// TODO: channelgroupaddperm
224+
// TODO: channelgrouppermlist
225+
// TODO: channelgroupdelperm
226+
// TODO: channelgroupclientlist
227+
// TODO: setclientchannelgroup
228+
// TODO: channelpermlist
229+
// TODO: channeladdperm
230+
// TODO: channeldelperm
231+
// TODO: clientlist
232+
// TODO: clientinfo
233+
// TODO: clientfind
234+
// TODO: clientedit
235+
// TODO: clientdblist
236+
// TODO: clientdbinfo
237+
// TODO: clientdbfind
238+
// TODO: clientdbedit
239+
// TODO: clientdbdelete
240+
// TODO: clientgetids
241+
// TODO: clientgetdbidfromuid
242+
// TODO: clientgetnamefromuid
243+
// TODO: clientgetnamefromdbid
244+
// TODO: clientsetserverquerylogin
245+
// TODO: clientupdate
246+
// TODO: clientmove
247+
// TODO: clientkick
248+
// TODO: clientpoke
249+
// TODO: clientpermlist
250+
// TODO: clientaddperm
251+
// TODO: clientdelperm
252+
// TODO: channelclientpermlist
253+
// TODO: channelclientaddperm
254+
// TODO: channelclientdelperm
255+
// TODO: permissionlist
256+
// TODO: permidgetbyname
257+
// TODO: permoverview
258+
// TODO: permget
259+
// TODO: permfind
260+
// TODO: permrest
261+
// TODO: privilegekeylist
262+
// TODO: privilegekeyadd
263+
// TODO: privilegekeydelete
264+
// TODO: privilegekeyuse
265+
// TODO: messageadd
266+
// TODO: messagedel
267+
// TODO: messageget
268+
// TODO: messageupdateflag
269+
// TODO: complainlist
270+
// TODO: complainadd
271+
// TODO: complaindelall
272+
// TODO: complaindel
273+
// TODO: banclient
274+
// TODO: banlist
275+
// TODO: banadd
276+
// TODO: bandel
277+
// TODO: bandelall
278+
// TODO: ftinitupload
279+
// TODO: ftinitdownload
280+
// TODO: ftlist
281+
// TODO: ftgetfileinfo
282+
// TODO: ftstop
283+
// TODO: ftdeletefile
284+
// TODO: ftrenamefile
285+
// TODO: customsearch
286+
// TODO: custominfo
287+
// TODO: whoami
172288
public send(cmd: "clientlist", params: ClientListParams): Q.Promise<CallbackData<ClientListResponseData>>;
173289

290+
174291
public send(cmd: string): Q.Promise<CallbackData<QueryResponseItem>>;
175292
//public send(cmd: string, params: IAssoc<Object>): Q.Promise<CallbackData>;
176293
public send(cmd: string, params: IAssoc<Object>, options: string[]): Q.Promise<CallbackData<QueryResponseItem>>;
@@ -376,12 +493,16 @@ export interface UseParams extends IAssoc<any>
376493
sid: number;
377494
}
378495

496+
export interface ServerStartStopParams extends UseParams
497+
{ }
498+
export interface ServerStartStopResponseData extends QueryResponseItem
499+
{ }
500+
379501
export interface ClientListResponseData extends QueryResponseItem
380502
{ }
381503
export interface ClientListParams extends IAssoc<any>
382504
{ }
383505

384-
385506
/**
386507
* Specialized callback data for a failed request.
387508
*/
@@ -453,6 +574,12 @@ export interface HostInfoResponseData extends QueryResponseItem
453574
host_timestamp_utc: number;
454575
virtualservers_running_total: number;
455576
connection_filetransfer_bandwidth_sent: number;
577+
// TODO
578+
}
579+
580+
export interface InstanceInfoResponseData extends QueryResponseItem
581+
{
582+
// TODO
456583
}
457584

458585
export interface InstanceEditResponseData extends QueryResponseItem
@@ -583,8 +710,10 @@ interface InstancePropertiesReadOnly
583710
interface InstanceProperties extends InstancePropertiesReadOnly, InstancePropertiesChangable
584711
{ }
585712

586-
export interface BindingListParams extends IAssoc<any>
587-
{ }
713+
export interface BindingListResponseData extends QueryResponseItem
714+
{
715+
//TODO
716+
}
588717

589718
export interface VirtualServerPropertiesChangable
590719
{

0 commit comments

Comments
 (0)