@rongcloud/imlib-next 5.6.0-beem → 5.6.0

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { LogLevel, EnableLogL, MessageDirection, ReceivedStatus, IReadReceiptInfo, IPushConfig, ConnectionStatus, IPluginGenerator, IAsyncRes, NotificationStatus, NotificationLevel, IUserProfile, IReceivedMessage, IConversationOption, ITypingMessage, ErrorCode, IChatroomListenerData, IExpansionListenerData, IBlockedMessageInfo, IReceivedConversation, IOperateStatusNotify, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, ConversationType, IBaseConversationInfo, IConversationState as IConversationState$1, IGetUltraGroupListOption, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IChatroomInfo, IChatRoomEntry, IChatroomEntries, IRemoveChatRoomEntry, IRemoveChatRoomEntries, IRTCRoomBindOption, MentionedType, IMessageReaderResponse, ITagParam, ITagInfo, IConversationTag, IReceivedConversationByTag, FileType, IUploadAuth, UploadMethod } from '@rongcloud/engine';
2
- export { ChatroomEntryType, ChatroomUserChangeType, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationOption, IConversationState, IConversationTag, IDeletedExpansion, IEventListener, IExpansionListenerData, IGetUltraGroupListOption, IGooglePushConfig, IMessageReader, IMessageReaderResponse, IOperateStatusNotify, IPushConfig, IRTCRoomBindOption, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, ITagInfo, ITagParam, ITypingMessage, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IiOSPushConfig, LogL, LogLevel, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, ReceivedStatus, UltraGroupChannelType, UploadMethod } from '@rongcloud/engine';
1
+ import { LogLevel, EnableLogL, MessageDirection, ReceivedStatus, IReadReceiptInfo, IPushConfig, ConnectionStatus, IPluginGenerator, IAsyncRes, NotificationStatus, NotificationLevel, IUserProfile, IReceivedMessage, IConversationOption, ITypingMessage, ErrorCode, IChatroomListenerData, IExpansionListenerData, IBlockedMessageInfo, IReceivedConversation, IOperateStatusNotify, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IMessageDeliver, IGroupMessageDeliverStatus, ConversationType, IBaseConversationInfo, IConversationState as IConversationState$1, IGetUltraGroupListOption, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IChatroomInfo, IChatRoomEntry, IChatroomEntries, IRemoveChatRoomEntry, IRemoveChatRoomEntries, IRTCRoomBindOption, MentionedType, IMessageReaderResponse, ITagParam, ITagInfo, IConversationTag, IReceivedConversationByTag, FileType, IUploadAuth, UploadMethod, IGroupMessageDeliverInfo } from '@rongcloud/engine';
2
+ export { ChatroomEntryType, ChatroomUserChangeType, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationOption, IConversationState, IConversationTag, IDeletedExpansion, IDeliveredUser, IEventListener, IExpansionListenerData, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IMessageDeliver, IMessageReader, IMessageReaderResponse, IOperateStatusNotify, IPushConfig, IRTCRoomBindOption, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, ITagInfo, ITagParam, ITypingMessage, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IiOSPushConfig, LogL, LogLevel, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, ReceivedStatus, UltraGroupChannelType, UploadMethod } from '@rongcloud/engine';
3
3
 
4
4
  declare enum Events {
5
5
  /**
@@ -106,7 +106,19 @@ declare enum Events {
106
106
  * 超级群私有频道成员变更-退出
107
107
  * @since 5.4.2
108
108
  */
109
- ULTRA_GROUP_CHANNEL_USER_KICKED = "ULTRA_GROUP_CHANNEL_USER_KICKED"
109
+ ULTRA_GROUP_CHANNEL_USER_KICKED = "ULTRA_GROUP_CHANNEL_USER_KICKED",
110
+ /**
111
+ * 单聊消息送达通知
112
+ * @hidden 暂仅 Beem 使用,无需公开
113
+ * @since 5.6.0
114
+ */
115
+ PRIVATE_MESSAGE_DELIVERED = "PRIVATE_MESSAGE_DELIVERED",
116
+ /**
117
+ * 群组消息送达状态通知
118
+ * @hidden 暂仅 Beem 使用,无需公开
119
+ * @since 5.6.0
120
+ */
121
+ GROUP_MESSAGE_DELIVERED = "GROUP_MESSAGE_DELIVERED"
110
122
  }
111
123
  /**
112
124
  * 发送状态
@@ -201,6 +213,10 @@ declare type IInitOption = {
201
213
  * @deprecated
202
214
  */
203
215
  __reportLogLevel?: EnableLogL;
216
+ /**
217
+ * IndexDB 数据库内的日志有效期,单位为小时,有效值为 `24` - `168`,默认 IndexDB 内日志数据有效期 168 小时
218
+ */
219
+ logExpireTime?: number;
204
220
  };
