protobuf-platform 1.0.128 → 1.0.130

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/bonus/bonus.proto CHANGED
@@ -44,8 +44,8 @@ message BonusItemRequest {
44
44
  optional string description = 3;
45
45
  optional string file_name = 4;
46
46
  optional string file_type = 5;
47
- optional string status = 6;
48
- optional string type = 7;
47
+ optional int32 status_id = 6;
48
+ optional int32 type_id = 7;
49
49
  optional int32 wager_x = 8;
50
50
  optional int32 payout_x = 9;
51
51
  optional bool is_real_wagering = 10;
package/bonus/bonus_pb.js CHANGED
@@ -1840,8 +1840,8 @@ proto.bonus.BonusItemRequest.toObject = function(includeInstance, msg) {
1840
1840
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
1841
1841
  fileName: jspb.Message.getFieldWithDefault(msg, 4, ""),
1842
1842
  fileType: jspb.Message.getFieldWithDefault(msg, 5, ""),
1843
- status: jspb.Message.getFieldWithDefault(msg, 6, ""),
1844
- type: jspb.Message.getFieldWithDefault(msg, 7, ""),
1843
+ statusId: jspb.Message.getFieldWithDefault(msg, 6, 0),
1844
+ typeId: jspb.Message.getFieldWithDefault(msg, 7, 0),
1845
1845
  wagerX: jspb.Message.getFieldWithDefault(msg, 8, 0),
1846
1846
  payoutX: jspb.Message.getFieldWithDefault(msg, 9, 0),
1847
1847
  isRealWagering: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
@@ -1915,12 +1915,12 @@ proto.bonus.BonusItemRequest.deserializeBinaryFromReader = function(msg, reader)
1915
1915
  msg.setFileType(value);
1916
1916
  break;
1917
1917
  case 6:
1918
- var value = /** @type {string} */ (reader.readString());
1919
- msg.setStatus(value);
1918
+ var value = /** @type {number} */ (reader.readInt32());
1919
+ msg.setStatusId(value);
1920
1920
  break;
1921
1921
  case 7:
1922
- var value = /** @type {string} */ (reader.readString());
1923
- msg.setType(value);
1922
+ var value = /** @type {number} */ (reader.readInt32());
1923
+ msg.setTypeId(value);
1924
1924
  break;
1925
1925
  case 8:
1926
1926
  var value = /** @type {number} */ (reader.readInt32());
@@ -2044,16 +2044,16 @@ proto.bonus.BonusItemRequest.serializeBinaryToWriter = function(message, writer)
2044
2044
  f
2045
2045
  );
2046
2046
  }
