node-nim 9.14.3 → 9.15.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.
Files changed (129) 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 +707 -687
  9. package/dist/nim/msglog.js.map +1 -1
  10. package/dist/nim/nos.js +180 -180
  11. package/dist/nim/online_session.js +85 -85
  12. package/dist/nim/pass_through_proxy.js +39 -39
  13. package/dist/nim/plugin.js +65 -65
  14. package/dist/nim/session.js +392 -392
  15. package/dist/nim/subscribe_event.js +142 -142
  16. package/dist/nim/super_team.js +651 -615
  17. package/dist/nim/super_team.js.map +1 -1
  18. package/dist/nim/sysmsg.js +194 -194
  19. package/dist/nim/talk.js +209 -209
  20. package/dist/nim/talkex.js +191 -191
  21. package/dist/nim/team.js +866 -830
  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 -71
  38. package/dist/nim_def/sysmsg_def.js +28 -28
  39. package/dist/nim_def/talk_def.js +2 -2
  40. package/dist/nim_def/talkex_def.js +2 -2
  41. package/dist/nim_def/team_def.js +76 -76
  42. package/dist/nim_def/tool_def.js +11 -11
  43. package/dist/nim_def/user_def.js +22 -22
  44. package/dist/node-nim.js +171 -171
  45. package/dist/qchat/attachment.js +63 -63
  46. package/dist/qchat/channel.js +314 -314
  47. package/dist/qchat/channel_category.js +187 -187
  48. package/dist/qchat/instance.js +77 -77
  49. package/dist/qchat/message.js +324 -285
  50. package/dist/qchat/message.js.map +1 -1
  51. package/dist/qchat/role.js +423 -423
  52. package/dist/qchat/server.js +453 -453
  53. package/dist/qchat/system_notification.js +74 -74
  54. package/dist/qchat_def/attachment_def.js +2 -2
  55. package/dist/qchat_def/channel_def.js +2 -2
  56. package/dist/qchat_def/instance_def.js +2 -2
  57. package/dist/qchat_def/message_def.js +2 -2
  58. package/dist/qchat_def/public_def.js +649 -649
  59. package/dist/qchat_def/role_def.js +2 -2
  60. package/dist/qchat_def/server_def.js +2 -2
  61. package/dist/qchat_def/system_notification_def.js +2 -2
  62. package/dist/v2/v2_nim_instance.js +43 -43
  63. package/dist/v2/v2_nim_login_service.js +123 -123
  64. package/dist/v2_def/v2_nim_callback_def.js +2 -2
  65. package/dist/v2_def/v2_nim_enum_def.js +325 -325
  66. package/dist/v2_def/v2_nim_struct_def.js +2 -2
  67. package/package.json +4 -1
  68. package/types/chatroom/chatroom.d.ts +55 -55
  69. package/types/chatroom_def/chatroom_def.d.ts +448 -448
  70. package/types/loader.d.ts +2 -2
  71. package/types/nim/client.d.ts +123 -123
  72. package/types/nim/data_sync.d.ts +12 -12
  73. package/types/nim/friend.d.ts +82 -82
  74. package/types/nim/global.d.ts +69 -69
  75. package/types/nim/msglog.d.ts +403 -392
  76. package/types/nim/nos.d.ts +118 -118
  77. package/types/nim/online_session.d.ts +44 -44
  78. package/types/nim/pass_through_proxy.d.ts +24 -24
  79. package/types/nim/plugin.d.ts +39 -39
  80. package/types/nim/session.d.ts +212 -212
  81. package/types/nim/subscribe_event.d.ts +87 -87
  82. package/types/nim/super_team.d.ts +356 -342
  83. package/types/nim/sysmsg.d.ts +105 -105
  84. package/types/nim/talk.d.ts +94 -94
  85. package/types/nim/talkex.d.ts +95 -95
  86. package/types/nim/team.d.ts +481 -467
  87. package/types/nim/tool.d.ts +77 -77
  88. package/types/nim/user.d.ts +111 -111
  89. package/types/nim_def/client_def.d.ts +284 -284
  90. package/types/nim_def/data_sync_def.d.ts +19 -19
  91. package/types/nim_def/doc_trans_def.d.ts +11 -11
  92. package/types/nim_def/friend_def.d.ts +65 -65
  93. package/types/nim_def/global_def.d.ts +62 -62
  94. package/types/nim_def/msglog_def.d.ts +374 -373
  95. package/types/nim_def/nos_def.d.ts +72 -72
  96. package/types/nim_def/online_session_def.d.ts +34 -34
  97. package/types/nim_def/pass_through_proxy_def.d.ts +13 -13
  98. package/types/nim_def/plugin_def.d.ts +8 -8
  99. package/types/nim_def/session_def.d.ts +114 -114
  100. package/types/nim_def/subscribe_event_def.d.ts +83 -83
  101. package/types/nim_def/super_team_def.d.ts +165 -163
  102. package/types/nim_def/sysmsg_def.d.ts +70 -70
  103. package/types/nim_def/talk_def.d.ts +96 -96
  104. package/types/nim_def/talkex_def.d.ts +112 -112
  105. package/types/nim_def/team_def.d.ts +186 -184
  106. package/types/nim_def/tool_def.d.ts +28 -28
  107. package/types/nim_def/user_def.d.ts +59 -59
  108. package/types/node-nim.d.ts +93 -93
  109. package/types/qchat/attachment.d.ts +40 -40
  110. package/types/qchat/channel.d.ts +139 -139
  111. package/types/qchat/channel_category.d.ts +82 -82
  112. package/types/qchat/instance.d.ts +46 -46
  113. package/types/qchat/message.d.ts +143 -128
  114. package/types/qchat/role.d.ts +166 -166
  115. package/types/qchat/server.d.ts +198 -198
  116. package/types/qchat/system_notification.d.ts +39 -39
  117. package/types/qchat_def/attachment_def.d.ts +71 -71
  118. package/types/qchat_def/channel_def.d.ts +643 -643
  119. package/types/qchat_def/instance_def.d.ts +214 -214
  120. package/types/qchat_def/message_def.d.ts +601 -565
  121. package/types/qchat_def/public_def.d.ts +754 -754
  122. package/types/qchat_def/role_def.d.ts +413 -413
  123. package/types/qchat_def/server_def.d.ts +529 -529
  124. package/types/qchat_def/system_notification_def.d.ts +172 -172
  125. package/types/v2/v2_nim_instance.d.ts +25 -25
  126. package/types/v2/v2_nim_login_service.d.ts +96 -96
  127. package/types/v2_def/v2_nim_callback_def.d.ts +20 -20
  128. package/types/v2_def/v2_nim_enum_def.d.ts +300 -300
  129. package/types/v2_def/v2_nim_struct_def.d.ts +338 -338
