protobuf-platform 1.2.168 → 1.2.170

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
@@ -56,6 +56,7 @@ message SearchBonusRequest {
56
56
  optional int32 type_id = 2;
57
57
  repeated string currencies = 3;
58
58
  optional int32 status_id = 4;
59
+ optional string locale = 5;
59
60
  }
60
61
  //Bonus CRUD | Requests
61
62
  message BonusRequest {
@@ -134,6 +135,7 @@ message GetBonusRequest {
134
135
  }
135
136
  message GetBonusBySlugRequest {
136
137
  string slug = 1;
138
+ optional string locale = 2;
137
139
  }
138
140
  message BonusResponse {
139
141
  BonusItem data = 1;
package/bonus/bonus_pb.js CHANGED
@@ -1946,7 +1946,8 @@ proto.bonus.SearchBonusRequest.toObject = function(includeInstance, msg) {
1946
1946
  title: jspb.Message.getFieldWithDefault(msg, 1, ""),
1947
1947
  typeId: jspb.Message.getFieldWithDefault(msg, 2, 0),
1948
1948
  currenciesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
1949
- statusId: jspb.Message.getFieldWithDefault(msg, 4, 0)
1949
+ statusId: jspb.Message.getFieldWithDefault(msg, 4, 0),
1950
+ locale: jspb.Message.getFieldWithDefault(msg, 5, "")
1950
1951
  };
1951
1952
 
1952
1953
  if (includeInstance) {
@@ -1999,6 +2000,10 @@ proto.bonus.SearchBonusRequest.deserializeBinaryFromReader = function(msg, reade
1999
2000
  var value = /** @type {number} */ (reader.readInt32());
2000
2001
  msg.setStatusId(value);
2001
2002
  break;
2003
+ case 5:
2004
+ var value = /** @type {string} */ (reader.readString());
2005
+ msg.setLocale(value);
2006
+ break;
2002
2007
  default:
2003
2008
  reader.skipField();
2004
2009
  break;
@@ -2056,6 +2061,13 @@ proto.bonus.SearchBonusRequest.serializeBinaryToWriter = function(message, write
2056
2061
  f
2057
2062
  );
2058
2063
  }
2064
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
2065
+ if (f != null) {
2066
+ writer.writeString(
2067
+ 5,
2068
+ f
2069
+ );
2070
+ }
2059
2071
  };
2060
2072
 
2061
2073
 
@@ -2204,6 +2216,42 @@ proto.bonus.SearchBonusRequest.prototype.hasStatusId = function() {
2204
2216
  };
2205
2217
 
2206
2218
 
2219
+ /**
2220
+ * optional string locale = 5;
2221
+ * @return {string}
2222
+ */
2223
+ proto.bonus.SearchBonusRequest.prototype.getLocale = function() {
2224
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2225
+ };
2226
+
2227
+
2228
+ /**
2229
+ * @param {string} value
2230
+ * @return {!proto.bonus.SearchBonusRequest} returns this
2231
+ */
2232
+ proto.bonus.SearchBonusRequest.prototype.setLocale = function(value) {
2233
+ return jspb.Message.setField(this, 5, value);
2234
+ };
2235
+
2236
+
2237
+ /**
2238
+ * Clears the field making it undefined.
2239
+ * @return {!proto.bonus.SearchBonusRequest} returns this
2240
+ */
2241
+ proto.bonus.SearchBonusRequest.prototype.clearLocale = function() {
2242
+ return jspb.Message.setField(this, 5, undefined);
2243
+ };
2244
+
2245
+
2246
+ /**
2247
+ * Returns whether this field is set.
2248
+ * @return {boolean}
2249
+ */
2250
+ proto.bonus.SearchBonusRequest.prototype.hasLocale = function() {
2251
+ return jspb.Message.getField(this, 5) != null;
2252
+ };
2253
+
2254
+
2207
2255
 
2208
2256
  /**
2209
2257
  * Oneof group definitions for this message. Each group defines the field
@@ -5518,7 +5566,8 @@ proto.bonus.GetBonusBySlugRequest.prototype.toObject = function(opt_includeInsta
5518
5566
  */
5519
5567
  proto.bonus.GetBonusBySlugRequest.toObject = function(includeInstance, msg) {
5520
5568
  var f, obj = {
5521
- slug: jspb.Message.getFieldWithDefault(msg, 1, "")
5569
+ slug: jspb.Message.getFieldWithDefault(msg, 1, ""),
5570
+ locale: jspb.Message.getFieldWithDefault(msg, 2, "")
5522
5571
  };
5523
5572
 
5524
5573
  if (includeInstance) {
@@ -5559,6 +5608,10 @@ proto.bonus.GetBonusBySlugRequest.deserializeBinaryFromReader = function(msg, re
5559
5608
  var value = /** @type {string} */ (reader.readString());
5560
5609
  msg.setSlug(value);
5561
5610
  break;
5611
+ case 2:
5612
+ var value = /** @type {string} */ (reader.readString());
5613
+ msg.setLocale(value);
5614
+ break;
5562
5615
  default:
5563
5616
  reader.skipField();
5564
5617
  break;
@@ -5595,6 +5648,13 @@ proto.bonus.GetBonusBySlugRequest.serializeBinaryToWriter = function(message, wr
5595
5648
  f
5596
5649
  );
5597
5650
  }
5651
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
5652
+ if (f != null) {
5653
+ writer.writeString(
5654
+ 2,
5655
+ f
5656
+ );
5657
+ }
5598
5658
  };
5599
5659
 
5600
5660
 
@@ -5616,6 +5676,42 @@ proto.bonus.GetBonusBySlugRequest.prototype.setSlug = function(value) {
5616
5676
  };
5617
5677
 
5618
5678
 
5679
+ /**
5680
+ * optional string locale = 2;
5681
+ * @return {string}
5682
+ */
5683
+ proto.bonus.GetBonusBySlugRequest.prototype.getLocale = function() {
5684
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5685
+ };
5686
+
5687
+
5688
+ /**
5689
+ * @param {string} value
5690
+ * @return {!proto.bonus.GetBonusBySlugRequest} returns this
5691
+ */
5692
+ proto.bonus.GetBonusBySlugRequest.prototype.setLocale = function(value) {
5693
+ return jspb.Message.setField(this, 2, value);
5694
+ };
5695
+
5696
+
5697
+ /**
5698
+ * Clears the field making it undefined.
5699
+ * @return {!proto.bonus.GetBonusBySlugRequest} returns this
5700
+ */
5701
+ proto.bonus.GetBonusBySlugRequest.prototype.clearLocale = function() {
5702
+ return jspb.Message.setField(this, 2, undefined);
5703
+ };
5704
+
5705
+
5706
+ /**
5707
+ * Returns whether this field is set.
5708
+ * @return {boolean}
5709
+ */
5710
+ proto.bonus.GetBonusBySlugRequest.prototype.hasLocale = function() {
5711
+ return jspb.Message.getField(this, 2) != null;
5712
+ };
5713
+
5714
+
5619
5715
 
5620
5716
 
5621
5717
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.168",
3
+ "version": "1.2.170",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {