@smartico/public-api 0.0.196 → 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.
@@ -161,3 +161,19 @@ ___
161
161
  • `Optional` **relative\_period\_timezone**: `number`
162
162
 
163
163
  Time zone to ensure each day aligns with your local midnight.
164
+
165
+ ___
166
+
167
+ ### activeFromDate
168
+
169
+ • `Optional` **activeFromDate**: `number`
170
+
171
+ Holds time from which template will become available, for the template that are targeted to be available from specific time (UNIX timestamp)
172
+
173
+ ___
174
+
175
+ ### activeTillDate
176
+
177
+ • `Optional` **activeTillDate**: `number`
178
+
179
+ Holds time till which template will become available, for the templates that are targeted to be available from specific time (UNIX timestamp)
@@ -271,3 +271,19 @@ ___
271
271
  • **is\_upcoming**: `boolean`
272
272
 
273
273
  Indicator if tournament instance is upcoming (status PUBLISHED or REGISTER)
274
+
275
+ ___
276
+
277
+ ### min\_scores\_win
278
+
279
+ • `Optional` **min\_scores\_win**: `number`
280
+
281
+ The minimum amount of score points that the user should get in order to be qualified for the prize
282
+
283
+ ___
284
+
285
+ ### hide\_leaderboard\_min\_scores
286
+
287
+ • `Optional` **hide\_leaderboard\_min\_scores**: `boolean`
288
+
289
+ When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.196",
3
+ "version": "0.0.198",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -35,7 +35,9 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
35
35
  promo_text: r.saw_template_ui_definition.promo_text,
36
36
  custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
37
37
  expose_game_stat_on_api: r.expose_game_stat_on_api,
38
-
38
+ relative_period_timezone: r.relative_period_timezone,
39
+ activeFromDate: r.activeFromDate,
40
+ activeTillDate: r.activeTillDate,
39
41
  next_available_spin_ts: r.next_available_spin_ts,
40
42
 
41
43
  prizes: r.prizes.map((p) => {
@@ -18,8 +18,8 @@ export interface SAWTemplate {
18
18
 
19
19
  is_visible: boolean;
20
20
 
21
- activeFromDate: number;
22
- activeTillDate: number;
21
+ activeFromDate?: number;
22
+ activeTillDate?: number;
23
23
 
24
24
  jackpot_add_on_attempt: number;
25
25
  jackpot_current: number;
@@ -41,5 +41,6 @@ export interface SAWTemplate {
41
41
 
42
42
  // AA: releavnt only in the context of the SAWPrizeDropWinPush
43
43
  requires_prize_claim?: boolean;
44
+
44
45
  relative_period_timezone?: number;
45
46
  }
@@ -62,6 +62,10 @@ export interface Tournament {
62
62
 
63
63
  /** List of casino games (or other types of entities) related to the tournament */
64
64
  related_games?: AchRelatedGame[];
65
+ /* The minimum amount of score points that the user should get in order to be qualified for the prize */
66
+ minScoreToWin?: number;
67
+ /* When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard. */
68
+ hideLeaderboardsMinScores?: boolean;
65
69
  }
66
70
 
67
71
  export const TournamentItemsTransform = (items: Tournament[]): TTournament[] => {
@@ -103,6 +107,9 @@ export const TournamentItemsTransform = (items: Tournament[]): TTournament[] =>
103
107
  is_finished: TournamentUtils.isFinished(r),
104
108
  is_in_progress: TournamentUtils.isInProgress(r),
105
109
  is_upcoming: TournamentUtils.isUpcoming(r),
110
+
111
+ min_scores_win: r.minScoreToWin,
112
+ hide_leaderboard_min_scores: r.hideLeaderboardsMinScores,
106
113
  };
107
114
 
108
115
  if (r.prizeStructure) {
@@ -51,7 +51,7 @@ export interface TMiniGamePrize {
51
51
  wins_count?: number;
52
52
  /* Number of days of week, when the prize can be available */
53
53
  weekdays?: number[];
54
- /* Holds time from which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp)*/
54
+ /* Holds time from which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
55
55
  active_from_ts?: number;
56
56
  /* Holds time till which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
57
57
  active_till_ts?: number;
@@ -145,6 +145,10 @@ export interface TMiniGameTemplate {
145
145
 
146
146
  /* Time zone to ensure each day aligns with your local midnight. */
147
147
  relative_period_timezone?: number;
148
+ /* Holds time from which template will become available, for the template that are targeted to be available from specific time (UNIX timestamp) */
149
+ activeFromDate?: number;
150
+ /* Holds time till which template will become available, for the templates that are targeted to be available from specific time (UNIX timestamp) */
151
+ activeTillDate?: number;
148
152
  }
149
153
 
150
154
  /**
@@ -323,6 +327,10 @@ export interface TTournament {
323
327
  is_in_progress: boolean;
324
328
  /** Indicator if tournament instance is upcoming (status PUBLISHED or REGISTER) */
325
329
  is_upcoming: boolean;
330
+ /* The minimum amount of score points that the user should get in order to be qualified for the prize */
331
+ min_scores_win?: number;
332
+ /* When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard */
333
+ hide_leaderboard_min_scores?: boolean;
326
334
  }
327
335
 
328
336
  /**