protobuf-platform 1.0.75 → 1.0.76

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
@@ -302,13 +302,14 @@ message GamesPriorityRequest {
302
302
  optional string geo = 3;
303
303
  }
304
304
  message InitGameSessionRequest {
305
- string game_uuid = 1;
306
- string player_id = 2;
307
- string player_name = 3;
308
- string currency = 4;
309
- optional int32 has_lobby = 5;
310
- optional string return_url = 6;
311
- optional string language = 7;
305
+ string game_slug = 1;
306
+ string provider_slug = 2;
307
+ string player_id = 3;
308
+ string player_name = 4;
309
+ string currency = 5;
310
+ optional int32 has_lobby = 6;
311
+ optional string return_url = 7;
312
+ optional string language = 8;
312
313
  }
313
314
  message InitDemoGameSessionRequest {
314
315
  string game_slug = 1;
package/game/game_pb.js CHANGED
@@ -12570,13 +12570,14 @@ proto.game.InitGameSessionRequest.prototype.toObject = function(opt_includeInsta
12570
12570
  */
12571
12571
  proto.game.InitGameSessionRequest.toObject = function(includeInstance, msg) {
12572
12572
  var f, obj = {
12573
- gameUuid: jspb.Message.getFieldWithDefault(msg, 1, ""),
12574
- playerId: jspb.Message.getFieldWithDefault(msg, 2, ""),
12575
- playerName: jspb.Message.getFieldWithDefault(msg, 3, ""),
12576
- currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
12577
- hasLobby: jspb.Message.getFieldWithDefault(msg, 5, 0),
12578
- returnUrl: jspb.Message.getFieldWithDefault(msg, 6, ""),
12579
- language: jspb.Message.getFieldWithDefault(msg, 7, "")
12573
+ gameSlug: jspb.Message.getFieldWithDefault(msg, 1, ""),
12574
+ providerSlug: jspb.Message.getFieldWithDefault(msg, 2, ""),
12575
+ playerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
12576
+ playerName: jspb.Message.getFieldWithDefault(msg, 4, ""),
12577
+ currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
12578
+ hasLobby: jspb.Message.getFieldWithDefault(msg, 6, 0),
12579
+ returnUrl: jspb.Message.getFieldWithDefault(msg, 7, ""),
12580
+ language: jspb.Message.getFieldWithDefault(msg, 8, "")
12580
12581
  };
12581
12582
 
12582
12583
  if (includeInstance) {
@@ -12615,29 +12616,33 @@ proto.game.InitGameSessionRequest.deserializeBinaryFromReader = function(msg, re
12615
12616
  switch (field) {
12616
12617
  case 1:
12617
12618
  var value = /** @type {string} */ (reader.readString());
12618
- msg.setGameUuid(value);
12619
+ msg.setGameSlug(value);
12619
12620
  break;
12620
12621
  case 2:
12621
12622
  var value = /** @type {string} */ (reader.readString());
12622
- msg.setPlayerId(value);
12623
+ msg.setProviderSlug(value);
12623
12624
  break;
12624
12625
  case 3:
12625
12626
  var value = /** @type {string} */ (reader.readString());
12626
- msg.setPlayerName(value);
12627
+ msg.setPlayerId(value);
12627
12628
  break;
12628
12629
  case 4:
12629
12630
  var value = /** @type {string} */ (reader.readString());
12630
- msg.setCurrency(value);
12631
+ msg.setPlayerName(value);
12631
12632
  break;
12632
12633
  case 5:
12634
+ var value = /** @type {string} */ (reader.readString());
12635
+ msg.setCurrency(value);
12636
+ break;
12637
+ case 6:
12633
12638
  var value = /** @type {number} */ (reader.readInt32());
12634
12639
  msg.setHasLobby(value);
12635
12640
  break;
12636
- case 6:
12641
+ case 7:
12637
12642
  var value = /** @type {string} */ (reader.readString());
12638
12643
  msg.setReturnUrl(value);
12639
12644
  break;
12640
- case 7:
12645
+ case 8:
12641
12646
  var value = /** @type {string} */ (reader.readString());
12642
12647
  msg.setLanguage(value);
12643
12648
  break;
@@ -12670,44 +12675,44 @@ proto.game.InitGameSessionRequest.prototype.serializeBinary = function() {
12670
12675
  */
12671
12676
  proto.game.InitGameSessionRequest.serializeBinaryToWriter = function(message, writer) {
12672
12677
  var f = undefined;
12673
- f = message.getGameUuid();
12678
+ f = message.getGameSlug();
12674
12679
  if (f.length > 0) {
12675
12680
  writer.writeString(
12676
12681
  1,
12677
12682
  f
12678
12683
  );
12679
12684
  }
12680
- f = message.getPlayerId();
12685
+ f = message.getProviderSlug();
12681
12686
  if (f.length > 0) {
12682
12687
  writer.writeString(
12683
12688
  2,
12684
12689
  f
12685
12690
  );
12686
12691
  }
12687
- f = message.getPlayerName();
12692
+ f = message.getPlayerId();
12688
12693
  if (f.length > 0) {
12689
12694
  writer.writeString(
12690
12695
  3,
12691
12696
  f
12692
12697
  );
12693
12698
  }
12694
- f = message.getCurrency();
12699
+ f = message.getPlayerName();
12695
12700
  if (f.length > 0) {
12696
12701
  writer.writeString(
12697
12702
  4,
12698
12703
  f
12699
12704
  );
12700
12705
  }
12701
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
12702
- if (f != null) {
12703
- writer.writeInt32(
12706
+ f = message.getCurrency();
12707
+ if (f.length > 0) {
12708
+ writer.writeString(
12704
12709
  5,
12705
12710
  f
12706
12711
  );
12707
12712
  }
12708
- f = /** @type {string} */ (jspb.Message.getField(message, 6));
12713
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
12709
12714
  if (f != null) {
12710
- writer.writeString(
12715
+ writer.writeInt32(
12711
12716
  6,
12712
12717
  f
12713
12718
  );
@@ -12719,14 +12724,21 @@ proto.game.InitGameSessionRequest.serializeBinaryToWriter = function(message, wr
12719
12724
  f
12720
12725
  );
12721
12726
  }
12727
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
12728
+ if (f != null) {
12729
+ writer.writeString(
12730
+ 8,
12731
+ f
12732
+ );
12733
+ }
12722
12734
  };
12723
12735
 
12724
12736
 
12725
12737
  /**
12726
- * optional string game_uuid = 1;
12738
+ * optional string game_slug = 1;
12727
12739
  * @return {string}
12728
12740
  */
12729
- proto.game.InitGameSessionRequest.prototype.getGameUuid = function() {
12741
+ proto.game.InitGameSessionRequest.prototype.getGameSlug = function() {
12730
12742
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
12731
12743
  };
12732
12744
 
@@ -12735,16 +12747,16 @@ proto.game.InitGameSessionRequest.prototype.getGameUuid = function() {
12735
12747
  * @param {string} value
12736
12748
  * @return {!proto.game.InitGameSessionRequest} returns this
12737
12749
  */
12738
- proto.game.InitGameSessionRequest.prototype.setGameUuid = function(value) {
12750
+ proto.game.InitGameSessionRequest.prototype.setGameSlug = function(value) {
12739
12751
  return jspb.Message.setProto3StringField(this, 1, value);
12740
12752
  };
12741
12753
 
12742
12754
 
12743
12755
  /**
12744
- * optional string player_id = 2;
12756
+ * optional string provider_slug = 2;
12745
12757
  * @return {string}
12746
12758
  */
12747
- proto.game.InitGameSessionRequest.prototype.getPlayerId = function() {
12759
+ proto.game.InitGameSessionRequest.prototype.getProviderSlug = function() {
12748
12760
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12749
12761
  };
12750
12762
 
@@ -12753,16 +12765,16 @@ proto.game.InitGameSessionRequest.prototype.getPlayerId = function() {
12753
12765
  * @param {string} value
12754
12766
  * @return {!proto.game.InitGameSessionRequest} returns this
12755
12767
  */
12756
- proto.game.InitGameSessionRequest.prototype.setPlayerId = function(value) {
12768
+ proto.game.InitGameSessionRequest.prototype.setProviderSlug = function(value) {
12757
12769
  return jspb.Message.setProto3StringField(this, 2, value);
12758
12770
  };
12759
12771
 
12760
12772
 
12761
12773
  /**
12762
- * optional string player_name = 3;
12774
+ * optional string player_id = 3;
12763
12775
  * @return {string}
12764
12776
  */
12765
- proto.game.InitGameSessionRequest.prototype.getPlayerName = function() {
12777
+ proto.game.InitGameSessionRequest.prototype.getPlayerId = function() {
12766
12778
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12767
12779
  };
12768
12780
 
@@ -12771,16 +12783,16 @@ proto.game.InitGameSessionRequest.prototype.getPlayerName = function() {
12771
12783
  * @param {string} value
12772
12784
  * @return {!proto.game.InitGameSessionRequest} returns this
12773
12785
  */
12774
- proto.game.InitGameSessionRequest.prototype.setPlayerName = function(value) {
12786
+ proto.game.InitGameSessionRequest.prototype.setPlayerId = function(value) {
12775
12787
  return jspb.Message.setProto3StringField(this, 3, value);
12776
12788
  };
12777
12789
 
12778
12790
 
12779
12791
  /**
12780
- * optional string currency = 4;
12792
+ * optional string player_name = 4;
12781
12793
  * @return {string}
12782
12794
  */
12783
- proto.game.InitGameSessionRequest.prototype.getCurrency = function() {
12795
+ proto.game.InitGameSessionRequest.prototype.getPlayerName = function() {
12784
12796
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
12785
12797
  };
12786
12798
 
@@ -12789,17 +12801,35 @@ proto.game.InitGameSessionRequest.prototype.getCurrency = function() {
12789
12801
  * @param {string} value
12790
12802
  * @return {!proto.game.InitGameSessionRequest} returns this
12791
12803
  */
12792
- proto.game.InitGameSessionRequest.prototype.setCurrency = function(value) {
12804
+ proto.game.InitGameSessionRequest.prototype.setPlayerName = function(value) {
12793
12805
  return jspb.Message.setProto3StringField(this, 4, value);
12794
12806
  };
12795
12807
 
12796
12808
 
12797
12809
  /**
12798
- * optional int32 has_lobby = 5;
12810
+ * optional string currency = 5;
12811
+ * @return {string}
12812
+ */
12813
+ proto.game.InitGameSessionRequest.prototype.getCurrency = function() {
12814
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
12815
+ };
12816
+
12817
+
12818
+ /**
12819
+ * @param {string} value
12820
+ * @return {!proto.game.InitGameSessionRequest} returns this
12821
+ */
12822
+ proto.game.InitGameSessionRequest.prototype.setCurrency = function(value) {
12823
+ return jspb.Message.setProto3StringField(this, 5, value);
12824
+ };
12825
+
12826
+
12827
+ /**
12828
+ * optional int32 has_lobby = 6;
12799
12829
  * @return {number}
12800
12830
  */
12801
12831
  proto.game.InitGameSessionRequest.prototype.getHasLobby = function() {
12802
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
12832
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
12803
12833
  };
12804
12834
 
12805
12835
 
@@ -12808,7 +12838,7 @@ proto.game.InitGameSessionRequest.prototype.getHasLobby = function() {
12808
12838
  * @return {!proto.game.InitGameSessionRequest} returns this
12809
12839
  */
12810
12840
  proto.game.InitGameSessionRequest.prototype.setHasLobby = function(value) {
12811
- return jspb.Message.setField(this, 5, value);
12841
+ return jspb.Message.setField(this, 6, value);
12812
12842
  };
12813
12843
 
12814
12844
 
@@ -12817,7 +12847,7 @@ proto.game.InitGameSessionRequest.prototype.setHasLobby = function(value) {
12817
12847
  * @return {!proto.game.InitGameSessionRequest} returns this
12818
12848
  */
12819
12849
  proto.game.InitGameSessionRequest.prototype.clearHasLobby = function() {
12820
- return jspb.Message.setField(this, 5, undefined);
12850
+ return jspb.Message.setField(this, 6, undefined);
12821
12851
  };
12822
12852
 
12823
12853
 
@@ -12826,16 +12856,16 @@ proto.game.InitGameSessionRequest.prototype.clearHasLobby = function() {
12826
12856
  * @return {boolean}
12827
12857
  */
12828
12858
  proto.game.InitGameSessionRequest.prototype.hasHasLobby = function() {
12829
- return jspb.Message.getField(this, 5) != null;
12859
+ return jspb.Message.getField(this, 6) != null;
12830
12860
  };
12831
12861
 
12832
12862
 
12833
12863
  /**
12834
- * optional string return_url = 6;
12864
+ * optional string return_url = 7;
12835
12865
  * @return {string}
12836
12866
  */
12837
12867
  proto.game.InitGameSessionRequest.prototype.getReturnUrl = function() {
12838
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
12868
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
12839
12869
  };
12840
12870
 
12841
12871
 
@@ -12844,7 +12874,7 @@ proto.game.InitGameSessionRequest.prototype.getReturnUrl = function() {
12844
12874
  * @return {!proto.game.InitGameSessionRequest} returns this
12845
12875
  */
12846
12876
  proto.game.InitGameSessionRequest.prototype.setReturnUrl = function(value) {
12847
- return jspb.Message.setField(this, 6, value);
12877
+ return jspb.Message.setField(this, 7, value);
12848
12878
  };
12849
12879
 
12850
12880
 
@@ -12853,7 +12883,7 @@ proto.game.InitGameSessionRequest.prototype.setReturnUrl = function(value) {
12853
12883
  * @return {!proto.game.InitGameSessionRequest} returns this
12854
12884
  */
12855
12885
  proto.game.InitGameSessionRequest.prototype.clearReturnUrl = function() {
12856
- return jspb.Message.setField(this, 6, undefined);
12886
+ return jspb.Message.setField(this, 7, undefined);
12857
12887
  };
12858
12888
 
12859
12889
 
@@ -12862,16 +12892,16 @@ proto.game.InitGameSessionRequest.prototype.clearReturnUrl = function() {
12862
12892
  * @return {boolean}
12863
12893
  */
12864
12894
  proto.game.InitGameSessionRequest.prototype.hasReturnUrl = function() {
12865
- return jspb.Message.getField(this, 6) != null;
12895
+ return jspb.Message.getField(this, 7) != null;
12866
12896
  };
12867
12897
 
12868
12898
 
12869
12899
  /**
12870
- * optional string language = 7;
12900
+ * optional string language = 8;
12871
12901
  * @return {string}
12872
12902
  */
12873
12903
  proto.game.InitGameSessionRequest.prototype.getLanguage = function() {
12874
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
12904
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
12875
12905
  };
12876
12906
 
12877
12907
 
@@ -12880,7 +12910,7 @@ proto.game.InitGameSessionRequest.prototype.getLanguage = function() {
12880
12910
  * @return {!proto.game.InitGameSessionRequest} returns this
12881
12911
  */
12882
12912
  proto.game.InitGameSessionRequest.prototype.setLanguage = function(value) {
12883
- return jspb.Message.setField(this, 7, value);
12913
+ return jspb.Message.setField(this, 8, value);
12884
12914
  };
12885
12915
 
12886
12916
 
@@ -12889,7 +12919,7 @@ proto.game.InitGameSessionRequest.prototype.setLanguage = function(value) {
12889
12919
  * @return {!proto.game.InitGameSessionRequest} returns this
12890
12920
  */
12891
12921
  proto.game.InitGameSessionRequest.prototype.clearLanguage = function() {
12892
- return jspb.Message.setField(this, 7, undefined);
12922
+ return jspb.Message.setField(this, 8, undefined);
12893
12923
  };
12894
12924
 
12895
12925
 
@@ -12898,7 +12928,7 @@ proto.game.InitGameSessionRequest.prototype.clearLanguage = function() {
12898
12928
  * @return {boolean}
12899
12929
  */
12900
12930
  proto.game.InitGameSessionRequest.prototype.hasLanguage = function() {
12901
- return jspb.Message.getField(this, 7) != null;
12931
+ return jspb.Message.getField(this, 8) != null;
12902
12932
  };
12903
12933
 
12904
12934
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -36,6 +36,9 @@ message LoggedInResponse {
36
36
  string country = 4;
37
37
  string role = 5;
38
38
  string permissions = 6;
39
+ string locale = 7;
40
+ string first_name = 8;
41
+ string last_name = 9;
39
42
  }
40
43
  message LoginRequest {
41
44
  string email = 1;
package/user/user_pb.js CHANGED
@@ -1176,7 +1176,10 @@ proto.user.LoggedInResponse.toObject = function(includeInstance, msg) {
1176
1176
  currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
1177
1177
  country: jspb.Message.getFieldWithDefault(msg, 4, ""),
1178
1178
  role: jspb.Message.getFieldWithDefault(msg, 5, ""),
1179
- permissions: jspb.Message.getFieldWithDefault(msg, 6, "")
1179
+ permissions: jspb.Message.getFieldWithDefault(msg, 6, ""),
1180
+ locale: jspb.Message.getFieldWithDefault(msg, 7, ""),
1181
+ firstName: jspb.Message.getFieldWithDefault(msg, 8, ""),
1182
+ lastName: jspb.Message.getFieldWithDefault(msg, 9, "")
1180
1183
  };
1181
1184
 
1182
1185
  if (includeInstance) {
@@ -1237,6 +1240,18 @@ proto.user.LoggedInResponse.deserializeBinaryFromReader = function(msg, reader)
1237
1240
  var value = /** @type {string} */ (reader.readString());
1238
1241
  msg.setPermissions(value);
1239
1242
  break;
1243
+ case 7:
1244
+ var value = /** @type {string} */ (reader.readString());
1245
+ msg.setLocale(value);
1246
+ break;
1247
+ case 8:
1248
+ var value = /** @type {string} */ (reader.readString());
1249
+ msg.setFirstName(value);
1250
+ break;
1251
+ case 9:
1252
+ var value = /** @type {string} */ (reader.readString());
1253
+ msg.setLastName(value);
1254
+ break;
1240
1255
  default:
1241
1256
  reader.skipField();
1242
1257
  break;
@@ -1308,6 +1323,27 @@ proto.user.LoggedInResponse.serializeBinaryToWriter = function(message, writer)
1308
1323
  f
1309
1324
  );
1310
1325
  }
1326
+ f = message.getLocale();
1327
+ if (f.length > 0) {
1328
+ writer.writeString(
1329
+ 7,
1330
+ f
1331
+ );
1332
+ }
1333
+ f = message.getFirstName();
1334
+ if (f.length > 0) {
1335
+ writer.writeString(
1336
+ 8,
1337
+ f
1338
+ );
1339
+ }
1340
+ f = message.getLastName();
1341
+ if (f.length > 0) {
1342
+ writer.writeString(
1343
+ 9,
1344
+ f
1345
+ );
1346
+ }
1311
1347
  };
1312
1348
 
1313
1349
 
@@ -1419,6 +1455,60 @@ proto.user.LoggedInResponse.prototype.setPermissions = function(value) {
1419
1455
  };
1420
1456
 
1421
1457
 
1458
+ /**
1459
+ * optional string locale = 7;
1460
+ * @return {string}
1461
+ */
1462
+ proto.user.LoggedInResponse.prototype.getLocale = function() {
1463
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1464
+ };
1465
+
1466
+
1467
+ /**
1468
+ * @param {string} value
1469
+ * @return {!proto.user.LoggedInResponse} returns this
1470
+ */
1471
+ proto.user.LoggedInResponse.prototype.setLocale = function(value) {
1472
+ return jspb.Message.setProto3StringField(this, 7, value);
1473
+ };
1474
+
1475
+
1476
+ /**
1477
+ * optional string first_name = 8;
1478
+ * @return {string}
1479
+ */
1480
+ proto.user.LoggedInResponse.prototype.getFirstName = function() {
1481
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1482
+ };
1483
+
1484
+
1485
+ /**
1486
+ * @param {string} value
1487
+ * @return {!proto.user.LoggedInResponse} returns this
1488
+ */
1489
+ proto.user.LoggedInResponse.prototype.setFirstName = function(value) {
1490
+ return jspb.Message.setProto3StringField(this, 8, value);
1491
+ };
1492
+
1493
+
1494
+ /**
1495
+ * optional string last_name = 9;
1496
+ * @return {string}
1497
+ */
1498
+ proto.user.LoggedInResponse.prototype.getLastName = function() {
1499
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1500
+ };
1501
+
1502
+
1503
+ /**
1504
+ * @param {string} value
1505
+ * @return {!proto.user.LoggedInResponse} returns this
1506
+ */
1507
+ proto.user.LoggedInResponse.prototype.setLastName = function(value) {
1508
+ return jspb.Message.setProto3StringField(this, 9, value);
1509
+ };
1510
+
1511
+
1422
1512
 
1423
1513
 
1424
1514