mezon-js-protobuf 1.6.36 → 1.6.37

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
@@ -3740,6 +3740,8 @@ export interface WalletLedger {
3740
3740
  | undefined;
3741
3741
  /** value */
3742
3742
  value: number;
3743
+ /** transaction id */
3744
+ transaction_id: string;
3743
3745
  }
3744
3746
 
3745
3747
  export interface WalletLedgerList {
@@ -3751,6 +3753,7 @@ export interface WalletLedgerList {
3751
3753
  export interface WalletLedgerListReq {
3752
3754
  limit: number | undefined;
3753
3755
  cursor: string;
3756
+ transaction_id: string;
3754
3757
  }
3755
3758
 
3756
3759
  function createBaseAccount(): Account {
@@ -36127,7 +36130,7 @@ export const CustomDisplay = {
36127
36130
  };
36128
36131
 
36129
36132
  function createBaseWalletLedger(): WalletLedger {
36130
- return { id: "", user_id: "", create_time: undefined, value: 0 };
36133
+ return { id: "", user_id: "", create_time: undefined, value: 0, transaction_id: "" };
36131
36134
  }
36132
36135
 
36133
36136
  export const WalletLedger = {
@@ -36144,6 +36147,9 @@ export const WalletLedger = {
36144
36147
  if (message.value !== 0) {
36145
36148
  writer.uint32(32).int32(message.value);
36146
36149
  }
36150
+ if (message.transaction_id !== "") {
36151
+ writer.uint32(42).string(message.transaction_id);
36152
+ }
36147
36153
  return writer;
36148
36154
  },
36149
36155
 
@@ -36182,6 +36188,13 @@ export const WalletLedger = {
36182
36188
 
36183
36189
  message.value = reader.int32();
36184
36190
  continue;
36191
+ case 5:
36192
+ if (tag !== 42) {
36193
+ break;
36194
+ }
36195
+
36196
+ message.transaction_id = reader.string();
36197
+ continue;
36185
36198
  }
36186
36199
  if ((tag & 7) === 4 || tag === 0) {
36187
36200
  break;
@@ -36197,6 +36210,7 @@ export const WalletLedger = {
36197
36210
  user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
36198
36211
  create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
36199
36212
  value: isSet(object.value) ? globalThis.Number(object.value) : 0,
36213
+ transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
36200
36214
  };
36201
36215
  },
36202
36216
 
@@ -36214,6 +36228,9 @@ export const WalletLedger = {
36214
36228
  if (message.value !== 0) {
36215
36229
  obj.value = Math.round(message.value);
36216
36230
  }
36231
+ if (message.transaction_id !== "") {
36232
+ obj.transaction_id = message.transaction_id;
36233
+ }
36217
36234
  return obj;
36218
36235
  },
36219
36236
 
@@ -36226,6 +36243,7 @@ export const WalletLedger = {
36226
36243
  message.user_id = object.user_id ?? "";
36227
36244
  message.create_time = object.create_time ?? undefined;
36228
36245
  message.value = object.value ?? 0;
36246
+ message.transaction_id = object.transaction_id ?? "";
36229
36247
  return message;
36230
36248
  },
36231
36249
  };
@@ -36322,7 +36340,7 @@ export const WalletLedgerList = {
36322
36340
  };
36323
36341
 
36324
36342
  function createBaseWalletLedgerListReq(): WalletLedgerListReq {
36325
- return { limit: undefined, cursor: "" };
36343
+ return { limit: undefined, cursor: "", transaction_id: "" };
36326
36344
  }
36327
36345
 
36328
36346
  export const WalletLedgerListReq = {
@@ -36333,6 +36351,9 @@ export const WalletLedgerListReq = {
36333
36351
  if (message.cursor !== "") {
36334
36352
  writer.uint32(18).string(message.cursor);
36335
36353
  }
36354
+ if (message.transaction_id !== "") {
36355
+ writer.uint32(26).string(message.transaction_id);
36356
+ }
36336
36357
  return writer;
36337
36358
  },
36338
36359
 
@@ -36357,6 +36378,13 @@ export const WalletLedgerListReq = {
36357
36378
 
36358
36379
  message.cursor = reader.string();
36359
36380
  continue;
36381
+ case 3:
36382
+ if (tag !== 26) {
36383
+ break;
36384
+ }
36385
+
36386
+ message.transaction_id = reader.string();
36387
+ continue;
36360
36388
  }
36361
36389
  if ((tag & 7) === 4 || tag === 0) {
36362
36390
  break;
@@ -36370,6 +36398,7 @@ export const WalletLedgerListReq = {
36370
36398
  return {
36371
36399
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
36372
36400
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
36401
+ transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
36373
36402
  };
36374
36403
  },
36375
36404
 
@@ -36381,6 +36410,9 @@ export const WalletLedgerListReq = {
36381
36410
  if (message.cursor !== "") {
36382
36411
  obj.cursor = message.cursor;
36383
36412
  }
36413
+ if (message.transaction_id !== "") {
36414
+ obj.transaction_id = message.transaction_id;
36415
+ }
36384
36416
  return obj;
36385
36417
  },
36386
36418
 
@@ -36391,6 +36423,7 @@ export const WalletLedgerListReq = {
36391
36423
  const message = createBaseWalletLedgerListReq();
36392
36424
  message.limit = object.limit ?? undefined;
36393
36425
  message.cursor = object.cursor ?? "";
36426
+ message.transaction_id = object.transaction_id ?? "";
36394
36427
  return message;
36395
36428
  },
36396
36429
  };
@@ -3004,6 +3004,8 @@ export interface WalletLedger {
3004
3004
  create_time: Date | undefined;
3005
3005
  /** value */
3006
3006
  value: number;
3007
+ /** transaction id */
3008
+ transaction_id: string;
3007
3009
  }
3008
3010
  export interface WalletLedgerList {
3009
3011
  wallet_ledger: WalletLedger[];
@@ -3013,6 +3015,7 @@ export interface WalletLedgerList {
3013
3015
  export interface WalletLedgerListReq {
3014
3016
  limit: number | undefined;
3015
3017
  cursor: string;
3018
+ transaction_id: string;
3016
3019
  }
3017
3020
  export declare const Account: {
3018
3021
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
@@ -20804,22 +20807,26 @@ export declare const WalletLedger: {
20804
20807
  user_id?: string | undefined;
20805
20808
  create_time?: Date | undefined;
20806
20809
  value?: number | undefined;
20810
+ transaction_id?: string | undefined;
20807
20811
  } & {
20808
20812
  id?: string | undefined;
20809
20813
  user_id?: string | undefined;
20810
20814
  create_time?: Date | undefined;
20811
20815
  value?: number | undefined;
20816
+ transaction_id?: string | undefined;
20812
20817
  } & { [K in Exclude<keyof I, keyof WalletLedger>]: never; }>(base?: I | undefined): WalletLedger;
20813
20818
  fromPartial<I_1 extends {
20814
20819
  id?: string | undefined;
20815
20820
  user_id?: string | undefined;
20816
20821
  create_time?: Date | undefined;
20817
20822
  value?: number | undefined;
20823
+ transaction_id?: string | undefined;
20818
20824
  } & {
20819
20825
  id?: string | undefined;
20820
20826
  user_id?: string | undefined;
20821
20827
  create_time?: Date | undefined;
20822
20828
  value?: number | undefined;
20829
+ transaction_id?: string | undefined;
20823
20830
  } & { [K_1 in Exclude<keyof I_1, keyof WalletLedger>]: never; }>(object: I_1): WalletLedger;
20824
20831
  };
20825
20832
  export declare const WalletLedgerList: {
@@ -20833,6 +20840,7 @@ export declare const WalletLedgerList: {
20833
20840
  user_id?: string | undefined;
20834
20841
  create_time?: Date | undefined;
20835
20842
  value?: number | undefined;
20843
+ transaction_id?: string | undefined;
20836
20844
  }[] | undefined;
20837
20845
  prev_cursor?: string | undefined;
20838
20846
  next_cursor?: string | undefined;
@@ -20842,21 +20850,25 @@ export declare const WalletLedgerList: {
20842
20850
  user_id?: string | undefined;
20843
20851
  create_time?: Date | undefined;
20844
20852
  value?: number | undefined;
20853
+ transaction_id?: string | undefined;
20845
20854
  }[] & ({
20846
20855
  id?: string | undefined;
20847
20856
  user_id?: string | undefined;
20848
20857
  create_time?: Date | undefined;
20849
20858
  value?: number | undefined;
20859
+ transaction_id?: string | undefined;
20850
20860
  } & {
20851
20861
  id?: string | undefined;
20852
20862
  user_id?: string | undefined;
20853
20863
  create_time?: Date | undefined;
20854
20864
  value?: number | undefined;
20865
+ transaction_id?: string | undefined;
20855
20866
  } & { [K in Exclude<keyof I["wallet_ledger"][number], keyof WalletLedger>]: never; })[] & { [K_1 in Exclude<keyof I["wallet_ledger"], keyof {
20856
20867
  id?: string | undefined;
20857
20868
  user_id?: string | undefined;
20858
20869
  create_time?: Date | undefined;
20859
20870
  value?: number | undefined;
20871
+ transaction_id?: string | undefined;
20860
20872
  }[]>]: never; }) | undefined;
20861
20873
  prev_cursor?: string | undefined;
20862
20874
  next_cursor?: string | undefined;
@@ -20867,6 +20879,7 @@ export declare const WalletLedgerList: {
20867
20879
  user_id?: string | undefined;
20868
20880
  create_time?: Date | undefined;
20869
20881
  value?: number | undefined;
20882
+ transaction_id?: string | undefined;
20870
20883
  }[] | undefined;
20871
20884
  prev_cursor?: string | undefined;
20872
20885
  next_cursor?: string | undefined;
@@ -20876,21 +20889,25 @@ export declare const WalletLedgerList: {
20876
20889
  user_id?: string | undefined;
20877
20890
  create_time?: Date | undefined;
20878
20891
  value?: number | undefined;
20892
+ transaction_id?: string | undefined;
20879
20893
  }[] & ({
20880
20894
  id?: string | undefined;
20881
20895
  user_id?: string | undefined;
20882
20896
  create_time?: Date | undefined;
20883
20897
  value?: number | undefined;
20898
+ transaction_id?: string | undefined;
20884
20899
  } & {
20885
20900
  id?: string | undefined;
20886
20901
  user_id?: string | undefined;
20887
20902
  create_time?: Date | undefined;
20888
20903
  value?: number | undefined;
20904
+ transaction_id?: string | undefined;
20889
20905
  } & { [K_3 in Exclude<keyof I_1["wallet_ledger"][number], keyof WalletLedger>]: never; })[] & { [K_4 in Exclude<keyof I_1["wallet_ledger"], keyof {
20890
20906
  id?: string | undefined;
20891
20907
  user_id?: string | undefined;
20892
20908
  create_time?: Date | undefined;
20893
20909
  value?: number | undefined;
20910
+ transaction_id?: string | undefined;
20894
20911
  }[]>]: never; }) | undefined;
20895
20912
  prev_cursor?: string | undefined;
20896
20913
  next_cursor?: string | undefined;
@@ -20904,16 +20921,20 @@ export declare const WalletLedgerListReq: {
20904
20921
  create<I extends {
20905
20922
  limit?: number | undefined;
20906
20923
  cursor?: string | undefined;
20924
+ transaction_id?: string | undefined;
20907
20925
  } & {
20908
20926
  limit?: number | undefined;
20909
20927
  cursor?: string | undefined;
20928
+ transaction_id?: string | undefined;
20910
20929
  } & { [K in Exclude<keyof I, keyof WalletLedgerListReq>]: never; }>(base?: I | undefined): WalletLedgerListReq;
20911
20930
  fromPartial<I_1 extends {
20912
20931
  limit?: number | undefined;
20913
20932
  cursor?: string | undefined;
20933
+ transaction_id?: string | undefined;
20914
20934
  } & {
20915
20935
  limit?: number | undefined;
20916
20936
  cursor?: string | undefined;
20937
+ transaction_id?: string | undefined;
20917
20938
  } & { [K_1 in Exclude<keyof I_1, keyof WalletLedgerListReq>]: never; }>(object: I_1): WalletLedgerListReq;
20918
20939
  };
20919
20940
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.36",
3
+ "version": "1.6.37",
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",