node-nim 9.14.3 → 10.2.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/README.md +7 -1
- package/dist/loader.js +35 -35
- package/dist/nim/client.js +184 -184
- package/dist/nim/client.js.map +1 -1
- package/dist/nim/data_sync.js +19 -19
- package/dist/nim/friend.js +150 -150
- package/dist/nim/global.js +131 -131
- package/dist/nim/msglog.js +687 -687
- package/dist/nim/nos.js +216 -180
- package/dist/nim/nos.js.map +1 -1
- package/dist/nim/online_session.js +85 -85
- package/dist/nim/pass_through_proxy.js +39 -39
- package/dist/nim/plugin.js +65 -65
- package/dist/nim/session.js +392 -392
- package/dist/nim/subscribe_event.js +142 -142
- package/dist/nim/super_team.js +592 -615
- package/dist/nim/super_team.js.map +1 -1
- package/dist/nim/sysmsg.js +194 -194
- package/dist/nim/talk.js +209 -209
- package/dist/nim/talk.js.map +1 -1
- package/dist/nim/talkex.js +191 -191
- package/dist/nim/team.js +818 -830
- package/dist/nim/team.js.map +1 -1
- package/dist/nim/tool.js +119 -119
- package/dist/nim/user.js +201 -201
- package/dist/nim_def/client_def.js +245 -245
- package/dist/nim_def/client_def.js.map +1 -1
- package/dist/nim_def/data_sync_def.js +20 -20
- package/dist/nim_def/doc_trans_def.js +16 -16
- package/dist/nim_def/friend_def.js +37 -37
- package/dist/nim_def/global_def.js +39 -39
- package/dist/nim_def/msglog_def.js +148 -148
- package/dist/nim_def/nos_def.js +16 -16
- package/dist/nim_def/online_session_def.js +2 -2
- package/dist/nim_def/pass_through_proxy_def.js +10 -10
- package/dist/nim_def/plugin_def.js +2 -2
- package/dist/nim_def/session_def.js +26 -26
- package/dist/nim_def/subscribe_event_def.js +52 -52
- package/dist/nim_def/super_team_def.js +64 -71
- package/dist/nim_def/super_team_def.js.map +1 -1
- package/dist/nim_def/sysmsg_def.js +28 -28
- package/dist/nim_def/talk_def.js +2 -2
- package/dist/nim_def/talkex_def.js +2 -2
- package/dist/nim_def/team_def.js +69 -76
- package/dist/nim_def/team_def.js.map +1 -1
- package/dist/nim_def/tool_def.js +11 -11
- package/dist/nim_def/user_def.js +22 -22
- package/dist/node-nim.js +171 -171
- package/dist/node-nim.js.map +1 -1
- package/dist/qchat/attachment.js +63 -63
- package/dist/qchat/channel.js +314 -314
- package/dist/qchat/channel_category.js +187 -187
- package/dist/qchat/instance.js +77 -77
- package/dist/qchat/message.js +285 -285
- package/dist/qchat/role.js +423 -423
- package/dist/qchat/server.js +453 -453
- package/dist/qchat/system_notification.js +74 -74
- package/dist/qchat_def/attachment_def.js +2 -2
- package/dist/qchat_def/channel_def.js +2 -2
- package/dist/qchat_def/instance_def.js +2 -2
- package/dist/qchat_def/message_def.js +2 -2
- package/dist/qchat_def/public_def.js +649 -649
- package/dist/qchat_def/public_def.js.map +1 -1
- package/dist/qchat_def/role_def.js +2 -2
- package/dist/qchat_def/server_def.js +2 -2
- package/dist/qchat_def/system_notification_def.js +2 -2
- package/dist/v2/v2_nim_chatroom_client.js +135 -0
- package/dist/v2/v2_nim_chatroom_client.js.map +1 -0
- package/dist/v2/v2_nim_chatroom_service.js +244 -0
- package/dist/v2/v2_nim_chatroom_service.js.map +1 -0
- package/dist/v2/v2_nim_client.js +138 -0
- package/dist/v2/v2_nim_client.js.map +1 -0
- package/dist/v2/v2_nim_conversation_group_service.js +116 -0
- package/dist/v2/v2_nim_conversation_group_service.js.map +1 -0
- package/dist/v2/v2_nim_conversation_service.js +236 -0
- package/dist/v2/v2_nim_conversation_service.js.map +1 -0
- package/dist/v2/v2_nim_friend_service.js +128 -0
- package/dist/v2/v2_nim_friend_service.js.map +1 -0
- package/dist/v2/v2_nim_login_service.js +119 -123
- package/dist/v2/v2_nim_login_service.js.map +1 -1
- package/dist/v2/v2_nim_message_service.js +382 -0
- package/dist/v2/v2_nim_message_service.js.map +1 -0
- package/dist/v2/v2_nim_notification_service.js +30 -0
- package/dist/v2/v2_nim_notification_service.js.map +1 -0
- package/dist/v2/v2_nim_setting_service.js +86 -0
- package/dist/v2/v2_nim_setting_service.js.map +1 -0
- package/dist/v2/v2_nim_storage_service.js +58 -0
- package/dist/v2/v2_nim_storage_service.js.map +1 -0
- package/dist/v2/v2_nim_team_service.js +360 -0
- package/dist/v2/v2_nim_team_service.js.map +1 -0
- package/dist/v2/v2_nim_user_service.js +76 -0
- package/dist/v2/v2_nim_user_service.js.map +1 -0
- package/dist/v2/v2_nim_utilities.js +276 -0
- package/dist/v2/v2_nim_utilities.js.map +1 -0
- package/dist/v2_def/v2_nim_callback_def.js +2 -2
- package/dist/v2_def/v2_nim_enum_def.js +1087 -325
- package/dist/v2_def/v2_nim_enum_def.js.map +1 -1
- package/dist/v2_def/v2_nim_struct_def.js +2 -2
- package/package.json +1 -1
- package/script/download-sdk.js +2 -2
- package/script/publish-to-netease-npm.js +3 -2
- package/types/loader.d.ts +2 -2
- package/types/nim/client.d.ts +123 -123
- package/types/nim/data_sync.d.ts +12 -12
- package/types/nim/friend.d.ts +82 -82
- package/types/nim/global.d.ts +69 -69
- package/types/nim/msglog.d.ts +392 -392
- package/types/nim/nos.d.ts +118 -118
- package/types/nim/online_session.d.ts +44 -44
- package/types/nim/pass_through_proxy.d.ts +24 -24
- package/types/nim/plugin.d.ts +39 -39
- package/types/nim/session.d.ts +212 -212
- package/types/nim/subscribe_event.d.ts +87 -87
- package/types/nim/super_team.d.ts +331 -342
- package/types/nim/sysmsg.d.ts +105 -105
- package/types/nim/talk.d.ts +94 -94
- package/types/nim/talkex.d.ts +95 -95
- package/types/nim/team.d.ts +461 -467
- package/types/nim/tool.d.ts +77 -77
- package/types/nim/user.d.ts +111 -111
- package/types/nim_def/client_def.d.ts +284 -284
- package/types/nim_def/data_sync_def.d.ts +19 -19
- package/types/nim_def/doc_trans_def.d.ts +11 -11
- package/types/nim_def/friend_def.d.ts +65 -65
- package/types/nim_def/global_def.d.ts +62 -62
- package/types/nim_def/msglog_def.d.ts +373 -373
- package/types/nim_def/nos_def.d.ts +72 -72
- package/types/nim_def/online_session_def.d.ts +34 -34
- package/types/nim_def/pass_through_proxy_def.d.ts +13 -13
- package/types/nim_def/plugin_def.d.ts +8 -8
- package/types/nim_def/session_def.d.ts +114 -114
- package/types/nim_def/subscribe_event_def.d.ts +83 -83
- package/types/nim_def/super_team_def.d.ts +144 -163
- package/types/nim_def/sysmsg_def.d.ts +70 -70
- package/types/nim_def/talk_def.d.ts +96 -96
- package/types/nim_def/talkex_def.d.ts +112 -112
- package/types/nim_def/team_def.d.ts +167 -184
- package/types/nim_def/tool_def.d.ts +28 -28
- package/types/nim_def/user_def.d.ts +59 -59
- package/types/node-nim.d.ts +90 -93
- package/types/qchat/attachment.d.ts +40 -40
- package/types/qchat/channel.d.ts +139 -139
- package/types/qchat/channel_category.d.ts +82 -82
- package/types/qchat/instance.d.ts +46 -46
- package/types/qchat/message.d.ts +128 -128
- package/types/qchat/role.d.ts +166 -166
- package/types/qchat/server.d.ts +198 -198
- package/types/qchat/system_notification.d.ts +39 -39
- package/types/qchat_def/attachment_def.d.ts +71 -71
- package/types/qchat_def/channel_def.d.ts +643 -643
- package/types/qchat_def/instance_def.d.ts +214 -214
- package/types/qchat_def/message_def.d.ts +565 -565
- package/types/qchat_def/public_def.d.ts +754 -754
- package/types/qchat_def/role_def.d.ts +413 -413
- package/types/qchat_def/server_def.d.ts +529 -529
- package/types/qchat_def/system_notification_def.d.ts +172 -172
- package/types/v2/v2_nim_chatroom_client.d.ts +73 -0
- package/types/v2/v2_nim_chatroom_service.d.ts +114 -0
- package/types/v2/v2_nim_client.d.ts +75 -0
- package/types/v2/v2_nim_conversation_group_service.d.ts +54 -0
- package/types/v2/v2_nim_conversation_service.d.ts +110 -0
- package/types/v2/v2_nim_friend_service.d.ts +58 -0
- package/types/v2/v2_nim_login_service.d.ts +80 -96
- package/types/v2/v2_nim_message_service.d.ts +143 -0
- package/types/v2/v2_nim_notification_service.d.ts +18 -0
- package/types/v2/v2_nim_setting_service.d.ts +43 -0
- package/types/v2/v2_nim_storage_service.d.ts +28 -0
- package/types/v2/v2_nim_team_service.d.ts +184 -0
- package/types/v2/v2_nim_user_service.d.ts +34 -0
- package/types/v2/v2_nim_utilities.d.ts +168 -0
- package/types/v2_def/v2_nim_callback_def.d.ts +7 -20
- package/types/v2_def/v2_nim_enum_def.d.ts +1009 -300
- package/types/v2_def/v2_nim_struct_def.d.ts +1539 -338
- package/dist/chatroom/chatroom.js +0 -263
- package/dist/chatroom/chatroom.js.map +0 -1
- package/dist/chatroom_def/chatroom_def.js +0 -120
- package/dist/chatroom_def/chatroom_def.js.map +0 -1
- package/dist/v2/v2_nim_instance.js +0 -44
- package/dist/v2/v2_nim_instance.js.map +0 -1
- package/types/chatroom/chatroom.d.ts +0 -55
- package/types/chatroom_def/chatroom_def.d.ts +0 -448
- package/types/v2/v2_nim_instance.d.ts +0 -25
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NIMFriendChangeType = exports.NIMFriendQueryType = exports.NIMVerifyType = exports.NIMFriendSource = exports.NIMFriendFlag = void 0;
|
|
4
|
-
/** @enum NIMFriendFlag 好友类型 */
|
|
5
|
-
var NIMFriendFlag;
|
|
6
|
-
(function (NIMFriendFlag) {
|
|
7
|
-
NIMFriendFlag[NIMFriendFlag["kNIMFriendFlagNotFriend"] = 0] = "kNIMFriendFlagNotFriend"; /** < 陌生人 */
|
|
8
|
-
NIMFriendFlag[NIMFriendFlag["kNIMFriendFlagNormal"] = 1] = "kNIMFriendFlagNormal"; /** < 普通好友 */
|
|
9
|
-
})(NIMFriendFlag = exports.NIMFriendFlag || (exports.NIMFriendFlag = {}));
|
|
10
|
-
/** @enum NIMFriendSource 好友来源 */
|
|
11
|
-
var NIMFriendSource;
|
|
12
|
-
(function (NIMFriendSource) {
|
|
13
|
-
NIMFriendSource[NIMFriendSource["kNIMFriendSourceDefault"] = 0] = "kNIMFriendSourceDefault"; /** < 默认 */
|
|
14
|
-
})(NIMFriendSource = exports.NIMFriendSource || (exports.NIMFriendSource = {}));
|
|
15
|
-
/** @enum NIMVerifyType 好友验证方式 */
|
|
16
|
-
var NIMVerifyType;
|
|
17
|
-
(function (NIMVerifyType) {
|
|
18
|
-
NIMVerifyType[NIMVerifyType["kNIMVerifyTypeAdd"] = 1] = "kNIMVerifyTypeAdd"; /** < 直接加好友 */
|
|
19
|
-
NIMVerifyType[NIMVerifyType["kNIMVerifyTypeAsk"] = 2] = "kNIMVerifyTypeAsk"; /** < 请求加好友 */
|
|
20
|
-
NIMVerifyType[NIMVerifyType["kNIMVerifyTypeAgree"] = 3] = "kNIMVerifyTypeAgree"; /** < 同意 */
|
|
21
|
-
NIMVerifyType[NIMVerifyType["kNIMVerifyTypeReject"] = 4] = "kNIMVerifyTypeReject"; /** < 拒绝 */
|
|
22
|
-
})(NIMVerifyType = exports.NIMVerifyType || (exports.NIMVerifyType = {}));
|
|
23
|
-
/** @enum NIMFriendQueryType 查询好友信息的依据条件 */
|
|
24
|
-
var NIMFriendQueryType;
|
|
25
|
-
(function (NIMFriendQueryType) {
|
|
26
|
-
NIMFriendQueryType[NIMFriendQueryType["kNIMFriendQueryDefault"] = 0] = "kNIMFriendQueryDefault"; /** < 同时匹配账户ID和备注名 */
|
|
27
|
-
NIMFriendQueryType[NIMFriendQueryType["kNIMFriendQueryByAccId"] = 1] = "kNIMFriendQueryByAccId"; /** < 仅匹配账户ID */
|
|
28
|
-
NIMFriendQueryType[NIMFriendQueryType["kNIMFriendQueryByAlias"] = 2] = "kNIMFriendQueryByAlias"; /** < 仅匹配备注名 */
|
|
29
|
-
})(NIMFriendQueryType = exports.NIMFriendQueryType || (exports.NIMFriendQueryType = {}));
|
|
30
|
-
/** @enum NIMFriendChangeType 好友数据变化类型 */
|
|
31
|
-
var NIMFriendChangeType;
|
|
32
|
-
(function (NIMFriendChangeType) {
|
|
33
|
-
NIMFriendChangeType[NIMFriendChangeType["kNIMFriendChangeTypeRequest"] = 1] = "kNIMFriendChangeTypeRequest"; /** < 加好友/处理好友请求 */
|
|
34
|
-
NIMFriendChangeType[NIMFriendChangeType["kNIMFriendChangeTypeDel"] = 2] = "kNIMFriendChangeTypeDel"; /** < 删除好友 */
|
|
35
|
-
NIMFriendChangeType[NIMFriendChangeType["kNIMFriendChangeTypeUpdate"] = 3] = "kNIMFriendChangeTypeUpdate"; /** < 更新好友 */
|
|
36
|
-
NIMFriendChangeType[NIMFriendChangeType["kNIMFriendChangeTypeSyncList"] = 5] = "kNIMFriendChangeTypeSyncList"; /** < 好友列表同步与更新 */
|
|
37
|
-
})(NIMFriendChangeType = exports.NIMFriendChangeType || (exports.NIMFriendChangeType = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NIMFriendChangeType = exports.NIMFriendQueryType = exports.NIMVerifyType = exports.NIMFriendSource = exports.NIMFriendFlag = void 0;
|
|
4
|
+
/** @enum NIMFriendFlag 好友类型 */
|
|
5
|
+
var NIMFriendFlag;
|
|
6
|
+
(function (NIMFriendFlag) {
|
|
7
|
+
NIMFriendFlag[NIMFriendFlag["kNIMFriendFlagNotFriend"] = 0] = "kNIMFriendFlagNotFriend"; /** < 陌生人 */
|
|
8
|
+
NIMFriendFlag[NIMFriendFlag["kNIMFriendFlagNormal"] = 1] = "kNIMFriendFlagNormal"; /** < 普通好友 */
|
|
9
|
+
})(NIMFriendFlag = exports.NIMFriendFlag || (exports.NIMFriendFlag = {}));
|
|
10
|
+
/** @enum NIMFriendSource 好友来源 */
|
|
11
|
+
var NIMFriendSource;
|
|
12
|
+
(function (NIMFriendSource) {
|
|
13
|
+
NIMFriendSource[NIMFriendSource["kNIMFriendSourceDefault"] = 0] = "kNIMFriendSourceDefault"; /** < 默认 */
|
|
14
|
+
})(NIMFriendSource = exports.NIMFriendSource || (exports.NIMFriendSource = {}));
|
|
15
|
+
/** @enum NIMVerifyType 好友验证方式 */
|
|
16
|
+
var NIMVerifyType;
|
|
17
|
+
(function (NIMVerifyType) {
|
|
18
|
+
NIMVerifyType[NIMVerifyType["kNIMVerifyTypeAdd"] = 1] = "kNIMVerifyTypeAdd"; /** < 直接加好友 */
|
|
19
|
+
NIMVerifyType[NIMVerifyType["kNIMVerifyTypeAsk"] = 2] = "kNIMVerifyTypeAsk"; /** < 请求加好友 */
|
|
20
|
+
NIMVerifyType[NIMVerifyType["kNIMVerifyTypeAgree"] = 3] = "kNIMVerifyTypeAgree"; /** < 同意 */
|
|
21
|
+
NIMVerifyType[NIMVerifyType["kNIMVerifyTypeReject"] = 4] = "kNIMVerifyTypeReject"; /** < 拒绝 */
|
|
22
|
+
})(NIMVerifyType = exports.NIMVerifyType || (exports.NIMVerifyType = {}));
|
|
23
|
+
/** @enum NIMFriendQueryType 查询好友信息的依据条件 */
|
|
24
|
+
var NIMFriendQueryType;
|
|
25
|
+
(function (NIMFriendQueryType) {
|
|
26
|
+
NIMFriendQueryType[NIMFriendQueryType["kNIMFriendQueryDefault"] = 0] = "kNIMFriendQueryDefault"; /** < 同时匹配账户ID和备注名 */
|
|
27
|
+
NIMFriendQueryType[NIMFriendQueryType["kNIMFriendQueryByAccId"] = 1] = "kNIMFriendQueryByAccId"; /** < 仅匹配账户ID */
|
|
28
|
+
NIMFriendQueryType[NIMFriendQueryType["kNIMFriendQueryByAlias"] = 2] = "kNIMFriendQueryByAlias"; /** < 仅匹配备注名 */
|
|
29
|
+
})(NIMFriendQueryType = exports.NIMFriendQueryType || (exports.NIMFriendQueryType = {}));
|
|
30
|
+
/** @enum NIMFriendChangeType 好友数据变化类型 */
|
|
31
|
+
var NIMFriendChangeType;
|
|
32
|
+
(function (NIMFriendChangeType) {
|
|
33
|
+
NIMFriendChangeType[NIMFriendChangeType["kNIMFriendChangeTypeRequest"] = 1] = "kNIMFriendChangeTypeRequest"; /** < 加好友/处理好友请求 */
|
|
34
|
+
NIMFriendChangeType[NIMFriendChangeType["kNIMFriendChangeTypeDel"] = 2] = "kNIMFriendChangeTypeDel"; /** < 删除好友 */
|
|
35
|
+
NIMFriendChangeType[NIMFriendChangeType["kNIMFriendChangeTypeUpdate"] = 3] = "kNIMFriendChangeTypeUpdate"; /** < 更新好友 */
|
|
36
|
+
NIMFriendChangeType[NIMFriendChangeType["kNIMFriendChangeTypeSyncList"] = 5] = "kNIMFriendChangeTypeSyncList"; /** < 好友列表同步与更新 */
|
|
37
|
+
})(NIMFriendChangeType = exports.NIMFriendChangeType || (exports.NIMFriendChangeType = {}));
|
|
38
38
|
//# sourceMappingURL=friend_def.js.map
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NIMDBOperation = exports.NIMCachedFileType = exports.NIMProxyType = exports.NIMProxyDetectStep = exports.NIMSDKException = void 0;
|
|
4
|
-
/** @enum NIMSDKException 异常 */
|
|
5
|
-
var NIMSDKException;
|
|
6
|
-
(function (NIMSDKException) {
|
|
7
|
-
NIMSDKException[NIMSDKException["kNIMSDKExceptionSpaceEmpty"] = 1] = "kNIMSDKExceptionSpaceEmpty"; /** < 当前数据目录所在盘符空间紧张或用完, log: {"free_space" : %lf, "message":""}, free_space单位M*/
|
|
8
|
-
})(NIMSDKException = exports.NIMSDKException || (exports.NIMSDKException = {}));
|
|
9
|
-
/** @enum NIMProxyDetectStep 代理测试步骤 */
|
|
10
|
-
var NIMProxyDetectStep;
|
|
11
|
-
(function (NIMProxyDetectStep) {
|
|
12
|
-
NIMProxyDetectStep[NIMProxyDetectStep["kNIMProxyDetectStepAllComplete"] = 5] = "kNIMProxyDetectStepAllComplete"; /** < 探测代理有效性结束*/
|
|
13
|
-
})(NIMProxyDetectStep = exports.NIMProxyDetectStep || (exports.NIMProxyDetectStep = {}));
|
|
14
|
-
/** @enum NIMProxyType 代理类型 */
|
|
15
|
-
var NIMProxyType;
|
|
16
|
-
(function (NIMProxyType) {
|
|
17
|
-
NIMProxyType[NIMProxyType["kNIMProxyNone"] = 0] = "kNIMProxyNone"; /** < 不使用代理*/
|
|
18
|
-
NIMProxyType[NIMProxyType["kNIMProxyHttp11"] = 1] = "kNIMProxyHttp11"; /** < HTTP 1.1 Proxy(暂不支持)*/
|
|
19
|
-
NIMProxyType[NIMProxyType["kNIMProxySocks4"] = 4] = "kNIMProxySocks4"; /** < Socks4 Proxy*/
|
|
20
|
-
NIMProxyType[NIMProxyType["kNIMProxySocks4a"] = 5] = "kNIMProxySocks4a"; /** < Socks4a Proxy*/
|
|
21
|
-
NIMProxyType[NIMProxyType["kNIMProxySocks5"] = 6] = "kNIMProxySocks5"; /** < Socks5 Proxy*/
|
|
22
|
-
NIMProxyType[NIMProxyType["kNIMProxyNrtc"] = 10] = "kNIMProxyNrtc"; /** < 云信音视频私有代理,只在nim_vchat_set_proxy中有效 */
|
|
23
|
-
})(NIMProxyType = exports.NIMProxyType || (exports.NIMProxyType = {}));
|
|
24
|
-
/** @enum NIMCachedFileType 查询/删除SDK文件缓存信息文件类型 */
|
|
25
|
-
var NIMCachedFileType;
|
|
26
|
-
(function (NIMCachedFileType) {
|
|
27
|
-
NIMCachedFileType["RES"] = "res"; /** < 杂项文件缓存 */
|
|
28
|
-
NIMCachedFileType["IMAGE"] = "image"; /** < 图片消息缓存 */
|
|
29
|
-
NIMCachedFileType["AUDIO"] = "audio"; /** < 语音消息缓存 */
|
|
30
|
-
NIMCachedFileType["VIDEO"] = "video"; /** < 视频消息缓存 */
|
|
31
|
-
})(NIMCachedFileType = exports.NIMCachedFileType || (exports.NIMCachedFileType = {}));
|
|
32
|
-
/** @enum NIMDBOperation 对DB进行的操作类型 */
|
|
33
|
-
var NIMDBOperation;
|
|
34
|
-
(function (NIMDBOperation) {
|
|
35
|
-
NIMDBOperation[NIMDBOperation["kNIMDBOperationInsert"] = 1] = "kNIMDBOperationInsert"; /** < 写操作*/
|
|
36
|
-
NIMDBOperation[NIMDBOperation["kNIMDBOperationRead"] = 2] = "kNIMDBOperationRead"; /** < 读操作*/
|
|
37
|
-
NIMDBOperation[NIMDBOperation["kNIMDBOperationUpdate"] = 4] = "kNIMDBOperationUpdate"; /** < 更新操作*/
|
|
38
|
-
NIMDBOperation[NIMDBOperation["kNIMDBOperationDelete"] = 8] = "kNIMDBOperationDelete"; /** < 删除操作*/
|
|
39
|
-
})(NIMDBOperation = exports.NIMDBOperation || (exports.NIMDBOperation = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NIMDBOperation = exports.NIMCachedFileType = exports.NIMProxyType = exports.NIMProxyDetectStep = exports.NIMSDKException = void 0;
|
|
4
|
+
/** @enum NIMSDKException 异常 */
|
|
5
|
+
var NIMSDKException;
|
|
6
|
+
(function (NIMSDKException) {
|
|
7
|
+
NIMSDKException[NIMSDKException["kNIMSDKExceptionSpaceEmpty"] = 1] = "kNIMSDKExceptionSpaceEmpty"; /** < 当前数据目录所在盘符空间紧张或用完, log: {"free_space" : %lf, "message":""}, free_space单位M*/
|
|
8
|
+
})(NIMSDKException = exports.NIMSDKException || (exports.NIMSDKException = {}));
|
|
9
|
+
/** @enum NIMProxyDetectStep 代理测试步骤 */
|
|
10
|
+
var NIMProxyDetectStep;
|
|
11
|
+
(function (NIMProxyDetectStep) {
|
|
12
|
+
NIMProxyDetectStep[NIMProxyDetectStep["kNIMProxyDetectStepAllComplete"] = 5] = "kNIMProxyDetectStepAllComplete"; /** < 探测代理有效性结束*/
|
|
13
|
+
})(NIMProxyDetectStep = exports.NIMProxyDetectStep || (exports.NIMProxyDetectStep = {}));
|
|
14
|
+
/** @enum NIMProxyType 代理类型 */
|
|
15
|
+
var NIMProxyType;
|
|
16
|
+
(function (NIMProxyType) {
|
|
17
|
+
NIMProxyType[NIMProxyType["kNIMProxyNone"] = 0] = "kNIMProxyNone"; /** < 不使用代理*/
|
|
18
|
+
NIMProxyType[NIMProxyType["kNIMProxyHttp11"] = 1] = "kNIMProxyHttp11"; /** < HTTP 1.1 Proxy(暂不支持)*/
|
|
19
|
+
NIMProxyType[NIMProxyType["kNIMProxySocks4"] = 4] = "kNIMProxySocks4"; /** < Socks4 Proxy*/
|
|
20
|
+
NIMProxyType[NIMProxyType["kNIMProxySocks4a"] = 5] = "kNIMProxySocks4a"; /** < Socks4a Proxy*/
|
|
21
|
+
NIMProxyType[NIMProxyType["kNIMProxySocks5"] = 6] = "kNIMProxySocks5"; /** < Socks5 Proxy*/
|
|
22
|
+
NIMProxyType[NIMProxyType["kNIMProxyNrtc"] = 10] = "kNIMProxyNrtc"; /** < 云信音视频私有代理,只在nim_vchat_set_proxy中有效 */
|
|
23
|
+
})(NIMProxyType = exports.NIMProxyType || (exports.NIMProxyType = {}));
|
|
24
|
+
/** @enum NIMCachedFileType 查询/删除SDK文件缓存信息文件类型 */
|
|
25
|
+
var NIMCachedFileType;
|
|
26
|
+
(function (NIMCachedFileType) {
|
|
27
|
+
NIMCachedFileType["RES"] = "res"; /** < 杂项文件缓存 */
|
|
28
|
+
NIMCachedFileType["IMAGE"] = "image"; /** < 图片消息缓存 */
|
|
29
|
+
NIMCachedFileType["AUDIO"] = "audio"; /** < 语音消息缓存 */
|
|
30
|
+
NIMCachedFileType["VIDEO"] = "video"; /** < 视频消息缓存 */
|
|
31
|
+
})(NIMCachedFileType = exports.NIMCachedFileType || (exports.NIMCachedFileType = {}));
|
|
32
|
+
/** @enum NIMDBOperation 对DB进行的操作类型 */
|
|
33
|
+
var NIMDBOperation;
|
|
34
|
+
(function (NIMDBOperation) {
|
|
35
|
+
NIMDBOperation[NIMDBOperation["kNIMDBOperationInsert"] = 1] = "kNIMDBOperationInsert"; /** < 写操作*/
|
|
36
|
+
NIMDBOperation[NIMDBOperation["kNIMDBOperationRead"] = 2] = "kNIMDBOperationRead"; /** < 读操作*/
|
|
37
|
+
NIMDBOperation[NIMDBOperation["kNIMDBOperationUpdate"] = 4] = "kNIMDBOperationUpdate"; /** < 更新操作*/
|
|
38
|
+
NIMDBOperation[NIMDBOperation["kNIMDBOperationDelete"] = 8] = "kNIMDBOperationDelete"; /** < 删除操作*/
|
|
39
|
+
})(NIMDBOperation = exports.NIMDBOperation || (exports.NIMDBOperation = {}));
|
|
40
40
|
//# sourceMappingURL=global_def.js.map
|
|
@@ -1,149 +1,149 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NIMFullTextSearchRule = exports.BoolStatus = exports.NIMMsglogQuerySource = exports.NIMMsglogSearchDirection = exports.NIMMsgLogQueryRange = exports.NIMMsgLogSubStatus = exports.NIMMsgLogStatus = exports.NIMMessageFeature = exports.NIMMessageType = exports.NIMNotificationId = void 0;
|
|
4
|
-
/** @enum NIMNotificationId 通知类型 */
|
|
5
|
-
var NIMNotificationId;
|
|
6
|
-
(function (NIMNotificationId) {
|
|
7
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamInvite"] = 0] = "kNIMNotificationIdTeamInvite"; /** <普通群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
|
|
8
|
-
attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */
|
|
9
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamKick"] = 1] = "kNIMNotificationIdTeamKick"; /** < 普通群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
|
|
10
|
-
attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */
|
|
11
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamLeave"] = 2] = "kNIMNotificationIdTeamLeave"; /** < 退出群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}*/
|
|
12
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamUpdate"] = 3] = "kNIMNotificationIdTeamUpdate"; /** < 群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}*/
|
|
13
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamDismiss"] = 4] = "kNIMNotificationIdTeamDismiss"; /** < 群解散,{"user_namecards":["namecard1", "namecard2"]}*/
|
|
14
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamApplyPass"] = 5] = "kNIMNotificationIdTeamApplyPass"; /** < 高级群申请加入成功,{"id":"a1","user_namecards":["namecard1", "namecard2"]}*/
|
|
15
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamOwnerTransfer"] = 6] = "kNIMNotificationIdTeamOwnerTransfer"; /** < 高级群移交群主,{"id":"a1", "leave" : boolean,"user_namecards":["namecard1", "namecard2"]}*/
|
|
16
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamAddManager"] = 7] = "kNIMNotificationIdTeamAddManager"; /** < 增加管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}*/
|
|
17
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamRemoveManager"] = 8] = "kNIMNotificationIdTeamRemoveManager"; /** < 删除管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}*/
|
|
18
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamInviteAccept"] = 9] = "kNIMNotificationIdTeamInviteAccept"; /** < 高级群接受邀请进群,{"id":"a1","user_namecards":["namecard1", "namecard2"]}*/
|
|
19
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamMuteMember"] = 10] = "kNIMNotificationIdTeamMuteMember"; /** < 禁言/解禁群成员,{"user_namecards":["namecard1", "namecard2"],"team_info":team_info,"id":"a1",
|
|
20
|
-
"mute":1-禁言,0-解禁} */
|
|
21
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdNetcallMiss"] = 101] = "kNIMNotificationIdNetcallMiss"; /** < 未接电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],
|
|
22
|
-
"time":1430995380471}*/
|
|
23
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdNetcallBill"] = 102] = "kNIMNotificationIdNetcallBill"; /** < 话单,{"calltype":2,"channel":6146077129466446197,"duration":8,"ids":["id1","id2"],
|
|
24
|
-
"time":1430995117398}*/
|
|
25
|
-
// 服务器在线同步协议返回的结果
|
|
26
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamSyncCreate"] = 1000] = "kNIMNotificationIdTeamSyncCreate"; /** < 创建群 {"team_info" : team_info} //群组信息(Keys SEE MORE `nim_team_def.h` 『群组信息 Json Keys』)*/
|
|
27
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamMemberChanged"] = 1001] = "kNIMNotificationIdTeamMemberChanged"; /** < 群成员变更{"team_member" : team_member_info} //群组成员信息(不包括自己)
|
|
28
|
-
(Keys SEE MORE `nim_team_def.h` 『群组成员信息 Json Keys』)*/
|
|
29
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamSyncUpdateMemberProperty"] = 1002] = "kNIMNotificationIdTeamSyncUpdateMemberProperty"; /** < 同步通知:修改群成员属性(可能是自己的或别人的){"team_member" : team_member_info}
|
|
30
|
-
目前只需kNIMTeamUserKeyNick和kNIMTeamUserKeyBits*/
|
|
31
|
-
// 本地发起的操作通知APP上层
|
|
32
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalCreateTeam"] = 2000] = "kNIMNotificationIdLocalCreateTeam"; /** < 本地操作创建群 {"ids" : ["a1", "a2"]}*/
|
|
33
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalApplyTeam"] = 2001] = "kNIMNotificationIdLocalApplyTeam"; /** < 本地操作申请加入群 {}*/
|
|
34
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalRejectApply"] = 2002] = "kNIMNotificationIdLocalRejectApply"; /** < 本地操作拒绝申请 {"id":"a1"}*/
|
|
35
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalRejectInvite"] = 2003] = "kNIMNotificationIdLocalRejectInvite"; /** < 本地操作拒绝邀请 {"id":"a1"}*/
|
|
36
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalUpdateMemberProperty"] = 2004] = "kNIMNotificationIdLocalUpdateMemberProperty"; /** < 本地操作更新群成员属性 {"team_member" : team_member_info} */
|
|
37
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalUpdateOtherNick"] = 2005] = "kNIMNotificationIdLocalUpdateOtherNick"; /** < 本地操作更新他人nickname {}*/
|
|
38
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamInfo"] = 2006] = "kNIMNotificationIdLocalGetTeamInfo"; /** < 本地操作获取群信息 {"team_info":team_info}*/
|
|
39
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamList"] = 2007] = "kNIMNotificationIdLocalGetTeamList"; /** < 本地操作获取群成员信息结束*/
|
|
40
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalMuteMember"] = 2008] = "kNIMNotificationIdLocalMuteMember"; /** < 本地操作对群成员禁言 {"id":"a1", "mute":1-禁言,0-解禁} */
|
|
41
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalMute"] = 2009] = "kNIMNotificationIdLocalMute"; /** < 本地操作对群禁言 {} */
|
|
42
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamMsgUnreadCount"] = 2010] = "kNIMNotificationIdLocalGetTeamMsgUnreadCount"; /** < 获取群消息未读数 {[{"client_msg_id":"", "count":int, "read_accid":"当前已读成员的accid"},...]}*/
|
|
43
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamMsgUnreadList"] = 2011] = "kNIMNotificationIdLocalGetTeamMsgUnreadList"; /** < 获取群消息未读列表 {"client_msg_id":"", "read":["id1",...], "unread":["id2",...]}*/
|
|
44
|
-
// Netcall本地操作通知
|
|
45
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalNetcallReject"] = 3103] = "kNIMNotificationIdLocalNetcallReject"; /** < 拒绝电话,{"calltype":1,"channel":6146078138783760761,
|
|
46
|
-
"from":"id1","ids":["id1","id2"],"time":1430995380471}*/
|
|
47
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalNetcallNoResponse"] = 3104] = "kNIMNotificationIdLocalNetcallNoResponse"; /** < 无应答,未接通电话,{"calltype":1,"channel":6146078138783760761,
|
|
48
|
-
"from":"id1","ids":["id1","id2"],"time":1430995380471}*/
|
|
49
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalNetcallCanceled"] = 3105] = "kNIMNotificationIdLocalNetcallCanceled"; /** < 未接通前主叫方挂断,{"calltype":1,"channel":6146078138783760761,
|
|
50
|
-
"from":"id1","ids":["id1","id2"],"time":1430995380471}*/
|
|
51
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamInvite"] = 401] = "kNIMNotificationIdSuperTeamInvite"; /** < 超大群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
|
|
52
|
-
attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */
|
|
53
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamKick"] = 402] = "kNIMNotificationIdSuperTeamKick"; /** < 超大群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
|
|
54
|
-
attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */
|
|
55
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamLeave"] = 403] = "kNIMNotificationIdSuperTeamLeave"; /** < 退出超大群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}*/
|
|
56
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamUpdate"] = 404] = "kNIMNotificationIdSuperTeamUpdate"; /** < 超大群群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}*/
|
|
57
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamDismiss"] = 405] = "kNIMNotificationIdSuperTeamDismiss"; /** < 超大群解散,{"user_namecards":["namecard1", "namecard2"]}*/
|
|
58
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamOwnerTransfer"] = 406] = "kNIMNotificationIdSuperTeamOwnerTransfer"; /** < 超大群移交群主,{"id":"a1","uinfos":["uinfo1", "uinfo2"]}*/
|
|
59
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamAddManager"] = 407] = "kNIMNotificationIdSuperTeamAddManager"; /** < 超大群增加管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}*/
|
|
60
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamRemoveManager"] = 408] = "kNIMNotificationIdSuperTeamRemoveManager"; /** < 超大群删除管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}*/
|
|
61
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamMuteMember"] = 409] = "kNIMNotificationIdSuperTeamMuteMember"; /** < 超大群禁言/解禁群成员,{"uinfos":["uinfo1", "uinfo2"],“tinfo”:tinfo,"id":"a1","mute":1-禁言,0-解禁}*/
|
|
62
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamApplyPass"] = 410] = "kNIMNotificationIdSuperTeamApplyPass"; /** < 超大群申请加入成功,{"tinfo":tinfo,"id":"a1","uinfos":["uinfo1", "uinfo2"]}*/
|
|
63
|
-
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamInviteAccept"] = 411] = "kNIMNotificationIdSuperTeamInviteAccept"; /** < 超大群接受邀请进群,{"tinfo":tinfo,"id":"a1"}*/
|
|
64
|
-
})(NIMNotificationId = exports.NIMNotificationId || (exports.NIMNotificationId = {}));
|
|
65
|
-
/** @enum NIMMessageType Message Type */
|
|
66
|
-
var NIMMessageType;
|
|
67
|
-
(function (NIMMessageType) {
|
|
68
|
-
NIMMessageType[NIMMessageType["kNIMMessageTypeText"] = 0] = "kNIMMessageTypeText"; /** < 文本类型消息*/
|
|
69
|
-
NIMMessageType[NIMMessageType["kNIMMessageTypeImage"] = 1] = "kNIMMessageTypeImage"; /** < 图片类型消息*/
|
|
70
|
-
NIMMessageType[NIMMessageType["kNIMMessageTypeAudio"] = 2] = "kNIMMessageTypeAudio"; /** < 声音类型消息*/
|
|
71
|
-
NIMMessageType[NIMMessageType["kNIMMessageTypeVideo"] = 3] = "kNIMMessageTypeVideo"; /** < 视频类型消息*/
|
|
72
|
-
NIMMessageType[NIMMessageType["kNIMMessageTypeLocation"] = 4] = "kNIMMessageTypeLocation"; /** < 位置类型消息*/
|
|
73
|
-
NIMMessageType[NIMMessageType["kNIMMessageTypeNotification"] = 5] = "kNIMMessageTypeNotification"; /** < 系统类型通知(包括入群出群通知等) NIMNotificationId*/
|
|
74
|
-
NIMMessageType[NIMMessageType["kNIMMessageTypeFile"] = 6] = "kNIMMessageTypeFile"; /** < 文件类型消息*/
|
|
75
|
-
NIMMessageType[NIMMessageType["kNIMMessageTypeTips"] = 10] = "kNIMMessageTypeTips"; /** < 提醒类型消息,Tip内容根据格式要求填入消息结构中的kNIMMsgKeyServerExt字段*/
|
|
76
|
-
NIMMessageType[NIMMessageType["kNIMMessageTypeRobot"] = 11] = "kNIMMessageTypeRobot"; /** < 波特机器人消息*/
|
|
77
|
-
NIMMessageType[NIMMessageType["kNIMMessageTypeG2NetCall"] = 12] = "kNIMMessageTypeG2NetCall"; /** < G2话单消息*/
|
|
78
|
-
NIMMessageType[NIMMessageType["kNIMMessageTypeCustom"] = 100] = "kNIMMessageTypeCustom"; /** < 自定义消息*/
|
|
79
|
-
NIMMessageType[NIMMessageType["kNIMMessageTypeUnknown"] = 1000] = "kNIMMessageTypeUnknown"; /** < 未知类型消息,本地使用,发送时勿使用,作为默认值*/
|
|
80
|
-
})(NIMMessageType = exports.NIMMessageType || (exports.NIMMessageType = {}));
|
|
81
|
-
/** @enum NIMMessageFeature 消息种类 */
|
|
82
|
-
var NIMMessageFeature;
|
|
83
|
-
(function (NIMMessageFeature) {
|
|
84
|
-
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureDefault"] = 0] = "kNIMMessageFeatureDefault"; /** < 默认*/
|
|
85
|
-
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureLeaveMsg"] = 1] = "kNIMMessageFeatureLeaveMsg"; /** < 离线消息*/
|
|
86
|
-
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureRoamMsg"] = 2] = "kNIMMessageFeatureRoamMsg"; /** < 漫游消息*/
|
|
87
|
-
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureSyncMsg"] = 3] = "kNIMMessageFeatureSyncMsg"; /** < 同步消息*/
|
|
88
|
-
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureCustomizedMsg"] = 4] = "kNIMMessageFeatureCustomizedMsg"; /** < 透传消息*/
|
|
89
|
-
})(NIMMessageFeature = exports.NIMMessageFeature || (exports.NIMMessageFeature = {}));
|
|
90
|
-
/** @enum NIMMsgLogStatus 消息状态 */
|
|
91
|
-
var NIMMsgLogStatus;
|
|
92
|
-
(function (NIMMsgLogStatus) {
|
|
93
|
-
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusNone"] = 0] = "kNIMMsgLogStatusNone"; /** < 默认,不能当查询条件,意义太多*/
|
|
94
|
-
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusUnread"] = 1] = "kNIMMsgLogStatusUnread"; /** < 收到消息,未读*/
|
|
95
|
-
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusRead"] = 2] = "kNIMMsgLogStatusRead"; /** < 收到消息,已读*/
|
|
96
|
-
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusDeleted"] = 3] = "kNIMMsgLogStatusDeleted"; /** < 已删*/
|
|
97
|
-
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSending"] = 4] = "kNIMMsgLogStatusSending"; /** < 发送中*/
|
|
98
|
-
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSendFailed"] = 5] = "kNIMMsgLogStatusSendFailed"; /** < 发送失败*/
|
|
99
|
-
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSent"] = 6] = "kNIMMsgLogStatusSent"; /** < 已发送*/
|
|
100
|
-
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusReceipt"] = 7] = "kNIMMsgLogStatusReceipt"; /** < 对方已读发送的内容*/
|
|
101
|
-
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusDraft"] = 8] = "kNIMMsgLogStatusDraft"; /** < 草稿*/
|
|
102
|
-
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSendCancel"] = 9] = "kNIMMsgLogStatusSendCancel"; /** < 发送取消*/
|
|
103
|
-
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusRefused"] = 10] = "kNIMMsgLogStatusRefused"; /** < 被对方拒绝,比如被对方加入黑名单等等*/
|
|
104
|
-
})(NIMMsgLogStatus = exports.NIMMsgLogStatus || (exports.NIMMsgLogStatus = {}));
|
|
105
|
-
/** @enum NIMMsgLogSubStatus 消息子状态 */
|
|
106
|
-
var NIMMsgLogSubStatus;
|
|
107
|
-
(function (NIMMsgLogSubStatus) {
|
|
108
|
-
NIMMsgLogSubStatus[NIMMsgLogSubStatus["kNIMMsgLogSubStatusNone"] = 0] = "kNIMMsgLogSubStatusNone"; /** < 默认状态*/
|
|
109
|
-
// 这二个标志适用于所有
|
|
110
|
-
NIMMsgLogSubStatus[NIMMsgLogSubStatus["kNIMMsgLogSubStatusNotPlaying"] = 20] = "kNIMMsgLogSubStatusNotPlaying"; /** < 未播放*/
|
|
111
|
-
NIMMsgLogSubStatus[NIMMsgLogSubStatus["kNIMMsgLogSubStatusPlayed"] = 21] = "kNIMMsgLogSubStatusPlayed"; /** < 已播放*/
|
|
112
|
-
})(NIMMsgLogSubStatus = exports.NIMMsgLogSubStatus || (exports.NIMMsgLogSubStatus = {}));
|
|
113
|
-
/** @enum NIMMsgLogQueryRange 消息历史的检索范围 */
|
|
114
|
-
var NIMMsgLogQueryRange;
|
|
115
|
-
(function (NIMMsgLogQueryRange) {
|
|
116
|
-
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeP2P"] = 0] = "kNIMMsgLogQueryRangeP2P"; /** < 指定的个人(点对点会话)(注意:暂不支持指定多个人的检索!)*/
|
|
117
|
-
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeTeam"] = 1] = "kNIMMsgLogQueryRangeTeam"; /** < 指定的群组(注意:暂不支持指定多个群组的检索!)*/
|
|
118
|
-
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeSuperTeam"] = 5] = "kNIMMsgLogQueryRangeSuperTeam"; /** < 指定的超大群组(注意:暂不支持指定多个群组的检索!)*/
|
|
119
|
-
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAll"] = 100] = "kNIMMsgLogQueryRangeAll"; /** < 全部*/
|
|
120
|
-
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAllP2P"] = 101] = "kNIMMsgLogQueryRangeAllP2P"; /** < 所有个人会话*/
|
|
121
|
-
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAllTeam"] = 102] = "kNIMMsgLogQueryRangeAllTeam"; /** < 所有群组*/
|
|
122
|
-
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAllSuperTeam"] = 103] = "kNIMMsgLogQueryRangeAllSuperTeam"; /** < 所有超大群组*/
|
|
123
|
-
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeUnknown"] = 200] = "kNIMMsgLogQueryRangeUnknown"; /** < 未知(如指定个人和群组的集合)(注意:暂不支持指定个人和群组的混合检索!)*/
|
|
124
|
-
})(NIMMsgLogQueryRange = exports.NIMMsgLogQueryRange || (exports.NIMMsgLogQueryRange = {}));
|
|
125
|
-
/** @enum NIMMsglogSearchDirection 消息历史查询方向 */
|
|
126
|
-
var NIMMsglogSearchDirection;
|
|
127
|
-
(function (NIMMsglogSearchDirection) {
|
|
128
|
-
NIMMsglogSearchDirection[NIMMsglogSearchDirection["kForward"] = 0] = "kForward"; /** < 以时间点为准向前搜索 */
|
|
129
|
-
NIMMsglogSearchDirection[NIMMsglogSearchDirection["kBackward"] = 1] = "kBackward"; /** < 以时间点为准向后搜索 */
|
|
130
|
-
})(NIMMsglogSearchDirection = exports.NIMMsglogSearchDirection || (exports.NIMMsglogSearchDirection = {}));
|
|
131
|
-
/** @enum NIMMsglogQuerySource 消息历史查询来源 */
|
|
132
|
-
var NIMMsglogQuerySource;
|
|
133
|
-
(function (NIMMsglogQuerySource) {
|
|
134
|
-
NIMMsglogQuerySource[NIMMsglogQuerySource["kNIMMsglogQuerySourceLocal"] = 0] = "kNIMMsglogQuerySourceLocal"; /** < 本地查询*/
|
|
135
|
-
NIMMsglogQuerySource[NIMMsglogQuerySource["kNIMMsglogQuerySourceServer"] = 1] = "kNIMMsglogQuerySourceServer"; /** < 云端查询*/
|
|
136
|
-
})(NIMMsglogQuerySource = exports.NIMMsglogQuerySource || (exports.NIMMsglogQuerySource = {}));
|
|
137
|
-
var BoolStatus;
|
|
138
|
-
(function (BoolStatus) {
|
|
139
|
-
BoolStatus[BoolStatus["BS_NOT_INIT"] = -1] = "BS_NOT_INIT"; /**< 未初始化 */
|
|
140
|
-
BoolStatus[BoolStatus["BS_FALSE"] = 0] = "BS_FALSE"; /**< false */
|
|
141
|
-
BoolStatus[BoolStatus["BS_TRUE"] = 1] = "BS_TRUE"; /**< true */
|
|
142
|
-
})(BoolStatus = exports.BoolStatus || (exports.BoolStatus = {}));
|
|
143
|
-
var NIMFullTextSearchRule;
|
|
144
|
-
(function (NIMFullTextSearchRule) {
|
|
145
|
-
NIMFullTextSearchRule[NIMFullTextSearchRule["kNIMFullTextSearchOrderByAsc"] = 1] = "kNIMFullTextSearchOrderByAsc";
|
|
146
|
-
NIMFullTextSearchRule[NIMFullTextSearchRule["kNIMFullTextSearchOrderByDesc"] = 2] = "kNIMFullTextSearchOrderByDesc";
|
|
147
|
-
NIMFullTextSearchRule[NIMFullTextSearchRule["kNIMFullTextSearchNoGroupBySession"] = 4] = "kNIMFullTextSearchNoGroupBySession";
|
|
148
|
-
})(NIMFullTextSearchRule = exports.NIMFullTextSearchRule || (exports.NIMFullTextSearchRule = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NIMFullTextSearchRule = exports.BoolStatus = exports.NIMMsglogQuerySource = exports.NIMMsglogSearchDirection = exports.NIMMsgLogQueryRange = exports.NIMMsgLogSubStatus = exports.NIMMsgLogStatus = exports.NIMMessageFeature = exports.NIMMessageType = exports.NIMNotificationId = void 0;
|
|
4
|
+
/** @enum NIMNotificationId 通知类型 */
|
|
5
|
+
var NIMNotificationId;
|
|
6
|
+
(function (NIMNotificationId) {
|
|
7
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamInvite"] = 0] = "kNIMNotificationIdTeamInvite"; /** <普通群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
|
|
8
|
+
attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */
|
|
9
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamKick"] = 1] = "kNIMNotificationIdTeamKick"; /** < 普通群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
|
|
10
|
+
attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */
|
|
11
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamLeave"] = 2] = "kNIMNotificationIdTeamLeave"; /** < 退出群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}*/
|
|
12
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamUpdate"] = 3] = "kNIMNotificationIdTeamUpdate"; /** < 群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}*/
|
|
13
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamDismiss"] = 4] = "kNIMNotificationIdTeamDismiss"; /** < 群解散,{"user_namecards":["namecard1", "namecard2"]}*/
|
|
14
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamApplyPass"] = 5] = "kNIMNotificationIdTeamApplyPass"; /** < 高级群申请加入成功,{"id":"a1","user_namecards":["namecard1", "namecard2"]}*/
|
|
15
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamOwnerTransfer"] = 6] = "kNIMNotificationIdTeamOwnerTransfer"; /** < 高级群移交群主,{"id":"a1", "leave" : boolean,"user_namecards":["namecard1", "namecard2"]}*/
|
|
16
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamAddManager"] = 7] = "kNIMNotificationIdTeamAddManager"; /** < 增加管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}*/
|
|
17
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamRemoveManager"] = 8] = "kNIMNotificationIdTeamRemoveManager"; /** < 删除管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}*/
|
|
18
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamInviteAccept"] = 9] = "kNIMNotificationIdTeamInviteAccept"; /** < 高级群接受邀请进群,{"id":"a1","user_namecards":["namecard1", "namecard2"]}*/
|
|
19
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamMuteMember"] = 10] = "kNIMNotificationIdTeamMuteMember"; /** < 禁言/解禁群成员,{"user_namecards":["namecard1", "namecard2"],"team_info":team_info,"id":"a1",
|
|
20
|
+
"mute":1-禁言,0-解禁} */
|
|
21
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdNetcallMiss"] = 101] = "kNIMNotificationIdNetcallMiss"; /** < 未接电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],
|
|
22
|
+
"time":1430995380471}*/
|
|
23
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdNetcallBill"] = 102] = "kNIMNotificationIdNetcallBill"; /** < 话单,{"calltype":2,"channel":6146077129466446197,"duration":8,"ids":["id1","id2"],
|
|
24
|
+
"time":1430995117398}*/
|
|
25
|
+
// 服务器在线同步协议返回的结果
|
|
26
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamSyncCreate"] = 1000] = "kNIMNotificationIdTeamSyncCreate"; /** < 创建群 {"team_info" : team_info} //群组信息(Keys SEE MORE `nim_team_def.h` 『群组信息 Json Keys』)*/
|
|
27
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamMemberChanged"] = 1001] = "kNIMNotificationIdTeamMemberChanged"; /** < 群成员变更{"team_member" : team_member_info} //群组成员信息(不包括自己)
|
|
28
|
+
(Keys SEE MORE `nim_team_def.h` 『群组成员信息 Json Keys』)*/
|
|
29
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamSyncUpdateMemberProperty"] = 1002] = "kNIMNotificationIdTeamSyncUpdateMemberProperty"; /** < 同步通知:修改群成员属性(可能是自己的或别人的){"team_member" : team_member_info}
|
|
30
|
+
目前只需kNIMTeamUserKeyNick和kNIMTeamUserKeyBits*/
|
|
31
|
+
// 本地发起的操作通知APP上层
|
|
32
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalCreateTeam"] = 2000] = "kNIMNotificationIdLocalCreateTeam"; /** < 本地操作创建群 {"ids" : ["a1", "a2"]}*/
|
|
33
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalApplyTeam"] = 2001] = "kNIMNotificationIdLocalApplyTeam"; /** < 本地操作申请加入群 {}*/
|
|
34
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalRejectApply"] = 2002] = "kNIMNotificationIdLocalRejectApply"; /** < 本地操作拒绝申请 {"id":"a1"}*/
|
|
35
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalRejectInvite"] = 2003] = "kNIMNotificationIdLocalRejectInvite"; /** < 本地操作拒绝邀请 {"id":"a1"}*/
|
|
36
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalUpdateMemberProperty"] = 2004] = "kNIMNotificationIdLocalUpdateMemberProperty"; /** < 本地操作更新群成员属性 {"team_member" : team_member_info} */
|
|
37
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalUpdateOtherNick"] = 2005] = "kNIMNotificationIdLocalUpdateOtherNick"; /** < 本地操作更新他人nickname {}*/
|
|
38
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamInfo"] = 2006] = "kNIMNotificationIdLocalGetTeamInfo"; /** < 本地操作获取群信息 {"team_info":team_info}*/
|
|
39
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamList"] = 2007] = "kNIMNotificationIdLocalGetTeamList"; /** < 本地操作获取群成员信息结束*/
|
|
40
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalMuteMember"] = 2008] = "kNIMNotificationIdLocalMuteMember"; /** < 本地操作对群成员禁言 {"id":"a1", "mute":1-禁言,0-解禁} */
|
|
41
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalMute"] = 2009] = "kNIMNotificationIdLocalMute"; /** < 本地操作对群禁言 {} */
|
|
42
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamMsgUnreadCount"] = 2010] = "kNIMNotificationIdLocalGetTeamMsgUnreadCount"; /** < 获取群消息未读数 {[{"client_msg_id":"", "count":int, "read_accid":"当前已读成员的accid"},...]}*/
|
|
43
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamMsgUnreadList"] = 2011] = "kNIMNotificationIdLocalGetTeamMsgUnreadList"; /** < 获取群消息未读列表 {"client_msg_id":"", "read":["id1",...], "unread":["id2",...]}*/
|
|
44
|
+
// Netcall本地操作通知
|
|
45
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalNetcallReject"] = 3103] = "kNIMNotificationIdLocalNetcallReject"; /** < 拒绝电话,{"calltype":1,"channel":6146078138783760761,
|
|
46
|
+
"from":"id1","ids":["id1","id2"],"time":1430995380471}*/
|
|
47
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalNetcallNoResponse"] = 3104] = "kNIMNotificationIdLocalNetcallNoResponse"; /** < 无应答,未接通电话,{"calltype":1,"channel":6146078138783760761,
|
|
48
|
+
"from":"id1","ids":["id1","id2"],"time":1430995380471}*/
|
|
49
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalNetcallCanceled"] = 3105] = "kNIMNotificationIdLocalNetcallCanceled"; /** < 未接通前主叫方挂断,{"calltype":1,"channel":6146078138783760761,
|
|
50
|
+
"from":"id1","ids":["id1","id2"],"time":1430995380471}*/
|
|
51
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamInvite"] = 401] = "kNIMNotificationIdSuperTeamInvite"; /** < 超大群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
|
|
52
|
+
attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */
|
|
53
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamKick"] = 402] = "kNIMNotificationIdSuperTeamKick"; /** < 超大群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
|
|
54
|
+
attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */
|
|
55
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamLeave"] = 403] = "kNIMNotificationIdSuperTeamLeave"; /** < 退出超大群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}*/
|
|
56
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamUpdate"] = 404] = "kNIMNotificationIdSuperTeamUpdate"; /** < 超大群群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}*/
|
|
57
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamDismiss"] = 405] = "kNIMNotificationIdSuperTeamDismiss"; /** < 超大群解散,{"user_namecards":["namecard1", "namecard2"]}*/
|
|
58
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamOwnerTransfer"] = 406] = "kNIMNotificationIdSuperTeamOwnerTransfer"; /** < 超大群移交群主,{"id":"a1","uinfos":["uinfo1", "uinfo2"]}*/
|
|
59
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamAddManager"] = 407] = "kNIMNotificationIdSuperTeamAddManager"; /** < 超大群增加管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}*/
|
|
60
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamRemoveManager"] = 408] = "kNIMNotificationIdSuperTeamRemoveManager"; /** < 超大群删除管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}*/
|
|
61
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamMuteMember"] = 409] = "kNIMNotificationIdSuperTeamMuteMember"; /** < 超大群禁言/解禁群成员,{"uinfos":["uinfo1", "uinfo2"],“tinfo”:tinfo,"id":"a1","mute":1-禁言,0-解禁}*/
|
|
62
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamApplyPass"] = 410] = "kNIMNotificationIdSuperTeamApplyPass"; /** < 超大群申请加入成功,{"tinfo":tinfo,"id":"a1","uinfos":["uinfo1", "uinfo2"]}*/
|
|
63
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamInviteAccept"] = 411] = "kNIMNotificationIdSuperTeamInviteAccept"; /** < 超大群接受邀请进群,{"tinfo":tinfo,"id":"a1"}*/
|
|
64
|
+
})(NIMNotificationId = exports.NIMNotificationId || (exports.NIMNotificationId = {}));
|
|
65
|
+
/** @enum NIMMessageType Message Type */
|
|
66
|
+
var NIMMessageType;
|
|
67
|
+
(function (NIMMessageType) {
|
|
68
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeText"] = 0] = "kNIMMessageTypeText"; /** < 文本类型消息*/
|
|
69
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeImage"] = 1] = "kNIMMessageTypeImage"; /** < 图片类型消息*/
|
|
70
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeAudio"] = 2] = "kNIMMessageTypeAudio"; /** < 声音类型消息*/
|
|
71
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeVideo"] = 3] = "kNIMMessageTypeVideo"; /** < 视频类型消息*/
|
|
72
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeLocation"] = 4] = "kNIMMessageTypeLocation"; /** < 位置类型消息*/
|
|
73
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeNotification"] = 5] = "kNIMMessageTypeNotification"; /** < 系统类型通知(包括入群出群通知等) NIMNotificationId*/
|
|
74
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeFile"] = 6] = "kNIMMessageTypeFile"; /** < 文件类型消息*/
|
|
75
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeTips"] = 10] = "kNIMMessageTypeTips"; /** < 提醒类型消息,Tip内容根据格式要求填入消息结构中的kNIMMsgKeyServerExt字段*/
|
|
76
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeRobot"] = 11] = "kNIMMessageTypeRobot"; /** < 波特机器人消息*/
|
|
77
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeG2NetCall"] = 12] = "kNIMMessageTypeG2NetCall"; /** < G2话单消息*/
|
|
78
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeCustom"] = 100] = "kNIMMessageTypeCustom"; /** < 自定义消息*/
|
|
79
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeUnknown"] = 1000] = "kNIMMessageTypeUnknown"; /** < 未知类型消息,本地使用,发送时勿使用,作为默认值*/
|
|
80
|
+
})(NIMMessageType = exports.NIMMessageType || (exports.NIMMessageType = {}));
|
|
81
|
+
/** @enum NIMMessageFeature 消息种类 */
|
|
82
|
+
var NIMMessageFeature;
|
|
83
|
+
(function (NIMMessageFeature) {
|
|
84
|
+
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureDefault"] = 0] = "kNIMMessageFeatureDefault"; /** < 默认*/
|
|
85
|
+
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureLeaveMsg"] = 1] = "kNIMMessageFeatureLeaveMsg"; /** < 离线消息*/
|
|
86
|
+
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureRoamMsg"] = 2] = "kNIMMessageFeatureRoamMsg"; /** < 漫游消息*/
|
|
87
|
+
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureSyncMsg"] = 3] = "kNIMMessageFeatureSyncMsg"; /** < 同步消息*/
|
|
88
|
+
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureCustomizedMsg"] = 4] = "kNIMMessageFeatureCustomizedMsg"; /** < 透传消息*/
|
|
89
|
+
})(NIMMessageFeature = exports.NIMMessageFeature || (exports.NIMMessageFeature = {}));
|
|
90
|
+
/** @enum NIMMsgLogStatus 消息状态 */
|
|
91
|
+
var NIMMsgLogStatus;
|
|
92
|
+
(function (NIMMsgLogStatus) {
|
|
93
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusNone"] = 0] = "kNIMMsgLogStatusNone"; /** < 默认,不能当查询条件,意义太多*/
|
|
94
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusUnread"] = 1] = "kNIMMsgLogStatusUnread"; /** < 收到消息,未读*/
|
|
95
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusRead"] = 2] = "kNIMMsgLogStatusRead"; /** < 收到消息,已读*/
|
|
96
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusDeleted"] = 3] = "kNIMMsgLogStatusDeleted"; /** < 已删*/
|
|
97
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSending"] = 4] = "kNIMMsgLogStatusSending"; /** < 发送中*/
|
|
98
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSendFailed"] = 5] = "kNIMMsgLogStatusSendFailed"; /** < 发送失败*/
|
|
99
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSent"] = 6] = "kNIMMsgLogStatusSent"; /** < 已发送*/
|
|
100
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusReceipt"] = 7] = "kNIMMsgLogStatusReceipt"; /** < 对方已读发送的内容*/
|
|
101
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusDraft"] = 8] = "kNIMMsgLogStatusDraft"; /** < 草稿*/
|
|
102
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSendCancel"] = 9] = "kNIMMsgLogStatusSendCancel"; /** < 发送取消*/
|
|
103
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusRefused"] = 10] = "kNIMMsgLogStatusRefused"; /** < 被对方拒绝,比如被对方加入黑名单等等*/
|
|
104
|
+
})(NIMMsgLogStatus = exports.NIMMsgLogStatus || (exports.NIMMsgLogStatus = {}));
|
|
105
|
+
/** @enum NIMMsgLogSubStatus 消息子状态 */
|
|
106
|
+
var NIMMsgLogSubStatus;
|
|
107
|
+
(function (NIMMsgLogSubStatus) {
|
|
108
|
+
NIMMsgLogSubStatus[NIMMsgLogSubStatus["kNIMMsgLogSubStatusNone"] = 0] = "kNIMMsgLogSubStatusNone"; /** < 默认状态*/
|
|
109
|
+
// 这二个标志适用于所有
|
|
110
|
+
NIMMsgLogSubStatus[NIMMsgLogSubStatus["kNIMMsgLogSubStatusNotPlaying"] = 20] = "kNIMMsgLogSubStatusNotPlaying"; /** < 未播放*/
|
|
111
|
+
NIMMsgLogSubStatus[NIMMsgLogSubStatus["kNIMMsgLogSubStatusPlayed"] = 21] = "kNIMMsgLogSubStatusPlayed"; /** < 已播放*/
|
|
112
|
+
})(NIMMsgLogSubStatus = exports.NIMMsgLogSubStatus || (exports.NIMMsgLogSubStatus = {}));
|
|
113
|
+
/** @enum NIMMsgLogQueryRange 消息历史的检索范围 */
|
|
114
|
+
var NIMMsgLogQueryRange;
|
|
115
|
+
(function (NIMMsgLogQueryRange) {
|
|
116
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeP2P"] = 0] = "kNIMMsgLogQueryRangeP2P"; /** < 指定的个人(点对点会话)(注意:暂不支持指定多个人的检索!)*/
|
|
117
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeTeam"] = 1] = "kNIMMsgLogQueryRangeTeam"; /** < 指定的群组(注意:暂不支持指定多个群组的检索!)*/
|
|
118
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeSuperTeam"] = 5] = "kNIMMsgLogQueryRangeSuperTeam"; /** < 指定的超大群组(注意:暂不支持指定多个群组的检索!)*/
|
|
119
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAll"] = 100] = "kNIMMsgLogQueryRangeAll"; /** < 全部*/
|
|
120
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAllP2P"] = 101] = "kNIMMsgLogQueryRangeAllP2P"; /** < 所有个人会话*/
|
|
121
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAllTeam"] = 102] = "kNIMMsgLogQueryRangeAllTeam"; /** < 所有群组*/
|
|
122
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAllSuperTeam"] = 103] = "kNIMMsgLogQueryRangeAllSuperTeam"; /** < 所有超大群组*/
|
|
123
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeUnknown"] = 200] = "kNIMMsgLogQueryRangeUnknown"; /** < 未知(如指定个人和群组的集合)(注意:暂不支持指定个人和群组的混合检索!)*/
|
|
124
|
+
})(NIMMsgLogQueryRange = exports.NIMMsgLogQueryRange || (exports.NIMMsgLogQueryRange = {}));
|
|
125
|
+
/** @enum NIMMsglogSearchDirection 消息历史查询方向 */
|
|
126
|
+
var NIMMsglogSearchDirection;
|
|
127
|
+
(function (NIMMsglogSearchDirection) {
|
|
128
|
+
NIMMsglogSearchDirection[NIMMsglogSearchDirection["kForward"] = 0] = "kForward"; /** < 以时间点为准向前搜索 */
|
|
129
|
+
NIMMsglogSearchDirection[NIMMsglogSearchDirection["kBackward"] = 1] = "kBackward"; /** < 以时间点为准向后搜索 */
|
|
130
|
+
})(NIMMsglogSearchDirection = exports.NIMMsglogSearchDirection || (exports.NIMMsglogSearchDirection = {}));
|
|
131
|
+
/** @enum NIMMsglogQuerySource 消息历史查询来源 */
|
|
132
|
+
var NIMMsglogQuerySource;
|
|
133
|
+
(function (NIMMsglogQuerySource) {
|
|
134
|
+
NIMMsglogQuerySource[NIMMsglogQuerySource["kNIMMsglogQuerySourceLocal"] = 0] = "kNIMMsglogQuerySourceLocal"; /** < 本地查询*/
|
|
135
|
+
NIMMsglogQuerySource[NIMMsglogQuerySource["kNIMMsglogQuerySourceServer"] = 1] = "kNIMMsglogQuerySourceServer"; /** < 云端查询*/
|
|
136
|
+
})(NIMMsglogQuerySource = exports.NIMMsglogQuerySource || (exports.NIMMsglogQuerySource = {}));
|
|
137
|
+
var BoolStatus;
|
|
138
|
+
(function (BoolStatus) {
|
|
139
|
+
BoolStatus[BoolStatus["BS_NOT_INIT"] = -1] = "BS_NOT_INIT"; /**< 未初始化 */
|
|
140
|
+
BoolStatus[BoolStatus["BS_FALSE"] = 0] = "BS_FALSE"; /**< false */
|
|
141
|
+
BoolStatus[BoolStatus["BS_TRUE"] = 1] = "BS_TRUE"; /**< true */
|
|
142
|
+
})(BoolStatus = exports.BoolStatus || (exports.BoolStatus = {}));
|
|
143
|
+
var NIMFullTextSearchRule;
|
|
144
|
+
(function (NIMFullTextSearchRule) {
|
|
145
|
+
NIMFullTextSearchRule[NIMFullTextSearchRule["kNIMFullTextSearchOrderByAsc"] = 1] = "kNIMFullTextSearchOrderByAsc";
|
|
146
|
+
NIMFullTextSearchRule[NIMFullTextSearchRule["kNIMFullTextSearchOrderByDesc"] = 2] = "kNIMFullTextSearchOrderByDesc";
|
|
147
|
+
NIMFullTextSearchRule[NIMFullTextSearchRule["kNIMFullTextSearchNoGroupBySession"] = 4] = "kNIMFullTextSearchNoGroupBySession";
|
|
148
|
+
})(NIMFullTextSearchRule = exports.NIMFullTextSearchRule || (exports.NIMFullTextSearchRule = {}));
|
|
149
149
|
//# sourceMappingURL=msglog_def.js.map
|
package/dist/nim_def/nos_def.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NIMNosUploadType = exports.NIMNosInitConfigResultType = void 0;
|
|
4
|
-
var NIMNosInitConfigResultType;
|
|
5
|
-
(function (NIMNosInitConfigResultType) {
|
|
6
|
-
NIMNosInitConfigResultType[NIMNosInitConfigResultType["kNIMNosInitConfResTypeTagCountOF"] = 0] = "kNIMNosInitConfResTypeTagCountOF"; /** < 自定义tag数量超过最大数量 */
|
|
7
|
-
NIMNosInitConfigResultType[NIMNosInitConfigResultType["kNIMNosInitConfResTypeSuccess"] = 1] = "kNIMNosInitConfResTypeSuccess"; /** < 所有tag初始成功 */
|
|
8
|
-
NIMNosInitConfigResultType[NIMNosInitConfigResultType["kNIMNosInitConfResTypePartSuccessful"] = 2] = "kNIMNosInitConfResTypePartSuccessful"; /** < 部分tag初始化成功,失败的tag及错误码可以解析json_result来取得 */
|
|
9
|
-
NIMNosInitConfigResultType[NIMNosInitConfigResultType["kNIMNosInitConfResTypeFailure"] = 3] = "kNIMNosInitConfResTypeFailure"; /** < 所有tag初始化失败 */
|
|
10
|
-
})(NIMNosInitConfigResultType = exports.NIMNosInitConfigResultType || (exports.NIMNosInitConfigResultType = {}));
|
|
11
|
-
/** @enum NIMNosUploadType NOS扩展类型 */
|
|
12
|
-
var NIMNosUploadType;
|
|
13
|
-
(function (NIMNosUploadType) {
|
|
14
|
-
NIMNosUploadType[NIMNosUploadType["kNIMNosUploadTypeNormal"] = 0] = "kNIMNosUploadTypeNormal"; /** < 普通文件上传 */
|
|
15
|
-
NIMNosUploadType[NIMNosUploadType["kNIMNosUploadTypeDocTrans"] = 1] = "kNIMNosUploadTypeDocTrans"; /** < 文档转换上传 */
|
|
16
|
-
})(NIMNosUploadType = exports.NIMNosUploadType || (exports.NIMNosUploadType = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NIMNosUploadType = exports.NIMNosInitConfigResultType = void 0;
|
|
4
|
+
var NIMNosInitConfigResultType;
|
|
5
|
+
(function (NIMNosInitConfigResultType) {
|
|
6
|
+
NIMNosInitConfigResultType[NIMNosInitConfigResultType["kNIMNosInitConfResTypeTagCountOF"] = 0] = "kNIMNosInitConfResTypeTagCountOF"; /** < 自定义tag数量超过最大数量 */
|
|
7
|
+
NIMNosInitConfigResultType[NIMNosInitConfigResultType["kNIMNosInitConfResTypeSuccess"] = 1] = "kNIMNosInitConfResTypeSuccess"; /** < 所有tag初始成功 */
|
|
8
|
+
NIMNosInitConfigResultType[NIMNosInitConfigResultType["kNIMNosInitConfResTypePartSuccessful"] = 2] = "kNIMNosInitConfResTypePartSuccessful"; /** < 部分tag初始化成功,失败的tag及错误码可以解析json_result来取得 */
|
|
9
|
+
NIMNosInitConfigResultType[NIMNosInitConfigResultType["kNIMNosInitConfResTypeFailure"] = 3] = "kNIMNosInitConfResTypeFailure"; /** < 所有tag初始化失败 */
|
|
10
|
+
})(NIMNosInitConfigResultType = exports.NIMNosInitConfigResultType || (exports.NIMNosInitConfigResultType = {}));
|
|
11
|
+
/** @enum NIMNosUploadType NOS扩展类型 */
|
|
12
|
+
var NIMNosUploadType;
|
|
13
|
+
(function (NIMNosUploadType) {
|
|
14
|
+
NIMNosUploadType[NIMNosUploadType["kNIMNosUploadTypeNormal"] = 0] = "kNIMNosUploadTypeNormal"; /** < 普通文件上传 */
|
|
15
|
+
NIMNosUploadType[NIMNosUploadType["kNIMNosUploadTypeDocTrans"] = 1] = "kNIMNosUploadTypeDocTrans"; /** < 文档转换上传 */
|
|
16
|
+
})(NIMNosUploadType = exports.NIMNosUploadType || (exports.NIMNosUploadType = {}));
|
|
17
17
|
//# sourceMappingURL=nos_def.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=online_session_def.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NIMSendHttpRequestMethods = void 0;
|
|
4
|
-
var NIMSendHttpRequestMethods;
|
|
5
|
-
(function (NIMSendHttpRequestMethods) {
|
|
6
|
-
NIMSendHttpRequestMethods[NIMSendHttpRequestMethods["kNIMHttpGet"] = 1] = "kNIMHttpGet";
|
|
7
|
-
NIMSendHttpRequestMethods[NIMSendHttpRequestMethods["kNIMHttpPost"] = 2] = "kNIMHttpPost";
|
|
8
|
-
NIMSendHttpRequestMethods[NIMSendHttpRequestMethods["kNIMHttpPut"] = 3] = "kNIMHttpPut";
|
|
9
|
-
NIMSendHttpRequestMethods[NIMSendHttpRequestMethods["kNIMHttpDelete"] = 4] = "kNIMHttpDelete";
|
|
10
|
-
})(NIMSendHttpRequestMethods = exports.NIMSendHttpRequestMethods || (exports.NIMSendHttpRequestMethods = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NIMSendHttpRequestMethods = void 0;
|
|
4
|
+
var NIMSendHttpRequestMethods;
|
|
5
|
+
(function (NIMSendHttpRequestMethods) {
|
|
6
|
+
NIMSendHttpRequestMethods[NIMSendHttpRequestMethods["kNIMHttpGet"] = 1] = "kNIMHttpGet";
|
|
7
|
+
NIMSendHttpRequestMethods[NIMSendHttpRequestMethods["kNIMHttpPost"] = 2] = "kNIMHttpPost";
|
|
8
|
+
NIMSendHttpRequestMethods[NIMSendHttpRequestMethods["kNIMHttpPut"] = 3] = "kNIMHttpPut";
|
|
9
|
+
NIMSendHttpRequestMethods[NIMSendHttpRequestMethods["kNIMHttpDelete"] = 4] = "kNIMHttpDelete";
|
|
10
|
+
})(NIMSendHttpRequestMethods = exports.NIMSendHttpRequestMethods || (exports.NIMSendHttpRequestMethods = {}));
|
|
11
11
|
//# sourceMappingURL=pass_through_proxy_def.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=plugin_def.js.map
|