protobuf-platform 1.2.259 → 1.2.261

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.259",
3
+ "version": "1.2.261",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -161,14 +161,15 @@ message LoggedInResponse {
161
161
  optional string two_fa_qr_data_url = 15;
162
162
  }
163
163
  message LoginRequest {
164
- string email = 1;
164
+ optional string email = 1;
165
165
  string password = 2;
166
- optional int32 is_admin = 3;
167
- optional string user_ip = 4;
168
- optional string device = 5;
169
- optional string country = 6;
170
- optional string city = 7;
171
- optional int32 two_fa = 8;
166
+ optional string phone = 3;
167
+ optional int32 is_admin = 4;
168
+ optional string user_ip = 5;
169
+ optional string device = 6;
170
+ optional string country = 7;
171
+ optional string city = 8;
172
+ optional int32 two_fa = 9;
172
173
  }
173
174
  message TelegramLoginRequest {
174
175
  string telegram_user_id = 1;
package/user/user_pb.js CHANGED
@@ -6052,12 +6052,13 @@ proto.user.LoginRequest.toObject = function(includeInstance, msg) {
6052
6052
  var f, obj = {
6053
6053
  email: jspb.Message.getFieldWithDefault(msg, 1, ""),
6054
6054
  password: jspb.Message.getFieldWithDefault(msg, 2, ""),
6055
- isAdmin: jspb.Message.getFieldWithDefault(msg, 3, 0),
6056
- userIp: jspb.Message.getFieldWithDefault(msg, 4, ""),
6057
- device: jspb.Message.getFieldWithDefault(msg, 5, ""),
6058
- country: jspb.Message.getFieldWithDefault(msg, 6, ""),
6059
- city: jspb.Message.getFieldWithDefault(msg, 7, ""),
6060
- twoFa: jspb.Message.getFieldWithDefault(msg, 8, 0)
6055
+ phone: jspb.Message.getFieldWithDefault(msg, 3, ""),
6056
+ isAdmin: jspb.Message.getFieldWithDefault(msg, 4, 0),
6057
+ userIp: jspb.Message.getFieldWithDefault(msg, 5, ""),
6058
+ device: jspb.Message.getFieldWithDefault(msg, 6, ""),
6059
+ country: jspb.Message.getFieldWithDefault(msg, 7, ""),
6060
+ city: jspb.Message.getFieldWithDefault(msg, 8, ""),
6061
+ twoFa: jspb.Message.getFieldWithDefault(msg, 9, 0)
6061
6062
  };
6062
6063
 
6063
6064
  if (includeInstance) {
@@ -6103,26 +6104,30 @@ proto.user.LoginRequest.deserializeBinaryFromReader = function(msg, reader) {
6103
6104
  msg.setPassword(value);
6104
6105
  break;
6105
6106
  case 3:
6107
+ var value = /** @type {string} */ (reader.readString());
6108
+ msg.setPhone(value);
6109
+ break;
6110
+ case 4:
6106
6111
  var value = /** @type {number} */ (reader.readInt32());
6107
6112
  msg.setIsAdmin(value);
6108
6113
  break;
6109
- case 4:
6114
+ case 5:
6110
6115
  var value = /** @type {string} */ (reader.readString());
6111
6116
  msg.setUserIp(value);
6112
6117
  break;
6113
- case 5:
6118
+ case 6:
6114
6119
  var value = /** @type {string} */ (reader.readString());
6115
6120
  msg.setDevice(value);
6116
6121
  break;
6117
- case 6:
6122
+ case 7:
6118
6123
  var value = /** @type {string} */ (reader.readString());
6119
6124
  msg.setCountry(value);
6120
6125
  break;
6121
- case 7:
6126
+ case 8:
6122
6127
  var value = /** @type {string} */ (reader.readString());
6123
6128
  msg.setCity(value);
6124
6129
  break;
6125
- case 8:
6130
+ case 9:
6126
6131
  var value = /** @type {number} */ (reader.readInt32());
6127
6132
  msg.setTwoFa(value);
6128
6133
  break;
@@ -6155,8 +6160,8 @@ proto.user.LoginRequest.prototype.serializeBinary = function() {
6155
6160
  */
6156
6161
  proto.user.LoginRequest.serializeBinaryToWriter = function(message, writer) {
6157
6162
  var f = undefined;
6158
- f = message.getEmail();
6159
- if (f.length > 0) {
6163
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
6164
+ if (f != null) {
6160
6165
  writer.writeString(
6161
6166
  1,
6162
6167
  f
@@ -6169,16 +6174,16 @@ proto.user.LoginRequest.serializeBinaryToWriter = function(message, writer) {
6169
6174
  f
6170
6175
  );
6171
6176
  }
6172
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
6177
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
6173
6178
  if (f != null) {
6174
- writer.writeInt32(
6179
+ writer.writeString(
6175
6180
  3,
6176
6181
  f
6177
6182
  );
6178
6183
  }
6179
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
6184
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
6180
6185
  if (f != null) {
6181
- writer.writeString(
6186
+ writer.writeInt32(
6182
6187
  4,
6183
6188
  f
6184
6189
  );
@@ -6204,13 +6209,20 @@ proto.user.LoginRequest.serializeBinaryToWriter = function(message, writer) {
6204
6209
  f
6205
6210
  );
6206
6211
  }
6207
- f = /** @type {number} */ (jspb.Message.getField(message, 8));
6212
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
6208
6213
  if (f != null) {
6209
- writer.writeInt32(
6214
+ writer.writeString(
6210
6215
  8,
6211
6216
  f
6212
6217
  );
6213
6218
  }
6219
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
6220
+ if (f != null) {
6221
+ writer.writeInt32(
6222
+ 9,
6223
+ f
6224
+ );
6225
+ }
6214
6226
  };
6215
6227
 
6216
6228
 
@@ -6228,7 +6240,25 @@ proto.user.LoginRequest.prototype.getEmail = function() {
6228
6240
  * @return {!proto.user.LoginRequest} returns this
6229
6241
  */
6230
6242
  proto.user.LoginRequest.prototype.setEmail = function(value) {
6231
- return jspb.Message.setProto3StringField(this, 1, value);
6243
+ return jspb.Message.setField(this, 1, value);
6244
+ };
6245
+
6246
+
6247
+ /**
6248
+ * Clears the field making it undefined.
6249
+ * @return {!proto.user.LoginRequest} returns this
6250
+ */
6251
+ proto.user.LoginRequest.prototype.clearEmail = function() {
6252
+ return jspb.Message.setField(this, 1, undefined);
6253
+ };
6254
+
6255
+
6256
+ /**
6257
+ * Returns whether this field is set.
6258
+ * @return {boolean}
6259
+ */
6260
+ proto.user.LoginRequest.prototype.hasEmail = function() {
6261
+ return jspb.Message.getField(this, 1) != null;
6232
6262
  };
6233
6263
 
6234
6264
 
@@ -6251,11 +6281,47 @@ proto.user.LoginRequest.prototype.setPassword = function(value) {
6251
6281
 
6252
6282
 
6253
6283
  /**
6254
- * optional int32 is_admin = 3;
6284
+ * optional string phone = 3;
6285
+ * @return {string}
6286
+ */
6287
+ proto.user.LoginRequest.prototype.getPhone = function() {
6288
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6289
+ };
6290
+
6291
+
6292
+ /**
6293
+ * @param {string} value
6294
+ * @return {!proto.user.LoginRequest} returns this
6295
+ */
6296
+ proto.user.LoginRequest.prototype.setPhone = function(value) {
6297
+ return jspb.Message.setField(this, 3, value);
6298
+ };
6299
+
6300
+
6301
+ /**
6302
+ * Clears the field making it undefined.
6303
+ * @return {!proto.user.LoginRequest} returns this
6304
+ */
6305
+ proto.user.LoginRequest.prototype.clearPhone = function() {
6306
+ return jspb.Message.setField(this, 3, undefined);
6307
+ };
6308
+
6309
+
6310
+ /**
6311
+ * Returns whether this field is set.
6312
+ * @return {boolean}
6313
+ */
6314
+ proto.user.LoginRequest.prototype.hasPhone = function() {
6315
+ return jspb.Message.getField(this, 3) != null;
6316
+ };
6317
+
6318
+
6319
+ /**
6320
+ * optional int32 is_admin = 4;
6255
6321
  * @return {number}
6256
6322
  */
6257
6323
  proto.user.LoginRequest.prototype.getIsAdmin = function() {
6258
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
6324
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
6259
6325
  };
6260
6326
 
6261
6327
 
@@ -6264,7 +6330,7 @@ proto.user.LoginRequest.prototype.getIsAdmin = function() {
6264
6330
  * @return {!proto.user.LoginRequest} returns this
6265
6331
  */
6266
6332
  proto.user.LoginRequest.prototype.setIsAdmin = function(value) {
6267
- return jspb.Message.setField(this, 3, value);
6333
+ return jspb.Message.setField(this, 4, value);
6268
6334
  };
6269
6335
 
6270
6336
 
@@ -6273,7 +6339,7 @@ proto.user.LoginRequest.prototype.setIsAdmin = function(value) {
6273
6339
  * @return {!proto.user.LoginRequest} returns this
6274
6340
  */
6275
6341
  proto.user.LoginRequest.prototype.clearIsAdmin = function() {
6276
- return jspb.Message.setField(this, 3, undefined);
6342
+ return jspb.Message.setField(this, 4, undefined);
6277
6343
  };
6278
6344
 
6279
6345
 
@@ -6282,16 +6348,16 @@ proto.user.LoginRequest.prototype.clearIsAdmin = function() {
6282
6348
  * @return {boolean}
6283
6349
  */
6284
6350
  proto.user.LoginRequest.prototype.hasIsAdmin = function() {
6285
- return jspb.Message.getField(this, 3) != null;
6351
+ return jspb.Message.getField(this, 4) != null;
6286
6352
  };
6287
6353
 
6288
6354
 
6289
6355
  /**
6290
- * optional string user_ip = 4;
6356
+ * optional string user_ip = 5;
6291
6357
  * @return {string}
6292
6358
  */
6293
6359
  proto.user.LoginRequest.prototype.getUserIp = function() {
6294
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6360
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
6295
6361
  };
6296
6362
 
6297
6363
 
@@ -6300,7 +6366,7 @@ proto.user.LoginRequest.prototype.getUserIp = function() {
6300
6366
  * @return {!proto.user.LoginRequest} returns this
6301
6367
  */
6302
6368
  proto.user.LoginRequest.prototype.setUserIp = function(value) {
6303
- return jspb.Message.setField(this, 4, value);
6369
+ return jspb.Message.setField(this, 5, value);
6304
6370
  };
6305
6371
 
6306
6372
 
@@ -6309,7 +6375,7 @@ proto.user.LoginRequest.prototype.setUserIp = function(value) {
6309
6375
  * @return {!proto.user.LoginRequest} returns this
6310
6376
  */
6311
6377
  proto.user.LoginRequest.prototype.clearUserIp = function() {
6312
- return jspb.Message.setField(this, 4, undefined);
6378
+ return jspb.Message.setField(this, 5, undefined);
6313
6379
  };
6314
6380
 
6315
6381
 
@@ -6318,16 +6384,16 @@ proto.user.LoginRequest.prototype.clearUserIp = function() {
6318
6384
  * @return {boolean}
6319
6385
  */
6320
6386
  proto.user.LoginRequest.prototype.hasUserIp = function() {
6321
- return jspb.Message.getField(this, 4) != null;
6387
+ return jspb.Message.getField(this, 5) != null;
6322
6388
  };
6323
6389
 
6324
6390
 
6325
6391
  /**
6326
- * optional string device = 5;
6392
+ * optional string device = 6;
6327
6393
  * @return {string}
6328
6394
  */
6329
6395
  proto.user.LoginRequest.prototype.getDevice = function() {
6330
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
6396
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
6331
6397
  };
6332
6398
 
6333
6399
 
@@ -6336,7 +6402,7 @@ proto.user.LoginRequest.prototype.getDevice = function() {
6336
6402
  * @return {!proto.user.LoginRequest} returns this
6337
6403
  */
6338
6404
  proto.user.LoginRequest.prototype.setDevice = function(value) {
6339
- return jspb.Message.setField(this, 5, value);
6405
+ return jspb.Message.setField(this, 6, value);
6340
6406
  };
6341
6407
 
6342
6408
 
@@ -6345,7 +6411,7 @@ proto.user.LoginRequest.prototype.setDevice = function(value) {
6345
6411
  * @return {!proto.user.LoginRequest} returns this
6346
6412
  */
6347
6413
  proto.user.LoginRequest.prototype.clearDevice = function() {
6348
- return jspb.Message.setField(this, 5, undefined);
6414
+ return jspb.Message.setField(this, 6, undefined);
6349
6415
  };
6350
6416
 
6351
6417
 
@@ -6354,16 +6420,16 @@ proto.user.LoginRequest.prototype.clearDevice = function() {
6354
6420
  * @return {boolean}
6355
6421
  */
6356
6422
  proto.user.LoginRequest.prototype.hasDevice = function() {
6357
- return jspb.Message.getField(this, 5) != null;
6423
+ return jspb.Message.getField(this, 6) != null;
6358
6424
  };
6359
6425
 
6360
6426
 
6361
6427
  /**
6362
- * optional string country = 6;
6428
+ * optional string country = 7;
6363
6429
  * @return {string}
6364
6430
  */
6365
6431
  proto.user.LoginRequest.prototype.getCountry = function() {
6366
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
6432
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
6367
6433
  };
6368
6434
 
6369
6435
 
@@ -6372,7 +6438,7 @@ proto.user.LoginRequest.prototype.getCountry = function() {
6372
6438
  * @return {!proto.user.LoginRequest} returns this
6373
6439
  */
6374
6440
  proto.user.LoginRequest.prototype.setCountry = function(value) {
6375
- return jspb.Message.setField(this, 6, value);
6441
+ return jspb.Message.setField(this, 7, value);
6376
6442
  };
6377
6443
 
6378
6444
 
@@ -6381,7 +6447,7 @@ proto.user.LoginRequest.prototype.setCountry = function(value) {
6381
6447
  * @return {!proto.user.LoginRequest} returns this
6382
6448
  */
6383
6449
  proto.user.LoginRequest.prototype.clearCountry = function() {
6384
- return jspb.Message.setField(this, 6, undefined);
6450
+ return jspb.Message.setField(this, 7, undefined);
6385
6451
  };
6386
6452
 
6387
6453
 
@@ -6390,16 +6456,16 @@ proto.user.LoginRequest.prototype.clearCountry = function() {
6390
6456
  * @return {boolean}
6391
6457
  */
6392
6458
  proto.user.LoginRequest.prototype.hasCountry = function() {
6393
- return jspb.Message.getField(this, 6) != null;
6459
+ return jspb.Message.getField(this, 7) != null;
6394
6460
  };
6395
6461
 
6396
6462
 
6397
6463
  /**
6398
- * optional string city = 7;
6464
+ * optional string city = 8;
6399
6465
  * @return {string}
6400
6466
  */
6401
6467
  proto.user.LoginRequest.prototype.getCity = function() {
6402
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
6468
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
6403
6469
  };
6404
6470
 
6405
6471
 
@@ -6408,7 +6474,7 @@ proto.user.LoginRequest.prototype.getCity = function() {
6408
6474
  * @return {!proto.user.LoginRequest} returns this
6409
6475
  */
6410
6476
  proto.user.LoginRequest.prototype.setCity = function(value) {
6411
- return jspb.Message.setField(this, 7, value);
6477
+ return jspb.Message.setField(this, 8, value);
6412
6478
  };
6413
6479
 
6414
6480
 
@@ -6417,7 +6483,7 @@ proto.user.LoginRequest.prototype.setCity = function(value) {
6417
6483
  * @return {!proto.user.LoginRequest} returns this
6418
6484
  */
6419
6485
  proto.user.LoginRequest.prototype.clearCity = function() {
6420
- return jspb.Message.setField(this, 7, undefined);
6486
+ return jspb.Message.setField(this, 8, undefined);
6421
6487
  };
6422
6488
 
6423
6489
 
@@ -6426,16 +6492,16 @@ proto.user.LoginRequest.prototype.clearCity = function() {
6426
6492
  * @return {boolean}
6427
6493
  */
6428
6494
  proto.user.LoginRequest.prototype.hasCity = function() {
6429
- return jspb.Message.getField(this, 7) != null;
6495
+ return jspb.Message.getField(this, 8) != null;
6430
6496
  };
6431
6497
 
6432
6498
 
6433
6499
  /**
6434
- * optional int32 two_fa = 8;
6500
+ * optional int32 two_fa = 9;
6435
6501
  * @return {number}
6436
6502
  */
6437
6503
  proto.user.LoginRequest.prototype.getTwoFa = function() {
6438
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
6504
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
6439
6505
  };
6440
6506
 
6441
6507
 
@@ -6444,7 +6510,7 @@ proto.user.LoginRequest.prototype.getTwoFa = function() {
6444
6510
  * @return {!proto.user.LoginRequest} returns this
6445
6511
  */
6446
6512
  proto.user.LoginRequest.prototype.setTwoFa = function(value) {
6447
- return jspb.Message.setField(this, 8, value);
6513
+ return jspb.Message.setField(this, 9, value);
6448
6514
  };
6449
6515
 
6450
6516
 
@@ -6453,7 +6519,7 @@ proto.user.LoginRequest.prototype.setTwoFa = function(value) {
6453
6519
  * @return {!proto.user.LoginRequest} returns this
6454
6520
  */
6455
6521
  proto.user.LoginRequest.prototype.clearTwoFa = function() {
6456
- return jspb.Message.setField(this, 8, undefined);
6522
+ return jspb.Message.setField(this, 9, undefined);
6457
6523
  };
6458
6524
 
6459
6525
 
@@ -6462,7 +6528,7 @@ proto.user.LoginRequest.prototype.clearTwoFa = function() {
6462
6528
  * @return {boolean}
6463
6529
  */
6464
6530
  proto.user.LoginRequest.prototype.hasTwoFa = function() {
6465
- return jspb.Message.getField(this, 8) != null;
6531
+ return jspb.Message.getField(this, 9) != null;
6466
6532
  };
6467
6533
 
6468
6534