easemob-websdk 4.0.7 → 4.0.8-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 +7 -0
- package/Easemob-chat.d.ts +37 -5
- package/Easemob-chat.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changes to easemob chat
|
|
2
2
|
|
|
3
|
+
## 4.0.8 (Jun 17, 2022)
|
|
4
|
+
|
|
5
|
+
- 'GetGroupInfo' supports bulk query
|
|
6
|
+
- Add group event:onGroupEvent
|
|
7
|
+
- Add chatroom event:onChatroomEvent
|
|
8
|
+
- Add the limit when sending group messages
|
|
9
|
+
- Invite to join the group callback returns the group name
|
|
3
10
|
## 4.0.7 (May 25, 2022)
|
|
4
11
|
|
|
5
12
|
- Add chatThread feature
|
package/Easemob-chat.d.ts
CHANGED
|
@@ -3103,7 +3103,11 @@ export declare namespace EasemobChat {
|
|
|
3103
3103
|
success?: (res: AsyncResult<SessionInfo[]>) => void;
|
|
3104
3104
|
error?: (error: ErrorEvent) => void;
|
|
3105
3105
|
}
|
|
3106
|
-
): Promise<
|
|
3106
|
+
): Promise<
|
|
3107
|
+
AsyncResult<{
|
|
3108
|
+
channel_infos: SessionInfo[];
|
|
3109
|
+
}>
|
|
3110
|
+
>;
|
|
3107
3111
|
|
|
3108
3112
|
/**
|
|
3109
3113
|
* Gets the conversation list and the latest message under the conversation.
|
|
@@ -3163,9 +3167,12 @@ export declare namespace EasemobChat {
|
|
|
3163
3167
|
fetchUserInfoById(
|
|
3164
3168
|
this: Connection,
|
|
3165
3169
|
userId: UserId | UserId[],
|
|
3166
|
-
properties
|
|
3167
|
-
): Promise<
|
|
3168
|
-
|
|
3170
|
+
properties?: ConfigurableKey[] | ConfigurableKey
|
|
3171
|
+
): Promise<
|
|
3172
|
+
AsyncResult<{
|
|
3173
|
+
[key: string]: UpdateOwnUserInfoParams;
|
|
3174
|
+
}>
|
|
3175
|
+
>;
|
|
3169
3176
|
/**
|
|
3170
3177
|
* When registering, you can set a nickname, which is used to display when pushing messages. You can call the following API to modify the nickname.
|
|
3171
3178
|
*
|
|
@@ -3930,6 +3937,24 @@ export declare namespace EasemobChat {
|
|
|
3930
3937
|
ts: number;
|
|
3931
3938
|
}
|
|
3932
3939
|
|
|
3940
|
+
interface EventData {
|
|
3941
|
+
/** The type of operation. */
|
|
3942
|
+
/** 操作类型。 */
|
|
3943
|
+
operation: string;
|
|
3944
|
+
/** The ID of a group or chatroom. */
|
|
3945
|
+
/** 群组或者聊天室 ID。 */
|
|
3946
|
+
id: string;
|
|
3947
|
+
/** Message sender. */
|
|
3948
|
+
/** 消息发送者。 */
|
|
3949
|
+
from: string;
|
|
3950
|
+
/** Message receiver. */
|
|
3951
|
+
/** 消息接收者。 */
|
|
3952
|
+
to: string;
|
|
3953
|
+
/** Additional data for the operation event. */
|
|
3954
|
+
/** 操作事件的其他数据。 */
|
|
3955
|
+
data?: any;
|
|
3956
|
+
}
|
|
3957
|
+
|
|
3933
3958
|
type Event =
|
|
3934
3959
|
| 'onOpened'
|
|
3935
3960
|
| 'onPresence'
|
|
@@ -3964,7 +3989,12 @@ export declare namespace EasemobChat {
|
|
|
3964
3989
|
| 'onGroupChange'
|
|
3965
3990
|
| 'onChatroomChange'
|
|
3966
3991
|
| 'onContactChange'
|
|
3967
|
-
| 'onPresenceStatusChange'
|
|
3992
|
+
| 'onPresenceStatusChange'
|
|
3993
|
+
| 'onReactionChange'
|
|
3994
|
+
| 'onChatThreadChange'
|
|
3995
|
+
| 'onMultiDeviceEvent'
|
|
3996
|
+
| 'onGroupEvent'
|
|
3997
|
+
| 'onChatroomEvent';
|
|
3968
3998
|
|
|
3969
3999
|
interface EventHandlerType {
|
|
3970
4000
|
onOpened?: (msg: any) => void;
|
|
@@ -4004,6 +4034,8 @@ export declare namespace EasemobChat {
|
|
|
4004
4034
|
onChatThreadChange?: (msg: ThreadChangeInfo) => void;
|
|
4005
4035
|
onMultiDeviceEvent?: (msg: ThreadMultiDeviceInfo) => void;
|
|
4006
4036
|
onReactionChange?: (msg: ReactionMessage) => void;
|
|
4037
|
+
onGroupEvent?: (eventData: EventData) => void;
|
|
4038
|
+
onChatroomEvent?: (eventData: EventData) => void;
|
|
4007
4039
|
}
|
|
4008
4040
|
|
|
4009
4041
|
interface HandlerData {
|