cmd-control-client-lib 3.0.170 → 3.0.171
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/channel.d.ts +26 -23
- package/dist/protocol/command/baseparams.d.ts +1 -1
- package/dist/protocol/mediaupload.d.ts +3 -3
- package/dist/protocol/message.d.ts +3 -3
- package/package.json +1 -1
|
@@ -152,27 +152,7 @@ export declare type channelIdSelector = {
|
|
|
152
152
|
/** deprecated */
|
|
153
153
|
groupId?: ComaSeparatedValues<string> | string;
|
|
154
154
|
};
|
|
155
|
-
export declare type
|
|
156
|
-
/** from serial, default = 0 */
|
|
157
|
-
serial?: string;
|
|
158
|
-
/** query offset */
|
|
159
|
-
skip?: string;
|
|
160
|
-
/** limit, default is 1000 */
|
|
161
|
-
limit?: string;
|
|
162
|
-
sort?: EnumSortOrder;
|
|
163
|
-
/** get CMDC_CONTACTNOTE in commands, default 0, deprecated */
|
|
164
|
-
contactNote?: EnumBooleanStringifiedExtended;
|
|
165
|
-
/** get CMDC_CONTACTINFO in commands, default 0, allowed for b2b session only */
|
|
166
|
-
contactInfo?: EnumBooleanStringifiedExtended;
|
|
167
|
-
/** get CMDC_CHANNELINFO in commands, default 0 */
|
|
168
|
-
channelInfo?: EnumBooleanStringifiedExtended;
|
|
169
|
-
/** get CMDC_ONLINESTATE in commands */
|
|
170
|
-
onlineState?: EnumBooleanStringifiedExtended;
|
|
171
|
-
/** get CMDC_CHANNELGROUP in commands */
|
|
172
|
-
groupInfo?: EnumBooleanStringifiedExtended;
|
|
173
|
-
/** search for contact-name, default empty */
|
|
174
|
-
/**deprecated */
|
|
175
|
-
contactSearch?: string;
|
|
155
|
+
export declare type channelIdFilter = {
|
|
176
156
|
/** search for contact-name, default empty, any lenght */
|
|
177
157
|
filterContactName?: string;
|
|
178
158
|
/** filter channels without incoming messages, default any */
|
|
@@ -208,19 +188,42 @@ export declare type getChannelsParamsType = {
|
|
|
208
188
|
filterCanReceiveTicket?: EnumChannelFilterValues;
|
|
209
189
|
/** media purchasing filter */
|
|
210
190
|
filterCanPurchaseMedia?: EnumChannelFilterValues;
|
|
211
|
-
/** filter by group id,
|
|
191
|
+
/** filter by group id, coma separated */
|
|
212
192
|
filterGroupId?: string;
|
|
213
193
|
/** filter by badges */
|
|
214
194
|
selectBadges?: ComaSeparatedValues<EnumBadge> | string;
|
|
215
195
|
/**filterActive*/
|
|
216
196
|
filterActive?: EnumChannelFilterValues;
|
|
217
197
|
};
|
|
198
|
+
export declare type channelIdSelectOrFilter = channelIdSelector | channelIdFilter;
|
|
199
|
+
export declare type getChannelsParamsType = {
|
|
200
|
+
/** from serial, default = 0 */
|
|
201
|
+
serial?: string;
|
|
202
|
+
/** query offset */
|
|
203
|
+
skip?: string;
|
|
204
|
+
/** limit, default is 1000 */
|
|
205
|
+
limit?: string;
|
|
206
|
+
sort?: EnumSortOrder;
|
|
207
|
+
/** get CMDC_CONTACTNOTE in commands, default 0, deprecated */
|
|
208
|
+
contactNote?: EnumBooleanStringifiedExtended;
|
|
209
|
+
/** get CMDC_CONTACTINFO in commands, default 0, allowed for b2b session only */
|
|
210
|
+
contactInfo?: EnumBooleanStringifiedExtended;
|
|
211
|
+
/** get CMDC_CHANNELINFO in commands, default 0 */
|
|
212
|
+
channelInfo?: EnumBooleanStringifiedExtended;
|
|
213
|
+
/** get CMDC_ONLINESTATE in commands */
|
|
214
|
+
onlineState?: EnumBooleanStringifiedExtended;
|
|
215
|
+
/** get CMDC_CHANNELGROUP in commands */
|
|
216
|
+
groupInfo?: EnumBooleanStringifiedExtended;
|
|
217
|
+
/** search for contact-name, default empty */
|
|
218
|
+
/**deprecated */
|
|
219
|
+
contactSearch?: string;
|
|
220
|
+
};
|
|
218
221
|
/**
|
|
219
222
|
* Query for ChannelList
|
|
220
223
|
*/
|
|
221
224
|
export declare class CMDP_GETCHANNELS implements ICOMMAND {
|
|
222
225
|
action: ACTION;
|
|
223
|
-
params: baseParamsType &
|
|
226
|
+
params: baseParamsType & getChannelsParamsType & channelIdSelectOrFilter & {
|
|
224
227
|
countOnly?: EnumBooleanStringified;
|
|
225
228
|
};
|
|
226
229
|
}
|
|
@@ -20,7 +20,7 @@ export declare type baseParamsType = {
|
|
|
20
20
|
agent?: CmdClientAgent;
|
|
21
21
|
/** your sessionID from CMDP_LOGIN_RESPONSE, Ignored in CMDP_LOGIN, CMDP_INIT */
|
|
22
22
|
sessionID?: string;
|
|
23
|
-
/** the format, use 'json', 'plain' is default, but
|
|
23
|
+
/** the format, use 'json', 'plain' is default, but deprecated */
|
|
24
24
|
format?: EnumFormatValues;
|
|
25
25
|
/** short json, use '1' , default is '0' and force delivery of plain-text non-json format response */
|
|
26
26
|
strip?: EnumBooleanStringified;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBACKENDPAYLOAD } from "./backend";
|
|
2
|
-
import {
|
|
2
|
+
import { channelIdSelectOrFilter } from "./channel";
|
|
3
3
|
import { ACTION } from "./command/action";
|
|
4
4
|
import { baseParamsType } from "./command/baseparams";
|
|
5
5
|
import { ICOMMAND, IRESPONSE, RESULT, IKeyMaybeValue } from "./command/icommand";
|
|
@@ -40,13 +40,13 @@ export declare type UploadServiceReadOnlyParams = {
|
|
|
40
40
|
*/
|
|
41
41
|
export declare class CMDP_SUPLOADMEDIA implements ICOMMAND {
|
|
42
42
|
action: ACTION;
|
|
43
|
-
params: baseParamsType &
|
|
43
|
+
params: baseParamsType & channelIdSelectOrFilter & MessageParams & MediaOffer;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Response for CMDP_SUPLOADMEDIA
|
|
47
47
|
*/
|
|
48
48
|
export declare class CMDP_SUPLOADMEDIA_RESPONSE extends CMDP_SUPLOADMEDIA implements IRESPONSE, IBACKENDPAYLOAD {
|
|
49
|
-
params: baseParamsType &
|
|
49
|
+
params: baseParamsType & channelIdSelectOrFilter & MessageParams & MediaOffer & UploadServiceReadOnlyParams;
|
|
50
50
|
result: RESULT;
|
|
51
51
|
commands: ICOMMAND[];
|
|
52
52
|
values: IKeyMaybeValue & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { channelIdSelectOrFilter, channelIdType, IMayHaveChannelId } from "./channel";
|
|
2
2
|
import { EnumBooleanStringified, EnumCurrency } from "../@types";
|
|
3
3
|
import { SystemMessageKey } from "./systemmessagekey";
|
|
4
4
|
import { IBACKENDPAYLOAD } from "./backend";
|
|
@@ -171,7 +171,7 @@ export declare class CMDC_CMSG implements ICOMMAND {
|
|
|
171
171
|
*/
|
|
172
172
|
export declare class CMDP_MSG implements ICOMMAND, IBACKENDPAYLOAD {
|
|
173
173
|
action: ACTION;
|
|
174
|
-
params: baseParamsType & MessageParams &
|
|
174
|
+
params: baseParamsType & MessageParams & channelIdSelectOrFilter;
|
|
175
175
|
/** if jwt-session, any json-payload for transport to backend */
|
|
176
176
|
payload?: unknown;
|
|
177
177
|
}
|
|
@@ -234,7 +234,7 @@ export declare class CMDP_SMSGREACTION_RESPONSE extends CMDP_SMSGREACTION implem
|
|
|
234
234
|
*/
|
|
235
235
|
export declare class CMDP_SMSGESTIMATE implements ICOMMAND {
|
|
236
236
|
action: ACTION;
|
|
237
|
-
params: baseParamsType &
|
|
237
|
+
params: baseParamsType & channelIdSelectOrFilter & {
|
|
238
238
|
mediaMd5?: string;
|
|
239
239
|
countOnly?: EnumBooleanStringified;
|
|
240
240
|
};
|