@smartico/public-api 0.0.197 → 0.0.198

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.
@@ -12,8 +12,8 @@ export interface SAWTemplate {
12
12
  spin_count?: number;
13
13
  prizes: SAWPrize[];
14
14
  is_visible: boolean;
15
- activeFromDate: number;
16
- activeTillDate: number;
15
+ activeFromDate?: number;
16
+ activeTillDate?: number;
17
17
  jackpot_add_on_attempt: number;
18
18
  jackpot_current: number;
19
19
  jackpot_guaranteed: number;
@@ -55,5 +55,7 @@ export interface Tournament {
55
55
  tournamentPlayer?: TournamentPlayer;
56
56
  /** List of casino games (or other types of entities) related to the tournament */
57
57
  related_games?: AchRelatedGame[];
58
+ minScoreToWin?: number;
59
+ hideLeaderboardsMinScores?: boolean;
58
60
  }
59
61
  export declare const TournamentItemsTransform: (items: Tournament[]) => TTournament[];
@@ -111,6 +111,8 @@ export interface TMiniGameTemplate {
111
111
  prizes: TMiniGamePrize[];
112
112
  expose_game_stat_on_api?: boolean;
113
113
  relative_period_timezone?: number;
114
+ activeFromDate?: number;
115
+ activeTillDate?: number;
114
116
  }
115
117
  /**
116
118
  * TUser describes the information of the user
@@ -270,6 +272,8 @@ export interface TTournament {
270
272
  is_in_progress: boolean;
271
273
  /** Indicator if tournament instance is upcoming (status PUBLISHED or REGISTER) */
272
274
  is_upcoming: boolean;
275
+ min_scores_win?: number;
276
+ hide_leaderboard_min_scores?: boolean;
273
277
  }
274
278
  /**
275
279
  * TTournamentDetailed describes the information of the tournament item and includes list of participants, their scores and position in the tournament leaderboard
package/dist/index.js CHANGED
@@ -402,6 +402,9 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
402
402
  promo_text: r.saw_template_ui_definition.promo_text,
403
403
  custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
404
404
  expose_game_stat_on_api: r.expose_game_stat_on_api,
405
+ relative_period_timezone: r.relative_period_timezone,
406
+ activeFromDate: r.activeFromDate,
407
+ activeTillDate: r.activeTillDate,
405
408
  next_available_spin_ts: r.next_available_spin_ts,
406
409
  prizes: r.prizes.map(function (p) {
407
410
  var y = {
@@ -1060,7 +1063,9 @@ var TournamentItemsTransform = function TournamentItemsTransform(items) {
1060
1063
  is_cancelled: TournamentUtils.isCancelled(r),
1061
1064
  is_finished: TournamentUtils.isFinished(r),
1062
1065
  is_in_progress: TournamentUtils.isInProgress(r),
1063
- is_upcoming: TournamentUtils.isUpcoming(r)
1066
+ is_upcoming: TournamentUtils.isUpcoming(r),
1067
+ min_scores_win: r.minScoreToWin,
1068
+ hide_leaderboard_min_scores: r.hideLeaderboardsMinScores
1064
1069
  };
1065
1070
  if (r.prizeStructure) {
1066
1071
  x.prizes = r.prizeStructure.prizes.map(function (p) {