easemob-websdk 4.1.7 → 4.2.0
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 +22 -12
- package/Easemob-chat.d.ts +179 -13
- package/Easemob-chat.js +1 -1
- package/contact/contact.d.ts +27 -1
- package/contact/contact.js +1 -1
- package/group/group.js +1 -1
- package/message/combine.d.ts +157 -0
- package/miniCore/miniCore.d.ts +15 -0
- package/miniCore/miniCore.js +1 -1
- package/miniProgram/Easemob-chat.js +1 -1
- package/package.json +1 -1
- package/presence/presence.js +1 -1
- package/readme.md +1 -1
- package/thread/thread.js +1 -1
- package/types/eventHandler.d.ts +4 -0
- package/types/indexApi.d.ts +7 -1
- package/types/{message.ts → message.d.ts} +256 -317
- package/uniApp/Easemob-chat.js +1 -1
package/miniCore/miniCore.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { Translation } from '../translation/translation';
|
|
|
7
7
|
import { Message } from '../message/index';
|
|
8
8
|
import { Contact } from '../contact/contact';
|
|
9
9
|
import { AsyncResult } from '../types/common';
|
|
10
|
+
import { MessagesType } from '../types/message';
|
|
10
11
|
interface MiniCoreOptions {
|
|
11
12
|
appKey: string;
|
|
12
13
|
isHttpDNS?: boolean;
|
|
@@ -34,6 +35,14 @@ export interface NewTokenResult {
|
|
|
34
35
|
/** The expire time. */
|
|
35
36
|
expire?: number;
|
|
36
37
|
}
|
|
38
|
+
|
|
39
|
+
export interface DownloadCombineMessagesParams {
|
|
40
|
+
/** The file url. */
|
|
41
|
+
url: string;
|
|
42
|
+
/** The file secret. */
|
|
43
|
+
secret: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
37
46
|
interface BaseUserInfo {
|
|
38
47
|
/** Whether the current user is enabled. - `true`: Yes; - `false`: No.*/
|
|
39
48
|
activated: boolean;
|
|
@@ -125,6 +134,12 @@ declare class MiniCore {
|
|
|
125
134
|
}): Promise<AsyncResult<BaseUserInfo>>;
|
|
126
135
|
/** Updates token. */
|
|
127
136
|
renewToken(agoraToken: string): Promise<NewTokenResult>;
|
|
137
|
+
|
|
138
|
+
/** Download combined message. */
|
|
139
|
+
downloadAndParseCombineMessage(
|
|
140
|
+
options: DownloadCombineMessagesParams
|
|
141
|
+
): Promise<MessagesType[]>;
|
|
142
|
+
|
|
128
143
|
private clearTokenTimeout;
|
|
129
144
|
private tokenExpireTimeCountDown;
|
|
130
145
|
private stopHeartBeat;
|