protobuf-platform 1.1.31 → 1.1.32
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/user/user.proto +9 -0
- package/user/user_grpc_pb.js +34 -0
- package/user/user_pb.js +304 -0
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -47,6 +47,8 @@ service User {
|
|
47
47
|
rpc uploadSumSubDocument(stream SumSubDocumentRequest) returns (SumSubResponse);
|
48
48
|
//Tournaments
|
49
49
|
rpc getInfoForTournamentRules(UserDataRequest) returns (TournamentRulesInfoResponse);
|
50
|
+
//Confirmations
|
51
|
+
rpc attemptEmailConfirmation(EmailConfirmationRequest) returns (ConfirmationStatusResponse);
|
50
52
|
}
|
51
53
|
//Technical
|
52
54
|
message PingRequest { string ping = 1; }
|
@@ -386,4 +388,11 @@ message TournamentRulesInfoResponse {
|
|
386
388
|
optional int32 ranking_points = 5;
|
387
389
|
optional int32 loyalty_points = 6;
|
388
390
|
optional int32 coins = 7;
|
391
|
+
}
|
392
|
+
//Confirmations
|
393
|
+
message EmailConfirmationRequest {
|
394
|
+
int32 user_id = 1;
|
395
|
+
}
|
396
|
+
message ConfirmationStatusResponse {
|
397
|
+
string status = 1;
|
389
398
|
}
|
package/user/user_grpc_pb.js
CHANGED
@@ -15,6 +15,17 @@ function deserialize_user_CategoryItemsResponse(buffer_arg) {
|
|
15
15
|
return user_pb.CategoryItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
16
16
|
}
|
17
17
|
|
18
|
+
function serialize_user_ConfirmationStatusResponse(arg) {
|
19
|
+
if (!(arg instanceof user_pb.ConfirmationStatusResponse)) {
|
20
|
+
throw new Error('Expected argument of type user.ConfirmationStatusResponse');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_user_ConfirmationStatusResponse(buffer_arg) {
|
26
|
+
return user_pb.ConfirmationStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
18
29
|
function serialize_user_DashboardRequest(arg) {
|
19
30
|
if (!(arg instanceof user_pb.DashboardRequest)) {
|
20
31
|
throw new Error('Expected argument of type user.DashboardRequest');
|
@@ -37,6 +48,17 @@ function deserialize_user_DashboardResponse(buffer_arg) {
|
|
37
48
|
return user_pb.DashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
38
49
|
}
|
39
50
|
|
51
|
+
function serialize_user_EmailConfirmationRequest(arg) {
|
52
|
+
if (!(arg instanceof user_pb.EmailConfirmationRequest)) {
|
53
|
+
throw new Error('Expected argument of type user.EmailConfirmationRequest');
|
54
|
+
}
|
55
|
+
return Buffer.from(arg.serializeBinary());
|
56
|
+
}
|
57
|
+
|
58
|
+
function deserialize_user_EmailConfirmationRequest(buffer_arg) {
|
59
|
+
return user_pb.EmailConfirmationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
60
|
+
}
|
61
|
+
|
40
62
|
function serialize_user_GetNoteRequest(arg) {
|
41
63
|
if (!(arg instanceof user_pb.GetNoteRequest)) {
|
42
64
|
throw new Error('Expected argument of type user.GetNoteRequest');
|
@@ -788,6 +810,18 @@ getInfoForTournamentRules: {
|
|
788
810
|
responseSerialize: serialize_user_TournamentRulesInfoResponse,
|
789
811
|
responseDeserialize: deserialize_user_TournamentRulesInfoResponse,
|
790
812
|
},
|
813
|
+
// Confirmations
|
814
|
+
attemptEmailConfirmation: {
|
815
|
+
path: '/user.User/attemptEmailConfirmation',
|
816
|
+
requestStream: false,
|
817
|
+
responseStream: false,
|
818
|
+
requestType: user_pb.EmailConfirmationRequest,
|
819
|
+
responseType: user_pb.ConfirmationStatusResponse,
|
820
|
+
requestSerialize: serialize_user_EmailConfirmationRequest,
|
821
|
+
requestDeserialize: deserialize_user_EmailConfirmationRequest,
|
822
|
+
responseSerialize: serialize_user_ConfirmationStatusResponse,
|
823
|
+
responseDeserialize: deserialize_user_ConfirmationStatusResponse,
|
824
|
+
},
|
791
825
|
};
|
792
826
|
|
793
827
|
exports.UserClient = grpc.makeGenericClientConstructor(UserService);
|
package/user/user_pb.js
CHANGED
@@ -23,8 +23,10 @@ var global = (function() {
|
|
23
23
|
|
24
24
|
goog.exportSymbol('proto.user.CategoryItem', null, global);
|
25
25
|
goog.exportSymbol('proto.user.CategoryItemsResponse', null, global);
|
26
|
+
goog.exportSymbol('proto.user.ConfirmationStatusResponse', null, global);
|
26
27
|
goog.exportSymbol('proto.user.DashboardRequest', null, global);
|
27
28
|
goog.exportSymbol('proto.user.DashboardResponse', null, global);
|
29
|
+
goog.exportSymbol('proto.user.EmailConfirmationRequest', null, global);
|
28
30
|
goog.exportSymbol('proto.user.File', null, global);
|
29
31
|
goog.exportSymbol('proto.user.GetNoteRequest', null, global);
|
30
32
|
goog.exportSymbol('proto.user.GetRoleRequest', null, global);
|
@@ -1056,6 +1058,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
1056
1058
|
*/
|
1057
1059
|
proto.user.TournamentRulesInfoResponse.displayName = 'proto.user.TournamentRulesInfoResponse';
|
1058
1060
|
}
|
1061
|
+
/**
|
1062
|
+
* Generated by JsPbCodeGenerator.
|
1063
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1064
|
+
* server response, or constructed directly in Javascript. The array is used
|
1065
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1066
|
+
* If no data is provided, the constructed object will be empty, but still
|
1067
|
+
* valid.
|
1068
|
+
* @extends {jspb.Message}
|
1069
|
+
* @constructor
|
1070
|
+
*/
|
1071
|
+
proto.user.EmailConfirmationRequest = function(opt_data) {
|
1072
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1073
|
+
};
|
1074
|
+
goog.inherits(proto.user.EmailConfirmationRequest, jspb.Message);
|
1075
|
+
if (goog.DEBUG && !COMPILED) {
|
1076
|
+
/**
|
1077
|
+
* @public
|
1078
|
+
* @override
|
1079
|
+
*/
|
1080
|
+
proto.user.EmailConfirmationRequest.displayName = 'proto.user.EmailConfirmationRequest';
|
1081
|
+
}
|
1082
|
+
/**
|
1083
|
+
* Generated by JsPbCodeGenerator.
|
1084
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1085
|
+
* server response, or constructed directly in Javascript. The array is used
|
1086
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1087
|
+
* If no data is provided, the constructed object will be empty, but still
|
1088
|
+
* valid.
|
1089
|
+
* @extends {jspb.Message}
|
1090
|
+
* @constructor
|
1091
|
+
*/
|
1092
|
+
proto.user.ConfirmationStatusResponse = function(opt_data) {
|
1093
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1094
|
+
};
|
1095
|
+
goog.inherits(proto.user.ConfirmationStatusResponse, jspb.Message);
|
1096
|
+
if (goog.DEBUG && !COMPILED) {
|
1097
|
+
/**
|
1098
|
+
* @public
|
1099
|
+
* @override
|
1100
|
+
*/
|
1101
|
+
proto.user.ConfirmationStatusResponse.displayName = 'proto.user.ConfirmationStatusResponse';
|
1102
|
+
}
|
1059
1103
|
|
1060
1104
|
|
1061
1105
|
|
@@ -16503,4 +16547,264 @@ proto.user.TournamentRulesInfoResponse.prototype.hasCoins = function() {
|
|
16503
16547
|
};
|
16504
16548
|
|
16505
16549
|
|
16550
|
+
|
16551
|
+
|
16552
|
+
|
16553
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
16554
|
+
/**
|
16555
|
+
* Creates an object representation of this proto.
|
16556
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
16557
|
+
* Optional fields that are not set will be set to undefined.
|
16558
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
16559
|
+
* For the list of reserved names please see:
|
16560
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
16561
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
16562
|
+
* JSPB instance for transitional soy proto support:
|
16563
|
+
* http://goto/soy-param-migration
|
16564
|
+
* @return {!Object}
|
16565
|
+
*/
|
16566
|
+
proto.user.EmailConfirmationRequest.prototype.toObject = function(opt_includeInstance) {
|
16567
|
+
return proto.user.EmailConfirmationRequest.toObject(opt_includeInstance, this);
|
16568
|
+
};
|
16569
|
+
|
16570
|
+
|
16571
|
+
/**
|
16572
|
+
* Static version of the {@see toObject} method.
|
16573
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
16574
|
+
* the JSPB instance for transitional soy proto support:
|
16575
|
+
* http://goto/soy-param-migration
|
16576
|
+
* @param {!proto.user.EmailConfirmationRequest} msg The msg instance to transform.
|
16577
|
+
* @return {!Object}
|
16578
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16579
|
+
*/
|
16580
|
+
proto.user.EmailConfirmationRequest.toObject = function(includeInstance, msg) {
|
16581
|
+
var f, obj = {
|
16582
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
16583
|
+
};
|
16584
|
+
|
16585
|
+
if (includeInstance) {
|
16586
|
+
obj.$jspbMessageInstance = msg;
|
16587
|
+
}
|
16588
|
+
return obj;
|
16589
|
+
};
|
16590
|
+
}
|
16591
|
+
|
16592
|
+
|
16593
|
+
/**
|
16594
|
+
* Deserializes binary data (in protobuf wire format).
|
16595
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
16596
|
+
* @return {!proto.user.EmailConfirmationRequest}
|
16597
|
+
*/
|
16598
|
+
proto.user.EmailConfirmationRequest.deserializeBinary = function(bytes) {
|
16599
|
+
var reader = new jspb.BinaryReader(bytes);
|
16600
|
+
var msg = new proto.user.EmailConfirmationRequest;
|
16601
|
+
return proto.user.EmailConfirmationRequest.deserializeBinaryFromReader(msg, reader);
|
16602
|
+
};
|
16603
|
+
|
16604
|
+
|
16605
|
+
/**
|
16606
|
+
* Deserializes binary data (in protobuf wire format) from the
|
16607
|
+
* given reader into the given message object.
|
16608
|
+
* @param {!proto.user.EmailConfirmationRequest} msg The message object to deserialize into.
|
16609
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
16610
|
+
* @return {!proto.user.EmailConfirmationRequest}
|
16611
|
+
*/
|
16612
|
+
proto.user.EmailConfirmationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
16613
|
+
while (reader.nextField()) {
|
16614
|
+
if (reader.isEndGroup()) {
|
16615
|
+
break;
|
16616
|
+
}
|
16617
|
+
var field = reader.getFieldNumber();
|
16618
|
+
switch (field) {
|
16619
|
+
case 1:
|
16620
|
+
var value = /** @type {number} */ (reader.readInt32());
|
16621
|
+
msg.setUserId(value);
|
16622
|
+
break;
|
16623
|
+
default:
|
16624
|
+
reader.skipField();
|
16625
|
+
break;
|
16626
|
+
}
|
16627
|
+
}
|
16628
|
+
return msg;
|
16629
|
+
};
|
16630
|
+
|
16631
|
+
|
16632
|
+
/**
|
16633
|
+
* Serializes the message to binary data (in protobuf wire format).
|
16634
|
+
* @return {!Uint8Array}
|
16635
|
+
*/
|
16636
|
+
proto.user.EmailConfirmationRequest.prototype.serializeBinary = function() {
|
16637
|
+
var writer = new jspb.BinaryWriter();
|
16638
|
+
proto.user.EmailConfirmationRequest.serializeBinaryToWriter(this, writer);
|
16639
|
+
return writer.getResultBuffer();
|
16640
|
+
};
|
16641
|
+
|
16642
|
+
|
16643
|
+
/**
|
16644
|
+
* Serializes the given message to binary data (in protobuf wire
|
16645
|
+
* format), writing to the given BinaryWriter.
|
16646
|
+
* @param {!proto.user.EmailConfirmationRequest} message
|
16647
|
+
* @param {!jspb.BinaryWriter} writer
|
16648
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16649
|
+
*/
|
16650
|
+
proto.user.EmailConfirmationRequest.serializeBinaryToWriter = function(message, writer) {
|
16651
|
+
var f = undefined;
|
16652
|
+
f = message.getUserId();
|
16653
|
+
if (f !== 0) {
|
16654
|
+
writer.writeInt32(
|
16655
|
+
1,
|
16656
|
+
f
|
16657
|
+
);
|
16658
|
+
}
|
16659
|
+
};
|
16660
|
+
|
16661
|
+
|
16662
|
+
/**
|
16663
|
+
* optional int32 user_id = 1;
|
16664
|
+
* @return {number}
|
16665
|
+
*/
|
16666
|
+
proto.user.EmailConfirmationRequest.prototype.getUserId = function() {
|
16667
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
16668
|
+
};
|
16669
|
+
|
16670
|
+
|
16671
|
+
/**
|
16672
|
+
* @param {number} value
|
16673
|
+
* @return {!proto.user.EmailConfirmationRequest} returns this
|
16674
|
+
*/
|
16675
|
+
proto.user.EmailConfirmationRequest.prototype.setUserId = function(value) {
|
16676
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
16677
|
+
};
|
16678
|
+
|
16679
|
+
|
16680
|
+
|
16681
|
+
|
16682
|
+
|
16683
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
16684
|
+
/**
|
16685
|
+
* Creates an object representation of this proto.
|
16686
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
16687
|
+
* Optional fields that are not set will be set to undefined.
|
16688
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
16689
|
+
* For the list of reserved names please see:
|
16690
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
16691
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
16692
|
+
* JSPB instance for transitional soy proto support:
|
16693
|
+
* http://goto/soy-param-migration
|
16694
|
+
* @return {!Object}
|
16695
|
+
*/
|
16696
|
+
proto.user.ConfirmationStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
16697
|
+
return proto.user.ConfirmationStatusResponse.toObject(opt_includeInstance, this);
|
16698
|
+
};
|
16699
|
+
|
16700
|
+
|
16701
|
+
/**
|
16702
|
+
* Static version of the {@see toObject} method.
|
16703
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
16704
|
+
* the JSPB instance for transitional soy proto support:
|
16705
|
+
* http://goto/soy-param-migration
|
16706
|
+
* @param {!proto.user.ConfirmationStatusResponse} msg The msg instance to transform.
|
16707
|
+
* @return {!Object}
|
16708
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16709
|
+
*/
|
16710
|
+
proto.user.ConfirmationStatusResponse.toObject = function(includeInstance, msg) {
|
16711
|
+
var f, obj = {
|
16712
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
16713
|
+
};
|
16714
|
+
|
16715
|
+
if (includeInstance) {
|
16716
|
+
obj.$jspbMessageInstance = msg;
|
16717
|
+
}
|
16718
|
+
return obj;
|
16719
|
+
};
|
16720
|
+
}
|
16721
|
+
|
16722
|
+
|
16723
|
+
/**
|
16724
|
+
* Deserializes binary data (in protobuf wire format).
|
16725
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
16726
|
+
* @return {!proto.user.ConfirmationStatusResponse}
|
16727
|
+
*/
|
16728
|
+
proto.user.ConfirmationStatusResponse.deserializeBinary = function(bytes) {
|
16729
|
+
var reader = new jspb.BinaryReader(bytes);
|
16730
|
+
var msg = new proto.user.ConfirmationStatusResponse;
|
16731
|
+
return proto.user.ConfirmationStatusResponse.deserializeBinaryFromReader(msg, reader);
|
16732
|
+
};
|
16733
|
+
|
16734
|
+
|
16735
|
+
/**
|
16736
|
+
* Deserializes binary data (in protobuf wire format) from the
|
16737
|
+
* given reader into the given message object.
|
16738
|
+
* @param {!proto.user.ConfirmationStatusResponse} msg The message object to deserialize into.
|
16739
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
16740
|
+
* @return {!proto.user.ConfirmationStatusResponse}
|
16741
|
+
*/
|
16742
|
+
proto.user.ConfirmationStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
16743
|
+
while (reader.nextField()) {
|
16744
|
+
if (reader.isEndGroup()) {
|
16745
|
+
break;
|
16746
|
+
}
|
16747
|
+
var field = reader.getFieldNumber();
|
16748
|
+
switch (field) {
|
16749
|
+
case 1:
|
16750
|
+
var value = /** @type {string} */ (reader.readString());
|
16751
|
+
msg.setStatus(value);
|
16752
|
+
break;
|
16753
|
+
default:
|
16754
|
+
reader.skipField();
|
16755
|
+
break;
|
16756
|
+
}
|
16757
|
+
}
|
16758
|
+
return msg;
|
16759
|
+
};
|
16760
|
+
|
16761
|
+
|
16762
|
+
/**
|
16763
|
+
* Serializes the message to binary data (in protobuf wire format).
|
16764
|
+
* @return {!Uint8Array}
|
16765
|
+
*/
|
16766
|
+
proto.user.ConfirmationStatusResponse.prototype.serializeBinary = function() {
|
16767
|
+
var writer = new jspb.BinaryWriter();
|
16768
|
+
proto.user.ConfirmationStatusResponse.serializeBinaryToWriter(this, writer);
|
16769
|
+
return writer.getResultBuffer();
|
16770
|
+
};
|
16771
|
+
|
16772
|
+
|
16773
|
+
/**
|
16774
|
+
* Serializes the given message to binary data (in protobuf wire
|
16775
|
+
* format), writing to the given BinaryWriter.
|
16776
|
+
* @param {!proto.user.ConfirmationStatusResponse} message
|
16777
|
+
* @param {!jspb.BinaryWriter} writer
|
16778
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16779
|
+
*/
|
16780
|
+
proto.user.ConfirmationStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
16781
|
+
var f = undefined;
|
16782
|
+
f = message.getStatus();
|
16783
|
+
if (f.length > 0) {
|
16784
|
+
writer.writeString(
|
16785
|
+
1,
|
16786
|
+
f
|
16787
|
+
);
|
16788
|
+
}
|
16789
|
+
};
|
16790
|
+
|
16791
|
+
|
16792
|
+
/**
|
16793
|
+
* optional string status = 1;
|
16794
|
+
* @return {string}
|
16795
|
+
*/
|
16796
|
+
proto.user.ConfirmationStatusResponse.prototype.getStatus = function() {
|
16797
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
16798
|
+
};
|
16799
|
+
|
16800
|
+
|
16801
|
+
/**
|
16802
|
+
* @param {string} value
|
16803
|
+
* @return {!proto.user.ConfirmationStatusResponse} returns this
|
16804
|
+
*/
|
16805
|
+
proto.user.ConfirmationStatusResponse.prototype.setStatus = function(value) {
|
16806
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
16807
|
+
};
|
16808
|
+
|
16809
|
+
|
16506
16810
|
goog.object.extend(exports, proto.user);
|