@rongcloud/engine 5.7.2-beem.1 → 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 +52 -0
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3948,6 +3948,15 @@ 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
|
+
* 按msgUids打量获取消息
|
|
3958
|
+
*/
|
|
3959
|
+
getMessageByMsgUids(targetId: string, channelId: string, conversationType: ConversationType, msgUids: string[]): IReceivedMessage[];
|
|
3951
3960
|
/**
|
|
3952
3961
|
* 设置/保存指定会话消息草稿
|
|
3953
3962
|
* @draft 草稿内容
|
|
@@ -4137,6 +4146,14 @@ interface IEngine {
|
|
|
4137
4146
|
* 获取群组消息已读列表
|
|
4138
4147
|
*/
|
|
4139
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>;
|
|
4140
4157
|
/**
|
|
4141
4158
|
* 获取服务器时间
|
|
4142
4159
|
*/
|
|
@@ -5280,6 +5297,11 @@ declare class APIContext {
|
|
|
5280
5297
|
* @param messageUIds
|
|
5281
5298
|
*/
|
|
5282
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>>;
|
|
5283
5305
|
/**
|
|
5284
5306
|
* 反初始化,清空所有监听及计时器
|
|
5285
5307
|
*/
|
|
@@ -5363,6 +5385,16 @@ declare class APIContext {
|
|
|
5363
5385
|
* 获取第一个未读消息
|
|
5364
5386
|
*/
|
|
5365
5387
|
getFirstUnreadMessage(conversationType: ConversationType, targetId: string, channelId?: string): Promise<IAsyncRes<IReceivedMessage | null>>;
|
|
5388
|
+
/**
|
|
5389
|
+
* 按UIds批量获取消息
|
|
5390
|
+
* @param msgUids
|
|
5391
|
+
* @returns
|
|
5392
|
+
*/
|
|
5393
|
+
getMessageByUids(msgUids: string[]): IReceivedMessage[];
|
|
5394
|
+
/**
|
|
5395
|
+
* 会话内按msgUids批量获取消息
|
|
5396
|
+
*/
|
|
5397
|
+
getMessageByMsgUids(targetId: string, channelId: string, conversationType: ConversationType, msgUids: string[]): IReceivedMessage[];
|
|
5366
5398
|
/**
|
|
5367
5399
|
* 设置会话免打扰
|
|
5368
5400
|
* 原: setConversationStatus 已废弃
|
|
@@ -6392,6 +6424,15 @@ declare abstract class AEngine {
|
|
|
6392
6424
|
* 获取第一个未读消息
|
|
6393
6425
|
*/
|
|
6394
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[];
|
|
6432
|
+
/**
|
|
6433
|
+
* 按msgUids批量获取消息
|
|
6434
|
+
*/
|
|
6435
|
+
abstract getMessageByMsgUids(targetId: string, channelId: string, conversationType: ConversationType, msgUids: string[]): IReceivedMessage[];
|
|
6395
6436
|
/**
|
|
6396
6437
|
* 设置/保存指定会话消息草稿
|
|
6397
6438
|
* @draft 草稿内容
|
|
@@ -6433,6 +6474,17 @@ declare abstract class AEngine {
|
|
|
6433
6474
|
* @param messageUIds
|
|
6434
6475
|
*/
|
|
6435
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>;
|
|
6436
6488
|
/**
|
|
6437
6489
|
* 断开连接
|
|
6438
6490
|
* @param closeDB 是否关闭数据库,默认为 true,仅 Electron 平台有效
|