@rongcloud/engine 5.8.3-alpha.2 → 5.8.3-alpha.3
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 +4 -0
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4840,6 +4840,9 @@ interface IEngine {
|
|
|
4840
4840
|
* 批量设置会话 置顶、免打扰
|
|
4841
4841
|
*/
|
|
4842
4842
|
batchSetConversationStatus(statusList: ISetConversationStatusOptions[]): Promise<ErrorCode>;
|
|
4843
|
+
setConversationNotificationLevel(conversationType: ConversationType, targetId: string, notificationLevel: NotificationLevel, channelId?: string): Promise<number>;
|
|
4844
|
+
getConversationNotificationLevel(conversationType: ConversationType, targetId: string, channelId: string): IPromiseResult<NotificationLevel>;
|
|
4845
|
+
getTotalUnreadCountByLevels(conversationTypes: ConversationType[], levels: NotificationLevel[], isMentioned?: boolean): Promise<IAsyncRes<number>>;
|
|
4843
4846
|
sendMessage(conversationType: ConversationType, targetId: string, options: ISendMsgOptions, onBefore?: (messageId: number) => void, traceId?: string): IPromiseResult<IReceivedMessage>;
|
|
4844
4847
|
/**
|
|
4845
4848
|
* 断开连接
|
|
@@ -7877,6 +7880,7 @@ declare abstract class AEngine {
|
|
|
7877
7880
|
* @deprecated 已废弃,请使用 getConversationNotificationLevel
|
|
7878
7881
|
*/
|
|
7879
7882
|
abstract getConversationNotificationStatus(conversationType: ConversationType, targetId: string, channelId: string): IPromiseResult<NotificationStatus>;
|
|
7883
|
+
abstract setConversationNotificationLevel(conversationType: ConversationType, targetId: string, notificationLevel?: NotificationLevel, channelId?: string): Promise<ErrorCode>;
|
|
7880
7884
|
/**
|
|
7881
7885
|
* 获取会话免打扰状态
|
|
7882
7886
|
* 旧:getConversationNotificationStatus
|