easemob-websdk 4.12.1-beta → 4.13.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/Easemob-chat.d.ts +28 -10
- package/Easemob-chat.js +1 -1
- package/chatroom/chatroom.d.ts +3 -3
- package/contact/contact.d.ts +7 -3
- package/contact/contact.js +1 -1
- package/message/audio.d.ts +4 -0
- package/message/cmd.d.ts +3 -0
- package/message/combine.d.ts +3 -0
- package/message/file.d.ts +3 -0
- package/message/img.d.ts +3 -0
- package/message/location.d.ts +3 -0
- package/message/video.d.ts +3 -0
- package/miniCore/miniCore.js +1 -1
- package/miniProgram/Easemob-chat.js +1 -1
- package/package.json +1 -1
- package/types/indexApi.d.ts +3 -3
- package/types/message.d.ts +10 -2
- package/uniApp/Easemob-chat.js +1 -1
- package/CHANGELOG.md +0 -302
- package/readme.md +0 -59
package/Easemob-chat.d.ts
CHANGED
|
@@ -59,14 +59,14 @@ export declare namespace EasemobChat {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/** The modified message. */
|
|
62
|
-
type ModifiedMsg =
|
|
62
|
+
type ModifiedMsg = ExcludeAckMessageBody;
|
|
63
63
|
|
|
64
64
|
/** Messages supported by the `onModifiedMessage` event. */
|
|
65
|
-
type ModifiedEventMessage =
|
|
65
|
+
type ModifiedEventMessage = ExcludeAckMessageBody;
|
|
66
66
|
|
|
67
67
|
interface ModifyMsgResult extends SendMsgResult {
|
|
68
|
-
/** The modified message. */
|
|
69
|
-
|
|
68
|
+
/** The modified info of the message. */
|
|
69
|
+
modifiedInfo: ModifiedMsgInfo;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
interface ModifiedMsgInfo {
|
|
@@ -1727,11 +1727,11 @@ export declare namespace EasemobChat {
|
|
|
1727
1727
|
/** The chat room ID. */
|
|
1728
1728
|
chatRoomId: string;
|
|
1729
1729
|
/** The chat room name. */
|
|
1730
|
-
chatRoomName
|
|
1730
|
+
chatRoomName?: string;
|
|
1731
1731
|
/** The description of the chat room. */
|
|
1732
|
-
description
|
|
1732
|
+
description?: string;
|
|
1733
1733
|
/** The maximum number of members in the chat room. */
|
|
1734
|
-
maxusers
|
|
1734
|
+
maxusers?: number;
|
|
1735
1735
|
success?: (res: AsyncResult<ModifyChatRoomResult>) => void;
|
|
1736
1736
|
error?: (error: ErrorEvent) => void;
|
|
1737
1737
|
}
|
|
@@ -4588,11 +4588,15 @@ export declare namespace EasemobChat {
|
|
|
4588
4588
|
): Promise<SendMsgResult>;
|
|
4589
4589
|
|
|
4590
4590
|
/**
|
|
4591
|
-
* Modifies a message
|
|
4591
|
+
* Modifies a message in the server.
|
|
4592
4592
|
*
|
|
4593
|
-
*
|
|
4593
|
+
* - Text message: Both the message body `msg` and extension information `ext` can be modified.
|
|
4594
|
+
* - Custom message: The custom extension property field `customExts`, custom event type field `customEvent` , and message extension field `ext` can be modified.
|
|
4595
|
+
* - Image/video/voice/file/location/combined message: Only the message extension field `ext` can be modified.
|
|
4596
|
+
* - Command message: This type of message cannot be modified.
|
|
4597
|
+
*
|
|
4598
|
+
* The message recipient can listen for message changes via `onModifiedMessage`. Also, this callback applies in multi-device scenarios.
|
|
4594
4599
|
*
|
|
4595
|
-
* Upon a message modification, the callback `onModifiedMessage` will be received by the message recipient(s) and in multi-device login scenarios.
|
|
4596
4600
|
*
|
|
4597
4601
|
* ```typescript
|
|
4598
4602
|
*
|
|
@@ -6612,6 +6616,8 @@ export declare namespace EasemobChat {
|
|
|
6612
6616
|
* - (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.
|
|
6613
6617
|
*/
|
|
6614
6618
|
deliverOnlineOnly?: boolean;
|
|
6619
|
+
/** Message modified info. */
|
|
6620
|
+
modifiedInfo?: ModifiedMsgInfo;
|
|
6615
6621
|
/** The list of message recipients. */
|
|
6616
6622
|
receiverList?: string[];
|
|
6617
6623
|
/** The file URL. */
|
|
@@ -6764,6 +6770,8 @@ export declare namespace EasemobChat {
|
|
|
6764
6770
|
* - (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.
|
|
6765
6771
|
*/
|
|
6766
6772
|
deliverOnlineOnly?: boolean;
|
|
6773
|
+
/** Message modified info. */
|
|
6774
|
+
modifiedInfo?: ModifiedMsgInfo;
|
|
6767
6775
|
/** The list of message recipients. */
|
|
6768
6776
|
receiverList?: string[];
|
|
6769
6777
|
/** Has the message been read (only single chat messages have this field). */
|
|
@@ -7006,6 +7014,8 @@ export declare namespace EasemobChat {
|
|
|
7006
7014
|
* - (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.
|
|
7007
7015
|
*/
|
|
7008
7016
|
deliverOnlineOnly?: boolean;
|
|
7017
|
+
/** Message modified info. */
|
|
7018
|
+
modifiedInfo?: ModifiedMsgInfo;
|
|
7009
7019
|
/** The list of message recipients. */
|
|
7010
7020
|
receiverList?: string[];
|
|
7011
7021
|
/** Has the message been read (only single chat messages have this field). */
|
|
@@ -7156,6 +7166,8 @@ export declare namespace EasemobChat {
|
|
|
7156
7166
|
* - (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.
|
|
7157
7167
|
*/
|
|
7158
7168
|
deliverOnlineOnly?: boolean;
|
|
7169
|
+
/** Message modified info. */
|
|
7170
|
+
modifiedInfo?: ModifiedMsgInfo;
|
|
7159
7171
|
/** Has the message been read (only single chat messages have this field). */
|
|
7160
7172
|
isRead?: boolean;
|
|
7161
7173
|
/** Has the message been delivered (only single chat messages have this field). */
|
|
@@ -7306,6 +7318,8 @@ export declare namespace EasemobChat {
|
|
|
7306
7318
|
thumbnailWidth?: number;
|
|
7307
7319
|
/** The thumbnail height. */
|
|
7308
7320
|
thumbnailHeight?: number;
|
|
7321
|
+
/** Message modified info. */
|
|
7322
|
+
modifiedInfo?: ModifiedMsgInfo;
|
|
7309
7323
|
/** Has the message been read (only single chat messages have this field). */
|
|
7310
7324
|
isRead?: boolean;
|
|
7311
7325
|
/** Has the message been delivered (only single chat messages have this field). */
|
|
@@ -7457,6 +7471,8 @@ export declare namespace EasemobChat {
|
|
|
7457
7471
|
* - (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.
|
|
7458
7472
|
*/
|
|
7459
7473
|
deliverOnlineOnly?: boolean;
|
|
7474
|
+
/** Message modified info. */
|
|
7475
|
+
modifiedInfo?: ModifiedMsgInfo;
|
|
7460
7476
|
/** The list of message recipients. */
|
|
7461
7477
|
receiverList?: string[];
|
|
7462
7478
|
/** Has the message been read (only single chat messages have this field). */
|
|
@@ -7610,6 +7626,8 @@ export declare namespace EasemobChat {
|
|
|
7610
7626
|
* - (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.
|
|
7611
7627
|
*/
|
|
7612
7628
|
deliverOnlineOnly?: boolean;
|
|
7629
|
+
/** Message modified info. */
|
|
7630
|
+
modifiedInfo?: ModifiedMsgInfo;
|
|
7613
7631
|
/** The list of message recipients. */
|
|
7614
7632
|
receiverList?: string[];
|
|
7615
7633
|
/** Has the message been read (only single chat messages have this field). */
|