mezon-js 2.10.65 → 2.10.67

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/api.gen.ts CHANGED
@@ -225,7 +225,7 @@ export interface MezonUpdateEventBody {
225
225
  //
226
226
  channel_id_old?: string;
227
227
  //
228
- repeat_type?: number;
228
+ repeat_type?: number;
229
229
  }
230
230
 
231
231
  /** Update fields in a given role. */
@@ -675,6 +675,8 @@ export interface ApiChannelCanvasListResponse {
675
675
  channel_id?: string;
676
676
  //
677
677
  clan_id?: string;
678
+ //
679
+ count?: number;
678
680
  }
679
681
 
680
682
  /** */
@@ -1148,7 +1150,7 @@ export interface ApiCreateEventRequest {
1148
1150
  //
1149
1151
  event_status?: number;
1150
1152
  //
1151
- repeat_type?: number;
1153
+ repeat_type?: number;
1152
1154
  //
1153
1155
  creator_id?: number;
1154
1156
  }
@@ -1514,6 +1516,17 @@ export interface ApiMessageDeleted {
1514
1516
  //
1515
1517
  message_id?: string;
1516
1518
  }
1519
+
1520
+ /** */
1521
+ export interface ApiListThreadDecs {
1522
+ //
1523
+ limit?: number;
1524
+ //
1525
+ list_thread?: Array<ApiChannelDescription>;
1526
+ //
1527
+ page?: number;
1528
+ }
1529
+
1517
1530
  /** */
