protobuf-platform 1.2.632 → 1.2.634

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/cms/cms.proto CHANGED
@@ -455,6 +455,7 @@ message GetPageRequest {
455
455
  optional string geo = 3;
456
456
  optional string locale = 4;
457
457
  optional string domain = 5;
458
+ optional string final_geo = 6;
458
459
  }
459
460
  message PageStatusResponse {
460
461
  string status = 1;
package/cms/cms_pb.js CHANGED
@@ -18195,7 +18195,8 @@ proto.cms.GetPageRequest.toObject = function(includeInstance, msg) {
18195
18195
  slug: jspb.Message.getFieldWithDefault(msg, 2, ""),
18196
18196
  geo: jspb.Message.getFieldWithDefault(msg, 3, ""),
18197
18197
  locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
18198
- domain: jspb.Message.getFieldWithDefault(msg, 5, "")
18198
+ domain: jspb.Message.getFieldWithDefault(msg, 5, ""),
18199
+ finalGeo: jspb.Message.getFieldWithDefault(msg, 6, "")
18199
18200
  };
18200
18201
 
18201
18202
  if (includeInstance) {
@@ -18252,6 +18253,10 @@ proto.cms.GetPageRequest.deserializeBinaryFromReader = function(msg, reader) {
18252
18253
  var value = /** @type {string} */ (reader.readString());
18253
18254
  msg.setDomain(value);
18254
18255
  break;
18256
+ case 6:
18257
+ var value = /** @type {string} */ (reader.readString());
18258
+ msg.setFinalGeo(value);
18259
+ break;
18255
18260
  default:
18256
18261
  reader.skipField();
18257
18262
  break;
@@ -18316,6 +18321,13 @@ proto.cms.GetPageRequest.serializeBinaryToWriter = function(message, writer) {
18316
18321
  f
18317
18322
  );
18318
18323
  }
18324
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
18325
+ if (f != null) {
18326
+ writer.writeString(
18327
+ 6,
18328
+ f
18329
+ );
18330
+ }
18319
18331
  };
18320
18332
 
18321
18333
 
@@ -18499,6 +18511,42 @@ proto.cms.GetPageRequest.prototype.hasDomain = function() {
18499
18511
  };
18500
18512
 
18501
18513
 
18514
+ /**
18515
+ * optional string final_geo = 6;
18516
+ * @return {string}
18517
+ */
18518
+ proto.cms.GetPageRequest.prototype.getFinalGeo = function() {
18519
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
18520
+ };
18521
+
18522
+
18523
+ /**
18524
+ * @param {string} value
18525
+ * @return {!proto.cms.GetPageRequest} returns this
18526
+ */
18527
+ proto.cms.GetPageRequest.prototype.setFinalGeo = function(value) {
18528
+ return jspb.Message.setField(this, 6, value);
18529
+ };
18530
+
18531
+
18532
+ /**
18533
+ * Clears the field making it undefined.
18534
+ * @return {!proto.cms.GetPageRequest} returns this
18535
+ */
18536
+ proto.cms.GetPageRequest.prototype.clearFinalGeo = function() {
18537
+ return jspb.Message.setField(this, 6, undefined);
18538
+ };
18539
+
18540
+
18541
+ /**
18542
+ * Returns whether this field is set.
18543
+ * @return {boolean}
18544
+ */
18545
+ proto.cms.GetPageRequest.prototype.hasFinalGeo = function() {
18546
+ return jspb.Message.getField(this, 6) != null;
18547
+ };
18548
+
18549
+
18502
18550
 
18503
18551
 
18504
18552
 
package/game/game.proto CHANGED
@@ -888,6 +888,7 @@ message GetGameConfigCheckRequest {
888
888
  string provider_slug = 1;
889
889
  string game_slug = 2;
890
890
  int32 user_id = 3;
891
+ optional string locale = 4;
891
892
  }
892
893
  message ActiveUserTournament {
893
894
  int32 tournament_id = 1;
@@ -901,6 +902,10 @@ message ActiveUserTournament {
901
902
  optional uint64 finished_in_milliseconds = 9;
902
903
  optional uint32 max_members_count = 10;
903
904
  optional uint32 current_members_count = 11;
905
+ optional string image_small = 12;
906
+ optional string image_small_cdn = 13;
907
+ optional string portrait_image = 14;
908
+ optional string portrait_image_cdn = 15;
904
909
  }
905
910
  message ActiveWageringUserBonus {
906
911
  int32 user_bonus_id = 1;
package/game/game_pb.js CHANGED
@@ -37418,7 +37418,8 @@ proto.game.GetGameConfigCheckRequest.toObject = function(includeInstance, msg) {
37418
37418
  var f, obj = {
37419
37419
  providerSlug: jspb.Message.getFieldWithDefault(msg, 1, ""),
37420
37420
  gameSlug: jspb.Message.getFieldWithDefault(msg, 2, ""),
37421
- userId: jspb.Message.getFieldWithDefault(msg, 3, 0)
37421
+ userId: jspb.Message.getFieldWithDefault(msg, 3, 0),
37422
+ locale: jspb.Message.getFieldWithDefault(msg, 4, "")
37422
37423
  };
37423
37424
 
37424
37425
  if (includeInstance) {
@@ -37467,6 +37468,10 @@ proto.game.GetGameConfigCheckRequest.deserializeBinaryFromReader = function(msg,
37467
37468
  var value = /** @type {number} */ (reader.readInt32());
37468
37469
  msg.setUserId(value);
37469
37470
  break;
37471
+ case 4:
37472
+ var value = /** @type {string} */ (reader.readString());
37473
+ msg.setLocale(value);
37474
+ break;
37470
37475
  default:
37471
37476
  reader.skipField();
37472
37477
  break;
@@ -37517,6 +37522,13 @@ proto.game.GetGameConfigCheckRequest.serializeBinaryToWriter = function(message,
37517
37522
  f
37518
37523
  );
37519
37524
  }
37525
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
37526
+ if (f != null) {
37527
+ writer.writeString(
37528
+ 4,
37529
+ f
37530
+ );
37531
+ }
37520
37532
  };
37521
37533
 
37522
37534
 
@@ -37574,6 +37586,42 @@ proto.game.GetGameConfigCheckRequest.prototype.setUserId = function(value) {
37574
37586
  };
37575
37587
 
37576
37588
 
37589
+ /**
37590
+ * optional string locale = 4;
37591
+ * @return {string}
37592
+ */
37593
+ proto.game.GetGameConfigCheckRequest.prototype.getLocale = function() {
37594
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
37595
+ };
37596
+
37597
+
37598
+ /**
37599
+ * @param {string} value
37600
+ * @return {!proto.game.GetGameConfigCheckRequest} returns this
37601
+ */
37602
+ proto.game.GetGameConfigCheckRequest.prototype.setLocale = function(value) {
37603
+ return jspb.Message.setField(this, 4, value);
37604
+ };
37605
+
37606
+
37607
+ /**
37608
+ * Clears the field making it undefined.
37609
+ * @return {!proto.game.GetGameConfigCheckRequest} returns this
37610
+ */
37611
+ proto.game.GetGameConfigCheckRequest.prototype.clearLocale = function() {
37612
+ return jspb.Message.setField(this, 4, undefined);
37613
+ };
37614
+
37615
+
37616
+ /**
37617
+ * Returns whether this field is set.
37618
+ * @return {boolean}
37619
+ */
37620
+ proto.game.GetGameConfigCheckRequest.prototype.hasLocale = function() {
37621
+ return jspb.Message.getField(this, 4) != null;
37622
+ };
37623
+
37624
+
37577
37625
 
37578
37626
 
37579
37627
 
@@ -37616,7 +37664,11 @@ proto.game.ActiveUserTournament.toObject = function(includeInstance, msg) {
37616
37664
  userStatus: jspb.Message.getFieldWithDefault(msg, 8, ""),
37617
37665
  finishedInMilliseconds: jspb.Message.getFieldWithDefault(msg, 9, 0),
37618
37666
  maxMembersCount: jspb.Message.getFieldWithDefault(msg, 10, 0),
37619
- currentMembersCount: jspb.Message.getFieldWithDefault(msg, 11, 0)
37667
+ currentMembersCount: jspb.Message.getFieldWithDefault(msg, 11, 0),
37668
+ imageSmall: jspb.Message.getFieldWithDefault(msg, 12, ""),
37669
+ imageSmallCdn: jspb.Message.getFieldWithDefault(msg, 13, ""),
37670
+ portraitImage: jspb.Message.getFieldWithDefault(msg, 14, ""),
37671
+ portraitImageCdn: jspb.Message.getFieldWithDefault(msg, 15, "")
37620
37672
  };
37621
37673
 
37622
37674
  if (includeInstance) {
@@ -37697,6 +37749,22 @@ proto.game.ActiveUserTournament.deserializeBinaryFromReader = function(msg, read
37697
37749
  var value = /** @type {number} */ (reader.readUint32());
37698
37750
  msg.setCurrentMembersCount(value);
37699
37751
  break;
37752
+ case 12:
37753
+ var value = /** @type {string} */ (reader.readString());
37754
+ msg.setImageSmall(value);
37755
+ break;
37756
+ case 13:
37757
+ var value = /** @type {string} */ (reader.readString());
37758
+ msg.setImageSmallCdn(value);
37759
+ break;
37760
+ case 14:
37761
+ var value = /** @type {string} */ (reader.readString());
37762
+ msg.setPortraitImage(value);
37763
+ break;
37764
+ case 15:
37765
+ var value = /** @type {string} */ (reader.readString());
37766
+ msg.setPortraitImageCdn(value);
37767
+ break;
37700
37768
  default:
37701
37769
  reader.skipField();
37702
37770
  break;
@@ -37803,6 +37871,34 @@ proto.game.ActiveUserTournament.serializeBinaryToWriter = function(message, writ
37803
37871
  f
37804
37872
  );
37805
37873
  }
37874
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
37875
+ if (f != null) {
37876
+ writer.writeString(
37877
+ 12,
37878
+ f
37879
+ );
37880
+ }
37881
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
37882
+ if (f != null) {
37883
+ writer.writeString(
37884
+ 13,
37885
+ f
37886
+ );
37887
+ }
37888
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
37889
+ if (f != null) {
37890
+ writer.writeString(
37891
+ 14,
37892
+ f
37893
+ );
37894
+ }
37895
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
37896
+ if (f != null) {
37897
+ writer.writeString(
37898
+ 15,
37899
+ f
37900
+ );
37901
+ }
37806
37902
  };
37807
37903
 
37808
37904
 
@@ -38166,6 +38262,150 @@ proto.game.ActiveUserTournament.prototype.hasCurrentMembersCount = function() {
38166
38262
  };
38167
38263
 
38168
38264
 
38265
+ /**
38266
+ * optional string image_small = 12;
38267
+ * @return {string}
38268
+ */
38269
+ proto.game.ActiveUserTournament.prototype.getImageSmall = function() {
38270
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
38271
+ };
38272
+
38273
+
38274
+ /**
38275
+ * @param {string} value
38276
+ * @return {!proto.game.ActiveUserTournament} returns this
38277
+ */
38278
+ proto.game.ActiveUserTournament.prototype.setImageSmall = function(value) {
38279
+ return jspb.Message.setField(this, 12, value);
38280
+ };
38281
+
38282
+
38283
+ /**
38284
+ * Clears the field making it undefined.
38285
+ * @return {!proto.game.ActiveUserTournament} returns this
38286
+ */
38287
+ proto.game.ActiveUserTournament.prototype.clearImageSmall = function() {
38288
+ return jspb.Message.setField(this, 12, undefined);
38289
+ };
38290
+
38291
+
38292
+ /**
38293
+ * Returns whether this field is set.
38294
+ * @return {boolean}
38295
+ */
38296
+ proto.game.ActiveUserTournament.prototype.hasImageSmall = function() {
38297
+ return jspb.Message.getField(this, 12) != null;
38298
+ };
38299
+
38300
+
38301
+ /**
38302
+ * optional string image_small_cdn = 13;
38303
+ * @return {string}
38304
+ */
38305
+ proto.game.ActiveUserTournament.prototype.getImageSmallCdn = function() {
38306
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
38307
+ };
38308
+
38309
+
38310
+ /**
38311
+ * @param {string} value
38312
+ * @return {!proto.game.ActiveUserTournament} returns this
38313
+ */
38314
+ proto.game.ActiveUserTournament.prototype.setImageSmallCdn = function(value) {
38315
+ return jspb.Message.setField(this, 13, value);
38316
+ };
38317
+
38318
+
38319
+ /**
38320
+ * Clears the field making it undefined.
38321
+ * @return {!proto.game.ActiveUserTournament} returns this
38322
+ */
38323
+ proto.game.ActiveUserTournament.prototype.clearImageSmallCdn = function() {
38324
+ return jspb.Message.setField(this, 13, undefined);
38325
+ };
38326
+
38327
+
38328
+ /**
38329
+ * Returns whether this field is set.
38330
+ * @return {boolean}
38331
+ */
38332
+ proto.game.ActiveUserTournament.prototype.hasImageSmallCdn = function() {
38333
+ return jspb.Message.getField(this, 13) != null;
38334
+ };
38335
+
38336
+
38337
+ /**
38338
+ * optional string portrait_image = 14;
38339
+ * @return {string}
38340
+ */
38341
+ proto.game.ActiveUserTournament.prototype.getPortraitImage = function() {
38342
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
38343
+ };
38344
+
38345
+
38346
+ /**
38347
+ * @param {string} value
38348
+ * @return {!proto.game.ActiveUserTournament} returns this
38349
+ */
38350
+ proto.game.ActiveUserTournament.prototype.setPortraitImage = function(value) {
38351
+ return jspb.Message.setField(this, 14, value);
38352
+ };
38353
+
38354
+
38355
+ /**
38356
+ * Clears the field making it undefined.
38357
+ * @return {!proto.game.ActiveUserTournament} returns this
38358
+ */
38359
+ proto.game.ActiveUserTournament.prototype.clearPortraitImage = function() {
38360
+ return jspb.Message.setField(this, 14, undefined);
38361
+ };
38362
+
38363
+
38364
+ /**
38365
+ * Returns whether this field is set.
38366
+ * @return {boolean}
38367
+ */
38368
+ proto.game.ActiveUserTournament.prototype.hasPortraitImage = function() {
38369
+ return jspb.Message.getField(this, 14) != null;
38370
+ };
38371
+
38372
+
38373
+ /**
38374
+ * optional string portrait_image_cdn = 15;
38375
+ * @return {string}
38376
+ */
38377
+ proto.game.ActiveUserTournament.prototype.getPortraitImageCdn = function() {
38378
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
38379
+ };
38380
+
38381
+
38382
+ /**
38383
+ * @param {string} value
38384
+ * @return {!proto.game.ActiveUserTournament} returns this
38385
+ */
38386
+ proto.game.ActiveUserTournament.prototype.setPortraitImageCdn = function(value) {
38387
+ return jspb.Message.setField(this, 15, value);
38388
+ };
38389
+
38390
+
38391
+ /**
38392
+ * Clears the field making it undefined.
38393
+ * @return {!proto.game.ActiveUserTournament} returns this
38394
+ */
38395
+ proto.game.ActiveUserTournament.prototype.clearPortraitImageCdn = function() {
38396
+ return jspb.Message.setField(this, 15, undefined);
38397
+ };
38398
+
38399
+
38400
+ /**
38401
+ * Returns whether this field is set.
38402
+ * @return {boolean}
38403
+ */
38404
+ proto.game.ActiveUserTournament.prototype.hasPortraitImageCdn = function() {
38405
+ return jspb.Message.getField(this, 15) != null;
38406
+ };
38407
+
38408
+
38169
38409
 
38170
38410
  /**
38171
38411
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.632",
3
+ "version": "1.2.634",
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",
7
+ "proto:build": "npm exec -- grpc_tools_node_protoc --version && sh ./update_protobuf.sh",
8
8
  "proto:install:x64": "rm -rf node_modules package-lock.json && ~/node-v22.21.1-darwin-x64/bin/npm install",
9
9
  "proto:build:x64": "~/node-v22.21.1-darwin-x64/bin/npm exec -- grpc_tools_node_protoc --version && sh ./update_protobuf.sh",
10
10
  "publish-update": "npm version patch --no-git-tag-version && npm publish",
@@ -15,6 +15,7 @@ service Tournament {
15
15
  rpc setTournamentScoringRule(TournamentScoringRuleRequest) returns (TournamentStatusResponse);
16
16
  rpc setTournamentRewards(TournamentRewardsRequest) returns (TournamentStatusResponse);
17
17
  rpc setTournamentContent(TournamentContentRequest) returns (TournamentStatusResponse);
18
+ rpc upsertTournamentLocalization(stream TournamentLocalizationUpsertRequest) returns (TournamentStatusResponse);
18
19
  rpc addGamesIntoTournament(TournamentGamesRequest) returns (TournamentStatusResponse);
19
20
  rpc removeGamesFromTournament(TournamentGamesRequest) returns (TournamentStatusResponse);
20
21
  rpc updateTournamentsInBunch(ItemsBunchRequest) returns (TournamentStatusResponse);
@@ -85,6 +86,8 @@ message TournamentItem {
85
86
  optional uint64 finished_in_milliseconds = 21;
86
87
  optional string image_small = 22;
87
88
  optional string image_small_cdn = 23;
89
+ optional string portrait_image = 24;
90
+ optional string portrait_image_cdn = 25;
88
91
  }
89
92
  message TournamentRequest {
90
93
  oneof request {
@@ -133,6 +136,7 @@ message TournamentStatusItemsResponse {
133
136
  }
134
137
  message GetTournamentSnapshotsByIdsRequest {
135
138
  repeated int32 ids = 1;
139
+ optional string locale = 2;
136
140
  }
137
141
  message TournamentSnapshotItem {
138
142
  int32 id = 1;
@@ -150,6 +154,8 @@ message TournamentSnapshotItem {
150
154
  optional string finished_at = 13;
151
155
  optional int32 current_members_count = 14;
152
156
  optional int32 max_members_count = 15;
157
+ optional string portrait_image = 16;
158
+ optional string portrait_image_cdn = 17;
153
159
  }
154
160
  message TournamentSnapshotItemsResponse {
155
161
  repeated TournamentSnapshotItem items = 1;
@@ -209,6 +215,12 @@ message ContentItem {
209
215
  optional string content = 4;
210
216
  optional string title = 5;
211
217
  optional string description = 6;
218
+ optional string image = 7;
219
+ optional string image_cdn = 8;
220
+ optional string image_small = 9;
221
+ optional string image_small_cdn = 10;
222
+ optional string portrait_image = 11;
223
+ optional string portrait_image_cdn = 12;
212
224
  }
213
225
  message TournamentContentRequest {
214
226
  int32 tournament_id = 1;
@@ -217,6 +229,22 @@ message TournamentContentRequest {
217
229
  optional string title = 4;
218
230
  optional string description = 5;
219
231
  }
232
+ message TournamentLocalizationRequest {
233
+ int32 tournament_id = 1;
234
+ string locale = 2;
235
+ optional string title = 3;
236
+ optional string description = 4;
237
+ optional string content = 5;
238
+ optional bool remove_desktop_image = 6;
239
+ optional bool remove_mobile_image = 7;
240
+ optional bool remove_portrait_image = 8;
241
+ }
242
+ message TournamentLocalizationUpsertRequest {
243
+ oneof request {
244
+ TournamentLocalizationRequest localization_data = 1;
245
+ File file = 2;
246
+ }
247
+ }
220
248
  message TournamentGamesRequest {
221
249
  int32 tournament_id = 1;
222
250
  repeated int32 game_ids = 2;
@@ -254,6 +282,8 @@ message UserTournamentItem {
254
282
  repeated RewardItem places = 20;
255
283
  optional string image_small = 21;
256
284
  optional string image_small_cdn = 22;
285
+ optional string portrait_image = 23;
286
+ optional string portrait_image_cdn = 24;
257
287
  }
258
288
  message UserTournamentItemsResponse {
259
289
  repeated UserTournamentItem items = 1;
@@ -295,6 +325,7 @@ message TournamentLeaderboardResponse {
295
325
  message GetOnlineTournamentInfoRequest {
296
326
  uint64 tournament_id = 1;
297
327
  uint64 user_id = 2; // gateway will provide from JWT
328
+ optional string locale = 3;
298
329
  }
299
330
 
300
331
  message OnlineTournamentInfoResponse {
@@ -311,6 +342,8 @@ message OnlineTournamentInfoResponse {
311
342
  optional TournamentLeaderboardUserItem me = 11; // MUST be returned by backend even if not in top20
312
343
  optional string image_small = 12;
313
344
  optional string image_small_cdn = 13;
345
+ optional string portrait_image = 14;
346
+ optional string portrait_image_cdn = 15;
314
347
  }
315
348
 
316
349
  message ResolveAutoTournamentForGameSessionRequest {
@@ -213,6 +213,17 @@ function deserialize_tournament_TournamentLeaderboardResponse(buffer_arg) {
213
213
  return tournament_pb.TournamentLeaderboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
214
214
  }
215
215
 
216
+ function serialize_tournament_TournamentLocalizationUpsertRequest(arg) {
217
+ if (!(arg instanceof tournament_pb.TournamentLocalizationUpsertRequest)) {
218
+ throw new Error('Expected argument of type tournament.TournamentLocalizationUpsertRequest');
219
+ }
220
+ return Buffer.from(arg.serializeBinary());
221
+ }
222
+
223
+ function deserialize_tournament_TournamentLocalizationUpsertRequest(buffer_arg) {
224
+ return tournament_pb.TournamentLocalizationUpsertRequest.deserializeBinary(new Uint8Array(buffer_arg));
225
+ }
226
+
216
227
  function serialize_tournament_TournamentRequest(arg) {
217
228
  if (!(arg instanceof tournament_pb.TournamentRequest)) {
218
229
  throw new Error('Expected argument of type tournament.TournamentRequest');
@@ -447,6 +458,17 @@ createSingleTournament: {
447
458
  responseSerialize: serialize_tournament_TournamentStatusResponse,
448
459
  responseDeserialize: deserialize_tournament_TournamentStatusResponse,
449
460
  },
461
+ upsertTournamentLocalization: {
462
+ path: '/tournament.Tournament/upsertTournamentLocalization',
463
+ requestStream: true,
464
+ responseStream: false,
465
+ requestType: tournament_pb.TournamentLocalizationUpsertRequest,
466
+ responseType: tournament_pb.TournamentStatusResponse,
467
+ requestSerialize: serialize_tournament_TournamentLocalizationUpsertRequest,
468
+ requestDeserialize: deserialize_tournament_TournamentLocalizationUpsertRequest,
469
+ responseSerialize: serialize_tournament_TournamentStatusResponse,
470
+ responseDeserialize: deserialize_tournament_TournamentStatusResponse,
471
+ },
450
472
  addGamesIntoTournament: {
451
473
  path: '/tournament.Tournament/addGamesIntoTournament',
452
474
  requestStream: false,