mezon-js 2.10.43 → 2.10.44

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
@@ -9213,15 +9213,14 @@ export class MezonApi {
9213
9213
  }
9214
9214
 
9215
9215
  /** List Sd Topic */
9216
- listSdTopic(
9217
- bearerToken: string,
9218
- channelId?: string,
9216
+ listSdTopic(bearerToken: string,
9217
+ clanId?: string,
9219
9218
  limit?: number,
9220
9219
  options: any = {}
9221
9220
  ): Promise<ApiSdTopicList> {
9222
9221
  const urlPath = "/v2/sdmtopic";
9223
9222
  const queryParams = new Map<string, any>();
9224
- queryParams.set("channel_id", channelId);
9223
+ queryParams.set("clan_id", clanId);
9225
9224
  queryParams.set("limit", limit);
9226
9225
 
9227
9226
  let bodyJson: string = "";
package/client.ts CHANGED
@@ -4816,7 +4816,7 @@ export class Client {
4816
4816
  //**list sd topic */
4817
4817
  async listSdTopic(
4818
4818
  session: Session,
4819
- channelId?: string,
4819
+ clanId?: string,
4820
4820
  limit?: number
4821
4821
  ): Promise<ApiSdTopicList> {
4822
4822
  if (
@@ -4828,7 +4828,7 @@ export class Client {
4828
4828
  }
4829
4829
 
4830
4830
  return this.apiClient
4831
- .listSdTopic(session.token, channelId, limit)
4831
+ .listSdTopic(session.token, clanId, limit)
4832
4832
  .then((response: ApiSdTopicList) => {
4833
4833
  return Promise.resolve(response);
4834
4834
  });
package/dist/api.gen.d.ts CHANGED
@@ -1936,7 +1936,7 @@ export declare class MezonApi {
1936
1936
  /** Create a system messages. */
1937
1937
  createSystemMessage(bearerToken: string, body: ApiSystemMessageRequest, options?: any): Promise<any>;
1938
1938
  /** List Sd Topic */
1939
- listSdTopic(bearerToken: string, channelId?: string, limit?: number, options?: any): Promise<ApiSdTopicList>;
1939
+ listSdTopic(bearerToken: string, clanId?: string, limit?: number, options?: any): Promise<ApiSdTopicList>;
1940
1940
  /** Create Sd Topic */
1941
1941
  createSdTopic(bearerToken: string, body: ApiSdTopicRequest, options?: any): Promise<ApiSdTopic>;
1942
1942
  /** Delete a specific system messages. */
package/dist/client.d.ts CHANGED
@@ -632,7 +632,7 @@ export declare class Client {
632
632
  /** List a ptt channel's users. */
633
633
  listPTTChannelUsers(session: Session, clanId: string, channelId: string, channelType: number, state?: number, limit?: number, cursor?: string): Promise<ApiPTTChannelUserList>;
634
634
  listWalletLedger(session: Session, limit?: number, cursor?: string, transactionId?: string): Promise<ApiWalletLedgerList>;
635
- listSdTopic(session: Session, channelId?: string, limit?: number): Promise<ApiSdTopicList>;
635
+ listSdTopic(session: Session, clanId?: string, limit?: number): Promise<ApiSdTopicList>;
636
636
  createSdTopic(session: Session, request: ApiSdTopicRequest): Promise<ApiSdTopic>;
637
637
  getTopicDetail(session: Session, topicId?: string): Promise<ApiSdTopic>;
638
638
  }
@@ -5752,10 +5752,10 @@ var MezonApi = class {
5752
5752
  ]);
5753
5753
  }
5754
5754
  /** List Sd Topic */
5755
- listSdTopic(bearerToken, channelId, limit, options = {}) {
5755
+ listSdTopic(bearerToken, clanId, limit, options = {}) {
5756
5756
  const urlPath = "/v2/sdmtopic";
5757
5757
  const queryParams = /* @__PURE__ */ new Map();
5758
- queryParams.set("channel_id", channelId);
5758
+ queryParams.set("clan_id", clanId);
5759
5759
  queryParams.set("limit", limit);
5760
5760
  let bodyJson = "";
5761
5761
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
@@ -10608,12 +10608,12 @@ var Client = class {
10608
10608
  });
10609
10609
  }
10610
10610
  //**list sd topic */
10611
- listSdTopic(session, channelId, limit) {
10611
+ listSdTopic(session, clanId, limit) {
10612
10612
  return __async(this, null, function* () {
10613
10613
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
10614
10614
  yield this.sessionRefresh(session);
10615
10615
  }
10616
- return this.apiClient.listSdTopic(session.token, channelId, limit).then((response) => {
10616
+ return this.apiClient.listSdTopic(session.token, clanId, limit).then((response) => {
10617
10617
  return Promise.resolve(response);
10618
10618
  });
10619
10619
  });
@@ -5718,10 +5718,10 @@ var MezonApi = class {
5718
5718
  ]);
5719
5719
  }
5720
5720
  /** List Sd Topic */
5721
- listSdTopic(bearerToken, channelId, limit, options = {}) {
5721
+ listSdTopic(bearerToken, clanId, limit, options = {}) {
5722
5722
  const urlPath = "/v2/sdmtopic";
5723
5723
  const queryParams = /* @__PURE__ */ new Map();
5724
- queryParams.set("channel_id", channelId);
5724
+ queryParams.set("clan_id", clanId);
5725
5725
  queryParams.set("limit", limit);
5726
5726
  let bodyJson = "";
5727
5727
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
@@ -10574,12 +10574,12 @@ var Client = class {
10574
10574
  });
10575
10575
  }
10576
10576
  //**list sd topic */
10577
- listSdTopic(session, channelId, limit) {
10577
+ listSdTopic(session, clanId, limit) {
10578
10578
  return __async(this, null, function* () {
10579
10579
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
10580
10580
  yield this.sessionRefresh(session);
10581
10581
  }
10582
- return this.apiClient.listSdTopic(session.token, channelId, limit).then((response) => {
10582
+ return this.apiClient.listSdTopic(session.token, clanId, limit).then((response) => {
10583
10583
  return Promise.resolve(response);
10584
10584
  });
10585
10585
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.43",
4
+ "version": "2.10.44",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"