node-nim 9.14.2 → 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.
Files changed (179) hide show
  1. package/README.md +7 -1
  2. package/dist/loader.js +35 -35
  3. package/dist/nim/client.js +184 -184
  4. package/dist/nim/client.js.map +1 -1
  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 +216 -180
  10. package/dist/nim/nos.js.map +1 -1
  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 +592 -592
  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 +818 -818
  22. package/dist/nim/tool.js +119 -119
  23. package/dist/nim/user.js +201 -201
  24. package/dist/nim_def/client_def.js +245 -245
  25. package/dist/nim_def/client_def.js.map +1 -1
  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 +64 -64
  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 +69 -69
  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/node-nim.js.map +1 -1
  46. package/dist/qchat/attachment.js +63 -63
  47. package/dist/qchat/channel.js +314 -314
  48. package/dist/qchat/channel_category.js +187 -187
  49. package/dist/qchat/instance.js +77 -77
  50. package/dist/qchat/message.js +285 -285
  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/public_def.js.map +1 -1
  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_chatroom_client.js +135 -0
  64. package/dist/v2/v2_nim_chatroom_client.js.map +1 -0
  65. package/dist/v2/v2_nim_chatroom_service.js +244 -0
  66. package/dist/v2/v2_nim_chatroom_service.js.map +1 -0
  67. package/dist/v2/v2_nim_client.js +138 -0
  68. package/dist/v2/v2_nim_client.js.map +1 -0
  69. package/dist/v2/v2_nim_conversation_group_service.js +116 -0
  70. package/dist/v2/v2_nim_conversation_group_service.js.map +1 -0
  71. package/dist/v2/v2_nim_conversation_service.js +236 -0
  72. package/dist/v2/v2_nim_conversation_service.js.map +1 -0
  73. package/dist/v2/v2_nim_friend_service.js +128 -0
  74. package/dist/v2/v2_nim_friend_service.js.map +1 -0
  75. package/dist/v2/v2_nim_login_service.js +119 -123
  76. package/dist/v2/v2_nim_login_service.js.map +1 -1
  77. package/dist/v2/v2_nim_message_service.js +382 -0
  78. package/dist/v2/v2_nim_message_service.js.map +1 -0
  79. package/dist/v2/v2_nim_notification_service.js +30 -0
  80. package/dist/v2/v2_nim_notification_service.js.map +1 -0
  81. package/dist/v2/v2_nim_setting_service.js +86 -0
  82. package/dist/v2/v2_nim_setting_service.js.map +1 -0
  83. package/dist/v2/v2_nim_storage_service.js +58 -0
  84. package/dist/v2/v2_nim_storage_service.js.map +1 -0
  85. package/dist/v2/v2_nim_team_service.js +360 -0
  86. package/dist/v2/v2_nim_team_service.js.map +1 -0
  87. package/dist/v2/v2_nim_user_service.js +76 -0
  88. package/dist/v2/v2_nim_user_service.js.map +1 -0
  89. package/dist/v2/v2_nim_utilities.js +276 -0
  90. package/dist/v2/v2_nim_utilities.js.map +1 -0
  91. package/dist/v2_def/v2_nim_callback_def.js +2 -2
  92. package/dist/v2_def/v2_nim_enum_def.js +1087 -325
  93. package/dist/v2_def/v2_nim_enum_def.js.map +1 -1
  94. package/dist/v2_def/v2_nim_struct_def.js +2 -2
  95. package/package.json +74 -74
  96. package/script/download-sdk.js +78 -78
  97. package/script/exec-node-nim-tester.js +17 -17
  98. package/script/publish-to-netease-npm.js +3 -2
  99. package/types/loader.d.ts +2 -2
  100. package/types/nim/client.d.ts +123 -123
  101. package/types/nim/data_sync.d.ts +12 -12
  102. package/types/nim/friend.d.ts +82 -82
  103. package/types/nim/global.d.ts +69 -69
  104. package/types/nim/msglog.d.ts +392 -392
  105. package/types/nim/nos.d.ts +118 -118
  106. package/types/nim/online_session.d.ts +44 -44
  107. package/types/nim/pass_through_proxy.d.ts +24 -24
  108. package/types/nim/plugin.d.ts +39 -39
  109. package/types/nim/session.d.ts +212 -212
  110. package/types/nim/subscribe_event.d.ts +87 -87
  111. package/types/nim/super_team.d.ts +331 -331
  112. package/types/nim/sysmsg.d.ts +105 -105
  113. package/types/nim/talk.d.ts +94 -94
  114. package/types/nim/talkex.d.ts +95 -95
  115. package/types/nim/team.d.ts +461 -461
  116. package/types/nim/tool.d.ts +77 -77
  117. package/types/nim/user.d.ts +111 -111
  118. package/types/nim_def/client_def.d.ts +284 -284
  119. package/types/nim_def/data_sync_def.d.ts +19 -19
  120. package/types/nim_def/doc_trans_def.d.ts +11 -11
  121. package/types/nim_def/friend_def.d.ts +65 -65
  122. package/types/nim_def/global_def.d.ts +62 -62
  123. package/types/nim_def/msglog_def.d.ts +373 -373
  124. package/types/nim_def/nos_def.d.ts +72 -72
  125. package/types/nim_def/online_session_def.d.ts +34 -34
  126. package/types/nim_def/pass_through_proxy_def.d.ts +13 -13
  127. package/types/nim_def/plugin_def.d.ts +8 -8
  128. package/types/nim_def/session_def.d.ts +114 -114
  129. package/types/nim_def/subscribe_event_def.d.ts +83 -83
  130. package/types/nim_def/super_team_def.d.ts +144 -137
  131. package/types/nim_def/sysmsg_def.d.ts +70 -70
  132. package/types/nim_def/talk_def.d.ts +96 -96
  133. package/types/nim_def/talkex_def.d.ts +112 -112
  134. package/types/nim_def/team_def.d.ts +167 -167
  135. package/types/nim_def/tool_def.d.ts +28 -28
  136. package/types/nim_def/user_def.d.ts +59 -59
  137. package/types/node-nim.d.ts +90 -93
  138. package/types/qchat/attachment.d.ts +40 -40
  139. package/types/qchat/channel.d.ts +139 -139
  140. package/types/qchat/channel_category.d.ts +82 -82
  141. package/types/qchat/instance.d.ts +46 -46
  142. package/types/qchat/message.d.ts +128 -128
  143. package/types/qchat/role.d.ts +166 -166
  144. package/types/qchat/server.d.ts +198 -198
  145. package/types/qchat/system_notification.d.ts +39 -39
  146. package/types/qchat_def/attachment_def.d.ts +71 -71
  147. package/types/qchat_def/channel_def.d.ts +643 -643
  148. package/types/qchat_def/instance_def.d.ts +214 -214
  149. package/types/qchat_def/message_def.d.ts +565 -565
  150. package/types/qchat_def/public_def.d.ts +754 -754
  151. package/types/qchat_def/role_def.d.ts +413 -413
  152. package/types/qchat_def/server_def.d.ts +529 -529
  153. package/types/qchat_def/system_notification_def.d.ts +172 -172
  154. package/types/v2/v2_nim_chatroom_client.d.ts +73 -0
  155. package/types/v2/v2_nim_chatroom_service.d.ts +114 -0
  156. package/types/v2/v2_nim_client.d.ts +75 -0
  157. package/types/v2/v2_nim_conversation_group_service.d.ts +54 -0
  158. package/types/v2/v2_nim_conversation_service.d.ts +110 -0
  159. package/types/v2/v2_nim_friend_service.d.ts +58 -0
  160. package/types/v2/v2_nim_login_service.d.ts +80 -96
  161. package/types/v2/v2_nim_message_service.d.ts +143 -0
  162. package/types/v2/v2_nim_notification_service.d.ts +18 -0
  163. package/types/v2/v2_nim_setting_service.d.ts +43 -0
  164. package/types/v2/v2_nim_storage_service.d.ts +28 -0
  165. package/types/v2/v2_nim_team_service.d.ts +184 -0
  166. package/types/v2/v2_nim_user_service.d.ts +34 -0
  167. package/types/v2/v2_nim_utilities.d.ts +168 -0
  168. package/types/v2_def/v2_nim_callback_def.d.ts +7 -20
  169. package/types/v2_def/v2_nim_enum_def.d.ts +1009 -300
  170. package/types/v2_def/v2_nim_struct_def.d.ts +1539 -338
  171. package/dist/chatroom/chatroom.js +0 -263
  172. package/dist/chatroom/chatroom.js.map +0 -1
  173. package/dist/chatroom_def/chatroom_def.js +0 -120
  174. package/dist/chatroom_def/chatroom_def.js.map +0 -1
  175. package/dist/v2/v2_nim_instance.js +0 -44
  176. package/dist/v2/v2_nim_instance.js.map +0 -1
  177. package/types/chatroom/chatroom.d.ts +0 -55
  178. package/types/chatroom_def/chatroom_def.d.ts +0 -448
  179. package/types/v2/v2_nim_instance.d.ts +0 -25
