@rongcloud/imlib-next 5.5.8-beem-alpha.4 → 5.5.8-beem

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