easemob-websdk 4.2.1 → 4.3.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 +9 -0
- package/Easemob-chat.d.ts +92 -18
- package/Easemob-chat.js +1 -1
- package/contact/contact.d.ts +42 -1
- package/contact/contact.js +1 -1
- package/message/audio.d.ts +2 -0
- package/message/cmd.d.ts +2 -0
- package/message/combine.d.ts +156 -149
- package/message/custom.d.ts +2 -0
- package/message/file.d.ts +2 -0
- package/message/img.d.ts +2 -0
- package/message/location.d.ts +2 -0
- package/message/text.d.ts +2 -0
- package/message/video.d.ts +2 -0
- package/miniCore/miniCore.d.ts +3 -3
- package/miniCore/miniCore.js +1 -1
- package/miniProgram/Easemob-chat.js +1 -1
- package/package.json +1 -1
- package/types/indexApi.d.ts +23 -1
- package/types/message.d.ts +22 -11
- package/uniApp/Easemob-chat.js +1 -1
package/message/text.d.ts
CHANGED
|
@@ -72,6 +72,8 @@ export interface TextMsgBody {
|
|
|
72
72
|
isChatThread?: boolean;
|
|
73
73
|
/** Message priority. */
|
|
74
74
|
priority?: MessagePriority;
|
|
75
|
+
/** Whether global notify message or not. */
|
|
76
|
+
broadcast?: boolean;
|
|
75
77
|
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
76
78
|
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is discarded.
|
|
77
79
|
* - (Default) `false`: The message is delivered when the recipient(s) is/are online. If the recipient(s) is/are offline, the message will not be delivered to them until they get online.
|
package/message/video.d.ts
CHANGED
|
@@ -84,6 +84,8 @@ export interface VideoMsgBody extends VideoMsgSetParameters {
|
|
|
84
84
|
isChatThread?: boolean;
|
|
85
85
|
/** Message priority. */
|
|
86
86
|
priority?: MessagePriority;
|
|
87
|
+
/** Whether global notify message or not. */
|
|
88
|
+
broadcast?: boolean;
|
|
87
89
|
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
88
90
|
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is discarded.
|
|
89
91
|
* - (Default) `false`: The message is delivered when the recipient(s) is/are online. If the recipient(s) is/are offline, the message will not be delivered to them until they get online.
|
package/miniCore/miniCore.d.ts
CHANGED
|
@@ -26,9 +26,9 @@ export interface OpenParams {
|
|
|
26
26
|
username: string;
|
|
27
27
|
/** The user ID. */
|
|
28
28
|
password?: string;
|
|
29
|
-
/**
|
|
29
|
+
/** Token required to connect to the message service. */
|
|
30
30
|
accessToken?: string;
|
|
31
|
-
/**
|
|
31
|
+
/** @deprecated Use 'accessToken' instead. */
|
|
32
32
|
agoraToken?: string;
|
|
33
33
|
}
|
|
34
34
|
export interface NewTokenResult {
|
|
@@ -138,7 +138,7 @@ declare class MiniCore {
|
|
|
138
138
|
nickname: string;
|
|
139
139
|
}): Promise<AsyncResult<BaseUserInfo>>;
|
|
140
140
|
/** Updates token. */
|
|
141
|
-
renewToken(
|
|
141
|
+
renewToken(token: string): Promise<NewTokenResult>;
|
|
142
142
|
|
|
143
143
|
/** Download combined message. */
|
|
144
144
|
downloadAndParseCombineMessage(
|