@onyx-p/imlib-web 1.0.12 → 1.0.14
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/dist/index.esm.js +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/types/index.d.ts +7 -0
- package/dist/types/types.d.ts +4 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
@@ -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
|
/**
|
package/dist/types/types.d.ts
CHANGED
@@ -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
|
* 会话信息
|