mezon-js 2.9.33 → 2.9.34

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -7994,6 +7994,7 @@ export class MezonApi {
7994
7994
  limit?:number,
7995
7995
  state?:number,
7996
7996
  clanId?:string,
7997
+ threadId?:string,
7997
7998
  options: any = {}): Promise<ApiChannelDescList> {
7998
7999
 
7999
8000
  if (channelId === null || channelId === undefined) {
@@ -8005,6 +8006,7 @@ export class MezonApi {
8005
8006
  queryParams.set("limit", limit);
8006
8007
  queryParams.set("state", state);
8007
8008
  queryParams.set("clan_id", clanId);
8009
+ queryParams.set("thread_id", threadId);
8008
8010
 
8009
8011
  let bodyJson : string = "";
8010
8012
 
package/client.ts CHANGED
@@ -3928,6 +3928,7 @@ export class Client {
3928
3928
  limit?:number,
3929
3929
  state?:number,
3930
3930
  clanId?:string,
3931
+ threadId?: string,
3931
3932
  ): Promise<ApiChannelDescList> {
3932
3933
  if (
3933
3934
  this.autoRefreshSession &&
@@ -3943,7 +3944,8 @@ export class Client {
3943
3944
  channelId,
3944
3945
  limit,
3945
3946
  state,
3946
- clanId
3947
+ clanId,
3948
+ threadId
3947
3949
  )
3948
3950
  .then((response: ApiChannelDescList) => {
3949
3951
  var result: ApiChannelDescList = {
package/dist/api.gen.d.ts CHANGED
@@ -1533,7 +1533,7 @@ export declare class MezonApi {
1533
1533
  /** Update a system messages. */
1534
1534
  updateSystemMessage(bearerToken: string, clanId: string, body: MezonUpdateSystemMessageBody, options?: any): Promise<any>;
1535
1535
  /** List user channels */
1536
- listThreadDescs(bearerToken: string, channelId: string, limit?: number, state?: number, clanId?: string, options?: any): Promise<ApiChannelDescList>;
1536
+ listThreadDescs(bearerToken: string, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, options?: any): Promise<ApiChannelDescList>;
1537
1537
  /** Update fields in a given category. */
1538
1538
  updateCategory(bearerToken: string, clanId: string, body: MezonUpdateCategoryBody, options?: any): Promise<any>;
1539
1539
  /** Update channel private. */
package/dist/client.d.ts CHANGED
@@ -578,6 +578,6 @@ export declare class Client {
578
578
  getPermissionByRoleIdChannelId(session: Session, roleId?: string, channelId?: string, userId?: string): Promise<ApiPermissionRoleChannelListEventResponse>;
579
579
  markAsRead(session: Session, request: ApiMarkAsReadRequest): Promise<any>;
580
580
  /** List Threads. */
581
- listThreadDescs(session: Session, channelId: string, limit?: number, state?: number, clanId?: string): Promise<ApiChannelDescList>;
581
+ listThreadDescs(session: Session, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string): Promise<ApiChannelDescList>;
582
582
  getChannelSettingInClan(session: Session, clanId: string, parentId?: string, categoryId?: string, privateChannel?: number, active?: number, status?: number, type?: number, limit?: number, page?: number): Promise<any>;
583
583
  }
@@ -5266,7 +5266,7 @@ var MezonApi = class {
5266
5266
  ]);
5267
5267
  }
5268
5268
  /** List user channels */
5269
- listThreadDescs(bearerToken, channelId, limit, state, clanId, options = {}) {
5269
+ listThreadDescs(bearerToken, channelId, limit, state, clanId, threadId, options = {}) {
5270
5270
  if (channelId === null || channelId === void 0) {
5271
5271
  throw new Error("'channelId' is a required parameter but is null or undefined.");
5272
5272
  }
@@ -5275,6 +5275,7 @@ var MezonApi = class {
5275
5275
  queryParams.set("limit", limit);
5276
5276
  queryParams.set("state", state);
5277
5277
  queryParams.set("clan_id", clanId);
5278
+ queryParams.set("thread_id", threadId);
5278
5279
  let bodyJson = "";
5279
5280
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5280
5281
  const fetchOptions = buildFetchOptions("GET", options, bodyJson);
@@ -8540,7 +8541,7 @@ var Client = class {
8540
8541
  });
8541
8542
  }
8542
8543
  /** List Threads. */
8543
- listThreadDescs(session, channelId, limit, state, clanId) {
8544
+ listThreadDescs(session, channelId, limit, state, clanId, threadId) {
8544
8545
  return __async(this, null, function* () {
8545
8546
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
8546
8547
  yield this.sessionRefresh(session);
@@ -8550,7 +8551,8 @@ var Client = class {
8550
8551
  channelId,
8551
8552
  limit,
8552
8553
  state,
8553
- clanId
8554
+ clanId,
8555
+ threadId
8554
8556
  ).then((response) => {
8555
8557
  var result = {
8556
8558
  channeldesc: []
@@ -5237,7 +5237,7 @@ var MezonApi = class {
5237
5237
  ]);
5238
5238
  }
5239
5239
  /** List user channels */
5240
- listThreadDescs(bearerToken, channelId, limit, state, clanId, options = {}) {
5240
+ listThreadDescs(bearerToken, channelId, limit, state, clanId, threadId, options = {}) {
5241
5241
  if (channelId === null || channelId === void 0) {
5242
5242
  throw new Error("'channelId' is a required parameter but is null or undefined.");
5243
5243
  }
@@ -5246,6 +5246,7 @@ var MezonApi = class {
5246
5246
  queryParams.set("limit", limit);
5247
5247
  queryParams.set("state", state);
5248
5248
  queryParams.set("clan_id", clanId);
5249
+ queryParams.set("thread_id", threadId);
5249
5250
  let bodyJson = "";
5250
5251
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5251
5252
  const fetchOptions = buildFetchOptions("GET", options, bodyJson);
@@ -8511,7 +8512,7 @@ var Client = class {
8511
8512
  });
8512
8513
  }
8513
8514
  /** List Threads. */
8514
- listThreadDescs(session, channelId, limit, state, clanId) {
8515
+ listThreadDescs(session, channelId, limit, state, clanId, threadId) {
8515
8516
  return __async(this, null, function* () {
8516
8517
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
8517
8518
  yield this.sessionRefresh(session);
@@ -8521,7 +8522,8 @@ var Client = class {
8521
8522
  channelId,
8522
8523
  limit,
8523
8524
  state,
8524
- clanId
8525
+ clanId,
8526
+ threadId
8525
8527
  ).then((response) => {
8526
8528
  var result = {
8527
8529
  channeldesc: []
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.9.33",
4
+ "version": "2.9.34",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"