protobuf-platform 1.2.153 → 1.2.155

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/game/game.proto CHANGED
@@ -161,27 +161,29 @@ message CashBackSearchRequest {
161
161
  message TournamentSearchRequest {
162
162
  optional int32 tournament_id = 1;
163
163
  optional string game_title = 2;
164
+ repeated int32 ids = 4;
164
165
  }
165
166
  message ProviderSearchRequest {
166
167
  optional string provider_title = 1;
167
168
  optional int32 is_active = 2;
168
169
  optional string geo = 3;
170
+ repeated int32 ids = 4;
169
171
  }
170
172
  message CategorySearchRequest {
171
173
  optional string category_title = 1;
172
174
  optional int32 is_active = 2;
173
- repeated int32 category_ids = 3;
175
+ repeated int32 ids = 3;
174
176
  }
175
177
  message CollectionSearchRequest {
176
178
  optional string collection_title = 1;
177
179
  optional int32 is_active = 2;
178
180
  repeated int32 category_ids = 3;
179
- repeated int32 collection_ids = 4;
181
+ repeated int32 ids = 4;
180
182
  }
181
183
  message TagSearchRequest {
182
184
  optional string tag_title = 1;
183
185
  optional int32 is_active = 2;
184
- repeated int32 tag_ids = 3;
186
+ repeated int32 ids = 3;
185
187
  }
186
188
  message ItemsBunchRequest {
187
189
  repeated int32 ids = 1;
@@ -201,7 +203,8 @@ message CategoryItem {
201
203
  optional string description = 4;
202
204
  optional int32 is_active = 5;
203
205
  optional string image = 6;
204
- optional int32 count_of_collections = 7;
206
+ optional string image_cdn = 7;
207
+ optional int32 count_of_collections = 8;
205
208
  }
206
209
  //Category CRUD | Requests
207
210
  message CategoryRequest {
@@ -244,7 +247,8 @@ message CollectionItem {
244
247
  optional string description = 5;
245
248
  optional int32 is_active = 6;
246
249
  optional string image = 7;
247
- optional int32 count_of_games = 8;
250
+ optional string image_cdn = 8;
251
+ optional int32 count_of_games = 9;
248
252
  }
249
253
  //Collection CRUD | Requests
250
254
  message CollectionRequest {
@@ -292,7 +296,8 @@ message TagItem {
292
296
  optional string description = 4;
293
297
  optional int32 is_active = 5;
294
298
  optional string image = 6;
295
- optional int32 count_of_games = 7;
299
+ optional string image_cdn = 7;
300
+ optional int32 count_of_games = 8;
296
301
  }
297
302
  //Tag CRUD | Requests
298
303
  message TagRequest {
package/game/game_pb.js CHANGED
@@ -273,7 +273,7 @@ if (goog.DEBUG && !COMPILED) {
273
273
  * @constructor
274
274
  */
275
275
  proto.game.TournamentSearchRequest = function(opt_data) {
276
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
276
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.TournamentSearchRequest.repeatedFields_, null);
277
277
  };
278
278
  goog.inherits(proto.game.TournamentSearchRequest, jspb.Message);
279
279
  if (goog.DEBUG && !COMPILED) {
@@ -294,7 +294,7 @@ if (goog.DEBUG && !COMPILED) {
294
294
  * @constructor
295
295
  */
296
296
  proto.game.ProviderSearchRequest = function(opt_data) {
297
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
297
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.ProviderSearchRequest.repeatedFields_, null);
298
298
  };
299
299
  goog.inherits(proto.game.ProviderSearchRequest, jspb.Message);
300
300
  if (goog.DEBUG && !COMPILED) {
@@ -4914,6 +4914,13 @@ proto.game.CashBackSearchRequest.prototype.clearCashbackIdsList = function() {
4914
4914
 
4915
4915
 
4916
4916
 
4917
+ /**
4918
+ * List of repeated fields within this message type.
4919
+ * @private {!Array<number>}
4920
+ * @const
4921
+ */
4922
+ proto.game.TournamentSearchRequest.repeatedFields_ = [4];
4923
+
4917
4924
 
4918
4925
 
4919
4926
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -4946,7 +4953,8 @@ proto.game.TournamentSearchRequest.prototype.toObject = function(opt_includeInst
4946
4953
  proto.game.TournamentSearchRequest.toObject = function(includeInstance, msg) {
4947
4954
  var f, obj = {
4948
4955
  tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
4949
- gameTitle: jspb.Message.getFieldWithDefault(msg, 2, "")
4956
+ gameTitle: jspb.Message.getFieldWithDefault(msg, 2, ""),
4957
+ idsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
4950
4958
  };
4951
4959
 
4952
4960
  if (includeInstance) {
@@ -4991,6 +4999,12 @@ proto.game.TournamentSearchRequest.deserializeBinaryFromReader = function(msg, r
4991
4999
  var value = /** @type {string} */ (reader.readString());
4992
5000
  msg.setGameTitle(value);
4993
5001
  break;
5002
+ case 4:
5003
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
5004
+ for (var i = 0; i < values.length; i++) {
5005
+ msg.addIds(values[i]);
5006
+ }
5007
+ break;
4994
5008
  default:
4995
5009
  reader.skipField();
4996
5010
  break;
@@ -5034,6 +5048,13 @@ proto.game.TournamentSearchRequest.serializeBinaryToWriter = function(message, w
5034
5048
  f
5035
5049
  );
5036
5050
  }
5051
+ f = message.getIdsList();
5052
+ if (f.length > 0) {
5053
+ writer.writePackedInt32(
5054
+ 4,
5055
+ f
5056
+ );
5057
+ }
5037
5058
  };
5038
5059
 
5039
5060
 
@@ -5109,6 +5130,50 @@ proto.game.TournamentSearchRequest.prototype.hasGameTitle = function() {
5109
5130
  };
5110
5131
 
5111
5132
 
5133
+ /**
5134
+ * repeated int32 ids = 4;
5135
+ * @return {!Array<number>}
5136
+ */
5137
+ proto.game.TournamentSearchRequest.prototype.getIdsList = function() {
5138
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
5139
+ };
5140
+
5141
+
5142
+ /**
5143
+ * @param {!Array<number>} value
5144
+ * @return {!proto.game.TournamentSearchRequest} returns this
5145
+ */
5146
+ proto.game.TournamentSearchRequest.prototype.setIdsList = function(value) {
5147
+ return jspb.Message.setField(this, 4, value || []);
5148
+ };
5149
+
5150
+
5151
+ /**
5152
+ * @param {number} value
5153
+ * @param {number=} opt_index
5154
+ * @return {!proto.game.TournamentSearchRequest} returns this
5155
+ */
5156
+ proto.game.TournamentSearchRequest.prototype.addIds = function(value, opt_index) {
5157
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
5158
+ };
5159
+
5160
+
5161
+ /**
5162
+ * Clears the list making it empty but non-null.
5163
+ * @return {!proto.game.TournamentSearchRequest} returns this
5164
+ */
5165
+ proto.game.TournamentSearchRequest.prototype.clearIdsList = function() {
5166
+ return this.setIdsList([]);
5167
+ };
5168
+
5169
+
5170
+
5171
+ /**
5172
+ * List of repeated fields within this message type.
5173
+ * @private {!Array<number>}
5174
+ * @const
5175
+ */
5176
+ proto.game.ProviderSearchRequest.repeatedFields_ = [4];
5112
5177
 
5113
5178
 
5114
5179
 
@@ -5143,7 +5208,8 @@ proto.game.ProviderSearchRequest.toObject = function(includeInstance, msg) {
5143
5208
  var f, obj = {
5144
5209
  providerTitle: jspb.Message.getFieldWithDefault(msg, 1, ""),
5145
5210
  isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
5146
- geo: jspb.Message.getFieldWithDefault(msg, 3, "")
5211
+ geo: jspb.Message.getFieldWithDefault(msg, 3, ""),
5212
+ idsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
5147
5213
  };
5148
5214
 
5149
5215
  if (includeInstance) {
@@ -5192,6 +5258,12 @@ proto.game.ProviderSearchRequest.deserializeBinaryFromReader = function(msg, rea
5192
5258
  var value = /** @type {string} */ (reader.readString());
5193
5259
  msg.setGeo(value);
5194
5260
  break;
5261
+ case 4:
5262
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
5263
+ for (var i = 0; i < values.length; i++) {
5264
+ msg.addIds(values[i]);
5265
+ }
5266
+ break;
5195
5267
  default:
5196
5268
  reader.skipField();
5197
5269
  break;
@@ -5242,6 +5314,13 @@ proto.game.ProviderSearchRequest.serializeBinaryToWriter = function(message, wri
5242
5314
  f
5243
5315
  );
5244
5316
  }
5317
+ f = message.getIdsList();
5318
+ if (f.length > 0) {
5319
+ writer.writePackedInt32(
5320
+ 4,
5321
+ f
5322
+ );
5323
+ }
5245
5324
  };
5246
5325
 
5247
5326
 
@@ -5353,6 +5432,43 @@ proto.game.ProviderSearchRequest.prototype.hasGeo = function() {
5353
5432
  };
5354
5433
 
5355
5434
 
5435
+ /**
5436
+ * repeated int32 ids = 4;
5437
+ * @return {!Array<number>}
5438
+ */
5439
+ proto.game.ProviderSearchRequest.prototype.getIdsList = function() {
5440
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
5441
+ };
5442
+
5443
+
5444
+ /**
5445
+ * @param {!Array<number>} value
5446
+ * @return {!proto.game.ProviderSearchRequest} returns this
5447
+ */
5448
+ proto.game.ProviderSearchRequest.prototype.setIdsList = function(value) {
5449
+ return jspb.Message.setField(this, 4, value || []);
5450
+ };
5451
+
5452
+
5453
+ /**
5454
+ * @param {number} value
5455
+ * @param {number=} opt_index
5456
+ * @return {!proto.game.ProviderSearchRequest} returns this
5457
+ */
5458
+ proto.game.ProviderSearchRequest.prototype.addIds = function(value, opt_index) {
5459
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
5460
+ };
5461
+
5462
+
5463
+ /**
5464
+ * Clears the list making it empty but non-null.
5465
+ * @return {!proto.game.ProviderSearchRequest} returns this
5466
+ */
5467
+ proto.game.ProviderSearchRequest.prototype.clearIdsList = function() {
5468
+ return this.setIdsList([]);
5469
+ };
5470
+
5471
+
5356
5472
 
5357
5473
  /**
5358
5474
  * List of repeated fields within this message type.
@@ -5394,7 +5510,7 @@ proto.game.CategorySearchRequest.toObject = function(includeInstance, msg) {
5394
5510
  var f, obj = {
5395
5511
  categoryTitle: jspb.Message.getFieldWithDefault(msg, 1, ""),
5396
5512
  isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
5397
- categoryIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
5513
+ idsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
5398
5514
  };
5399
5515
 
5400
5516
  if (includeInstance) {
@@ -5442,7 +5558,7 @@ proto.game.CategorySearchRequest.deserializeBinaryFromReader = function(msg, rea
5442
5558
  case 3:
5443
5559
  var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
5444
5560
  for (var i = 0; i < values.length; i++) {
5445
- msg.addCategoryIds(values[i]);
5561
+ msg.addIds(values[i]);
5446
5562
  }
5447
5563
  break;
5448
5564
  default:
@@ -5488,7 +5604,7 @@ proto.game.CategorySearchRequest.serializeBinaryToWriter = function(message, wri
5488
5604
  f
5489
5605
  );
5490
5606
  }
5491
- f = message.getCategoryIdsList();
5607
+ f = message.getIdsList();
5492
5608
  if (f.length > 0) {
5493
5609
  writer.writePackedInt32(
5494
5610
  3,
@@ -5571,10 +5687,10 @@ proto.game.CategorySearchRequest.prototype.hasIsActive = function() {
5571
5687
 
5572
5688
 
5573
5689
  /**
5574
- * repeated int32 category_ids = 3;
5690
+ * repeated int32 ids = 3;
5575
5691
  * @return {!Array<number>}
5576
5692
  */
5577
- proto.game.CategorySearchRequest.prototype.getCategoryIdsList = function() {
5693
+ proto.game.CategorySearchRequest.prototype.getIdsList = function() {
5578
5694
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
5579
5695
  };
5580
5696
 
@@ -5583,7 +5699,7 @@ proto.game.CategorySearchRequest.prototype.getCategoryIdsList = function() {
5583
5699
  * @param {!Array<number>} value
5584
5700
  * @return {!proto.game.CategorySearchRequest} returns this
5585
5701
  */
5586
- proto.game.CategorySearchRequest.prototype.setCategoryIdsList = function(value) {
5702
+ proto.game.CategorySearchRequest.prototype.setIdsList = function(value) {
5587
5703
  return jspb.Message.setField(this, 3, value || []);
5588
5704
  };
5589
5705
 
@@ -5593,7 +5709,7 @@ proto.game.CategorySearchRequest.prototype.setCategoryIdsList = function(value)
5593
5709
  * @param {number=} opt_index
5594
5710
  * @return {!proto.game.CategorySearchRequest} returns this
5595
5711
  */
5596
- proto.game.CategorySearchRequest.prototype.addCategoryIds = function(value, opt_index) {
5712
+ proto.game.CategorySearchRequest.prototype.addIds = function(value, opt_index) {
5597
5713
  return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
5598
5714
  };
5599
5715
 
@@ -5602,8 +5718,8 @@ proto.game.CategorySearchRequest.prototype.addCategoryIds = function(value, opt_
5602
5718
  * Clears the list making it empty but non-null.
5603
5719
  * @return {!proto.game.CategorySearchRequest} returns this
5604
5720
  */
5605
- proto.game.CategorySearchRequest.prototype.clearCategoryIdsList = function() {
5606
- return this.setCategoryIdsList([]);
5721
+ proto.game.CategorySearchRequest.prototype.clearIdsList = function() {
5722
+ return this.setIdsList([]);
5607
5723
  };
5608
5724
 
5609
5725
 
@@ -5649,7 +5765,7 @@ proto.game.CollectionSearchRequest.toObject = function(includeInstance, msg) {
5649
5765
  collectionTitle: jspb.Message.getFieldWithDefault(msg, 1, ""),
5650
5766
  isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
5651
5767
  categoryIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
5652
- collectionIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
5768
+ idsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
5653
5769
  };
5654
5770
 
5655
5771
  if (includeInstance) {
@@ -5703,7 +5819,7 @@ proto.game.CollectionSearchRequest.deserializeBinaryFromReader = function(msg, r
5703
5819
  case 4:
5704
5820
  var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
5705
5821
  for (var i = 0; i < values.length; i++) {
5706
- msg.addCollectionIds(values[i]);
5822
+ msg.addIds(values[i]);
5707
5823
  }
5708
5824
  break;
5709
5825
  default:
@@ -5756,7 +5872,7 @@ proto.game.CollectionSearchRequest.serializeBinaryToWriter = function(message, w
5756
5872
  f
5757
5873
  );
5758
5874
  }
5759
- f = message.getCollectionIdsList();
5875
+ f = message.getIdsList();
5760
5876
  if (f.length > 0) {
5761
5877
  writer.writePackedInt32(
5762
5878
  4,
@@ -5876,10 +5992,10 @@ proto.game.CollectionSearchRequest.prototype.clearCategoryIdsList = function() {
5876
5992
 
5877
5993
 
5878
5994
  /**
5879
- * repeated int32 collection_ids = 4;
5995
+ * repeated int32 ids = 4;
5880
5996
  * @return {!Array<number>}
5881
5997
  */
5882
- proto.game.CollectionSearchRequest.prototype.getCollectionIdsList = function() {
5998
+ proto.game.CollectionSearchRequest.prototype.getIdsList = function() {
5883
5999
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
5884
6000
  };
5885
6001
 
@@ -5888,7 +6004,7 @@ proto.game.CollectionSearchRequest.prototype.getCollectionIdsList = function() {
5888
6004
  * @param {!Array<number>} value
5889
6005
  * @return {!proto.game.CollectionSearchRequest} returns this
5890
6006
  */
5891
- proto.game.CollectionSearchRequest.prototype.setCollectionIdsList = function(value) {
6007
+ proto.game.CollectionSearchRequest.prototype.setIdsList = function(value) {
5892
6008
  return jspb.Message.setField(this, 4, value || []);
5893
6009
  };
5894
6010
 
@@ -5898,7 +6014,7 @@ proto.game.CollectionSearchRequest.prototype.setCollectionIdsList = function(val
5898
6014
  * @param {number=} opt_index
5899
6015
  * @return {!proto.game.CollectionSearchRequest} returns this
5900
6016
  */
5901
- proto.game.CollectionSearchRequest.prototype.addCollectionIds = function(value, opt_index) {
6017
+ proto.game.CollectionSearchRequest.prototype.addIds = function(value, opt_index) {
5902
6018
  return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
5903
6019
  };
5904
6020
 
@@ -5907,8 +6023,8 @@ proto.game.CollectionSearchRequest.prototype.addCollectionIds = function(value,
5907
6023
  * Clears the list making it empty but non-null.
5908
6024
  * @return {!proto.game.CollectionSearchRequest} returns this
5909
6025
  */
5910
- proto.game.CollectionSearchRequest.prototype.clearCollectionIdsList = function() {
5911
- return this.setCollectionIdsList([]);
6026
+ proto.game.CollectionSearchRequest.prototype.clearIdsList = function() {
6027
+ return this.setIdsList([]);
5912
6028
  };
5913
6029
 
5914
6030
 
@@ -5953,7 +6069,7 @@ proto.game.TagSearchRequest.toObject = function(includeInstance, msg) {
5953
6069
  var f, obj = {
5954
6070
  tagTitle: jspb.Message.getFieldWithDefault(msg, 1, ""),
5955
6071
  isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
5956
- tagIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
6072
+ idsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
5957
6073
  };
5958
6074
 
5959
6075
  if (includeInstance) {
@@ -6001,7 +6117,7 @@ proto.game.TagSearchRequest.deserializeBinaryFromReader = function(msg, reader)
6001
6117
  case 3:
6002
6118
  var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
6003
6119
  for (var i = 0; i < values.length; i++) {
6004
- msg.addTagIds(values[i]);
6120
+ msg.addIds(values[i]);
6005
6121
  }
6006
6122
  break;
6007
6123
  default:
@@ -6047,7 +6163,7 @@ proto.game.TagSearchRequest.serializeBinaryToWriter = function(message, writer)
6047
6163
  f
6048
6164
  );
6049
6165
  }
6050
- f = message.getTagIdsList();
6166
+ f = message.getIdsList();
6051
6167
  if (f.length > 0) {
6052
6168
  writer.writePackedInt32(
6053
6169
  3,
@@ -6130,10 +6246,10 @@ proto.game.TagSearchRequest.prototype.hasIsActive = function() {
6130
6246
 
6131
6247
 
6132
6248
  /**
6133
- * repeated int32 tag_ids = 3;
6249
+ * repeated int32 ids = 3;
6134
6250
  * @return {!Array<number>}
6135
6251
  */
6136
- proto.game.TagSearchRequest.prototype.getTagIdsList = function() {
6252
+ proto.game.TagSearchRequest.prototype.getIdsList = function() {
6137
6253
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
6138
6254
  };
6139
6255
 
@@ -6142,7 +6258,7 @@ proto.game.TagSearchRequest.prototype.getTagIdsList = function() {
6142
6258
  * @param {!Array<number>} value
6143
6259
  * @return {!proto.game.TagSearchRequest} returns this
6144
6260
  */
6145
- proto.game.TagSearchRequest.prototype.setTagIdsList = function(value) {
6261
+ proto.game.TagSearchRequest.prototype.setIdsList = function(value) {
6146
6262
  return jspb.Message.setField(this, 3, value || []);
6147
6263
  };
6148
6264
 
@@ -6152,7 +6268,7 @@ proto.game.TagSearchRequest.prototype.setTagIdsList = function(value) {
6152
6268
  * @param {number=} opt_index
6153
6269
  * @return {!proto.game.TagSearchRequest} returns this
6154
6270
  */
6155
- proto.game.TagSearchRequest.prototype.addTagIds = function(value, opt_index) {
6271
+ proto.game.TagSearchRequest.prototype.addIds = function(value, opt_index) {
6156
6272
  return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
6157
6273
  };
6158
6274
 
@@ -6161,8 +6277,8 @@ proto.game.TagSearchRequest.prototype.addTagIds = function(value, opt_index) {
6161
6277
  * Clears the list making it empty but non-null.
6162
6278
  * @return {!proto.game.TagSearchRequest} returns this
6163
6279
  */
6164
- proto.game.TagSearchRequest.prototype.clearTagIdsList = function() {
6165
- return this.setTagIdsList([]);
6280
+ proto.game.TagSearchRequest.prototype.clearIdsList = function() {
6281
+ return this.setIdsList([]);
6166
6282
  };
6167
6283
 
6168
6284
 
@@ -6854,7 +6970,8 @@ proto.game.CategoryItem.toObject = function(includeInstance, msg) {
6854
6970
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
6855
6971
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
6856
6972
  image: jspb.Message.getFieldWithDefault(msg, 6, ""),
6857
- countOfCollections: jspb.Message.getFieldWithDefault(msg, 7, 0)
6973
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
6974
+ countOfCollections: jspb.Message.getFieldWithDefault(msg, 8, 0)
6858
6975
  };
6859
6976
 
6860
6977
  if (includeInstance) {
@@ -6916,6 +7033,10 @@ proto.game.CategoryItem.deserializeBinaryFromReader = function(msg, reader) {
6916
7033
  msg.setImage(value);
6917
7034
  break;
6918
7035
  case 7:
7036
+ var value = /** @type {string} */ (reader.readString());
7037
+ msg.setImageCdn(value);
7038
+ break;
7039
+ case 8:
6919
7040
  var value = /** @type {number} */ (reader.readInt32());
6920
7041
  msg.setCountOfCollections(value);
6921
7042
  break;
@@ -6990,13 +7111,20 @@ proto.game.CategoryItem.serializeBinaryToWriter = function(message, writer) {
6990
7111
  f
6991
7112
  );
6992
7113
  }
6993
- f = /** @type {number} */ (jspb.Message.getField(message, 7));
7114
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
6994
7115
  if (f != null) {
6995
- writer.writeInt32(
7116
+ writer.writeString(
6996
7117
  7,
6997
7118
  f
6998
7119
  );
6999
7120
  }
7121
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
7122
+ if (f != null) {
7123
+ writer.writeInt32(
7124
+ 8,
7125
+ f
7126
+ );
7127
+ }
7000
7128
  };
7001
7129
 
7002
7130
 
@@ -7217,11 +7345,47 @@ proto.game.CategoryItem.prototype.hasImage = function() {
7217
7345
 
7218
7346
 
7219
7347
  /**
7220
- * optional int32 count_of_collections = 7;
7348
+ * optional string image_cdn = 7;
7349
+ * @return {string}
7350
+ */
7351
+ proto.game.CategoryItem.prototype.getImageCdn = function() {
7352
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
7353
+ };
7354
+
7355
+
7356
+ /**
7357
+ * @param {string} value
7358
+ * @return {!proto.game.CategoryItem} returns this
7359
+ */
7360
+ proto.game.CategoryItem.prototype.setImageCdn = function(value) {
7361
+ return jspb.Message.setField(this, 7, value);
7362
+ };
7363
+
7364
+
7365
+ /**
7366
+ * Clears the field making it undefined.
7367
+ * @return {!proto.game.CategoryItem} returns this
7368
+ */
7369
+ proto.game.CategoryItem.prototype.clearImageCdn = function() {
7370
+ return jspb.Message.setField(this, 7, undefined);
7371
+ };
7372
+
7373
+
7374
+ /**
7375
+ * Returns whether this field is set.
7376
+ * @return {boolean}
7377
+ */
7378
+ proto.game.CategoryItem.prototype.hasImageCdn = function() {
7379
+ return jspb.Message.getField(this, 7) != null;
7380
+ };
7381
+
7382
+
7383
+ /**
7384
+ * optional int32 count_of_collections = 8;
7221
7385
  * @return {number}
7222
7386
  */
7223
7387
  proto.game.CategoryItem.prototype.getCountOfCollections = function() {
7224
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
7388
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
7225
7389
  };
7226
7390
 
7227
7391
 
@@ -7230,7 +7394,7 @@ proto.game.CategoryItem.prototype.getCountOfCollections = function() {
7230
7394
  * @return {!proto.game.CategoryItem} returns this
7231
7395
  */
7232
7396
  proto.game.CategoryItem.prototype.setCountOfCollections = function(value) {
7233
- return jspb.Message.setField(this, 7, value);
7397
+ return jspb.Message.setField(this, 8, value);
7234
7398
  };
7235
7399
 
7236
7400
 
@@ -7239,7 +7403,7 @@ proto.game.CategoryItem.prototype.setCountOfCollections = function(value) {
7239
7403
  * @return {!proto.game.CategoryItem} returns this
7240
7404
  */
7241
7405
  proto.game.CategoryItem.prototype.clearCountOfCollections = function() {
7242
- return jspb.Message.setField(this, 7, undefined);
7406
+ return jspb.Message.setField(this, 8, undefined);
7243
7407
  };
7244
7408
 
7245
7409
 
@@ -7248,7 +7412,7 @@ proto.game.CategoryItem.prototype.clearCountOfCollections = function() {
7248
7412
  * @return {boolean}
7249
7413
  */
7250
7414
  proto.game.CategoryItem.prototype.hasCountOfCollections = function() {
7251
- return jspb.Message.getField(this, 7) != null;
7415
+ return jspb.Message.getField(this, 8) != null;
7252
7416
  };
7253
7417
 
7254
7418
 
@@ -8622,7 +8786,8 @@ proto.game.CollectionItem.toObject = function(includeInstance, msg) {
8622
8786
  description: jspb.Message.getFieldWithDefault(msg, 5, ""),
8623
8787
  isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
8624
8788
  image: jspb.Message.getFieldWithDefault(msg, 7, ""),
8625
- countOfGames: jspb.Message.getFieldWithDefault(msg, 8, 0)
8789
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 8, ""),
8790
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 9, 0)
8626
8791
  };
8627
8792
 
8628
8793
  if (includeInstance) {
@@ -8689,6 +8854,10 @@ proto.game.CollectionItem.deserializeBinaryFromReader = function(msg, reader) {
8689
8854
  msg.setImage(value);
8690
8855
  break;
8691
8856
  case 8:
8857
+ var value = /** @type {string} */ (reader.readString());
8858
+ msg.setImageCdn(value);
8859
+ break;
8860
+ case 9:
8692
8861
  var value = /** @type {number} */ (reader.readInt32());
8693
8862
  msg.setCountOfGames(value);
8694
8863
  break;
@@ -8771,13 +8940,20 @@ proto.game.CollectionItem.serializeBinaryToWriter = function(message, writer) {
8771
8940
  f
8772
8941
  );
8773
8942
  }
8774
- f = /** @type {number} */ (jspb.Message.getField(message, 8));
8943
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
8775
8944
  if (f != null) {
8776
- writer.writeInt32(
8945
+ writer.writeString(
8777
8946
  8,
8778
8947
  f
8779
8948
  );
8780
8949
  }
8950
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
8951
+ if (f != null) {
8952
+ writer.writeInt32(
8953
+ 9,
8954
+ f
8955
+ );
8956
+ }
8781
8957
  };
8782
8958
 
8783
8959
 
@@ -9035,11 +9211,47 @@ proto.game.CollectionItem.prototype.hasImage = function() {
9035
9211
 
9036
9212
 
9037
9213
  /**
9038
- * optional int32 count_of_games = 8;
9214
+ * optional string image_cdn = 8;
9215
+ * @return {string}
9216
+ */
9217
+ proto.game.CollectionItem.prototype.getImageCdn = function() {
9218
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
9219
+ };
9220
+
9221
+
9222
+ /**
9223
+ * @param {string} value
9224
+ * @return {!proto.game.CollectionItem} returns this
9225
+ */
9226
+ proto.game.CollectionItem.prototype.setImageCdn = function(value) {
9227
+ return jspb.Message.setField(this, 8, value);
9228
+ };
9229
+
9230
+
9231
+ /**
9232
+ * Clears the field making it undefined.
9233
+ * @return {!proto.game.CollectionItem} returns this
9234
+ */
9235
+ proto.game.CollectionItem.prototype.clearImageCdn = function() {
9236
+ return jspb.Message.setField(this, 8, undefined);
9237
+ };
9238
+
9239
+
9240
+ /**
9241
+ * Returns whether this field is set.
9242
+ * @return {boolean}
9243
+ */
9244
+ proto.game.CollectionItem.prototype.hasImageCdn = function() {
9245
+ return jspb.Message.getField(this, 8) != null;
9246
+ };
9247
+
9248
+
9249
+ /**
9250
+ * optional int32 count_of_games = 9;
9039
9251
  * @return {number}
9040
9252
  */
9041
9253
  proto.game.CollectionItem.prototype.getCountOfGames = function() {
9042
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
9254
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
9043
9255
  };
9044
9256
 
9045
9257
 
@@ -9048,7 +9260,7 @@ proto.game.CollectionItem.prototype.getCountOfGames = function() {
9048
9260
  * @return {!proto.game.CollectionItem} returns this
9049
9261
  */
9050
9262
  proto.game.CollectionItem.prototype.setCountOfGames = function(value) {
9051
- return jspb.Message.setField(this, 8, value);
9263
+ return jspb.Message.setField(this, 9, value);
9052
9264
  };
9053
9265
 
9054
9266
 
@@ -9057,7 +9269,7 @@ proto.game.CollectionItem.prototype.setCountOfGames = function(value) {
9057
9269
  * @return {!proto.game.CollectionItem} returns this
9058
9270
  */
9059
9271
  proto.game.CollectionItem.prototype.clearCountOfGames = function() {
9060
- return jspb.Message.setField(this, 8, undefined);
9272
+ return jspb.Message.setField(this, 9, undefined);
9061
9273
  };
9062
9274
 
9063
9275
 
@@ -9066,7 +9278,7 @@ proto.game.CollectionItem.prototype.clearCountOfGames = function() {
9066
9278
  * @return {boolean}
9067
9279
  */
9068
9280
  proto.game.CollectionItem.prototype.hasCountOfGames = function() {
9069
- return jspb.Message.getField(this, 8) != null;
9281
+ return jspb.Message.getField(this, 9) != null;
9070
9282
  };
9071
9283
 
9072
9284
 
@@ -10695,7 +10907,8 @@ proto.game.TagItem.toObject = function(includeInstance, msg) {
10695
10907
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
10696
10908
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
10697
10909
  image: jspb.Message.getFieldWithDefault(msg, 6, ""),
10698
- countOfGames: jspb.Message.getFieldWithDefault(msg, 7, 0)
10910
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
10911
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 8, 0)
10699
10912
  };
10700
10913
 
10701
10914
  if (includeInstance) {
@@ -10757,6 +10970,10 @@ proto.game.TagItem.deserializeBinaryFromReader = function(msg, reader) {
10757
10970
  msg.setImage(value);
10758
10971
  break;
10759
10972
  case 7:
10973
+ var value = /** @type {string} */ (reader.readString());
10974
+ msg.setImageCdn(value);
10975
+ break;
10976
+ case 8:
10760
10977
  var value = /** @type {number} */ (reader.readInt32());
10761
10978
  msg.setCountOfGames(value);
10762
10979
  break;
@@ -10831,13 +11048,20 @@ proto.game.TagItem.serializeBinaryToWriter = function(message, writer) {
10831
11048
  f
10832
11049
  );
10833
11050
  }
10834
- f = /** @type {number} */ (jspb.Message.getField(message, 7));
11051
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
10835
11052
  if (f != null) {
10836
- writer.writeInt32(
11053
+ writer.writeString(
10837
11054
  7,
10838
11055
  f
10839
11056
  );
10840
11057
  }
11058
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
11059
+ if (f != null) {
11060
+ writer.writeInt32(
11061
+ 8,
11062
+ f
11063
+ );
11064
+ }
10841
11065
  };
10842
11066
 
10843
11067
 
@@ -11058,11 +11282,47 @@ proto.game.TagItem.prototype.hasImage = function() {
11058
11282
 
11059
11283
 
11060
11284
  /**
11061
- * optional int32 count_of_games = 7;
11285
+ * optional string image_cdn = 7;
11286
+ * @return {string}
11287
+ */
11288
+ proto.game.TagItem.prototype.getImageCdn = function() {
11289
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
11290
+ };
11291
+
11292
+
11293
+ /**
11294
+ * @param {string} value
11295
+ * @return {!proto.game.TagItem} returns this
11296
+ */
11297
+ proto.game.TagItem.prototype.setImageCdn = function(value) {
11298
+ return jspb.Message.setField(this, 7, value);
11299
+ };
11300
+
11301
+
11302
+ /**
11303
+ * Clears the field making it undefined.
11304
+ * @return {!proto.game.TagItem} returns this
11305
+ */
11306
+ proto.game.TagItem.prototype.clearImageCdn = function() {
11307
+ return jspb.Message.setField(this, 7, undefined);
11308
+ };
11309
+
11310
+
11311
+ /**
11312
+ * Returns whether this field is set.
11313
+ * @return {boolean}
11314
+ */
11315
+ proto.game.TagItem.prototype.hasImageCdn = function() {
11316
+ return jspb.Message.getField(this, 7) != null;
11317
+ };
11318
+
11319
+
11320
+ /**
11321
+ * optional int32 count_of_games = 8;
11062
11322
  * @return {number}
11063
11323
  */
11064
11324
  proto.game.TagItem.prototype.getCountOfGames = function() {
11065
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
11325
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
11066
11326
  };
11067
11327
 
11068
11328
 
@@ -11071,7 +11331,7 @@ proto.game.TagItem.prototype.getCountOfGames = function() {
11071
11331
  * @return {!proto.game.TagItem} returns this
11072
11332
  */
11073
11333
  proto.game.TagItem.prototype.setCountOfGames = function(value) {
11074
- return jspb.Message.setField(this, 7, value);
11334
+ return jspb.Message.setField(this, 8, value);
11075
11335
  };
11076
11336
 
11077
11337
 
@@ -11080,7 +11340,7 @@ proto.game.TagItem.prototype.setCountOfGames = function(value) {
11080
11340
  * @return {!proto.game.TagItem} returns this
11081
11341
  */
11082
11342
  proto.game.TagItem.prototype.clearCountOfGames = function() {
11083
- return jspb.Message.setField(this, 7, undefined);
11343
+ return jspb.Message.setField(this, 8, undefined);
11084
11344
  };
11085
11345
 
11086
11346
 
@@ -11089,7 +11349,7 @@ proto.game.TagItem.prototype.clearCountOfGames = function() {
11089
11349
  * @return {boolean}
11090
11350
  */
11091
11351
  proto.game.TagItem.prototype.hasCountOfGames = function() {
11092
- return jspb.Message.getField(this, 7) != null;
11352
+ return jspb.Message.getField(this, 8) != null;
11093
11353
  };
11094
11354
 
11095
11355
 
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.153",
3
+ "version": "1.2.155",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
+ "proto:build": "~/node-x64/bin/npm exec -- grpc_tools_node_protoc --version && sh ./update_protobuf.sh",
8
+ "proto:install:x64": "rm -rf node_modules package-lock.json && ~/node-v22.21.1-darwin-x64/bin/npm install",
9
+ "proto:build:x64": "~/node-v22.21.1-darwin-x64/bin/npm exec -- grpc_tools_node_protoc --version && sh ./update_protobuf.sh",
7
10
  "test": "echo \"Error: no test specified\" && exit 1"
8
11
  },
9
12
  "repository": {
@@ -25,6 +28,6 @@
25
28
  },
26
29
  "devDependencies": {
27
30
  "@grpc/grpc-js": "^1.14.1",
28
- "grpc-tools": "^1.13.0"
31
+ "grpc-tools": "^1.13.1"
29
32
  }
30
33
  }
@@ -1,19 +1,20 @@
1
1
  #!/usr/bin/env bash
2
+ set -euo pipefail
2
3
 
3
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:config --grpc_out=grpc_js:config --proto_path=./config ./config/*.proto &&
4
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:user --grpc_out=grpc_js:user --proto_path=./user ./user/*.proto &&
5
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:log --grpc_out=grpc_js:log --proto_path=./log ./log/*.proto &&
6
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:game --grpc_out=grpc_js:game --proto_path=./game ./game/*.proto &&
7
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:file --grpc_out=grpc_js:file --proto_path=./file ./file/*.proto &&
8
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:bet --grpc_out=grpc_js:bet --proto_path=./bet ./bet/*.proto &&
9
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:cms --grpc_out=grpc_js:cms --proto_path=./cms ./cms/*.proto &&
10
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:bonus --grpc_out=grpc_js:bonus --proto_path=./bonus ./bonus/*.proto &&
11
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:loyalty --grpc_out=grpc_js:loyalty --proto_path=./loyalty ./loyalty/*.proto &&
12
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:notification --grpc_out=grpc_js:notification --proto_path=./notification ./notification/*.proto &&
13
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:payment --grpc_out=grpc_js:payment --proto_path=./payment ./payment/*.proto &&
14
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:cashback --grpc_out=grpc_js:cashback --proto_path=./cashback ./cashback/*.proto &&
15
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:promocode --grpc_out=grpc_js:promocode --proto_path=./promocode ./promocode/*.proto &&
16
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:tournament --grpc_out=grpc_js:tournament --proto_path=./tournament ./tournament/*.proto &&
17
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:analytic --grpc_out=grpc_js:analytic --proto_path=./analytic ./analytic/*.proto &&
18
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:scheduler --grpc_out=grpc_js:scheduler --proto_path=./scheduler ./scheduler/*.proto &&
19
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:sport --grpc_out=grpc_js:sport --proto_path=./sport ./sport/*.proto
4
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:config --grpc_out=grpc_js:config --proto_path=./config ./config/*.proto
5
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:user --grpc_out=grpc_js:user --proto_path=./user ./user/*.proto
6
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:log --grpc_out=grpc_js:log --proto_path=./log ./log/*.proto
7
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:game --grpc_out=grpc_js:game --proto_path=./game ./game/*.proto
8
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:file --grpc_out=grpc_js:file --proto_path=./file ./file/*.proto
9
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:bet --grpc_out=grpc_js:bet --proto_path=./bet ./bet/*.proto
10
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:cms --grpc_out=grpc_js:cms --proto_path=./cms ./cms/*.proto
11
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:bonus --grpc_out=grpc_js:bonus --proto_path=./bonus ./bonus/*.proto
12
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:loyalty --grpc_out=grpc_js:loyalty --proto_path=./loyalty ./loyalty/*.proto
13
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:notification --grpc_out=grpc_js:notification --proto_path=./notification ./notification/*.proto
14
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:payment --grpc_out=grpc_js:payment --proto_path=./payment ./payment/*.proto
15
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:cashback --grpc_out=grpc_js:cashback --proto_path=./cashback ./cashback/*.proto
16
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:promocode --grpc_out=grpc_js:promocode --proto_path=./promocode ./promocode/*.proto
17
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:tournament --grpc_out=grpc_js:tournament --proto_path=./tournament ./tournament/*.proto
18
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:analytic --grpc_out=grpc_js:analytic --proto_path=./analytic ./analytic/*.proto
19
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:scheduler --grpc_out=grpc_js:scheduler --proto_path=./scheduler ./scheduler/*.proto
20
+ npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:sport --grpc_out=grpc_js:sport --proto_path=./sport ./sport/*.proto