1518
1531
  export interface ApiListUserActivity {
1519
1532
  //
@@ -4804,14 +4817,13 @@ export class MezonApi {
4804
4817
  }
4805
4818
 
4806
4819
  /** */
4807
- getChannelCanvasList(
4808
- bearerToken: string,
4809
- channelId: string,
4810
- clanId?: string,
4811
- limit?: number,
4812
- page?: number,
4813
- options: any = {}
4814
- ): Promise<ApiChannelCanvasListResponse> {
4820
+ getChannelCanvasList(bearerToken: string,
4821
+ channelId:string,
4822
+ clanId?:string,
4823
+ limit?:number,
4824
+ page?:number,
4825
+ options: any = {}): Promise<ApiChannelCanvasListResponse> {
4826
+
4815
4827
  if (channelId === null || channelId === undefined) {
4816
4828
  throw new Error(
4817
4829
  "'channelId' is a required parameter but is null or undefined."
@@ -9465,8 +9477,9 @@ export class MezonApi {
9465
9477
  state?: number,
9466
9478
  clanId?: string,
9467
9479
  threadId?: string,
9480
+ page?: number,
9468
9481
  options: any = {}
9469
- ): Promise<ApiChannelDescList> {
9482
+ ): Promise<ApiListThreadDecs> {
9470
9483
  if (channelId === null || channelId === undefined) {
9471
9484
  throw new Error(
9472
9485
  "'channelId' is a required parameter but is null or undefined."
@@ -9481,6 +9494,7 @@ export class MezonApi {
9481
9494
  queryParams.set("state", state);
9482
9495
  queryParams.set("clan_id", clanId);
9483
9496
  queryParams.set("thread_id", threadId);
9497
+ queryParams.set("page", page);
9484
9498
 
9485
9499
  let bodyJson: string = "";
9486
9500
 
package/client.ts CHANGED
@@ -158,6 +158,7 @@ import {
158
158
  ApiSdTopic,
159
159
  ApiSFUChannelUserList,
160
160
  MezonUpdateEventBody,
161
+ ApiListThreadDecs,
161
162
  } from "./api.gen";
162
163
 
163
164
  import { Session } from "./session";
@@ -1223,7 +1224,14 @@ export class Client {
1223
1224
  }
1224
1225
 
1225
1226
  return this.apiClient
1226
- .deleteEvent(session.token, eventId, clanId, creatorId, eventLabel, channelId)
1227
+ .deleteEvent(
1228
+ session.token,
1229
+ eventId,
1230
+ clanId,
1231
+ creatorId,
1232
+ eventLabel,
1233
+ channelId
1234
+ )
1227
1235
  .then((response: any) => {
1228
1236
  return response !== undefined;
1229
1237
  });
@@ -4063,8 +4071,9 @@ export class Client {
4063
4071
  limit?: number,
4064
4072
  state?: number,
4065
4073
  clanId?: string,
4066
- threadId?: string
4067
- ): Promise<ApiChannelDescList> {
4074
+ threadId?: string,
4075
+ page?: number
4076
+ ): Promise<ApiListThreadDecs> {
4068
4077
  if (
4069
4078
  this.autoRefreshSession &&
4070
4079
  session.refresh_token &&
@@ -4074,17 +4083,25 @@ export class Client {
4074
4083
  }
4075
4084
 
4076
4085
  return this.apiClient
4077
- .listThreadDescs(session.token, channelId, limit, state, clanId, threadId)
4078
- .then((response: ApiChannelDescList) => {
4079
- var result: ApiChannelDescList = {
4080
- channeldesc: [],
4086
+ .listThreadDescs(
4087
+ session.token,
4088
+ channelId,
4089
+ limit,
4090
+ state,
4091
+ clanId,
4092
+ threadId,
4093
+ page
4094
+ )
4095
+ .then((response: ApiListThreadDecs) => {
4096
+ var result: ApiListThreadDecs = {
4097
+ list_thread: [],
4081
4098
  };
4082
4099
 
4083
- if (response.channeldesc == null) {
4100
+ if (response.list_thread == null) {
4084
4101
  return Promise.resolve(result);
4085
4102
  }
4086
4103
 
4087
- result.channeldesc = response.channeldesc;
4104
+ result.list_thread = response.list_thread;
4088
4105
  return Promise.resolve(result);
4089
4106
  });
4090
4107
  }
@@ -4151,7 +4168,7 @@ export class Client {
4151
4168
  clanId?: string,
4152
4169
  limit?: number,
4153
4170
  page?: number
4154
- ): Promise<any> {
4171
+ ): Promise<ApiChannelCanvasListResponse> {
4155
4172
  if (
4156
4173
  this.autoRefreshSession &&
4157
4174
  session.refresh_token &&
@@ -4174,6 +4191,7 @@ export class Client {
4174
4191
  result.clan_id = response.clan_id;
4175
4192
  result.channel_id = response.channel_id;
4176
4193
  result.channel_canvases = response.channel_canvases;
4194
+ result.count = response.count
4177
4195
  return Promise.resolve(result);
4178
4196
  });
4179
4197
  }
package/dist/api.gen.d.ts CHANGED
@@ -394,6 +394,7 @@ export interface ApiChannelCanvasListResponse {
394
394
  channel_canvases?: Array<ApiChannelCanvasItem>;
395
395
  channel_id?: string;
396
396
  clan_id?: string;
397
+ count?: number;
397
398
  }
398
399
  /** */
399
400
  export interface ApiEditChannelCanvasRequest {
@@ -873,6 +874,12 @@ export interface ApiMessageDeleted {
873
874
  message_id?: string;
874
875
  }
875
876
  /** */
877
+ export interface ApiListThreadDecs {
878
+ limit?: number;
879
+ list_thread?: Array<ApiChannelDescription>;
880
+ page?: number;
881
+ }
882
+ /** */
876
883
  export interface ApiListUserActivity {
877
884
  activities?: Array<ApiUserActivity>;
878
885
  }
@@ -1965,7 +1972,7 @@ export declare class MezonApi {
1965
1972
  /** Update a system messages. */
1966
1973
  updateSystemMessage(bearerToken: string, clanId: string, body: MezonUpdateSystemMessageBody, options?: any): Promise<any>;
1967
1974
  /** List user channels */
1968
- listThreadDescs(bearerToken: string, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, options?: any): Promise<ApiChannelDescList>;
1975
+ listThreadDescs(bearerToken: string, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number, options?: any): Promise<ApiListThreadDecs>;
1969
1976
  /** Update fields in a given category. */
1970
1977
  updateCategory(bearerToken: string, clanId: string, body: MezonUpdateCategoryBody, options?: any): Promise<any>;
1971
1978
  /** Update channel private. */
package/dist/client.d.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ApiAccount, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiGiveCoffeeEvent, ApiListStreamingChannelsResponse, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiHashtagDmList, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiWithdrawTokenRequest, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, ApiSFUChannelUserList, MezonUpdateEventBody } from "./api.gen";
16
+ import { ApiAccount, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiGiveCoffeeEvent, ApiListStreamingChannelsResponse, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiHashtagDmList, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiWithdrawTokenRequest, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, ApiSFUChannelUserList, MezonUpdateEventBody, ApiListThreadDecs } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { Socket } from "./socket";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -602,10 +602,10 @@ export declare class Client {
602
602
  getPermissionByRoleIdChannelId(session: Session, roleId?: string, channelId?: string, userId?: string): Promise<ApiPermissionRoleChannelListEventResponse>;
603
603
  markAsRead(session: Session, request: ApiMarkAsReadRequest): Promise<any>;
604
604
  /** List Threads. */
605
- listThreadDescs(session: Session, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string): Promise<ApiChannelDescList>;
605
+ listThreadDescs(session: Session, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number): Promise<ApiListThreadDecs>;
606
606
  leaveThread(session: Session, channelId: string): Promise<any>;
607
607
  getChannelSettingInClan(session: Session, clanId: string, parentId?: string, categoryId?: string, privateChannel?: number, active?: number, status?: number, type?: number, limit?: number, page?: number, channel_label?: string): Promise<ApiChannelSettingListResponse>;
608
- getChannelCanvasList(session: Session, channelId: string, clanId?: string, limit?: number, page?: number): Promise<any>;
608
+ getChannelCanvasList(session: Session, channelId: string, clanId?: string, limit?: number, page?: number): Promise<ApiChannelCanvasListResponse>;
609
609
  getChannelCanvasDetail(session: Session, id: string, clanId?: string, channelId?: string): Promise<any>;
610
610
  editChannelCanvases(session: Session, request: ApiEditChannelCanvasRequest): Promise<any>;
611
611
  deleteChannelCanvas(session: Session, canvasId: string, clanId?: string, channelId?: string): Promise<any>;
@@ -5917,7 +5917,7 @@ var MezonApi = class {
5917
5917
  ]);
5918
5918
  }
5919
5919
  /** List user channels */
5920
- listThreadDescs(bearerToken, channelId, limit, state, clanId, threadId, options = {}) {
5920
+ listThreadDescs(bearerToken, channelId, limit, state, clanId, threadId, page, options = {}) {
5921
5921
  if (channelId === null || channelId === void 0) {
5922
5922
  throw new Error(
5923
5923
  "'channelId' is a required parameter but is null or undefined."
@@ -5932,6 +5932,7 @@ var MezonApi = class {
5932
5932
  queryParams.set("state", state);
5933
5933
  queryParams.set("clan_id", clanId);
5934
5934
  queryParams.set("thread_id", threadId);
5935
+ queryParams.set("page", page);
5935
5936
  let bodyJson = "";
5936
5937
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5937
5938
  const fetchOptions = buildFetchOptions("GET", options, bodyJson);
@@ -8495,7 +8496,14 @@ var Client = class {
8495
8496
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
8496
8497
  yield this.sessionRefresh(session);
8497
8498
  }
8498
- return this.apiClient.deleteEvent(session.token, eventId, clanId, creatorId, eventLabel, channelId).then((response) => {
8499
+ return this.apiClient.deleteEvent(
8500
+ session.token,
8501
+ eventId,
8502
+ clanId,
8503
+ creatorId,
8504
+ eventLabel,
8505
+ channelId
8506
+ ).then((response) => {
8499
8507
  return response !== void 0;
8500
8508
  });
8501
8509
  });
@@ -10179,19 +10187,27 @@ var Client = class {
10179
10187
  });
10180
10188
  }
10181
10189
  /** List Threads. */
10182
- listThreadDescs(session, channelId, limit, state, clanId, threadId) {
10190
+ listThreadDescs(session, channelId, limit, state, clanId, threadId, page) {
10183
10191
  return __async(this, null, function* () {
10184
10192
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
10185
10193
  yield this.sessionRefresh(session);
10186
10194
  }
10187
- return this.apiClient.listThreadDescs(session.token, channelId, limit, state, clanId, threadId).then((response) => {
10195
+ return this.apiClient.listThreadDescs(
10196
+ session.token,
10197
+ channelId,
10198
+ limit,
10199
+ state,
10200
+ clanId,
10201
+ threadId,
10202
+ page
10203
+ ).then((response) => {
10188
10204
  var result = {
10189
- channeldesc: []
10205
+ list_thread: []
10190
10206
  };
10191
- if (response.channeldesc == null) {
10207
+ if (response.list_thread == null) {
10192
10208
  return Promise.resolve(result);
10193
10209
  }
10194
- result.channeldesc = response.channeldesc;
10210
+ result.list_thread = response.list_thread;
10195
10211
  return Promise.resolve(result);
10196
10212
  });
10197
10213
  });
@@ -10243,6 +10259,7 @@ var Client = class {
10243
10259
  result.clan_id = response.clan_id;
10244
10260
  result.channel_id = response.channel_id;
10245
10261
  result.channel_canvases = response.channel_canvases;
10262
+ result.count = response.count;
10246
10263
  return Promise.resolve(result);
10247
10264
  });
10248
10265
  });
@@ -5882,7 +5882,7 @@ var MezonApi = class {
5882
5882
  ]);
5883
5883
  }
5884
5884
  /** List user channels */
5885
- listThreadDescs(bearerToken, channelId, limit, state, clanId, threadId, options = {}) {
5885
+ listThreadDescs(bearerToken, channelId, limit, state, clanId, threadId, page, options = {}) {
5886
5886
  if (channelId === null || channelId === void 0) {
5887
5887
  throw new Error(
5888
5888
  "'channelId' is a required parameter but is null or undefined."
@@ -5897,6 +5897,7 @@ var MezonApi = class {
5897
5897
  queryParams.set("state", state);
5898
5898
  queryParams.set("clan_id", clanId);
5899
5899
  queryParams.set("thread_id", threadId);
5900
+ queryParams.set("page", page);
5900
5901
  let bodyJson = "";
5901
5902
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5902
5903
  const fetchOptions = buildFetchOptions("GET", options, bodyJson);
@@ -8460,7 +8461,14 @@ var Client = class {
8460
8461
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
8461
8462
  yield this.sessionRefresh(session);
8462
8463
  }
8463
- return this.apiClient.deleteEvent(session.token, eventId, clanId, creatorId, eventLabel, channelId).then((response) => {
8464
+ return this.apiClient.deleteEvent(
8465
+ session.token,
8466
+ eventId,
8467
+ clanId,
8468
+ creatorId,
8469
+ eventLabel,
8470
+ channelId
8471
+ ).then((response) => {
8464
8472
  return response !== void 0;
8465
8473
  });
8466
8474
  });
@@ -10144,19 +10152,27 @@ var Client = class {
10144
10152
  });
10145
10153
  }
10146
10154
  /** List Threads. */
10147
- listThreadDescs(session, channelId, limit, state, clanId, threadId) {
10155
+ listThreadDescs(session, channelId, limit, state, clanId, threadId, page) {
10148
10156
  return __async(this, null, function* () {
10149
10157
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
10150
10158
  yield this.sessionRefresh(session);
10151
10159
  }
10152
- return this.apiClient.listThreadDescs(session.token, channelId, limit, state, clanId, threadId).then((response) => {
10160
+ return this.apiClient.listThreadDescs(
10161
+ session.token,
10162
+ channelId,
10163
+ limit,
10164
+ state,
10165
+ clanId,
10166
+ threadId,
10167
+ page
10168
+ ).then((response) => {
10153
10169
  var result = {
10154
- channeldesc: []
10170
+ list_thread: []
10155
10171
  };
10156
- if (response.channeldesc == null) {
10172
+ if (response.list_thread == null) {
10157
10173
  return Promise.resolve(result);
10158
10174
  }
10159
- result.channeldesc = response.channeldesc;
10175
+ result.list_thread = response.list_thread;
10160
10176
  return Promise.resolve(result);
10161
10177
  });
10162
10178
  });
@@ -10208,6 +10224,7 @@ var Client = class {
10208
10224
  result.clan_id = response.clan_id;
10209
10225
  result.channel_id = response.channel_id;
10210
10226
  result.channel_canvases = response.channel_canvases;
10227
+ result.count = response.count;
10211
10228
  return Promise.resolve(result);
10212
10229
  });
10213
10230
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.65",
4
+ "version": "2.10.67",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"