mezon-js-protobuf 1.6.93 → 1.6.94

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
@@ -3804,14 +3804,14 @@ export interface WalletLedger {
3804
3804
 
3805
3805
  export interface WalletLedgerList {
3806
3806
  wallet_ledger: WalletLedger[];
3807
- prev_cursor: string;
3808
- next_cursor: string;
3807
+ count: number;
3809
3808
  }
3810
3809
 
3811
3810
  export interface WalletLedgerListReq {
3812
3811
  limit: number | undefined;
3813
3812
  cursor: string;
3814
3813
  transaction_id: string;
3814
+ page: number | undefined;
3815
3815
  }
3816
3816
 
3817
3817
  export interface SdTopic {
@@ -36665,7 +36665,7 @@ export const WalletLedger = {
36665
36665
  };
36666
36666
 
36667
36667
  function createBaseWalletLedgerList(): WalletLedgerList {
36668
- return { wallet_ledger: [], prev_cursor: "", next_cursor: "" };
36668
+ return { wallet_ledger: [], count: 0 };
36669
36669
  }
36670
36670
 
36671
36671
  export const WalletLedgerList = {
@@ -36673,11 +36673,8 @@ export const WalletLedgerList = {
36673
36673
  for (const v of message.wallet_ledger) {
36674
36674
  WalletLedger.encode(v!, writer.uint32(10).fork()).ldelim();
36675
36675
  }
36676
- if (message.prev_cursor !== "") {
36677
- writer.uint32(18).string(message.prev_cursor);
36678
- }
36679
- if (message.next_cursor !== "") {
36680
- writer.uint32(26).string(message.next_cursor);
36676
+ if (message.count !== 0) {
36677
+ writer.uint32(16).int32(message.count);
36681
36678
  }
36682
36679
  return writer;
36683
36680
  },
@@ -36697,18 +36694,11 @@ export const WalletLedgerList = {
36697
36694
  message.wallet_ledger.push(WalletLedger.decode(reader, reader.uint32()));
36698
36695
  continue;
36699
36696
  case 2:
36700
- if (tag !== 18) {
36701
- break;
36702
- }
36703
-
36704
- message.prev_cursor = reader.string();
36705
- continue;
36706
- case 3:
36707
- if (tag !== 26) {
36697
+ if (tag !== 16) {
36708
36698
  break;
36709
36699
  }
36710
36700
 
36711
- message.next_cursor = reader.string();
36701
+ message.count = reader.int32();
36712
36702
  continue;
36713
36703
  }
36714
36704
  if ((tag & 7) === 4 || tag === 0) {
@@ -36724,8 +36714,7 @@ export const WalletLedgerList = {
36724
36714
  wallet_ledger: globalThis.Array.isArray(object?.wallet_ledger)
36725
36715
  ? object.wallet_ledger.map((e: any) => WalletLedger.fromJSON(e))
36726
36716
  : [],
36727
- prev_cursor: isSet(object.prev_cursor) ? globalThis.String(object.prev_cursor) : "",
36728
- next_cursor: isSet(object.next_cursor) ? globalThis.String(object.next_cursor) : "",
36717
+ count: isSet(object.count) ? globalThis.Number(object.count) : 0,
36729
36718
  };
36730
36719
  },
36731
36720
 
@@ -36734,11 +36723,8 @@ export const WalletLedgerList = {
36734
36723
  if (message.wallet_ledger?.length) {
36735
36724
  obj.wallet_ledger = message.wallet_ledger.map((e) => WalletLedger.toJSON(e));
36736
36725
  }
36737
- if (message.prev_cursor !== "") {
36738
- obj.prev_cursor = message.prev_cursor;
36739
- }
36740
- if (message.next_cursor !== "") {
36741
- obj.next_cursor = message.next_cursor;
36726
+ if (message.count !== 0) {
36727
+ obj.count = Math.round(message.count);
36742
36728
  }
36743
36729
  return obj;
36744
36730
  },
@@ -36749,14 +36735,13 @@ export const WalletLedgerList = {
36749
36735
  fromPartial<I extends Exact<DeepPartial<WalletLedgerList>, I>>(object: I): WalletLedgerList {
36750
36736
  const message = createBaseWalletLedgerList();
36751
36737
  message.wallet_ledger = object.wallet_ledger?.map((e) => WalletLedger.fromPartial(e)) || [];
36752
- message.prev_cursor = object.prev_cursor ?? "";
36753
- message.next_cursor = object.next_cursor ?? "";
36738
+ message.count = object.count ?? 0;
36754
36739
  return message;
36755
36740
  },
36756
36741
  };
36757
36742
 
36758
36743
  function createBaseWalletLedgerListReq(): WalletLedgerListReq {
36759
- return { limit: undefined, cursor: "", transaction_id: "" };
36744
+ return { limit: undefined, cursor: "", transaction_id: "", page: undefined };
36760
36745
  }
36761
36746
 
36762
36747
  export const WalletLedgerListReq = {
@@ -36770,6 +36755,9 @@ export const WalletLedgerListReq = {
36770
36755
  if (message.transaction_id !== "") {
36771
36756
  writer.uint32(26).string(message.transaction_id);
36772
36757
  }
36758
+ if (message.page !== undefined) {
36759
+ Int32Value.encode({ value: message.page! }, writer.uint32(34).fork()).ldelim();
36760
+ }
36773
36761
  return writer;
36774
36762
  },
36775
36763
 
@@ -36801,6 +36789,13 @@ export const WalletLedgerListReq = {
36801
36789
 
36802
36790
  message.transaction_id = reader.string();
36803
36791
  continue;
36792
+ case 4:
36793
+ if (tag !== 34) {
36794
+ break;
36795
+ }
36796
+
36797
+ message.page = Int32Value.decode(reader, reader.uint32()).value;
36798
+ continue;
36804
36799
  }
36805
36800
  if ((tag & 7) === 4 || tag === 0) {
36806
36801
  break;
@@ -36815,6 +36810,7 @@ export const WalletLedgerListReq = {
36815
36810
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
36816
36811
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
36817
36812
  transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
36813
+ page: isSet(object.page) ? Number(object.page) : undefined,
36818
36814
  };
36819
36815
  },
36820
36816
 
@@ -36829,6 +36825,9 @@ export const WalletLedgerListReq = {
36829
36825
  if (message.transaction_id !== "") {
36830
36826
  obj.transaction_id = message.transaction_id;
36831
36827
  }
36828
+ if (message.page !== undefined) {
36829
+ obj.page = message.page;
36830
+ }
36832
36831
  return obj;
36833
36832
  },
36834
36833
 
@@ -36840,6 +36839,7 @@ export const WalletLedgerListReq = {
36840
36839
  message.limit = object.limit ?? undefined;
36841
36840
  message.cursor = object.cursor ?? "";
36842
36841
  message.transaction_id = object.transaction_id ?? "";
36842
+ message.page = object.page ?? undefined;
36843
36843
  return message;
36844
36844
  },
36845
36845
  };
@@ -3059,13 +3059,13 @@ export interface WalletLedger {
3059
3059
  }
3060
3060
  export interface WalletLedgerList {
3061
3061
  wallet_ledger: WalletLedger[];
3062
- prev_cursor: string;
3063
- next_cursor: string;
3062
+ count: number;
3064
3063
  }
3065
3064
  export interface WalletLedgerListReq {
3066
3065
  limit: number | undefined;
3067
3066
  cursor: string;
3068
3067
  transaction_id: string;
3068
+ page: number | undefined;
3069
3069
  }
3070
3070
  export interface SdTopic {
3071
3071
  id: string;
@@ -21479,8 +21479,7 @@ export declare const WalletLedgerList: {
21479
21479
  value?: number | undefined;
21480
21480
  transaction_id?: string | undefined;
21481
21481
  }[] | undefined;
21482
- prev_cursor?: string | undefined;
21483
- next_cursor?: string | undefined;
21482
+ count?: number | undefined;
21484
21483
  } & {
21485
21484
  wallet_ledger?: ({
21486
21485
  id?: string | undefined;
@@ -21507,8 +21506,7 @@ export declare const WalletLedgerList: {
21507
21506
  value?: number | undefined;
21508
21507
  transaction_id?: string | undefined;
21509
21508
  }[]>]: never; }) | undefined;
21510
- prev_cursor?: string | undefined;
21511
- next_cursor?: string | undefined;
21509
+ count?: number | undefined;
21512
21510
  } & { [K_2 in Exclude<keyof I, keyof WalletLedgerList>]: never; }>(base?: I | undefined): WalletLedgerList;
21513
21511
  fromPartial<I_1 extends {
21514
21512
  wallet_ledger?: {
@@ -21518,8 +21516,7 @@ export declare const WalletLedgerList: {
21518
21516
  value?: number | undefined;
21519
21517
  transaction_id?: string | undefined;
21520
21518
  }[] | undefined;
21521
- prev_cursor?: string | undefined;
21522
- next_cursor?: string | undefined;
21519
+ count?: number | undefined;
21523
21520
  } & {
21524
21521
  wallet_ledger?: ({
21525
21522
  id?: string | undefined;
@@ -21546,8 +21543,7 @@ export declare const WalletLedgerList: {
21546
21543
  value?: number | undefined;
21547
21544
  transaction_id?: string | undefined;
21548
21545
  }[]>]: never; }) | undefined;
21549
- prev_cursor?: string | undefined;
21550
- next_cursor?: string | undefined;
21546
+ count?: number | undefined;
21551
21547
  } & { [K_5 in Exclude<keyof I_1, keyof WalletLedgerList>]: never; }>(object: I_1): WalletLedgerList;
21552
21548
  };
21553
21549
  export declare const WalletLedgerListReq: {
@@ -21559,19 +21555,23 @@ export declare const WalletLedgerListReq: {
21559
21555
  limit?: number | undefined;
21560
21556
  cursor?: string | undefined;
21561
21557
  transaction_id?: string | undefined;
21558
+ page?: number | undefined;
21562
21559
  } & {
21563
21560
  limit?: number | undefined;
21564
21561
  cursor?: string | undefined;
21565
21562
  transaction_id?: string | undefined;
21563
+ page?: number | undefined;
21566
21564
  } & { [K in Exclude<keyof I, keyof WalletLedgerListReq>]: never; }>(base?: I | undefined): WalletLedgerListReq;
21567
21565
  fromPartial<I_1 extends {
21568
21566
  limit?: number | undefined;
21569
21567
  cursor?: string | undefined;
21570
21568
  transaction_id?: string | undefined;
21569
+ page?: number | undefined;
21571
21570
  } & {
21572
21571
  limit?: number | undefined;
21573
21572
  cursor?: string | undefined;
21574
21573
  transaction_id?: string | undefined;
21574
+ page?: number | undefined;
21575
21575
  } & { [K_1 in Exclude<keyof I_1, keyof WalletLedgerListReq>]: never; }>(object: I_1): WalletLedgerListReq;
21576
21576
  };
21577
21577
  export declare const SdTopic: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.93",
3
+ "version": "1.6.94",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",