@smartico/public-api 0.0.101 → 0.0.103
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/Core/PublicProperties.d.ts +0 -2
- package/dist/MiniGames/SAWTemplateUI.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +26 -1
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +24 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/README.md +1 -0
- package/docs/interfaces/AchRelatedGame.md +28 -0
- package/docs/interfaces/TMiniGameTemplate.md +9 -1
- package/docs/interfaces/TMissionOrBadge.md +8 -0
- package/docs/interfaces/TTournamentDetailed.md +8 -0
- package/package.json +1 -1
- package/src/Core/PublicProperties.ts +0 -2
- package/src/MiniGames/SAWGetTemplatesResponse.ts +1 -0
- package/src/MiniGames/SAWTemplateUI.ts +1 -0
- package/src/Missions/UserAchievement.ts +12 -1
- package/src/Tournaments/GetTournamentInfoResponse.ts +11 -0
- package/src/WSAPI/WSAPITypes.ts +29 -1
package/dist/index.modern.mjs
CHANGED
|
@@ -264,6 +264,7 @@ const SAWTemplatesTransform = items => {
|
|
|
264
264
|
thumbnail: (_r$saw_skin_ui_defini = r.saw_skin_ui_definition) != null && _r$saw_skin_ui_defini.skin_folder ? ((_r$saw_skin_ui_defini2 = r.saw_skin_ui_definition) == null ? void 0 : _r$saw_skin_ui_defini2.skin_folder) + '/ico.png' : `https://libs.smartico.ai/gf/images/saw/${r.saw_skin_key}/ico.png`,
|
|
265
265
|
over_limit_message: r.saw_template_ui_definition.over_limit_message,
|
|
266
266
|
no_attempts_message: r.saw_template_ui_definition.no_attempts_message,
|
|
267
|
+
no_points_message: r.saw_template_ui_definition.no_points_message,
|
|
267
268
|
jackpot_symbol: r.saw_template_ui_definition.jackpot_symbol,
|
|
268
269
|
saw_game_type: SAWGameTypeNamed(r.saw_game_type_id),
|
|
269
270
|
saw_buyin_type: SAWBuyInTypeNamed(r.saw_buyin_type_id),
|
|
@@ -586,7 +587,18 @@ const UserAchievementTransform = items => {
|
|
|
586
587
|
is_completed: t.isCompleted,
|
|
587
588
|
progress: t.userProgress
|
|
588
589
|
};
|
|
589
|
-
})
|
|
590
|
+
}),
|
|
591
|
+
related_games: (r.related_games || []).map(g => ({
|
|
592
|
+
ext_game_id: g.ext_game_id,
|
|
593
|
+
game_public_meta: {
|
|
594
|
+
name: g.game_public_meta.name,
|
|
595
|
+
link: g.game_public_meta.link,
|
|
596
|
+
image: g.game_public_meta.image,
|
|
597
|
+
enabled: g.game_public_meta.enabled,
|
|
598
|
+
game_categories: g.game_public_meta.game_categories,
|
|
599
|
+
game_provider: g.game_public_meta.game_provider
|
|
600
|
+
}
|
|
601
|
+
}))
|
|
590
602
|
}));
|
|
591
603
|
};
|
|
592
604
|
|
|
@@ -702,6 +714,17 @@ const tournamentPrizeTypeToPrizeName = type => {
|
|
|
702
714
|
};
|
|
703
715
|
const tournamentInfoItemTransform = t => {
|
|
704
716
|
const response = _extends({}, TournamentItemsTransform([t.tournamentInfo.tournamentLobbyInfo])[0], {
|
|
717
|
+
related_games: (t.tournamentInfo.tournamentLobbyInfo.related_games || []).map(g => ({
|
|
718
|
+
ext_game_id: g.ext_game_id,
|
|
719
|
+
game_public_meta: {
|
|
720
|
+
name: g.game_public_meta.name,
|
|
721
|
+
link: g.game_public_meta.link,
|
|
722
|
+
image: g.game_public_meta.image,
|
|
723
|
+
enabled: g.game_public_meta.enabled,
|
|
724
|
+
game_categories: g.game_public_meta.game_categories,
|
|
725
|
+
game_provider: g.game_public_meta.game_provider
|
|
726
|
+
}
|
|
727
|
+
})),
|
|
705
728
|
players: t.tournamentInfo.players.map(p => ({
|
|
706
729
|
public_username: p.userAltName,
|
|
707
730
|
avatar_url: p.avatar_url,
|