@smartico/public-api 0.0.358 → 0.0.360

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.
@@ -1054,7 +1054,21 @@ const StoreItemTransform = items => {
1054
1054
  custom_section_type_id: r.itemPublicMeta.custom_section_type_id
1055
1055
  }, r.itemPublicMeta.cant_buy_message ? {
1056
1056
  cant_buy_message: r.itemPublicMeta.cant_buy_message
1057
- } : {});
1057
+ } : {}, {
1058
+ related_games: (r.related_games || []).map((g, i) => ({
1059
+ ext_game_id: g.ext_game_id,
1060
+ game_public_meta: {
1061
+ name: g.game_public_meta.name,
1062
+ link: g.game_public_meta.link,
1063
+ image: g.game_public_meta.image,
1064
+ enabled: g.game_public_meta.enabled,
1065
+ game_categories: g.game_public_meta.game_categories,
1066
+ game_provider: g.game_public_meta.game_provider,
1067
+ mobile_spec_link: g.game_public_meta.mobile_spec_link,
1068
+ priority: i + 1
1069
+ }
1070
+ }))
1071
+ });
1058
1072
  return x;
1059
1073
  });
1060
1074
  };
@@ -1207,6 +1221,8 @@ var BadgesTimeLimitStates;
1207
1221
  })(BadgesTimeLimitStates || (BadgesTimeLimitStates = {}));
1208
1222
 
1209
1223
  var _MissionUtils;
1224
+ const USER_STATE_PARAMS_KEYS_GAMES = ['core_fav_game_top3', 'core_fav_game_type_top3', 'core_fav_game_provider_top3'];
1225
+ const USER_STATE_PARAMS_KEYS_BET_AMOUNT = ['core_recommended_deposit_amount', 'core_recommended_casino_bet_amount', 'casino_last_bet_amount', 'casino_last_bet_amount_real', 'casino_last_bet_amount_bonus', 'acc_last_deposit_amount'];
1210
1226
  class MissionUtils {}
1211
1227
  _MissionUtils = MissionUtils;
1212
1228
  MissionUtils.getAvailabilityStatus = mission => {
@@ -1376,7 +1392,7 @@ MissionUtils.replaceTagsFavMissionTask = ({
1376
1392
  userStateParamsKeys.forEach(k => {
1377
1393
  var _userStateOperator$k;
1378
1394
  const operator = (_userStateOperator$k = userStateOperator[k]) == null ? void 0 : _userStateOperator$k.op;
1379
- if (k === 'core_fav_game_top3' || k === 'core_fav_game_type_top3' || k === 'core_fav_game_provider_top3') {
1395
+ if (USER_STATE_PARAMS_KEYS_GAMES.includes(k)) {
1380
1396
  if (operatorsMulti.includes(operator)) {
1381
1397
  var _userStateParams$k;
1382
1398
  const value = (_userStateParams$k = userStateParams[k]) == null ? void 0 : _userStateParams$k.filter(v => Boolean(v));
@@ -1399,7 +1415,7 @@ MissionUtils.replaceTagsFavMissionTask = ({
1399
1415
  }
1400
1416
  }
1401
1417
  }
1402
- if (k === 'core_recommended_deposit_amount' || k === 'core_recommended_casino_bet_amount') {
1418
+ if (USER_STATE_PARAMS_KEYS_BET_AMOUNT.includes(k)) {
1403
1419
  suggestedValue = userStateParams[k];
1404
1420
  if (suggestedValue) {
1405
1421
  const currencyFromTheTask = userStateParams == null ? void 0 : userStateParams.core_wallet_currency;