cmd-control-client-lib 3.0.150 → 3.0.153
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 */
|
|
@@ -238,19 +241,21 @@ export declare class CMDP_SGETCHANNELS_RESPONSE extends CMDP_GETCHANNELS_RESPONS
|
|
|
238
241
|
}
|
|
239
242
|
/** searchAfter must be used together */
|
|
240
243
|
export declare type IMayHaveSearchAfter = {
|
|
244
|
+
/** filter for datetime, value like CMDC_CMSG.param.timeSent (unix time stamp in ms)*/
|
|
241
245
|
searchAfterTime?: string;
|
|
242
246
|
searchAfterId?: string;
|
|
243
247
|
};
|
|
244
248
|
export declare type getHistoryParamsType = IMayHaveChannelId & IMayHaveSearchAfter & {
|
|
249
|
+
/** filter for msgType. coma separated */
|
|
250
|
+
filterMessageType?: EnumMessageType | string;
|
|
251
|
+
/** filter for isDeleted*/
|
|
252
|
+
filterDeleted?: EnumChannelFilterValues;
|
|
245
253
|
/** number of messages, max & default is 100 */
|
|
246
254
|
limit?: string;
|
|
247
255
|
/** sort by sent, default is DESC */
|
|
248
256
|
sort?: EnumSortOrder;
|
|
257
|
+
/** deprecated */
|
|
249
258
|
keys?: EnumBooleanStringifiedExtended;
|
|
250
|
-
/** filter for msgType. comaseparated */
|
|
251
|
-
filterMessageType?: EnumMessageType | string;
|
|
252
|
-
/** filter for isDeleted*/
|
|
253
|
-
filterDeleted?: EnumChannelFilterValues;
|
|
254
259
|
};
|
|
255
260
|
/**
|
|
256
261
|
* Get messages history for channel
|
|
@@ -270,6 +275,26 @@ export declare class CMDP_GETHISTORY_RESPONSE extends CMDP_GETHISTORY implements
|
|
|
270
275
|
/** unused */
|
|
271
276
|
values: IKeyMaybeValue;
|
|
272
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
|
+
}
|
|
273
298
|
export declare type channelSeenParamsType = channelIdType & {
|
|
274
299
|
/** last seen messageId, by default all messages marked as seen */
|
|
275
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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumBooleanDigitized, EnumBooleanStringified, JSONString } from "../../@types";
|
|
2
|
-
import { ACTION, baseParamsType, chatIdType, CMDC_CMSG, ICOMMAND } from "../../cmd-protocol";
|
|
2
|
+
import { ACTION, baseParamsType, chatIdType, CMDC_CMSG, EnumChannelFilterValues, ICOMMAND } from "../../cmd-protocol";
|
|
3
3
|
import { IKeyMaybeValue, IRESPONSE, RESULT } from "../command/icommand";
|
|
4
4
|
/**
|
|
5
5
|
* Chat flags
|
|
@@ -272,6 +272,12 @@ export declare class CMDP_GETLIVEHISTORY implements ICOMMAND {
|
|
|
272
272
|
dateFrom?: string;
|
|
273
273
|
/** json-encoded datetime, default now() +1 day */
|
|
274
274
|
dateTo?: string;
|
|
275
|
+
/** filter empty live sessions*/
|
|
276
|
+
filterEmpty?: EnumChannelFilterValues;
|
|
277
|
+
/** pagination */
|
|
278
|
+
skip?: string;
|
|
279
|
+
/** pagination */
|
|
280
|
+
limit?: string;
|
|
275
281
|
};
|
|
276
282
|
}
|
|
277
283
|
/**
|
|
@@ -283,10 +289,10 @@ export declare class CMDP_GETLIVEHISTORY_RESPONSE extends CMDP_GETLIVEHISTORY im
|
|
|
283
289
|
commands: ICOMMAND[];
|
|
284
290
|
values: {
|
|
285
291
|
/** json-encoded datetime*/
|
|
286
|
-
|
|
292
|
+
firstSession: string;
|
|
287
293
|
/** json-encoded datetime*/
|
|
288
|
-
|
|
289
|
-
/** number of
|
|
290
|
-
|
|
294
|
+
lastSession: string;
|
|
295
|
+
/** number of Sessions */
|
|
296
|
+
totalSessions: string;
|
|
291
297
|
};
|
|
292
298
|
}
|