@@ -1,315 +1,315 @@
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.QChatChannelModule = void 0;
7
- const loader_1 = __importDefault(require("../loader"));
8
- const eventemitter3_1 = require("eventemitter3");
9
- class QChatChannelModule extends eventemitter3_1.EventEmitter {
10
- constructor() {
11
- super();
12
- this.instance = new loader_1.default.QChatChannel({ emit: this.emit.bind(this) });
13
- }
14
- /** 注册全局回调 */
15
- initEventHandlers() {
16
- return this.instance.InitEventHandlers();
17
- }
18
- /** @fn createChannel(param: QChatChannelCreateParam)
19
- * 创建频道
20
- * @param[in] param 接口参数
21
- * @return void
22
- */
23
- createChannel(param) {
24
- const p = new Promise((resolve) => {
25
- param.cb = (resp) => {
26
- resolve(resp);
27
- };
28
- this.instance.CreateChannel(param);
29
- });
30
- return p;
31
- }
32
- /** @fn deleteChannel(param: QChatChannelDeleteParam)
33
- * 删除频道
34
- * @param[in] param 接口参数
35
- * @return void
36
- */
37
- deleteChannel(param) {
38
- const p = new Promise((resolve) => {
39
- param.cb = (resp) => {
40
- resolve(resp);
41
- };
42
- this.instance.DeleteChannel(param);
43
- });
44
- return p;
45
- }
46
- /** @fn updateChannel(param: QChatChannelUpdateParam)
47
- * 更新频道
48
- * @param[in] param 接口参数
49
- * @return void
50
- */
51
- updateChannel(param) {
52
- const p = new Promise((resolve) => {
53
- param.cb = (resp) => {
54
- resolve(resp);
55
- };
56
- this.instance.UpdateChannel(param);
57
- });
58
- return p;
59
- }
60
- /** @fn updateCategoryInfo(param: QChatChannelUpdateCategoryInfoParam)
61
- * 更新频道的分组信息
62
- * @param[in] param 接口参数
63
- * @return void
64
- */
65
- updateCategoryInfo(param) {
66
- const p = new Promise((resolve) => {
67
- param.cb = (resp) => {
68
- resolve(resp);
69
- };
70
- this.instance.UpdateCategoryInfo(param);
71
- });
72
- return p;
73
- }
74
- /** @fn subscribe(param: QChatChannelSubscribeParam)
75
- * 订阅频道未读状态、未读数或未读消息、事件
76
- * @param[in] param 接口参数
77
- * @return void
78
- */
79
- subscribe(param) {
80
- const p = new Promise((resolve) => {
81
- param.cb = (resp) => {
82
- resolve(resp);
83
- };
84
- this.instance.Subscribe(param);
85
- });
86
- return p;
87
- }
88
- /** @fn subscribeAsVisitor(param: QChatChannelSubscribeAsVisitorParam)
89
- * 以游客模式订阅频道未读状态、未读数或未读消息、事件
90
- * @param[in] param 接口参数
91
- * @return void
92
- */
93
- subscribeAsVisitor(param) {
94
- const p = new Promise((resolve) => {
95
- param.cb = (resp) => {
96
- resolve(resp);
97
- };
98
- this.instance.SubscribeAsVisitor(param);
99
- });
100
- return p;
101
- }
102
- /** @fn queryUnreadInfo(param: QChatChannelQueryUnreadInfoParam)
103
- * 查询消息未读数
104
- * @param[in] param 接口参数
105
- * @return void
106
- */
107
- queryUnreadInfo(param) {
108
- const p = new Promise((resolve) => {
109
- param.cb = (resp) => {
110
- resolve(resp);
111
- };
112
- this.instance.QueryUnreadInfo(param);
113
- });
114
- return p;
115
- }
116
- /** @fn getChannels(param: QChatChannelGetChannelsParam)
117
- * 查询频道列表
118
- * @param[in] param 接口参数
119
- * @return void
120
- */
121
- getChannels(param) {
122
- const p = new Promise((resolve) => {
123
- param.cb = (resp) => {
124
- resolve(resp);
125
- };
126
- this.instance.GetChannels(param);
127
- });
128
- return p;
129
- }
130
- /** @fn getChannelsByPage(param: QChatChannelGetChannelsPageParam)
131
- * 查询频道列表(分页)
132
- * @param[in] param 接口参数
133
- * @return void
134
- */
135
- getChannelsByPage(param) {
136
- const p = new Promise((resolve) => {
137
- param.cb = (resp) => {
138
- resolve(resp);
139
- };
140
- this.instance.GetChannelsByPage(param);
141
- });
142
- return p;
143
- }
144
- /** @fn getMembersByPage(param: QChatChannelGetMembersPageParam)
145
- * 查询频道用户列表(分页),与查询服务器成员不同,查询频道成员指可以查看该频道的成员信息,取决于频道的白/黑名单设置
146
- * 私有频道设置的白名单用户为该频道下的成员,公共频道除了黑名单中的成员均可以访问该频道
147
- * @param[in] param 接口参数
148
- * @return void
149
- */
150
- getMembersByPage(param) {
151
- const p = new Promise((resolve) => {
152
- param.cb = (resp) => {
153
- resolve(resp);
154
- };
155
- this.instance.GetMembersByPage(param);
156
- });
157
- return p;
158
- }
159
- /** @fn updateWhiteBlackRole(param: QChatChannelUpdateWhiteBlackRoleParam)
160
- * 更新频道白/黑名单身份组,公开频道:黑名单,私有频道:白名单
161
- * @param[in] param 接口参数
162
- * @return void
163
- */
164
- updateWhiteBlackRole(param) {
165
- const p = new Promise((resolve) => {
166
- param.cb = (resp) => {
167
- resolve(resp);
168
- };
169
- this.instance.UpdateWhiteBlackRole(param);
170
- });
171
- return p;
172
- }
173
- /** @fn updateWhiteBlackMembers(param: QChatChannelUpdateWhiteBlackMembersParam)
174
- * 更新频道白/黑名单成员,公开频道:黑名单,私有频道:白名单
175
- * @param[in] param 接口参数
176
- * @return void
177
- */
178
- updateWhiteBlackMembers(param) {
179
- const p = new Promise((resolve) => {
180
- param.cb = (resp) => {
181
- resolve(resp);
182
- };
183
- this.instance.UpdateWhiteBlackMembers(param);
184
- });
185
- return p;
186
- }
187
- /** @fn getWhiteBlackRolesPage(param: QChatChannelGetWhiteBlackRolesPageParam)
188
- * 查询频道白/黑名单身份组列表(分页)
189
- * @param[in] param 接口参数
190
- * @return void
191
- */
192
- getWhiteBlackRolesPage(param) {
193
- const p = new Promise((resolve) => {
194
- param.cb = (resp) => {
195
- resolve(resp);
196
- };
197
- this.instance.GetWhiteBlackRolesPage(param);
198
- });
199
- return p;
200
- }
201
- /** @fn getWhiteBlackMembersPage(param: QChatChannelGetWhiteBlackMembersPageParam)
202
- * 查询频道白/黑名单成员列表(分页)
203
- * @param[in] param 接口参数
204
- * @return void
205
- */
206
- getWhiteBlackMembersPage(param) {
207
- const p = new Promise((resolve) => {
208
- param.cb = (resp) => {
209
- resolve(resp);
210
- };
211
- this.instance.GetWhiteBlackMembersPage(param);
212
- });
213
- return p;
214
- }
215
- /** @fn getExistingWhiteBlackRoles(param: QChatChannelGetExistingWhiteBlackRolesParam)
216
- * 根据身份组ID查询已存在的白/黑名单身份组
217
- * @param[in] param 接口参数
218
- * @return void
219
- */
220
- getExistingWhiteBlackRoles(param) {
221
- const p = new Promise((resolve) => {
222
- param.cb = (resp) => {
223
- resolve(resp);
224
- };
225
- this.instance.GetExistingWhiteBlackRoles(param);
226
- });
227
- return p;
228
- }
229
- /** @fn getExistingWhiteBlackMembers(param: QChatChannelGetExistingWhiteBlackMembersParam)
230
- * 根据成员ID查询已存在的白/黑名单成员
231
- * @param[in] param 接口参数
232
- * @return void
233
- */
234
- getExistingWhiteBlackMembers(param) {
235
- const p = new Promise((resolve) => {
236
- param.cb = (resp) => {
237
- resolve(resp);
238
- };
239
- this.instance.GetExistingWhiteBlackMembers(param);
240
- });
241
- return p;
242
- }
243
- /** @fn channelSearchByPage(param: QChatChannelSearchByPageParam)
244
- * 根据关键字搜索频道列表(分页)
245
- * @param[in] param 接口参数
246
- * @return void
247
- */
248
- channelSearchByPage(param) {
249
- const p = new Promise((resolve) => {
250
- param.cb = (resp) => {
251
- resolve(resp);
252
- };
253
- this.instance.ChannelSearchByPage(param);
254
- });
255
- return p;
256
- }
257
- /** @fn channelMemberSearch(param: QChatChannelMemberSearchParam)
258
- * 根据关键字搜索频道成员列表
259
- * @param[in] param 接口参数
260
- * @return void
261
- */
262
- channelMemberSearch(param) {
263
- const p = new Promise((resolve) => {
264
- param.cb = (resp) => {
265
- resolve(resp);
266
- };
267
- this.instance.ChannelMemberSearch(param);
268
- });
269
- return p;
270
- }
271
- /** @fn updateRTCInfo(param: QChatChannelUpdateRTCInfoParam)
272
- * 更新频道RTC信息
273
- * @param[in] param 接口参数
274
- * @return void
275
- */
276
- updateRTCInfo(param) {
277
- const p = new Promise((resolve) => {
278
- param.cb = (resp) => {
279
- resolve(resp);
280
- };
281
- this.instance.UpdateRTCInfo(param);
282
- });
283
- return p;
284
- }
285
- /** @fn getRTCInfo(param: QChatChannelGetRTCInfoParam)
286
- * 查询频道RTC信息
287
- * @param[in] param 接口参数
288
- * @return void
289
- */
290
- getRTCInfo(param) {
291
- const p = new Promise((resolve) => {
292
- param.cb = (resp) => {
293
- resolve(resp);
294
- };
295
- this.instance.GetRTCInfo(param);
296
- });
297
- return p;
298
- }
299
- /** @fn getRTCOnlineMembers(param: QChatChannelGetRTCOnlineMembersParam)
300
- * 查询频道RTC在线成员列表
301
- * @param[in] param 接口参数
302
- * @return void
303
- */
304
- getRTCOnlineMembers(param) {
305
- const p = new Promise((resolve) => {
306
- param.cb = (resp) => {
307
- resolve(resp);
308
- };
309
- this.instance.GetRTCOnlineMembers(param);
310
- });
311
- return p;
312
- }
313
- }
314
- exports.QChatChannelModule = QChatChannelModule;
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.QChatChannelModule = void 0;
7
+ const loader_1 = __importDefault(require("../loader"));
8
+ const eventemitter3_1 = require("eventemitter3");
9
+ class QChatChannelModule extends eventemitter3_1.EventEmitter {
10
+ constructor() {
11
+ super();
12
+ this.instance = new loader_1.default.QChatChannel({ emit: this.emit.bind(this) });
13
+ }
14
+ /** 注册全局回调 */
15
+ initEventHandlers() {
16
+ return this.instance.InitEventHandlers();
17
+ }
18
+ /** @fn createChannel(param: QChatChannelCreateParam)
19
+ * 创建频道
20
+ * @param[in] param 接口参数
21
+ * @return void
22
+ */
23
+ createChannel(param) {
24
+ const p = new Promise((resolve) => {
25
+ param.cb = (resp) => {
26
+ resolve(resp);
27
+ };
28
+ this.instance.CreateChannel(param);
29
+ });
30
+ return p;
31
+ }
32
+ /** @fn deleteChannel(param: QChatChannelDeleteParam)
33
+ * 删除频道
34
+ * @param[in] param 接口参数
35
+ * @return void
36
+ */
37
+ deleteChannel(param) {
38
+ const p = new Promise((resolve) => {
39
+ param.cb = (resp) => {
40
+ resolve(resp);
41
+ };
42
+ this.instance.DeleteChannel(param);
43
+ });
44
+ return p;
45
+ }
46
+ /** @fn updateChannel(param: QChatChannelUpdateParam)
47
+ * 更新频道
48
+ * @param[in] param 接口参数
49
+ * @return void
50
+ */
51
+ updateChannel(param) {
52
+ const p = new Promise((resolve) => {
53
+ param.cb = (resp) => {
54
+ resolve(resp);
55
+ };
56
+ this.instance.UpdateChannel(param);
57
+ });
58
+ return p;
59
+ }
60
+ /** @fn updateCategoryInfo(param: QChatChannelUpdateCategoryInfoParam)
61
+ * 更新频道的分组信息
62
+ * @param[in] param 接口参数
63
+ * @return void
64
+ */
65
+ updateCategoryInfo(param) {
66
+ const p = new Promise((resolve) => {
67
+ param.cb = (resp) => {
68
+ resolve(resp);
69
+ };
70
+ this.instance.UpdateCategoryInfo(param);
71
+ });
72
+ return p;
73
+ }
74
+ /** @fn subscribe(param: QChatChannelSubscribeParam)
75
+ * 订阅频道未读状态、未读数或未读消息、事件
76
+ * @param[in] param 接口参数
77
+ * @return void
78
+ */
79
+ subscribe(param) {
80
+ const p = new Promise((resolve) => {
81
+ param.cb = (resp) => {
82
+ resolve(resp);
83
+ };
84
+ this.instance.Subscribe(param);
85
+ });
86
+ return p;
87
+ }
88
+ /** @fn subscribeAsVisitor(param: QChatChannelSubscribeAsVisitorParam)
89
+ * 以游客模式订阅频道未读状态、未读数或未读消息、事件
90
+ * @param[in] param 接口参数
91
+ * @return void
92
+ */
93
+ subscribeAsVisitor(param) {
94
+ const p = new Promise((resolve) => {
95
+ param.cb = (resp) => {
96
+ resolve(resp);
97
+ };
98
+ this.instance.SubscribeAsVisitor(param);
99
+ });
100
+ return p;
101
+ }
102
+ /** @fn queryUnreadInfo(param: QChatChannelQueryUnreadInfoParam)
103
+ * 查询消息未读数
104
+ * @param[in] param 接口参数
105
+ * @return void
106
+ */
107
+ queryUnreadInfo(param) {
108
+ const p = new Promise((resolve) => {
109
+ param.cb = (resp) => {
110
+ resolve(resp);
111
+ };
112
+ this.instance.QueryUnreadInfo(param);
113
+ });
114
+ return p;
115
+ }
116
+ /** @fn getChannels(param: QChatChannelGetChannelsParam)
117
+ * 查询频道列表
118
+ * @param[in] param 接口参数
119
+ * @return void
120
+ */
121
+ getChannels(param) {
122
+ const p = new Promise((resolve) => {
123
+ param.cb = (resp) => {
124
+ resolve(resp);
125
+ };
126
+ this.instance.GetChannels(param);
127
+ });
128
+ return p;
129
+ }
130
+ /** @fn getChannelsByPage(param: QChatChannelGetChannelsPageParam)
131
+ * 查询频道列表(分页)
132
+ * @param[in] param 接口参数
133
+ * @return void
134
+ */
135
+ getChannelsByPage(param) {
136
+ const p = new Promise((resolve) => {
137
+ param.cb = (resp) => {
138
+ resolve(resp);
139
+ };
140
+ this.instance.GetChannelsByPage(param);
141
+ });
142
+ return p;
143
+ }
144
+ /** @fn getMembersByPage(param: QChatChannelGetMembersPageParam)
145
+ * 查询频道用户列表(分页),与查询服务器成员不同,查询频道成员指可以查看该频道的成员信息,取决于频道的白/黑名单设置
146
+ * 私有频道设置的白名单用户为该频道下的成员,公共频道除了黑名单中的成员均可以访问该频道
147
+ * @param[in] param 接口参数
148
+ * @return void
149
+ */
150
+ getMembersByPage(param) {
151
+ const p = new Promise((resolve) => {
152
+ param.cb = (resp) => {
153
+ resolve(resp);
154
+ };
155
+ this.instance.GetMembersByPage(param);
156
+ });
157
+ return p;
158
+ }
159
+ /** @fn updateWhiteBlackRole(param: QChatChannelUpdateWhiteBlackRoleParam)
160
+ * 更新频道白/黑名单身份组,公开频道:黑名单,私有频道:白名单
161
+ * @param[in] param 接口参数
162
+ * @return void
163
+ */
164
+ updateWhiteBlackRole(param) {
165
+ const p = new Promise((resolve) => {
166
+ param.cb = (resp) => {
167
+ resolve(resp);
168
+ };
169
+ this.instance.UpdateWhiteBlackRole(param);
170
+ });
171
+ return p;
172
+ }
173
+ /** @fn updateWhiteBlackMembers(param: QChatChannelUpdateWhiteBlackMembersParam)
174
+ * 更新频道白/黑名单成员,公开频道:黑名单,私有频道:白名单
175
+ * @param[in] param 接口参数
176
+ * @return void
177
+ */
178
+ updateWhiteBlackMembers(param) {
179
+ const p = new Promise((resolve) => {
180
+ param.cb = (resp) => {
181
+ resolve(resp);
182
+ };
183
+ this.instance.UpdateWhiteBlackMembers(param);
184
+ });
185
+ return p;
186
+ }
187
+ /** @fn getWhiteBlackRolesPage(param: QChatChannelGetWhiteBlackRolesPageParam)
188
+ * 查询频道白/黑名单身份组列表(分页)
189
+ * @param[in] param 接口参数
190
+ * @return void
191
+ */
192
+ getWhiteBlackRolesPage(param) {
193
+ const p = new Promise((resolve) => {
194
+ param.cb = (resp) => {
195
+ resolve(resp);
196
+ };
197
+ this.instance.GetWhiteBlackRolesPage(param);
198
+ });
199
+ return p;
200
+ }
201
+ /** @fn getWhiteBlackMembersPage(param: QChatChannelGetWhiteBlackMembersPageParam)
202
+ * 查询频道白/黑名单成员列表(分页)
203
+ * @param[in] param 接口参数
204
+ * @return void
205
+ */
206
+ getWhiteBlackMembersPage(param) {
207
+ const p = new Promise((resolve) => {
208
+ param.cb = (resp) => {
209
+ resolve(resp);
210
+ };
211
+ this.instance.GetWhiteBlackMembersPage(param);
212
+ });
213
+ return p;
214
+ }
215
+ /** @fn getExistingWhiteBlackRoles(param: QChatChannelGetExistingWhiteBlackRolesParam)
216
+ * 根据身份组ID查询已存在的白/黑名单身份组
217
+ * @param[in] param 接口参数
218
+ * @return void
219
+ */
220
+ getExistingWhiteBlackRoles(param) {
221
+ const p = new Promise((resolve) => {
222
+ param.cb = (resp) => {
223
+ resolve(resp);
224
+ };
225
+ this.instance.GetExistingWhiteBlackRoles(param);
226
+ });
227
+ return p;
228
+ }
229
+ /** @fn getExistingWhiteBlackMembers(param: QChatChannelGetExistingWhiteBlackMembersParam)
230
+ * 根据成员ID查询已存在的白/黑名单成员
231
+ * @param[in] param 接口参数
232
+ * @return void
233
+ */
234
+ getExistingWhiteBlackMembers(param) {
235
+ const p = new Promise((resolve) => {
236
+ param.cb = (resp) => {
237
+ resolve(resp);
238
+ };
239
+ this.instance.GetExistingWhiteBlackMembers(param);
240
+ });
241
+ return p;
242
+ }
243
+ /** @fn channelSearchByPage(param: QChatChannelSearchByPageParam)
244
+ * 根据关键字搜索频道列表(分页)
245
+ * @param[in] param 接口参数
246
+ * @return void
247
+ */
248
+ channelSearchByPage(param) {
249
+ const p = new Promise((resolve) => {
250
+ param.cb = (resp) => {
251
+ resolve(resp);
252
+ };
253
+ this.instance.ChannelSearchByPage(param);
254
+ });
255
+ return p;
256
+ }
257
+ /** @fn channelMemberSearch(param: QChatChannelMemberSearchParam)
258
+ * 根据关键字搜索频道成员列表
259
+ * @param[in] param 接口参数
260
+ * @return void
261
+ */
262
+ channelMemberSearch(param) {
263
+ const p = new Promise((resolve) => {
264
+ param.cb = (resp) => {
265
+ resolve(resp);
266
+ };
267
+ this.instance.ChannelMemberSearch(param);
268
+ });
269
+ return p;
270
+ }
271
+ /** @fn updateRTCInfo(param: QChatChannelUpdateRTCInfoParam)
272
+ * 更新频道RTC信息
273
+ * @param[in] param 接口参数
274
+ * @return void
275
+ */
276
+ updateRTCInfo(param) {
277
+ const p = new Promise((resolve) => {
278
+ param.cb = (resp) => {
279
+ resolve(resp);
280
+ };
281
+ this.instance.UpdateRTCInfo(param);
282
+ });
283
+ return p;
284
+ }
285
+ /** @fn getRTCInfo(param: QChatChannelGetRTCInfoParam)
286
+ * 查询频道RTC信息
287
+ * @param[in] param 接口参数
288
+ * @return void
289
+ */
290
+ getRTCInfo(param) {
291
+ const p = new Promise((resolve) => {
292
+ param.cb = (resp) => {
293
+ resolve(resp);
294
+ };
295
+ this.instance.GetRTCInfo(param);
296
+ });
297
+ return p;
298
+ }
299
+ /** @fn getRTCOnlineMembers(param: QChatChannelGetRTCOnlineMembersParam)
300
+ * 查询频道RTC在线成员列表
301
+ * @param[in] param 接口参数
302
+ * @return void
303
+ */
304
+ getRTCOnlineMembers(param) {
305
+ const p = new Promise((resolve) => {
306
+ param.cb = (resp) => {
307
+ resolve(resp);
308
+ };
309
+ this.instance.GetRTCOnlineMembers(param);
310
+ });
311
+ return p;
312
+ }
313
+ }
314
+ exports.QChatChannelModule = QChatChannelModule;
315
315
  //# sourceMappingURL=channel.js.map