protobuf-platform 1.1.32 → 1.1.33
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 +4 -0
- package/user/user_grpc_pb.js +22 -0
- package/user/user_pb.js +152 -0
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -49,6 +49,7 @@ service User {
|
|
49
49
|
rpc getInfoForTournamentRules(UserDataRequest) returns (TournamentRulesInfoResponse);
|
50
50
|
//Confirmations
|
51
51
|
rpc attemptEmailConfirmation(EmailConfirmationRequest) returns (ConfirmationStatusResponse);
|
52
|
+
rpc setEmailConfirmed(EmailConfirmedRequest) returns (ConfirmationStatusResponse);
|
52
53
|
}
|
53
54
|
//Technical
|
54
55
|
message PingRequest { string ping = 1; }
|
@@ -395,4 +396,7 @@ message EmailConfirmationRequest {
|
|
395
396
|
}
|
396
397
|
message ConfirmationStatusResponse {
|
397
398
|
string status = 1;
|
399
|
+
}
|
400
|
+
message EmailConfirmedRequest {
|
401
|
+
string token = 1;
|
398
402
|
}
|
package/user/user_grpc_pb.js
CHANGED
@@ -59,6 +59,17 @@ function deserialize_user_EmailConfirmationRequest(buffer_arg) {
|
|
59
59
|
return user_pb.EmailConfirmationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
60
60
|
}
|
61
61
|
|
62
|
+
function serialize_user_EmailConfirmedRequest(arg) {
|
63
|
+
if (!(arg instanceof user_pb.EmailConfirmedRequest)) {
|
64
|
+
throw new Error('Expected argument of type user.EmailConfirmedRequest');
|
65
|
+
}
|
66
|
+
return Buffer.from(arg.serializeBinary());
|
67
|
+
}
|
68
|
+
|
69
|
+
function deserialize_user_EmailConfirmedRequest(buffer_arg) {
|
70
|
+
return user_pb.EmailConfirmedRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
71
|
+
}
|
72
|
+
|
62
73
|
function serialize_user_GetNoteRequest(arg) {
|
63
74
|
if (!(arg instanceof user_pb.GetNoteRequest)) {
|
64
75
|
throw new Error('Expected argument of type user.GetNoteRequest');
|
@@ -822,6 +833,17 @@ attemptEmailConfirmation: {
|
|
822
833
|
responseSerialize: serialize_user_ConfirmationStatusResponse,
|
823
834
|
responseDeserialize: deserialize_user_ConfirmationStatusResponse,
|
824
835
|
},
|
836
|
+
setEmailConfirmed: {
|
837
|
+
path: '/user.User/setEmailConfirmed',
|
838
|
+
requestStream: false,
|
839
|
+
responseStream: false,
|
840
|
+
requestType: user_pb.EmailConfirmedRequest,
|
841
|
+
responseType: user_pb.ConfirmationStatusResponse,
|
842
|
+
requestSerialize: serialize_user_EmailConfirmedRequest,
|
843
|
+
requestDeserialize: deserialize_user_EmailConfirmedRequest,
|
844
|
+
responseSerialize: serialize_user_ConfirmationStatusResponse,
|
845
|
+
responseDeserialize: deserialize_user_ConfirmationStatusResponse,
|
846
|
+
},
|
825
847
|
};
|
826
848
|
|
827
849
|
exports.UserClient = grpc.makeGenericClientConstructor(UserService);
|
package/user/user_pb.js
CHANGED
@@ -27,6 +27,7 @@ goog.exportSymbol('proto.user.ConfirmationStatusResponse', null, global);
|
|
27
27
|
goog.exportSymbol('proto.user.DashboardRequest', null, global);
|
28
28
|
goog.exportSymbol('proto.user.DashboardResponse', null, global);
|
29
29
|
goog.exportSymbol('proto.user.EmailConfirmationRequest', null, global);
|
30
|
+
goog.exportSymbol('proto.user.EmailConfirmedRequest', null, global);
|
30
31
|
goog.exportSymbol('proto.user.File', null, global);
|
31
32
|
goog.exportSymbol('proto.user.GetNoteRequest', null, global);
|
32
33
|
goog.exportSymbol('proto.user.GetRoleRequest', null, global);
|
@@ -1100,6 +1101,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
1100
1101
|
*/
|
1101
1102
|
proto.user.ConfirmationStatusResponse.displayName = 'proto.user.ConfirmationStatusResponse';
|
1102
1103
|
}
|
1104
|
+
/**
|
1105
|
+
* Generated by JsPbCodeGenerator.
|
1106
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1107
|
+
* server response, or constructed directly in Javascript. The array is used
|
1108
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1109
|
+
* If no data is provided, the constructed object will be empty, but still
|
1110
|
+
* valid.
|
1111
|
+
* @extends {jspb.Message}
|
1112
|
+
* @constructor
|
1113
|
+
*/
|
1114
|
+
proto.user.EmailConfirmedRequest = function(opt_data) {
|
1115
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1116
|
+
};
|
1117
|
+
goog.inherits(proto.user.EmailConfirmedRequest, jspb.Message);
|
1118
|
+
if (goog.DEBUG && !COMPILED) {
|
1119
|
+
/**
|
1120
|
+
* @public
|
1121
|
+
* @override
|
1122
|
+
*/
|
1123
|
+
proto.user.EmailConfirmedRequest.displayName = 'proto.user.EmailConfirmedRequest';
|
1124
|
+
}
|
1103
1125
|
|
1104
1126
|
|
1105
1127
|
|
@@ -16807,4 +16829,134 @@ proto.user.ConfirmationStatusResponse.prototype.setStatus = function(value) {
|
|
16807
16829
|
};
|
16808
16830
|
|
16809
16831
|
|
16832
|
+
|
16833
|
+
|
16834
|
+
|
16835
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
16836
|
+
/**
|
16837
|
+
* Creates an object representation of this proto.
|
16838
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
16839
|
+
* Optional fields that are not set will be set to undefined.
|
16840
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
16841
|
+
* For the list of reserved names please see:
|
16842
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
16843
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
16844
|
+
* JSPB instance for transitional soy proto support:
|
16845
|
+
* http://goto/soy-param-migration
|
16846
|
+
* @return {!Object}
|
16847
|
+
*/
|
16848
|
+
proto.user.EmailConfirmedRequest.prototype.toObject = function(opt_includeInstance) {
|
16849
|
+
return proto.user.EmailConfirmedRequest.toObject(opt_includeInstance, this);
|
16850
|
+
};
|
16851
|
+
|
16852
|
+
|
16853
|
+
/**
|
16854
|
+
* Static version of the {@see toObject} method.
|
16855
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
16856
|
+
* the JSPB instance for transitional soy proto support:
|
16857
|
+
* http://goto/soy-param-migration
|
16858
|
+
* @param {!proto.user.EmailConfirmedRequest} msg The msg instance to transform.
|
16859
|
+
* @return {!Object}
|
16860
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16861
|
+
*/
|
16862
|
+
proto.user.EmailConfirmedRequest.toObject = function(includeInstance, msg) {
|
16863
|
+
var f, obj = {
|
16864
|
+
token: jspb.Message.getFieldWithDefault(msg, 1, "")
|
16865
|
+
};
|
16866
|
+
|
16867
|
+
if (includeInstance) {
|
16868
|
+
obj.$jspbMessageInstance = msg;
|
16869
|
+
}
|
16870
|
+
return obj;
|
16871
|
+
};
|
16872
|
+
}
|
16873
|
+
|
16874
|
+
|
16875
|
+
/**
|
16876
|
+
* Deserializes binary data (in protobuf wire format).
|
16877
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
16878
|
+
* @return {!proto.user.EmailConfirmedRequest}
|
16879
|
+
*/
|
16880
|
+
proto.user.EmailConfirmedRequest.deserializeBinary = function(bytes) {
|
16881
|
+
var reader = new jspb.BinaryReader(bytes);
|
16882
|
+
var msg = new proto.user.EmailConfirmedRequest;
|
16883
|
+
return proto.user.EmailConfirmedRequest.deserializeBinaryFromReader(msg, reader);
|
16884
|
+
};
|
16885
|
+
|
16886
|
+
|
16887
|
+
/**
|
16888
|
+
* Deserializes binary data (in protobuf wire format) from the
|
16889
|
+
* given reader into the given message object.
|
16890
|
+
* @param {!proto.user.EmailConfirmedRequest} msg The message object to deserialize into.
|
16891
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
16892
|
+
* @return {!proto.user.EmailConfirmedRequest}
|
16893
|
+
*/
|
16894
|
+
proto.user.EmailConfirmedRequest.deserializeBinaryFromReader = function(msg, reader) {
|
16895
|
+
while (reader.nextField()) {
|
16896
|
+
if (reader.isEndGroup()) {
|
16897
|
+
break;
|
16898
|
+
}
|
16899
|
+
var field = reader.getFieldNumber();
|
16900
|
+
switch (field) {
|
16901
|
+
case 1:
|
16902
|
+
var value = /** @type {string} */ (reader.readString());
|
16903
|
+
msg.setToken(value);
|
16904
|
+
break;
|
16905
|
+
default:
|
16906
|
+
reader.skipField();
|
16907
|
+
break;
|
16908
|
+
}
|
16909
|
+
}
|
16910
|
+
return msg;
|
16911
|
+
};
|
16912
|
+
|
16913
|
+
|
16914
|
+
/**
|
16915
|
+
* Serializes the message to binary data (in protobuf wire format).
|
16916
|
+
* @return {!Uint8Array}
|
16917
|
+
*/
|
16918
|
+
proto.user.EmailConfirmedRequest.prototype.serializeBinary = function() {
|
16919
|
+
var writer = new jspb.BinaryWriter();
|
16920
|
+
proto.user.EmailConfirmedRequest.serializeBinaryToWriter(this, writer);
|
16921
|
+
return writer.getResultBuffer();
|
16922
|
+
};
|
16923
|
+
|
16924
|
+
|
16925
|
+
/**
|
16926
|
+
* Serializes the given message to binary data (in protobuf wire
|
16927
|
+
* format), writing to the given BinaryWriter.
|
16928
|
+
* @param {!proto.user.EmailConfirmedRequest} message
|
16929
|
+
* @param {!jspb.BinaryWriter} writer
|
16930
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16931
|
+
*/
|
16932
|
+
proto.user.EmailConfirmedRequest.serializeBinaryToWriter = function(message, writer) {
|
16933
|
+
var f = undefined;
|
16934
|
+
f = message.getToken();
|
16935
|
+
if (f.length > 0) {
|
16936
|
+
writer.writeString(
|
16937
|
+
1,
|
16938
|
+
f
|
16939
|
+
);
|
16940
|
+
}
|
16941
|
+
};
|
16942
|
+
|
16943
|
+
|
16944
|
+
/**
|
16945
|
+
* optional string token = 1;
|
16946
|
+
* @return {string}
|
16947
|
+
*/
|
16948
|
+
proto.user.EmailConfirmedRequest.prototype.getToken = function() {
|
16949
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
16950
|
+
};
|
16951
|
+
|
16952
|
+
|
16953
|
+
/**
|
16954
|
+
* @param {string} value
|
16955
|
+
* @return {!proto.user.EmailConfirmedRequest} returns this
|
16956
|
+
*/
|
16957
|
+
proto.user.EmailConfirmedRequest.prototype.setToken = function(value) {
|
16958
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
16959
|
+
};
|
16960
|
+
|
16961
|
+
|
16810
16962
|
goog.object.extend(exports, proto.user);
|