node-nim 9.14.2 → 9.14.4

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.
Files changed (132) hide show
  1. package/dist/chatroom/chatroom.js +262 -262
  2. package/dist/chatroom_def/chatroom_def.js +119 -119
  3. package/dist/loader.js +35 -35
  4. package/dist/nim/client.js +184 -184
  5. package/dist/nim/data_sync.js +19 -19
  6. package/dist/nim/friend.js +150 -150
  7. package/dist/nim/global.js +131 -131
  8. package/dist/nim/msglog.js +687 -687
  9. package/dist/nim/nos.js +180 -180
  10. package/dist/nim/online_session.js +85 -85
  11. package/dist/nim/pass_through_proxy.js +39 -39
  12. package/dist/nim/plugin.js +65 -65
  13. package/dist/nim/session.js +392 -392
  14. package/dist/nim/subscribe_event.js +142 -142
  15. package/dist/nim/super_team.js +651 -592
  16. package/dist/nim/super_team.js.map +1 -1
  17. package/dist/nim/sysmsg.js +194 -194
  18. package/dist/nim/talk.js +209 -209
  19. package/dist/nim/talk.js.map +1 -1
  20. package/dist/nim/talkex.js +191 -191
  21. package/dist/nim/team.js +866 -818
  22. package/dist/nim/team.js.map +1 -1
  23. package/dist/nim/tool.js +119 -119
  24. package/dist/nim/user.js +201 -201
  25. package/dist/nim_def/client_def.js +245 -245
  26. package/dist/nim_def/data_sync_def.js +20 -20
  27. package/dist/nim_def/doc_trans_def.js +16 -16
  28. package/dist/nim_def/friend_def.js +37 -37
  29. package/dist/nim_def/global_def.js +39 -39
  30. package/dist/nim_def/msglog_def.js +148 -148
  31. package/dist/nim_def/nos_def.js +16 -16
  32. package/dist/nim_def/online_session_def.js +2 -2
  33. package/dist/nim_def/pass_through_proxy_def.js +10 -10
  34. package/dist/nim_def/plugin_def.js +2 -2
  35. package/dist/nim_def/session_def.js +26 -26
  36. package/dist/nim_def/subscribe_event_def.js +52 -52
  37. package/dist/nim_def/super_team_def.js +71 -64
  38. package/dist/nim_def/super_team_def.js.map +1 -1
  39. package/dist/nim_def/sysmsg_def.js +28 -28
  40. package/dist/nim_def/talk_def.js +2 -2
  41. package/dist/nim_def/talkex_def.js +2 -2
  42. package/dist/nim_def/team_def.js +76 -69
  43. package/dist/nim_def/team_def.js.map +1 -1
  44. package/dist/nim_def/tool_def.js +11 -11
  45. package/dist/nim_def/user_def.js +22 -22
  46. package/dist/node-nim.js +171 -171
  47. package/dist/qchat/attachment.js +63 -63
  48. package/dist/qchat/channel.js +314 -314
  49. package/dist/qchat/channel_category.js +187 -187
  50. package/dist/qchat/instance.js +77 -77
  51. package/dist/qchat/message.js +285 -285
  52. package/dist/qchat/role.js +423 -423
  53. package/dist/qchat/server.js +453 -453
  54. package/dist/qchat/system_notification.js +74 -74
  55. package/dist/qchat_def/attachment_def.js +2 -2
  56. package/dist/qchat_def/channel_def.js +2 -2
  57. package/dist/qchat_def/instance_def.js +2 -2
  58. package/dist/qchat_def/message_def.js +2 -2
  59. package/dist/qchat_def/public_def.js +649 -649
  60. package/dist/qchat_def/role_def.js +2 -2
  61. package/dist/qchat_def/server_def.js +2 -2
  62. package/dist/qchat_def/system_notification_def.js +2 -2
  63. package/dist/v2/v2_nim_instance.js +43 -43
  64. package/dist/v2/v2_nim_login_service.js +123 -123
  65. package/dist/v2_def/v2_nim_callback_def.js +2 -2
  66. package/dist/v2_def/v2_nim_enum_def.js +325 -325
  67. package/dist/v2_def/v2_nim_struct_def.js +2 -2
  68. package/package.json +74 -74
  69. package/script/download-sdk.js +78 -78
  70. package/script/exec-node-nim-tester.js +17 -17
  71. package/types/chatroom/chatroom.d.ts +55 -55
  72. package/types/chatroom_def/chatroom_def.d.ts +448 -448
  73. package/types/loader.d.ts +2 -2
  74. package/types/nim/client.d.ts +123 -123
  75. package/types/nim/data_sync.d.ts +12 -12
  76. package/types/nim/friend.d.ts +82 -82
  77. package/types/nim/global.d.ts +69 -69
  78. package/types/nim/msglog.d.ts +392 -392
  79. package/types/nim/nos.d.ts +118 -118
  80. package/types/nim/online_session.d.ts +44 -44
  81. package/types/nim/pass_through_proxy.d.ts +24 -24
  82. package/types/nim/plugin.d.ts +39 -39
  83. package/types/nim/session.d.ts +212 -212
  84. package/types/nim/subscribe_event.d.ts +87 -87
  85. package/types/nim/super_team.d.ts +356 -331
  86. package/types/nim/sysmsg.d.ts +105 -105
  87. package/types/nim/talk.d.ts +94 -94
  88. package/types/nim/talkex.d.ts +95 -95
  89. package/types/nim/team.d.ts +481 -461
  90. package/types/nim/tool.d.ts +77 -77
  91. package/types/nim/user.d.ts +111 -111
  92. package/types/nim_def/client_def.d.ts +284 -284
  93. package/types/nim_def/data_sync_def.d.ts +19 -19
  94. package/types/nim_def/doc_trans_def.d.ts +11 -11
  95. package/types/nim_def/friend_def.d.ts +65 -65
  96. package/types/nim_def/global_def.d.ts +62 -62
  97. package/types/nim_def/msglog_def.d.ts +373 -373
  98. package/types/nim_def/nos_def.d.ts +72 -72
  99. package/types/nim_def/online_session_def.d.ts +34 -34
  100. package/types/nim_def/pass_through_proxy_def.d.ts +13 -13
  101. package/types/nim_def/plugin_def.d.ts +8 -8
  102. package/types/nim_def/session_def.d.ts +114 -114
  103. package/types/nim_def/subscribe_event_def.d.ts +83 -83
  104. package/types/nim_def/super_team_def.d.ts +165 -137
  105. package/types/nim_def/sysmsg_def.d.ts +70 -70
  106. package/types/nim_def/talk_def.d.ts +96 -96
  107. package/types/nim_def/talkex_def.d.ts +112 -112
  108. package/types/nim_def/team_def.d.ts +186 -167
  109. package/types/nim_def/tool_def.d.ts +28 -28
  110. package/types/nim_def/user_def.d.ts +59 -59
  111. package/types/node-nim.d.ts +93 -93
  112. package/types/qchat/attachment.d.ts +40 -40
  113. package/types/qchat/channel.d.ts +139 -139
  114. package/types/qchat/channel_category.d.ts +82 -82
  115. package/types/qchat/instance.d.ts +46 -46
  116. package/types/qchat/message.d.ts +128 -128
  117. package/types/qchat/role.d.ts +166 -166
  118. package/types/qchat/server.d.ts +198 -198
  119. package/types/qchat/system_notification.d.ts +39 -39
  120. package/types/qchat_def/attachment_def.d.ts +71 -71
  121. package/types/qchat_def/channel_def.d.ts +643 -643
  122. package/types/qchat_def/instance_def.d.ts +214 -214
  123. package/types/qchat_def/message_def.d.ts +565 -565
  124. package/types/qchat_def/public_def.d.ts +754 -754
  125. package/types/qchat_def/role_def.d.ts +413 -413
  126. package/types/qchat_def/server_def.d.ts +529 -529
  127. package/types/qchat_def/system_notification_def.d.ts +172 -172
  128. package/types/v2/v2_nim_instance.d.ts +25 -25
  129. package/types/v2/v2_nim_login_service.d.ts +96 -96
  130. package/types/v2_def/v2_nim_callback_def.d.ts +20 -20
  131. package/types/v2_def/v2_nim_enum_def.d.ts +300 -300
  132. package/types/v2_def/v2_nim_struct_def.d.ts +338 -338
