cmd-control-client-lib 3.0.149 → 3.0.151
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.
|
@@ -157,6 +157,7 @@ export declare type getChannelsParamsType = {
|
|
|
157
157
|
skip?: string;
|
|
158
158
|
/** limit, default is 1000 */
|
|
159
159
|
limit?: string;
|
|
160
|
+
sort?: EnumSortOrder;
|
|
160
161
|
/** get CMDC_CONTACTNOTE in commands, default 0, deprecated */
|
|
161
162
|
contactNote?: EnumBooleanStringifiedExtended;
|
|
162
163
|
/** get CMDC_CONTACTINFO in commands, default 0, allowed for b2b session only */
|
|
@@ -168,8 +169,10 @@ export declare type getChannelsParamsType = {
|
|
|
168
169
|
/** get CMDC_CHANNELGROUP in commands */
|
|
169
170
|
groupInfo?: EnumBooleanStringifiedExtended;
|
|
170
171
|
/** search for contact-name, default empty */
|
|
172
|
+
/**deprecated */
|
|
171
173
|
contactSearch?: string;
|
|
172
|
-
|
|
174
|
+
/** search for contact-name, default empty, any lenght */
|
|
175
|
+
filterContactName?: string;
|
|
173
176
|
/** filter channels without incoming messages, default any */
|
|
174
177
|
filterEmptyIn?: EnumChannelFilterValues;
|
|
175
178
|
/** filter channels without outgoing messages, default any */
|
|
@@ -203,25 +206,30 @@ export declare type getChannelsParamsType = {
|
|
|
203
206
|
filterCanReceiveTicket?: EnumChannelFilterValues;
|
|
204
207
|
/** media purchasing filter */
|
|
205
208
|
filterCanPurchaseMedia?: EnumChannelFilterValues;
|
|
206
|
-
/** filter by group */
|
|
209
|
+
/** filter by group id, comaseparated */
|
|
207
210
|
filterGroupId?: string;
|
|
211
|
+
/**filterActive*/
|
|
212
|
+
filterActive?: EnumChannelFilterValues;
|
|
208
213
|
};
|
|
209
214
|
/**
|
|
210
215
|
* Query for ChannelList
|
|
211
216
|
*/
|
|
212
217
|
export declare class CMDP_GETCHANNELS implements ICOMMAND {
|
|
213
218
|
action: ACTION;
|
|
214
|
-
params: baseParamsType & getChannelsParamsType
|
|
219
|
+
params: baseParamsType & (getChannelsParamsType | channelIdSelector) & {
|
|
220
|
+
countOnly?: EnumBooleanStringified;
|
|
221
|
+
};
|
|
215
222
|
}
|
|
216
223
|
/**
|
|
217
224
|
* Response for CMDP_GETCHANNELS
|
|
218
225
|
*/
|
|
219
226
|
export declare class CMDP_GETCHANNELS_RESPONSE extends CMDP_GETCHANNELS implements IRESPONSE {
|
|
220
227
|
result: RESULT;
|
|
221
|
-
/** channels */
|
|
222
|
-
commands:
|
|
223
|
-
|
|
224
|
-
|
|
228
|
+
/** channels & channel infos, if countOnly omited or "false" */
|
|
229
|
+
commands: ICOMMAND[];
|
|
230
|
+
values: IKeyMaybeValue & {
|
|
231
|
+
channelCount?: string;
|
|
232
|
+
};
|
|
225
233
|
}
|
|
226
234
|
/** synonym, 8320 only */
|
|
227
235
|
export declare class CMDP_SGETCHANNELS extends CMDP_GETCHANNELS {
|
|
@@ -233,19 +241,21 @@ export declare class CMDP_SGETCHANNELS_RESPONSE extends CMDP_GETCHANNELS_RESPONS
|
|
|
233
241
|
}
|
|
234
242
|
/** searchAfter must be used together */
|
|
235
243
|
export declare type IMayHaveSearchAfter = {
|
|
244
|
+
/** filter for datetime, value like CMDC_CMSG.param.timeSent (unix time stamp in ms)*/
|
|
236
245
|
searchAfterTime?: string;
|
|
237
246
|
searchAfterId?: string;
|
|
238
247
|
};
|
|
239
248
|
export declare type getHistoryParamsType = IMayHaveChannelId & IMayHaveSearchAfter & {
|
|
249
|
+
/** filter for msgType. coma separated */
|
|
250
|
+
filterMessageType?: EnumMessageType | string;
|
|
251
|
+
/** filter for isDeleted*/
|
|
252
|
+
filterDeleted?: EnumChannelFilterValues;
|
|
240
253
|
/** number of messages, max & default is 100 */
|
|
241
254
|
limit?: string;
|
|
242
255
|
/** sort by sent, default is DESC */
|
|
243
256
|
sort?: EnumSortOrder;
|
|
257
|
+
/** deprecated */
|
|
244
258
|
keys?: EnumBooleanStringifiedExtended;
|
|
245
|
-
/** filter for msgType. comaseparated */
|
|
246
|
-
filterMessageType?: EnumMessageType | string;
|
|
247
|
-
/** filter for isDeleted*/
|
|
248
|
-
filterDeleted?: EnumChannelFilterValues;
|
|
249
259
|
};
|
|
250
260
|
/**
|
|
251
261
|
* Get messages history for channel
|
|
@@ -265,6 +275,26 @@ export declare class CMDP_GETHISTORY_RESPONSE extends CMDP_GETHISTORY implements
|
|
|
265
275
|
/** unused */
|
|
266
276
|
values: IKeyMaybeValue;
|
|
267
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Get messages history for channel
|
|
280
|
+
* Multichannel command
|
|
281
|
+
*/
|
|
282
|
+
export declare class CMDP_SGETMESSAGEHISTORY implements ICOMMAND {
|
|
283
|
+
action: ACTION;
|
|
284
|
+
params: baseParamsType & getHistoryParamsType & {
|
|
285
|
+
chatIDs?: string;
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Response for CMDP_GETHISTORY
|
|
290
|
+
*/
|
|
291
|
+
export declare class CMDP_SGETMESSAGEHISTORY_RESPONSE extends CMDP_SGETMESSAGEHISTORY implements IRESPONSE {
|
|
292
|
+
result: RESULT;
|
|
293
|
+
/** found messages */
|
|
294
|
+
commands: CMDC_CMSG[];
|
|
295
|
+
/** unused */
|
|
296
|
+
values: IKeyMaybeValue;
|
|
297
|
+
}
|
|
268
298
|
export declare type channelSeenParamsType = channelIdType & {
|
|
269
299
|
/** last seen messageId, by default all messages marked as seen */
|
|
270
300
|
messageId?: string;
|
|
@@ -154,5 +154,6 @@ export declare enum ACTION {
|
|
|
154
154
|
CMDP_CSTATUS = "CMDP_CSTATUS",
|
|
155
155
|
CMDP_CINIT = "CMDP_CINIT",
|
|
156
156
|
CMDP_SMSGREACTION = "CMDP_SMSGREACTION",
|
|
157
|
-
CMDC_SSTATUS = "CMDC_SSTATUS"
|
|
157
|
+
CMDC_SSTATUS = "CMDC_SSTATUS",
|
|
158
|
+
CMDP_SGETMESSAGEHISTORY = "CMDP_SGETMESSAGEHISTORY"
|
|
158
159
|
}
|