2047
- f = /** @type {string} */ (jspb.Message.getField(message, 6));
2047
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
2048
2048
  if (f != null) {
2049
- writer.writeString(
2049
+ writer.writeInt32(
2050
2050
  6,
2051
2051
  f
2052
2052
  );
2053
2053
  }
2054
- f = /** @type {string} */ (jspb.Message.getField(message, 7));
2054
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
2055
2055
  if (f != null) {
2056
- writer.writeString(
2056
+ writer.writeInt32(
2057
2057
  7,
2058
2058
  f
2059
2059
  );
@@ -2342,19 +2342,19 @@ proto.bonus.BonusItemRequest.prototype.hasFileType = function() {
2342
2342
 
2343
2343
 
2344
2344
  /**
2345
- * optional string status = 6;
2346
- * @return {string}
2345
+ * optional int32 status_id = 6;
2346
+ * @return {number}
2347
2347
  */
2348
- proto.bonus.BonusItemRequest.prototype.getStatus = function() {
2349
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2348
+ proto.bonus.BonusItemRequest.prototype.getStatusId = function() {
2349
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2350
2350
  };
2351
2351
 
2352
2352
 
2353
2353
  /**
2354
- * @param {string} value
2354
+ * @param {number} value
2355
2355
  * @return {!proto.bonus.BonusItemRequest} returns this
2356
2356
  */
2357
- proto.bonus.BonusItemRequest.prototype.setStatus = function(value) {
2357
+ proto.bonus.BonusItemRequest.prototype.setStatusId = function(value) {
2358
2358
  return jspb.Message.setField(this, 6, value);
2359
2359
  };
2360
2360
 
@@ -2363,7 +2363,7 @@ proto.bonus.BonusItemRequest.prototype.setStatus = function(value) {
2363
2363
  * Clears the field making it undefined.
2364
2364
  * @return {!proto.bonus.BonusItemRequest} returns this
2365
2365
  */
2366
- proto.bonus.BonusItemRequest.prototype.clearStatus = function() {
2366
+ proto.bonus.BonusItemRequest.prototype.clearStatusId = function() {
2367
2367
  return jspb.Message.setField(this, 6, undefined);
2368
2368
  };
2369
2369
 
@@ -2372,25 +2372,25 @@ proto.bonus.BonusItemRequest.prototype.clearStatus = function() {
2372
2372
  * Returns whether this field is set.
2373
2373
  * @return {boolean}
2374
2374
  */
2375
- proto.bonus.BonusItemRequest.prototype.hasStatus = function() {
2375
+ proto.bonus.BonusItemRequest.prototype.hasStatusId = function() {
2376
2376
  return jspb.Message.getField(this, 6) != null;
2377
2377
  };
2378
2378
 
2379
2379
 
2380
2380
  /**
2381
- * optional string type = 7;
2382
- * @return {string}
2381
+ * optional int32 type_id = 7;
2382
+ * @return {number}
2383
2383
  */
2384
- proto.bonus.BonusItemRequest.prototype.getType = function() {
2385
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2384
+ proto.bonus.BonusItemRequest.prototype.getTypeId = function() {
2385
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
2386
2386
  };
2387
2387
 
2388
2388
 
2389
2389
  /**
2390
- * @param {string} value
2390
+ * @param {number} value
2391
2391
  * @return {!proto.bonus.BonusItemRequest} returns this
2392
2392
  */
2393
- proto.bonus.BonusItemRequest.prototype.setType = function(value) {
2393
+ proto.bonus.BonusItemRequest.prototype.setTypeId = function(value) {
2394
2394
  return jspb.Message.setField(this, 7, value);
2395
2395
  };
2396
2396
 
@@ -2399,7 +2399,7 @@ proto.bonus.BonusItemRequest.prototype.setType = function(value) {
2399
2399
  * Clears the field making it undefined.
2400
2400
  * @return {!proto.bonus.BonusItemRequest} returns this
2401
2401
  */
2402
- proto.bonus.BonusItemRequest.prototype.clearType = function() {
2402
+ proto.bonus.BonusItemRequest.prototype.clearTypeId = function() {
2403
2403
  return jspb.Message.setField(this, 7, undefined);
2404
2404
  };
2405
2405
 
@@ -2408,7 +2408,7 @@ proto.bonus.BonusItemRequest.prototype.clearType = function() {
2408
2408
  * Returns whether this field is set.
2409
2409
  * @return {boolean}
2410
2410
  */
2411
- proto.bonus.BonusItemRequest.prototype.hasType = function() {
2411
+ proto.bonus.BonusItemRequest.prototype.hasTypeId = function() {
2412
2412
  return jspb.Message.getField(this, 7) != null;
2413
2413
  };
2414
2414
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.128",
3
+ "version": "1.0.130",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -54,6 +54,7 @@ message RegistrationRequest {
54
54
  optional string locale = 10;
55
55
  optional bool email_subscription = 11;
56
56
  optional int32 affiliate_id = 12;
57
+ optional string promo_code = 13;
57
58
  }
58
59
  message LoggedInResponse {
59
60
  int32 id = 1;
package/user/user_pb.js CHANGED
@@ -1385,7 +1385,8 @@ proto.user.RegistrationRequest.toObject = function(includeInstance, msg) {
1385
1385
  birthday: jspb.Message.getFieldWithDefault(msg, 9, ""),
1386
1386
  locale: jspb.Message.getFieldWithDefault(msg, 10, ""),
1387
1387
  emailSubscription: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
1388
- affiliateId: jspb.Message.getFieldWithDefault(msg, 12, 0)
1388
+ affiliateId: jspb.Message.getFieldWithDefault(msg, 12, 0),
1389
+ promoCode: jspb.Message.getFieldWithDefault(msg, 13, "")
1389
1390
  };
1390
1391
 
1391
1392
  if (includeInstance) {
@@ -1470,6 +1471,10 @@ proto.user.RegistrationRequest.deserializeBinaryFromReader = function(msg, reade
1470
1471
  var value = /** @type {number} */ (reader.readInt32());
1471
1472
  msg.setAffiliateId(value);
1472
1473
  break;
1474
+ case 13:
1475
+ var value = /** @type {string} */ (reader.readString());
1476
+ msg.setPromoCode(value);
1477
+ break;
1473
1478
  default:
1474
1479
  reader.skipField();
1475
1480
  break;
@@ -1583,6 +1588,13 @@ proto.user.RegistrationRequest.serializeBinaryToWriter = function(message, write
1583
1588
  f
1584
1589
  );
1585
1590
  }
1591
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
1592
+ if (f != null) {
1593
+ writer.writeString(
1594
+ 13,
1595
+ f
1596
+ );
1597
+ }
1586
1598
  };
1587
1599
 
1588
1600
 
@@ -1964,6 +1976,42 @@ proto.user.RegistrationRequest.prototype.hasAffiliateId = function() {
1964
1976
  };
1965
1977
 
1966
1978
 
1979
+ /**
1980
+ * optional string promo_code = 13;
1981
+ * @return {string}
1982
+ */
1983
+ proto.user.RegistrationRequest.prototype.getPromoCode = function() {
1984
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1985
+ };
1986
+
1987
+
1988
+ /**
1989
+ * @param {string} value
1990
+ * @return {!proto.user.RegistrationRequest} returns this
1991
+ */
1992
+ proto.user.RegistrationRequest.prototype.setPromoCode = function(value) {
1993
+ return jspb.Message.setField(this, 13, value);
1994
+ };
1995
+
1996
+
1997
+ /**
1998
+ * Clears the field making it undefined.
1999
+ * @return {!proto.user.RegistrationRequest} returns this
2000
+ */
2001
+ proto.user.RegistrationRequest.prototype.clearPromoCode = function() {
2002
+ return jspb.Message.setField(this, 13, undefined);
2003
+ };
2004
+
2005
+
2006
+ /**
2007
+ * Returns whether this field is set.
2008
+ * @return {boolean}
2009
+ */
2010
+ proto.user.RegistrationRequest.prototype.hasPromoCode = function() {
2011
+ return jspb.Message.getField(this, 13) != null;
2012
+ };
2013
+
2014
+
1967
2015
 
1968
2016
 
1969
2017