@@ -1,286 +1,286 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.QChatMessageModule = void 0;
7
- const loader_1 = __importDefault(require("../loader"));
8
- const eventemitter3_1 = require("eventemitter3");
9
- class QChatMessageModule extends eventemitter3_1.EventEmitter {
10
- constructor() {
11
- super();
12
- this.instance = new loader_1.default.QChatMessage({ emit: this.emit.bind(this) });
13
- }
14
- /** 注册全局回调 */
15
- initEventHandlers() {
16
- return this.instance.InitEventHandlers();
17
- }
18
- /** @fn send(param: QChatSendMessageParam)
19
- * 发送消息
20
- * @param[in] param 接口参数 @see QChatSendMessageParam
21
- * @return void
22
- */
23
- send(param) {
24
- const p = new Promise((resolve) => {
25
- param.cb = (resp) => {
26
- resolve(resp);
27
- };
28
- this.instance.Send(param);
29
- });
30
- return p;
31
- }
32
- /** @fn update(param: QChatUpdateMessageParam)
33
- * 更新消息
34
- * @param[in] param 接口参数 @see QChatUpdateMessageParam
35
- */
36
- update(param) {
37
- const p = new Promise((resolve) => {
38
- param.cb = (resp) => {
39
- resolve(resp);
40
- };
41
- this.instance.Update(param);
42
- });
43
- return p;
44
- }
45
- /** @fn revoke(param: QChatRevokeMessageParam)
46
- * 撤回消息,撤回未读消息不影响未读数
47
- * @param[in] param 接口参数 @see QChatRevokeMessageParam
48
- * @return void
49
- */
50
- revoke(param) {
51
- const p = new Promise((resolve) => {
52
- param.cb = (resp) => {
53
- resolve(resp);
54
- };
55
- this.instance.Revoke(param);
56
- });
57
- return p;
58
- }
59
- /** @fn delete(param: QChatDeleteMessageParam)
60
- * 删除消息,删除未读消息影响未读数
61
- * @param[in] param 接口参数 @see QChatDeleteMessageParam
62
- * @return void
63
- */
64
- delete(param) {
65
- const p = new Promise((resolve) => {
66
- param.cb = (resp) => {
67
- resolve(resp);
68
- };
69
- this.instance.Delete(param);
70
- });
71
- return p;
72
- }
73
- /** @fn getMessages(param: QChatGetMessagesParam)
74
- * 查询历史消息
75
- * @param[in] param 接口参数 @see QChatGetMessagesParam
76
- * @return void
77
- */
78
- getMessages(param) {
79
- const p = new Promise((resolve) => {
80
- param.cb = (resp) => {
81
- resolve(resp);
82
- };
83
- this.instance.GetMessages(param);
84
- });
85
- return p;
86
- }
87
- /** @fn getMessagesCache(param: QChatGetMessagesCacheParam)
88
- * @brief 查询本地消息历史缓存, 仅用于无网络情况或加速页面显示时使用,恢复通信后应使用GetMessages的结果进行覆盖
89
- *
90
- * @param param 要查询的服务器、频道信息 @see QChatGetMessagesCacheParam
91
- * @return void
92
- */
93
- getMessagesCache(param) {
94
- const p = new Promise((resolve) => {
95
- param.cb = (resp) => {
96
- resolve(resp);
97
- };
98
- this.instance.GetMessagesCache(param);
99
- });
100
- return p;
101
- }
102
- /** @fn getLastMessages(param: QChatGetLastMessagesParam)
103
- * 查询频道最后一条消息
104
- * @param[in] param 接口参数 @see QChatGetLastMessagesParam
105
- * @return void
106
- */
107
- getLastMessages(param) {
108
- const p = new Promise((resolve) => {
109
- param.cb = (resp) => {
110
- resolve(resp);
111
- };
112
- this.instance.GetLastMessages(param);
113
- });
114
- return p;
115
- }
116
- /** @fn markRead(param: QChatMarkMessageReadParam)
117
- * 标记消息已读
118
- * @param[in] param 接口参数 @see QChatMarkMessageReadParam
119
- * @return void
120
- */
121
- markRead(param) {
122
- const p = new Promise((resolve) => {
123
- param.cb = (resp) => {
124
- resolve(resp);
125
- };
126
- this.instance.MarkRead(param);
127
- });
128
- return p;
129
- }
130
- /** @fn reply(param: QChatReplyMessageParam)
131
- * @brief 回复指定消息
132
- * @since v9.1.0
133
- * @param[in] param 接口参数 @see QChatReplyMessageParam
134
- */
135
- reply(param) {
136
- const p = new Promise((resolve) => {
137
- param.cb = (resp) => {
138
- resolve(resp);
139
- };
140
- this.instance.Reply(param);
141
- });
142
- return p;
143
- }
144
- /** @fn getMessageHistoryByIds(param: QChatGetMessageHistoryByIdsParam)
145
- * @brief 通过一组消息 ID 查询消息详情
146
- * @since v9.1.0
147
- * @param param 接口参数 @see QChatGetMessageHistoryByIdsParam
148
- */
149
- getMessageHistoryByIds(param) {
150
- const p = new Promise((resolve) => {
151
- param.cb = (resp) => {
152
- resolve(resp);
153
- };
154
- this.instance.GetMessageHistoryByIds(param);
155
- });
156
- return p;
157
- }
158
- /** @fn getReferMessages(param: QChatGetReferMessagesParam)
159
- * @brief 获取指定消息的引用消息内容
160
- * @since v9.1.0
161
- * @param param 接口参数 @see QChatGetReferMessagesParam
162
- */
163
- getReferMessages(param) {
164
- const p = new Promise((resolve) => {
165
- param.cb = (resp) => {
166
- resolve(resp);
167
- };
168
- this.instance.GetReferMessages(param);
169
- });
170
- return p;
171
- }
172
- /** @fn getThreadMessages(param: QChatGetThreadMessagesParam)
173
- * @brief 分页获取一个 thread 消息得详细回复消息列表
174
- * @since v9.1.0
175
- * @param param 接口参数 @see QChatGetThreadMessagesParam
176
- */
177
- getThreadMessages(param) {
178
- const p = new Promise((resolve) => {
179
- param.cb = (resp) => {
180
- resolve(resp);
181
- };
182
- this.instance.GetThreadMessages(param);
183
- });
184
- return p;
185
- }
186
- /** @fn getThreadRootMessagesMeta(param: QChatGetThreadRootMessagesMetaParam)
187
- * @brief 获取一批 thread root 消息的基本信息(回复次数,最后回复时间)
188
- * @since v9.1.0
189
- * @param param 接口参数 @see QChatGetThreadRootMessagesMetaParam
190
- */
191
- getThreadRootMessagesMeta(param) {
192
- const p = new Promise((resolve) => {
193
- param.cb = (resp) => {
194
- resolve(resp);
195
- };
196
- this.instance.GetThreadRootMessagesMeta(param);
197
- });
198
- return p;
199
- }
200
- /** @fn getMentionedMeMessages(param: QChatGetMentionedMeMessagesParam)
201
- * @brief 查询未读消息中 @ 当前用户的消息
202
- * @since v9.9.0
203
- * @param param 接口参数 @see QChatGetMentionedMeMessagesParam
204
- */
205
- getMentionedMeMessages(param) {
206
- const p = new Promise((resolve) => {
207
- param.cb = (resp) => {
208
- resolve(resp);
209
- };
210
- this.instance.GetMentionedMeMessages(param);
211
- });
212
- return p;
213
- }
214
- /** @fn areMentionedMeMessages(param: QChatAreMentionedMeMessagesParam)
215
- * @brief 查询指定消息中是否有 @ 当前用户的消息
216
- * @since v9.9.0
217
- * @param param 接口参数 @see QChatAreMentionedMeMessagesParam
218
- */
219
- areMentionedMeMessages(param) {
220
- const p = new Promise((resolve) => {
221
- param.cb = (resp) => {
222
- resolve(resp);
223
- };
224
- this.instance.AreMentionedMeMessages(param);
225
- });
226
- return p;
227
- }
228
- /** @fn addQuickComment(param: QChatAddQuickCommentParam)
229
- * @brief 对指定消息添加快捷评论
230
- * @since v9.1.0
231
- * @param param 接口参数 @see QChatAddQuickCommentParam
232
- */
233
- addQuickComment(param) {
234
- const p = new Promise((resolve) => {
235
- param.cb = (resp) => {
236
- resolve(resp);
237
- };
238
- this.instance.AddQuickComment(param);
239
- });
240
- return p;
241
- }
242
- /** @fn removeQuickComment(param: QChatRemoveQuickCommentParam)
243
- * @brief 从某个消息上移除快捷评论
244
- * @since v9.1.0
245
- * @param param 接口参数 @see QChatRemoveQuickComm entParam
246
- */
247
- removeQuickComment(param) {
248
- const p = new Promise((resolve) => {
249
- param.cb = (resp) => {
250
- resolve(resp);
251
- };
252
- this.instance.RemoveQuickComment(param);
253
- });
254
- return p;
255
- }
256
- /** @fn getQuickComments(param: QChatGetQuickCommentsParam)
257
- * @brief 获取指定消息包含的快捷评论列表
258
- * @since v9.1.0
259
- * @param param 接口参数 @see QChatGetQuickCommentsParam
260
- */
261
- getQuickComments(param) {
262
- const p = new Promise((resolve) => {
263
- param.cb = (resp) => {
264
- resolve(resp);
265
- };
266
- this.instance.GetQuickComments(param);
267
- });
268
- return p;
269
- }
270
- /** @fn searchMsgByPage(param: QChatMessageSearchPageParam)
271
- * @brief 分页搜索消息
272
- * @since v9.4.0
273
- * @param param 接口参数 @see QChatSearchMsgByPageParam
274
- */
275
- searchMsgByPage(param) {
276
- const p = new Promise((resolve) => {
277
- param.cb = (resp) => {
278
- resolve(resp);
279
- };
280
- this.instance.SearchMsgByPage(param);
281
- });
282
- return p;
283
- }
284
- }
285
- exports.QChatMessageModule = QChatMessageModule;
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.QChatMessageModule = void 0;
7
+ const loader_1 = __importDefault(require("../loader"));
8
+ const eventemitter3_1 = require("eventemitter3");
9
+ class QChatMessageModule extends eventemitter3_1.EventEmitter {
10
+ constructor() {
11
+ super();
12
+ this.instance = new loader_1.default.QChatMessage({ emit: this.emit.bind(this) });
13
+ }
14
+ /** 注册全局回调 */
15
+ initEventHandlers() {
16
+ return this.instance.InitEventHandlers();
17
+ }
18
+ /** @fn send(param: QChatSendMessageParam)
19
+ * 发送消息
20
+ * @param[in] param 接口参数 @see QChatSendMessageParam
21
+ * @return void
22
+ */
23
+ send(param) {
24
+ const p = new Promise((resolve) => {
25
+ param.cb = (resp) => {
26
+ resolve(resp);
27
+ };
28
+ this.instance.Send(param);
29
+ });
30
+ return p;
31
+ }
32
+ /** @fn update(param: QChatUpdateMessageParam)
33
+ * 更新消息
34
+ * @param[in] param 接口参数 @see QChatUpdateMessageParam
35
+ */
36
+ update(param) {
37
+ const p = new Promise((resolve) => {
38
+ param.cb = (resp) => {
39
+ resolve(resp);
40
+ };
41
+ this.instance.Update(param);
42
+ });
43
+ return p;
44
+ }
45
+ /** @fn revoke(param: QChatRevokeMessageParam)
46
+ * 撤回消息,撤回未读消息不影响未读数
47
+ * @param[in] param 接口参数 @see QChatRevokeMessageParam
48
+ * @return void
49
+ */
50
+ revoke(param) {
51
+ const p = new Promise((resolve) => {
52
+ param.cb = (resp) => {
53
+ resolve(resp);
54
+ };
55
+ this.instance.Revoke(param);
56
+ });
57
+ return p;
58
+ }
59
+ /** @fn delete(param: QChatDeleteMessageParam)
60
+ * 删除消息,删除未读消息影响未读数
61
+ * @param[in] param 接口参数 @see QChatDeleteMessageParam
62
+ * @return void
63
+ */
64
+ delete(param) {
65
+ const p = new Promise((resolve) => {
66
+ param.cb = (resp) => {
67
+ resolve(resp);
68
+ };
69
+ this.instance.Delete(param);
70
+ });
71
+ return p;
72
+ }
73
+ /** @fn getMessages(param: QChatGetMessagesParam)
74
+ * 查询历史消息
75
+ * @param[in] param 接口参数 @see QChatGetMessagesParam
76
+ * @return void
77
+ */
78
+ getMessages(param) {
79
+ const p = new Promise((resolve) => {
80
+ param.cb = (resp) => {
81
+ resolve(resp);
82
+ };
83
+ this.instance.GetMessages(param);
84
+ });
85
+ return p;
86
+ }
87
+ /** @fn getMessagesCache(param: QChatGetMessagesCacheParam)
88
+ * @brief 查询本地消息历史缓存, 仅用于无网络情况或加速页面显示时使用,恢复通信后应使用GetMessages的结果进行覆盖
89
+ *
90
+ * @param param 要查询的服务器、频道信息 @see QChatGetMessagesCacheParam
91
+ * @return void
92
+ */
93
+ getMessagesCache(param) {
94
+ const p = new Promise((resolve) => {
95
+ param.cb = (resp) => {
96
+ resolve(resp);
97
+ };
98
+ this.instance.GetMessagesCache(param);
99
+ });
100
+ return p;
101
+ }
102
+ /** @fn getLastMessages(param: QChatGetLastMessagesParam)
103
+ * 查询频道最后一条消息
104
+ * @param[in] param 接口参数 @see QChatGetLastMessagesParam
105
+ * @return void
106
+ */
107
+ getLastMessages(param) {
108
+ const p = new Promise((resolve) => {
109
+ param.cb = (resp) => {
110
+ resolve(resp);
111
+ };
112
+ this.instance.GetLastMessages(param);
113
+ });
114
+ return p;
115
+ }
116
+ /** @fn markRead(param: QChatMarkMessageReadParam)
117
+ * 标记消息已读
118
+ * @param[in] param 接口参数 @see QChatMarkMessageReadParam
119
+ * @return void
120
+ */
121
+ markRead(param) {
122
+ const p = new Promise((resolve) => {
123
+ param.cb = (resp) => {
124
+ resolve(resp);
125
+ };
126
+ this.instance.MarkRead(param);
127
+ });
128
+ return p;
129
+ }
130
+ /** @fn reply(param: QChatReplyMessageParam)
131
+ * @brief 回复指定消息
132
+ * @since v9.1.0
133
+ * @param[in] param 接口参数 @see QChatReplyMessageParam
134
+ */
135
+ reply(param) {
136
+ const p = new Promise((resolve) => {
137
+ param.cb = (resp) => {
138
+ resolve(resp);
139
+ };
140
+ this.instance.Reply(param);
141
+ });
142
+ return p;
143
+ }
144
+ /** @fn getMessageHistoryByIds(param: QChatGetMessageHistoryByIdsParam)
145
+ * @brief 通过一组消息 ID 查询消息详情
146
+ * @since v9.1.0
147
+ * @param param 接口参数 @see QChatGetMessageHistoryByIdsParam
148
+ */
149
+ getMessageHistoryByIds(param) {
150
+ const p = new Promise((resolve) => {
151
+ param.cb = (resp) => {
152
+ resolve(resp);
153
+ };
154
+ this.instance.GetMessageHistoryByIds(param);
155
+ });
156
+ return p;
157
+ }
158
+ /** @fn getReferMessages(param: QChatGetReferMessagesParam)
159
+ * @brief 获取指定消息的引用消息内容
160
+ * @since v9.1.0
161
+ * @param param 接口参数 @see QChatGetReferMessagesParam
162
+ */
163
+ getReferMessages(param) {
164
+ const p = new Promise((resolve) => {
165
+ param.cb = (resp) => {
166
+ resolve(resp);
167
+ };
168
+ this.instance.GetReferMessages(param);
169
+ });
170
+ return p;
171
+ }
172
+ /** @fn getThreadMessages(param: QChatGetThreadMessagesParam)
173
+ * @brief 分页获取一个 thread 消息得详细回复消息列表
174
+ * @since v9.1.0
175
+ * @param param 接口参数 @see QChatGetThreadMessagesParam
176
+ */
177
+ getThreadMessages(param) {
178
+ const p = new Promise((resolve) => {
179
+ param.cb = (resp) => {
180
+ resolve(resp);
181
+ };
182
+ this.instance.GetThreadMessages(param);
183
+ });
184
+ return p;
185
+ }
186
+ /** @fn getThreadRootMessagesMeta(param: QChatGetThreadRootMessagesMetaParam)
187
+ * @brief 获取一批 thread root 消息的基本信息(回复次数,最后回复时间)
188
+ * @since v9.1.0
189
+ * @param param 接口参数 @see QChatGetThreadRootMessagesMetaParam
190
+ */
191
+ getThreadRootMessagesMeta(param) {
192
+ const p = new Promise((resolve) => {
193
+ param.cb = (resp) => {
194
+ resolve(resp);
195
+ };
196
+ this.instance.GetThreadRootMessagesMeta(param);
197
+ });
198
+ return p;
199
+ }
200
+ /** @fn getMentionedMeMessages(param: QChatGetMentionedMeMessagesParam)
201
+ * @brief 查询未读消息中 @ 当前用户的消息
202
+ * @since v9.9.0
203
+ * @param param 接口参数 @see QChatGetMentionedMeMessagesParam
204
+ */
205
+ getMentionedMeMessages(param) {
206
+ const p = new Promise((resolve) => {
207
+ param.cb = (resp) => {
208
+ resolve(resp);
209
+ };
210
+ this.instance.GetMentionedMeMessages(param);
211
+ });
212
+ return p;
213
+ }
214
+ /** @fn areMentionedMeMessages(param: QChatAreMentionedMeMessagesParam)
215
+ * @brief 查询指定消息中是否有 @ 当前用户的消息
216
+ * @since v9.9.0
217
+ * @param param 接口参数 @see QChatAreMentionedMeMessagesParam
218
+ */
219
+ areMentionedMeMessages(param) {
220
+ const p = new Promise((resolve) => {
221
+ param.cb = (resp) => {
222
+ resolve(resp);
223
+ };
224
+ this.instance.AreMentionedMeMessages(param);
225
+ });
226
+ return p;
227
+ }
228
+ /** @fn addQuickComment(param: QChatAddQuickCommentParam)
229
+ * @brief 对指定消息添加快捷评论
230
+ * @since v9.1.0
231
+ * @param param 接口参数 @see QChatAddQuickCommentParam
232
+ */
233
+ addQuickComment(param) {
234
+ const p = new Promise((resolve) => {
235
+ param.cb = (resp) => {
236
+ resolve(resp);
237
+ };
238
+ this.instance.AddQuickComment(param);
239
+ });
240
+ return p;
241
+ }
242
+ /** @fn removeQuickComment(param: QChatRemoveQuickCommentParam)
243
+ * @brief 从某个消息上移除快捷评论
244
+ * @since v9.1.0
245
+ * @param param 接口参数 @see QChatRemoveQuickComm entParam
246
+ */
247
+ removeQuickComment(param) {
248
+ const p = new Promise((resolve) => {
249
+ param.cb = (resp) => {
250
+ resolve(resp);
251
+ };
252
+ this.instance.RemoveQuickComment(param);
253
+ });
254
+ return p;
255
+ }
256
+ /** @fn getQuickComments(param: QChatGetQuickCommentsParam)
257
+ * @brief 获取指定消息包含的快捷评论列表
258
+ * @since v9.1.0
259
+ * @param param 接口参数 @see QChatGetQuickCommentsParam
260
+ */
261
+ getQuickComments(param) {
262
+ const p = new Promise((resolve) => {
263
+ param.cb = (resp) => {
264
+ resolve(resp);
265
+ };
266
+ this.instance.GetQuickComments(param);
267
+ });
268
+ return p;
269
+ }
270
+ /** @fn searchMsgByPage(param: QChatMessageSearchPageParam)
271
+ * @brief 分页搜索消息
272
+ * @since v9.4.0
273
+ * @param param 接口参数 @see QChatSearchMsgByPageParam
274
+ */
275
+ searchMsgByPage(param) {
276
+ const p = new Promise((resolve) => {
277
+ param.cb = (resp) => {
278
+ resolve(resp);
279
+ };
280
+ this.instance.SearchMsgByPage(param);
281
+ });
282
+ return p;
283
+ }
284
+ }
285
+ exports.QChatMessageModule = QChatMessageModule;
286
286
  //# sourceMappingURL=message.js.map