mezon-js-protobuf 1.6.80 → 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
|
@@ -3516,6 +3516,10 @@ export interface TokenSentEvent {
|
|
|
3516
3516
|
amount: number;
|
|
3517
3517
|
/** note */
|
|
3518
3518
|
note: string;
|
|
3519
|
+
/** */
|
|
3520
|
+
extra_attribute: string;
|
|
3521
|
+
/** */
|
|
3522
|
+
transaction_id: string;
|
|
3519
3523
|
}
|
|
3520
3524
|
|
|
3521
3525
|
export interface WithdrawTokenRequest {
|
|
@@ -33894,7 +33898,15 @@ export const ListAuditLogRequest = {
|
|
|
33894
33898
|
};
|
|
33895
33899
|
|
|
33896
33900
|
function createBaseTokenSentEvent(): TokenSentEvent {
|
|
33897
|
-
return {
|
|
33901
|
+
return {
|
|
33902
|
+
sender_id: "",
|
|
33903
|
+
sender_name: "",
|
|
33904
|
+
receiver_id: "",
|
|
33905
|
+
amount: 0,
|
|
33906
|
+
note: "",
|
|
33907
|
+
extra_attribute: "",
|
|
33908
|
+
transaction_id: "",
|
|
33909
|
+
};
|
|
33898
33910
|
}
|
|
33899
33911
|
|
|
33900
33912
|
export const TokenSentEvent = {
|
|
@@ -33914,6 +33926,12 @@ export const TokenSentEvent = {
|
|
|
33914
33926
|
if (message.note !== "") {
|
|
33915
33927
|
writer.uint32(42).string(message.note);
|
|
33916
33928
|
}
|
|
33929
|
+
if (message.extra_attribute !== "") {
|
|
33930
|
+
writer.uint32(50).string(message.extra_attribute);
|
|
33931
|
+
}
|
|
33932
|
+
if (message.transaction_id !== "") {
|
|
33933
|
+
writer.uint32(58).string(message.transaction_id);
|
|
33934
|
+
}
|
|
33917
33935
|
return writer;
|
|
33918
33936
|
},
|
|
33919
33937
|
|
|
@@ -33959,6 +33977,20 @@ export const TokenSentEvent = {
|
|
|
33959
33977
|
|
|
33960
33978
|
message.note = reader.string();
|
|
33961
33979
|
continue;
|
|
33980
|
+
case 6:
|
|
33981
|
+
if (tag !== 50) {
|
|
33982
|
+
break;
|
|
33983
|
+
}
|
|
33984
|
+
|
|
33985
|
+
message.extra_attribute = reader.string();
|
|
33986
|
+
continue;
|
|
33987
|
+
case 7:
|
|
33988
|
+
if (tag !== 58) {
|
|
33989
|
+
break;
|
|
33990
|
+
}
|
|
33991
|
+
|
|
33992
|
+
message.transaction_id = reader.string();
|
|
33993
|
+
continue;
|
|
33962
33994
|
}
|
|
33963
33995
|
if ((tag & 7) === 4 || tag === 0) {
|
|
33964
33996
|
break;
|
|
@@ -33975,6 +34007,8 @@ export const TokenSentEvent = {
|
|
|
33975
34007
|
receiver_id: isSet(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
|
|
33976
34008
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
33977
34009
|
note: isSet(object.note) ? globalThis.String(object.note) : "",
|
|
34010
|
+
extra_attribute: isSet(object.extra_attribute) ? globalThis.String(object.extra_attribute) : "",
|
|
34011
|
+
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
33978
34012
|
};
|
|
33979
34013
|
},
|
|
33980
34014
|
|
|
@@ -33995,6 +34029,12 @@ export const TokenSentEvent = {
|
|
|
33995
34029
|
if (message.note !== "") {
|
|
33996
34030
|
obj.note = message.note;
|
|
33997
34031
|
}
|
|
34032
|
+
if (message.extra_attribute !== "") {
|
|
34033
|
+
obj.extra_attribute = message.extra_attribute;
|
|
34034
|
+
}
|
|
34035
|
+
if (message.transaction_id !== "") {
|
|
34036
|
+
obj.transaction_id = message.transaction_id;
|
|
34037
|
+
}
|
|
33998
34038
|
return obj;
|
|
33999
34039
|
},
|
|
34000
34040
|
|
|
@@ -34008,6 +34048,8 @@ export const TokenSentEvent = {
|
|
|
34008
34048
|
message.receiver_id = object.receiver_id ?? "";
|
|
34009
34049
|
message.amount = object.amount ?? 0;
|
|
34010
34050
|
message.note = object.note ?? "";
|
|
34051
|
+
message.extra_attribute = object.extra_attribute ?? "";
|
|
34052
|
+
message.transaction_id = object.transaction_id ?? "";
|
|
34011
34053
|
return message;
|
|
34012
34054
|
},
|
|
34013
34055
|
};
|
|
@@ -2815,6 +2815,10 @@ export interface TokenSentEvent {
|
|
|
2815
2815
|
amount: number;
|
|
2816
2816
|
/** note */
|
|
2817
2817
|
note: string;
|
|
2818
|
+
/** */
|
|
2819
|
+
extra_attribute: string;
|
|
2820
|
+
/** */
|
|
2821
|
+
transaction_id: string;
|
|
2818
2822
|
}
|
|
2819
2823
|
export interface WithdrawTokenRequest {
|
|
2820
2824
|
/** amount of token */
|
|
@@ -19550,12 +19554,16 @@ export declare const TokenSentEvent: {
|
|
|
19550
19554
|
receiver_id?: string | undefined;
|
|
19551
19555
|
amount?: number | undefined;
|
|
19552
19556
|
note?: string | undefined;
|
|
19557
|
+
extra_attribute?: string | undefined;
|
|
19558
|
+
transaction_id?: string | undefined;
|
|
19553
19559
|
} & {
|
|
19554
19560
|
sender_id?: string | undefined;
|
|
19555
19561
|
sender_name?: string | undefined;
|
|
19556
19562
|
receiver_id?: string | undefined;
|
|
19557
19563
|
amount?: number | undefined;
|
|
19558
19564
|
note?: string | undefined;
|
|
19565
|
+
extra_attribute?: string | undefined;
|
|
19566
|
+
transaction_id?: string | undefined;
|
|
19559
19567
|
} & { [K in Exclude<keyof I, keyof TokenSentEvent>]: never; }>(base?: I | undefined): TokenSentEvent;
|
|
19560
19568
|
fromPartial<I_1 extends {
|
|
19561
19569
|
sender_id?: string | undefined;
|
|
@@ -19563,12 +19571,16 @@ export declare const TokenSentEvent: {
|
|
|
19563
19571
|
receiver_id?: string | undefined;
|
|
19564
19572
|
amount?: number | undefined;
|
|
19565
19573
|
note?: string | undefined;
|
|
19574
|
+
extra_attribute?: string | undefined;
|
|
19575
|
+
transaction_id?: string | undefined;
|
|
19566
19576
|
} & {
|
|
19567
19577
|
sender_id?: string | undefined;
|
|
19568
19578
|
sender_name?: string | undefined;
|
|
19569
19579
|
receiver_id?: string | undefined;
|
|
19570
19580
|
amount?: number | undefined;
|
|
19571
19581
|
note?: string | undefined;
|
|
19582
|
+
extra_attribute?: string | undefined;
|
|
19583
|
+
transaction_id?: string | undefined;
|
|
19572
19584
|
} & { [K_1 in Exclude<keyof I_1, keyof TokenSentEvent>]: never; }>(object: I_1): TokenSentEvent;
|
|
19573
19585
|
};
|
|
19574
19586
|
export declare const WithdrawTokenRequest: {
|
|
@@ -1746,6 +1746,8 @@ export declare const Envelope: {
|
|
|
1746
1746
|
receiver_id?: string | undefined;
|
|
1747
1747
|
amount?: number | undefined;
|
|
1748
1748
|
note?: string | undefined;
|
|
1749
|
+
extra_attribute?: string | undefined;
|
|
1750
|
+
transaction_id?: string | undefined;
|
|
1749
1751
|
} | undefined;
|
|
1750
1752
|
message_button_clicked?: {
|
|
1751
1753
|
message_id?: string | undefined;
|
|
@@ -3951,12 +3953,16 @@ export declare const Envelope: {
|
|
|
3951
3953
|
receiver_id?: string | undefined;
|
|
3952
3954
|
amount?: number | undefined;
|
|
3953
3955
|
note?: string | undefined;
|
|
3956
|
+
extra_attribute?: string | undefined;
|
|
3957
|
+
transaction_id?: string | undefined;
|
|
3954
3958
|
} & {
|
|
3955
3959
|
sender_id?: string | undefined;
|
|
3956
3960
|
sender_name?: string | undefined;
|
|
3957
3961
|
receiver_id?: string | undefined;
|
|
3958
3962
|
amount?: number | undefined;
|
|
3959
3963
|
note?: string | undefined;
|
|
3964
|
+
extra_attribute?: string | undefined;
|
|
3965
|
+
transaction_id?: string | undefined;
|
|
3960
3966
|
} & { [K_137 in Exclude<keyof I["token_sent_event"], keyof TokenSentEvent>]: never; }) | undefined;
|
|
3961
3967
|
message_button_clicked?: ({
|
|
3962
3968
|
message_id?: string | undefined;
|
|
@@ -4875,6 +4881,8 @@ export declare const Envelope: {
|
|
|
4875
4881
|
receiver_id?: string | undefined;
|
|
4876
4882
|
amount?: number | undefined;
|
|
4877
4883
|
note?: string | undefined;
|
|
4884
|
+
extra_attribute?: string | undefined;
|
|
4885
|
+
transaction_id?: string | undefined;
|
|
4878
4886
|
} | undefined;
|
|
4879
4887
|
message_button_clicked?: {
|
|
4880
4888
|
message_id?: string | undefined;
|
|
@@ -7080,12 +7088,16 @@ export declare const Envelope: {
|
|
|
7080
7088
|
receiver_id?: string | undefined;
|
|
7081
7089
|
amount?: number | undefined;
|
|
7082
7090
|
note?: string | undefined;
|
|
7091
|
+
extra_attribute?: string | undefined;
|
|
7092
|
+
transaction_id?: string | undefined;
|
|
7083
7093
|
} & {
|
|
7084
7094
|
sender_id?: string | undefined;
|
|
7085
7095
|
sender_name?: string | undefined;
|
|
7086
7096
|
receiver_id?: string | undefined;
|
|
7087
7097
|
amount?: number | undefined;
|
|
7088
7098
|
note?: string | undefined;
|
|
7099
|
+
extra_attribute?: string | undefined;
|
|
7100
|
+
transaction_id?: string | undefined;
|
|
7089
7101
|
} & { [K_292 in Exclude<keyof I_1["token_sent_event"], keyof TokenSentEvent>]: never; }) | undefined;
|
|
7090
7102
|
message_button_clicked?: ({
|
|
7091
7103
|
message_id?: string | undefined;
|
|
@@ -5972,7 +5972,15 @@ var UserActivity = {
|
|
|
5972
5972
|
}
|
|
5973
5973
|
};
|
|
5974
5974
|
function createBaseTokenSentEvent() {
|
|
5975
|
-
return {
|
|
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()) {
|
|
@@ -5991,6 +5999,12 @@ var TokenSentEvent = {
|
|
|
5991
5999
|
if (message.note !== "") {
|
|
5992
6000
|
writer.uint32(42).string(message.note);
|
|
5993
6001
|
}
|
|
6002
|
+
if (message.extra_attribute !== "") {
|
|
6003
|
+
writer.uint32(50).string(message.extra_attribute);
|
|
6004
|
+
}
|
|
6005
|
+
if (message.transaction_id !== "") {
|
|
6006
|
+
writer.uint32(58).string(message.transaction_id);
|
|
6007
|
+
}
|
|
5994
6008
|
return writer;
|
|
5995
6009
|
},
|
|
5996
6010
|
decode(input, length) {
|
|
@@ -6030,6 +6044,18 @@ var TokenSentEvent = {
|
|
|
6030
6044
|
}
|
|
6031
6045
|
message.note = reader.string();
|
|
6032
6046
|
continue;
|
|
6047
|
+
case 6:
|
|
6048
|
+
if (tag !== 50) {
|
|
6049
|
+
break;
|
|
6050
|
+
}
|
|
6051
|
+
message.extra_attribute = reader.string();
|
|
6052
|
+
continue;
|
|
6053
|
+
case 7:
|
|
6054
|
+
if (tag !== 58) {
|
|
6055
|
+
break;
|
|
6056
|
+
}
|
|
6057
|
+
message.transaction_id = reader.string();
|
|
6058
|
+
continue;
|
|
6033
6059
|
}
|
|
6034
6060
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6035
6061
|
break;
|
|
@@ -6044,7 +6070,9 @@ var TokenSentEvent = {
|
|
|
6044
6070
|
sender_name: isSet3(object.sender_name) ? globalThis.String(object.sender_name) : "",
|
|
6045
6071
|
receiver_id: isSet3(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
|
|
6046
6072
|
amount: isSet3(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
6047
|
-
note: isSet3(object.note) ? globalThis.String(object.note) : ""
|
|
6073
|
+
note: isSet3(object.note) ? globalThis.String(object.note) : "",
|
|
6074
|
+
extra_attribute: isSet3(object.extra_attribute) ? globalThis.String(object.extra_attribute) : "",
|
|
6075
|
+
transaction_id: isSet3(object.transaction_id) ? globalThis.String(object.transaction_id) : ""
|
|
6048
6076
|
};
|
|
6049
6077
|
},
|
|
6050
6078
|
toJSON(message) {
|
|
@@ -6064,19 +6092,27 @@ var TokenSentEvent = {
|
|
|
6064
6092
|
if (message.note !== "") {
|
|
6065
6093
|
obj.note = message.note;
|
|
6066
6094
|
}
|
|
6095
|
+
if (message.extra_attribute !== "") {
|
|
6096
|
+
obj.extra_attribute = message.extra_attribute;
|
|
6097
|
+
}
|
|
6098
|
+
if (message.transaction_id !== "") {
|
|
6099
|
+
obj.transaction_id = message.transaction_id;
|
|
6100
|
+
}
|
|
6067
6101
|
return obj;
|
|
6068
6102
|
},
|
|
6069
6103
|
create(base) {
|
|
6070
6104
|
return TokenSentEvent.fromPartial(base != null ? base : {});
|
|
6071
6105
|
},
|
|
6072
6106
|
fromPartial(object) {
|
|
6073
|
-
var _a, _b, _c, _d, _e;
|
|
6107
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6074
6108
|
const message = createBaseTokenSentEvent();
|
|
6075
6109
|
message.sender_id = (_a = object.sender_id) != null ? _a : "";
|
|
6076
6110
|
message.sender_name = (_b = object.sender_name) != null ? _b : "";
|
|
6077
6111
|
message.receiver_id = (_c = object.receiver_id) != null ? _c : "";
|
|
6078
6112
|
message.amount = (_d = object.amount) != null ? _d : 0;
|
|
6079
6113
|
message.note = (_e = object.note) != null ? _e : "";
|
|
6114
|
+
message.extra_attribute = (_f = object.extra_attribute) != null ? _f : "";
|
|
6115
|
+
message.transaction_id = (_g = object.transaction_id) != null ? _g : "";
|
|
6080
6116
|
return message;
|
|
6081
6117
|
}
|
|
6082
6118
|
};
|
|
@@ -5959,7 +5959,15 @@ var UserActivity = {
|
|
|
5959
5959
|
}
|
|
5960
5960
|
};
|
|
5961
5961
|
function createBaseTokenSentEvent() {
|
|
5962
|
-
return {
|
|
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()) {
|
|
@@ -5978,6 +5986,12 @@ var TokenSentEvent = {
|
|
|
5978
5986
|
if (message.note !== "") {
|
|
5979
5987
|
writer.uint32(42).string(message.note);
|
|
5980
5988
|
}
|
|
5989
|
+
if (message.extra_attribute !== "") {
|
|
5990
|
+
writer.uint32(50).string(message.extra_attribute);
|
|
5991
|
+
}
|
|
5992
|
+
if (message.transaction_id !== "") {
|
|
5993
|
+
writer.uint32(58).string(message.transaction_id);
|
|
5994
|
+
}
|
|
5981
5995
|
return writer;
|
|
5982
5996
|
},
|
|
5983
5997
|
decode(input, length) {
|
|
@@ -6017,6 +6031,18 @@ var TokenSentEvent = {
|
|
|
6017
6031
|
}
|
|
6018
6032
|
message.note = reader.string();
|
|
6019
6033
|
continue;
|
|
6034
|
+
case 6:
|
|
6035
|
+
if (tag !== 50) {
|
|
6036
|
+
break;
|
|
6037
|
+
}
|
|
6038
|
+
message.extra_attribute = reader.string();
|
|
6039
|
+
continue;
|
|
6040
|
+
case 7:
|
|
6041
|
+
if (tag !== 58) {
|
|
6042
|
+
break;
|
|
6043
|
+
}
|
|
6044
|
+
message.transaction_id = reader.string();
|
|
6045
|
+
continue;
|
|
6020
6046
|
}
|
|
6021
6047
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6022
6048
|
break;
|
|
@@ -6031,7 +6057,9 @@ var TokenSentEvent = {
|
|
|
6031
6057
|
sender_name: isSet3(object.sender_name) ? globalThis.String(object.sender_name) : "",
|
|
6032
6058
|
receiver_id: isSet3(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
|
|
6033
6059
|
amount: isSet3(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
6034
|
-
note: isSet3(object.note) ? globalThis.String(object.note) : ""
|
|
6060
|
+
note: isSet3(object.note) ? globalThis.String(object.note) : "",
|
|
6061
|
+
extra_attribute: isSet3(object.extra_attribute) ? globalThis.String(object.extra_attribute) : "",
|
|
6062
|
+
transaction_id: isSet3(object.transaction_id) ? globalThis.String(object.transaction_id) : ""
|
|
6035
6063
|
};
|
|
6036
6064
|
},
|
|
6037
6065
|
toJSON(message) {
|
|
@@ -6051,19 +6079,27 @@ var TokenSentEvent = {
|
|
|
6051
6079
|
if (message.note !== "") {
|
|
6052
6080
|
obj.note = message.note;
|
|
6053
6081
|
}
|
|
6082
|
+
if (message.extra_attribute !== "") {
|
|
6083
|
+
obj.extra_attribute = message.extra_attribute;
|
|
6084
|
+
}
|
|
6085
|
+
if (message.transaction_id !== "") {
|
|
6086
|
+
obj.transaction_id = message.transaction_id;
|
|
6087
|
+
}
|
|
6054
6088
|
return obj;
|
|
6055
6089
|
},
|
|
6056
6090
|
create(base) {
|
|
6057
6091
|
return TokenSentEvent.fromPartial(base != null ? base : {});
|
|
6058
6092
|
},
|
|
6059
6093
|
fromPartial(object) {
|
|
6060
|
-
var _a, _b, _c, _d, _e;
|
|
6094
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6061
6095
|
const message = createBaseTokenSentEvent();
|
|
6062
6096
|
message.sender_id = (_a = object.sender_id) != null ? _a : "";
|
|
6063
6097
|
message.sender_name = (_b = object.sender_name) != null ? _b : "";
|
|
6064
6098
|
message.receiver_id = (_c = object.receiver_id) != null ? _c : "";
|
|
6065
6099
|
message.amount = (_d = object.amount) != null ? _d : 0;
|
|
6066
6100
|
message.note = (_e = object.note) != null ? _e : "";
|
|
6101
|
+
message.extra_attribute = (_f = object.extra_attribute) != null ? _f : "";
|
|
6102
|
+
message.transaction_id = (_g = object.transaction_id) != null ? _g : "";
|
|
6067
6103
|
return message;
|
|
6068
6104
|
}
|
|
6069
6105
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.6.
|
|
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",
|