cmd-control-client-lib 3.0.358 → 3.0.360
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/@types/enum-status-type.d.ts +30 -0
- package/dist/cmd-connection.d.ts +3 -1
- package/dist/cmd-control-client-lib.js +1 -1
- package/dist/cmd-control-client-lib.js.map +1 -1
- package/dist/protocol/b2b/b2buserinfo.d.ts +3 -1
- package/dist/protocol/channel.d.ts +9 -2
- package/dist/protocol/command/action.d.ts +6 -1
- package/dist/protocol/live/live-commands.d.ts +4 -0
- package/dist/protocol/live/livechat.d.ts +3 -1
- package/dist/protocol/live/msettings.d.ts +7 -1
- package/dist/protocol/live/streamstate.d.ts +6 -0
- package/dist/protocol/live/ticketshow.d.ts +3 -1
- package/dist/protocol/media-b2b.d.ts +4 -7
- package/dist/protocol/media.d.ts +40 -6
- package/dist/protocol/message.d.ts +3 -1
- package/package.json +1 -1
|
@@ -38,7 +38,9 @@ interface IUserInfo extends IKeyValue {
|
|
|
38
38
|
canReceiveVideo?: EnumBooleanStringified;
|
|
39
39
|
canSendMedia?: EnumBooleanStringified;
|
|
40
40
|
canReceiveMedia?: EnumBooleanStringified;
|
|
41
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated/obsolete
|
|
43
|
+
*/
|
|
42
44
|
canReceiveTicket?: EnumBooleanStringified;
|
|
43
45
|
canOfferMedia?: EnumBooleanStringified;
|
|
44
46
|
canPurchaseMedia?: EnumBooleanStringified;
|
|
@@ -152,7 +152,9 @@ export declare type channelIdSelector = {
|
|
|
152
152
|
selectBadges?: ComaSeparatedValues<EnumBadge> | string;
|
|
153
153
|
selectFollowMe?: EnumBooleanStringified;
|
|
154
154
|
groupId?: ComaSeparatedValues<string> | string;
|
|
155
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* @deprecated/ignored
|
|
157
|
+
*/
|
|
156
158
|
selectVip?: EnumBooleanStringified;
|
|
157
159
|
};
|
|
158
160
|
export declare type channelIdFilter = {
|
|
@@ -217,6 +219,9 @@ export declare type getChannelsParamsType = {
|
|
|
217
219
|
skip?: string;
|
|
218
220
|
/** limit, default is 1000 */
|
|
219
221
|
limit?: string;
|
|
222
|
+
/**
|
|
223
|
+
* @deprecated/obsolete, ignored
|
|
224
|
+
*/
|
|
220
225
|
sort?: EnumSortOrder;
|
|
221
226
|
/** get CMDC_CONTACTNOTE in commands, default 0, deprecated */
|
|
222
227
|
contactNote?: EnumBooleanStringifiedExtended;
|
|
@@ -229,7 +234,9 @@ export declare type getChannelsParamsType = {
|
|
|
229
234
|
/** get CMDC_CHANNELGROUP in commands */
|
|
230
235
|
groupInfo?: EnumBooleanStringifiedExtended;
|
|
231
236
|
/** search for contact-name, default empty */
|
|
232
|
-
/**
|
|
237
|
+
/**
|
|
238
|
+
* @deprecated. obsolete
|
|
239
|
+
*/
|
|
233
240
|
contactSearch?: string;
|
|
234
241
|
};
|
|
235
242
|
/**
|
|
@@ -62,6 +62,9 @@ export declare enum ACTION {
|
|
|
62
62
|
CMDP_TRACERT_REPLY = "CMDP_TRACERT_REPLY",
|
|
63
63
|
CMDP_STOPSEND = "CMDP_STOPSEND",
|
|
64
64
|
CMDP_STARTSEND = "CMDP_STARTSEND",
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated/obsolete
|
|
67
|
+
*/
|
|
65
68
|
CMDP_SERVICE0900 = "CMDP_SERVICE0900",
|
|
66
69
|
CMDP_NOOP = "CMDP_NOOP",
|
|
67
70
|
CMDP_QUERYBACKEND = "CMDP_QUERYBACKEND",
|
|
@@ -211,5 +214,7 @@ export declare enum ACTION {
|
|
|
211
214
|
CMDP_SGETTPLCATEGORIES = "CMDP_SGETTPLCATEGORIES",
|
|
212
215
|
CMDP_SUPSERTTPLCATEGORY = "CMDP_SUPSERTTPLCATEGORY",
|
|
213
216
|
CMDP_SDELETETPLCATEGORY = "CMDP_SDELETETPLCATEGORY",
|
|
214
|
-
CMDP_SGETCHANNELMESSAGE = "CMDP_SGETCHANNELMESSAGE"
|
|
217
|
+
CMDP_SGETCHANNELMESSAGE = "CMDP_SGETCHANNELMESSAGE",
|
|
218
|
+
CMDP_SGETMEDIAHISTORY = "CMDP_SGETMEDIAHISTORY",
|
|
219
|
+
CMDP_SGETMEDIAHISTORYSUMMARY = "CMDP_SGETMEDIAHISTORYSUMMARY"
|
|
215
220
|
}
|
|
@@ -201,6 +201,8 @@ export interface IQueryUserParams {
|
|
|
201
201
|
sound: string;
|
|
202
202
|
btnDefault: EnumBooleanDigitized;
|
|
203
203
|
btndef: QueryUserButtons;
|
|
204
|
+
CMDP_QUERYUSER: any;
|
|
205
|
+
recordSingleChat?: EnumBooleanDigitized;
|
|
204
206
|
}
|
|
205
207
|
export declare class CMDC_QUERYUSER implements ICOMMAND {
|
|
206
208
|
action: ACTION;
|
|
@@ -221,6 +223,8 @@ export declare class CMDP_QUERYUSER implements ICOMMAND {
|
|
|
221
223
|
queryId: string;
|
|
222
224
|
/** if the answer sent by timeout */
|
|
223
225
|
isTimeout?: EnumBooleanDigitized;
|
|
226
|
+
/** if not set, default setting used */
|
|
227
|
+
recordSingleChat?: EnumBooleanDigitized;
|
|
224
228
|
};
|
|
225
229
|
}
|
|
226
230
|
export declare class CMDP_QUERYUSER_RESPONSE extends CMDP_QUERYUSER implements IRESPONSE {
|
|
@@ -32,8 +32,14 @@ export declare enum MSettingValueTypeEnum {
|
|
|
32
32
|
export declare class MSetting {
|
|
33
33
|
name: MSettingNameEnum;
|
|
34
34
|
type: MSettingValueTypeEnum;
|
|
35
|
-
isDisabled: boolean;
|
|
36
35
|
isReadOnly: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated/obsolete
|
|
38
|
+
*/
|
|
39
|
+
isDisabled: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated/obsolete
|
|
42
|
+
*/
|
|
37
43
|
isOnlineChangeAllowed: boolean;
|
|
38
44
|
}
|
|
39
45
|
export declare class MSettingFloat extends MSetting {
|
|
@@ -22,7 +22,13 @@ export declare class CMDC_STREAMSTATE implements ICOMMAND {
|
|
|
22
22
|
videoFps?: string;
|
|
23
23
|
hasAudio?: EnumBooleanStringifiedExtended;
|
|
24
24
|
audioMuted?: EnumBooleanStringifiedExtended;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated/ obsolete
|
|
27
|
+
*/
|
|
25
28
|
bandwith?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated/ obsolete
|
|
31
|
+
*/
|
|
26
32
|
videoHeigth?: string;
|
|
27
33
|
};
|
|
28
34
|
}
|
|
@@ -12,7 +12,9 @@ export declare type ticketShow = {
|
|
|
12
12
|
showEnd: string;
|
|
13
13
|
/** show Name, readonly*/
|
|
14
14
|
showName: string;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated/ use pictureId
|
|
17
|
+
*/
|
|
16
18
|
showImageUrl?: string;
|
|
17
19
|
/** pictureId, the replacement for showImageUrl*/
|
|
18
20
|
pictureId?: string;
|
|
@@ -23,7 +23,6 @@ export declare type MediaPrices = {
|
|
|
23
23
|
imagePrices: PriceInstruction;
|
|
24
24
|
audioPrices: PriceInstruction;
|
|
25
25
|
videoPrices: PriceInstruction;
|
|
26
|
-
/** deprecated*/
|
|
27
26
|
ticketPrices?: Record<EnumTicketType, TicketPriceDuration>;
|
|
28
27
|
};
|
|
29
28
|
/**
|
|
@@ -66,13 +65,11 @@ export declare class CMDP_SMEDIAOFFERCREATE_RESPONSE extends CMDP_SMEDIAOFFERCRE
|
|
|
66
65
|
*/
|
|
67
66
|
export declare class CMDP_SINFORMMEDIAPURCHASED implements ICOMMAND {
|
|
68
67
|
action: ACTION;
|
|
69
|
-
params: baseParamsType &
|
|
68
|
+
params: baseParamsType &
|
|
69
|
+
/** channel id */
|
|
70
|
+
channelIdType &
|
|
70
71
|
/** the message id of related media offer */
|
|
71
|
-
MessageId &
|
|
72
|
-
/** MediaPrice is added to proxy call from CmdControl to B2B backend */
|
|
73
|
-
MediaPrice &
|
|
74
|
-
/** MediaFile is added to proxy call from CmdControl to B2B backend */
|
|
75
|
-
MediaFile & {
|
|
72
|
+
MessageId & {
|
|
76
73
|
billId: string;
|
|
77
74
|
};
|
|
78
75
|
}
|
package/dist/protocol/media.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EnumBooleanStringifiedExtended } from "../@types";
|
|
2
|
-
import { channelIdType } from "./channel";
|
|
1
|
+
import { EnumBooleanStringifiedExtended, JSONString } from "../@types";
|
|
2
|
+
import { channelIdType, EnumChannelFilterValues, EnumSortOrder } from "./channel";
|
|
3
3
|
import { ACTION } from "./command/action";
|
|
4
4
|
import { baseParamsType } from "./command/baseparams";
|
|
5
5
|
import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
|
|
6
|
-
import { EnumMediaState, EnumMediaType, MediaFile, MediaMd5, MediaPrice } from "./message";
|
|
6
|
+
import { CMDC_CMSG, EnumMediaState, EnumMediaType, EnumMessageDirection, MediaFile, MediaMd5, MediaPrice } from "./message";
|
|
7
7
|
import { ComaSeparatedValues } from "./sessionstate";
|
|
8
8
|
export declare type MayHaveChannelId = {
|
|
9
9
|
channelId?: string;
|
|
@@ -114,11 +114,45 @@ export declare class CMDP_SGETCHANNELDMEDIASUMMARY implements ICOMMAND {
|
|
|
114
114
|
action: ACTION;
|
|
115
115
|
params: baseParamsType & channelIdType;
|
|
116
116
|
}
|
|
117
|
-
/**
|
|
118
|
-
* response
|
|
119
|
-
*/
|
|
120
117
|
export declare class CMDP_SGETCHANNELDMEDIASUMMARY_RESPONSE extends CMDP_SGETCHANNELDMEDIASUMMARY implements IRESPONSE {
|
|
121
118
|
result: RESULT;
|
|
122
119
|
commands: CMDC_CHANNELMEDIASUMMARY[];
|
|
123
120
|
values: IKeyMaybeValue;
|
|
124
121
|
}
|
|
122
|
+
export declare class CMDP_SGETMEDIAHISTORY implements ICOMMAND {
|
|
123
|
+
action: ACTION;
|
|
124
|
+
params: baseParamsType & channelIdType & {
|
|
125
|
+
filterDeleted?: EnumChannelFilterValues;
|
|
126
|
+
filterMediaType?: ComaSeparatedValues<EnumMediaType>;
|
|
127
|
+
filterLinkState?: ComaSeparatedValues<ChannelMediaLinkState>;
|
|
128
|
+
filterDirection?: EnumMessageDirection | "any";
|
|
129
|
+
limit?: string;
|
|
130
|
+
offset?: string;
|
|
131
|
+
sort?: EnumSortOrder;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
export declare class CMDP_SGETMEDIAHISTORY_RESPONSE extends CMDP_SGETMEDIAHISTORY implements IRESPONSE {
|
|
135
|
+
result: RESULT;
|
|
136
|
+
commands: CMDC_CMSG[];
|
|
137
|
+
values: {
|
|
138
|
+
count: string;
|
|
139
|
+
total: string;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
export declare class CMDP_SGETMEDIAHISTORYSUMMARY implements ICOMMAND {
|
|
143
|
+
action: ACTION;
|
|
144
|
+
params: baseParamsType & channelIdType & {
|
|
145
|
+
filterDeleted?: EnumChannelFilterValues;
|
|
146
|
+
filterMediaType?: ComaSeparatedValues<EnumMediaType>;
|
|
147
|
+
filterLinkState?: ComaSeparatedValues<ChannelMediaLinkState>;
|
|
148
|
+
filterDirection?: EnumMessageDirection | "any";
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
export declare type MediaCounterType = Map<EnumMediaType, number>;
|
|
152
|
+
export declare class CMDP_SGETMEDIAHISTORYSUMMARY_RESPONSE extends CMDP_SGETMEDIAHISTORYSUMMARY implements IRESPONSE {
|
|
153
|
+
result: RESULT;
|
|
154
|
+
commands: ICOMMAND[];
|
|
155
|
+
values: {
|
|
156
|
+
counts: JSONString<MediaCounterType>;
|
|
157
|
+
};
|
|
158
|
+
}
|