@rongcloud/engine 5.7.2-beem.2 → 5.7.2-beem.4
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 +60 -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,17 @@ 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[];
|
|
3956
|
+
/**
|
|
3957
|
+
* 设置消息可搜索内容
|
|
3958
|
+
* @param messageId
|
|
3959
|
+
* @param content
|
|
3960
|
+
*/
|
|
3961
|
+
setMessageSearchContent(messageId: number, content: string): Promise<ErrorCode>;
|
|
3951
3962
|
/**
|
|
3952
3963
|
* 按msgUids打量获取消息
|
|
3953
3964
|
*/
|
|
@@ -4141,6 +4152,14 @@ interface IEngine {
|
|
|
4141
4152
|
* 获取群组消息已读列表
|
|
4142
4153
|
*/
|
|
4143
4154
|
getMessageReader(targetId: string, messageUId: string, channelId?: string): IPromiseResult<IMessageReaderResponse>;
|
|
4155
|
+
/**
|
|
4156
|
+
* 设置群组消息已读
|
|
4157
|
+
*/
|
|
4158
|
+
setReadMessages(targetId: string, channelId: string, beginMessageUId: string, endMessageUId: string): Promise<IAsyncRes>;
|
|
4159
|
+
/**
|
|
4160
|
+
* 获取群组消息已读回执信息
|
|
4161
|
+
*/
|
|
4162
|
+
getMessageReceiptInfo(targetId: string, messageUId: string, channelId?: string): IPromiseResult<IMessageReaderResponse>;
|
|
4144
4163
|
/**
|
|
4145
4164
|
* 获取服务器时间
|
|
4146
4165
|
*/
|
|
@@ -5284,6 +5303,11 @@ declare class APIContext {
|
|
|
5284
5303
|
* @param messageUIds
|
|
5285
5304
|
*/
|
|
5286
5305
|
getMessageReader(targetId: string, messageUId: string, channelId?: string): Promise<IAsyncRes<IMessageReaderResponse>>;
|
|
5306
|
+
setReadMessages(targetId: string, channelId: string, beginMessageUId: string, endMessageUId: string): Promise<IAsyncRes>;
|
|
5307
|
+
/**
|
|
5308
|
+
* 获取群组消息已读回执
|
|
5309
|
+
*/
|
|
5310
|
+
getMessageReceiptInfo(targetId: string, messageUId: string, channelId?: string): Promise<IAsyncRes<IMessageReaderResponse>>;
|
|
5287
5311
|
/**
|
|
5288
5312
|
* 反初始化,清空所有监听及计时器
|
|
5289
5313
|
*/
|
|
@@ -5368,7 +5392,20 @@ declare class APIContext {
|
|
|
5368
5392
|
*/
|
|
5369
5393
|
getFirstUnreadMessage(conversationType: ConversationType, targetId: string, channelId?: string): Promise<IAsyncRes<IReceivedMessage | null>>;
|
|
5370
5394
|
/**
|
|
5371
|
-
* 按
|
|
5395
|
+
* 按UIds批量获取消息
|
|
5396
|
+
* @param msgUids
|
|
5397
|
+
* @returns
|
|
5398
|
+
*/
|
|
5399
|
+
getMessageByUids(msgUids: string[]): IReceivedMessage[];
|
|
5400
|
+
/**
|
|
5401
|
+
* 设置消息可搜索内容
|
|
5402
|
+
* @param messageId
|
|
5403
|
+
* @param content
|
|
5404
|
+
* @returns
|
|
5405
|
+
*/
|
|
5406
|
+
setMessageSearchContent(messageId: number, content: string): Promise<ErrorCode>;
|
|
5407
|
+
/**
|
|
5408
|
+
* 会话内按msgUids批量获取消息
|
|
5372
5409
|
*/
|
|
5373
5410
|
getMessageByMsgUids(targetId: string, channelId: string, conversationType: ConversationType, msgUids: string[]): IReceivedMessage[];
|
|
5374
5411
|
/**
|
|
@@ -6400,6 +6437,17 @@ declare abstract class AEngine {
|
|
|
6400
6437
|
* 获取第一个未读消息
|
|
6401
6438
|
*/
|
|
6402
6439
|
abstract getFirstUnreadMessage(conversationType: ConversationType, targetId: string, channelId: string): IPromiseResult<IReceivedMessage | null>;
|
|
6440
|
+
/**
|
|
6441
|
+
* 按msgUids批量获取消息
|
|
6442
|
+
* @param msgUids
|
|
6443
|
+
*/
|
|
6444
|
+
abstract getMessageByUids(msgUids: string[]): IReceivedMessage[];
|
|
6445
|
+
/**
|
|
6446
|
+
* 设置消息可搜索内容
|
|
6447
|
+
* @param messageId
|
|
6448
|
+
* @param content
|
|
6449
|
+
*/
|
|
6450
|
+
abstract setMessageSearchContent(messageId: number, content: string): Promise<ErrorCode>;
|
|
6403
6451
|
/**
|
|
6404
6452
|
* 按msgUids批量获取消息
|
|
6405
6453
|
*/
|
|
@@ -6445,6 +6493,17 @@ declare abstract class AEngine {
|
|
|
6445
6493
|
* @param messageUIds
|
|
6446
6494
|
*/
|
|
6447
6495
|
abstract getMessageReader(targetId: string, messageUId: string, channelId?: string): IPromiseResult<IMessageReaderResponse>;
|
|
6496
|
+
/**
|
|
6497
|
+
* 发送群组消息已读回执
|
|
6498
|
+
*/
|
|
6499
|
+
abstract setReadMessages(targetId: string, channelId: string, beginMessageUId: string, endMessageUId: string): Promise<IAsyncRes>;
|
|
6500
|
+
/**
|
|
6501
|
+
* 发送群组消息已读回执
|
|
6502
|
+
* @param targetId
|
|
6503
|
+
* @param messageUId
|
|
6504
|
+
* @param channelId
|
|
6505
|
+
*/
|
|
6506
|
+
abstract getMessageReceiptInfo(targetId: string, messageUId: string, channelId?: string): IPromiseResult<IMessageReaderResponse>;
|
|
6448
6507
|
/**
|
|
6449
6508
|
* 断开连接
|
|
6450
6509
|
* @param closeDB 是否关闭数据库,默认为 true,仅 Electron 平台有效
|