@rongcloud/engine 5.7.2-beem.2 → 5.7.2-beem.3
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/index.d.ts +41 -1
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3948,6 +3948,11 @@ interface IEngine {
|
|
|
3948
3948
|
* 获取第一个未读消息
|
|
3949
3949
|
*/
|
|
3950
3950
|
getFirstUnreadMessage(conversationType: ConversationType, targetId: string, channelId: string): IPromiseResult<IReceivedMessage | null>;
|
|
3951
|
+
/**
|
|
3952
|
+
* 按UId批量取消息
|
|
3953
|
+
* @param msgUids
|
|
3954
|
+
*/
|
|
3955
|
+
getMessageByUids(msgUids: string[]): IReceivedMessage[];
|
|
3951
3956
|
/**
|
|
3952
3957
|
* 按msgUids打量获取消息
|
|
3953
3958
|
*/
|
|
@@ -4141,6 +4146,14 @@ interface IEngine {
|
|
|
4141
4146
|
* 获取群组消息已读列表
|
|
4142
4147
|
*/
|
|
4143
4148
|
getMessageReader(targetId: string, messageUId: string, channelId?: string): IPromiseResult<IMessageReaderResponse>;
|
|
4149
|
+
/**
|
|
4150
|
+
* 设置群组消息已读
|
|
4151
|
+
*/
|
|
4152
|
+
setReadMessages(targetId: string, channelId: string, beginMessageUId: string, endMessageUId: string): Promise<IAsyncRes>;
|
|
4153
|
+
/**
|
|
4154
|
+
* 获取群组消息已读回执信息
|
|
4155
|
+
*/
|
|
4156
|
+
getMessageReceiptInfo(targetId: string, messageUId: string, channelId?: string): IPromiseResult<IMessageReaderResponse>;
|
|
4144
4157
|
/**
|
|
4145
4158
|
* 获取服务器时间
|
|
4146
4159
|
*/
|
|
@@ -5284,6 +5297,11 @@ declare class APIContext {
|
|
|
5284
5297
|
* @param messageUIds
|
|
5285
5298
|
*/
|
|
5286
5299
|
getMessageReader(targetId: string, messageUId: string, channelId?: string): Promise<IAsyncRes<IMessageReaderResponse>>;
|
|
5300
|
+
setReadMessages(targetId: string, channelId: string, beginMessageUId: string, endMessageUId: string): Promise<IAsyncRes>;
|
|
5301
|
+
/**
|
|
5302
|
+
* 获取群组消息已读回执
|
|
5303
|
+
*/
|
|
5304
|
+
getMessageReceiptInfo(targetId: string, messageUId: string, channelId?: string): Promise<IAsyncRes<IMessageReaderResponse>>;
|
|
5287
5305
|
/**
|
|
5288
5306
|
* 反初始化,清空所有监听及计时器
|
|
5289
5307
|
*/
|
|
@@ -5368,7 +5386,13 @@ declare class APIContext {
|
|
|
5368
5386
|
*/
|
|
5369
5387
|
getFirstUnreadMessage(conversationType: ConversationType, targetId: string, channelId?: string): Promise<IAsyncRes<IReceivedMessage | null>>;
|
|
5370
5388
|
/**
|
|
5371
|
-
* 按
|
|
5389
|
+
* 按UIds批量获取消息
|
|
5390
|
+
* @param msgUids
|
|
5391
|
+
* @returns
|
|
5392
|
+
*/
|
|
5393
|
+
getMessageByUids(msgUids: string[]): IReceivedMessage[];
|
|
5394
|
+
/**
|
|
5395
|
+
* 会话内按msgUids批量获取消息
|
|
5372
5396
|
*/
|
|
5373
5397
|
getMessageByMsgUids(targetId: string, channelId: string, conversationType: ConversationType, msgUids: string[]): IReceivedMessage[];
|
|
5374
5398
|
/**
|
|
@@ -6400,6 +6424,11 @@ declare abstract class AEngine {
|
|
|
6400
6424
|
* 获取第一个未读消息
|
|
6401
6425
|
*/
|
|
6402
6426
|
abstract getFirstUnreadMessage(conversationType: ConversationType, targetId: string, channelId: string): IPromiseResult<IReceivedMessage | null>;
|
|
6427
|
+
/**
|
|
6428
|
+
* 按msgUids批量获取消息
|
|
6429
|
+
* @param msgUids
|
|
6430
|
+
*/
|
|
6431
|
+
abstract getMessageByUids(msgUids: string[]): IReceivedMessage[];
|
|
6403
6432
|
/**
|
|
6404
6433
|
* 按msgUids批量获取消息
|
|
6405
6434
|
*/
|
|
@@ -6445,6 +6474,17 @@ declare abstract class AEngine {
|
|
|
6445
6474
|
* @param messageUIds
|
|
6446
6475
|
*/
|
|
6447
6476
|
abstract getMessageReader(targetId: string, messageUId: string, channelId?: string): IPromiseResult<IMessageReaderResponse>;
|
|
6477
|
+
/**
|
|
6478
|
+
* 发送群组消息已读回执
|
|
6479
|
+
*/
|
|
6480
|
+
abstract setReadMessages(targetId: string, channelId: string, beginMessageUId: string, endMessageUId: string): Promise<IAsyncRes>;
|
|
6481
|
+
/**
|
|
6482
|
+
* 发送群组消息已读回执
|
|
6483
|
+
* @param targetId
|
|
6484
|
+
* @param messageUId
|
|
6485
|
+
* @param channelId
|
|
6486
|
+
*/
|
|
6487
|
+
abstract getMessageReceiptInfo(targetId: string, messageUId: string, channelId?: string): IPromiseResult<IMessageReaderResponse>;
|
|
6448
6488
|
/**
|
|
6449
6489
|
* 断开连接
|
|
6450
6490
|
* @param closeDB 是否关闭数据库,默认为 true,仅 Electron 平台有效
|