easemob-websdk 4.3.0-beta → 4.3.1-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 +11 -2
- package/Easemob-chat.d.ts +41 -10
- package/Easemob-chat.js +1 -1
- package/chatroom/chatroom.js +1 -1
- package/contact/contact.d.ts +1 -1
- package/group/group.js +1 -1
- package/message/audio.d.ts +2 -0
- package/message/cmd.d.ts +2 -0
- package/message/combine.d.ts +3 -0
- 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 +14 -2
- package/miniCore/miniCore.js +1 -1
- package/miniProgram/Easemob-chat.js +1 -1
- package/package.json +1 -1
- package/types/engineCore.d.ts +3 -0
- package/types/indexApi.d.ts +8 -1
- package/types/message.d.ts +15 -0
- package/uniApp/Easemob-chat.js +1 -1
package/package.json
CHANGED
package/types/engineCore.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GroupId, UserId } from './common';
|
|
2
2
|
import { GroupModifyInfo, MemberAttributes } from './groupApi';
|
|
3
|
+
import { ExcludeAckMessageBody } from './message';
|
|
3
4
|
|
|
4
5
|
declare type OnPresenceMsgType =
|
|
5
6
|
| 'rmChatRoomMute'
|
|
@@ -65,6 +66,8 @@ interface SendMsgResult {
|
|
|
65
66
|
localMsgId: string;
|
|
66
67
|
/** The ID of the message stored on the server. */
|
|
67
68
|
serverMsgId: string;
|
|
69
|
+
/** Message. */
|
|
70
|
+
message?: ExcludeAckMessageBody;
|
|
68
71
|
}
|
|
69
72
|
declare type multiDeviceEventType =
|
|
70
73
|
| 'chatThreadCreate'
|
package/types/indexApi.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Jid, UserId } from './common';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
MessagesType,
|
|
4
|
+
MessageBody,
|
|
5
|
+
ModifiedMsg,
|
|
6
|
+
ExcludeAckMessageBody,
|
|
7
|
+
} from './message';
|
|
3
8
|
interface UpdateOwnUserInfoParams {
|
|
4
9
|
/** The nickname. */
|
|
5
10
|
nickname?: string;
|
|
@@ -101,6 +106,8 @@ interface SendMsgResult {
|
|
|
101
106
|
localMsgId: string;
|
|
102
107
|
/** The message ID on the server. */
|
|
103
108
|
serverMsgId: string;
|
|
109
|
+
/** Message. */
|
|
110
|
+
message?: ExcludeAckMessageBody;
|
|
104
111
|
}
|
|
105
112
|
|
|
106
113
|
interface ModifyMsgResult extends SendMsgResult {
|
package/types/message.d.ts
CHANGED
|
@@ -29,6 +29,11 @@ export declare enum ONLINESTATETYPE {
|
|
|
29
29
|
/** Message online status is not enabled. */
|
|
30
30
|
NONE = 3,
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
export type ExcludeAckMessageBody = Exclude<
|
|
34
|
+
MessageBody,
|
|
35
|
+
ReadMsgBody | DeliveryMsgBody | ChannelMsgBody
|
|
36
|
+
>;
|
|
32
37
|
interface ReadMsgSetParameters {
|
|
33
38
|
id: string;
|
|
34
39
|
to: string;
|
|
@@ -117,6 +122,7 @@ interface TextMsgBody {
|
|
|
117
122
|
onlineState?: ONLINESTATETYPE;
|
|
118
123
|
priority?: MessagePriority;
|
|
119
124
|
broadcast?: boolean;
|
|
125
|
+
isContentReplaced?: boolean;
|
|
120
126
|
deliverOnlineOnly?: boolean;
|
|
121
127
|
modifiedInfo?: ModifiedMsgInfo;
|
|
122
128
|
}
|
|
@@ -172,6 +178,7 @@ interface CmdMsgBody {
|
|
|
172
178
|
onlineState?: ONLINESTATETYPE;
|
|
173
179
|
priority?: MessagePriority;
|
|
174
180
|
broadcast?: boolean;
|
|
181
|
+
isContentReplaced?: boolean;
|
|
175
182
|
deliverOnlineOnly?: boolean;
|
|
176
183
|
}
|
|
177
184
|
interface CreateCmdMsgParameters {
|
|
@@ -235,6 +242,7 @@ interface CustomMsgBody {
|
|
|
235
242
|
onlineState?: ONLINESTATETYPE;
|
|
236
243
|
priority?: MessagePriority;
|
|
237
244
|
broadcast?: boolean;
|
|
245
|
+
isContentReplaced?: boolean;
|
|
238
246
|
deliverOnlineOnly?: boolean;
|
|
239
247
|
}
|
|
240
248
|
interface CreateCustomMsgParameters {
|
|
@@ -299,6 +307,7 @@ interface LocationMsgBody {
|
|
|
299
307
|
onlineState?: ONLINESTATETYPE;
|
|
300
308
|
priority?: MessagePriority;
|
|
301
309
|
broadcast?: boolean;
|
|
310
|
+
isContentReplaced?: boolean;
|
|
302
311
|
deliverOnlineOnly?: boolean;
|
|
303
312
|
}
|
|
304
313
|
interface CreateLocationMsgParameters {
|
|
@@ -367,6 +376,7 @@ interface ImgMsgBody extends ImgMsgSetParameters {
|
|
|
367
376
|
onlineState?: ONLINESTATETYPE;
|
|
368
377
|
priority?: MessagePriority;
|
|
369
378
|
broadcast?: boolean;
|
|
379
|
+
isContentReplaced?: boolean;
|
|
370
380
|
deliverOnlineOnly?: boolean;
|
|
371
381
|
}
|
|
372
382
|
interface CreateImgMsgParameters {
|
|
@@ -451,6 +461,7 @@ interface AudioMsgBody extends AudioMsgSetParameters {
|
|
|
451
461
|
onlineState?: ONLINESTATETYPE;
|
|
452
462
|
priority?: MessagePriority;
|
|
453
463
|
broadcast?: boolean;
|
|
464
|
+
isContentReplaced?: boolean;
|
|
454
465
|
deliverOnlineOnly?: boolean;
|
|
455
466
|
}
|
|
456
467
|
interface CreateAudioMsgParameters {
|
|
@@ -535,6 +546,7 @@ interface VideoMsgBody extends VideoMsgSetParameters {
|
|
|
535
546
|
onlineState?: ONLINESTATETYPE;
|
|
536
547
|
priority?: MessagePriority;
|
|
537
548
|
broadcast?: boolean;
|
|
549
|
+
isContentReplaced?: boolean;
|
|
538
550
|
deliverOnlineOnly?: boolean;
|
|
539
551
|
}
|
|
540
552
|
interface CreateVideoMsgParameters {
|
|
@@ -619,6 +631,7 @@ interface FileMsgBody extends FileMsgSetParameters {
|
|
|
619
631
|
onlineState?: ONLINESTATETYPE;
|
|
620
632
|
priority?: MessagePriority;
|
|
621
633
|
broadcast?: boolean;
|
|
634
|
+
isContentReplaced?: boolean;
|
|
622
635
|
deliverOnlineOnly?: boolean;
|
|
623
636
|
}
|
|
624
637
|
interface CreateFileMsgParameters {
|
|
@@ -741,6 +754,8 @@ interface CombineMsgBody {
|
|
|
741
754
|
priority?: MessagePriority;
|
|
742
755
|
/** Whether global notify message or not. */
|
|
743
756
|
broadcast?: boolean;
|
|
757
|
+
/** Whether the message content is replaced. This property is valid only when `useReplacedMessageContent` is set to `true` during initialization. */
|
|
758
|
+
isContentReplaced?: boolean;
|
|
744
759
|
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
745
760
|
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is discarded.
|
|
746
761
|
* - (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.
|