@smartico/public-api 0.0.184 → 0.0.185

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.
@@ -0,0 +1,4 @@
1
+ export declare enum SAWGameLayout {
2
+ Horizontal = 1,
3
+ VerticalMap = 2
4
+ }
@@ -14,4 +14,5 @@ export interface SAWPrize {
14
14
  weekdays?: number[];
15
15
  active_from_ts?: number;
16
16
  active_till_ts?: number;
17
+ relative_period_timezone?: number;
17
18
  }
@@ -1,4 +1,5 @@
1
1
  import { SAWAskForUsername } from './SAWAskForUsername';
2
+ import { SAWGameLayout } from './SAWGameLayout';
2
3
  export interface SAWTemplateUI {
3
4
  skin: string;
4
5
  name: string;
@@ -42,4 +43,5 @@ export interface SAWTemplateUI {
42
43
  id: string;
43
44
  content: string;
44
45
  };
46
+ game_layout?: SAWGameLayout;
45
47
  }
@@ -36,6 +36,7 @@ export interface TMiniGamePrize {
36
36
  weekdays?: number[];
37
37
  active_from_ts?: number;
38
38
  active_till_ts?: number;
39
+ relative_period_timezone?: number;
39
40
  }
40
41
  /**
41
42
  * TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
package/dist/index.js CHANGED
@@ -420,7 +420,8 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
420
420
  wins_count: p.wins_count,
421
421
  weekdays: p.weekdays,
422
422
  active_from_ts: p.active_from_ts,
423
- active_till_ts: p.active_till_ts
423
+ active_till_ts: p.active_till_ts,
424
+ relative_period_timezone: p.relative_period_timezone
424
425
  };
425
426
  return y;
426
427
  })
@@ -3303,7 +3304,7 @@ var SmarticoAPI = /*#__PURE__*/function () {
3303
3304
  if ((_response$userPositio = response.userPosition) != null && _response$userPositio.avatar_id) {
3304
3305
  response.userPosition.avatar_url = CoreUtils.avatarUrl(response.userPosition.avatar_id, _this44.avatarDomain);
3305
3306
  }
3306
- if ((_response$tournamentI = response.tournamentInfo.players) != null && _response$tournamentI.length) {
3307
+ if ((_response$tournamentI = response.tournamentInfo) != null && (_response$tournamentI = _response$tournamentI.players) != null && _response$tournamentI.length) {
3307
3308
  response.tournamentInfo.players.forEach(function (p) {
3308
3309
  p.avatar_url = CoreUtils.avatarUrl(p.avatar_id, _this44.avatarDomain);
3309
3310
  });