node-nim 9.16.10 → 9.18.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 +58 -44
- package/dist/chatroom/chatroom.js +219 -0
- package/dist/chatroom/chatroom.js.map +1 -1
- package/dist/chatroom_def/chatroom_def.js +146 -73
- package/dist/chatroom_def/chatroom_def.js.map +1 -1
- package/dist/loader.js +1 -1
- package/dist/loader.js.map +1 -1
- package/dist/nim/client.js +1 -1
- package/dist/nim/client.js.map +1 -1
- package/dist/nim/data_sync.js.map +1 -1
- package/dist/nim/friend.js +9 -9
- package/dist/nim/friend.js.map +1 -1
- package/dist/nim/global.js.map +1 -1
- package/dist/nim/msglog.js +1 -1
- package/dist/nim/msglog.js.map +1 -1
- package/dist/nim/nos.js.map +1 -1
- package/dist/nim/online_session.js.map +1 -1
- package/dist/nim/pass_through_proxy.js +7 -7
- package/dist/nim/pass_through_proxy.js.map +1 -1
- package/dist/nim/plugin.js +3 -3
- package/dist/nim/plugin.js.map +1 -1
- package/dist/nim/session.js +49 -49
- package/dist/nim/session.js.map +1 -1
- package/dist/nim/subscribe_event.js +15 -15
- package/dist/nim/subscribe_event.js.map +1 -1
- package/dist/nim/super_team.js +63 -63
- package/dist/nim/super_team.js.map +1 -1
- package/dist/nim/sysmsg.js +14 -14
- package/dist/nim/sysmsg.js.map +1 -1
- package/dist/nim/talk.js +10 -10
- package/dist/nim/talk.js.map +1 -1
- package/dist/nim/talkex.js +27 -27
- package/dist/nim/talkex.js.map +1 -1
- package/dist/nim/team.js +86 -86
- package/dist/nim/team.js.map +1 -1
- package/dist/nim/tool.js.map +1 -1
- package/dist/nim/user.js +2 -2
- package/dist/nim/user.js.map +1 -1
- package/dist/nim_def/client_def.js +145 -118
- package/dist/nim_def/client_def.js.map +1 -1
- package/dist/nim_def/data_sync_def.js +18 -9
- package/dist/nim_def/data_sync_def.js.map +1 -1
- package/dist/nim_def/doc_trans_def.js +10 -5
- package/dist/nim_def/doc_trans_def.js.map +1 -1
- package/dist/nim_def/friend_def.js +28 -14
- package/dist/nim_def/friend_def.js.map +1 -1
- package/dist/nim_def/global_def.js +32 -16
- package/dist/nim_def/global_def.js.map +1 -1
- package/dist/nim_def/msglog_def.js +192 -116
- package/dist/nim_def/msglog_def.js.map +1 -1
- package/dist/nim_def/nos_def.js +12 -6
- package/dist/nim_def/nos_def.js.map +1 -1
- package/dist/nim_def/pass_through_proxy_def.js +5 -0
- package/dist/nim_def/pass_through_proxy_def.js.map +1 -1
- package/dist/nim_def/session_def.js +30 -15
- package/dist/nim_def/session_def.js.map +1 -1
- package/dist/nim_def/subscribe_event_def.js +32 -15
- package/dist/nim_def/subscribe_event_def.js.map +1 -1
- package/dist/nim_def/super_team_def.js +52 -27
- package/dist/nim_def/super_team_def.js.map +1 -1
- package/dist/nim_def/sysmsg_def.js +32 -17
- package/dist/nim_def/sysmsg_def.js.map +1 -1
- package/dist/nim_def/team_def.js +56 -29
- package/dist/nim_def/team_def.js.map +1 -1
- package/dist/nim_def/tool_def.js +8 -4
- package/dist/nim_def/tool_def.js.map +1 -1
- package/dist/nim_def/user_def.js +16 -8
- package/dist/nim_def/user_def.js.map +1 -1
- package/dist/node-nim.js +19 -0
- package/dist/node-nim.js.map +1 -1
- package/dist/qchat/attachment.js.map +1 -1
- package/dist/qchat/channel.js.map +1 -1
- package/dist/qchat/channel_category.js.map +1 -1
- package/dist/qchat/instance.js.map +1 -1
- package/dist/qchat/message.js.map +1 -1
- package/dist/qchat/role.js.map +1 -1
- package/dist/qchat/server.js.map +1 -1
- package/dist/qchat/system_notification.js.map +1 -1
- package/dist/qchat_def/public_def.js +8 -1
- package/dist/qchat_def/public_def.js.map +1 -1
- package/package.json +9 -6
- package/types/chatroom/chatroom.d.ts +219 -0
- package/types/chatroom_def/chatroom_def.d.ts +150 -74
- package/types/nim/client.d.ts +1 -1
- package/types/nim/friend.d.ts +9 -9
- package/types/nim/msglog.d.ts +1 -1
- package/types/nim/pass_through_proxy.d.ts +7 -7
- package/types/nim/plugin.d.ts +3 -3
- package/types/nim/session.d.ts +49 -49
- package/types/nim/subscribe_event.d.ts +15 -15
- package/types/nim/super_team.d.ts +63 -63
- package/types/nim/sysmsg.d.ts +14 -14
- package/types/nim/talk.d.ts +10 -10
- package/types/nim/talkex.d.ts +27 -27
- package/types/nim/team.d.ts +86 -86
- package/types/nim/user.d.ts +2 -2
- package/types/nim_def/client_def.d.ts +321 -126
- package/types/nim_def/data_sync_def.d.ts +18 -9
- package/types/nim_def/doc_trans_def.d.ts +10 -5
- package/types/nim_def/friend_def.d.ts +52 -26
- package/types/nim_def/global_def.d.ts +32 -16
- package/types/nim_def/msglog_def.d.ts +448 -218
- package/types/nim_def/nos_def.d.ts +62 -31
- package/types/nim_def/online_session_def.d.ts +21 -9
- package/types/nim_def/pass_through_proxy_def.d.ts +5 -0
- package/types/nim_def/session_def.d.ts +92 -46
- package/types/nim_def/subscribe_event_def.d.ts +75 -35
- package/types/nim_def/super_team_def.d.ts +74 -36
- package/types/nim_def/sysmsg_def.d.ts +78 -40
- package/types/nim_def/talk_def.d.ts +77 -20
- package/types/nim_def/talkex_def.d.ts +92 -46
- package/types/nim_def/team_def.d.ts +93 -39
- package/types/nim_def/tool_def.d.ts +16 -8
- package/types/nim_def/user_def.d.ts +52 -26
- package/types/node-nim.d.ts +19 -0
- package/types/qchat_def/public_def.d.ts +6 -0
- package/types/qchat_def/role_def.d.ts +3 -1
|
@@ -4,35 +4,49 @@ exports.NIMFriendChangeType = exports.NIMFriendQueryType = exports.NIMVerifyType
|
|
|
4
4
|
/** @enum NIMFriendFlag 好友类型 */
|
|
5
5
|
var NIMFriendFlag;
|
|
6
6
|
(function (NIMFriendFlag) {
|
|
7
|
-
|
|
8
|
-
NIMFriendFlag[NIMFriendFlag["
|
|
7
|
+
/** 陌生人 */
|
|
8
|
+
NIMFriendFlag[NIMFriendFlag["kNIMFriendFlagNotFriend"] = 0] = "kNIMFriendFlagNotFriend";
|
|
9
|
+
/** 普通好友 */
|
|
10
|
+
NIMFriendFlag[NIMFriendFlag["kNIMFriendFlagNormal"] = 1] = "kNIMFriendFlagNormal";
|
|
9
11
|
})(NIMFriendFlag = exports.NIMFriendFlag || (exports.NIMFriendFlag = {}));
|
|
10
12
|
/** @enum NIMFriendSource 好友来源 */
|
|
11
13
|
var NIMFriendSource;
|
|
12
14
|
(function (NIMFriendSource) {
|
|
13
|
-
|
|
15
|
+
/** 默认 */
|
|
16
|
+
NIMFriendSource[NIMFriendSource["kNIMFriendSourceDefault"] = 0] = "kNIMFriendSourceDefault";
|
|
14
17
|
})(NIMFriendSource = exports.NIMFriendSource || (exports.NIMFriendSource = {}));
|
|
15
18
|
/** @enum NIMVerifyType 好友验证方式 */
|
|
16
19
|
var NIMVerifyType;
|
|
17
20
|
(function (NIMVerifyType) {
|
|
18
|
-
|
|
19
|
-
NIMVerifyType[NIMVerifyType["
|
|
20
|
-
|
|
21
|
-
NIMVerifyType[NIMVerifyType["
|
|
21
|
+
/** 直接加好友 */
|
|
22
|
+
NIMVerifyType[NIMVerifyType["kNIMVerifyTypeAdd"] = 1] = "kNIMVerifyTypeAdd";
|
|
23
|
+
/** 请求加好友 */
|
|
24
|
+
NIMVerifyType[NIMVerifyType["kNIMVerifyTypeAsk"] = 2] = "kNIMVerifyTypeAsk";
|
|
25
|
+
/** 同意 */
|
|
26
|
+
NIMVerifyType[NIMVerifyType["kNIMVerifyTypeAgree"] = 3] = "kNIMVerifyTypeAgree";
|
|
27
|
+
/** 拒绝 */
|
|
28
|
+
NIMVerifyType[NIMVerifyType["kNIMVerifyTypeReject"] = 4] = "kNIMVerifyTypeReject";
|
|
22
29
|
})(NIMVerifyType = exports.NIMVerifyType || (exports.NIMVerifyType = {}));
|
|
23
30
|
/** @enum NIMFriendQueryType 查询好友信息的依据条件 */
|
|
24
31
|
var NIMFriendQueryType;
|
|
25
32
|
(function (NIMFriendQueryType) {
|
|
26
|
-
|
|
27
|
-
NIMFriendQueryType[NIMFriendQueryType["
|
|
28
|
-
|
|
33
|
+
/** 同时匹配账户ID和备注名 */
|
|
34
|
+
NIMFriendQueryType[NIMFriendQueryType["kNIMFriendQueryDefault"] = 0] = "kNIMFriendQueryDefault";
|
|
35
|
+
/** 仅匹配账户ID */
|
|
36
|
+
NIMFriendQueryType[NIMFriendQueryType["kNIMFriendQueryByAccId"] = 1] = "kNIMFriendQueryByAccId";
|
|
37
|
+
/** 仅匹配备注名 */
|
|
38
|
+
NIMFriendQueryType[NIMFriendQueryType["kNIMFriendQueryByAlias"] = 2] = "kNIMFriendQueryByAlias";
|
|
29
39
|
})(NIMFriendQueryType = exports.NIMFriendQueryType || (exports.NIMFriendQueryType = {}));
|
|
30
40
|
/** @enum NIMFriendChangeType 好友数据变化类型 */
|
|
31
41
|
var NIMFriendChangeType;
|
|
32
42
|
(function (NIMFriendChangeType) {
|
|
33
|
-
|
|
34
|
-
NIMFriendChangeType[NIMFriendChangeType["
|
|
35
|
-
|
|
36
|
-
NIMFriendChangeType[NIMFriendChangeType["
|
|
43
|
+
/** 加好友/处理好友请求 */
|
|
44
|
+
NIMFriendChangeType[NIMFriendChangeType["kNIMFriendChangeTypeRequest"] = 1] = "kNIMFriendChangeTypeRequest";
|
|
45
|
+
/** 删除好友 */
|
|
46
|
+
NIMFriendChangeType[NIMFriendChangeType["kNIMFriendChangeTypeDel"] = 2] = "kNIMFriendChangeTypeDel";
|
|
47
|
+
/** 更新好友 */
|
|
48
|
+
NIMFriendChangeType[NIMFriendChangeType["kNIMFriendChangeTypeUpdate"] = 3] = "kNIMFriendChangeTypeUpdate";
|
|
49
|
+
/** 好友列表同步与更新 */
|
|
50
|
+
NIMFriendChangeType[NIMFriendChangeType["kNIMFriendChangeTypeSyncList"] = 5] = "kNIMFriendChangeTypeSyncList";
|
|
37
51
|
})(NIMFriendChangeType = exports.NIMFriendChangeType || (exports.NIMFriendChangeType = {}));
|
|
38
52
|
//# sourceMappingURL=friend_def.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"friend_def.js","sourceRoot":"","sources":["../../ts/nim_def/friend_def.ts"],"names":[],"mappings":";;;AAEA,gCAAgC;AAChC,IAAY,
|
|
1
|
+
{"version":3,"file":"friend_def.js","sourceRoot":"","sources":["../../ts/nim_def/friend_def.ts"],"names":[],"mappings":";;;AAEA,gCAAgC;AAChC,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,UAAU;IACV,uFAA2B,CAAA;IAC3B,WAAW;IACX,iFAAwB,CAAA;AAC1B,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAED,iCAAiC;AACjC,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,SAAS;IACT,2FAA2B,CAAA;AAC7B,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAED,iCAAiC;AACjC,IAAY,aASX;AATD,WAAY,aAAa;IACvB,YAAY;IACZ,2EAAqB,CAAA;IACrB,YAAY;IACZ,2EAAqB,CAAA;IACrB,SAAS;IACT,+EAAuB,CAAA;IACvB,SAAS;IACT,iFAAwB,CAAA;AAC1B,CAAC,EATW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QASxB;AAED,2CAA2C;AAC3C,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC5B,mBAAmB;IACnB,+FAA0B,CAAA;IAC1B,cAAc;IACd,+FAA0B,CAAA;IAC1B,aAAa;IACb,+FAA0B,CAAA;AAC5B,CAAC,EAPW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAO7B;AAED,yCAAyC;AACzC,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,iBAAiB;IACjB,2GAA+B,CAAA;IAC/B,WAAW;IACX,mGAA2B,CAAA;IAC3B,WAAW;IACX,yGAA8B,CAAA;IAC9B,gBAAgB;IAChB,6GAAgC,CAAA;AAClC,CAAC,EATW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAS9B"}
|
|
@@ -4,37 +4,53 @@ exports.NIMDBOperation = exports.NIMCachedFileType = exports.NIMProxyType = expo
|
|
|
4
4
|
/** @enum NIMSDKException 异常 */
|
|
5
5
|
var NIMSDKException;
|
|
6
6
|
(function (NIMSDKException) {
|
|
7
|
-
|
|
7
|
+
/** < 当前数据目录所在盘符空间紧张或用完, log: {"free_space" : %lf, "message":""}, free_space单位M*/
|
|
8
|
+
NIMSDKException[NIMSDKException["kNIMSDKExceptionSpaceEmpty"] = 1] = "kNIMSDKExceptionSpaceEmpty";
|
|
8
9
|
})(NIMSDKException = exports.NIMSDKException || (exports.NIMSDKException = {}));
|
|
9
10
|
/** @enum NIMProxyDetectStep 代理测试步骤 */
|
|
10
11
|
var NIMProxyDetectStep;
|
|
11
12
|
(function (NIMProxyDetectStep) {
|
|
12
|
-
|
|
13
|
+
/** < 探测代理有效性结束*/
|
|
14
|
+
NIMProxyDetectStep[NIMProxyDetectStep["kNIMProxyDetectStepAllComplete"] = 5] = "kNIMProxyDetectStepAllComplete";
|
|
13
15
|
})(NIMProxyDetectStep = exports.NIMProxyDetectStep || (exports.NIMProxyDetectStep = {}));
|
|
14
16
|
/** @enum NIMProxyType 代理类型 */
|
|
15
17
|
var NIMProxyType;
|
|
16
18
|
(function (NIMProxyType) {
|
|
17
|
-
|
|
18
|
-
NIMProxyType[NIMProxyType["
|
|
19
|
-
|
|
20
|
-
NIMProxyType[NIMProxyType["
|
|
21
|
-
|
|
22
|
-
NIMProxyType[NIMProxyType["
|
|
19
|
+
/** < 不使用代理*/
|
|
20
|
+
NIMProxyType[NIMProxyType["kNIMProxyNone"] = 0] = "kNIMProxyNone";
|
|
21
|
+
/** < HTTP 1.1 Proxy(暂不支持)*/
|
|
22
|
+
NIMProxyType[NIMProxyType["kNIMProxyHttp11"] = 1] = "kNIMProxyHttp11";
|
|
23
|
+
/** < Socks4 Proxy*/
|
|
24
|
+
NIMProxyType[NIMProxyType["kNIMProxySocks4"] = 4] = "kNIMProxySocks4";
|
|
25
|
+
/** < Socks4a Proxy*/
|
|
26
|
+
NIMProxyType[NIMProxyType["kNIMProxySocks4a"] = 5] = "kNIMProxySocks4a";
|
|
27
|
+
/** < Socks5 Proxy*/
|
|
28
|
+
NIMProxyType[NIMProxyType["kNIMProxySocks5"] = 6] = "kNIMProxySocks5";
|
|
29
|
+
/** < 云信音视频私有代理,只在nim_vchat_set_proxy中有效 */
|
|
30
|
+
NIMProxyType[NIMProxyType["kNIMProxyNrtc"] = 10] = "kNIMProxyNrtc";
|
|
23
31
|
})(NIMProxyType = exports.NIMProxyType || (exports.NIMProxyType = {}));
|
|
24
32
|
/** @enum NIMCachedFileType 查询/删除SDK文件缓存信息文件类型 */
|
|
25
33
|
var NIMCachedFileType;
|
|
26
34
|
(function (NIMCachedFileType) {
|
|
27
|
-
|
|
28
|
-
NIMCachedFileType["
|
|
29
|
-
|
|
30
|
-
NIMCachedFileType["
|
|
35
|
+
/** < 杂项文件缓存 */
|
|
36
|
+
NIMCachedFileType["RES"] = "res";
|
|
37
|
+
/** < 图片消息缓存 */
|
|
38
|
+
NIMCachedFileType["IMAGE"] = "image";
|
|
39
|
+
/** < 语音消息缓存 */
|
|
40
|
+
NIMCachedFileType["AUDIO"] = "audio";
|
|
41
|
+
/** < 视频消息缓存 */
|
|
42
|
+
NIMCachedFileType["VIDEO"] = "video";
|
|
31
43
|
})(NIMCachedFileType = exports.NIMCachedFileType || (exports.NIMCachedFileType = {}));
|
|
32
44
|
/** @enum NIMDBOperation 对DB进行的操作类型 */
|
|
33
45
|
var NIMDBOperation;
|
|
34
46
|
(function (NIMDBOperation) {
|
|
35
|
-
|
|
36
|
-
NIMDBOperation[NIMDBOperation["
|
|
37
|
-
|
|
38
|
-
NIMDBOperation[NIMDBOperation["
|
|
47
|
+
/** < 写操作*/
|
|
48
|
+
NIMDBOperation[NIMDBOperation["kNIMDBOperationInsert"] = 1] = "kNIMDBOperationInsert";
|
|
49
|
+
/** < 读操作*/
|
|
50
|
+
NIMDBOperation[NIMDBOperation["kNIMDBOperationRead"] = 2] = "kNIMDBOperationRead";
|
|
51
|
+
/** < 更新操作*/
|
|
52
|
+
NIMDBOperation[NIMDBOperation["kNIMDBOperationUpdate"] = 4] = "kNIMDBOperationUpdate";
|
|
53
|
+
/** < 删除操作*/
|
|
54
|
+
NIMDBOperation[NIMDBOperation["kNIMDBOperationDelete"] = 8] = "kNIMDBOperationDelete";
|
|
39
55
|
})(NIMDBOperation = exports.NIMDBOperation || (exports.NIMDBOperation = {}));
|
|
40
56
|
//# sourceMappingURL=global_def.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global_def.js","sourceRoot":"","sources":["../../ts/nim_def/global_def.ts"],"names":[],"mappings":";;;AAEA,+BAA+B;AAC/B,IAAY,
|
|
1
|
+
{"version":3,"file":"global_def.js","sourceRoot":"","sources":["../../ts/nim_def/global_def.ts"],"names":[],"mappings":";;;AAEA,+BAA+B;AAC/B,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,iFAAiF;IACjF,iGAA8B,CAAA;AAChC,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAED,sCAAsC;AACtC,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,iBAAiB;IACjB,+GAAkC,CAAA;AACpC,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,8BAA8B;AAC9B,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,aAAa;IACb,iEAAiB,CAAA;IACjB,4BAA4B;IAC5B,qEAAmB,CAAA;IACnB,oBAAoB;IACpB,qEAAmB,CAAA;IACnB,qBAAqB;IACrB,uEAAoB,CAAA;IACpB,oBAAoB;IACpB,qEAAmB,CAAA;IACnB,2CAA2C;IAC3C,kEAAkB,CAAA;AACpB,CAAC,EAbW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAavB;AAED,iDAAiD;AACjD,IAAY,iBASX;AATD,WAAY,iBAAiB;IAC3B,eAAe;IACf,gCAAW,CAAA;IACX,eAAe;IACf,oCAAe,CAAA;IACf,eAAe;IACf,oCAAe,CAAA;IACf,eAAe;IACf,oCAAe,CAAA;AACjB,CAAC,EATW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAS5B;AAED,sCAAsC;AACtC,IAAY,cASX;AATD,WAAY,cAAc;IACxB,WAAW;IACX,qFAA8B,CAAA;IAC9B,WAAW;IACX,iFAA4B,CAAA;IAC5B,YAAY;IACZ,qFAA8B,CAAA;IAC9B,YAAY;IACZ,qFAA8B,CAAA;AAChC,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB"}
|
|
@@ -4,176 +4,252 @@ exports.NIMFullTextSearchRule = exports.BoolStatus = exports.NIMMsglogQuerySourc
|
|
|
4
4
|
/** @enum NIMNotificationId 通知类型 */
|
|
5
5
|
var NIMNotificationId;
|
|
6
6
|
(function (NIMNotificationId) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
NIMNotificationId[NIMNotificationId["
|
|
13
|
-
|
|
14
|
-
NIMNotificationId[NIMNotificationId["
|
|
15
|
-
|
|
16
|
-
NIMNotificationId[NIMNotificationId["
|
|
17
|
-
|
|
18
|
-
NIMNotificationId[NIMNotificationId["
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
NIMNotificationId[NIMNotificationId["
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
NIMNotificationId[NIMNotificationId["
|
|
33
|
-
|
|
34
|
-
NIMNotificationId[NIMNotificationId["
|
|
35
|
-
|
|
36
|
-
NIMNotificationId[NIMNotificationId["
|
|
37
|
-
|
|
38
|
-
NIMNotificationId[NIMNotificationId["
|
|
39
|
-
|
|
40
|
-
NIMNotificationId[NIMNotificationId["
|
|
41
|
-
|
|
42
|
-
NIMNotificationId[NIMNotificationId["
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
NIMNotificationId[NIMNotificationId["
|
|
57
|
-
|
|
58
|
-
NIMNotificationId[NIMNotificationId["
|
|
59
|
-
|
|
60
|
-
NIMNotificationId[NIMNotificationId["
|
|
61
|
-
|
|
62
|
-
NIMNotificationId[NIMNotificationId["
|
|
63
|
-
|
|
7
|
+
/** 普通群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""} attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */
|
|
8
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamInvite"] = 0] = "kNIMNotificationIdTeamInvite";
|
|
9
|
+
/** 普通群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""} attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */
|
|
10
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamKick"] = 1] = "kNIMNotificationIdTeamKick";
|
|
11
|
+
/** 退出群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}*/
|
|
12
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamLeave"] = 2] = "kNIMNotificationIdTeamLeave";
|
|
13
|
+
/** 群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}*/
|
|
14
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamUpdate"] = 3] = "kNIMNotificationIdTeamUpdate";
|
|
15
|
+
/** 群解散,{"user_namecards":["namecard1", "namecard2"]}*/
|
|
16
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamDismiss"] = 4] = "kNIMNotificationIdTeamDismiss";
|
|
17
|
+
/** 高级群申请加入成功,{"id":"a1","user_namecards":["namecard1", "namecard2"]}*/
|
|
18
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamApplyPass"] = 5] = "kNIMNotificationIdTeamApplyPass";
|
|
19
|
+
/** 高级群移交群主,{"id":"a1", "leave" : boolean,"user_namecards":["namecard1", "namecard2"]}*/
|
|
20
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamOwnerTransfer"] = 6] = "kNIMNotificationIdTeamOwnerTransfer";
|
|
21
|
+
/** 增加管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}*/
|
|
22
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamAddManager"] = 7] = "kNIMNotificationIdTeamAddManager";
|
|
23
|
+
/** 删除管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}*/
|
|
24
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamRemoveManager"] = 8] = "kNIMNotificationIdTeamRemoveManager";
|
|
25
|
+
/** 高级群接受邀请进群,{"id":"a1","user_namecards":["namecard1", "namecard2"]}*/
|
|
26
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamInviteAccept"] = 9] = "kNIMNotificationIdTeamInviteAccept";
|
|
27
|
+
/** 禁言/解禁群成员,{"user_namecards":["namecard1", "namecard2"],"team_info":team_info,"id":"a1","mute":1-禁言,0-解禁} */
|
|
28
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamMuteMember"] = 10] = "kNIMNotificationIdTeamMuteMember";
|
|
29
|
+
/** 未接电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"], "time":1430995380471}*/
|
|
30
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdNetcallMiss"] = 101] = "kNIMNotificationIdNetcallMiss";
|
|
31
|
+
/** 话单,{"calltype":2,"channel":6146077129466446197,"duration":8,"ids":["id1","id2"],"time":1430995117398}*/
|
|
32
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdNetcallBill"] = 102] = "kNIMNotificationIdNetcallBill";
|
|
33
|
+
/** 创建群 {"team_info" : team_info} //群组信息(Keys SEE MORE `nim_team_def.h` 『群组信息 Json Keys』)*/
|
|
34
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamSyncCreate"] = 1000] = "kNIMNotificationIdTeamSyncCreate";
|
|
35
|
+
/** 群成员变更{"team_member" : team_member_info} //群组成员信息(不包括自己)(Keys SEE MORE `nim_team_def.h` 『群组成员信息 Json Keys』)*/
|
|
36
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamMemberChanged"] = 1001] = "kNIMNotificationIdTeamMemberChanged";
|
|
37
|
+
/** 同步通知:修改群成员属性(可能是自己的或别人的){"team_member" : team_member_info} 目前只需kNIMTeamUserKeyNick和kNIMTeamUserKeyBits*/
|
|
38
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamSyncUpdateMemberProperty"] = 1002] = "kNIMNotificationIdTeamSyncUpdateMemberProperty";
|
|
39
|
+
/** 本地操作创建群 {"ids" : ["a1", "a2"]}*/
|
|
40
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalCreateTeam"] = 2000] = "kNIMNotificationIdLocalCreateTeam";
|
|
41
|
+
/** 本地操作申请加入群 {}*/
|
|
42
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalApplyTeam"] = 2001] = "kNIMNotificationIdLocalApplyTeam";
|
|
43
|
+
/** 本地操作拒绝申请 {"id":"a1"}*/
|
|
44
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalRejectApply"] = 2002] = "kNIMNotificationIdLocalRejectApply";
|
|
45
|
+
/** 本地操作拒绝邀请 {"id":"a1"}*/
|
|
46
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalRejectInvite"] = 2003] = "kNIMNotificationIdLocalRejectInvite";
|
|
47
|
+
/** 本地操作更新群成员属性 {"team_member" : team_member_info} */
|
|
48
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalUpdateMemberProperty"] = 2004] = "kNIMNotificationIdLocalUpdateMemberProperty";
|
|
49
|
+
/** 本地操作更新他人nickname {}*/
|
|
50
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalUpdateOtherNick"] = 2005] = "kNIMNotificationIdLocalUpdateOtherNick";
|
|
51
|
+
/** 本地操作获取群信息 {"team_info":team_info}*/
|
|
52
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamInfo"] = 2006] = "kNIMNotificationIdLocalGetTeamInfo";
|
|
53
|
+
/** 本地操作获取群成员信息结束*/
|
|
54
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamList"] = 2007] = "kNIMNotificationIdLocalGetTeamList";
|
|
55
|
+
/** 本地操作对群成员禁言 {"id":"a1", "mute":1-禁言,0-解禁} */
|
|
56
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalMuteMember"] = 2008] = "kNIMNotificationIdLocalMuteMember";
|
|
57
|
+
/** 本地操作对群禁言 {} */
|
|
58
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalMute"] = 2009] = "kNIMNotificationIdLocalMute";
|
|
59
|
+
/** 获取群消息未读数 {[{"client_msg_id":"", "count":int, "read_accid":"当前已读成员的accid"},...]}*/
|
|
60
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamMsgUnreadCount"] = 2010] = "kNIMNotificationIdLocalGetTeamMsgUnreadCount";
|
|
61
|
+
/** 获取群消息未读列表 {"client_msg_id":"", "read":["id1",...], "unread":["id2",...]}*/
|
|
62
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamMsgUnreadList"] = 2011] = "kNIMNotificationIdLocalGetTeamMsgUnreadList";
|
|
63
|
+
/** 拒绝电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],"time":1430995380471}*/
|
|
64
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalNetcallReject"] = 3103] = "kNIMNotificationIdLocalNetcallReject";
|
|
65
|
+
/** 无应答,未接通电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],"time":1430995380471}*/
|
|
66
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalNetcallNoResponse"] = 3104] = "kNIMNotificationIdLocalNetcallNoResponse";
|
|
67
|
+
/** 未接通前主叫方挂断,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],"time":1430995380471}*/
|
|
68
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalNetcallCanceled"] = 3105] = "kNIMNotificationIdLocalNetcallCanceled";
|
|
69
|
+
/** 超大群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""} attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */
|
|
70
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamInvite"] = 401] = "kNIMNotificationIdSuperTeamInvite";
|
|
71
|
+
/** 超大群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""} attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */
|
|
72
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamKick"] = 402] = "kNIMNotificationIdSuperTeamKick";
|
|
73
|
+
/** 退出超大群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}*/
|
|
74
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamLeave"] = 403] = "kNIMNotificationIdSuperTeamLeave";
|
|
75
|
+
/** 超大群群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}*/
|
|
76
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamUpdate"] = 404] = "kNIMNotificationIdSuperTeamUpdate";
|
|
77
|
+
/** 超大群解散,{"user_namecards":["namecard1", "namecard2"]}*/
|
|
78
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamDismiss"] = 405] = "kNIMNotificationIdSuperTeamDismiss";
|
|
79
|
+
/** 超大群移交群主,{"id":"a1","uinfos":["uinfo1", "uinfo2"]}*/
|
|
80
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamOwnerTransfer"] = 406] = "kNIMNotificationIdSuperTeamOwnerTransfer";
|
|
81
|
+
/** 超大群增加管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}*/
|
|
82
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamAddManager"] = 407] = "kNIMNotificationIdSuperTeamAddManager";
|
|
83
|
+
/** 超大群删除管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}*/
|
|
84
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamRemoveManager"] = 408] = "kNIMNotificationIdSuperTeamRemoveManager";
|
|
85
|
+
/** 超大群禁言/解禁群成员,{"uinfos":["uinfo1", "uinfo2"],“tinfo”:tinfo,"id":"a1","mute":1-禁言,0-解禁}*/
|
|
86
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamMuteMember"] = 409] = "kNIMNotificationIdSuperTeamMuteMember";
|
|
87
|
+
/** 超大群申请加入成功,{"tinfo":tinfo,"id":"a1","uinfos":["uinfo1", "uinfo2"]}*/
|
|
88
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamApplyPass"] = 410] = "kNIMNotificationIdSuperTeamApplyPass";
|
|
89
|
+
/** 超大群接受邀请进群,{"tinfo":tinfo,"id":"a1"}*/
|
|
90
|
+
NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamInviteAccept"] = 411] = "kNIMNotificationIdSuperTeamInviteAccept";
|
|
64
91
|
})(NIMNotificationId = exports.NIMNotificationId || (exports.NIMNotificationId = {}));
|
|
65
92
|
/** @enum NIMMessageType Message Type */
|
|
66
93
|
var NIMMessageType;
|
|
67
94
|
(function (NIMMessageType) {
|
|
68
|
-
|
|
69
|
-
NIMMessageType[NIMMessageType["
|
|
70
|
-
|
|
71
|
-
NIMMessageType[NIMMessageType["
|
|
72
|
-
|
|
73
|
-
NIMMessageType[NIMMessageType["
|
|
74
|
-
|
|
75
|
-
NIMMessageType[NIMMessageType["
|
|
76
|
-
|
|
77
|
-
NIMMessageType[NIMMessageType["
|
|
78
|
-
|
|
79
|
-
NIMMessageType[NIMMessageType["
|
|
95
|
+
/** 文本类型消息*/
|
|
96
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeText"] = 0] = "kNIMMessageTypeText";
|
|
97
|
+
/** 图片类型消息*/
|
|
98
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeImage"] = 1] = "kNIMMessageTypeImage";
|
|
99
|
+
/** 声音类型消息*/
|
|
100
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeAudio"] = 2] = "kNIMMessageTypeAudio";
|
|
101
|
+
/** 视频类型消息*/
|
|
102
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeVideo"] = 3] = "kNIMMessageTypeVideo";
|
|
103
|
+
/** 位置类型消息*/
|
|
104
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeLocation"] = 4] = "kNIMMessageTypeLocation";
|
|
105
|
+
/** 系统类型通知(包括入群出群通知等) NIMNotificationId*/
|
|
106
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeNotification"] = 5] = "kNIMMessageTypeNotification";
|
|
107
|
+
/** 文件类型消息*/
|
|
108
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeFile"] = 6] = "kNIMMessageTypeFile";
|
|
109
|
+
/** 提醒类型消息,Tip内容根据格式要求填入消息结构中的kNIMMsgKeyServerExt字段*/
|
|
110
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeTips"] = 10] = "kNIMMessageTypeTips";
|
|
111
|
+
/** 波特机器人消息*/
|
|
112
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeRobot"] = 11] = "kNIMMessageTypeRobot";
|
|
113
|
+
/** G2话单消息*/
|
|
114
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeG2NetCall"] = 12] = "kNIMMessageTypeG2NetCall";
|
|
115
|
+
/** 自定义消息*/
|
|
116
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeCustom"] = 100] = "kNIMMessageTypeCustom";
|
|
117
|
+
/** 未知类型消息,本地使用,发送时勿使用,作为默认值*/
|
|
118
|
+
NIMMessageType[NIMMessageType["kNIMMessageTypeUnknown"] = 1000] = "kNIMMessageTypeUnknown";
|
|
80
119
|
})(NIMMessageType = exports.NIMMessageType || (exports.NIMMessageType = {}));
|
|
81
120
|
/** @enum NIMMessageFeature 消息种类 */
|
|
82
121
|
var NIMMessageFeature;
|
|
83
122
|
(function (NIMMessageFeature) {
|
|
84
|
-
|
|
85
|
-
NIMMessageFeature[NIMMessageFeature["
|
|
86
|
-
|
|
87
|
-
NIMMessageFeature[NIMMessageFeature["
|
|
88
|
-
|
|
123
|
+
/** 默认*/
|
|
124
|
+
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureDefault"] = 0] = "kNIMMessageFeatureDefault";
|
|
125
|
+
/** 离线消息*/
|
|
126
|
+
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureLeaveMsg"] = 1] = "kNIMMessageFeatureLeaveMsg";
|
|
127
|
+
/** 漫游消息*/
|
|
128
|
+
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureRoamMsg"] = 2] = "kNIMMessageFeatureRoamMsg";
|
|
129
|
+
/** 同步消息*/
|
|
130
|
+
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureSyncMsg"] = 3] = "kNIMMessageFeatureSyncMsg";
|
|
131
|
+
/** 透传消息*/
|
|
132
|
+
NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureCustomizedMsg"] = 4] = "kNIMMessageFeatureCustomizedMsg";
|
|
89
133
|
})(NIMMessageFeature = exports.NIMMessageFeature || (exports.NIMMessageFeature = {}));
|
|
90
134
|
/** @enum NIMMsgLogStatus 消息状态 */
|
|
91
135
|
var NIMMsgLogStatus;
|
|
92
136
|
(function (NIMMsgLogStatus) {
|
|
93
|
-
|
|
94
|
-
NIMMsgLogStatus[NIMMsgLogStatus["
|
|
95
|
-
|
|
96
|
-
NIMMsgLogStatus[NIMMsgLogStatus["
|
|
97
|
-
|
|
98
|
-
NIMMsgLogStatus[NIMMsgLogStatus["
|
|
99
|
-
|
|
100
|
-
NIMMsgLogStatus[NIMMsgLogStatus["
|
|
101
|
-
|
|
102
|
-
NIMMsgLogStatus[NIMMsgLogStatus["
|
|
103
|
-
|
|
137
|
+
/** 默认,不能当查询条件,意义太多*/
|
|
138
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusNone"] = 0] = "kNIMMsgLogStatusNone";
|
|
139
|
+
/** 收到消息,未读*/
|
|
140
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusUnread"] = 1] = "kNIMMsgLogStatusUnread";
|
|
141
|
+
/** 收到消息,已读*/
|
|
142
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusRead"] = 2] = "kNIMMsgLogStatusRead";
|
|
143
|
+
/** 已删*/
|
|
144
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusDeleted"] = 3] = "kNIMMsgLogStatusDeleted";
|
|
145
|
+
/** 发送中*/
|
|
146
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSending"] = 4] = "kNIMMsgLogStatusSending";
|
|
147
|
+
/** 发送失败*/
|
|
148
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSendFailed"] = 5] = "kNIMMsgLogStatusSendFailed";
|
|
149
|
+
/** 已发送*/
|
|
150
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSent"] = 6] = "kNIMMsgLogStatusSent";
|
|
151
|
+
/** 对方已读发送的内容*/
|
|
152
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusReceipt"] = 7] = "kNIMMsgLogStatusReceipt";
|
|
153
|
+
/** 草稿*/
|
|
154
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusDraft"] = 8] = "kNIMMsgLogStatusDraft";
|
|
155
|
+
/** 发送取消*/
|
|
156
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSendCancel"] = 9] = "kNIMMsgLogStatusSendCancel";
|
|
157
|
+
/** 被对方拒绝,比如被对方加入黑名单等等*/
|
|
158
|
+
NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusRefused"] = 10] = "kNIMMsgLogStatusRefused";
|
|
104
159
|
})(NIMMsgLogStatus = exports.NIMMsgLogStatus || (exports.NIMMsgLogStatus = {}));
|
|
105
160
|
/** @enum NIMMsgLogSubStatus 消息子状态 */
|
|
106
161
|
var NIMMsgLogSubStatus;
|
|
107
162
|
(function (NIMMsgLogSubStatus) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
NIMMsgLogSubStatus[NIMMsgLogSubStatus["
|
|
163
|
+
/** 默认状态*/
|
|
164
|
+
NIMMsgLogSubStatus[NIMMsgLogSubStatus["kNIMMsgLogSubStatusNone"] = 0] = "kNIMMsgLogSubStatusNone";
|
|
165
|
+
/** 未播放*/
|
|
166
|
+
NIMMsgLogSubStatus[NIMMsgLogSubStatus["kNIMMsgLogSubStatusNotPlaying"] = 20] = "kNIMMsgLogSubStatusNotPlaying";
|
|
167
|
+
/** 已播放*/
|
|
168
|
+
NIMMsgLogSubStatus[NIMMsgLogSubStatus["kNIMMsgLogSubStatusPlayed"] = 21] = "kNIMMsgLogSubStatusPlayed";
|
|
112
169
|
})(NIMMsgLogSubStatus = exports.NIMMsgLogSubStatus || (exports.NIMMsgLogSubStatus = {}));
|
|
113
170
|
/** @enum NIMMsgLogQueryRange 消息历史的检索范围 */
|
|
114
171
|
var NIMMsgLogQueryRange;
|
|
115
172
|
(function (NIMMsgLogQueryRange) {
|
|
116
|
-
|
|
117
|
-
NIMMsgLogQueryRange[NIMMsgLogQueryRange["
|
|
118
|
-
|
|
119
|
-
NIMMsgLogQueryRange[NIMMsgLogQueryRange["
|
|
120
|
-
|
|
121
|
-
NIMMsgLogQueryRange[NIMMsgLogQueryRange["
|
|
122
|
-
|
|
123
|
-
NIMMsgLogQueryRange[NIMMsgLogQueryRange["
|
|
173
|
+
/** 指定的个人(点对点会话)(注意:暂不支持指定多个人的检索!)*/
|
|
174
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeP2P"] = 0] = "kNIMMsgLogQueryRangeP2P";
|
|
175
|
+
/** 指定的群组(注意:暂不支持指定多个群组的检索!)*/
|
|
176
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeTeam"] = 1] = "kNIMMsgLogQueryRangeTeam";
|
|
177
|
+
/** 指定的超大群组(注意:暂不支持指定多个群组的检索!)*/
|
|
178
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeSuperTeam"] = 5] = "kNIMMsgLogQueryRangeSuperTeam";
|
|
179
|
+
/** 全部*/
|
|
180
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAll"] = 100] = "kNIMMsgLogQueryRangeAll";
|
|
181
|
+
/** 所有个人会话*/
|
|
182
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAllP2P"] = 101] = "kNIMMsgLogQueryRangeAllP2P";
|
|
183
|
+
/** 所有群组*/
|
|
184
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAllTeam"] = 102] = "kNIMMsgLogQueryRangeAllTeam";
|
|
185
|
+
/** 所有超大群组*/
|
|
186
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAllSuperTeam"] = 103] = "kNIMMsgLogQueryRangeAllSuperTeam";
|
|
187
|
+
/** 未知(如指定个人和群组的集合)(注意:暂不支持指定个人和群组的混合检索!)*/
|
|
188
|
+
NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeUnknown"] = 200] = "kNIMMsgLogQueryRangeUnknown";
|
|
124
189
|
})(NIMMsgLogQueryRange = exports.NIMMsgLogQueryRange || (exports.NIMMsgLogQueryRange = {}));
|
|
125
190
|
/** @enum NIMMsglogSearchDirection 消息历史查询方向 */
|
|
126
191
|
var NIMMsglogSearchDirection;
|
|
127
192
|
(function (NIMMsglogSearchDirection) {
|
|
128
|
-
|
|
129
|
-
NIMMsglogSearchDirection[NIMMsglogSearchDirection["
|
|
193
|
+
/** 以时间点为准向前搜索 */
|
|
194
|
+
NIMMsglogSearchDirection[NIMMsglogSearchDirection["kForward"] = 0] = "kForward";
|
|
195
|
+
/** 以时间点为准向后搜索 */
|
|
196
|
+
NIMMsglogSearchDirection[NIMMsglogSearchDirection["kBackward"] = 1] = "kBackward";
|
|
130
197
|
})(NIMMsglogSearchDirection = exports.NIMMsglogSearchDirection || (exports.NIMMsglogSearchDirection = {}));
|
|
131
198
|
var NIMMsglogSearchSegmentEngine;
|
|
132
199
|
(function (NIMMsglogSearchSegmentEngine) {
|
|
133
|
-
|
|
200
|
+
/** 不使用分词逻辑 */
|
|
134
201
|
NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineDefault"] = 0] = "kSegmentEngineDefault";
|
|
135
|
-
|
|
202
|
+
/** 单字分词逻辑,默认 */
|
|
136
203
|
NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineSimple"] = 1] = "kSegmentEngineSimple";
|
|
137
|
-
|
|
204
|
+
/** Jieba 分词,使用 HMM 模型 */
|
|
138
205
|
NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineJiebaCutWithHMM"] = 2] = "kSegmentEngineJiebaCutWithHMM";
|
|
139
|
-
|
|
206
|
+
/** Jieba 分词,不使用 HMM 模型 */
|
|
140
207
|
NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineJiebaCutWithoutHMM"] = 3] = "kSegmentEngineJiebaCutWithoutHMM";
|
|
141
|
-
|
|
208
|
+
/** Jieba 分词,使用全模式 */
|
|
142
209
|
NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineJiebaCutAll"] = 4] = "kSegmentEngineJiebaCutAll";
|
|
143
|
-
|
|
210
|
+
/** Jieba 分词,搜索引擎模式 */
|
|
144
211
|
NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineJiebaCutForSearch"] = 5] = "kSegmentEngineJiebaCutForSearch";
|
|
145
|
-
|
|
212
|
+
/** Jieba 分词,使用 HMM 模型 */
|
|
146
213
|
NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineJiebaCutHMM"] = 6] = "kSegmentEngineJiebaCutHMM";
|
|
147
214
|
})(NIMMsglogSearchSegmentEngine = exports.NIMMsglogSearchSegmentEngine || (exports.NIMMsglogSearchSegmentEngine = {}));
|
|
148
215
|
var NIMBuildingMsglogIndexesCompleteReason;
|
|
149
216
|
(function (NIMBuildingMsglogIndexesCompleteReason) {
|
|
150
|
-
|
|
217
|
+
/** 构建消息索引表完成 */
|
|
151
218
|
NIMBuildingMsglogIndexesCompleteReason[NIMBuildingMsglogIndexesCompleteReason["kBuildingMsglogIndexesCompleted"] = 0] = "kBuildingMsglogIndexesCompleted";
|
|
152
|
-
|
|
219
|
+
/** 用户取消 */
|
|
153
220
|
NIMBuildingMsglogIndexesCompleteReason[NIMBuildingMsglogIndexesCompleteReason["kBuildingMsglogIndexesCanceled"] = 1] = "kBuildingMsglogIndexesCanceled";
|
|
154
|
-
|
|
221
|
+
/** 构建失败 */
|
|
155
222
|
NIMBuildingMsglogIndexesCompleteReason[NIMBuildingMsglogIndexesCompleteReason["kBuildingMsglogIndexesError"] = 2] = "kBuildingMsglogIndexesError";
|
|
156
|
-
|
|
223
|
+
/** 磁盘空间不足 */
|
|
157
224
|
NIMBuildingMsglogIndexesCompleteReason[NIMBuildingMsglogIndexesCompleteReason["kBuildingMsglogIndexesFullDisk"] = 3] = "kBuildingMsglogIndexesFullDisk";
|
|
158
|
-
|
|
225
|
+
/** 当前正在构建中,请勿频繁操作 */
|
|
159
226
|
NIMBuildingMsglogIndexesCompleteReason[NIMBuildingMsglogIndexesCompleteReason["kBuildingMsglogIndexesInProgress"] = 4] = "kBuildingMsglogIndexesInProgress";
|
|
160
227
|
})(NIMBuildingMsglogIndexesCompleteReason = exports.NIMBuildingMsglogIndexesCompleteReason || (exports.NIMBuildingMsglogIndexesCompleteReason = {}));
|
|
161
228
|
/** @enum NIMMsglogQuerySource 消息历史查询来源 */
|
|
162
229
|
var NIMMsglogQuerySource;
|
|
163
230
|
(function (NIMMsglogQuerySource) {
|
|
164
|
-
|
|
165
|
-
NIMMsglogQuerySource[NIMMsglogQuerySource["
|
|
231
|
+
/** 本地查询*/
|
|
232
|
+
NIMMsglogQuerySource[NIMMsglogQuerySource["kNIMMsglogQuerySourceLocal"] = 0] = "kNIMMsglogQuerySourceLocal";
|
|
233
|
+
/** 云端查询*/
|
|
234
|
+
NIMMsglogQuerySource[NIMMsglogQuerySource["kNIMMsglogQuerySourceServer"] = 1] = "kNIMMsglogQuerySourceServer";
|
|
166
235
|
})(NIMMsglogQuerySource = exports.NIMMsglogQuerySource || (exports.NIMMsglogQuerySource = {}));
|
|
167
236
|
var BoolStatus;
|
|
168
237
|
(function (BoolStatus) {
|
|
169
|
-
|
|
170
|
-
BoolStatus[BoolStatus["
|
|
171
|
-
|
|
238
|
+
/** 未初始化 */
|
|
239
|
+
BoolStatus[BoolStatus["BS_NOT_INIT"] = -1] = "BS_NOT_INIT";
|
|
240
|
+
/** false */
|
|
241
|
+
BoolStatus[BoolStatus["BS_FALSE"] = 0] = "BS_FALSE";
|
|
242
|
+
/** true */
|
|
243
|
+
BoolStatus[BoolStatus["BS_TRUE"] = 1] = "BS_TRUE";
|
|
172
244
|
})(BoolStatus = exports.BoolStatus || (exports.BoolStatus = {}));
|
|
245
|
+
/** @enum NIMFullTextSearchRule 全文检索规则 */
|
|
173
246
|
var NIMFullTextSearchRule;
|
|
174
247
|
(function (NIMFullTextSearchRule) {
|
|
248
|
+
/** 降序排列 */
|
|
175
249
|
NIMFullTextSearchRule[NIMFullTextSearchRule["kNIMFullTextSearchOrderByAsc"] = 1] = "kNIMFullTextSearchOrderByAsc";
|
|
250
|
+
/** 升序排列 */
|
|
176
251
|
NIMFullTextSearchRule[NIMFullTextSearchRule["kNIMFullTextSearchOrderByDesc"] = 2] = "kNIMFullTextSearchOrderByDesc";
|
|
252
|
+
/** 按会话排序 */
|
|
177
253
|
NIMFullTextSearchRule[NIMFullTextSearchRule["kNIMFullTextSearchNoGroupBySession"] = 4] = "kNIMFullTextSearchNoGroupBySession";
|
|
178
254
|
})(NIMFullTextSearchRule = exports.NIMFullTextSearchRule || (exports.NIMFullTextSearchRule = {}));
|
|
179
255
|
//# sourceMappingURL=msglog_def.js.map
|