205
221
  /**
206
222
  * 用户收到的消息结构
@@ -836,6 +852,14 @@ declare type EventListeners = {
836
852
  [Events.ULTRA_GROUP_CHANNEL_TYPE_CHANGE]: (list: IUltraChannelChangeInfo[]) => void;
837
853
  [Events.ULTRA_GROUP_CHANNEL_DELETE]: (list: IUltraChannelDeleteInfo[]) => void;
838
854
  [Events.ULTRA_GROUP_CHANNEL_USER_KICKED]: (list: IUltraChannelUserKickedInfo[]) => void;
855
+ /**
856
+ * @hidden
857
+ */
858
+ [Events.PRIVATE_MESSAGE_DELIVERED]: (list: IMessageDeliver[]) => void;
859
+ /**
860
+ * @hidden
861
+ */
862
+ [Events.GROUP_MESSAGE_DELIVERED]: (list: IGroupMessageDeliverStatus[]) => void;
839
863
  };
840
864
 
841
865
  /**
@@ -1020,8 +1044,10 @@ declare function setConversationToTop(options: IConversationOption, isTop?: bool
1020
1044
  /**
1021
1045
  * 获取置顶会话
1022
1046
  * @category 会话
1047
+ * @param conversationTypes 会话类型
1048
+ * @param channelId 不传或传 undefined 时获取全部 channelId 类型的置顶会话
1023
1049
  */
1024
- declare function getTopConversationList(): Promise<IAsyncRes<IBaseConversationInfo[]>>;
1050
+ declare function getTopConversationList(conversationTypes?: ConversationType[], channelId?: string): Promise<IAsyncRes<IAReceivedConversation[]>>;
1025
1051
  /**
1026
1052
  * 获取单个群会话 @ 消息未读数
1027
1053
  * @category 会话未读数
@@ -1673,9 +1699,10 @@ declare function getMessageReader(targetId: string, messageUId: string, channelI
1673
1699
  * @param messageType 消息类型
1674
1700
  * @param isPersited 是否存储
1675
1701
  * @param isCounted 是否计数
1676
- * @param prototypes 消息属性名称
1702
+ * @param searchProps 可搜索的属性
1703
+ * @param isStatusMessage 是否状态消息
1677
1704
  */
1678
- declare function registerMessageType<T>(messageType: string, isPersited: boolean, isCounted: boolean, prototypes?: string[], isStatusMessage?: boolean): new (content: T) => BaseMessage<T>;
1705
+ declare function registerMessageType<T>(messageType: string, isPersited: boolean, isCounted: boolean, searchProps?: string[], isStatusMessage?: boolean): new (content: T) => BaseMessage<T>;
1679
1706
  /**
1680
1707
  * 获取第一条未读消息
1681
1708
  * @category 消息
@@ -2006,6 +2033,20 @@ declare function deleteMessagesByTimestamp(conversation: IConversationOption, ti
2006
2033
  * 注意:插入消息时,messageUid 将不会存入数据库
2007
2034
  */
2008
2035
  declare function insertMessage(conversation: IConversationOption, message: IAReceivedMessage, options?: IInsertOptions): Promise<IAsyncRes<IAReceivedMessage>>;
2036
+ /**
2037
+ * 获取单聊消息的送达时间
2038
+ * @param messageUId 消息 UID
2039
+ * @hidden 暂时仅 BEEM 使用,无需在文档公开
2040
+ * @description 暂仅支持 Electron 平台
2041
+ */
2042
+ declare function getPrivateMessageDeliverTime(messageUId: string): Promise<IAsyncRes<number>>;
2043
+ /**
2044
+ * 获取群组消息的送达状态
2045
+ * @param messageUId 消息 UID
2046
+ * @hidden 暂时仅 BEEM 使用,无需在文档公开
2047
+ * @description 暂仅支持 Electron 平台
2048
+ */
2049
+ declare function getGroupMessageDeliverList(targetId: string, messageUId: string): Promise<IAsyncRes<IGroupMessageDeliverInfo>>;
2009
2050
 
2010
2051
  /**
2011
2052
  * 清除本地数据, 包括消息列表、会话列表、拉取消息的时间戳
@@ -2026,6 +2067,8 @@ declare const index_deleteMessages: typeof deleteMessages;
2026
2067
  declare const index_clearMessages: typeof clearMessages;
2027
2068
  declare const index_deleteMessagesByTimestamp: typeof deleteMessagesByTimestamp;
2028
2069
  declare const index_insertMessage: typeof insertMessage;
2070
+ declare const index_getPrivateMessageDeliverTime: typeof getPrivateMessageDeliverTime;
2071
+ declare const index_getGroupMessageDeliverList: typeof getGroupMessageDeliverList;
2029
2072
  declare const index_clearLocalData: typeof clearLocalData;
2030
2073
  declare namespace index {
2031
2074
  export {
@@ -2043,6 +2086,8 @@ declare namespace index {
2043
2086
  index_clearMessages as clearMessages,
2044
2087
  index_deleteMessagesByTimestamp as deleteMessagesByTimestamp,
2045
2088
  index_insertMessage as insertMessage,
2089
+ index_getPrivateMessageDeliverTime as getPrivateMessageDeliverTime,
2090
+ index_getGroupMessageDeliverList as getGroupMessageDeliverList,
2046
2091
  index_clearLocalData as clearLocalData,
2047
2092
  };
2048
2093
  }