cmd-control-client-lib 3.0.359 → 3.0.361
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-control-client-lib.js +1 -1
- package/dist/cmd-control-client-lib.js.map +1 -1
- package/dist/protocol/command/action.d.ts +3 -1
- package/dist/protocol/init.d.ts +8 -3
- package/dist/protocol/live/live-commands.d.ts +4 -0
- package/dist/protocol/live/msettings.d.ts +3 -1
- package/dist/protocol/media-b2b.d.ts +5 -7
- package/dist/protocol/media.d.ts +40 -6
- package/package.json +1 -1
|
@@ -214,5 +214,7 @@ export declare enum ACTION {
|
|
|
214
214
|
CMDP_SGETTPLCATEGORIES = "CMDP_SGETTPLCATEGORIES",
|
|
215
215
|
CMDP_SUPSERTTPLCATEGORY = "CMDP_SUPSERTTPLCATEGORY",
|
|
216
216
|
CMDP_SDELETETPLCATEGORY = "CMDP_SDELETETPLCATEGORY",
|
|
217
|
-
CMDP_SGETCHANNELMESSAGE = "CMDP_SGETCHANNELMESSAGE"
|
|
217
|
+
CMDP_SGETCHANNELMESSAGE = "CMDP_SGETCHANNELMESSAGE",
|
|
218
|
+
CMDP_SGETMEDIAHISTORY = "CMDP_SGETMEDIAHISTORY",
|
|
219
|
+
CMDP_SGETMEDIAHISTORYSUMMARY = "CMDP_SGETMEDIAHISTORYSUMMARY"
|
|
218
220
|
}
|
package/dist/protocol/init.d.ts
CHANGED
|
@@ -19,11 +19,16 @@ export interface IInitBackendPayload {
|
|
|
19
19
|
icons: any;
|
|
20
20
|
}
|
|
21
21
|
export declare type UploadMediaTus = {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
authHeader: string;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated/obsolete
|
|
25
|
+
*/
|
|
26
|
+
chunkSize?: number;
|
|
24
27
|
chunksNumber: number;
|
|
28
|
+
endPoint: string;
|
|
29
|
+
maxChunkSize: number;
|
|
30
|
+
minChunkSize: number;
|
|
25
31
|
parallelUploads: number;
|
|
26
|
-
authHeader: string;
|
|
27
32
|
};
|
|
28
33
|
/**
|
|
29
34
|
* the initial command
|
|
@@ -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 {
|
|
@@ -21,7 +21,8 @@ export declare enum MSettingNameEnum {
|
|
|
21
21
|
SERVICE0900_ENABLED = "Service0900Enabled",
|
|
22
22
|
SERCIVE0900WEBSIP_ENABLED = "Service0900WebSipEnabled",
|
|
23
23
|
SERVICE0900WEBSIP_VISIBLE = "Service0900WebSipVisible",
|
|
24
|
-
SERVICE0900PHONE_ENABLED = "Service0900PhoneEnabled"
|
|
24
|
+
SERVICE0900PHONE_ENABLED = "Service0900PhoneEnabled",
|
|
25
|
+
MESSAGETEMPLATES_ENABLED = "MessageTemplatesEnabled"
|
|
25
26
|
}
|
|
26
27
|
export declare enum MSettingValueTypeEnum {
|
|
27
28
|
FLOAT = "float",
|
|
@@ -102,6 +103,7 @@ export declare class MSettings {
|
|
|
102
103
|
[MSettingNameEnum.SERCIVE0900WEBSIP_ENABLED]?: MSettingBool;
|
|
103
104
|
[MSettingNameEnum.SERVICE0900WEBSIP_VISIBLE]?: MSettingBool;
|
|
104
105
|
[MSettingNameEnum.SERVICE0900PHONE_ENABLED]?: MSettingBool;
|
|
106
|
+
[MSettingNameEnum.MESSAGETEMPLATES_ENABLED]?: MSettingBool;
|
|
105
107
|
};
|
|
106
108
|
}
|
|
107
109
|
/**
|
|
@@ -65,14 +65,12 @@ export declare class CMDP_SMEDIAOFFERCREATE_RESPONSE extends CMDP_SMEDIAOFFERCRE
|
|
|
65
65
|
*/
|
|
66
66
|
export declare class CMDP_SINFORMMEDIAPURCHASED implements ICOMMAND {
|
|
67
67
|
action: ACTION;
|
|
68
|
-
params: baseParamsType &
|
|
68
|
+
params: baseParamsType &
|
|
69
|
+
/** channel id */
|
|
70
|
+
channelIdType &
|
|
69
71
|
/** the message id of related media offer */
|
|
70
|
-
MessageId &
|
|
71
|
-
|
|
72
|
-
MediaPrice &
|
|
73
|
-
/** MediaFile is added to proxy call from CmdControl to B2B backend */
|
|
74
|
-
MediaFile & {
|
|
75
|
-
billId: string;
|
|
72
|
+
MessageId & {
|
|
73
|
+
billId?: string;
|
|
76
74
|
};
|
|
77
75
|
}
|
|
78
76
|
/**
|
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
|
+
}
|