protobuf-platform 1.1.98 → 1.2.1
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 -2
- package/user/user_grpc_pb.js +22 -0
- package/user/user_pb.js +309 -13
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -57,6 +57,7 @@ service User {
|
|
57
57
|
rpc setEmailConfirmed(EmailConfirmedRequest) returns (ConfirmationStatusResponse);
|
58
58
|
rpc attemptResetPasswordConfirmation(ResetPasswordConfirmationRequest) returns (ConfirmationStatusResponse);
|
59
59
|
rpc setNewPassword(SetNewPasswordConfirmedRequest) returns (ConfirmationStatusResponse);
|
60
|
+
rpc setUserCookies(UserCookiesRequest) returns (ConfirmationStatusResponse);
|
60
61
|
}
|
61
62
|
//Technical
|
62
63
|
message PingRequest { string ping = 1; }
|
@@ -575,7 +576,7 @@ message EmailConfirmationRequest {
|
|
575
576
|
int32 user_id = 1;
|
576
577
|
}
|
577
578
|
message ResetPasswordConfirmationRequest {
|
578
|
-
|
579
|
+
string user_email = 1;
|
579
580
|
}
|
580
581
|
message ConfirmationStatusResponse {
|
581
582
|
string status = 1;
|
@@ -586,4 +587,10 @@ message EmailConfirmedRequest {
|
|
586
587
|
message SetNewPasswordConfirmedRequest {
|
587
588
|
string token = 1;
|
588
589
|
string new_password = 2;
|
589
|
-
|
590
|
+
}
|
591
|
+
message UserCookiesRequest {
|
592
|
+
int32 user_id = 1;
|
593
|
+
optional int32 targeting = 2;
|
594
|
+
optional int32 performance = 3;
|
595
|
+
optional int32 functional = 4;
|
596
|
+
}
|
package/user/user_grpc_pb.js
CHANGED
@@ -444,6 +444,17 @@ function deserialize_user_TournamentRulesInfoResponse(buffer_arg) {
|
|
444
444
|
return user_pb.TournamentRulesInfoResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
445
445
|
}
|
446
446
|
|
447
|
+
function serialize_user_UserCookiesRequest(arg) {
|
448
|
+
if (!(arg instanceof user_pb.UserCookiesRequest)) {
|
449
|
+
throw new Error('Expected argument of type user.UserCookiesRequest');
|
450
|
+
}
|
451
|
+
return Buffer.from(arg.serializeBinary());
|
452
|
+
}
|
453
|
+
|
454
|
+
function deserialize_user_UserCookiesRequest(buffer_arg) {
|
455
|
+
return user_pb.UserCookiesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
456
|
+
}
|
457
|
+
|
447
458
|
function serialize_user_UserDataRequest(arg) {
|
448
459
|
if (!(arg instanceof user_pb.UserDataRequest)) {
|
449
460
|
throw new Error('Expected argument of type user.UserDataRequest');
|
@@ -1009,6 +1020,17 @@ attemptEmailConfirmation: {
|
|
1009
1020
|
responseSerialize: serialize_user_ConfirmationStatusResponse,
|
1010
1021
|
responseDeserialize: deserialize_user_ConfirmationStatusResponse,
|
1011
1022
|
},
|
1023
|
+
setUserCookies: {
|
1024
|
+
path: '/user.User/setUserCookies',
|
1025
|
+
requestStream: false,
|
1026
|
+
responseStream: false,
|
1027
|
+
requestType: user_pb.UserCookiesRequest,
|
1028
|
+
responseType: user_pb.ConfirmationStatusResponse,
|
1029
|
+
requestSerialize: serialize_user_UserCookiesRequest,
|
1030
|
+
requestDeserialize: deserialize_user_UserCookiesRequest,
|
1031
|
+
responseSerialize: serialize_user_ConfirmationStatusResponse,
|
1032
|
+
responseDeserialize: deserialize_user_ConfirmationStatusResponse,
|
1033
|
+
},
|
1012
1034
|
};
|
1013
1035
|
|
1014
1036
|
exports.UserClient = grpc.makeGenericClientConstructor(UserService);
|
package/user/user_pb.js
CHANGED
@@ -78,6 +78,7 @@ goog.exportSymbol('proto.user.SumSubDocumentRequest', null, global);
|
|
78
78
|
goog.exportSymbol('proto.user.SumSubDocumentRequest.RequestCase', null, global);
|
79
79
|
goog.exportSymbol('proto.user.SumSubResponse', null, global);
|
80
80
|
goog.exportSymbol('proto.user.TournamentRulesInfoResponse', null, global);
|
81
|
+
goog.exportSymbol('proto.user.UserCookiesRequest', null, global);
|
81
82
|
goog.exportSymbol('proto.user.UserDataRequest', null, global);
|
82
83
|
goog.exportSymbol('proto.user.UserDataResponse', null, global);
|
83
84
|
goog.exportSymbol('proto.user.UserLimitsRequest', null, global);
|
@@ -1518,6 +1519,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
1518
1519
|
*/
|
1519
1520
|
proto.user.SetNewPasswordConfirmedRequest.displayName = 'proto.user.SetNewPasswordConfirmedRequest';
|
1520
1521
|
}
|
1522
|
+
/**
|
1523
|
+
* Generated by JsPbCodeGenerator.
|
1524
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1525
|
+
* server response, or constructed directly in Javascript. The array is used
|
1526
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1527
|
+
* If no data is provided, the constructed object will be empty, but still
|
1528
|
+
* valid.
|
1529
|
+
* @extends {jspb.Message}
|
1530
|
+
* @constructor
|
1531
|
+
*/
|
1532
|
+
proto.user.UserCookiesRequest = function(opt_data) {
|
1533
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1534
|
+
};
|
1535
|
+
goog.inherits(proto.user.UserCookiesRequest, jspb.Message);
|
1536
|
+
if (goog.DEBUG && !COMPILED) {
|
1537
|
+
/**
|
1538
|
+
* @public
|
1539
|
+
* @override
|
1540
|
+
*/
|
1541
|
+
proto.user.UserCookiesRequest.displayName = 'proto.user.UserCookiesRequest';
|
1542
|
+
}
|
1521
1543
|
|
1522
1544
|
|
1523
1545
|
|
@@ -25385,7 +25407,7 @@ proto.user.ResetPasswordConfirmationRequest.prototype.toObject = function(opt_in
|
|
25385
25407
|
*/
|
25386
25408
|
proto.user.ResetPasswordConfirmationRequest.toObject = function(includeInstance, msg) {
|
25387
25409
|
var f, obj = {
|
25388
|
-
|
25410
|
+
userEmail: jspb.Message.getFieldWithDefault(msg, 1, "")
|
25389
25411
|
};
|
25390
25412
|
|
25391
25413
|
if (includeInstance) {
|
@@ -25423,8 +25445,8 @@ proto.user.ResetPasswordConfirmationRequest.deserializeBinaryFromReader = functi
|
|
25423
25445
|
var field = reader.getFieldNumber();
|
25424
25446
|
switch (field) {
|
25425
25447
|
case 1:
|
25426
|
-
var value = /** @type {
|
25427
|
-
msg.
|
25448
|
+
var value = /** @type {string} */ (reader.readString());
|
25449
|
+
msg.setUserEmail(value);
|
25428
25450
|
break;
|
25429
25451
|
default:
|
25430
25452
|
reader.skipField();
|
@@ -25455,9 +25477,9 @@ proto.user.ResetPasswordConfirmationRequest.prototype.serializeBinary = function
|
|
25455
25477
|
*/
|
25456
25478
|
proto.user.ResetPasswordConfirmationRequest.serializeBinaryToWriter = function(message, writer) {
|
25457
25479
|
var f = undefined;
|
25458
|
-
f = message.
|
25459
|
-
if (f
|
25460
|
-
writer.
|
25480
|
+
f = message.getUserEmail();
|
25481
|
+
if (f.length > 0) {
|
25482
|
+
writer.writeString(
|
25461
25483
|
1,
|
25462
25484
|
f
|
25463
25485
|
);
|
@@ -25466,20 +25488,20 @@ proto.user.ResetPasswordConfirmationRequest.serializeBinaryToWriter = function(m
|
|
25466
25488
|
|
25467
25489
|
|
25468
25490
|
/**
|
25469
|
-
* optional
|
25470
|
-
* @return {
|
25491
|
+
* optional string user_email = 1;
|
25492
|
+
* @return {string}
|
25471
25493
|
*/
|
25472
|
-
proto.user.ResetPasswordConfirmationRequest.prototype.
|
25473
|
-
return /** @type {
|
25494
|
+
proto.user.ResetPasswordConfirmationRequest.prototype.getUserEmail = function() {
|
25495
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
25474
25496
|
};
|
25475
25497
|
|
25476
25498
|
|
25477
25499
|
/**
|
25478
|
-
* @param {
|
25500
|
+
* @param {string} value
|
25479
25501
|
* @return {!proto.user.ResetPasswordConfirmationRequest} returns this
|
25480
25502
|
*/
|
25481
|
-
proto.user.ResetPasswordConfirmationRequest.prototype.
|
25482
|
-
return jspb.Message.
|
25503
|
+
proto.user.ResetPasswordConfirmationRequest.prototype.setUserEmail = function(value) {
|
25504
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
25483
25505
|
};
|
25484
25506
|
|
25485
25507
|
|
@@ -25903,4 +25925,278 @@ proto.user.SetNewPasswordConfirmedRequest.prototype.setNewPassword = function(va
|
|
25903
25925
|
};
|
25904
25926
|
|
25905
25927
|
|
25928
|
+
|
25929
|
+
|
25930
|
+
|
25931
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
25932
|
+
/**
|
25933
|
+
* Creates an object representation of this proto.
|
25934
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
25935
|
+
* Optional fields that are not set will be set to undefined.
|
25936
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
25937
|
+
* For the list of reserved names please see:
|
25938
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
25939
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
25940
|
+
* JSPB instance for transitional soy proto support:
|
25941
|
+
* http://goto/soy-param-migration
|
25942
|
+
* @return {!Object}
|
25943
|
+
*/
|
25944
|
+
proto.user.UserCookiesRequest.prototype.toObject = function(opt_includeInstance) {
|
25945
|
+
return proto.user.UserCookiesRequest.toObject(opt_includeInstance, this);
|
25946
|
+
};
|
25947
|
+
|
25948
|
+
|
25949
|
+
/**
|
25950
|
+
* Static version of the {@see toObject} method.
|
25951
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
25952
|
+
* the JSPB instance for transitional soy proto support:
|
25953
|
+
* http://goto/soy-param-migration
|
25954
|
+
* @param {!proto.user.UserCookiesRequest} msg The msg instance to transform.
|
25955
|
+
* @return {!Object}
|
25956
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
25957
|
+
*/
|
25958
|
+
proto.user.UserCookiesRequest.toObject = function(includeInstance, msg) {
|
25959
|
+
var f, obj = {
|
25960
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
25961
|
+
targeting: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
25962
|
+
performance: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
25963
|
+
functional: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
25964
|
+
};
|
25965
|
+
|
25966
|
+
if (includeInstance) {
|
25967
|
+
obj.$jspbMessageInstance = msg;
|
25968
|
+
}
|
25969
|
+
return obj;
|
25970
|
+
};
|
25971
|
+
}
|
25972
|
+
|
25973
|
+
|
25974
|
+
/**
|
25975
|
+
* Deserializes binary data (in protobuf wire format).
|
25976
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
25977
|
+
* @return {!proto.user.UserCookiesRequest}
|
25978
|
+
*/
|
25979
|
+
proto.user.UserCookiesRequest.deserializeBinary = function(bytes) {
|
25980
|
+
var reader = new jspb.BinaryReader(bytes);
|
25981
|
+
var msg = new proto.user.UserCookiesRequest;
|
25982
|
+
return proto.user.UserCookiesRequest.deserializeBinaryFromReader(msg, reader);
|
25983
|
+
};
|
25984
|
+
|
25985
|
+
|
25986
|
+
/**
|
25987
|
+
* Deserializes binary data (in protobuf wire format) from the
|
25988
|
+
* given reader into the given message object.
|
25989
|
+
* @param {!proto.user.UserCookiesRequest} msg The message object to deserialize into.
|
25990
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
25991
|
+
* @return {!proto.user.UserCookiesRequest}
|
25992
|
+
*/
|
25993
|
+
proto.user.UserCookiesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
25994
|
+
while (reader.nextField()) {
|
25995
|
+
if (reader.isEndGroup()) {
|
25996
|
+
break;
|
25997
|
+
}
|
25998
|
+
var field = reader.getFieldNumber();
|
25999
|
+
switch (field) {
|
26000
|
+
case 1:
|
26001
|
+
var value = /** @type {number} */ (reader.readInt32());
|
26002
|
+
msg.setUserId(value);
|
26003
|
+
break;
|
26004
|
+
case 2:
|
26005
|
+
var value = /** @type {number} */ (reader.readInt32());
|
26006
|
+
msg.setTargeting(value);
|
26007
|
+
break;
|
26008
|
+
case 3:
|
26009
|
+
var value = /** @type {number} */ (reader.readInt32());
|
26010
|
+
msg.setPerformance(value);
|
26011
|
+
break;
|
26012
|
+
case 4:
|
26013
|
+
var value = /** @type {number} */ (reader.readInt32());
|
26014
|
+
msg.setFunctional(value);
|
26015
|
+
break;
|
26016
|
+
default:
|
26017
|
+
reader.skipField();
|
26018
|
+
break;
|
26019
|
+
}
|
26020
|
+
}
|
26021
|
+
return msg;
|
26022
|
+
};
|
26023
|
+
|
26024
|
+
|
26025
|
+
/**
|
26026
|
+
* Serializes the message to binary data (in protobuf wire format).
|
26027
|
+
* @return {!Uint8Array}
|
26028
|
+
*/
|
26029
|
+
proto.user.UserCookiesRequest.prototype.serializeBinary = function() {
|
26030
|
+
var writer = new jspb.BinaryWriter();
|
26031
|
+
proto.user.UserCookiesRequest.serializeBinaryToWriter(this, writer);
|
26032
|
+
return writer.getResultBuffer();
|
26033
|
+
};
|
26034
|
+
|
26035
|
+
|
26036
|
+
/**
|
26037
|
+
* Serializes the given message to binary data (in protobuf wire
|
26038
|
+
* format), writing to the given BinaryWriter.
|
26039
|
+
* @param {!proto.user.UserCookiesRequest} message
|
26040
|
+
* @param {!jspb.BinaryWriter} writer
|
26041
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
26042
|
+
*/
|
26043
|
+
proto.user.UserCookiesRequest.serializeBinaryToWriter = function(message, writer) {
|
26044
|
+
var f = undefined;
|
26045
|
+
f = message.getUserId();
|
26046
|
+
if (f !== 0) {
|
26047
|
+
writer.writeInt32(
|
26048
|
+
1,
|
26049
|
+
f
|
26050
|
+
);
|
26051
|
+
}
|
26052
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
26053
|
+
if (f != null) {
|
26054
|
+
writer.writeInt32(
|
26055
|
+
2,
|
26056
|
+
f
|
26057
|
+
);
|
26058
|
+
}
|
26059
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
26060
|
+
if (f != null) {
|
26061
|
+
writer.writeInt32(
|
26062
|
+
3,
|
26063
|
+
f
|
26064
|
+
);
|
26065
|
+
}
|
26066
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
26067
|
+
if (f != null) {
|
26068
|
+
writer.writeInt32(
|
26069
|
+
4,
|
26070
|
+
f
|
26071
|
+
);
|
26072
|
+
}
|
26073
|
+
};
|
26074
|
+
|
26075
|
+
|
26076
|
+
/**
|
26077
|
+
* optional int32 user_id = 1;
|
26078
|
+
* @return {number}
|
26079
|
+
*/
|
26080
|
+
proto.user.UserCookiesRequest.prototype.getUserId = function() {
|
26081
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
26082
|
+
};
|
26083
|
+
|
26084
|
+
|
26085
|
+
/**
|
26086
|
+
* @param {number} value
|
26087
|
+
* @return {!proto.user.UserCookiesRequest} returns this
|
26088
|
+
*/
|
26089
|
+
proto.user.UserCookiesRequest.prototype.setUserId = function(value) {
|
26090
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
26091
|
+
};
|
26092
|
+
|
26093
|
+
|
26094
|
+
/**
|
26095
|
+
* optional int32 targeting = 2;
|
26096
|
+
* @return {number}
|
26097
|
+
*/
|
26098
|
+
proto.user.UserCookiesRequest.prototype.getTargeting = function() {
|
26099
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
26100
|
+
};
|
26101
|
+
|
26102
|
+
|
26103
|
+
/**
|
26104
|
+
* @param {number} value
|
26105
|
+
* @return {!proto.user.UserCookiesRequest} returns this
|
26106
|
+
*/
|
26107
|
+
proto.user.UserCookiesRequest.prototype.setTargeting = function(value) {
|
26108
|
+
return jspb.Message.setField(this, 2, value);
|
26109
|
+
};
|
26110
|
+
|
26111
|
+
|
26112
|
+
/**
|
26113
|
+
* Clears the field making it undefined.
|
26114
|
+
* @return {!proto.user.UserCookiesRequest} returns this
|
26115
|
+
*/
|
26116
|
+
proto.user.UserCookiesRequest.prototype.clearTargeting = function() {
|
26117
|
+
return jspb.Message.setField(this, 2, undefined);
|
26118
|
+
};
|
26119
|
+
|
26120
|
+
|
26121
|
+
/**
|
26122
|
+
* Returns whether this field is set.
|
26123
|
+
* @return {boolean}
|
26124
|
+
*/
|
26125
|
+
proto.user.UserCookiesRequest.prototype.hasTargeting = function() {
|
26126
|
+
return jspb.Message.getField(this, 2) != null;
|
26127
|
+
};
|
26128
|
+
|
26129
|
+
|
26130
|
+
/**
|
26131
|
+
* optional int32 performance = 3;
|
26132
|
+
* @return {number}
|
26133
|
+
*/
|
26134
|
+
proto.user.UserCookiesRequest.prototype.getPerformance = function() {
|
26135
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
26136
|
+
};
|
26137
|
+
|
26138
|
+
|
26139
|
+
/**
|
26140
|
+
* @param {number} value
|
26141
|
+
* @return {!proto.user.UserCookiesRequest} returns this
|
26142
|
+
*/
|
26143
|
+
proto.user.UserCookiesRequest.prototype.setPerformance = function(value) {
|
26144
|
+
return jspb.Message.setField(this, 3, value);
|
26145
|
+
};
|
26146
|
+
|
26147
|
+
|
26148
|
+
/**
|
26149
|
+
* Clears the field making it undefined.
|
26150
|
+
* @return {!proto.user.UserCookiesRequest} returns this
|
26151
|
+
*/
|
26152
|
+
proto.user.UserCookiesRequest.prototype.clearPerformance = function() {
|
26153
|
+
return jspb.Message.setField(this, 3, undefined);
|
26154
|
+
};
|
26155
|
+
|
26156
|
+
|
26157
|
+
/**
|
26158
|
+
* Returns whether this field is set.
|
26159
|
+
* @return {boolean}
|
26160
|
+
*/
|
26161
|
+
proto.user.UserCookiesRequest.prototype.hasPerformance = function() {
|
26162
|
+
return jspb.Message.getField(this, 3) != null;
|
26163
|
+
};
|
26164
|
+
|
26165
|
+
|
26166
|
+
/**
|
26167
|
+
* optional int32 functional = 4;
|
26168
|
+
* @return {number}
|
26169
|
+
*/
|
26170
|
+
proto.user.UserCookiesRequest.prototype.getFunctional = function() {
|
26171
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
26172
|
+
};
|
26173
|
+
|
26174
|
+
|
26175
|
+
/**
|
26176
|
+
* @param {number} value
|
26177
|
+
* @return {!proto.user.UserCookiesRequest} returns this
|
26178
|
+
*/
|
26179
|
+
proto.user.UserCookiesRequest.prototype.setFunctional = function(value) {
|
26180
|
+
return jspb.Message.setField(this, 4, value);
|
26181
|
+
};
|
26182
|
+
|
26183
|
+
|
26184
|
+
/**
|
26185
|
+
* Clears the field making it undefined.
|
26186
|
+
* @return {!proto.user.UserCookiesRequest} returns this
|
26187
|
+
*/
|
26188
|
+
proto.user.UserCookiesRequest.prototype.clearFunctional = function() {
|
26189
|
+
return jspb.Message.setField(this, 4, undefined);
|
26190
|
+
};
|
26191
|
+
|
26192
|
+
|
26193
|
+
/**
|
26194
|
+
* Returns whether this field is set.
|
26195
|
+
* @return {boolean}
|
26196
|
+
*/
|
26197
|
+
proto.user.UserCookiesRequest.prototype.hasFunctional = function() {
|
26198
|
+
return jspb.Message.getField(this, 4) != null;
|
26199
|
+
};
|
26200
|
+
|
26201
|
+
|
25906
26202
|
goog.object.extend(exports, proto.user);
|