easemob-websdk 4.4.1 → 4.5.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/CHANGELOG.md +13 -0
- package/Easemob-chat.d.ts +31 -9
- package/Easemob-chat.js +1 -1
- package/contact/contact.d.ts +22 -4
- package/contact/contact.js +1 -1
- package/localCache/localCache.js +1 -1
- package/miniCore/miniCore.d.ts +11 -2
- package/miniCore/miniCore.js +1 -1
- package/miniProgram/Easemob-chat.js +1 -1
- package/package.json +1 -1
- package/status.d.ts +4 -0
- package/types/common.d.ts +4 -4
- package/uniApp/Easemob-chat.js +1 -1
package/package.json
CHANGED
package/status.d.ts
CHANGED
|
@@ -50,6 +50,10 @@ declare enum Code {
|
|
|
50
50
|
OPERATION_NOT_ALLOWED = 54,
|
|
51
51
|
/** A local database operation failed. */
|
|
52
52
|
LOCAL_DB_OPERATION_FAILED = 55,
|
|
53
|
+
/** Token expired. */
|
|
54
|
+
WEBIM_TOKEN_EXPIRED = 56,
|
|
55
|
+
/** Server serving disabled. */
|
|
56
|
+
WEBIM_SERVER_SERVING_DISABLED = 57,
|
|
53
57
|
/** The uploading of the file failed. */
|
|
54
58
|
WEBIM_UPLOADFILE_ERROR = 101,
|
|
55
59
|
/** The current user is not logged in when uploading the file. */
|
package/types/common.d.ts
CHANGED
|
@@ -45,10 +45,10 @@ interface EventData {
|
|
|
45
45
|
name?: string;
|
|
46
46
|
/** The userId of a group event. */
|
|
47
47
|
userId?: string;
|
|
48
|
-
/**
|
|
49
|
-
attributes?: {
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
/** Custom Attributes. */
|
|
49
|
+
attributes?: Array<string> | { [key: string]: string };
|
|
50
|
+
/** The member count. For a chat room with more than 2000 members, `memberCount` will not be returned. */
|
|
51
|
+
memberCount?: number;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
interface AttributeRespData {
|