@@ -1,188 +1,188 @@
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.QChatChannelCategoryModule = void 0;
7
- const loader_1 = __importDefault(require("../loader"));
8
- const eventemitter3_1 = require("eventemitter3");
9
- class QChatChannelCategoryModule extends eventemitter3_1.EventEmitter {
10
- constructor() {
11
- super();
12
- this.instance = new loader_1.default.QChatChannelCategory({ emit: this.emit.bind(this) });
13
- }
14
- /** 注册全局回调 */
15
- initEventHandlers() {
16
- return this.instance.InitEventHandlers();
17
- }
18
- /** @fn createChannelCategory(param: QChatChannelCategoryCreateParam)
19
- * 创建频道分组
20
- * @param[in] param 接口参数
21
- * @return void
22
- */
23
- createChannelCategory(param) {
24
- const p = new Promise((resolve) => {
25
- param.cb = (resp) => {
26
- resolve(resp);
27
- };
28
- this.instance.CreateChannelCategory(param);
29
- });
30
- return p;
31
- }
32
- /** @fn updateChannelCategory(param: QChatChannelCategoryUpdateParam)
33
- * 更新频道分组
34
- * @param[in] param 接口参数
35
- * @return void
36
- */
37
- updateChannelCategory(param) {
38
- const p = new Promise((resolve) => {
39
- param.cb = (resp) => {
40
- resolve(resp);
41
- };
42
- this.instance.UpdateChannelCategory(param);
43
- });
44
- return p;
45
- }
46
- /** @fn removeChannelCategory(param: QChatChannelCategoryRemoveParam)
47
- * 删除频道分组
48
- * @param[in] param 接口参数
49
- * @return void
50
- */
51
- removeChannelCategory(param) {
52
- const p = new Promise((resolve) => {
53
- param.cb = (resp) => {
54
- resolve(resp);
55
- };
56
- this.instance.RemoveChannelCategory(param);
57
- });
58
- return p;
59
- }
60
- /** @fn getChannelCategoriesByID(param: QChatChannelGetCategoriesByIDParam)
61
- * 根据分组ID查询频道分组
62
- * @param[in] param 接口参数
63
- * @return void
64
- */
65
- getChannelCategoriesByID(param) {
66
- const p = new Promise((resolve) => {
67
- param.cb = (resp) => {
68
- resolve(resp);
69
- };
70
- this.instance.GetChannelCategoriesByID(param);
71
- });
72
- return p;
73
- }
74
- /** @fn getChannelCategoriesPage(param: QChatChannelGetCategoriesPageParam)
75
- * 查询频道分组列表(分页)
76
- * @param[in] param 接口参数
77
- * @return void
78
- */
79
- getChannelCategoriesPage(param) {
80
- const p = new Promise((resolve) => {
81
- param.cb = (resp) => {
82
- resolve(resp);
83
- };
84
- this.instance.GetChannelCategoriesPage(param);
85
- });
86
- return p;
87
- }
88
- /** @fn getChannelCategoryChannelsPage(param: QChatChannelGetCategoryChannelsPageParam)
89
- * 查询频道分组下频道列表(分页)
90
- * @param[in] param 接口参数
91
- * @return void
92
- */
93
- getChannelCategoryChannelsPage(param) {
94
- const p = new Promise((resolve) => {
95
- param.cb = (resp) => {
96
- resolve(resp);
97
- };
98
- this.instance.GetChannelCategoryChannelsPage(param);
99
- });
100
- return p;
101
- }
102
- /** @fn updateChannelCategoryWhiteBlackRole(param: QChatChannelCategoryUpdateWhiteBlackRoleParam)
103
- * 更新频道分组白/黑名单身份组
104
- * @param[in] param 接口参数
105
- * @return void
106
- */
107
- updateChannelCategoryWhiteBlackRole(param) {
108
- const p = new Promise((resolve) => {
109
- param.cb = (resp) => {
110
- resolve(resp);
111
- };
112
- this.instance.UpdateChannelCategoryWhiteBlackRole(param);
113
- });
114
- return p;
115
- }
116
- /** @fn getExistingChannelCategoryWhiteBlackRoles(param: QChatChannelCategoryGetExistingWhiteBlackRolesParam)
117
- * 根据身份组ID查询频道分组白/黑名单身份组列表
118
- * @param[in] param 接口参数
119
- * @return void
120
- */
121
- getExistingChannelCategoryWhiteBlackRoles(param) {
122
- const p = new Promise((resolve) => {
123
- param.cb = (resp) => {
124
- resolve(resp);
125
- };
126
- this.instance.GetExistingChannelCategoryWhiteBlackRoles(param);
127
- });
128
- return p;
129
- }
130
- /** @fn getChannelCategoryWhiteBlackRolesPage(param: QChatChannelCategoryGetWhiteBlackRolesPageParam)
131
- * 查询频道分组白/黑名单身份组列表(分页)
132
- * @param[in] param 接口参数
133
- * @return void
134
- */
135
- getChannelCategoryWhiteBlackRolesPage(param) {
136
- const p = new Promise((resolve) => {
137
- param.cb = (resp) => {
138
- resolve(resp);
139
- };
140
- this.instance.GetChannelCategoryWhiteBlackRolesPage(param);
141
- });
142
- return p;
143
- }
144
- /** @fn updateChannelCategoryWhiteBlackMembers(param: QChatChannelCategoryUpdateWhiteBlackMembersParam)
145
- * 更新频道分组白/黑名单成员
146
- * @param[in] param 接口参数
147
- * @return void
148
- */
149
- updateChannelCategoryWhiteBlackMembers(param) {
150
- const p = new Promise((resolve) => {
151
- param.cb = (resp) => {
152
- resolve(resp);
153
- };
154
- this.instance.UpdateChannelCategoryWhiteBlackMembers(param);
155
- });
156
- return p;
157
- }
158
- /** @fn getExistingChannelCategoryWhiteBlackMembers(param: QChatChannelCategoryGetExistingWhiteBlackMembersParam)
159
- * 根据成员ID查询频道分组白/黑名单成员列表
160
- * @param[in] param 接口参数
161
- * @return void
162
- */
163
- getExistingChannelCategoryWhiteBlackMembers(param) {
164
- const p = new Promise((resolve) => {
165
- param.cb = (resp) => {
166
- resolve(resp);
167
- };
168
- this.instance.GetExistingChannelCategoryWhiteBlackMembers(param);
169
- });
170
- return p;
171
- }
172
- /** @fn getChannelCategoryWhiteBlackMembersPage(param: QChatChannelCategoryGetWhiteBlackMembersPageParam)
173
- * 查询频道分组白/黑名单成员列表(分页)
174
- * @param[in] param 接口参数
175
- * @return void
176
- */
177
- getChannelCategoryWhiteBlackMembersPage(param) {
178
- const p = new Promise((resolve) => {
179
- param.cb = (resp) => {
180
- resolve(resp);
181
- };
182
- this.instance.GetChannelCategoryWhiteBlackMembersPage(param);
183
- });
184
- return p;
185
- }
186
- }
187
- exports.QChatChannelCategoryModule = QChatChannelCategoryModule;
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.QChatChannelCategoryModule = void 0;
7
+ const loader_1 = __importDefault(require("../loader"));
8
+ const eventemitter3_1 = require("eventemitter3");
9
+ class QChatChannelCategoryModule extends eventemitter3_1.EventEmitter {
10
+ constructor() {
11
+ super();
12
+ this.instance = new loader_1.default.QChatChannelCategory({ emit: this.emit.bind(this) });
13
+ }
14
+ /** 注册全局回调 */
15
+ initEventHandlers() {
16
+ return this.instance.InitEventHandlers();
17
+ }
18
+ /** @fn createChannelCategory(param: QChatChannelCategoryCreateParam)
19
+ * 创建频道分组
20
+ * @param[in] param 接口参数
21
+ * @return void
22
+ */
23
+ createChannelCategory(param) {
24
+ const p = new Promise((resolve) => {
25
+ param.cb = (resp) => {
26
+ resolve(resp);
27
+ };
28
+ this.instance.CreateChannelCategory(param);
29
+ });
30
+ return p;
31
+ }
32
+ /** @fn updateChannelCategory(param: QChatChannelCategoryUpdateParam)
33
+ * 更新频道分组
34
+ * @param[in] param 接口参数
35
+ * @return void
36
+ */
37
+ updateChannelCategory(param) {
38
+ const p = new Promise((resolve) => {
39
+ param.cb = (resp) => {
40
+ resolve(resp);
41
+ };
42
+ this.instance.UpdateChannelCategory(param);
43
+ });
44
+ return p;
45
+ }
46
+ /** @fn removeChannelCategory(param: QChatChannelCategoryRemoveParam)
47
+ * 删除频道分组
48
+ * @param[in] param 接口参数
49
+ * @return void
50
+ */
51
+ removeChannelCategory(param) {
52
+ const p = new Promise((resolve) => {
53
+ param.cb = (resp) => {
54
+ resolve(resp);
55
+ };
56
+ this.instance.RemoveChannelCategory(param);
57
+ });
58
+ return p;
59
+ }
60
+ /** @fn getChannelCategoriesByID(param: QChatChannelGetCategoriesByIDParam)
61
+ * 根据分组ID查询频道分组
62
+ * @param[in] param 接口参数
63
+ * @return void
64
+ */
65
+ getChannelCategoriesByID(param) {
66
+ const p = new Promise((resolve) => {
67
+ param.cb = (resp) => {
68
+ resolve(resp);
69
+ };
70
+ this.instance.GetChannelCategoriesByID(param);
71
+ });
72
+ return p;
73
+ }
74
+ /** @fn getChannelCategoriesPage(param: QChatChannelGetCategoriesPageParam)
75
+ * 查询频道分组列表(分页)
76
+ * @param[in] param 接口参数
77
+ * @return void
78
+ */
79
+ getChannelCategoriesPage(param) {
80
+ const p = new Promise((resolve) => {
81
+ param.cb = (resp) => {
82
+ resolve(resp);
83
+ };
84
+ this.instance.GetChannelCategoriesPage(param);
85
+ });
86
+ return p;
87
+ }
88
+ /** @fn getChannelCategoryChannelsPage(param: QChatChannelGetCategoryChannelsPageParam)
89
+ * 查询频道分组下频道列表(分页)
90
+ * @param[in] param 接口参数
91
+ * @return void
92
+ */
93
+ getChannelCategoryChannelsPage(param) {
94
+ const p = new Promise((resolve) => {
95
+ param.cb = (resp) => {
96
+ resolve(resp);
97
+ };
98
+ this.instance.GetChannelCategoryChannelsPage(param);
99
+ });
100
+ return p;
101
+ }
102
+ /** @fn updateChannelCategoryWhiteBlackRole(param: QChatChannelCategoryUpdateWhiteBlackRoleParam)
103
+ * 更新频道分组白/黑名单身份组
104
+ * @param[in] param 接口参数
105
+ * @return void
106
+ */
107
+ updateChannelCategoryWhiteBlackRole(param) {
108
+ const p = new Promise((resolve) => {
109
+ param.cb = (resp) => {
110
+ resolve(resp);
111
+ };
112
+ this.instance.UpdateChannelCategoryWhiteBlackRole(param);
113
+ });
114
+ return p;
115
+ }
116
+ /** @fn getExistingChannelCategoryWhiteBlackRoles(param: QChatChannelCategoryGetExistingWhiteBlackRolesParam)
117
+ * 根据身份组ID查询频道分组白/黑名单身份组列表
118
+ * @param[in] param 接口参数
119
+ * @return void
120
+ */
121
+ getExistingChannelCategoryWhiteBlackRoles(param) {
122
+ const p = new Promise((resolve) => {
123
+ param.cb = (resp) => {
124
+ resolve(resp);
125
+ };
126
+ this.instance.GetExistingChannelCategoryWhiteBlackRoles(param);
127
+ });
128
+ return p;
129
+ }
130
+ /** @fn getChannelCategoryWhiteBlackRolesPage(param: QChatChannelCategoryGetWhiteBlackRolesPageParam)
131
+ * 查询频道分组白/黑名单身份组列表(分页)
132
+ * @param[in] param 接口参数
133
+ * @return void
134
+ */
135
+ getChannelCategoryWhiteBlackRolesPage(param) {
136
+ const p = new Promise((resolve) => {
137
+ param.cb = (resp) => {
138
+ resolve(resp);
139
+ };
140
+ this.instance.GetChannelCategoryWhiteBlackRolesPage(param);
141
+ });
142
+ return p;
143
+ }
144
+ /** @fn updateChannelCategoryWhiteBlackMembers(param: QChatChannelCategoryUpdateWhiteBlackMembersParam)
145
+ * 更新频道分组白/黑名单成员
146
+ * @param[in] param 接口参数
147
+ * @return void
148
+ */
149
+ updateChannelCategoryWhiteBlackMembers(param) {
150
+ const p = new Promise((resolve) => {
151
+ param.cb = (resp) => {
152
+ resolve(resp);
153
+ };
154
+ this.instance.UpdateChannelCategoryWhiteBlackMembers(param);
155
+ });
156
+ return p;
157
+ }
158
+ /** @fn getExistingChannelCategoryWhiteBlackMembers(param: QChatChannelCategoryGetExistingWhiteBlackMembersParam)
159
+ * 根据成员ID查询频道分组白/黑名单成员列表
160
+ * @param[in] param 接口参数
161
+ * @return void
162
+ */
163
+ getExistingChannelCategoryWhiteBlackMembers(param) {
164
+ const p = new Promise((resolve) => {
165
+ param.cb = (resp) => {
166
+ resolve(resp);
167
+ };
168
+ this.instance.GetExistingChannelCategoryWhiteBlackMembers(param);
169
+ });
170
+ return p;
171
+ }
172
+ /** @fn getChannelCategoryWhiteBlackMembersPage(param: QChatChannelCategoryGetWhiteBlackMembersPageParam)
173
+ * 查询频道分组白/黑名单成员列表(分页)
174
+ * @param[in] param 接口参数
175
+ * @return void
176
+ */
177
+ getChannelCategoryWhiteBlackMembersPage(param) {
178
+ const p = new Promise((resolve) => {
179
+ param.cb = (resp) => {
180
+ resolve(resp);
181
+ };
182
+ this.instance.GetChannelCategoryWhiteBlackMembersPage(param);
183
+ });
184
+ return p;
185
+ }
186
+ }
187
+ exports.QChatChannelCategoryModule = QChatChannelCategoryModule;
188
188
  //# sourceMappingURL=channel_category.js.map
