protobuf-platform 1.0.277 → 1.0.279
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_pb.js +194 -2
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -94,6 +94,7 @@ message RegistrationRequest {
|
|
94
94
|
optional string phone = 19;
|
95
95
|
optional string postal_code = 20;
|
96
96
|
optional string referral = 21;
|
97
|
+
optional string device = 22;
|
97
98
|
}
|
98
99
|
message LoggedInResponse {
|
99
100
|
int32 id = 1;
|
@@ -111,6 +112,9 @@ message LoginRequest {
|
|
111
112
|
string password = 2;
|
112
113
|
optional int32 is_admin = 3;
|
113
114
|
optional string user_ip = 4;
|
115
|
+
optional string device = 5;
|
116
|
+
optional string country = 6;
|
117
|
+
optional string city = 7;
|
114
118
|
}
|
115
119
|
message UserDataRequest {
|
116
120
|
int32 id = 1;
|
package/user/user_pb.js
CHANGED
@@ -2454,7 +2454,8 @@ proto.user.RegistrationRequest.toObject = function(includeInstance, msg) {
|
|
2454
2454
|
address: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
2455
2455
|
phone: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
2456
2456
|
postalCode: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
2457
|
-
referral: jspb.Message.getFieldWithDefault(msg, 21, "")
|
2457
|
+
referral: jspb.Message.getFieldWithDefault(msg, 21, ""),
|
2458
|
+
device: jspb.Message.getFieldWithDefault(msg, 22, "")
|
2458
2459
|
};
|
2459
2460
|
|
2460
2461
|
if (includeInstance) {
|
@@ -2575,6 +2576,10 @@ proto.user.RegistrationRequest.deserializeBinaryFromReader = function(msg, reade
|
|
2575
2576
|
var value = /** @type {string} */ (reader.readString());
|
2576
2577
|
msg.setReferral(value);
|
2577
2578
|
break;
|
2579
|
+
case 22:
|
2580
|
+
var value = /** @type {string} */ (reader.readString());
|
2581
|
+
msg.setDevice(value);
|
2582
|
+
break;
|
2578
2583
|
default:
|
2579
2584
|
reader.skipField();
|
2580
2585
|
break;
|
@@ -2751,6 +2756,13 @@ proto.user.RegistrationRequest.serializeBinaryToWriter = function(message, write
|
|
2751
2756
|
f
|
2752
2757
|
);
|
2753
2758
|
}
|
2759
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 22));
|
2760
|
+
if (f != null) {
|
2761
|
+
writer.writeString(
|
2762
|
+
22,
|
2763
|
+
f
|
2764
|
+
);
|
2765
|
+
}
|
2754
2766
|
};
|
2755
2767
|
|
2756
2768
|
|
@@ -3456,6 +3468,42 @@ proto.user.RegistrationRequest.prototype.hasReferral = function() {
|
|
3456
3468
|
};
|
3457
3469
|
|
3458
3470
|
|
3471
|
+
/**
|
3472
|
+
* optional string device = 22;
|
3473
|
+
* @return {string}
|
3474
|
+
*/
|
3475
|
+
proto.user.RegistrationRequest.prototype.getDevice = function() {
|
3476
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
|
3477
|
+
};
|
3478
|
+
|
3479
|
+
|
3480
|
+
/**
|
3481
|
+
* @param {string} value
|
3482
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
3483
|
+
*/
|
3484
|
+
proto.user.RegistrationRequest.prototype.setDevice = function(value) {
|
3485
|
+
return jspb.Message.setField(this, 22, value);
|
3486
|
+
};
|
3487
|
+
|
3488
|
+
|
3489
|
+
/**
|
3490
|
+
* Clears the field making it undefined.
|
3491
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
3492
|
+
*/
|
3493
|
+
proto.user.RegistrationRequest.prototype.clearDevice = function() {
|
3494
|
+
return jspb.Message.setField(this, 22, undefined);
|
3495
|
+
};
|
3496
|
+
|
3497
|
+
|
3498
|
+
/**
|
3499
|
+
* Returns whether this field is set.
|
3500
|
+
* @return {boolean}
|
3501
|
+
*/
|
3502
|
+
proto.user.RegistrationRequest.prototype.hasDevice = function() {
|
3503
|
+
return jspb.Message.getField(this, 22) != null;
|
3504
|
+
};
|
3505
|
+
|
3506
|
+
|
3459
3507
|
|
3460
3508
|
|
3461
3509
|
|
@@ -3861,7 +3909,10 @@ proto.user.LoginRequest.toObject = function(includeInstance, msg) {
|
|
3861
3909
|
email: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
3862
3910
|
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3863
3911
|
isAdmin: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
3864
|
-
userIp: jspb.Message.getFieldWithDefault(msg, 4, "")
|
3912
|
+
userIp: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
3913
|
+
device: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
3914
|
+
country: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
3915
|
+
city: jspb.Message.getFieldWithDefault(msg, 7, "")
|
3865
3916
|
};
|
3866
3917
|
|
3867
3918
|
if (includeInstance) {
|
@@ -3914,6 +3965,18 @@ proto.user.LoginRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3914
3965
|
var value = /** @type {string} */ (reader.readString());
|
3915
3966
|
msg.setUserIp(value);
|
3916
3967
|
break;
|
3968
|
+
case 5:
|
3969
|
+
var value = /** @type {string} */ (reader.readString());
|
3970
|
+
msg.setDevice(value);
|
3971
|
+
break;
|
3972
|
+
case 6:
|
3973
|
+
var value = /** @type {string} */ (reader.readString());
|
3974
|
+
msg.setCountry(value);
|
3975
|
+
break;
|
3976
|
+
case 7:
|
3977
|
+
var value = /** @type {string} */ (reader.readString());
|
3978
|
+
msg.setCity(value);
|
3979
|
+
break;
|
3917
3980
|
default:
|
3918
3981
|
reader.skipField();
|
3919
3982
|
break;
|
@@ -3971,6 +4034,27 @@ proto.user.LoginRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3971
4034
|
f
|
3972
4035
|
);
|
3973
4036
|
}
|
4037
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
4038
|
+
if (f != null) {
|
4039
|
+
writer.writeString(
|
4040
|
+
5,
|
4041
|
+
f
|
4042
|
+
);
|
4043
|
+
}
|
4044
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
4045
|
+
if (f != null) {
|
4046
|
+
writer.writeString(
|
4047
|
+
6,
|
4048
|
+
f
|
4049
|
+
);
|
4050
|
+
}
|
4051
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
4052
|
+
if (f != null) {
|
4053
|
+
writer.writeString(
|
4054
|
+
7,
|
4055
|
+
f
|
4056
|
+
);
|
4057
|
+
}
|
3974
4058
|
};
|
3975
4059
|
|
3976
4060
|
|
@@ -4082,6 +4166,114 @@ proto.user.LoginRequest.prototype.hasUserIp = function() {
|
|
4082
4166
|
};
|
4083
4167
|
|
4084
4168
|
|
4169
|
+
/**
|
4170
|
+
* optional string device = 5;
|
4171
|
+
* @return {string}
|
4172
|
+
*/
|
4173
|
+
proto.user.LoginRequest.prototype.getDevice = function() {
|
4174
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
4175
|
+
};
|
4176
|
+
|
4177
|
+
|
4178
|
+
/**
|
4179
|
+
* @param {string} value
|
4180
|
+
* @return {!proto.user.LoginRequest} returns this
|
4181
|
+
*/
|
4182
|
+
proto.user.LoginRequest.prototype.setDevice = function(value) {
|
4183
|
+
return jspb.Message.setField(this, 5, value);
|
4184
|
+
};
|
4185
|
+
|
4186
|
+
|
4187
|
+
/**
|
4188
|
+
* Clears the field making it undefined.
|
4189
|
+
* @return {!proto.user.LoginRequest} returns this
|
4190
|
+
*/
|
4191
|
+
proto.user.LoginRequest.prototype.clearDevice = function() {
|
4192
|
+
return jspb.Message.setField(this, 5, undefined);
|
4193
|
+
};
|
4194
|
+
|
4195
|
+
|
4196
|
+
/**
|
4197
|
+
* Returns whether this field is set.
|
4198
|
+
* @return {boolean}
|
4199
|
+
*/
|
4200
|
+
proto.user.LoginRequest.prototype.hasDevice = function() {
|
4201
|
+
return jspb.Message.getField(this, 5) != null;
|
4202
|
+
};
|
4203
|
+
|
4204
|
+
|
4205
|
+
/**
|
4206
|
+
* optional string country = 6;
|
4207
|
+
* @return {string}
|
4208
|
+
*/
|
4209
|
+
proto.user.LoginRequest.prototype.getCountry = function() {
|
4210
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
4211
|
+
};
|
4212
|
+
|
4213
|
+
|
4214
|
+
/**
|
4215
|
+
* @param {string} value
|
4216
|
+
* @return {!proto.user.LoginRequest} returns this
|
4217
|
+
*/
|
4218
|
+
proto.user.LoginRequest.prototype.setCountry = function(value) {
|
4219
|
+
return jspb.Message.setField(this, 6, value);
|
4220
|
+
};
|
4221
|
+
|
4222
|
+
|
4223
|
+
/**
|
4224
|
+
* Clears the field making it undefined.
|
4225
|
+
* @return {!proto.user.LoginRequest} returns this
|
4226
|
+
*/
|
4227
|
+
proto.user.LoginRequest.prototype.clearCountry = function() {
|
4228
|
+
return jspb.Message.setField(this, 6, undefined);
|
4229
|
+
};
|
4230
|
+
|
4231
|
+
|
4232
|
+
/**
|
4233
|
+
* Returns whether this field is set.
|
4234
|
+
* @return {boolean}
|
4235
|
+
*/
|
4236
|
+
proto.user.LoginRequest.prototype.hasCountry = function() {
|
4237
|
+
return jspb.Message.getField(this, 6) != null;
|
4238
|
+
};
|
4239
|
+
|
4240
|
+
|
4241
|
+
/**
|
4242
|
+
* optional string city = 7;
|
4243
|
+
* @return {string}
|
4244
|
+
*/
|
4245
|
+
proto.user.LoginRequest.prototype.getCity = function() {
|
4246
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
4247
|
+
};
|
4248
|
+
|
4249
|
+
|
4250
|
+
/**
|
4251
|
+
* @param {string} value
|
4252
|
+
* @return {!proto.user.LoginRequest} returns this
|
4253
|
+
*/
|
4254
|
+
proto.user.LoginRequest.prototype.setCity = function(value) {
|
4255
|
+
return jspb.Message.setField(this, 7, value);
|
4256
|
+
};
|
4257
|
+
|
4258
|
+
|
4259
|
+
/**
|
4260
|
+
* Clears the field making it undefined.
|
4261
|
+
* @return {!proto.user.LoginRequest} returns this
|
4262
|
+
*/
|
4263
|
+
proto.user.LoginRequest.prototype.clearCity = function() {
|
4264
|
+
return jspb.Message.setField(this, 7, undefined);
|
4265
|
+
};
|
4266
|
+
|
4267
|
+
|
4268
|
+
/**
|
4269
|
+
* Returns whether this field is set.
|
4270
|
+
* @return {boolean}
|
4271
|
+
*/
|
4272
|
+
proto.user.LoginRequest.prototype.hasCity = function() {
|
4273
|
+
return jspb.Message.getField(this, 7) != null;
|
4274
|
+
};
|
4275
|
+
|
4276
|
+
|
4085
4277
|
|
4086
4278
|
|
4087
4279
|
|