@rongcloud/imlib-next 5.5.8-beem → 5.6.0-beem-alpha.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 CHANGED
@@ -1,5 +1,5 @@
1
- import { LogLevel, 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, 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, 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, LogLevel, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, ReceivedStatus, UltraGroupChannelType, UploadMethod, reportLog } 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, ILogger, 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';
3
3
 
4
4
  declare enum Events {
5
5
  CONNECTING = "CONNECTING",
@@ -64,11 +64,17 @@ declare type IInitOption = {
64
64
  */
65
65
  appkey: string;
66
66
  /**
67
- * 修改 engine log 打印等级
67
+ * 该配置已废弃,请使用 `logOutputLevel` 替代。
68
+ * @deprecated
69
+ * 修改 SDK 内部日志打印等级,默认为 `LogLevel.WARN`。
68
70
  */
69
71
  logLevel?: LogLevel;
70
72
  /**
71
- * 修改默认的 log 输出函数
73
+ * 修改内部日志打印等级,默认输出 `LogL.WARN` 及以上级别
74
+ */
75
+ logOutputLevel?: EnableLogL;
76
+ /**
77
+ * @deprecated - 配置已废弃
72
78
  */
73
79
  logStdout?: (logLevel: LogLevel, content: string) => void;
74
80
  /**
@@ -85,6 +91,7 @@ declare type IInitOption = {
85
91
  */
86
92
  customCMP?: string[];
87
93
  /**
94
+ * @deprecated
88
95
  * 是否打开 IndexDB 存储, 默认为 true
89
96
  */
90
97
  indexDBSwitch?: boolean;
@@ -108,23 +115,11 @@ declare type IInitOption = {
108
115
  */
109
116
  httpInMainProcess?: boolean;
110
117
  /**
111
- * TODO: 自定义策略覆盖服务策略有安全风险,等产品确认通用化逻辑,是否前后端共同建立双重开关
112
- * 目前仅 Beem Web-Meeting 使用
118
+ * 自定义实时日志上报等级。当实时日志开启时,该等级配置会覆盖服务下发配置,默认 `LogL.WARN`,仅限内部使用!
113
119
  * @hidden
114
- * 实时日志收集功能自定义上传策略
115
- * @param {number} logSwitch 日志收集功能开关,0 关闭;1 开启
116
- * @param {number} level 日志上传级别
117
- * @param {number} itv: interval 即日志上传间隔,单位秒,最小时间间隔 1 秒
118
- */
119
- logPolicy?: {
120
- logSwitch?: number;
121
- level?: number;
122
- /**
123
- * 时间间隔不可定制
124
- * @deprecated
125
- */
126
- itv?: number;
127
- };
120
+ * @deprecated
121
+ */
122
+ __reportLogLevel?: EnableLogL;
128
123
  };
129
124
  /**
130
125
  * 用户收到的消息结构
@@ -432,6 +427,10 @@ interface IAReceivedConversation {
432
427
  * @ 消息未读数
433
428
  */
434
429
  unreadMentionedCount?: number;
430
+ /**
431
+ * @deprecated 字段已废弃即将删除,不推荐使用
432
+ */
433
+ versionTime?: number;
435
434
  }
436
435
  /**
437
436
  * @category Interface
@@ -715,11 +714,20 @@ interface ITypingStatusEvent {
715
714
  */
716
715
  status: ITypingMessage[];
717
716
  }
717
+ interface IConversationState {
718
+ conversation: IAReceivedConversation;
719
+ updatedItems?: {
720
+ [key: string]: {
721
+ time: number;
722
+ val: any;
723
+ };
724
+ };
725
+ }
718
726
  interface IConversationEvent {
719
727
  /**
720
728
  * 会话信息数组
721
729
  */
722
- conversations: [];
730
+ conversations: IConversationState[];
723
731
  }
724
732
 
725
733
  declare type EventListeners = {
@@ -846,7 +854,7 @@ declare function clearTextMessageDraft(options: IConversationOption): Promise<IA
846
854
  * @param includeMuted 是否包含免打扰会话
847
855
  * @param conversationTypes 要获取未读数的会话类型,若为空,则默认获取单聊、群聊及系统消息未读数
848
856
  */
849
- declare function getTotalUnreadCount(includeMuted?: boolean, conversationTypes?: ConversationType[]): Promise<IAsyncRes<number>>;
857
+ declare function getTotalUnreadCount(logger: ILogger, includeMuted?: boolean, conversationTypes?: ConversationType[]): Promise<IAsyncRes<number>>;
850
858
  /**
851
859
  * 获取会话指定免打扰级别的未读数
852
860
  * @category 会话未读数
@@ -948,7 +956,7 @@ declare function getAllUnreadMentionedCount(): Promise<IAsyncRes<number>>;
948
956
  * 获取本地全部会话的状态
949
957
  * @category 会话
950
958
  */
951
- declare function getAllConversationState(): Promise<IAsyncRes<IConversationState[]>>;
959
+ declare function getAllConversationState(): Promise<IAsyncRes<IConversationState$1[]>>;
952
960
 
953
961
  /**
954
962
  * 获取超级群会话列表