@@ -1,78 +1,78 @@
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.QChatInstanceModule = void 0;
7
- const loader_1 = __importDefault(require("../loader"));
8
- const eventemitter3_1 = require("eventemitter3");
9
- class QChatInstanceModule extends eventemitter3_1.EventEmitter {
10
- constructor() {
11
- super();
12
- this.instance = new loader_1.default.QChatInstance({ emit: this.emit.bind(this) });
13
- }
14
- /** 注册全局回调 */
15
- initEventHandlers() {
16
- return this.instance.InitEventHandlers();
17
- }
18
- /** @fn init(param: QChatInitParam)
19
- * 圈组模块初始化(SDK初始化时调用一次)
20
- * @param[in] param 接口参数
21
- * @return boolean 模块加载结果
22
- */
23
- init(param) {
24
- return this.instance.Init(param);
25
- }
26
- /** @fn cleanup(param: QChatCleanupParam)
27
- * 圈组模块清理(卸载SDK时调用一次)
28
- * @param[in] param 接口参数
29
- * @return boolean 模块清理结果
30
- */
31
- cleanup(param) {
32
- return this.instance.Cleanup(param);
33
- }
34
- /** @fn login(param: QChatLoginParam)
35
- * 登录圈组
36
- * @param[in] param 接口参数
37
- * @return void
38
- */
39
- login(param) {
40
- const p = new Promise((resolve) => {
41
- param.cb = (resp) => {
42
- resolve(resp);
43
- };
44
- this.instance.Login(param);
45
- });
46
- return p;
47
- }
48
- /** @fn logout(param: QChatLogoutParam)
49
- * 登出圈组
50
- * @param[in] param 接口参数
51
- * @return void
52
- */
53
- logout(param) {
54
- const p = new Promise((resolve) => {
55
- param.cb = (resp) => {
56
- resolve(resp);
57
- };
58
- this.instance.Logout(param);
59
- });
60
- return p;
61
- }
62
- /** @fn kickOtherClients(param: QChatKickParam)
63
- * 踢掉自己指定的一个其他端
64
- * @param[in] param 接口参数
65
- * @return void
66
- */
67
- kickOtherClients(param) {
68
- const p = new Promise((resolve) => {
69
- param.cb = (resp) => {
70
- resolve(resp);
71
- };
72
- this.instance.KickOtherClients(param);
73
- });
74
- return p;
75
- }
76
- }
77
- exports.QChatInstanceModule = QChatInstanceModule;
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.QChatInstanceModule = void 0;
7
+ const loader_1 = __importDefault(require("../loader"));
8
+ const eventemitter3_1 = require("eventemitter3");
9
+ class QChatInstanceModule extends eventemitter3_1.EventEmitter {
10
+ constructor() {
11
+ super();
12
+ this.instance = new loader_1.default.QChatInstance({ emit: this.emit.bind(this) });
13
+ }
14
+ /** 注册全局回调 */
15
+ initEventHandlers() {
16
+ return this.instance.InitEventHandlers();
17
+ }
18
+ /** @fn init(param: QChatInitParam)
19
+ * 圈组模块初始化(SDK初始化时调用一次)
20
+ * @param[in] param 接口参数
21
+ * @return boolean 模块加载结果
22
+ */
23
+ init(param) {
24
+ return this.instance.Init(param);
25
+ }
26
+ /** @fn cleanup(param: QChatCleanupParam)
27
+ * 圈组模块清理(卸载SDK时调用一次)
28
+ * @param[in] param 接口参数
29
+ * @return boolean 模块清理结果
30
+ */
31
+ cleanup(param) {
32
+ return this.instance.Cleanup(param);
33
+ }
34
+ /** @fn login(param: QChatLoginParam)
35
+ * 登录圈组
36
+ * @param[in] param 接口参数
37
+ * @return void
38
+ */
39
+ login(param) {
40
+ const p = new Promise((resolve) => {
41
+ param.cb = (resp) => {
42
+ resolve(resp);
43
+ };
44
+ this.instance.Login(param);
45
+ });
46
+ return p;
47
+ }
48
+ /** @fn logout(param: QChatLogoutParam)
49
+ * 登出圈组
50
+ * @param[in] param 接口参数
51
+ * @return void
52
+ */
53
+ logout(param) {
54
+ const p = new Promise((resolve) => {
55
+ param.cb = (resp) => {
56
+ resolve(resp);
57
+ };
58
+ this.instance.Logout(param);
59
+ });
60
+ return p;
61
+ }
62
+ /** @fn kickOtherClients(param: QChatKickParam)
63
+ * 踢掉自己指定的一个其他端
64
+ * @param[in] param 接口参数
65
+ * @return void
66
+ */
67
+ kickOtherClients(param) {
68
+ const p = new Promise((resolve) => {
69
+ param.cb = (resp) => {
70
+ resolve(resp);
71
+ };
72
+ this.instance.KickOtherClients(param);
73
+ });
74
+ return p;
75
+ }
76
+ }
77
+ exports.QChatInstanceModule = QChatInstanceModule;
78
78
  //# sourceMappingURL=instance.js.map