mezon-js-protobuf 1.6.60 → 1.6.62

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/api.ts CHANGED
@@ -3474,8 +3474,7 @@ export interface AuditLog {
3474
3474
 
3475
3475
  export interface ListAuditLog {
3476
3476
  total_count: number;
3477
- page: number;
3478
- page_size: number;
3477
+ date_log: string;
3479
3478
  logs: AuditLog[];
3480
3479
  }
3481
3480
 
@@ -3483,8 +3482,7 @@ export interface ListAuditLogRequest {
3483
3482
  action_log: string;
3484
3483
  user_id: string;
3485
3484
  clan_id: string;
3486
- page: number;
3487
- page_size: number;
3485
+ date_log: string;
3488
3486
  }
3489
3487
 
3490
3488
  export interface TokenSentEvent {
@@ -33574,7 +33572,7 @@ export const AuditLog = {
33574
33572
  };
33575
33573
 
33576
33574
  function createBaseListAuditLog(): ListAuditLog {
33577
- return { total_count: 0, page: 0, page_size: 0, logs: [] };
33575
+ return { total_count: 0, date_log: "", logs: [] };
33578
33576
  }
33579
33577
 
33580
33578
  export const ListAuditLog = {
@@ -33582,14 +33580,11 @@ export const ListAuditLog = {
33582
33580
  if (message.total_count !== 0) {
33583
33581
  writer.uint32(8).int32(message.total_count);
33584
33582
  }
33585
- if (message.page !== 0) {
33586
- writer.uint32(16).int32(message.page);
33587
- }
33588
- if (message.page_size !== 0) {
33589
- writer.uint32(24).int32(message.page_size);
33583
+ if (message.date_log !== "") {
33584
+ writer.uint32(18).string(message.date_log);
33590
33585
  }
33591
33586
  for (const v of message.logs) {
33592
- AuditLog.encode(v!, writer.uint32(34).fork()).ldelim();
33587
+ AuditLog.encode(v!, writer.uint32(26).fork()).ldelim();
33593
33588
  }
33594
33589
  return writer;
33595
33590
  },
@@ -33609,21 +33604,14 @@ export const ListAuditLog = {
33609
33604
  message.total_count = reader.int32();
33610
33605
  continue;
33611
33606
  case 2:
33612
- if (tag !== 16) {
33607
+ if (tag !== 18) {
33613
33608
  break;
33614
33609
  }
33615
33610
 
33616
- message.page = reader.int32();
33611
+ message.date_log = reader.string();
33617
33612
  continue;
33618
33613
  case 3:
33619
- if (tag !== 24) {
33620
- break;
33621
- }
33622
-
33623
- message.page_size = reader.int32();
33624
- continue;
33625
- case 4:
33626
- if (tag !== 34) {
33614
+ if (tag !== 26) {
33627
33615
  break;
33628
33616
  }
33629
33617
 
@@ -33641,8 +33629,7 @@ export const ListAuditLog = {
33641
33629
  fromJSON(object: any): ListAuditLog {
33642
33630
  return {
33643
33631
  total_count: isSet(object.total_count) ? globalThis.Number(object.total_count) : 0,
33644
- page: isSet(object.page) ? globalThis.Number(object.page) : 0,
33645
- page_size: isSet(object.page_size) ? globalThis.Number(object.page_size) : 0,
33632
+ date_log: isSet(object.date_log) ? globalThis.String(object.date_log) : "",
33646
33633
  logs: globalThis.Array.isArray(object?.logs) ? object.logs.map((e: any) => AuditLog.fromJSON(e)) : [],
33647
33634
  };
33648
33635
  },
@@ -33652,11 +33639,8 @@ export const ListAuditLog = {
33652
33639
  if (message.total_count !== 0) {
33653
33640
  obj.total_count = Math.round(message.total_count);
33654
33641
  }
33655
- if (message.page !== 0) {
33656
- obj.page = Math.round(message.page);
33657
- }
33658
- if (message.page_size !== 0) {
33659
- obj.page_size = Math.round(message.page_size);
33642
+ if (message.date_log !== "") {
33643
+ obj.date_log = message.date_log;
33660
33644
  }
33661
33645
  if (message.logs?.length) {
33662
33646
  obj.logs = message.logs.map((e) => AuditLog.toJSON(e));
@@ -33670,15 +33654,14 @@ export const ListAuditLog = {
33670
33654
  fromPartial<I extends Exact<DeepPartial<ListAuditLog>, I>>(object: I): ListAuditLog {
33671
33655
  const message = createBaseListAuditLog();
33672
33656
  message.total_count = object.total_count ?? 0;
33673
- message.page = object.page ?? 0;
33674
- message.page_size = object.page_size ?? 0;
33657
+ message.date_log = object.date_log ?? "";
33675
33658
  message.logs = object.logs?.map((e) => AuditLog.fromPartial(e)) || [];
33676
33659
  return message;
33677
33660
  },
33678
33661
  };
33679
33662
 
33680
33663
  function createBaseListAuditLogRequest(): ListAuditLogRequest {
33681
- return { action_log: "", user_id: "", clan_id: "", page: 0, page_size: 0 };
33664
+ return { action_log: "", user_id: "", clan_id: "", date_log: "" };
33682
33665
  }
33683
33666
 
33684
33667
  export const ListAuditLogRequest = {
@@ -33692,11 +33675,8 @@ export const ListAuditLogRequest = {
33692
33675
  if (message.clan_id !== "") {
33693
33676
  writer.uint32(26).string(message.clan_id);
33694
33677
  }
33695
- if (message.page !== 0) {
33696
- writer.uint32(32).int32(message.page);
33697
- }
33698
- if (message.page_size !== 0) {
33699
- writer.uint32(40).int32(message.page_size);
33678
+ if (message.date_log !== "") {
33679
+ writer.uint32(34).string(message.date_log);
33700
33680
  }
33701
33681
  return writer;
33702
33682
  },
@@ -33730,18 +33710,11 @@ export const ListAuditLogRequest = {
33730
33710
  message.clan_id = reader.string();
33731
33711
  continue;
33732
33712
  case 4:
33733
- if (tag !== 32) {
33734
- break;
33735
- }
33736
-
33737
- message.page = reader.int32();
33738
- continue;
33739
- case 5:
33740
- if (tag !== 40) {
33713
+ if (tag !== 34) {
33741
33714
  break;
33742
33715
  }
33743
33716
 
33744
- message.page_size = reader.int32();
33717
+ message.date_log = reader.string();
33745
33718
  continue;
33746
33719
  }
33747
33720
  if ((tag & 7) === 4 || tag === 0) {
@@ -33757,8 +33730,7 @@ export const ListAuditLogRequest = {
33757
33730
  action_log: isSet(object.action_log) ? globalThis.String(object.action_log) : "",
33758
33731
  user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
33759
33732
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
33760
- page: isSet(object.page) ? globalThis.Number(object.page) : 0,
33761
- page_size: isSet(object.page_size) ? globalThis.Number(object.page_size) : 0,
33733
+ date_log: isSet(object.date_log) ? globalThis.String(object.date_log) : "",
33762
33734
  };
33763
33735
  },
33764
33736
 
@@ -33773,11 +33745,8 @@ export const ListAuditLogRequest = {
33773
33745
  if (message.clan_id !== "") {
33774
33746
  obj.clan_id = message.clan_id;
33775
33747
  }
33776
- if (message.page !== 0) {
33777
- obj.page = Math.round(message.page);
33778
- }
33779
- if (message.page_size !== 0) {
33780
- obj.page_size = Math.round(message.page_size);
33748
+ if (message.date_log !== "") {
33749
+ obj.date_log = message.date_log;
33781
33750
  }
33782
33751
  return obj;
33783
33752
  },
@@ -33790,8 +33759,7 @@ export const ListAuditLogRequest = {
33790
33759
  message.action_log = object.action_log ?? "";
33791
33760
  message.user_id = object.user_id ?? "";
33792
33761
  message.clan_id = object.clan_id ?? "";
33793
- message.page = object.page ?? 0;
33794
- message.page_size = object.page_size ?? 0;
33762
+ message.date_log = object.date_log ?? "";
33795
33763
  return message;
33796
33764
  },
33797
33765
  };
@@ -2772,16 +2772,14 @@ export interface AuditLog {
2772
2772
  }
2773
2773
  export interface ListAuditLog {
2774
2774
  total_count: number;
2775
- page: number;
2776
- page_size: number;
2775
+ date_log: string;
2777
2776
  logs: AuditLog[];
2778
2777
  }
2779
2778
  export interface ListAuditLogRequest {
2780
2779
  action_log: string;
2781
2780
  user_id: string;
2782
2781
  clan_id: string;
2783
- page: number;
2784
- page_size: number;
2782
+ date_log: string;
2785
2783
  }
2786
2784
  export interface TokenSentEvent {
2787
2785
  /** sender id */
@@ -19258,8 +19256,7 @@ export declare const ListAuditLog: {
19258
19256
  toJSON(message: ListAuditLog): unknown;
19259
19257
  create<I extends {
19260
19258
  total_count?: number | undefined;
19261
- page?: number | undefined;
19262
- page_size?: number | undefined;
19259
+ date_log?: string | undefined;
19263
19260
  logs?: {
19264
19261
  id?: string | undefined;
19265
19262
  user_id?: string | undefined;
@@ -19273,8 +19270,7 @@ export declare const ListAuditLog: {
19273
19270
  }[] | undefined;
19274
19271
  } & {
19275
19272
  total_count?: number | undefined;
19276
- page?: number | undefined;
19277
- page_size?: number | undefined;
19273
+ date_log?: string | undefined;
19278
19274
  logs?: ({
19279
19275
  id?: string | undefined;
19280
19276
  user_id?: string | undefined;
@@ -19319,8 +19315,7 @@ export declare const ListAuditLog: {
19319
19315
  } & { [K_2 in Exclude<keyof I, keyof ListAuditLog>]: never; }>(base?: I | undefined): ListAuditLog;
19320
19316
  fromPartial<I_1 extends {
19321
19317
  total_count?: number | undefined;
19322
- page?: number | undefined;
19323
- page_size?: number | undefined;
19318
+ date_log?: string | undefined;
19324
19319
  logs?: {
19325
19320
  id?: string | undefined;
19326
19321
  user_id?: string | undefined;
@@ -19334,8 +19329,7 @@ export declare const ListAuditLog: {
19334
19329
  }[] | undefined;
19335
19330
  } & {
19336
19331
  total_count?: number | undefined;
19337
- page?: number | undefined;
19338
- page_size?: number | undefined;
19332
+ date_log?: string | undefined;
19339
19333
  logs?: ({
19340
19334
  id?: string | undefined;
19341
19335
  user_id?: string | undefined;
@@ -19388,27 +19382,23 @@ export declare const ListAuditLogRequest: {
19388
19382
  action_log?: string | undefined;
19389
19383
  user_id?: string | undefined;
19390
19384
  clan_id?: string | undefined;
19391
- page?: number | undefined;
19392
- page_size?: number | undefined;
19385
+ date_log?: string | undefined;
19393
19386
  } & {
19394
19387
  action_log?: string | undefined;
19395
19388
  user_id?: string | undefined;
19396
19389
  clan_id?: string | undefined;
19397
- page?: number | undefined;
19398
- page_size?: number | undefined;
19390
+ date_log?: string | undefined;
19399
19391
  } & { [K in Exclude<keyof I, keyof ListAuditLogRequest>]: never; }>(base?: I | undefined): ListAuditLogRequest;
19400
19392
  fromPartial<I_1 extends {
19401
19393
  action_log?: string | undefined;
19402
19394
  user_id?: string | undefined;
19403
19395
  clan_id?: string | undefined;
19404
- page?: number | undefined;
19405
- page_size?: number | undefined;
19396
+ date_log?: string | undefined;
19406
19397
  } & {
19407
19398
  action_log?: string | undefined;
19408
19399
  user_id?: string | undefined;
19409
19400
  clan_id?: string | undefined;
19410
- page?: number | undefined;
19411
- page_size?: number | undefined;
19401
+ date_log?: string | undefined;
19412
19402
  } & { [K_1 in Exclude<keyof I_1, keyof ListAuditLogRequest>]: never; }>(object: I_1): ListAuditLogRequest;
19413
19403
  };
19414
19404
  export declare const TokenSentEvent: {