cmd-control-client-lib 3.0.17 → 3.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cmd-protocol.d.ts
CHANGED
|
@@ -33,4 +33,5 @@ export * from "./protocol/live/streamstate";
|
|
|
33
33
|
export * from "./protocol/live/onlinesummary";
|
|
34
34
|
export * from "./protocol/live/usersettings";
|
|
35
35
|
export * from "./protocol/messenger/expo";
|
|
36
|
+
export * from "./protocol/messenger/signup";
|
|
36
37
|
export { SupportedLanguage, CmdClientAgent, EnumFormatValues, baseParamsType } from "./protocol/command/baseparams";
|
|
@@ -293,6 +293,49 @@ export declare class CMDP_UPDATECHANNEL_RESPONSE extends CMDP_UPDATECHANNEL impl
|
|
|
293
293
|
values: IKeyMaybeValue;
|
|
294
294
|
payload?: unknown;
|
|
295
295
|
}
|
|
296
|
+
/**
|
|
297
|
+
* channel summary info
|
|
298
|
+
*/
|
|
299
|
+
export declare type channelSummaryInfo = {
|
|
300
|
+
[key: string]: string;
|
|
301
|
+
/** your business id */
|
|
302
|
+
usrId: string;
|
|
303
|
+
/** usrKey of your user */
|
|
304
|
+
usrKey: string;
|
|
305
|
+
/** number of channel */
|
|
306
|
+
channels: string;
|
|
307
|
+
/** number of unseen messages */
|
|
308
|
+
unseen: string;
|
|
309
|
+
/** number of unseen messages */
|
|
310
|
+
unseenWithoutArchived: string;
|
|
311
|
+
/** number of unanswered channels */
|
|
312
|
+
unanswered: string;
|
|
313
|
+
/** last time of incoming message */
|
|
314
|
+
lastTimeIn: string;
|
|
315
|
+
/** last time of outgoing message */
|
|
316
|
+
lastTimeOut: string;
|
|
317
|
+
/** number of archived channels */
|
|
318
|
+
archived: string;
|
|
319
|
+
/** number of advertised channels */
|
|
320
|
+
advertised: string;
|
|
321
|
+
/** number of regular channels */
|
|
322
|
+
regular: string;
|
|
323
|
+
/** number of pinned channels */
|
|
324
|
+
pinned: string;
|
|
325
|
+
/** number of muted channels */
|
|
326
|
+
muted: string;
|
|
327
|
+
/** number of banned channels */
|
|
328
|
+
banned: string;
|
|
329
|
+
/** number of vip channels */
|
|
330
|
+
vip: string;
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
333
|
+
* channel summary
|
|
334
|
+
*/
|
|
335
|
+
export declare class CMDC_CHANNELSUMMARY implements ICOMMAND {
|
|
336
|
+
action: ACTION;
|
|
337
|
+
params: channelSummaryInfo;
|
|
338
|
+
}
|
|
296
339
|
/**
|
|
297
340
|
* Query the summary info about all channels
|
|
298
341
|
*/
|
|
@@ -308,36 +351,5 @@ export declare class CMDP_CHANNELSSUMMARY_RESPONSE extends CMDP_CHANNELSSUMMARY
|
|
|
308
351
|
/** unused */
|
|
309
352
|
commands: ICOMMAND[];
|
|
310
353
|
/** the summary info */
|
|
311
|
-
values:
|
|
312
|
-
/** your business id */
|
|
313
|
-
usrId: string;
|
|
314
|
-
/** usrKey of your user */
|
|
315
|
-
usrKey: string;
|
|
316
|
-
/** number of channel */
|
|
317
|
-
channels: string;
|
|
318
|
-
/** number of unseen messages */
|
|
319
|
-
unseen: string;
|
|
320
|
-
/** number of unseen messages */
|
|
321
|
-
unseenWithoutArchived: string;
|
|
322
|
-
/** number of unanswered channels */
|
|
323
|
-
unanswered: string;
|
|
324
|
-
/** last time of incoming message */
|
|
325
|
-
lastTimeIn: string;
|
|
326
|
-
/** last time of outgoing message */
|
|
327
|
-
lastTimeOut: string;
|
|
328
|
-
/** number of archived channels */
|
|
329
|
-
archived: string;
|
|
330
|
-
/** number of advertised channels */
|
|
331
|
-
advertised: string;
|
|
332
|
-
/** number of regular channels */
|
|
333
|
-
regular: string;
|
|
334
|
-
/** number of pinned channels */
|
|
335
|
-
pinned: string;
|
|
336
|
-
/** number of muted channels */
|
|
337
|
-
muted: string;
|
|
338
|
-
/** number of banned channels */
|
|
339
|
-
banned: string;
|
|
340
|
-
/** number of vip channels */
|
|
341
|
-
vip: string;
|
|
342
|
-
};
|
|
354
|
+
values: channelSummaryInfo;
|
|
343
355
|
}
|
|
@@ -112,5 +112,7 @@ export declare enum ACTION {
|
|
|
112
112
|
CMDP_GETSETTINGS = "CMDP_GETSETTINGS",
|
|
113
113
|
CMDC_MEDIAPURCHASED = "CMDC_MEDIAPURCHASED",
|
|
114
114
|
CMDP_SGETMEDIAINFO = "CMDP_SGETMEDIAINFO",
|
|
115
|
-
CMDP_SFORWARDMEDIA = "CMDP_SFORWARDMEDIA"
|
|
115
|
+
CMDP_SFORWARDMEDIA = "CMDP_SFORWARDMEDIA",
|
|
116
|
+
CMDP_SIGNUP = "CMDP_SIGNUP",
|
|
117
|
+
CMDP_RESETPASSWORD = "CMDP_RESETPASSWORD"
|
|
116
118
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ACTION } from "../command/action";
|
|
2
|
+
import { baseParamsType } from "../command/baseparams";
|
|
3
|
+
import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../command/icommand";
|
|
4
|
+
/**
|
|
5
|
+
* Create new user account
|
|
6
|
+
*/
|
|
7
|
+
export declare class CMDP_SIGNUP implements ICOMMAND {
|
|
8
|
+
action: ACTION;
|
|
9
|
+
params: baseParamsType & {
|
|
10
|
+
login: string;
|
|
11
|
+
password: string;
|
|
12
|
+
ualias: string;
|
|
13
|
+
language: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* reponse
|
|
18
|
+
*/
|
|
19
|
+
export declare class CMDP_SIGNUP_RESPONSE extends CMDP_SIGNUP implements IRESPONSE {
|
|
20
|
+
result: RESULT;
|
|
21
|
+
commands: ICOMMAND[];
|
|
22
|
+
values: IKeyMaybeValue;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* query password reset
|
|
26
|
+
*/
|
|
27
|
+
export declare class CMDP_RESETPASSWORD implements ICOMMAND {
|
|
28
|
+
action: ACTION;
|
|
29
|
+
params: baseParamsType & {
|
|
30
|
+
login: string;
|
|
31
|
+
language: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* reponse
|
|
36
|
+
*/
|
|
37
|
+
export declare class CMDP_RESETPASSWORD_RESPONSE extends CMDP_SIGNUP implements IRESPONSE {
|
|
38
|
+
result: RESULT;
|
|
39
|
+
commands: ICOMMAND[];
|
|
40
|
+
values: IKeyMaybeValue;
|
|
41
|
+
}
|