@rongcloud/imlib-next 5.9.2 → 5.9.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 +79 -19
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FileType, APIContext, LogLevel, EnableLogL, IRuntime, AreaCode, ConversationType, MessageDirection, ReceivedStatus, SentStatus, IReadReceiptInfo, IPushConfig, UltraGroupChannelType, RCConnectionStatus, IPluginGenerator, IAsyncRes, NotificationStatus, NotificationLevel, IUltraUnreadMsg, IUserProfile, IConversationOption, ITypingMessage, IUpdateItem, ErrorCode, IChatroomListenerData, IExpansionListenerData, IBlockedMessageInfo, IOperateStatusNotify, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUserGroupStatusInfo, IMessageDeliver, IGroupMessageDeliverStatus, IReadReceiptData, ISyncReadStatusData, IBaseConversationInfo, IConversationState as IConversationState$1, IGetUltraGroupListOption, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraGroupUnreadInfo, IChatroomJoinResponse, IChatroomInfo, IChatRoomEntry, IChatroomEntries, IRemoveChatRoomEntry,
|
|
2
|
-
export { AreaCode, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IClearMessageOption, ICombineV2MessageContent, ICombinedMessage, IConversationIdentifier, IConversationOption, IConversationTag, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEventListener, IExpansionListenerData, IFirstUnreadMessageInfo, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IGroupReadReceiptData, IInsertMessage, IMessageDeliver, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPrivateReadReceiptData, IPromiseResult, IProxy, IPushConfig, IRTCRoomBindOption, IReadReceiptData, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IResponse, ISyncReadStatusData, ITagInfo, ITagParam, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdateItem, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IiOSPushConfig, InterruptionLevel, LogL, LogLevel, MentionedInfoBody, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, OperateStatus, PushImportanceHonor, RCConnectionStatus, ReceivedStatus, SentStatus, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod } from '@rongcloud/engine';
|
|
1
|
+
import { FileType, APIContext, LogLevel, EnableLogL, IRuntime, AreaCode, ConversationType, MessageDirection, ReceivedStatus, IReceivedStatusInfo, SentStatus, IReadReceiptResponseInfo, IReadReceiptInfo, IPushConfig, UltraGroupChannelType, RCConnectionStatus, IPluginGenerator, IAsyncRes, NotificationStatus, NotificationLevel, IUltraUnreadMsg, IUserProfile, IConversationOption, ITypingMessage, IUpdateItem, ErrorCode, IChatroomListenerData, IExpansionListenerData, IBlockedMessageInfo, IOperateStatusNotify, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUserGroupStatusInfo, IMessageDeliver, IGroupMessageDeliverStatus, IReadReceiptData, ISyncReadStatusData, IBaseConversationInfo, IConversationState as IConversationState$1, IGetUltraGroupListOption, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraGroupUnreadInfo, IChatroomJoinResponse, IChatroomInfo, IChatRoomEntry, IChatroomEntries, IRemoveChatRoomEntry, IRTCRoomBindOption, MentionedInfoBody, ICombineV2MessageContent, IMessageReadReceiptV4Response, IGroupReadReceiptData, IClearMessageOption, IMessageReaderResponse, IFirstUnreadMessageInfo, IReceivedMessage, IReceivedConversation, ITagParam, ITagInfo, IConversationTag, IUploadAuth, IDownloadAuth, UploadMethod, IInsertMessage, IGroupMessageDeliverInfo, IProxy, IPromiseResult, IResponse } from '@rongcloud/engine';
|
|
2
|
+
export { AreaCode, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IClearMessageOption, ICombineV2MessageContent, ICombinedMessage, IConversationIdentifier, IConversationOption, IConversationTag, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEventListener, IExpansionListenerData, IFirstUnreadMessageInfo, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IGroupReadReceiptData, IInsertMessage, IMessageDeliver, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPrivateReadReceiptData, IPromiseResult, IProxy, IPushConfig, IRTCRoomBindOption, IReadReceiptData, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IResponse, ISyncReadStatusData, ITagInfo, ITagParam, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdateItem, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IiOSPushConfig, InterruptionLevel, LogL, LogLevel, MentionedInfoBody, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, OperateStatus, PushImportanceHonor, RCConnectionStatus, ReceivedStatus, SentStatus, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod } from '@rongcloud/engine';
|
|
3
3
|
|
|
4
4
|
interface IThumbnailConfig {
|
|
5
5
|
maxHeight?: number;
|
|
@@ -200,7 +200,7 @@ interface IAReceivedMessage {
|
|
|
200
200
|
*/
|
|
201
201
|
isCounted: boolean;
|
|
202
202
|
/**
|
|
203
|
-
*
|
|
203
|
+
* 是否为离线消息, 在超级群会话中不适用
|
|
204
204
|
*/
|
|
205
205
|
isOffLineMessage: boolean;
|
|
206
206
|
/**
|
|
@@ -228,17 +228,24 @@ interface IAReceivedMessage {
|
|
|
228
228
|
} | null;
|
|
229
229
|
/**
|
|
230
230
|
* 消息接收状态
|
|
231
|
+
* 只能表示单一状态,推荐使用 receivedStatusInfo 来判断接收消息状态
|
|
232
|
+
* @deprecated
|
|
231
233
|
*/
|
|
232
234
|
receivedStatus: ReceivedStatus;
|
|
235
|
+
/**
|
|
236
|
+
* 消息接收状态详情
|
|
237
|
+
* 推荐使用, receivedStatusInfo 值更详细,能同时表示多个接收状态
|
|
238
|
+
*/
|
|
239
|
+
receivedStatusInfo: IReceivedStatusInfo;
|
|
233
240
|
/**
|
|
234
241
|
* 消息的发送状态,Electron 平台可由 SDK 内自动更新和用户设置,
|
|
235
242
|
* web 端仅支持 SDK 内更新为 发送中、已发送和发送失败
|
|
236
243
|
*/
|
|
237
244
|
sentStatus?: SentStatus;
|
|
238
245
|
/**
|
|
239
|
-
*
|
|
246
|
+
* 群已读回执信息(V1 版本为 IReadReceiptResponseInfo, V4 版本为 IReadReceiptInfo)
|
|
240
247
|
*/
|
|
241
|
-
readReceiptInfo?: IReadReceiptInfo;
|
|
248
|
+
readReceiptInfo?: IReadReceiptResponseInfo | IReadReceiptInfo;
|
|
242
249
|
/**
|
|
243
250
|
* 推送扩展
|
|
244
251
|
*/
|
|
@@ -483,6 +490,14 @@ declare enum Events {
|
|
|
483
490
|
*/
|
|
484
491
|
USER_GROUP_STATUS = "USER_GROUP_STATUS"
|
|
485
492
|
}
|
|
493
|
+
/**
|
|
494
|
+
* 消息审核状态
|
|
495
|
+
* @category Enum
|
|
496
|
+
*/
|
|
497
|
+
declare enum MessageAuditType {
|
|
498
|
+
DISALLOW = 0,
|
|
499
|
+
ALLOW = 1
|
|
500
|
+
}
|
|
486
501
|
|
|
487
502
|
/**
|
|
488
503
|
* 上传任务
|
|
@@ -656,6 +671,7 @@ interface ISendMessageOptions {
|
|
|
656
671
|
* @description
|
|
657
672
|
* 1. 状态消息只有 pub,没有 ack 应答
|
|
658
673
|
* 2. 状态消息默认不存储,不计数,`isPersited` 与 `isCounted` 配置将失效
|
|
674
|
+
* @deprecated 请在注册消息时设置消息类型是否是状态消息
|
|
659
675
|
*/
|
|
660
676
|
isStatusMessage?: boolean;
|
|
661
677
|
/**
|
|
@@ -724,6 +740,10 @@ interface ISendMessageOptions {
|
|
|
724
740
|
* 正常发消息时无需传该参数。
|
|
725
741
|
*/
|
|
726
742
|
messageId?: number;
|
|
743
|
+
/**
|
|
744
|
+
* 消息审核配置
|
|
745
|
+
*/
|
|
746
|
+
auditInfo?: IAuditInfo;
|
|
727
747
|
}
|
|
728
748
|
/**
|
|
729
749
|
* 文件消息配置
|
|
@@ -799,6 +819,26 @@ interface IExtraData {
|
|
|
799
819
|
*/
|
|
800
820
|
extra?: string;
|
|
801
821
|
}
|
|
822
|
+
/**
|
|
823
|
+
* @category Interface
|
|
824
|
+
* 消息审核配置
|
|
825
|
+
*/
|
|
826
|
+
interface IAuditInfo {
|
|
827
|
+
audit?: {
|
|
828
|
+
/**
|
|
829
|
+
* 发送方指定是否送审, 1:送审(默认值),0:不送审
|
|
830
|
+
*/
|
|
831
|
+
auditType?: MessageAuditType;
|
|
832
|
+
/**
|
|
833
|
+
* 项目名称, 默认为空字符串
|
|
834
|
+
*/
|
|
835
|
+
project?: string;
|
|
836
|
+
/**
|
|
837
|
+
* 策略映射字段
|
|
838
|
+
*/
|
|
839
|
+
strategy?: string;
|
|
840
|
+
};
|
|
841
|
+
}
|
|
802
842
|
/**
|
|
803
843
|
* @category Interface
|
|
804
844
|
*/
|
|
@@ -888,6 +928,10 @@ interface IReadReceiptReceivedEvent {
|
|
|
888
928
|
* 消息发送时间
|
|
889
929
|
*/
|
|
890
930
|
sentTime: number;
|
|
931
|
+
/**
|
|
932
|
+
* 发送者ID
|
|
933
|
+
*/
|
|
934
|
+
sendUserId: string;
|
|
891
935
|
}
|
|
892
936
|
interface IMessageReceiptRequestEvent {
|
|
893
937
|
/**
|
|
@@ -1206,8 +1250,12 @@ declare function getBlockedConversationList(): Promise<IAsyncRes<IBaseConversati
|
|
|
1206
1250
|
/**
|
|
1207
1251
|
* 设置会话是否置顶
|
|
1208
1252
|
* @category 会话
|
|
1253
|
+
* @param options 回话信息
|
|
1254
|
+
* @param isTop 置顶状态
|
|
1255
|
+
* @param isUpdateTime 是否更新会话操作时间,默认为更新,仅私有云环境有效
|
|
1256
|
+
* @returns
|
|
1209
1257
|
*/
|
|
1210
|
-
declare function setConversationToTop(options: IConversationOption, isTop?: boolean): Promise<IAsyncRes<void>>;
|
|
1258
|
+
declare function setConversationToTop(options: IConversationOption, isTop?: boolean, isUpdateTime?: boolean): Promise<IAsyncRes<void>>;
|
|
1211
1259
|
/**
|
|
1212
1260
|
* 批量设置会话置顶
|
|
1213
1261
|
* @param conversations 会话数组, 最大数量为 20
|
|
@@ -1454,7 +1502,10 @@ declare function removeChatRoomEntry(targetId: string, options: IRemoveChatRoomE
|
|
|
1454
1502
|
* @param entries[] 属性名称, 支持英文字母、数字、+、=、-、_ 的组合方式, 最大长度 128 字符
|
|
1455
1503
|
* @param notificationExtra? RC:chrmKVNotiMsg 通知消息中携带的附加信息
|
|
1456
1504
|
*/
|
|
1457
|
-
declare function removeChatRoomEntries(targetId: string, options:
|
|
1505
|
+
declare function removeChatRoomEntries(targetId: string, options: {
|
|
1506
|
+
entries: string[];
|
|
1507
|
+
notificationExtra?: string;
|
|
1508
|
+
}): Promise<IAsyncRes<void>>;
|
|
1458
1509
|
/**
|
|
1459
1510
|
* 强制删除聊天室内的任意属性
|
|
1460
1511
|
* @category 聊天室
|
|
@@ -1523,7 +1574,7 @@ interface IMentionedInfo {
|
|
|
1523
1574
|
* 图片消息
|
|
1524
1575
|
* @category Interface
|
|
1525
1576
|
*/
|
|
1526
|
-
interface IImageMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
|
|
1577
|
+
interface IImageMessageBody extends IExtraData, IMentionedInfo, IUserInfo, IAuditInfo {
|
|
1527
1578
|
/**
|
|
1528
1579
|
* 图片的略缩图
|
|
1529
1580
|
* @description
|
|
@@ -1543,7 +1594,7 @@ declare const _default$e: MessageConstructor<IImageMessageBody>;
|
|
|
1543
1594
|
* 图片消息
|
|
1544
1595
|
* @category Interface
|
|
1545
1596
|
*/
|
|
1546
|
-
interface IHQVoiceMessageBody extends IUserInfo, IExtraData, IMentionedInfo {
|
|
1597
|
+
interface IHQVoiceMessageBody extends IUserInfo, IExtraData, IMentionedInfo, IAuditInfo {
|
|
1547
1598
|
/**
|
|
1548
1599
|
* 远程媒体资源地址
|
|
1549
1600
|
*/
|
|
@@ -1563,7 +1614,7 @@ declare const _default$d: MessageConstructor<IHQVoiceMessageBody>;
|
|
|
1563
1614
|
* 短视频消息
|
|
1564
1615
|
* @category Interface
|
|
1565
1616
|
*/
|
|
1566
|
-
interface ISightMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
|
|
1617
|
+
interface ISightMessageBody extends IExtraData, IMentionedInfo, IUserInfo, IAuditInfo {
|
|
1567
1618
|
/**
|
|
1568
1619
|
* 远程视频资源 url 地址
|
|
1569
1620
|
*/
|
|
@@ -1592,7 +1643,7 @@ declare const _default$c: MessageConstructor<ISightMessageBody>;
|
|
|
1592
1643
|
* 文本消息
|
|
1593
1644
|
* @category Interface
|
|
1594
1645
|
*/
|
|
1595
|
-
interface ITextMessageBody extends IUserInfo, IExtraData, IMentionedInfo {
|
|
1646
|
+
interface ITextMessageBody extends IUserInfo, IExtraData, IMentionedInfo, IAuditInfo {
|
|
1596
1647
|
/**
|
|
1597
1648
|
* 文本消息内容
|
|
1598
1649
|
*/
|
|
@@ -1654,7 +1705,7 @@ declare const _default$8: MessageConstructor<IFileMessageBody>;
|
|
|
1654
1705
|
/**
|
|
1655
1706
|
* @category Interface
|
|
1656
1707
|
*/
|
|
1657
|
-
interface IGIFMessageBody extends IExtraData, IUserInfo, IMentionedInfo {
|
|
1708
|
+
interface IGIFMessageBody extends IExtraData, IUserInfo, IMentionedInfo, IAuditInfo {
|
|
1658
1709
|
/**
|
|
1659
1710
|
* GIF 图片文件大小,单位为 Byte
|
|
1660
1711
|
*/
|
|
@@ -1677,7 +1728,7 @@ declare const _default$7: MessageConstructor<IGIFMessageBody>;
|
|
|
1677
1728
|
/**
|
|
1678
1729
|
* @category Interface
|
|
1679
1730
|
*/
|
|
1680
|
-
interface IVoiceMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
|
|
1731
|
+
interface IVoiceMessageBody extends IExtraData, IMentionedInfo, IUserInfo, IAuditInfo {
|
|
1681
1732
|
content: string;
|
|
1682
1733
|
duration: number;
|
|
1683
1734
|
extra: string;
|
|
@@ -1710,7 +1761,7 @@ declare const _default$5: MessageConstructor<ILocationMessageBody>;
|
|
|
1710
1761
|
/**
|
|
1711
1762
|
* @category Interface
|
|
1712
1763
|
*/
|
|
1713
|
-
interface IReferenceMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
|
|
1764
|
+
interface IReferenceMessageBody extends IExtraData, IMentionedInfo, IUserInfo, IAuditInfo {
|
|
1714
1765
|
/**
|
|
1715
1766
|
* 被引用消息的发送用户 Id
|
|
1716
1767
|
*/
|
|
@@ -1816,7 +1867,7 @@ declare function sendMessage(conversation: IConversationOption, message: BaseMes
|
|
|
1816
1867
|
declare function sendTextMessage(conversation: IConversationOption, messageBody: ITextMessageBody, options?: ISendMessageOptions): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1817
1868
|
declare type ISendBody = IUserInfo & IExtraData & {
|
|
1818
1869
|
file: File;
|
|
1819
|
-
} & IMentionedInfo;
|
|
1870
|
+
} & IMentionedInfo & IAuditInfo;
|
|
1820
1871
|
declare type ISendFileMessageOptions = ISendBody;
|
|
1821
1872
|
/**
|
|
1822
1873
|
* 发送文件消息
|
|
@@ -1883,7 +1934,7 @@ declare function sendReadReceiptResponse(targetId: string, messageUIds: string[]
|
|
|
1883
1934
|
* @param messageList 要回执的消息列表,结构为: \{senderUserId: [messageUId1, messageUId2]\}
|
|
1884
1935
|
* @param channelId
|
|
1885
1936
|
*/
|
|
1886
|
-
declare function sendReadReceiptResponseV2(targetId: string, messageList
|
|
1937
|
+
declare function sendReadReceiptResponseV2(targetId: string, messageList?: {
|
|
1887
1938
|
[senderUserId: string]: string[];
|
|
1888
1939
|
}, channelId?: string): Promise<IAsyncRes<void>>;
|
|
1889
1940
|
/**
|
|
@@ -2075,7 +2126,7 @@ declare function getMessageReader(targetId: string, messageUId: string, channelI
|
|
|
2075
2126
|
* @param isPersited 是否存储
|
|
2076
2127
|
* @param isCounted 是否计数
|
|
2077
2128
|
* @param searchProps 可搜索的属性
|
|
2078
|
-
* @param isStatusMessage
|
|
2129
|
+
* @param isStatusMessage 是否状态消息,状态消息不计数,不存储,仅在线能收到
|
|
2079
2130
|
*/
|
|
2080
2131
|
declare function registerMessageType<T>(messageType: string, isPersited: boolean, isCounted: boolean, searchProps?: string[], isStatusMessage?: boolean): new (content: T) => BaseMessage<T>;
|
|
2081
2132
|
/**
|
|
@@ -2351,7 +2402,7 @@ declare function getAllConversationList(channelId?: string): Promise<IAsyncRes<I
|
|
|
2351
2402
|
* @param count 数量
|
|
2352
2403
|
* @param channelId 频道 ID,不传则获取全部频道 ID 类型
|
|
2353
2404
|
*/
|
|
2354
|
-
declare function getConversationList(startTime: number, count: number, channelId?: string): Promise<IAsyncRes<IAReceivedConversation[]>>;
|
|
2405
|
+
declare function getConversationList(startTime: number, count: number, channelId?: string, topPriority?: boolean): Promise<IAsyncRes<IAReceivedConversation[]>>;
|
|
2355
2406
|
/**
|
|
2356
2407
|
* 根据消息内容搜索会话列表
|
|
2357
2408
|
* @param keyword 搜索关键字
|
|
@@ -2412,8 +2463,15 @@ declare function setMessageStatusToRead(conversation: IConversationOption, times
|
|
|
2412
2463
|
* 设置对方发送的消息 自己的接受状态
|
|
2413
2464
|
* @param messageId 消息 ID
|
|
2414
2465
|
* @param receivedStatus 接受状态
|
|
2466
|
+
* @deprecated 建议使用 setMessageReceivedStatusInfo, 支持设置多种状态
|
|
2415
2467
|
*/
|
|
2416
2468
|
declare function setMessageReceivedStatus(messageId: number, receivedStatus: ReceivedStatus): Promise<IAsyncRes<void>>;
|
|
2469
|
+
/**
|
|
2470
|
+
* 设置对方发送的消息 自己的接受状态信息
|
|
2471
|
+
* @param messageId
|
|
2472
|
+
* @param receivedStatusInfo
|
|
2473
|
+
*/
|
|
2474
|
+
declare function setMessageReceivedStatusInfo(messageId: number, receivedStatusInfo: IReceivedStatusInfo): Promise<IAsyncRes<void>>;
|
|
2417
2475
|
/**
|
|
2418
2476
|
* 设置自己发送的消息的发送状态
|
|
2419
2477
|
* @param messageId 消息ID
|
|
@@ -2522,7 +2580,7 @@ declare function getGroupMessageDeliverList(targetId: string, messageUId: string
|
|
|
2522
2580
|
* @returns data => true: 成功,false: 失败
|
|
2523
2581
|
*
|
|
2524
2582
|
*/
|
|
2525
|
-
declare function setCheckDuplicateMessage(enableCheck
|
|
2583
|
+
declare function setCheckDuplicateMessage(enableCheck?: boolean): Promise<IAsyncRes<boolean>>;
|
|
2526
2584
|
|
|
2527
2585
|
/**
|
|
2528
2586
|
* 清除本地数据, 包括消息列表、会话列表、拉取消息的时间戳
|
|
@@ -2544,6 +2602,7 @@ declare const index_searchMessagesByUser: typeof searchMessagesByUser;
|
|
|
2544
2602
|
declare const index_getHistoryMessagesByMessageTypes: typeof getHistoryMessagesByMessageTypes;
|
|
2545
2603
|
declare const index_setMessageStatusToRead: typeof setMessageStatusToRead;
|
|
2546
2604
|
declare const index_setMessageReceivedStatus: typeof setMessageReceivedStatus;
|
|
2605
|
+
declare const index_setMessageReceivedStatusInfo: typeof setMessageReceivedStatusInfo;
|
|
2547
2606
|
declare const index_setMessageSentStatus: typeof setMessageSentStatus;
|
|
2548
2607
|
declare const index_setMessageContent: typeof setMessageContent;
|
|
2549
2608
|
declare const index_deleteMessages: typeof deleteMessages;
|
|
@@ -2569,6 +2628,7 @@ declare namespace index {
|
|
|
2569
2628
|
index_getHistoryMessagesByMessageTypes as getHistoryMessagesByMessageTypes,
|
|
2570
2629
|
index_setMessageStatusToRead as setMessageStatusToRead,
|
|
2571
2630
|
index_setMessageReceivedStatus as setMessageReceivedStatus,
|
|
2631
|
+
index_setMessageReceivedStatusInfo as setMessageReceivedStatusInfo,
|
|
2572
2632
|
index_setMessageSentStatus as setMessageSentStatus,
|
|
2573
2633
|
index_setMessageContent as setMessageContent,
|
|
2574
2634
|
index_deleteMessages as deleteMessages,
|