mezon-js 2.12.25 → 2.12.26

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
@@ -9468,7 +9468,7 @@ export class MezonApi {
9468
9468
  /** Get user status */
9469
9469
  listWalletLedger(bearerToken: string,
9470
9470
  limit?:number,
9471
- cursor?:string,
9471
+ filter?:number,
9472
9472
  transactionId?:string,
9473
9473
  page?:number,
9474
9474
  options: any = {}): Promise<ApiWalletLedgerList> {
@@ -9476,7 +9476,7 @@ export class MezonApi {
9476
9476
  const urlPath = "/v2/walletledger";
9477
9477
  const queryParams = new Map<string, any>();
9478
9478
  queryParams.set("limit", limit);
9479
- queryParams.set("cursor", cursor);
9479
+ queryParams.set("filter", filter);
9480
9480
  queryParams.set("transaction_id", transactionId);
9481
9481
  queryParams.set("page", page);
9482
9482
 
package/client.ts CHANGED
@@ -4377,7 +4377,7 @@ export class Client {
4377
4377
  async listWalletLedger(
4378
4378
  session: Session,
4379
4379
  limit?: number,
4380
- cursor?: string,
4380
+ filter?: number,
4381
4381
  transactionId?: string,
4382
4382
  page?: number
4383
4383
  ): Promise<ApiWalletLedgerList> {
@@ -4390,7 +4390,7 @@ export class Client {
4390
4390
  }
4391
4391
 
4392
4392
  return this.apiClient
4393
- .listWalletLedger(session.token, limit, cursor, transactionId, page)
4393
+ .listWalletLedger(session.token, limit, filter, transactionId, page)
4394
4394
  .then((response: ApiWalletLedgerList) => {
4395
4395
  return Promise.resolve(response);
4396
4396
  });
package/dist/api.gen.d.ts CHANGED
@@ -2155,7 +2155,7 @@ export declare class MezonApi {
2155
2155
  /** list transaction detail */
2156
2156
  listTransactionDetail(bearerToken: string, transId: string, options?: any): Promise<ApiTransactionDetail>;
2157
2157
  /** Get user status */
2158
- listWalletLedger(bearerToken: string, limit?: number, cursor?: string, transactionId?: string, page?: number, options?: any): Promise<ApiWalletLedgerList>;
2158
+ listWalletLedger(bearerToken: string, limit?: number, filter?: number, transactionId?: string, page?: number, options?: any): Promise<ApiWalletLedgerList>;
2159
2159
  /** create webhook */
2160
2160
  generateWebhook(bearerToken: string, body: ApiWebhookCreateRequest, options?: any): Promise<any>;
2161
2161
  /** update webhook name by id */
package/dist/client.d.ts CHANGED
@@ -601,7 +601,7 @@ export declare class Client {
601
601
  getUserStatus(session: Session): Promise<ApiUserStatus>;
602
602
  /** list transaction detail */
603
603
  listTransactionDetail(session: Session, transId: string): Promise<ApiTransactionDetail>;
604
- listWalletLedger(session: Session, limit?: number, cursor?: string, transactionId?: string, page?: number): Promise<ApiWalletLedgerList>;
604
+ listWalletLedger(session: Session, limit?: number, filter?: number, transactionId?: string, page?: number): Promise<ApiWalletLedgerList>;
605
605
  listSdTopic(session: Session, clanId?: string, limit?: number): Promise<ApiSdTopicList>;
606
606
  createSdTopic(session: Session, request: ApiSdTopicRequest): Promise<ApiSdTopic>;
607
607
  getTopicDetail(session: Session, topicId?: string): Promise<ApiSdTopic>;
@@ -5625,11 +5625,11 @@ var MezonApi = class {
5625
5625
  ]);
5626
5626
  }
5627
5627
  /** Get user status */
5628
- listWalletLedger(bearerToken, limit, cursor, transactionId, page, options = {}) {
5628
+ listWalletLedger(bearerToken, limit, filter, transactionId, page, options = {}) {
5629
5629
  const urlPath = "/v2/walletledger";
5630
5630
  const queryParams = /* @__PURE__ */ new Map();
5631
5631
  queryParams.set("limit", limit);
5632
- queryParams.set("cursor", cursor);
5632
+ queryParams.set("filter", filter);
5633
5633
  queryParams.set("transaction_id", transactionId);
5634
5634
  queryParams.set("page", page);
5635
5635
  let bodyJson = "";
@@ -10185,12 +10185,12 @@ var Client = class {
10185
10185
  });
10186
10186
  }
10187
10187
  //**list wallet ledger */
10188
- listWalletLedger(session, limit, cursor, transactionId, page) {
10188
+ listWalletLedger(session, limit, filter, transactionId, page) {
10189
10189
  return __async(this, null, function* () {
10190
10190
  if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
10191
10191
  yield this.sessionRefresh(session);
10192
10192
  }
10193
- return this.apiClient.listWalletLedger(session.token, limit, cursor, transactionId, page).then((response) => {
10193
+ return this.apiClient.listWalletLedger(session.token, limit, filter, transactionId, page).then((response) => {
10194
10194
  return Promise.resolve(response);
10195
10195
  });
10196
10196
  });
@@ -5591,11 +5591,11 @@ var MezonApi = class {
5591
5591
  ]);
5592
5592
  }
5593
5593
  /** Get user status */
5594
- listWalletLedger(bearerToken, limit, cursor, transactionId, page, options = {}) {
5594
+ listWalletLedger(bearerToken, limit, filter, transactionId, page, options = {}) {
5595
5595
  const urlPath = "/v2/walletledger";
5596
5596
  const queryParams = /* @__PURE__ */ new Map();
5597
5597
  queryParams.set("limit", limit);
5598
- queryParams.set("cursor", cursor);
5598
+ queryParams.set("filter", filter);
5599
5599
  queryParams.set("transaction_id", transactionId);
5600
5600
  queryParams.set("page", page);
5601
5601
  let bodyJson = "";
@@ -10151,12 +10151,12 @@ var Client = class {
10151
10151
  });
10152
10152
  }
10153
10153
  //**list wallet ledger */
10154
- listWalletLedger(session, limit, cursor, transactionId, page) {
10154
+ listWalletLedger(session, limit, filter, transactionId, page) {
10155
10155
  return __async(this, null, function* () {
10156
10156
  if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
10157
10157
  yield this.sessionRefresh(session);
10158
10158
  }
10159
- return this.apiClient.listWalletLedger(session.token, limit, cursor, transactionId, page).then((response) => {
10159
+ return this.apiClient.listWalletLedger(session.token, limit, filter, transactionId, page).then((response) => {
10160
10160
  return Promise.resolve(response);
10161
10161
  });
10162
10162
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.12.25",
4
+ "version": "2.12.26",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"