easemob-websdk 4.17.0 → 4.17.3
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 +52 -0
- package/Easemob-chat.js +1 -1
- package/{readme.md → README.md} +5 -6
- package/chatroom/chatroom.js +1 -1
- 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 +10 -3
- 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/uniApp/Easemob-chat.js +1 -1
- package/websdk/Easemob-chat.js +1 -0
package/Easemob-chat.d.ts
CHANGED
|
@@ -1577,6 +1577,7 @@ export declare namespace EasemobChat {
|
|
|
1577
1577
|
};
|
|
1578
1578
|
|
|
1579
1579
|
eventHandler?: EventHandler;
|
|
1580
|
+
/// #if !IS_LITE
|
|
1580
1581
|
/**
|
|
1581
1582
|
* @deprecated
|
|
1582
1583
|
*/
|
|
@@ -1608,6 +1609,7 @@ export declare namespace EasemobChat {
|
|
|
1608
1609
|
onContactAdded?: (msg: ContactMsgBody) => void;
|
|
1609
1610
|
onTokenWillExpire?: () => void;
|
|
1610
1611
|
onTokenExpired?: () => void;
|
|
1612
|
+
/// #endif
|
|
1611
1613
|
// eslint-disable-next-line no-undef
|
|
1612
1614
|
[key: string]: any;
|
|
1613
1615
|
constructor(options: ConnectionParameters);
|
|
@@ -1651,6 +1653,7 @@ export declare namespace EasemobChat {
|
|
|
1651
1653
|
/** Updates token. */
|
|
1652
1654
|
renewToken(token: string): Promise<NewTokenResult>;
|
|
1653
1655
|
|
|
1656
|
+
/// #if !IS_LITE
|
|
1654
1657
|
// ChatRoom API
|
|
1655
1658
|
/**
|
|
1656
1659
|
* Gets chat room list (paging).
|
|
@@ -1717,6 +1720,7 @@ export declare namespace EasemobChat {
|
|
|
1717
1720
|
}
|
|
1718
1721
|
): Promise<AsyncResult<CreateDeleteChatRoomResult>>;
|
|
1719
1722
|
|
|
1723
|
+
/// #endif
|
|
1720
1724
|
/**
|
|
1721
1725
|
* Gets specifications of the chat room.
|
|
1722
1726
|
*
|
|
@@ -1736,6 +1740,7 @@ export declare namespace EasemobChat {
|
|
|
1736
1740
|
}
|
|
1737
1741
|
): Promise<AsyncResult<Array<GetChatRoomDetailsResult>>>;
|
|
1738
1742
|
|
|
1743
|
+
/// #if !IS_LITE
|
|
1739
1744
|
/**
|
|
1740
1745
|
* Modifies the specifications of the chat room.
|
|
1741
1746
|
*
|
|
@@ -1842,6 +1847,8 @@ export declare namespace EasemobChat {
|
|
|
1842
1847
|
}
|
|
1843
1848
|
): Promise<AsyncResult<AddUsersToChatRoomResult>>;
|
|
1844
1849
|
|
|
1850
|
+
/// #endif
|
|
1851
|
+
|
|
1845
1852
|
/**
|
|
1846
1853
|
* Joins the chat room.
|
|
1847
1854
|
*
|
|
@@ -1871,6 +1878,8 @@ export declare namespace EasemobChat {
|
|
|
1871
1878
|
}
|
|
1872
1879
|
): Promise<AsyncResult<JoinChatRoomResult>>;
|
|
1873
1880
|
|
|
1881
|
+
/// #if !IS_LITE
|
|
1882
|
+
|
|
1874
1883
|
/**
|
|
1875
1884
|
* @deprecated Use {@link leaveChatRoom} instead.
|
|
1876
1885
|
* Exits the chat room.
|
|
@@ -1895,6 +1904,8 @@ export declare namespace EasemobChat {
|
|
|
1895
1904
|
}
|
|
1896
1905
|
): Promise<AsyncResult<{ result: boolean }>>;
|
|
1897
1906
|
|
|
1907
|
+
/// #endif
|
|
1908
|
+
|
|
1898
1909
|
/**
|
|
1899
1910
|
* Exits the chat room.
|
|
1900
1911
|
*
|
|
@@ -1915,6 +1926,7 @@ export declare namespace EasemobChat {
|
|
|
1915
1926
|
}
|
|
1916
1927
|
): Promise<AsyncResult<{ result: boolean }>>;
|
|
1917
1928
|
|
|
1929
|
+
/// #if !IS_LITE
|
|
1918
1930
|
/** @deprecated */
|
|
1919
1931
|
listChatRoomMember(
|
|
1920
1932
|
this: Connection,
|
|
@@ -1953,6 +1965,8 @@ export declare namespace EasemobChat {
|
|
|
1953
1965
|
}
|
|
1954
1966
|
): Promise<AsyncResult<{ member: string }[]>>;
|
|
1955
1967
|
|
|
1968
|
+
/// #endif
|
|
1969
|
+
|
|
1956
1970
|
/**
|
|
1957
1971
|
* Gets the list chat room members with pagination.
|
|
1958
1972
|
*
|
|
@@ -1977,6 +1991,8 @@ export declare namespace EasemobChat {
|
|
|
1977
1991
|
}>
|
|
1978
1992
|
>;
|
|
1979
1993
|
|
|
1994
|
+
/// #if !IS_LITE
|
|
1995
|
+
|
|
1980
1996
|
/**
|
|
1981
1997
|
* Gets all admins of the chat room.
|
|
1982
1998
|
*
|
|
@@ -2555,6 +2571,8 @@ export declare namespace EasemobChat {
|
|
|
2555
2571
|
}
|
|
2556
2572
|
): Promise<AsyncResult<boolean>>;
|
|
2557
2573
|
|
|
2574
|
+
/// #endif
|
|
2575
|
+
|
|
2558
2576
|
/**
|
|
2559
2577
|
* Gets the announcement of the chat room.
|
|
2560
2578
|
*
|
|
@@ -2574,6 +2592,8 @@ export declare namespace EasemobChat {
|
|
|
2574
2592
|
}
|
|
2575
2593
|
): Promise<AsyncResult<FetchChatRoomAnnouncementResult>>;
|
|
2576
2594
|
|
|
2595
|
+
/// #if !IS_LITE
|
|
2596
|
+
|
|
2577
2597
|
/**
|
|
2578
2598
|
* Updates the announcement of the chat room.
|
|
2579
2599
|
*
|
|
@@ -4404,6 +4424,8 @@ export declare namespace EasemobChat {
|
|
|
4404
4424
|
}
|
|
4405
4425
|
): Promise<AsyncResult<DeleteSessionResult>>;
|
|
4406
4426
|
|
|
4427
|
+
/// #endif
|
|
4428
|
+
|
|
4407
4429
|
/**
|
|
4408
4430
|
* Deletes the conversation.
|
|
4409
4431
|
*
|
|
@@ -4431,6 +4453,8 @@ export declare namespace EasemobChat {
|
|
|
4431
4453
|
}
|
|
4432
4454
|
): Promise<AsyncResult<DeleteSessionResult>>;
|
|
4433
4455
|
|
|
4456
|
+
/// #if !IS_LITE
|
|
4457
|
+
|
|
4434
4458
|
/**
|
|
4435
4459
|
* @deprecated Use {@link updateUserInfo} instead.
|
|
4436
4460
|
* Updates own information.
|
|
@@ -4526,6 +4550,8 @@ export declare namespace EasemobChat {
|
|
|
4526
4550
|
}
|
|
4527
4551
|
): Promise<MessageBody[]>;
|
|
4528
4552
|
|
|
4553
|
+
/// #endif
|
|
4554
|
+
|
|
4529
4555
|
/**
|
|
4530
4556
|
* Gets the message history.
|
|
4531
4557
|
*
|
|
@@ -4601,6 +4627,8 @@ export declare namespace EasemobChat {
|
|
|
4601
4627
|
}
|
|
4602
4628
|
): Promise<void>;
|
|
4603
4629
|
|
|
4630
|
+
/// #if !IS_LITE
|
|
4631
|
+
|
|
4604
4632
|
/**
|
|
4605
4633
|
* Adds a friend.
|
|
4606
4634
|
*
|
|
@@ -4717,6 +4745,8 @@ export declare namespace EasemobChat {
|
|
|
4717
4745
|
}
|
|
4718
4746
|
): Promise<void>;
|
|
4719
4747
|
|
|
4748
|
+
/// #endif
|
|
4749
|
+
|
|
4720
4750
|
/**
|
|
4721
4751
|
* Recalls a message.
|
|
4722
4752
|
*
|
|
@@ -4752,6 +4782,8 @@ export declare namespace EasemobChat {
|
|
|
4752
4782
|
}
|
|
4753
4783
|
): Promise<SendMsgResult>;
|
|
4754
4784
|
|
|
4785
|
+
/// #if !IS_LITE
|
|
4786
|
+
|
|
4755
4787
|
/**
|
|
4756
4788
|
* Modifies a message in the server.
|
|
4757
4789
|
*
|
|
@@ -4788,6 +4820,8 @@ export declare namespace EasemobChat {
|
|
|
4788
4820
|
// listen @deprecated
|
|
4789
4821
|
listen(this: Connection, parameters: ListenParameters): void;
|
|
4790
4822
|
|
|
4823
|
+
/// #endif
|
|
4824
|
+
|
|
4791
4825
|
/**
|
|
4792
4826
|
* Adds listening events.
|
|
4793
4827
|
*
|
|
@@ -4810,6 +4844,8 @@ export declare namespace EasemobChat {
|
|
|
4810
4844
|
*/
|
|
4811
4845
|
removeEventHandler(id: string): void;
|
|
4812
4846
|
|
|
4847
|
+
/// #if !IS_LITE
|
|
4848
|
+
|
|
4813
4849
|
/** Download combined message. */
|
|
4814
4850
|
downloadAndParseCombineMessage(
|
|
4815
4851
|
options: DownloadCombineMessagesParams
|
|
@@ -5145,6 +5181,8 @@ export declare namespace EasemobChat {
|
|
|
5145
5181
|
}
|
|
5146
5182
|
): Promise<void>;
|
|
5147
5183
|
|
|
5184
|
+
/// #endif
|
|
5185
|
+
|
|
5148
5186
|
/**
|
|
5149
5187
|
* Gets the list of conversations from the server with pagination.
|
|
5150
5188
|
*
|
|
@@ -5171,6 +5209,9 @@ export declare namespace EasemobChat {
|
|
|
5171
5209
|
includeEmptyConversations?: boolean;
|
|
5172
5210
|
}
|
|
5173
5211
|
): Promise<AsyncResult<ServerConversations>>;
|
|
5212
|
+
|
|
5213
|
+
/// #if !IS_LITE
|
|
5214
|
+
|
|
5174
5215
|
/**
|
|
5175
5216
|
* Get the list of pinned conversations from the server with pagination.
|
|
5176
5217
|
*
|
|
@@ -5195,6 +5236,9 @@ export declare namespace EasemobChat {
|
|
|
5195
5236
|
includeEmptyConversations?: boolean;
|
|
5196
5237
|
}
|
|
5197
5238
|
): Promise<AsyncResult<ServerConversations>>;
|
|
5239
|
+
|
|
5240
|
+
/// #endif
|
|
5241
|
+
|
|
5198
5242
|
/**
|
|
5199
5243
|
* Sets whether to pin a conversation.
|
|
5200
5244
|
*
|
|
@@ -5217,6 +5261,8 @@ export declare namespace EasemobChat {
|
|
|
5217
5261
|
}
|
|
5218
5262
|
): Promise<AsyncResult<PinConversation>>;
|
|
5219
5263
|
|
|
5264
|
+
/// #if !IS_LITE
|
|
5265
|
+
|
|
5220
5266
|
/**
|
|
5221
5267
|
* Set contact remark.
|
|
5222
5268
|
*
|
|
@@ -5855,6 +5901,8 @@ export declare namespace EasemobChat {
|
|
|
5855
5901
|
}
|
|
5856
5902
|
): Promise<AsyncResult<JoinedChatRoomsResult>>;
|
|
5857
5903
|
|
|
5904
|
+
/// #endif
|
|
5905
|
+
|
|
5858
5906
|
/** Execute this method during the onShow declaration cycle of the application, which will actively detect whether the current connection is valid. */
|
|
5859
5907
|
onShow(): void;
|
|
5860
5908
|
}
|
|
@@ -6260,6 +6308,8 @@ export declare namespace EasemobChat {
|
|
|
6260
6308
|
): void;
|
|
6261
6309
|
}
|
|
6262
6310
|
|
|
6311
|
+
/// #if !IS_LITE
|
|
6312
|
+
|
|
6263
6313
|
/**
|
|
6264
6314
|
* @module listen
|
|
6265
6315
|
* @deprecated
|
|
@@ -6294,6 +6344,8 @@ export declare namespace EasemobChat {
|
|
|
6294
6344
|
onPresenceStatusChange?: (msg: PresenceType[]) => void;
|
|
6295
6345
|
}
|
|
6296
6346
|
|
|
6347
|
+
/// #endif
|
|
6348
|
+
|
|
6297
6349
|
// ----- for Error -----
|
|
6298
6350
|
|
|
6299
6351
|
interface ErrorParameters {
|