@smartico/public-api 0.0.331 → 0.0.333

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.
@@ -342,7 +342,7 @@ var SAWGameType;
342
342
  SAWGameType[SAWGameType["TreasureHunt"] = 9] = "TreasureHunt";
343
343
  SAWGameType[SAWGameType["Voyager"] = 10] = "Voyager";
344
344
  SAWGameType[SAWGameType["Plinko"] = 11] = "Plinko";
345
- SAWGameType[SAWGameType["\u0421oinFlip"] = 12] = "\u0421oinFlip";
345
+ SAWGameType[SAWGameType["CoinFlip"] = 12] = "CoinFlip";
346
346
  })(SAWGameType || (SAWGameType = {}));
347
347
  var SAWGameTypeName;
348
348
  (function (SAWGameTypeName) {
@@ -357,7 +357,7 @@ var SAWGameTypeName;
357
357
  SAWGameTypeName["TreasureHunt"] = "treasure_hunt";
358
358
  SAWGameTypeName["Voyager"] = "voyager";
359
359
  SAWGameTypeName["Plinko"] = "plinko";
360
- SAWGameTypeName["\u0421oinFlip"] = "coin_flip";
360
+ SAWGameTypeName["CoinFlip"] = "coin_flip";
361
361
  SAWGameTypeName["Unknown"] = "unknown";
362
362
  })(SAWGameTypeName || (SAWGameTypeName = {}));
363
363
  /** @hidden */
@@ -374,7 +374,7 @@ const SAWGameTypeNamed = type => {
374
374
  [SAWGameType.TreasureHunt]: SAWGameTypeName.TreasureHunt,
375
375
  [SAWGameType.Voyager]: SAWGameTypeName.Voyager,
376
376
  [SAWGameType.Plinko]: SAWGameTypeName.Plinko,
377
- [SAWGameType.СoinFlip]: SAWGameTypeName.СoinFlip
377
+ [SAWGameType.CoinFlip]: SAWGameTypeName.CoinFlip
378
378
  }[type] || SAWGameTypeName.Unknown;
379
379
  };
380
380
 
@@ -1505,7 +1505,7 @@ const UserAchievementTransform = items => {
1505
1505
  stage_image: t.task_public_meta.stage_image
1506
1506
  };
1507
1507
  }),
1508
- related_games: (r.related_games || []).map(g => ({
1508
+ related_games: (r.related_games || []).map((g, i) => ({
1509
1509
  ext_game_id: g.ext_game_id,
1510
1510
  game_public_meta: {
1511
1511
  name: g.game_public_meta.name,
@@ -1514,7 +1514,8 @@ const UserAchievementTransform = items => {
1514
1514
  enabled: g.game_public_meta.enabled,
1515
1515
  game_categories: g.game_public_meta.game_categories,
1516
1516
  game_provider: g.game_public_meta.game_provider,
1517
- mobile_spec_link: g.game_public_meta.mobile_spec_link
1517
+ mobile_spec_link: g.game_public_meta.mobile_spec_link,
1518
+ priority: i + 1
1518
1519
  }
1519
1520
  })),
1520
1521
  category_ids: (_r$ach_categories = r.ach_categories) != null ? _r$ach_categories : [],
@@ -1790,7 +1791,7 @@ const TournamentItemsTransform = items => {
1790
1791
 
1791
1792
  const tournamentInfoItemTransform = t => {
1792
1793
  const response = _extends({}, TournamentItemsTransform([t.tournamentInfo.tournamentLobbyInfo])[0], {
1793
- related_games: (t.tournamentInfo.tournamentLobbyInfo.related_games || []).map(g => ({
1794
+ related_games: (t.tournamentInfo.tournamentLobbyInfo.related_games || []).map((g, i) => ({
1794
1795
  ext_game_id: g.ext_game_id,
1795
1796
  game_public_meta: {
1796
1797
  name: g.game_public_meta.name,
@@ -1799,7 +1800,8 @@ const tournamentInfoItemTransform = t => {
1799
1800
  enabled: g.game_public_meta.enabled,
1800
1801
  game_categories: g.game_public_meta.game_categories,
1801
1802
  game_provider: g.game_public_meta.game_provider,
1802
- mobile_spec_link: g.game_public_meta.mobile_spec_link
1803
+ mobile_spec_link: g.game_public_meta.mobile_spec_link,
1804
+ priority: i + 1
1803
1805
  }
1804
1806
  })),
1805
1807
  players: t.tournamentInfo.players.map(p => TournamentUtils.getPlayerTransformed(p))
@@ -3471,7 +3473,7 @@ const GetJackpotWinnersResponseTransform = items => {
3471
3473
  const GetJackpotEligibleGamesResponseTransform = ({
3472
3474
  eligible_games
3473
3475
  }) => {
3474
- const games = eligible_games.map(game => ({
3476
+ const games = eligible_games.map((game, i) => ({
3475
3477
  game_id: game.ach_game_id,
3476
3478
  ext_game_id: game.ext_game_id,
3477
3479
  name: game.game_public_meta.name,
@@ -3480,7 +3482,8 @@ const GetJackpotEligibleGamesResponseTransform = ({
3480
3482
  enabled: game.game_public_meta.enabled,
3481
3483
  game_categories: game.game_public_meta.game_categories,
3482
3484
  game_provider: game.game_public_meta.game_provider,
3483
- mobile_spec_link: game.game_public_meta.mobile_spec_link
3485
+ mobile_spec_link: game.game_public_meta.mobile_spec_link,
3486
+ priority: i + 1
3484
3487
  }));
3485
3488
  return {
3486
3489
  eligible_games: games