@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.
- package/dist/MiniGames/SAWTemplate.d.ts +2 -2
- package/dist/Tournaments/Tournament.d.ts +2 -0
- package/dist/WSAPI/WSAPITypes.d.ts +4 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +6 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/TMiniGameTemplate.md +16 -0
- package/docs/interfaces/TTournament.md +16 -0
- package/package.json +1 -1
- package/src/MiniGames/SAWGetTemplatesResponse.ts +3 -1
- package/src/MiniGames/SAWTemplate.ts +3 -2
- package/src/Tournaments/Tournament.ts +7 -0
- package/src/WSAPI/WSAPITypes.ts +9 -1
package/dist/index.modern.mjs
CHANGED
|
@@ -392,6 +392,9 @@ const SAWTemplatesTransform = items => {
|
|
|
392
392
|
promo_text: r.saw_template_ui_definition.promo_text,
|
|
393
393
|
custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
|
|
394
394
|
expose_game_stat_on_api: r.expose_game_stat_on_api,
|
|
395
|
+
relative_period_timezone: r.relative_period_timezone,
|
|
396
|
+
activeFromDate: r.activeFromDate,
|
|
397
|
+
activeTillDate: r.activeTillDate,
|
|
395
398
|
next_available_spin_ts: r.next_available_spin_ts,
|
|
396
399
|
prizes: r.prizes.map(p => {
|
|
397
400
|
const y = {
|
|
@@ -1035,7 +1038,9 @@ const TournamentItemsTransform = items => {
|
|
|
1035
1038
|
is_cancelled: TournamentUtils.isCancelled(r),
|
|
1036
1039
|
is_finished: TournamentUtils.isFinished(r),
|
|
1037
1040
|
is_in_progress: TournamentUtils.isInProgress(r),
|
|
1038
|
-
is_upcoming: TournamentUtils.isUpcoming(r)
|
|
1041
|
+
is_upcoming: TournamentUtils.isUpcoming(r),
|
|
1042
|
+
min_scores_win: r.minScoreToWin,
|
|
1043
|
+
hide_leaderboard_min_scores: r.hideLeaderboardsMinScores
|
|
1039
1044
|
};
|
|
1040
1045
|
if (r.prizeStructure) {
|
|
1041
1046
|
x.prizes = r.prizeStructure.prizes.map(p => TournamentUtils.getPrizeTransformed(p));
|