@rongcloud/imlib-next 5.6.1-beem → 5.6.1
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 +53 -12
- 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 { 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
|
* 发送状态
|
|
@@ -202,7 +214,7 @@ declare type IInitOption = {
|
|
|
202
214
|
*/
|
|
203
215
|
__reportLogLevel?: EnableLogL;
|
|
204
216
|
/**
|
|
205
|
-
* IndexDB
|
|
217
|
+
* IndexDB 数据库内的日志有效期,单位为小时,有效值为 `24` - `168`,默认 IndexDB 内日志数据有效期 168 小时
|
|
206
218
|
*/
|
|
207
219
|
logExpireTime?: number;
|
|
208
220
|
};
|
|
@@ -840,6 +852,14 @@ declare type EventListeners = {
|
|
|
840
852
|
[Events.ULTRA_GROUP_CHANNEL_TYPE_CHANGE]: (list: IUltraChannelChangeInfo[]) => void;
|
|
841
853
|
[Events.ULTRA_GROUP_CHANNEL_DELETE]: (list: IUltraChannelDeleteInfo[]) => void;
|
|
842
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;
|
|
843
863
|
};
|
|
844
864
|
|
|
845
865
|
/**
|
|
@@ -1024,8 +1044,10 @@ declare function setConversationToTop(options: IConversationOption, isTop?: bool
|
|
|
1024
1044
|
/**
|
|
1025
1045
|
* 获取置顶会话
|
|
1026
1046
|
* @category 会话
|
|
1047
|
+
* @param conversationTypes 会话类型
|
|
1048
|
+
* @param channelId 不传或传 undefined 时获取全部 channelId 类型的置顶会话
|
|
1027
1049
|
*/
|
|
1028
|
-
declare function getTopConversationList(): Promise<IAsyncRes<
|
|
1050
|
+
declare function getTopConversationList(conversationTypes?: ConversationType[], channelId?: string): Promise<IAsyncRes<IAReceivedConversation[]>>;
|
|
1029
1051
|
/**
|
|
1030
1052
|
* 获取单个群会话 @ 消息未读数
|
|
1031
1053
|
* @category 会话未读数
|
|
@@ -1702,7 +1724,7 @@ declare function insertMessage$1(conversation: IConversationOption, content: IRe
|
|
|
1702
1724
|
* @category 消息
|
|
1703
1725
|
* @param messageId 本地消息 ID 或 messageUId
|
|
1704
1726
|
*/
|
|
1705
|
-
declare function getMessage(messageId: number): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1727
|
+
declare function getMessage(messageId: number | string): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1706
1728
|
/**
|
|
1707
1729
|
* 获取会话下所有未读的 @ 消息
|
|
1708
1730
|
* @category 消息
|
|
@@ -1956,9 +1978,11 @@ declare function searchMessageInTimeRange(conversation: {
|
|
|
1956
1978
|
* @param option 配置参数
|
|
1957
1979
|
*/
|
|
1958
1980
|
declare function getHistoryMessagesByMessageTypes(conversation: IConversationOption, option: IGetHistoryMessagesByTypesOption): Promise<IAsyncRes<{
|
|
1981
|
+
/**
|
|
1982
|
+
* @deprecated 字段已废弃即将删除,推荐使用 list
|
|
1983
|
+
*/
|
|
1959
1984
|
messages: IAReceivedMessage[];
|
|
1960
|
-
|
|
1961
|
-
}>>;
|
|
1985
|
+
} & GetHistoryMessageResult>>;
|
|
1962
1986
|
/**
|
|
1963
1987
|
* 将自己发送的指定时间之前的消息标记对方已读,状态值为 SentStatus.READ
|
|
1964
1988
|
* @param conversation 会话
|
|
@@ -2004,13 +2028,26 @@ declare function clearMessages(conversation: IConversationOption): Promise<IAsyn
|
|
|
2004
2028
|
declare function deleteMessagesByTimestamp(conversation: IConversationOption, timestamp: number, cleanSpace: boolean): Promise<IAsyncRes<void>>;
|
|
2005
2029
|
/**
|
|
2006
2030
|
* 向本地插入一条消息,不发送到服务器
|
|
2007
|
-
* @param
|
|
2008
|
-
* @param targetId 目标 ID
|
|
2031
|
+
* @param conversation 会话
|
|
2009
2032
|
* @param message 消息体
|
|
2010
|
-
* @param
|
|
2033
|
+
* @param options
|
|
2011
2034
|
* 注意:插入消息时,messageUid 将不会存入数据库
|
|
2012
2035
|
*/
|
|
2013
|
-
declare function insertMessage(conversation: IConversationOption, message: IAReceivedMessage, options?: IInsertOptions): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
2036
|
+
declare function insertMessage(conversation: IConversationOption, message: IAReceivedMessage | BaseMessage, options?: IInsertOptions): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
2037
|
+
/**
|
|
2038
|
+
* 获取单聊消息的送达时间
|
|
2039
|
+
* @param messageUId 消息 UID
|
|
2040
|
+
* @hidden 暂时仅 BEEM 使用,无需在文档公开
|
|
2041
|
+
* @description 暂仅支持 Electron 平台
|
|
2042
|
+
*/
|
|
2043
|
+
declare function getPrivateMessageDeliverTime(messageUId: string): Promise<IAsyncRes<number>>;
|
|
2044
|
+
/**
|
|
2045
|
+
* 获取群组消息的送达状态
|
|
2046
|
+
* @param messageUId 消息 UID
|
|
2047
|
+
* @hidden 暂时仅 BEEM 使用,无需在文档公开
|
|
2048
|
+
* @description 暂仅支持 Electron 平台
|
|
2049
|
+
*/
|
|
2050
|
+
declare function getGroupMessageDeliverList(targetId: string, messageUId: string): Promise<IAsyncRes<IGroupMessageDeliverInfo>>;
|
|
2014
2051
|
|
|
2015
2052
|
/**
|
|
2016
2053
|
* 清除本地数据, 包括消息列表、会话列表、拉取消息的时间戳
|
|
@@ -2031,6 +2068,8 @@ declare const index_deleteMessages: typeof deleteMessages;
|
|
|
2031
2068
|
declare const index_clearMessages: typeof clearMessages;
|
|
2032
2069
|
declare const index_deleteMessagesByTimestamp: typeof deleteMessagesByTimestamp;
|
|
2033
2070
|
declare const index_insertMessage: typeof insertMessage;
|
|
2071
|
+
declare const index_getPrivateMessageDeliverTime: typeof getPrivateMessageDeliverTime;
|
|
2072
|
+
declare const index_getGroupMessageDeliverList: typeof getGroupMessageDeliverList;
|
|
2034
2073
|
declare const index_clearLocalData: typeof clearLocalData;
|
|
2035
2074
|
declare namespace index {
|
|
2036
2075
|
export {
|
|
@@ -2048,6 +2087,8 @@ declare namespace index {
|
|
|
2048
2087
|
index_clearMessages as clearMessages,
|
|
2049
2088
|
index_deleteMessagesByTimestamp as deleteMessagesByTimestamp,
|
|
2050
2089
|
index_insertMessage as insertMessage,
|
|
2090
|
+
index_getPrivateMessageDeliverTime as getPrivateMessageDeliverTime,
|
|
2091
|
+
index_getGroupMessageDeliverList as getGroupMessageDeliverList,
|
|
2051
2092
|
index_clearLocalData as clearLocalData,
|
|
2052
2093
|
};
|
|
2053
2094
|
}
|