easemob-websdk 4.9.0 → 4.9.1
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 +5 -0
- package/Easemob-chat.d.ts +30 -1
- package/Easemob-chat.js +1 -1
- package/chatroom/chatroom.js +1 -1
- package/contact/contact.d.ts +10 -0
- package/contact/contact.js +1 -1
- package/group/group.js +1 -1
- package/localCache/localCache.js +1 -1
- 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/silent/silent.js +1 -1
- package/thread/thread.js +1 -1
- package/translation/translation.js +1 -1
- package/types/common.d.ts +2 -0
- package/types/engineCore.d.ts +12 -1
- package/types/eventHandler.d.ts +4 -0
- package/uniApp/Easemob-chat.js +1 -1
package/CHANGELOG.md
CHANGED
package/Easemob-chat.d.ts
CHANGED
|
@@ -215,22 +215,32 @@ export declare namespace EasemobChat {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
interface NotificationConMultiDeviceInfo {
|
|
218
|
+
/** The multi-device conversation event. */
|
|
218
219
|
operation:
|
|
219
220
|
| 'setSilentModeForConversation'
|
|
220
221
|
| 'removeSilentModeForConversation';
|
|
222
|
+
/** The client resource. */
|
|
221
223
|
resource: string;
|
|
224
|
+
/** The conversation ID. */
|
|
222
225
|
conversationId: string;
|
|
226
|
+
/** The conversation type. */
|
|
223
227
|
type: 'singleChat' | 'groupChat';
|
|
228
|
+
/** The silent mode type. */
|
|
224
229
|
data: {
|
|
230
|
+
/** The silent mode type. */
|
|
225
231
|
type?: 'AT' | 'NONE' | 'ALL';
|
|
232
|
+
/** The silent mode duration. */
|
|
226
233
|
ignoreDuration?: number;
|
|
227
234
|
};
|
|
228
235
|
}
|
|
229
236
|
interface NotificationUserMultiDeviceInfo {
|
|
237
|
+
/** The multi-device conversation event. */
|
|
230
238
|
operation: 'setSilentModeForUser';
|
|
239
|
+
/** The client resource. */
|
|
231
240
|
resource: string;
|
|
232
|
-
|
|
241
|
+
/** The silent mode type. */
|
|
233
242
|
data: {
|
|
243
|
+
/** Silent mode interval. */
|
|
234
244
|
ignoreInterval: string;
|
|
235
245
|
};
|
|
236
246
|
}
|
|
@@ -4143,6 +4153,18 @@ export declare namespace EasemobChat {
|
|
|
4143
4153
|
}
|
|
4144
4154
|
): Promise<AsyncResult<UploadTokenResult>>;
|
|
4145
4155
|
|
|
4156
|
+
/**
|
|
4157
|
+
*
|
|
4158
|
+
* Unbind push device token.
|
|
4159
|
+
*
|
|
4160
|
+
* ```typescript
|
|
4161
|
+
* connection.unbindPushToken()
|
|
4162
|
+
* ```
|
|
4163
|
+
*/
|
|
4164
|
+
unbindPushToken(
|
|
4165
|
+
this: Connection
|
|
4166
|
+
): Promise<AsyncResult<UploadTokenResult>>;
|
|
4167
|
+
|
|
4146
4168
|
/**
|
|
4147
4169
|
* @deprecated Use {@link getConversationlist} instead.
|
|
4148
4170
|
* Gets the conversation list.
|
|
@@ -5660,6 +5682,8 @@ export declare namespace EasemobChat {
|
|
|
5660
5682
|
ext?: string;
|
|
5661
5683
|
/** The reason for the event. */
|
|
5662
5684
|
reason?: string;
|
|
5685
|
+
/** The updated announcement. */
|
|
5686
|
+
announcement?: string;
|
|
5663
5687
|
}
|
|
5664
5688
|
|
|
5665
5689
|
interface GetChatroomAttributesResult {
|
|
@@ -5797,6 +5821,8 @@ export declare namespace EasemobChat {
|
|
|
5797
5821
|
memberCount?: number;
|
|
5798
5822
|
/** The reason for the event. */
|
|
5799
5823
|
reason?: string;
|
|
5824
|
+
/** The updated announcement. */
|
|
5825
|
+
announcement?: string;
|
|
5800
5826
|
}
|
|
5801
5827
|
|
|
5802
5828
|
interface ChatroomEvent {
|
|
@@ -5857,6 +5883,8 @@ export declare namespace EasemobChat {
|
|
|
5857
5883
|
ext?: string;
|
|
5858
5884
|
/** The reason for the event. */
|
|
5859
5885
|
reason?: string;
|
|
5886
|
+
/** The updated announcement. */
|
|
5887
|
+
announcement?: string;
|
|
5860
5888
|
}
|
|
5861
5889
|
|
|
5862
5890
|
interface MessagePinEvent {
|
|
@@ -6214,6 +6242,7 @@ export declare namespace EasemobChat {
|
|
|
6214
6242
|
gid?: string;
|
|
6215
6243
|
owner?: string;
|
|
6216
6244
|
reason?: string;
|
|
6245
|
+
announcement?: string;
|
|
6217
6246
|
kicked?: string;
|
|
6218
6247
|
detail?: GroupModifyInfo;
|
|
6219
6248
|
ext?: string;
|