@rongcloud/imlib-next 5.9.3 → 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 +13 -8
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FileType, APIContext, LogLevel, EnableLogL, IRuntime, AreaCode, ConversationType, MessageDirection, ReceivedStatus, IReceivedStatusInfo, 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, IRTCRoomBindOption, MentionedInfoBody, ICombineV2MessageContent, IMessageReadReceiptV4Response, IGroupReadReceiptData, IClearMessageOption, IMessageReaderResponse, IFirstUnreadMessageInfo, IReceivedMessage, IReceivedConversation, ITagParam, ITagInfo, IConversationTag, IUploadAuth, IDownloadAuth, UploadMethod, IInsertMessage, IGroupMessageDeliverInfo, IProxy, IPromiseResult, IResponse } 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
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 {
|
|
@@ -200,7 +200,7 @@ interface IAReceivedMessage {
|
|
|
200
200
|
*/
|
|
201
201
|
isCounted: boolean;
|
|
202
202
|
/**
|
|
203
|
-
*
|
|
203
|
+
* 是否为离线消息, 在超级群会话中不适用
|
|
204
204
|
*/
|
|
205
205
|
isOffLineMessage: boolean;
|
|
206
206
|
/**
|
|
@@ -243,9 +243,9 @@ interface IAReceivedMessage {
|
|
|
243
243
|
*/
|
|
244
244
|
sentStatus?: SentStatus;
|
|
245
245
|
/**
|
|
246
|
-
*
|
|
246
|
+
* 群已读回执信息(V1 版本为 IReadReceiptResponseInfo, V4 版本为 IReadReceiptInfo)
|
|
247
247
|
*/
|
|
248
|
-
readReceiptInfo?: IReadReceiptInfo;
|
|
248
|
+
readReceiptInfo?: IReadReceiptResponseInfo | IReadReceiptInfo;
|
|
249
249
|
/**
|
|
250
250
|
* 推送扩展
|
|
251
251
|
*/
|
|
@@ -671,6 +671,7 @@ interface ISendMessageOptions {
|
|
|
671
671
|
* @description
|
|
672
672
|
* 1. 状态消息只有 pub,没有 ack 应答
|
|
673
673
|
* 2. 状态消息默认不存储,不计数,`isPersited` 与 `isCounted` 配置将失效
|
|
674
|
+
* @deprecated 请在注册消息时设置消息类型是否是状态消息
|
|
674
675
|
*/
|
|
675
676
|
isStatusMessage?: boolean;
|
|
676
677
|
/**
|
|
@@ -1249,8 +1250,12 @@ declare function getBlockedConversationList(): Promise<IAsyncRes<IBaseConversati
|
|
|
1249
1250
|
/**
|
|
1250
1251
|
* 设置会话是否置顶
|
|
1251
1252
|
* @category 会话
|
|
1253
|
+
* @param options 回话信息
|
|
1254
|
+
* @param isTop 置顶状态
|
|
1255
|
+
* @param isUpdateTime 是否更新会话操作时间,默认为更新,仅私有云环境有效
|
|
1256
|
+
* @returns
|
|
1252
1257
|
*/
|
|
1253
|
-
declare function setConversationToTop(options: IConversationOption, isTop?: boolean): Promise<IAsyncRes<void>>;
|
|
1258
|
+
declare function setConversationToTop(options: IConversationOption, isTop?: boolean, isUpdateTime?: boolean): Promise<IAsyncRes<void>>;
|
|
1254
1259
|
/**
|
|
1255
1260
|
* 批量设置会话置顶
|
|
1256
1261
|
* @param conversations 会话数组, 最大数量为 20
|
|
@@ -1929,7 +1934,7 @@ declare function sendReadReceiptResponse(targetId: string, messageUIds: string[]
|
|
|
1929
1934
|
* @param messageList 要回执的消息列表,结构为: \{senderUserId: [messageUId1, messageUId2]\}
|
|
1930
1935
|
* @param channelId
|
|
1931
1936
|
*/
|
|
1932
|
-
declare function sendReadReceiptResponseV2(targetId: string, messageList
|
|
1937
|
+
declare function sendReadReceiptResponseV2(targetId: string, messageList?: {
|
|
1933
1938
|
[senderUserId: string]: string[];
|
|
1934
1939
|
}, channelId?: string): Promise<IAsyncRes<void>>;
|
|
1935
1940
|
/**
|
|
@@ -2121,7 +2126,7 @@ declare function getMessageReader(targetId: string, messageUId: string, channelI
|
|
|
2121
2126
|
* @param isPersited 是否存储
|
|
2122
2127
|
* @param isCounted 是否计数
|
|
2123
2128
|
* @param searchProps 可搜索的属性
|
|
2124
|
-
* @param isStatusMessage
|
|
2129
|
+
* @param isStatusMessage 是否状态消息,状态消息不计数,不存储,仅在线能收到
|
|
2125
2130
|
*/
|
|
2126
2131
|
declare function registerMessageType<T>(messageType: string, isPersited: boolean, isCounted: boolean, searchProps?: string[], isStatusMessage?: boolean): new (content: T) => BaseMessage<T>;
|
|
2127
2132
|
/**
|
|
@@ -2397,7 +2402,7 @@ declare function getAllConversationList(channelId?: string): Promise<IAsyncRes<I
|
|
|
2397
2402
|
* @param count 数量
|
|
2398
2403
|
* @param channelId 频道 ID,不传则获取全部频道 ID 类型
|
|
2399
2404
|
*/
|
|
2400
|
-
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[]>>;
|
|
2401
2406
|
/**
|
|
2402
2407
|
* 根据消息内容搜索会话列表
|
|
2403
2408
|
* @param keyword 搜索关键字
|