mezon-js-protobuf 1.6.81 → 1.6.82

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
@@ -3518,6 +3518,8 @@ export interface TokenSentEvent {
3518
3518
  note: string;
3519
3519
  /** */
3520
3520
  extra_attribute: string;
3521
+ /** */
3522
+ transaction_id: string;
3521
3523
  }
3522
3524
 
3523
3525
  export interface WithdrawTokenRequest {
@@ -33896,7 +33898,15 @@ export const ListAuditLogRequest = {
33896
33898
  };
33897
33899
 
33898
33900
  function createBaseTokenSentEvent(): TokenSentEvent {
33899
- return { sender_id: "", sender_name: "", receiver_id: "", amount: 0, note: "", extra_attribute: "" };
33901
+ return {
33902
+ sender_id: "",
33903
+ sender_name: "",
33904
+ receiver_id: "",
33905
+ amount: 0,
33906
+ note: "",
33907
+ extra_attribute: "",
33908
+ transaction_id: "",
33909
+ };
33900
33910
  }
33901
33911
 
33902
33912
  export const TokenSentEvent = {
@@ -33919,6 +33929,9 @@ export const TokenSentEvent = {
33919
33929
  if (message.extra_attribute !== "") {
33920
33930
  writer.uint32(50).string(message.extra_attribute);
33921
33931
  }
33932
+ if (message.transaction_id !== "") {
33933
+ writer.uint32(58).string(message.transaction_id);
33934
+ }
33922
33935
  return writer;
33923
33936
  },
33924
33937
 
@@ -33971,6 +33984,13 @@ export const TokenSentEvent = {
33971
33984
 
33972
33985
  message.extra_attribute = reader.string();
33973
33986
  continue;
33987
+ case 7:
33988
+ if (tag !== 58) {
33989
+ break;
33990
+ }
33991
+
33992
+ message.transaction_id = reader.string();
33993
+ continue;
33974
33994
  }
33975
33995
  if ((tag & 7) === 4 || tag === 0) {
33976
33996
  break;
@@ -33988,6 +34008,7 @@ export const TokenSentEvent = {
33988
34008
  amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
33989
34009
  note: isSet(object.note) ? globalThis.String(object.note) : "",
33990
34010
  extra_attribute: isSet(object.extra_attribute) ? globalThis.String(object.extra_attribute) : "",
34011
+ transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
33991
34012
  };
33992
34013
  },
33993
34014
 
@@ -34011,6 +34032,9 @@ export const TokenSentEvent = {
34011
34032
  if (message.extra_attribute !== "") {
34012
34033
  obj.extra_attribute = message.extra_attribute;
34013
34034
  }
34035
+ if (message.transaction_id !== "") {
34036
+ obj.transaction_id = message.transaction_id;
34037
+ }
34014
34038
  return obj;
34015
34039
  },
34016
34040
 
@@ -34025,6 +34049,7 @@ export const TokenSentEvent = {
34025
34049
  message.amount = object.amount ?? 0;
34026
34050
  message.note = object.note ?? "";
34027
34051
  message.extra_attribute = object.extra_attribute ?? "";
34052
+ message.transaction_id = object.transaction_id ?? "";
34028
34053
  return message;
34029
34054
  },
34030
34055
  };
@@ -2817,6 +2817,8 @@ export interface TokenSentEvent {
2817
2817
  note: string;
2818
2818
  /** */
2819
2819
  extra_attribute: string;
2820
+ /** */
2821
+ transaction_id: string;
2820
2822
  }
2821
2823
  export interface WithdrawTokenRequest {
2822
2824
  /** amount of token */
@@ -19553,6 +19555,7 @@ export declare const TokenSentEvent: {
19553
19555
  amount?: number | undefined;
19554
19556
  note?: string | undefined;
19555
19557
  extra_attribute?: string | undefined;
19558
+ transaction_id?: string | undefined;
19556
19559
  } & {
19557
19560
  sender_id?: string | undefined;
19558
19561
  sender_name?: string | undefined;
@@ -19560,6 +19563,7 @@ export declare const TokenSentEvent: {
19560
19563
  amount?: number | undefined;
19561
19564
  note?: string | undefined;
19562
19565
  extra_attribute?: string | undefined;
19566
+ transaction_id?: string | undefined;
19563
19567
  } & { [K in Exclude<keyof I, keyof TokenSentEvent>]: never; }>(base?: I | undefined): TokenSentEvent;
19564
19568
  fromPartial<I_1 extends {
19565
19569
  sender_id?: string | undefined;
@@ -19568,6 +19572,7 @@ export declare const TokenSentEvent: {
19568
19572
  amount?: number | undefined;
19569
19573
  note?: string | undefined;
19570
19574
  extra_attribute?: string | undefined;
19575
+ transaction_id?: string | undefined;
19571
19576
  } & {
19572
19577
  sender_id?: string | undefined;
19573
19578
  sender_name?: string | undefined;
@@ -19575,6 +19580,7 @@ export declare const TokenSentEvent: {
19575
19580
  amount?: number | undefined;
19576
19581
  note?: string | undefined;
19577
19582
  extra_attribute?: string | undefined;
19583
+ transaction_id?: string | undefined;
19578
19584
  } & { [K_1 in Exclude<keyof I_1, keyof TokenSentEvent>]: never; }>(object: I_1): TokenSentEvent;
19579
19585
  };
19580
19586
  export declare const WithdrawTokenRequest: {
@@ -1747,6 +1747,7 @@ export declare const Envelope: {
1747
1747
  amount?: number | undefined;
1748
1748
  note?: string | undefined;
1749
1749
  extra_attribute?: string | undefined;
1750
+ transaction_id?: string | undefined;
1750
1751
  } | undefined;
1751
1752
  message_button_clicked?: {
1752
1753
  message_id?: string | undefined;
@@ -3953,6 +3954,7 @@ export declare const Envelope: {
3953
3954
  amount?: number | undefined;
3954
3955
  note?: string | undefined;
3955
3956
  extra_attribute?: string | undefined;
3957
+ transaction_id?: string | undefined;
3956
3958
  } & {
3957
3959
  sender_id?: string | undefined;
3958
3960
  sender_name?: string | undefined;
@@ -3960,6 +3962,7 @@ export declare const Envelope: {
3960
3962
  amount?: number | undefined;
3961
3963
  note?: string | undefined;
3962
3964
  extra_attribute?: string | undefined;
3965
+ transaction_id?: string | undefined;
3963
3966
  } & { [K_137 in Exclude<keyof I["token_sent_event"], keyof TokenSentEvent>]: never; }) | undefined;
3964
3967
  message_button_clicked?: ({
3965
3968
  message_id?: string | undefined;
@@ -4879,6 +4882,7 @@ export declare const Envelope: {
4879
4882
  amount?: number | undefined;
4880
4883
  note?: string | undefined;
4881
4884
  extra_attribute?: string | undefined;
4885
+ transaction_id?: string | undefined;
4882
4886
  } | undefined;
4883
4887
  message_button_clicked?: {
4884
4888
  message_id?: string | undefined;
@@ -7085,6 +7089,7 @@ export declare const Envelope: {
7085
7089
  amount?: number | undefined;
7086
7090
  note?: string | undefined;
7087
7091
  extra_attribute?: string | undefined;
7092
+ transaction_id?: string | undefined;
7088
7093
  } & {
7089
7094
  sender_id?: string | undefined;
7090
7095
  sender_name?: string | undefined;
@@ -7092,6 +7097,7 @@ export declare const Envelope: {
7092
7097
  amount?: number | undefined;
7093
7098
  note?: string | undefined;
7094
7099
  extra_attribute?: string | undefined;
7100
+ transaction_id?: string | undefined;
7095
7101
  } & { [K_292 in Exclude<keyof I_1["token_sent_event"], keyof TokenSentEvent>]: never; }) | undefined;
7096
7102
  message_button_clicked?: ({
7097
7103
  message_id?: string | undefined;
@@ -5972,7 +5972,15 @@ var UserActivity = {
5972
5972
  }
5973
5973
  };
5974
5974
  function createBaseTokenSentEvent() {
5975
- return { sender_id: "", sender_name: "", receiver_id: "", amount: 0, note: "", extra_attribute: "" };
5975
+ return {
5976
+ sender_id: "",
5977
+ sender_name: "",
5978
+ receiver_id: "",
5979
+ amount: 0,
5980
+ note: "",
5981
+ extra_attribute: "",
5982
+ transaction_id: ""
5983
+ };
5976
5984
  }
5977
5985
  var TokenSentEvent = {
5978
5986
  encode(message, writer = import_minimal4.default.Writer.create()) {
@@ -5994,6 +6002,9 @@ var TokenSentEvent = {
5994
6002
  if (message.extra_attribute !== "") {
5995
6003
  writer.uint32(50).string(message.extra_attribute);
5996
6004
  }
6005
+ if (message.transaction_id !== "") {
6006
+ writer.uint32(58).string(message.transaction_id);
6007
+ }
5997
6008
  return writer;
5998
6009
  },
5999
6010
  decode(input, length) {
@@ -6039,6 +6050,12 @@ var TokenSentEvent = {
6039
6050
  }
6040
6051
  message.extra_attribute = reader.string();
6041
6052
  continue;
6053
+ case 7:
6054
+ if (tag !== 58) {
6055
+ break;
6056
+ }
6057
+ message.transaction_id = reader.string();
6058
+ continue;
6042
6059
  }
6043
6060
  if ((tag & 7) === 4 || tag === 0) {
6044
6061
  break;
@@ -6054,7 +6071,8 @@ var TokenSentEvent = {
6054
6071
  receiver_id: isSet3(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
6055
6072
  amount: isSet3(object.amount) ? globalThis.Number(object.amount) : 0,
6056
6073
  note: isSet3(object.note) ? globalThis.String(object.note) : "",
6057
- extra_attribute: isSet3(object.extra_attribute) ? globalThis.String(object.extra_attribute) : ""
6074
+ extra_attribute: isSet3(object.extra_attribute) ? globalThis.String(object.extra_attribute) : "",
6075
+ transaction_id: isSet3(object.transaction_id) ? globalThis.String(object.transaction_id) : ""
6058
6076
  };
6059
6077
  },
6060
6078
  toJSON(message) {
@@ -6077,13 +6095,16 @@ var TokenSentEvent = {
6077
6095
  if (message.extra_attribute !== "") {
6078
6096
  obj.extra_attribute = message.extra_attribute;
6079
6097
  }
6098
+ if (message.transaction_id !== "") {
6099
+ obj.transaction_id = message.transaction_id;
6100
+ }
6080
6101
  return obj;
6081
6102
  },
6082
6103
  create(base) {
6083
6104
  return TokenSentEvent.fromPartial(base != null ? base : {});
6084
6105
  },
6085
6106
  fromPartial(object) {
6086
- var _a, _b, _c, _d, _e, _f;
6107
+ var _a, _b, _c, _d, _e, _f, _g;
6087
6108
  const message = createBaseTokenSentEvent();
6088
6109
  message.sender_id = (_a = object.sender_id) != null ? _a : "";
6089
6110
  message.sender_name = (_b = object.sender_name) != null ? _b : "";
@@ -6091,6 +6112,7 @@ var TokenSentEvent = {
6091
6112
  message.amount = (_d = object.amount) != null ? _d : 0;
6092
6113
  message.note = (_e = object.note) != null ? _e : "";
6093
6114
  message.extra_attribute = (_f = object.extra_attribute) != null ? _f : "";
6115
+ message.transaction_id = (_g = object.transaction_id) != null ? _g : "";
6094
6116
  return message;
6095
6117
  }
6096
6118
  };
@@ -5959,7 +5959,15 @@ var UserActivity = {
5959
5959
  }
5960
5960
  };
5961
5961
  function createBaseTokenSentEvent() {
5962
- return { sender_id: "", sender_name: "", receiver_id: "", amount: 0, note: "", extra_attribute: "" };
5962
+ return {
5963
+ sender_id: "",
5964
+ sender_name: "",
5965
+ receiver_id: "",
5966
+ amount: 0,
5967
+ note: "",
5968
+ extra_attribute: "",
5969
+ transaction_id: ""
5970
+ };
5963
5971
  }
5964
5972
  var TokenSentEvent = {
5965
5973
  encode(message, writer = import_minimal4.default.Writer.create()) {
@@ -5981,6 +5989,9 @@ var TokenSentEvent = {
5981
5989
  if (message.extra_attribute !== "") {
5982
5990
  writer.uint32(50).string(message.extra_attribute);
5983
5991
  }
5992
+ if (message.transaction_id !== "") {
5993
+ writer.uint32(58).string(message.transaction_id);
5994
+ }
5984
5995
  return writer;
5985
5996
  },
5986
5997
  decode(input, length) {
@@ -6026,6 +6037,12 @@ var TokenSentEvent = {
6026
6037
  }
6027
6038
  message.extra_attribute = reader.string();
6028
6039
  continue;
6040
+ case 7:
6041
+ if (tag !== 58) {
6042
+ break;
6043
+ }
6044
+ message.transaction_id = reader.string();
6045
+ continue;
6029
6046
  }
6030
6047
  if ((tag & 7) === 4 || tag === 0) {
6031
6048
  break;
@@ -6041,7 +6058,8 @@ var TokenSentEvent = {
6041
6058
  receiver_id: isSet3(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
6042
6059
  amount: isSet3(object.amount) ? globalThis.Number(object.amount) : 0,
6043
6060
  note: isSet3(object.note) ? globalThis.String(object.note) : "",
6044
- extra_attribute: isSet3(object.extra_attribute) ? globalThis.String(object.extra_attribute) : ""
6061
+ extra_attribute: isSet3(object.extra_attribute) ? globalThis.String(object.extra_attribute) : "",
6062
+ transaction_id: isSet3(object.transaction_id) ? globalThis.String(object.transaction_id) : ""
6045
6063
  };
6046
6064
  },
6047
6065
  toJSON(message) {
@@ -6064,13 +6082,16 @@ var TokenSentEvent = {
6064
6082
  if (message.extra_attribute !== "") {
6065
6083
  obj.extra_attribute = message.extra_attribute;
6066
6084
  }
6085
+ if (message.transaction_id !== "") {
6086
+ obj.transaction_id = message.transaction_id;
6087
+ }
6067
6088
  return obj;
6068
6089
  },
6069
6090
  create(base) {
6070
6091
  return TokenSentEvent.fromPartial(base != null ? base : {});
6071
6092
  },
6072
6093
  fromPartial(object) {
6073
- var _a, _b, _c, _d, _e, _f;
6094
+ var _a, _b, _c, _d, _e, _f, _g;
6074
6095
  const message = createBaseTokenSentEvent();
6075
6096
  message.sender_id = (_a = object.sender_id) != null ? _a : "";
6076
6097
  message.sender_name = (_b = object.sender_name) != null ? _b : "";
@@ -6078,6 +6099,7 @@ var TokenSentEvent = {
6078
6099
  message.amount = (_d = object.amount) != null ? _d : 0;
6079
6100
  message.note = (_e = object.note) != null ? _e : "";
6080
6101
  message.extra_attribute = (_f = object.extra_attribute) != null ? _f : "";
6102
+ message.transaction_id = (_g = object.transaction_id) != null ? _g : "";
6081
6103
  return message;
6082
6104
  }
6083
6105
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.81",
3
+ "version": "1.6.82",
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",