@rongcloud/engine 5.0.2-custom-qihoo.1 → 5.0.2
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.d.ts +14 -5
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCEngine - v5.0.2
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v5.0.2
|
|
3
|
+
* CommitId - 2f7e168dbfa90aeb36ded32505fa5b07d1fde72f
|
|
4
|
+
* Thu Dec 30 2021 14:14:19 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -942,6 +942,7 @@ interface IBlockedMessageInfo {
|
|
|
942
942
|
blockedMessageUId: string;
|
|
943
943
|
conversationType: number;
|
|
944
944
|
targetId: string;
|
|
945
|
+
channelId: string;
|
|
945
946
|
blockType: MessageBlockType;
|
|
946
947
|
}
|
|
947
948
|
|
|
@@ -2241,9 +2242,9 @@ interface IRequest {
|
|
|
2241
2242
|
*/
|
|
2242
2243
|
timeout?: number;
|
|
2243
2244
|
/**
|
|
2244
|
-
*
|
|
2245
|
+
* 期望返回的数据格式,如果为 json 则返回后会对返回的数据进行一次 JSON.parse, 在小程序平台需要
|
|
2245
2246
|
*/
|
|
2246
|
-
dataType?:
|
|
2247
|
+
dataType?: 'json' | 'text' | 'base64' | 'arraybuffer';
|
|
2247
2248
|
}
|
|
2248
2249
|
interface IStorage {
|
|
2249
2250
|
setItem(key: string, value: string): void;
|
|
@@ -4093,6 +4094,10 @@ declare class APIContext {
|
|
|
4093
4094
|
* 清除会话消息未读数
|
|
4094
4095
|
*/
|
|
4095
4096
|
clearUnreadCount(conversationType: ConversationType, targetId: string, channelId?: string): Promise<ErrorCode>;
|
|
4097
|
+
/**
|
|
4098
|
+
* 清除全部会话消息未读数
|
|
4099
|
+
*/
|
|
4100
|
+
clearAllUnreadCount(): Promise<ErrorCode>;
|
|
4096
4101
|
/**
|
|
4097
4102
|
* 获取指定会话消息未读数
|
|
4098
4103
|
*/
|
|
@@ -4858,6 +4863,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
4858
4863
|
* 清除指定会话未读数
|
|
4859
4864
|
*/
|
|
4860
4865
|
abstract clearConversationUnreadCount(conversationType: ConversationType, targetId: string, channelId: string): Promise<ErrorCode>;
|
|
4866
|
+
/**
|
|
4867
|
+
* 清除全部会话未读数
|
|
4868
|
+
*/
|
|
4869
|
+
abstract clearAllUnreadCount(): Promise<ErrorCode>;
|
|
4861
4870
|
/**
|
|
4862
4871
|
* 获取第一个未读消息
|
|
4863
4872
|
*/
|