@smartico/public-api 0.0.183 → 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,6 +14,5 @@ export interface SAWPrize {
14
14
  weekdays?: number[];
15
15
  active_from_ts?: number;
16
16
  active_till_ts?: number;
17
- active_from?: string;
18
- active_till?: string;
17
+ relative_period_timezone?: number;
19
18
  }
@@ -3,7 +3,7 @@ import { SAWWinSoundType } from './SAWWinSoundType';
3
3
  export interface SAWPrizeUI {
4
4
  position?: number;
5
5
  name: string;
6
- name_original: string;
6
+ name_original?: string;
7
7
  aknowledge_message?: string;
8
8
  sectors?: number[];
9
9
  acknowledge_type?: SAWAcknowledgeType;
@@ -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
  }
@@ -14,7 +14,7 @@ export declare class WSAPI {
14
14
  *
15
15
  * **Example**:
16
16
  * ```
17
- * _smartico.api.getUserProfile().then((result) => {
17
+ * _smartico.api.getUserProfile(result => {
18
18
  * console.log(result);
19
19
  * });
20
20
  * ```
@@ -36,8 +36,7 @@ export interface TMiniGamePrize {
36
36
  weekdays?: number[];
37
37
  active_from_ts?: number;
38
38
  active_till_ts?: number;
39
- active_from?: string;
40
- active_till?: string;
39
+ relative_period_timezone?: number;
41
40
  }
42
41
  /**
43
42
  * TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
package/dist/index.js CHANGED
@@ -421,8 +421,7 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
421
421
  weekdays: p.weekdays,
422
422
  active_from_ts: p.active_from_ts,
423
423
  active_till_ts: p.active_till_ts,
424
- active_from: p.active_from,
425
- active_till: p.active_till
424
+ relative_period_timezone: p.relative_period_timezone
426
425
  };
427
426
  return y;
428
427
  })
@@ -1308,7 +1307,7 @@ var WSAPI = /*#__PURE__*/function () {
1308
1307
  *
1309
1308
  * **Example**:
1310
1309
  * ```
1311
- * _smartico.api.getUserProfile().then((result) => {
1310
+ * _smartico.api.getUserProfile(result => {
1312
1311
  * console.log(result);
1313
1312
  * });
1314
1313
  * ```
@@ -3305,7 +3304,7 @@ var SmarticoAPI = /*#__PURE__*/function () {
3305
3304
  if ((_response$userPositio = response.userPosition) != null && _response$userPositio.avatar_id) {
3306
3305
  response.userPosition.avatar_url = CoreUtils.avatarUrl(response.userPosition.avatar_id, _this44.avatarDomain);
3307
3306
  }
3308
- 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) {
3309
3308
  response.tournamentInfo.players.forEach(function (p) {
3310
3309
  p.avatar_url = CoreUtils.avatarUrl(p.avatar_id, _this44.avatarDomain);
3311
3310
  });