mezon-js 2.10.32 → 2.10.33

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
@@ -2553,13 +2553,11 @@ export interface MezonapiEvent {
2553
2553
 
2554
2554
  /** */
2555
2555
  export interface MezonapiListAuditLog {
2556
+ //
2557
+ date_log?: string;
2556
2558
  //
2557
2559
  logs?: Array<ApiAuditLog>;
2558
2560
  //
2559
- page?: number;
2560
- //
2561
- page_size?: number;
2562
- //
2563
2561
  total_count?: number;
2564
2562
  }
2565
2563
 
@@ -4587,22 +4585,19 @@ export class MezonApi {
4587
4585
  }
4588
4586
 
4589
4587
  /** */
4590
- listAuditLog(
4591
- bearerToken: string,
4592
- actionLog?: string,
4593
- userId?: string,
4594
- clanId?: string,
4595
- page?: number,
4596
- pageSize?: number,
4597
- options: any = {}
4598
- ): Promise<MezonapiListAuditLog> {
4588
+ listAuditLog(bearerToken: string,
4589
+ actionLog?:string,
4590
+ userId?:string,
4591
+ clanId?:string,
4592
+ dateLog?:string,
4593
+ options: any = {}): Promise<MezonapiListAuditLog> {
4594
+
4599
4595
  const urlPath = "/v2/audit_log";
4600
4596
  const queryParams = new Map<string, any>();
4601
4597
  queryParams.set("action_log", actionLog);
4602
4598
  queryParams.set("user_id", userId);
4603
4599
  queryParams.set("clan_id", clanId);
4604
- queryParams.set("page", page);
4605
- queryParams.set("page_size", pageSize);
4600
+ queryParams.set("date_log", dateLog);
4606
4601
 
4607
4602
  let bodyJson: string = "";
4608
4603
 
package/client.ts CHANGED
@@ -4456,8 +4456,7 @@ export class Client {
4456
4456
  actionLog?: string,
4457
4457
  userId?: string,
4458
4458
  clanId?: string,
4459
- page?: number,
4460
- pageSize?: number
4459
+ date_log?: string
4461
4460
  ): Promise<MezonapiListAuditLog> {
4462
4461
  if (
4463
4462
  this.autoRefreshSession &&
@@ -4468,7 +4467,7 @@ export class Client {
4468
4467
  }
4469
4468
 
4470
4469
  return this.apiClient
4471
- .listAuditLog(session.token, actionLog, userId, clanId, page, pageSize)
4470
+ .listAuditLog(session.token, actionLog, userId, clanId, date_log)
4472
4471
  .then((response: MezonapiListAuditLog) => {
4473
4472
  return response;
4474
4473
  });
package/dist/api.gen.d.ts CHANGED
@@ -1484,9 +1484,8 @@ export interface MezonapiEvent {
1484
1484
  }
1485
1485
  /** */
1486
1486
  export interface MezonapiListAuditLog {
1487
+ date_log?: string;
1487
1488
  logs?: Array<ApiAuditLog>;
1488
- page?: number;
1489
- page_size?: number;
1490
1489
  total_count?: number;
1491
1490
  }
1492
1491
  /** */
@@ -1699,7 +1698,7 @@ export declare class MezonApi {
1699
1698
  /** Unban an app. */
1700
1699
  unbanApp(bearerToken: string, id: string, options?: any): Promise<any>;
1701
1700
  /** */
1702
- listAuditLog(bearerToken: string, actionLog?: string, userId?: string, clanId?: string, page?: number, pageSize?: number, options?: any): Promise<MezonapiListAuditLog>;
1701
+ listAuditLog(bearerToken: string, actionLog?: string, userId?: string, clanId?: string, dateLog?: string, options?: any): Promise<MezonapiListAuditLog>;
1703
1702
  /** */
1704
1703
  updateCategoryOrder(bearerToken: string, body: ApiUpdateCategoryOrderRequest, options?: any): Promise<any>;
1705
1704
  /** */
package/dist/client.d.ts CHANGED
@@ -615,7 +615,7 @@ export declare class Client {
615
615
  getPubKeys(session: Session, userIds: Array<string>): Promise<ApiGetPubKeysResponse>;
616
616
  pushPubKey(session: Session, PK: ApiPubKey): Promise<ApiGetPubKeysResponse>;
617
617
  getKeyServer(session: Session): Promise<ApiGetKeyServerResp>;
618
- listAuditLog(session: Session, actionLog?: string, userId?: string, clanId?: string, page?: number, pageSize?: number): Promise<MezonapiListAuditLog>;
618
+ listAuditLog(session: Session, actionLog?: string, userId?: string, clanId?: string, date_log?: string): Promise<MezonapiListAuditLog>;
619
619
  listOnboarding(session: Session, clanId?: string, guideType?: number, limit?: number, page?: number): Promise<ApiListOnboardingResponse>;
620
620
  getOnboardingDetail(session: Session, id: string, clanId?: string): Promise<ApiOnboardingItem>;
621
621
  createOnboarding(session: Session, request: ApiCreateOnboardingRequest): Promise<any>;
@@ -2162,14 +2162,13 @@ var MezonApi = class {
2162
2162
  ]);
2163
2163
  }
2164
2164
  /** */
2165
- listAuditLog(bearerToken, actionLog, userId, clanId, page, pageSize, options = {}) {
2165
+ listAuditLog(bearerToken, actionLog, userId, clanId, dateLog, options = {}) {
2166
2166
  const urlPath = "/v2/audit_log";
2167
2167
  const queryParams = /* @__PURE__ */ new Map();
2168
2168
  queryParams.set("action_log", actionLog);
2169
2169
  queryParams.set("user_id", userId);
2170
2170
  queryParams.set("clan_id", clanId);
2171
- queryParams.set("page", page);
2172
- queryParams.set("page_size", pageSize);
2171
+ queryParams.set("date_log", dateLog);
2173
2172
  let bodyJson = "";
2174
2173
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
2175
2174
  const fetchOptions = buildFetchOptions("GET", options, bodyJson);
@@ -10387,12 +10386,12 @@ var Client = class {
10387
10386
  });
10388
10387
  });
10389
10388
  }
10390
- listAuditLog(session, actionLog, userId, clanId, page, pageSize) {
10389
+ listAuditLog(session, actionLog, userId, clanId, date_log) {
10391
10390
  return __async(this, null, function* () {
10392
10391
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
10393
10392
  yield this.sessionRefresh(session);
10394
10393
  }
10395
- return this.apiClient.listAuditLog(session.token, actionLog, userId, clanId, page, pageSize).then((response) => {
10394
+ return this.apiClient.listAuditLog(session.token, actionLog, userId, clanId, date_log).then((response) => {
10396
10395
  return response;
10397
10396
  });
10398
10397
  });
@@ -2128,14 +2128,13 @@ var MezonApi = class {
2128
2128
  ]);
2129
2129
  }
2130
2130
  /** */
2131
- listAuditLog(bearerToken, actionLog, userId, clanId, page, pageSize, options = {}) {
2131
+ listAuditLog(bearerToken, actionLog, userId, clanId, dateLog, options = {}) {
2132
2132
  const urlPath = "/v2/audit_log";
2133
2133
  const queryParams = /* @__PURE__ */ new Map();
2134
2134
  queryParams.set("action_log", actionLog);
2135
2135
  queryParams.set("user_id", userId);
2136
2136
  queryParams.set("clan_id", clanId);
2137
- queryParams.set("page", page);
2138
- queryParams.set("page_size", pageSize);
2137
+ queryParams.set("date_log", dateLog);
2139
2138
  let bodyJson = "";
2140
2139
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
2141
2140
  const fetchOptions = buildFetchOptions("GET", options, bodyJson);
@@ -10353,12 +10352,12 @@ var Client = class {
10353
10352
  });
10354
10353
  });
10355
10354
  }
10356
- listAuditLog(session, actionLog, userId, clanId, page, pageSize) {
10355
+ listAuditLog(session, actionLog, userId, clanId, date_log) {
10357
10356
  return __async(this, null, function* () {
10358
10357
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
10359
10358
  yield this.sessionRefresh(session);
10360
10359
  }
10361
- return this.apiClient.listAuditLog(session.token, actionLog, userId, clanId, page, pageSize).then((response) => {
10360
+ return this.apiClient.listAuditLog(session.token, actionLog, userId, clanId, date_log).then((response) => {
10362
10361
  return response;
10363
10362
  });
10364
10363
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.32",
4
+ "version": "2.10.33",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"