@smartico/public-api 0.0.405 → 0.0.409
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/GamePick/GamePickTypes.d.ts +6 -1
- package/dist/Tournaments/GetClanTournamentPlayersResponse.d.ts +3 -25
- package/dist/WSAPI/WSAPITournaments.d.ts +4 -7
- package/dist/WSAPI/WSAPITypes.d.ts +16 -8
- package/dist/index.js +10 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +10 -12
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/README.md +0 -2
- package/docs/api/classes/WSAPITournaments.md +4 -7
- package/docs/api/functions/clanTournamentPlayersTransform.md +2 -2
- package/docs/api/interfaces/GamePickEvent.md +6 -1
- package/docs/api/interfaces/GetClanTournamentPlayersResponse.md +2 -16
- package/docs/api/interfaces/SAWTemplateUI.md +6 -2
- package/docs/api/interfaces/TClanTournamentPlayers.md +24 -22
- package/docs/capabilities/gamePickGetActiveRound.md +1 -1
- package/docs/capabilities/gamePickGetActiveRounds.md +1 -1
- package/docs/capabilities/gamePickGetHistory.md +1 -1
- package/docs/capabilities/gamePickGetRoundInfoForUser.md +1 -1
- package/docs/capabilities/gamePickSubmitSelection.md +1 -1
- package/docs/capabilities/gamePickSubmitSelectionQuiz.md +1 -1
- package/docs/capabilities/getClanTournamentPlayers.md +16 -11
- package/package.json +2 -2
- package/src/GamePick/GamePickTypes.ts +6 -1
- package/src/MiniGames/SAWGetTemplatesResponse.ts +2 -0
- package/src/Tournaments/GetClanTournamentPlayersResponse.ts +7 -26
- package/src/WSAPI/WSAPITournaments.ts +4 -7
- package/src/WSAPI/WSAPITypes.ts +16 -5
- package/docs/api/interfaces/TClanTournamentPlayer.md +0 -55
- package/docs/api/interfaces/TClanTournamentPlayersResult.md +0 -27
package/dist/index.modern.mjs
CHANGED
|
@@ -539,6 +539,8 @@ const SAWTemplatesTransform = items => {
|
|
|
539
539
|
acknowledge_action_title: p.saw_prize_ui_definition.acknowledge_action_title,
|
|
540
540
|
acknowledge_dp_additional: p.saw_prize_ui_definition.acknowledge_dp_additional,
|
|
541
541
|
acknowledge_action_title_additional: p.saw_prize_ui_definition.acknowledge_action_title_additional,
|
|
542
|
+
second_btn: p.saw_prize_ui_definition.second_btn,
|
|
543
|
+
second_btn_action_title: p.saw_prize_ui_definition.second_btn_action_title,
|
|
542
544
|
out_of_stock_message: p.saw_prize_ui_definition.out_of_stock_message,
|
|
543
545
|
pool: p.pool,
|
|
544
546
|
pool_initial: p.pool_initial,
|
|
@@ -1728,13 +1730,12 @@ var AchievementClaimPeriodTypeId;
|
|
|
1728
1730
|
AchievementClaimPeriodTypeId[AchievementClaimPeriodTypeId["ExactPeriod"] = 1] = "ExactPeriod";
|
|
1729
1731
|
})(AchievementClaimPeriodTypeId || (AchievementClaimPeriodTypeId = {}));
|
|
1730
1732
|
|
|
1733
|
+
// Consumer-facing types live in WSAPITypes.ts (`TClanTournamentPlayers`) — the
|
|
1734
|
+
// single source documented + emitted to docs. This transform maps the raw wire
|
|
1735
|
+
// shape onto it; do not re-declare a parallel result/player type here.
|
|
1731
1736
|
const clanTournamentPlayersTransform = response => {
|
|
1732
1737
|
return {
|
|
1733
|
-
|
|
1734
|
-
clan_public_meta: {
|
|
1735
|
-
name: response.clan_public_meta.name,
|
|
1736
|
-
image_url: response.clan_public_meta.image_url
|
|
1737
|
-
},
|
|
1738
|
+
tournament_instance_id: response.tournament_instance_id,
|
|
1738
1739
|
players: (response.players || []).map(p => ({
|
|
1739
1740
|
user_id: p.userId,
|
|
1740
1741
|
clean_ext_user_id: p.cleanExtUserId,
|
|
@@ -5002,16 +5003,13 @@ class WSAPITournaments extends WSAPIStore {
|
|
|
5002
5003
|
* polling cadence.
|
|
5003
5004
|
*
|
|
5004
5005
|
* **Returned shape**
|
|
5005
|
-
* `TClanTournamentPlayers` carries the
|
|
5006
|
-
* (`clan_id`, `clan_public_meta.name`, `clan_public_meta.image_url`)
|
|
5006
|
+
* `TClanTournamentPlayers` carries the `tournament_instance_id`
|
|
5007
5007
|
* alongside the `players[]` array — each entry has `position`,
|
|
5008
5008
|
* `scores`, `public_username`, `clean_ext_user_id`, `avatar_id`,
|
|
5009
5009
|
* `avatar_real_id`, the resolved `avatar_url`, `user_id`, and the
|
|
5010
|
-
* `is_me` flag identifying the current user's row. The
|
|
5011
|
-
*
|
|
5012
|
-
*
|
|
5013
|
-
* caller-side `ClanLeaderboardEntry` object, but they're available
|
|
5014
|
-
* for consumers that don't already have that context.
|
|
5010
|
+
* `is_me` flag identifying the current user's row. The response does
|
|
5011
|
+
* NOT echo the clan's identity — render the clan header from the
|
|
5012
|
+
* caller-side `ClanLeaderboardEntry` object you passed in.
|
|
5015
5013
|
*
|
|
5016
5014
|
* **Username display**: prefer `clean_ext_user_id` when set, falling
|
|
5017
5015
|
* back to `public_username`. The default Smartico UI uses
|