easemob-websdk 4.2.0 → 4.2.1-beta
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/CHANGELOG.md +9 -0
- package/Easemob-chat.d.ts +15 -3
- package/Easemob-chat.js +1 -1
- package/chatroom/chatroom.d.ts +2 -0
- package/contact/contact.d.ts +7 -1
- package/contact/contact.js +1 -1
- package/group/group.d.ts +2 -0
- package/group/group.js +1 -1
- package/localCache/localCache.d.ts +59 -0
- package/localCache/localCache.js +1 -0
- package/miniCore/miniCore.d.ts +20 -1
- package/miniCore/miniCore.js +1 -1
- package/miniProgram/Easemob-chat.js +1 -1
- package/package.json +1 -1
- package/presence/presence.d.ts +2 -0
- package/silent/silent.d.ts +2 -0
- package/status.d.ts +160 -0
- package/thread/thread.d.ts +2 -0
- package/translation/translation.d.ts +2 -0
- package/types/common.d.ts +24 -1
- package/types/engineCore.d.ts +5 -2
- package/types/error.d.ts +2 -1
- package/types/eventHandler.d.ts +16 -0
- package/types/groupApi.d.ts +8 -7
- package/types/index.d.ts +32 -0
- package/types/indexApi.d.ts +2 -2
- package/types/localCache.d.ts +53 -0
- package/types/message.d.ts +0 -1
- package/types/presenceApi.d.ts +0 -5
- package/types/threadApi.d.ts +7 -1
- package/types/utils.d.ts +90 -0
- package/uniApp/Easemob-chat.js +1 -1
- package/types/status.d.ts +0 -337
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changes to easemob chat
|
|
2
2
|
|
|
3
|
+
# 4.2.1 (SEP 26, 2023)
|
|
4
|
+
|
|
5
|
+
- Adds LocalCache API
|
|
6
|
+
- getLocalConversations
|
|
7
|
+
- setLocalConversationCustomField
|
|
8
|
+
- getLocalConversation
|
|
9
|
+
- removeLocalConversation
|
|
10
|
+
- clearConversationUnreadCount
|
|
11
|
+
- onGroupEvent `joinPublicGroupDeclined` callback add the applicant userID
|
|
3
12
|
# 4.2.0 (Jul 27, 2023)
|
|
4
13
|
|
|
5
14
|
- Adds editing message after sent function
|
package/Easemob-chat.d.ts
CHANGED
|
@@ -798,7 +798,7 @@ export declare namespace EasemobChat {
|
|
|
798
798
|
}
|
|
799
799
|
|
|
800
800
|
interface HistoryMessages {
|
|
801
|
-
/** The
|
|
801
|
+
/** The starting message ID for the next query. If the number of messages returned by the SDK is smaller than the requested number, the cursor will be `undefined`. */
|
|
802
802
|
cursor?: string;
|
|
803
803
|
/** The historical messages. */
|
|
804
804
|
messages: MessagesType[];
|
|
@@ -1185,6 +1185,13 @@ export declare namespace EasemobChat {
|
|
|
1185
1185
|
reactionList: ReactionListItem[];
|
|
1186
1186
|
}
|
|
1187
1187
|
|
|
1188
|
+
interface DownloadCombineMessagesParams {
|
|
1189
|
+
/** The file url. */
|
|
1190
|
+
url: string;
|
|
1191
|
+
/** The file secret. */
|
|
1192
|
+
secret: string;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1188
1195
|
/**
|
|
1189
1196
|
* The error code defined by SDK.
|
|
1190
1197
|
* @module Code
|
|
@@ -1234,6 +1241,8 @@ export declare namespace EasemobChat {
|
|
|
1234
1241
|
OPERATION_UNSUPPORTED = 53,
|
|
1235
1242
|
/** An operation that is not allowed. */
|
|
1236
1243
|
OPERATION_NOT_ALLOWED = 54,
|
|
1244
|
+
/** A local database operation failed. */
|
|
1245
|
+
LOCAL_DB_OPERATION_FAILED = 55,
|
|
1237
1246
|
/** The uploading of the file failed. */
|
|
1238
1247
|
WEBIM_UPLOADFILE_ERROR = 101,
|
|
1239
1248
|
/** The current user is not logged in when uploading the file. */
|
|
@@ -4448,6 +4457,11 @@ export declare namespace EasemobChat {
|
|
|
4448
4457
|
*/
|
|
4449
4458
|
removeEventHandler(id: string): void;
|
|
4450
4459
|
|
|
4460
|
+
/** Download combined message. */
|
|
4461
|
+
downloadAndParseCombineMessage(
|
|
4462
|
+
options: DownloadCombineMessagesParams
|
|
4463
|
+
): Promise<MessagesType[]>;
|
|
4464
|
+
|
|
4451
4465
|
/**
|
|
4452
4466
|
* Gets all languages what the translate service support.
|
|
4453
4467
|
*
|
|
@@ -6225,7 +6239,6 @@ export declare namespace EasemobChat {
|
|
|
6225
6239
|
*/
|
|
6226
6240
|
deliverOnlineOnly?: boolean;
|
|
6227
6241
|
/** The list of message recipients. */
|
|
6228
|
-
/** 消息接收方列表。 */
|
|
6229
6242
|
receiverList?: string[];
|
|
6230
6243
|
}
|
|
6231
6244
|
|
|
@@ -6453,7 +6466,6 @@ export declare namespace EasemobChat {
|
|
|
6453
6466
|
*/
|
|
6454
6467
|
deliverOnlineOnly?: boolean;
|
|
6455
6468
|
/** The list of message recipients. */
|
|
6456
|
-
/** 消息接收方列表。 */
|
|
6457
6469
|
receiverList?: string[];
|
|
6458
6470
|
}
|
|
6459
6471
|
|