protobuf-platform 1.2.383 → 1.2.384

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.383",
3
+ "version": "1.2.384",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -240,6 +240,9 @@ message TelegramLoginRequest {
240
240
  optional string city = 9;
241
241
  optional string antifraud_session = 10;
242
242
  optional string user_agent = 11;
243
+ optional string affiliate_info = 12;
244
+ optional int32 affiliate_id = 13;
245
+ optional string promo_code = 14;
243
246
  }
244
247
  message GoogleLoginRequest {
245
248
  string code = 1;
package/user/user_pb.js CHANGED
@@ -8346,7 +8346,10 @@ proto.user.TelegramLoginRequest.toObject = function(includeInstance, msg) {
8346
8346
  country: jspb.Message.getFieldWithDefault(msg, 8, ""),
8347
8347
  city: jspb.Message.getFieldWithDefault(msg, 9, ""),
8348
8348
  antifraudSession: jspb.Message.getFieldWithDefault(msg, 10, ""),
8349
- userAgent: jspb.Message.getFieldWithDefault(msg, 11, "")
8349
+ userAgent: jspb.Message.getFieldWithDefault(msg, 11, ""),
8350
+ affiliateInfo: jspb.Message.getFieldWithDefault(msg, 12, ""),
8351
+ affiliateId: jspb.Message.getFieldWithDefault(msg, 13, 0),
8352
+ promoCode: jspb.Message.getFieldWithDefault(msg, 14, "")
8350
8353
  };
8351
8354
 
8352
8355
  if (includeInstance) {
@@ -8427,6 +8430,18 @@ proto.user.TelegramLoginRequest.deserializeBinaryFromReader = function(msg, read
8427
8430
  var value = /** @type {string} */ (reader.readString());
8428
8431
  msg.setUserAgent(value);
8429
8432
  break;
8433
+ case 12:
8434
+ var value = /** @type {string} */ (reader.readString());
8435
+ msg.setAffiliateInfo(value);
8436
+ break;
8437
+ case 13:
8438
+ var value = /** @type {number} */ (reader.readInt32());
8439
+ msg.setAffiliateId(value);
8440
+ break;
8441
+ case 14:
8442
+ var value = /** @type {string} */ (reader.readString());
8443
+ msg.setPromoCode(value);
8444
+ break;
8430
8445
  default:
8431
8446
  reader.skipField();
8432
8447
  break;
@@ -8533,6 +8548,27 @@ proto.user.TelegramLoginRequest.serializeBinaryToWriter = function(message, writ
8533
8548
  f
8534
8549
  );
8535
8550
  }
8551
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
8552
+ if (f != null) {
8553
+ writer.writeString(
8554
+ 12,
8555
+ f
8556
+ );
8557
+ }
8558
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
8559
+ if (f != null) {
8560
+ writer.writeInt32(
8561
+ 13,
8562
+ f
8563
+ );
8564
+ }
8565
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
8566
+ if (f != null) {
8567
+ writer.writeString(
8568
+ 14,
8569
+ f
8570
+ );
8571
+ }
8536
8572
  };
8537
8573
 
8538
8574
 
@@ -8914,6 +8950,114 @@ proto.user.TelegramLoginRequest.prototype.hasUserAgent = function() {
8914
8950
  };
8915
8951
 
8916
8952
 
8953
+ /**
8954
+ * optional string affiliate_info = 12;
8955
+ * @return {string}
8956
+ */
8957
+ proto.user.TelegramLoginRequest.prototype.getAffiliateInfo = function() {
8958
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
8959
+ };
8960
+
8961
+
8962
+ /**
8963
+ * @param {string} value
8964
+ * @return {!proto.user.TelegramLoginRequest} returns this
8965
+ */
8966
+ proto.user.TelegramLoginRequest.prototype.setAffiliateInfo = function(value) {
8967
+ return jspb.Message.setField(this, 12, value);
8968
+ };
8969
+
8970
+
8971
+ /**
8972
+ * Clears the field making it undefined.
8973
+ * @return {!proto.user.TelegramLoginRequest} returns this
8974
+ */
8975
+ proto.user.TelegramLoginRequest.prototype.clearAffiliateInfo = function() {
8976
+ return jspb.Message.setField(this, 12, undefined);
8977
+ };
8978
+
8979
+
8980
+ /**
8981
+ * Returns whether this field is set.
8982
+ * @return {boolean}
8983
+ */
8984
+ proto.user.TelegramLoginRequest.prototype.hasAffiliateInfo = function() {
8985
+ return jspb.Message.getField(this, 12) != null;
8986
+ };
8987
+
8988
+
8989
+ /**
8990
+ * optional int32 affiliate_id = 13;
8991
+ * @return {number}
8992
+ */
8993
+ proto.user.TelegramLoginRequest.prototype.getAffiliateId = function() {
8994
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
8995
+ };
8996
+
8997
+
8998
+ /**
8999
+ * @param {number} value
9000
+ * @return {!proto.user.TelegramLoginRequest} returns this
9001
+ */
9002
+ proto.user.TelegramLoginRequest.prototype.setAffiliateId = function(value) {
9003
+ return jspb.Message.setField(this, 13, value);
9004
+ };
9005
+
9006
+
9007
+ /**
9008
+ * Clears the field making it undefined.
9009
+ * @return {!proto.user.TelegramLoginRequest} returns this
9010
+ */
9011
+ proto.user.TelegramLoginRequest.prototype.clearAffiliateId = function() {
9012
+ return jspb.Message.setField(this, 13, undefined);
9013
+ };
9014
+
9015
+
9016
+ /**
9017
+ * Returns whether this field is set.
9018
+ * @return {boolean}
9019
+ */
9020
+ proto.user.TelegramLoginRequest.prototype.hasAffiliateId = function() {
9021
+ return jspb.Message.getField(this, 13) != null;
9022
+ };
9023
+
9024
+
9025
+ /**
9026
+ * optional string promo_code = 14;
9027
+ * @return {string}
9028
+ */
9029
+ proto.user.TelegramLoginRequest.prototype.getPromoCode = function() {
9030
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
9031
+ };
9032
+
9033
+
9034
+ /**
9035
+ * @param {string} value
9036
+ * @return {!proto.user.TelegramLoginRequest} returns this
9037
+ */
9038
+ proto.user.TelegramLoginRequest.prototype.setPromoCode = function(value) {
9039
+ return jspb.Message.setField(this, 14, value);
9040
+ };
9041
+
9042
+
9043
+ /**
9044
+ * Clears the field making it undefined.
9045
+ * @return {!proto.user.TelegramLoginRequest} returns this
9046
+ */
9047
+ proto.user.TelegramLoginRequest.prototype.clearPromoCode = function() {
9048
+ return jspb.Message.setField(this, 14, undefined);
9049
+ };
9050
+
9051
+
9052
+ /**
9053
+ * Returns whether this field is set.
9054
+ * @return {boolean}
9055
+ */
9056
+ proto.user.TelegramLoginRequest.prototype.hasPromoCode = function() {
9057
+ return jspb.Message.getField(this, 14) != null;
9058
+ };
9059
+
9060
+
8917
9061
 
8918
9062
 
8919
9063