protobuf-platform 1.2.154 → 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
@@ -203,7 +203,8 @@ message CategoryItem {
203
203
  optional string description = 4;
204
204
  optional int32 is_active = 5;
205
205
  optional string image = 6;
206
- optional int32 count_of_collections = 7;
206
+ optional string image_cdn = 7;
207
+ optional int32 count_of_collections = 8;
207
208
  }
208
209
  //Category CRUD | Requests
209
210
  message CategoryRequest {
@@ -246,7 +247,8 @@ message CollectionItem {
246
247
  optional string description = 5;
247
248
  optional int32 is_active = 6;
248
249
  optional string image = 7;
249
- optional int32 count_of_games = 8;
250
+ optional string image_cdn = 8;
251
+ optional int32 count_of_games = 9;
250
252
  }
251
253
  //Collection CRUD | Requests
252
254
  message CollectionRequest {
@@ -294,7 +296,8 @@ message TagItem {
294
296
  optional string description = 4;
295
297
  optional int32 is_active = 5;
296
298
  optional string image = 6;
297
- optional int32 count_of_games = 7;
299
+ optional string image_cdn = 7;
300
+ optional int32 count_of_games = 8;
298
301
  }
299
302
  //Tag CRUD | Requests
300
303
  message TagRequest {
package/game/game_pb.js CHANGED
@@ -6970,7 +6970,8 @@ proto.game.CategoryItem.toObject = function(includeInstance, msg) {
6970
6970
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
6971
6971
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
6972
6972
  image: jspb.Message.getFieldWithDefault(msg, 6, ""),
6973
- countOfCollections: jspb.Message.getFieldWithDefault(msg, 7, 0)
6973
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
6974
+ countOfCollections: jspb.Message.getFieldWithDefault(msg, 8, 0)
6974
6975
  };
6975
6976
 
6976
6977
  if (includeInstance) {
@@ -7032,6 +7033,10 @@ proto.game.CategoryItem.deserializeBinaryFromReader = function(msg, reader) {
7032
7033
  msg.setImage(value);
7033
7034
  break;
7034
7035
  case 7:
7036
+ var value = /** @type {string} */ (reader.readString());
7037
+ msg.setImageCdn(value);
7038
+ break;
7039
+ case 8:
7035
7040
  var value = /** @type {number} */ (reader.readInt32());
7036
7041
  msg.setCountOfCollections(value);
7037
7042
  break;
@@ -7106,13 +7111,20 @@ proto.game.CategoryItem.serializeBinaryToWriter = function(message, writer) {
7106
7111
  f
7107
7112
  );
7108
7113
  }
7109
- f = /** @type {number} */ (jspb.Message.getField(message, 7));
7114
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
7110
7115
  if (f != null) {
7111
- writer.writeInt32(
7116
+ writer.writeString(
7112
7117
  7,
7113
7118
  f
7114
7119
  );
7115
7120
  }
7121
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
7122
+ if (f != null) {
7123
+ writer.writeInt32(
7124
+ 8,
7125
+ f
7126
+ );
7127
+ }
7116
7128
  };
7117
7129
 
7118
7130
 
@@ -7333,11 +7345,47 @@ proto.game.CategoryItem.prototype.hasImage = function() {
7333
7345
 
7334
7346
 
7335
7347
  /**
7336
- * 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;
7337
7385
  * @return {number}
7338
7386
  */
7339
7387
  proto.game.CategoryItem.prototype.getCountOfCollections = function() {
7340
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
7388
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
7341
7389
  };
7342
7390
 
7343
7391
 
@@ -7346,7 +7394,7 @@ proto.game.CategoryItem.prototype.getCountOfCollections = function() {
7346
7394
  * @return {!proto.game.CategoryItem} returns this
7347
7395
  */
7348
7396
  proto.game.CategoryItem.prototype.setCountOfCollections = function(value) {
7349
- return jspb.Message.setField(this, 7, value);
7397
+ return jspb.Message.setField(this, 8, value);
7350
7398
  };
7351
7399
 
7352
7400
 
@@ -7355,7 +7403,7 @@ proto.game.CategoryItem.prototype.setCountOfCollections = function(value) {
7355
7403
  * @return {!proto.game.CategoryItem} returns this
7356
7404
  */
7357
7405
  proto.game.CategoryItem.prototype.clearCountOfCollections = function() {
7358
- return jspb.Message.setField(this, 7, undefined);
7406
+ return jspb.Message.setField(this, 8, undefined);
7359
7407
  };
7360
7408
 
7361
7409
 
@@ -7364,7 +7412,7 @@ proto.game.CategoryItem.prototype.clearCountOfCollections = function() {
7364
7412
  * @return {boolean}
7365
7413
  */
7366
7414
  proto.game.CategoryItem.prototype.hasCountOfCollections = function() {
7367
- return jspb.Message.getField(this, 7) != null;
7415
+ return jspb.Message.getField(this, 8) != null;
7368
7416
  };
7369
7417
 
7370
7418
 
@@ -8738,7 +8786,8 @@ proto.game.CollectionItem.toObject = function(includeInstance, msg) {
8738
8786
  description: jspb.Message.getFieldWithDefault(msg, 5, ""),
8739
8787
  isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
8740
8788
  image: jspb.Message.getFieldWithDefault(msg, 7, ""),
8741
- countOfGames: jspb.Message.getFieldWithDefault(msg, 8, 0)
8789
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 8, ""),
8790
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 9, 0)
8742
8791
  };
8743
8792
 
8744
8793
  if (includeInstance) {
@@ -8805,6 +8854,10 @@ proto.game.CollectionItem.deserializeBinaryFromReader = function(msg, reader) {
8805
8854
  msg.setImage(value);
8806
8855
  break;
8807
8856
  case 8:
8857
+ var value = /** @type {string} */ (reader.readString());
8858
+ msg.setImageCdn(value);
8859
+ break;
8860
+ case 9:
8808
8861
  var value = /** @type {number} */ (reader.readInt32());
8809
8862
  msg.setCountOfGames(value);
8810
8863
  break;
@@ -8887,13 +8940,20 @@ proto.game.CollectionItem.serializeBinaryToWriter = function(message, writer) {
8887
8940
  f
8888
8941
  );
8889
8942
  }
8890
- f = /** @type {number} */ (jspb.Message.getField(message, 8));
8943
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
8891
8944
  if (f != null) {
8892
- writer.writeInt32(
8945
+ writer.writeString(
8893
8946
  8,
8894
8947
  f
8895
8948
  );
8896
8949
  }
8950
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
8951
+ if (f != null) {
8952
+ writer.writeInt32(
8953
+ 9,
8954
+ f
8955
+ );
8956
+ }
8897
8957
  };
8898
8958
 
8899
8959
 
@@ -9151,11 +9211,47 @@ proto.game.CollectionItem.prototype.hasImage = function() {
9151
9211
 
9152
9212
 
9153
9213
  /**
9154
- * 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;
9155
9251
  * @return {number}
9156
9252
  */
9157
9253
  proto.game.CollectionItem.prototype.getCountOfGames = function() {
9158
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
9254
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
9159
9255
  };
9160
9256
 
9161
9257
 
@@ -9164,7 +9260,7 @@ proto.game.CollectionItem.prototype.getCountOfGames = function() {
9164
9260
  * @return {!proto.game.CollectionItem} returns this
9165
9261
  */
9166
9262
  proto.game.CollectionItem.prototype.setCountOfGames = function(value) {
9167
- return jspb.Message.setField(this, 8, value);
9263
+ return jspb.Message.setField(this, 9, value);
9168
9264
  };
9169
9265
 
9170
9266
 
@@ -9173,7 +9269,7 @@ proto.game.CollectionItem.prototype.setCountOfGames = function(value) {
9173
9269
  * @return {!proto.game.CollectionItem} returns this
9174
9270
  */
9175
9271
  proto.game.CollectionItem.prototype.clearCountOfGames = function() {
9176
- return jspb.Message.setField(this, 8, undefined);
9272
+ return jspb.Message.setField(this, 9, undefined);
9177
9273
  };
9178
9274
 
9179
9275
 
@@ -9182,7 +9278,7 @@ proto.game.CollectionItem.prototype.clearCountOfGames = function() {
9182
9278
  * @return {boolean}
9183
9279
  */
9184
9280
  proto.game.CollectionItem.prototype.hasCountOfGames = function() {
9185
- return jspb.Message.getField(this, 8) != null;
9281
+ return jspb.Message.getField(this, 9) != null;
9186
9282
  };
9187
9283
 
9188
9284
 
@@ -10811,7 +10907,8 @@ proto.game.TagItem.toObject = function(includeInstance, msg) {
10811
10907
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
10812
10908
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
10813
10909
  image: jspb.Message.getFieldWithDefault(msg, 6, ""),
10814
- countOfGames: jspb.Message.getFieldWithDefault(msg, 7, 0)
10910
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
10911
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 8, 0)
10815
10912
  };
10816
10913
 
10817
10914
  if (includeInstance) {
@@ -10873,6 +10970,10 @@ proto.game.TagItem.deserializeBinaryFromReader = function(msg, reader) {
10873
10970
  msg.setImage(value);
10874
10971
  break;
10875
10972
  case 7:
10973
+ var value = /** @type {string} */ (reader.readString());
10974
+ msg.setImageCdn(value);
10975
+ break;
10976
+ case 8:
10876
10977
  var value = /** @type {number} */ (reader.readInt32());
10877
10978
  msg.setCountOfGames(value);
10878
10979
  break;
@@ -10947,13 +11048,20 @@ proto.game.TagItem.serializeBinaryToWriter = function(message, writer) {
10947
11048
  f
10948
11049
  );
10949
11050
  }
10950
- f = /** @type {number} */ (jspb.Message.getField(message, 7));
11051
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
10951
11052
  if (f != null) {
10952
- writer.writeInt32(
11053
+ writer.writeString(
10953
11054
  7,
10954
11055
  f
10955
11056
  );
10956
11057
  }
11058
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
11059
+ if (f != null) {
11060
+ writer.writeInt32(
11061
+ 8,
11062
+ f
11063
+ );
11064
+ }
10957
11065
  };
10958
11066
 
10959
11067
 
@@ -11174,11 +11282,47 @@ proto.game.TagItem.prototype.hasImage = function() {
11174
11282
 
11175
11283
 
11176
11284
  /**
11177
- * 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;
11178
11322
  * @return {number}
11179
11323
  */
11180
11324
  proto.game.TagItem.prototype.getCountOfGames = function() {
11181
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
11325
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
11182
11326
  };
11183
11327
 
11184
11328
 
@@ -11187,7 +11331,7 @@ proto.game.TagItem.prototype.getCountOfGames = function() {
11187
11331
  * @return {!proto.game.TagItem} returns this
11188
11332
  */
11189
11333
  proto.game.TagItem.prototype.setCountOfGames = function(value) {
11190
- return jspb.Message.setField(this, 7, value);
11334
+ return jspb.Message.setField(this, 8, value);
11191
11335
  };
11192
11336
 
11193
11337
 
@@ -11196,7 +11340,7 @@ proto.game.TagItem.prototype.setCountOfGames = function(value) {
11196
11340
  * @return {!proto.game.TagItem} returns this
11197
11341
  */
11198
11342
  proto.game.TagItem.prototype.clearCountOfGames = function() {
11199
- return jspb.Message.setField(this, 7, undefined);
11343
+ return jspb.Message.setField(this, 8, undefined);
11200
11344
  };
11201
11345
 
11202
11346
 
@@ -11205,7 +11349,7 @@ proto.game.TagItem.prototype.clearCountOfGames = function() {
11205
11349
  * @return {boolean}
11206
11350
  */
11207
11351
  proto.game.TagItem.prototype.hasCountOfGames = function() {
11208
- return jspb.Message.getField(this, 7) != null;
11352
+ return jspb.Message.getField(this, 8) != null;
11209
11353
  };
11210
11354
 
11211
11355
 
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.154",
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