@onyx-p/imlib-web 1.0.13 → 1.0.15

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.
@@ -85,6 +85,13 @@ export declare const getUnreadMentionedCount: (options: IConversationOption) =>
85
85
  export declare const getAllUnreadMentionedCount: () => IPromiseResult<number>;
86
86
  /**
87
87
  * 获取本地全部会话的状态
88
+ * @description
89
+ * 返回的本地会话满足以下任一条件:
90
+ * 1. unreadCount > 0
91
+ * 2. unreadMentionedCount > 0
92
+ * 3. notificationLevel !== NotificationLevel.NOT_SET
93
+ * 4. notificationStatus !== NotificationStatus.CLOSE
94
+ * 5. isTop === true
88
95
  */
89
96
  export declare const getAllConversationState: () => IPromiseResult<IConversationState[]>;
90
97
  /**
@@ -1,6 +1,6 @@
1
1
  import { BaseMessage, IExtraData, IUserInfo } from './model/baseMessage';
2
2
  import IReceivedMessage from './model/iReceivedMessage';
3
- import { ConnectionStatus, ConversationType, ErrorCode, IUserProfile, MessageDirection } from './model/statusTypes';
3
+ import { ConnectionStatus, ConversationType, ErrorCode, IUserProfile, MessageDirection, NotificationLevel, NotificationStatus } from './model/statusTypes';
4
4
  import IReceivedConversation from './model/iReceivedConversation';
5
5
  export declare enum LogLevel {
6
6
  DEBUG = 0,
@@ -55,6 +55,9 @@ export interface IBaseConversationInfo {
55
55
  export interface IConversationState extends IBaseConversationInfo {
56
56
  unreadCount: number;
57
57
  unreadMentionedCount: number;
58
+ notificationLevel: NotificationLevel;
59
+ notificationStatus: NotificationStatus;
60
+ isTop: boolean;
58
61
  }
59
62
  /**
60
63
  * 会话信息
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onyx-p/imlib-web",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/types/index.d.ts",