protobuf-platform 1.2.122 → 1.2.123
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/package.json +1 -1
- package/sport/sport.proto +8 -7
- package/sport/sport_pb.js +97 -49
- package/user/user.proto +6 -0
- package/user/user_grpc_pb.js +22 -0
- package/user/user_pb.js +230 -0
package/package.json
CHANGED
package/sport/sport.proto
CHANGED
|
@@ -19,22 +19,23 @@ message PaginationRequest {
|
|
|
19
19
|
// Launch request for Betby sportsbook.
|
|
20
20
|
message LaunchBetbyRequest {
|
|
21
21
|
// Optional: internal user identifier, empty for guest.
|
|
22
|
-
optional
|
|
22
|
+
optional int32 user_id = 1;
|
|
23
|
+
optional string user_public_id = 2;
|
|
23
24
|
|
|
24
25
|
// Player currency, e.g. "EUR".
|
|
25
|
-
optional string currency =
|
|
26
|
+
optional string currency = 3;
|
|
26
27
|
|
|
27
28
|
// Player language, e.g. "en-US".
|
|
28
|
-
optional string language =
|
|
29
|
+
optional string language = 4;
|
|
29
30
|
|
|
30
31
|
// URL to return player after sportsbook session end.
|
|
31
|
-
optional string return_url =
|
|
32
|
+
optional string return_url = 5;
|
|
32
33
|
|
|
33
34
|
// Client IP address for Betby (X-Client-Ip).
|
|
34
|
-
optional string client_ip =
|
|
35
|
+
optional string client_ip = 6;
|
|
35
36
|
|
|
36
|
-
optional string player_name =
|
|
37
|
-
optional string session_id =
|
|
37
|
+
optional string player_name = 7;
|
|
38
|
+
optional string session_id = 8;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
// Launch response with rendered Betby widget.
|
package/sport/sport_pb.js
CHANGED
|
@@ -675,13 +675,14 @@ proto.sport.LaunchBetbyRequest.prototype.toObject = function(opt_includeInstance
|
|
|
675
675
|
*/
|
|
676
676
|
proto.sport.LaunchBetbyRequest.toObject = function(includeInstance, msg) {
|
|
677
677
|
var f, obj = {
|
|
678
|
-
userId: jspb.Message.getFieldWithDefault(msg, 1,
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
678
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
679
|
+
userPublicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
680
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
681
|
+
language: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
682
|
+
returnUrl: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
683
|
+
clientIp: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
684
|
+
playerName: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
685
|
+
sessionId: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
685
686
|
};
|
|
686
687
|
|
|
687
688
|
if (includeInstance) {
|
|
@@ -719,30 +720,34 @@ proto.sport.LaunchBetbyRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
719
720
|
var field = reader.getFieldNumber();
|
|
720
721
|
switch (field) {
|
|
721
722
|
case 1:
|
|
722
|
-
var value = /** @type {
|
|
723
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
723
724
|
msg.setUserId(value);
|
|
724
725
|
break;
|
|
725
726
|
case 2:
|
|
726
727
|
var value = /** @type {string} */ (reader.readString());
|
|
727
|
-
msg.
|
|
728
|
+
msg.setUserPublicId(value);
|
|
728
729
|
break;
|
|
729
730
|
case 3:
|
|
730
731
|
var value = /** @type {string} */ (reader.readString());
|
|
731
|
-
msg.
|
|
732
|
+
msg.setCurrency(value);
|
|
732
733
|
break;
|
|
733
734
|
case 4:
|
|
734
735
|
var value = /** @type {string} */ (reader.readString());
|
|
735
|
-
msg.
|
|
736
|
+
msg.setLanguage(value);
|
|
736
737
|
break;
|
|
737
738
|
case 5:
|
|
738
739
|
var value = /** @type {string} */ (reader.readString());
|
|
739
|
-
msg.
|
|
740
|
+
msg.setReturnUrl(value);
|
|
740
741
|
break;
|
|
741
742
|
case 6:
|
|
742
743
|
var value = /** @type {string} */ (reader.readString());
|
|
743
|
-
msg.
|
|
744
|
+
msg.setClientIp(value);
|
|
744
745
|
break;
|
|
745
746
|
case 7:
|
|
747
|
+
var value = /** @type {string} */ (reader.readString());
|
|
748
|
+
msg.setPlayerName(value);
|
|
749
|
+
break;
|
|
750
|
+
case 8:
|
|
746
751
|
var value = /** @type {string} */ (reader.readString());
|
|
747
752
|
msg.setSessionId(value);
|
|
748
753
|
break;
|
|
@@ -775,9 +780,9 @@ proto.sport.LaunchBetbyRequest.prototype.serializeBinary = function() {
|
|
|
775
780
|
*/
|
|
776
781
|
proto.sport.LaunchBetbyRequest.serializeBinaryToWriter = function(message, writer) {
|
|
777
782
|
var f = undefined;
|
|
778
|
-
f = /** @type {
|
|
783
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
779
784
|
if (f != null) {
|
|
780
|
-
writer.
|
|
785
|
+
writer.writeInt32(
|
|
781
786
|
1,
|
|
782
787
|
f
|
|
783
788
|
);
|
|
@@ -824,20 +829,27 @@ proto.sport.LaunchBetbyRequest.serializeBinaryToWriter = function(message, write
|
|
|
824
829
|
f
|
|
825
830
|
);
|
|
826
831
|
}
|
|
832
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
833
|
+
if (f != null) {
|
|
834
|
+
writer.writeString(
|
|
835
|
+
8,
|
|
836
|
+
f
|
|
837
|
+
);
|
|
838
|
+
}
|
|
827
839
|
};
|
|
828
840
|
|
|
829
841
|
|
|
830
842
|
/**
|
|
831
|
-
* optional
|
|
832
|
-
* @return {
|
|
843
|
+
* optional int32 user_id = 1;
|
|
844
|
+
* @return {number}
|
|
833
845
|
*/
|
|
834
846
|
proto.sport.LaunchBetbyRequest.prototype.getUserId = function() {
|
|
835
|
-
return /** @type {
|
|
847
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
836
848
|
};
|
|
837
849
|
|
|
838
850
|
|
|
839
851
|
/**
|
|
840
|
-
* @param {
|
|
852
|
+
* @param {number} value
|
|
841
853
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
842
854
|
*/
|
|
843
855
|
proto.sport.LaunchBetbyRequest.prototype.setUserId = function(value) {
|
|
@@ -864,10 +876,10 @@ proto.sport.LaunchBetbyRequest.prototype.hasUserId = function() {
|
|
|
864
876
|
|
|
865
877
|
|
|
866
878
|
/**
|
|
867
|
-
* optional string
|
|
879
|
+
* optional string user_public_id = 2;
|
|
868
880
|
* @return {string}
|
|
869
881
|
*/
|
|
870
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
882
|
+
proto.sport.LaunchBetbyRequest.prototype.getUserPublicId = function() {
|
|
871
883
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
872
884
|
};
|
|
873
885
|
|
|
@@ -876,7 +888,7 @@ proto.sport.LaunchBetbyRequest.prototype.getCurrency = function() {
|
|
|
876
888
|
* @param {string} value
|
|
877
889
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
878
890
|
*/
|
|
879
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
891
|
+
proto.sport.LaunchBetbyRequest.prototype.setUserPublicId = function(value) {
|
|
880
892
|
return jspb.Message.setField(this, 2, value);
|
|
881
893
|
};
|
|
882
894
|
|
|
@@ -885,7 +897,7 @@ proto.sport.LaunchBetbyRequest.prototype.setCurrency = function(value) {
|
|
|
885
897
|
* Clears the field making it undefined.
|
|
886
898
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
887
899
|
*/
|
|
888
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
900
|
+
proto.sport.LaunchBetbyRequest.prototype.clearUserPublicId = function() {
|
|
889
901
|
return jspb.Message.setField(this, 2, undefined);
|
|
890
902
|
};
|
|
891
903
|
|
|
@@ -894,16 +906,16 @@ proto.sport.LaunchBetbyRequest.prototype.clearCurrency = function() {
|
|
|
894
906
|
* Returns whether this field is set.
|
|
895
907
|
* @return {boolean}
|
|
896
908
|
*/
|
|
897
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
909
|
+
proto.sport.LaunchBetbyRequest.prototype.hasUserPublicId = function() {
|
|
898
910
|
return jspb.Message.getField(this, 2) != null;
|
|
899
911
|
};
|
|
900
912
|
|
|
901
913
|
|
|
902
914
|
/**
|
|
903
|
-
* optional string
|
|
915
|
+
* optional string currency = 3;
|
|
904
916
|
* @return {string}
|
|
905
917
|
*/
|
|
906
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
918
|
+
proto.sport.LaunchBetbyRequest.prototype.getCurrency = function() {
|
|
907
919
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
908
920
|
};
|
|
909
921
|
|
|
@@ -912,7 +924,7 @@ proto.sport.LaunchBetbyRequest.prototype.getLanguage = function() {
|
|
|
912
924
|
* @param {string} value
|
|
913
925
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
914
926
|
*/
|
|
915
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
927
|
+
proto.sport.LaunchBetbyRequest.prototype.setCurrency = function(value) {
|
|
916
928
|
return jspb.Message.setField(this, 3, value);
|
|
917
929
|
};
|
|
918
930
|
|
|
@@ -921,7 +933,7 @@ proto.sport.LaunchBetbyRequest.prototype.setLanguage = function(value) {
|
|
|
921
933
|
* Clears the field making it undefined.
|
|
922
934
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
923
935
|
*/
|
|
924
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
936
|
+
proto.sport.LaunchBetbyRequest.prototype.clearCurrency = function() {
|
|
925
937
|
return jspb.Message.setField(this, 3, undefined);
|
|
926
938
|
};
|
|
927
939
|
|
|
@@ -930,16 +942,16 @@ proto.sport.LaunchBetbyRequest.prototype.clearLanguage = function() {
|
|
|
930
942
|
* Returns whether this field is set.
|
|
931
943
|
* @return {boolean}
|
|
932
944
|
*/
|
|
933
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
945
|
+
proto.sport.LaunchBetbyRequest.prototype.hasCurrency = function() {
|
|
934
946
|
return jspb.Message.getField(this, 3) != null;
|
|
935
947
|
};
|
|
936
948
|
|
|
937
949
|
|
|
938
950
|
/**
|
|
939
|
-
* optional string
|
|
951
|
+
* optional string language = 4;
|
|
940
952
|
* @return {string}
|
|
941
953
|
*/
|
|
942
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
954
|
+
proto.sport.LaunchBetbyRequest.prototype.getLanguage = function() {
|
|
943
955
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
944
956
|
};
|
|
945
957
|
|
|
@@ -948,7 +960,7 @@ proto.sport.LaunchBetbyRequest.prototype.getReturnUrl = function() {
|
|
|
948
960
|
* @param {string} value
|
|
949
961
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
950
962
|
*/
|
|
951
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
963
|
+
proto.sport.LaunchBetbyRequest.prototype.setLanguage = function(value) {
|
|
952
964
|
return jspb.Message.setField(this, 4, value);
|
|
953
965
|
};
|
|
954
966
|
|
|
@@ -957,7 +969,7 @@ proto.sport.LaunchBetbyRequest.prototype.setReturnUrl = function(value) {
|
|
|
957
969
|
* Clears the field making it undefined.
|
|
958
970
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
959
971
|
*/
|
|
960
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
972
|
+
proto.sport.LaunchBetbyRequest.prototype.clearLanguage = function() {
|
|
961
973
|
return jspb.Message.setField(this, 4, undefined);
|
|
962
974
|
};
|
|
963
975
|
|
|
@@ -966,16 +978,16 @@ proto.sport.LaunchBetbyRequest.prototype.clearReturnUrl = function() {
|
|
|
966
978
|
* Returns whether this field is set.
|
|
967
979
|
* @return {boolean}
|
|
968
980
|
*/
|
|
969
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
981
|
+
proto.sport.LaunchBetbyRequest.prototype.hasLanguage = function() {
|
|
970
982
|
return jspb.Message.getField(this, 4) != null;
|
|
971
983
|
};
|
|
972
984
|
|
|
973
985
|
|
|
974
986
|
/**
|
|
975
|
-
* optional string
|
|
987
|
+
* optional string return_url = 5;
|
|
976
988
|
* @return {string}
|
|
977
989
|
*/
|
|
978
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
990
|
+
proto.sport.LaunchBetbyRequest.prototype.getReturnUrl = function() {
|
|
979
991
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
980
992
|
};
|
|
981
993
|
|
|
@@ -984,7 +996,7 @@ proto.sport.LaunchBetbyRequest.prototype.getClientIp = function() {
|
|
|
984
996
|
* @param {string} value
|
|
985
997
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
986
998
|
*/
|
|
987
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
999
|
+
proto.sport.LaunchBetbyRequest.prototype.setReturnUrl = function(value) {
|
|
988
1000
|
return jspb.Message.setField(this, 5, value);
|
|
989
1001
|
};
|
|
990
1002
|
|
|
@@ -993,7 +1005,7 @@ proto.sport.LaunchBetbyRequest.prototype.setClientIp = function(value) {
|
|
|
993
1005
|
* Clears the field making it undefined.
|
|
994
1006
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
995
1007
|
*/
|
|
996
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
1008
|
+
proto.sport.LaunchBetbyRequest.prototype.clearReturnUrl = function() {
|
|
997
1009
|
return jspb.Message.setField(this, 5, undefined);
|
|
998
1010
|
};
|
|
999
1011
|
|
|
@@ -1002,16 +1014,16 @@ proto.sport.LaunchBetbyRequest.prototype.clearClientIp = function() {
|
|
|
1002
1014
|
* Returns whether this field is set.
|
|
1003
1015
|
* @return {boolean}
|
|
1004
1016
|
*/
|
|
1005
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
1017
|
+
proto.sport.LaunchBetbyRequest.prototype.hasReturnUrl = function() {
|
|
1006
1018
|
return jspb.Message.getField(this, 5) != null;
|
|
1007
1019
|
};
|
|
1008
1020
|
|
|
1009
1021
|
|
|
1010
1022
|
/**
|
|
1011
|
-
* optional string
|
|
1023
|
+
* optional string client_ip = 6;
|
|
1012
1024
|
* @return {string}
|
|
1013
1025
|
*/
|
|
1014
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
1026
|
+
proto.sport.LaunchBetbyRequest.prototype.getClientIp = function() {
|
|
1015
1027
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
1016
1028
|
};
|
|
1017
1029
|
|
|
@@ -1020,7 +1032,7 @@ proto.sport.LaunchBetbyRequest.prototype.getPlayerName = function() {
|
|
|
1020
1032
|
* @param {string} value
|
|
1021
1033
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
1022
1034
|
*/
|
|
1023
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
1035
|
+
proto.sport.LaunchBetbyRequest.prototype.setClientIp = function(value) {
|
|
1024
1036
|
return jspb.Message.setField(this, 6, value);
|
|
1025
1037
|
};
|
|
1026
1038
|
|
|
@@ -1029,7 +1041,7 @@ proto.sport.LaunchBetbyRequest.prototype.setPlayerName = function(value) {
|
|
|
1029
1041
|
* Clears the field making it undefined.
|
|
1030
1042
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
1031
1043
|
*/
|
|
1032
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
1044
|
+
proto.sport.LaunchBetbyRequest.prototype.clearClientIp = function() {
|
|
1033
1045
|
return jspb.Message.setField(this, 6, undefined);
|
|
1034
1046
|
};
|
|
1035
1047
|
|
|
@@ -1038,16 +1050,16 @@ proto.sport.LaunchBetbyRequest.prototype.clearPlayerName = function() {
|
|
|
1038
1050
|
* Returns whether this field is set.
|
|
1039
1051
|
* @return {boolean}
|
|
1040
1052
|
*/
|
|
1041
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
1053
|
+
proto.sport.LaunchBetbyRequest.prototype.hasClientIp = function() {
|
|
1042
1054
|
return jspb.Message.getField(this, 6) != null;
|
|
1043
1055
|
};
|
|
1044
1056
|
|
|
1045
1057
|
|
|
1046
1058
|
/**
|
|
1047
|
-
* optional string
|
|
1059
|
+
* optional string player_name = 7;
|
|
1048
1060
|
* @return {string}
|
|
1049
1061
|
*/
|
|
1050
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
1062
|
+
proto.sport.LaunchBetbyRequest.prototype.getPlayerName = function() {
|
|
1051
1063
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
1052
1064
|
};
|
|
1053
1065
|
|
|
@@ -1056,7 +1068,7 @@ proto.sport.LaunchBetbyRequest.prototype.getSessionId = function() {
|
|
|
1056
1068
|
* @param {string} value
|
|
1057
1069
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
1058
1070
|
*/
|
|
1059
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
1071
|
+
proto.sport.LaunchBetbyRequest.prototype.setPlayerName = function(value) {
|
|
1060
1072
|
return jspb.Message.setField(this, 7, value);
|
|
1061
1073
|
};
|
|
1062
1074
|
|
|
@@ -1065,7 +1077,7 @@ proto.sport.LaunchBetbyRequest.prototype.setSessionId = function(value) {
|
|
|
1065
1077
|
* Clears the field making it undefined.
|
|
1066
1078
|
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
1067
1079
|
*/
|
|
1068
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
1080
|
+
proto.sport.LaunchBetbyRequest.prototype.clearPlayerName = function() {
|
|
1069
1081
|
return jspb.Message.setField(this, 7, undefined);
|
|
1070
1082
|
};
|
|
1071
1083
|
|
|
@@ -1074,11 +1086,47 @@ proto.sport.LaunchBetbyRequest.prototype.clearSessionId = function() {
|
|
|
1074
1086
|
* Returns whether this field is set.
|
|
1075
1087
|
* @return {boolean}
|
|
1076
1088
|
*/
|
|
1077
|
-
proto.sport.LaunchBetbyRequest.prototype.
|
|
1089
|
+
proto.sport.LaunchBetbyRequest.prototype.hasPlayerName = function() {
|
|
1078
1090
|
return jspb.Message.getField(this, 7) != null;
|
|
1079
1091
|
};
|
|
1080
1092
|
|
|
1081
1093
|
|
|
1094
|
+
/**
|
|
1095
|
+
* optional string session_id = 8;
|
|
1096
|
+
* @return {string}
|
|
1097
|
+
*/
|
|
1098
|
+
proto.sport.LaunchBetbyRequest.prototype.getSessionId = function() {
|
|
1099
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1100
|
+
};
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* @param {string} value
|
|
1105
|
+
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
1106
|
+
*/
|
|
1107
|
+
proto.sport.LaunchBetbyRequest.prototype.setSessionId = function(value) {
|
|
1108
|
+
return jspb.Message.setField(this, 8, value);
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* Clears the field making it undefined.
|
|
1114
|
+
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
1115
|
+
*/
|
|
1116
|
+
proto.sport.LaunchBetbyRequest.prototype.clearSessionId = function() {
|
|
1117
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
1118
|
+
};
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Returns whether this field is set.
|
|
1123
|
+
* @return {boolean}
|
|
1124
|
+
*/
|
|
1125
|
+
proto.sport.LaunchBetbyRequest.prototype.hasSessionId = function() {
|
|
1126
|
+
return jspb.Message.getField(this, 8) != null;
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1129
|
+
|
|
1082
1130
|
|
|
1083
1131
|
|
|
1084
1132
|
|
package/user/user.proto
CHANGED
|
@@ -9,6 +9,7 @@ service User {
|
|
|
9
9
|
rpc signIn(LoginRequest) returns (LoggedInResponse);
|
|
10
10
|
rpc getUserData(UserDataRequest) returns (UserDataResponse);
|
|
11
11
|
rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
|
|
12
|
+
rpc updateUserBalance(UserBalanceRequest) returns (UserDataResponse);
|
|
12
13
|
//Role and Permissions
|
|
13
14
|
rpc addPermissionToUserRole(RolePermissionRequest) returns (RolePermissionStatusResponse);
|
|
14
15
|
rpc rolesList(PaginationRequest) returns (RolesItemsResponse);
|
|
@@ -155,6 +156,11 @@ message UserDataRequest {
|
|
|
155
156
|
optional string requested_area = 2;
|
|
156
157
|
optional string public_id = 3;
|
|
157
158
|
}
|
|
159
|
+
message UserBalanceRequest {
|
|
160
|
+
int32 id = 1;
|
|
161
|
+
float amount = 2;
|
|
162
|
+
optional string balance_type = 3;
|
|
163
|
+
}
|
|
158
164
|
message UserPasswordRequest {
|
|
159
165
|
int32 id = 1;
|
|
160
166
|
string current_password = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -466,6 +466,17 @@ function deserialize_user_UserActionResponse(buffer_arg) {
|
|
|
466
466
|
return user_pb.UserActionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
+
function serialize_user_UserBalanceRequest(arg) {
|
|
470
|
+
if (!(arg instanceof user_pb.UserBalanceRequest)) {
|
|
471
|
+
throw new Error('Expected argument of type user.UserBalanceRequest');
|
|
472
|
+
}
|
|
473
|
+
return Buffer.from(arg.serializeBinary());
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
function deserialize_user_UserBalanceRequest(buffer_arg) {
|
|
477
|
+
return user_pb.UserBalanceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
478
|
+
}
|
|
479
|
+
|
|
469
480
|
function serialize_user_UserCookiesRequest(arg) {
|
|
470
481
|
if (!(arg instanceof user_pb.UserCookiesRequest)) {
|
|
471
482
|
throw new Error('Expected argument of type user.UserCookiesRequest');
|
|
@@ -634,6 +645,17 @@ signUp: {
|
|
|
634
645
|
responseSerialize: serialize_user_UserDataResponse,
|
|
635
646
|
responseDeserialize: deserialize_user_UserDataResponse,
|
|
636
647
|
},
|
|
648
|
+
updateUserBalance: {
|
|
649
|
+
path: '/user.User/updateUserBalance',
|
|
650
|
+
requestStream: false,
|
|
651
|
+
responseStream: false,
|
|
652
|
+
requestType: user_pb.UserBalanceRequest,
|
|
653
|
+
responseType: user_pb.UserDataResponse,
|
|
654
|
+
requestSerialize: serialize_user_UserBalanceRequest,
|
|
655
|
+
requestDeserialize: deserialize_user_UserBalanceRequest,
|
|
656
|
+
responseSerialize: serialize_user_UserDataResponse,
|
|
657
|
+
responseDeserialize: deserialize_user_UserDataResponse,
|
|
658
|
+
},
|
|
637
659
|
// Role and Permissions
|
|
638
660
|
addPermissionToUserRole: {
|
|
639
661
|
path: '/user.User/addPermissionToUserRole',
|
package/user/user_pb.js
CHANGED
|
@@ -80,6 +80,7 @@ goog.exportSymbol('proto.user.SumSubResponse', null, global);
|
|
|
80
80
|
goog.exportSymbol('proto.user.TournamentRulesInfoResponse', null, global);
|
|
81
81
|
goog.exportSymbol('proto.user.UserActionRequest', null, global);
|
|
82
82
|
goog.exportSymbol('proto.user.UserActionResponse', null, global);
|
|
83
|
+
goog.exportSymbol('proto.user.UserBalanceRequest', null, global);
|
|
83
84
|
goog.exportSymbol('proto.user.UserCookiesRequest', null, global);
|
|
84
85
|
goog.exportSymbol('proto.user.UserDataRequest', null, global);
|
|
85
86
|
goog.exportSymbol('proto.user.UserDataResponse', null, global);
|
|
@@ -324,6 +325,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
324
325
|
*/
|
|
325
326
|
proto.user.UserDataRequest.displayName = 'proto.user.UserDataRequest';
|
|
326
327
|
}
|
|
328
|
+
/**
|
|
329
|
+
* Generated by JsPbCodeGenerator.
|
|
330
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
331
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
332
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
333
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
334
|
+
* valid.
|
|
335
|
+
* @extends {jspb.Message}
|
|
336
|
+
* @constructor
|
|
337
|
+
*/
|
|
338
|
+
proto.user.UserBalanceRequest = function(opt_data) {
|
|
339
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
340
|
+
};
|
|
341
|
+
goog.inherits(proto.user.UserBalanceRequest, jspb.Message);
|
|
342
|
+
if (goog.DEBUG && !COMPILED) {
|
|
343
|
+
/**
|
|
344
|
+
* @public
|
|
345
|
+
* @override
|
|
346
|
+
*/
|
|
347
|
+
proto.user.UserBalanceRequest.displayName = 'proto.user.UserBalanceRequest';
|
|
348
|
+
}
|
|
327
349
|
/**
|
|
328
350
|
* Generated by JsPbCodeGenerator.
|
|
329
351
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -5940,6 +5962,214 @@ proto.user.UserDataRequest.prototype.hasPublicId = function() {
|
|
|
5940
5962
|
|
|
5941
5963
|
|
|
5942
5964
|
|
|
5965
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5966
|
+
/**
|
|
5967
|
+
* Creates an object representation of this proto.
|
|
5968
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5969
|
+
* Optional fields that are not set will be set to undefined.
|
|
5970
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5971
|
+
* For the list of reserved names please see:
|
|
5972
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5973
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5974
|
+
* JSPB instance for transitional soy proto support:
|
|
5975
|
+
* http://goto/soy-param-migration
|
|
5976
|
+
* @return {!Object}
|
|
5977
|
+
*/
|
|
5978
|
+
proto.user.UserBalanceRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5979
|
+
return proto.user.UserBalanceRequest.toObject(opt_includeInstance, this);
|
|
5980
|
+
};
|
|
5981
|
+
|
|
5982
|
+
|
|
5983
|
+
/**
|
|
5984
|
+
* Static version of the {@see toObject} method.
|
|
5985
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5986
|
+
* the JSPB instance for transitional soy proto support:
|
|
5987
|
+
* http://goto/soy-param-migration
|
|
5988
|
+
* @param {!proto.user.UserBalanceRequest} msg The msg instance to transform.
|
|
5989
|
+
* @return {!Object}
|
|
5990
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5991
|
+
*/
|
|
5992
|
+
proto.user.UserBalanceRequest.toObject = function(includeInstance, msg) {
|
|
5993
|
+
var f, obj = {
|
|
5994
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
5995
|
+
amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
5996
|
+
balanceType: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
5997
|
+
};
|
|
5998
|
+
|
|
5999
|
+
if (includeInstance) {
|
|
6000
|
+
obj.$jspbMessageInstance = msg;
|
|
6001
|
+
}
|
|
6002
|
+
return obj;
|
|
6003
|
+
};
|
|
6004
|
+
}
|
|
6005
|
+
|
|
6006
|
+
|
|
6007
|
+
/**
|
|
6008
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6009
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6010
|
+
* @return {!proto.user.UserBalanceRequest}
|
|
6011
|
+
*/
|
|
6012
|
+
proto.user.UserBalanceRequest.deserializeBinary = function(bytes) {
|
|
6013
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6014
|
+
var msg = new proto.user.UserBalanceRequest;
|
|
6015
|
+
return proto.user.UserBalanceRequest.deserializeBinaryFromReader(msg, reader);
|
|
6016
|
+
};
|
|
6017
|
+
|
|
6018
|
+
|
|
6019
|
+
/**
|
|
6020
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6021
|
+
* given reader into the given message object.
|
|
6022
|
+
* @param {!proto.user.UserBalanceRequest} msg The message object to deserialize into.
|
|
6023
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6024
|
+
* @return {!proto.user.UserBalanceRequest}
|
|
6025
|
+
*/
|
|
6026
|
+
proto.user.UserBalanceRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6027
|
+
while (reader.nextField()) {
|
|
6028
|
+
if (reader.isEndGroup()) {
|
|
6029
|
+
break;
|
|
6030
|
+
}
|
|
6031
|
+
var field = reader.getFieldNumber();
|
|
6032
|
+
switch (field) {
|
|
6033
|
+
case 1:
|
|
6034
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6035
|
+
msg.setId(value);
|
|
6036
|
+
break;
|
|
6037
|
+
case 2:
|
|
6038
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
6039
|
+
msg.setAmount(value);
|
|
6040
|
+
break;
|
|
6041
|
+
case 3:
|
|
6042
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6043
|
+
msg.setBalanceType(value);
|
|
6044
|
+
break;
|
|
6045
|
+
default:
|
|
6046
|
+
reader.skipField();
|
|
6047
|
+
break;
|
|
6048
|
+
}
|
|
6049
|
+
}
|
|
6050
|
+
return msg;
|
|
6051
|
+
};
|
|
6052
|
+
|
|
6053
|
+
|
|
6054
|
+
/**
|
|
6055
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6056
|
+
* @return {!Uint8Array}
|
|
6057
|
+
*/
|
|
6058
|
+
proto.user.UserBalanceRequest.prototype.serializeBinary = function() {
|
|
6059
|
+
var writer = new jspb.BinaryWriter();
|
|
6060
|
+
proto.user.UserBalanceRequest.serializeBinaryToWriter(this, writer);
|
|
6061
|
+
return writer.getResultBuffer();
|
|
6062
|
+
};
|
|
6063
|
+
|
|
6064
|
+
|
|
6065
|
+
/**
|
|
6066
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6067
|
+
* format), writing to the given BinaryWriter.
|
|
6068
|
+
* @param {!proto.user.UserBalanceRequest} message
|
|
6069
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6070
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6071
|
+
*/
|
|
6072
|
+
proto.user.UserBalanceRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6073
|
+
var f = undefined;
|
|
6074
|
+
f = message.getId();
|
|
6075
|
+
if (f !== 0) {
|
|
6076
|
+
writer.writeInt32(
|
|
6077
|
+
1,
|
|
6078
|
+
f
|
|
6079
|
+
);
|
|
6080
|
+
}
|
|
6081
|
+
f = message.getAmount();
|
|
6082
|
+
if (f !== 0.0) {
|
|
6083
|
+
writer.writeFloat(
|
|
6084
|
+
2,
|
|
6085
|
+
f
|
|
6086
|
+
);
|
|
6087
|
+
}
|
|
6088
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
6089
|
+
if (f != null) {
|
|
6090
|
+
writer.writeString(
|
|
6091
|
+
3,
|
|
6092
|
+
f
|
|
6093
|
+
);
|
|
6094
|
+
}
|
|
6095
|
+
};
|
|
6096
|
+
|
|
6097
|
+
|
|
6098
|
+
/**
|
|
6099
|
+
* optional int32 id = 1;
|
|
6100
|
+
* @return {number}
|
|
6101
|
+
*/
|
|
6102
|
+
proto.user.UserBalanceRequest.prototype.getId = function() {
|
|
6103
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
6104
|
+
};
|
|
6105
|
+
|
|
6106
|
+
|
|
6107
|
+
/**
|
|
6108
|
+
* @param {number} value
|
|
6109
|
+
* @return {!proto.user.UserBalanceRequest} returns this
|
|
6110
|
+
*/
|
|
6111
|
+
proto.user.UserBalanceRequest.prototype.setId = function(value) {
|
|
6112
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
6113
|
+
};
|
|
6114
|
+
|
|
6115
|
+
|
|
6116
|
+
/**
|
|
6117
|
+
* optional float amount = 2;
|
|
6118
|
+
* @return {number}
|
|
6119
|
+
*/
|
|
6120
|
+
proto.user.UserBalanceRequest.prototype.getAmount = function() {
|
|
6121
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
6122
|
+
};
|
|
6123
|
+
|
|
6124
|
+
|
|
6125
|
+
/**
|
|
6126
|
+
* @param {number} value
|
|
6127
|
+
* @return {!proto.user.UserBalanceRequest} returns this
|
|
6128
|
+
*/
|
|
6129
|
+
proto.user.UserBalanceRequest.prototype.setAmount = function(value) {
|
|
6130
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
6131
|
+
};
|
|
6132
|
+
|
|
6133
|
+
|
|
6134
|
+
/**
|
|
6135
|
+
* optional string balance_type = 3;
|
|
6136
|
+
* @return {string}
|
|
6137
|
+
*/
|
|
6138
|
+
proto.user.UserBalanceRequest.prototype.getBalanceType = function() {
|
|
6139
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
6140
|
+
};
|
|
6141
|
+
|
|
6142
|
+
|
|
6143
|
+
/**
|
|
6144
|
+
* @param {string} value
|
|
6145
|
+
* @return {!proto.user.UserBalanceRequest} returns this
|
|
6146
|
+
*/
|
|
6147
|
+
proto.user.UserBalanceRequest.prototype.setBalanceType = function(value) {
|
|
6148
|
+
return jspb.Message.setField(this, 3, value);
|
|
6149
|
+
};
|
|
6150
|
+
|
|
6151
|
+
|
|
6152
|
+
/**
|
|
6153
|
+
* Clears the field making it undefined.
|
|
6154
|
+
* @return {!proto.user.UserBalanceRequest} returns this
|
|
6155
|
+
*/
|
|
6156
|
+
proto.user.UserBalanceRequest.prototype.clearBalanceType = function() {
|
|
6157
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
6158
|
+
};
|
|
6159
|
+
|
|
6160
|
+
|
|
6161
|
+
/**
|
|
6162
|
+
* Returns whether this field is set.
|
|
6163
|
+
* @return {boolean}
|
|
6164
|
+
*/
|
|
6165
|
+
proto.user.UserBalanceRequest.prototype.hasBalanceType = function() {
|
|
6166
|
+
return jspb.Message.getField(this, 3) != null;
|
|
6167
|
+
};
|
|
6168
|
+
|
|
6169
|
+
|
|
6170
|
+
|
|
6171
|
+
|
|
6172
|
+
|
|
5943
6173
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5944
6174
|
/**
|
|
5945
6175
|
* Creates an object representation of this proto.
|