@smartico/public-api 0.0.404 → 0.0.408
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/SAWTemplateUI.d.ts +6 -2
- package/dist/Tournaments/GetClanTournamentPlayersResponse.d.ts +2 -10
- package/dist/WSAPI/WSAPITournaments.d.ts +4 -7
- package/dist/WSAPI/WSAPITypes.d.ts +12 -8
- package/dist/index.js +5 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +5 -12
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/classes/WSAPITournaments.md +4 -7
- package/docs/api/interfaces/GetClanTournamentPlayersResponse.md +2 -16
- package/docs/api/interfaces/SAWTemplate.md +16 -0
- package/docs/api/interfaces/SAWTemplateUI.md +6 -2
- package/docs/api/interfaces/TClanTournamentPlayers.md +24 -22
- package/docs/api/interfaces/TClanTournamentPlayersResult.md +2 -16
- package/docs/api/interfaces/TMiniGameTemplate.md +21 -0
- package/docs/capabilities/getClanTournamentPlayers.md +16 -11
- package/package.json +1 -1
- package/src/MiniGames/SAWTemplateUI.ts +6 -2
- package/src/Tournaments/GetClanTournamentPlayersResponse.ts +3 -9
- package/src/WSAPI/WSAPITournaments.ts +4 -7
- package/src/WSAPI/WSAPITypes.ts +12 -5
package/dist/index.modern.mjs
CHANGED
|
@@ -1730,11 +1730,7 @@ var AchievementClaimPeriodTypeId;
|
|
|
1730
1730
|
|
|
1731
1731
|
const clanTournamentPlayersTransform = response => {
|
|
1732
1732
|
return {
|
|
1733
|
-
|
|
1734
|
-
clan_public_meta: {
|
|
1735
|
-
name: response.clan_public_meta.name,
|
|
1736
|
-
image_url: response.clan_public_meta.image_url
|
|
1737
|
-
},
|
|
1733
|
+
tournament_instance_id: response.tournament_instance_id,
|
|
1738
1734
|
players: (response.players || []).map(p => ({
|
|
1739
1735
|
user_id: p.userId,
|
|
1740
1736
|
clean_ext_user_id: p.cleanExtUserId,
|
|
@@ -5002,16 +4998,13 @@ class WSAPITournaments extends WSAPIStore {
|
|
|
5002
4998
|
* polling cadence.
|
|
5003
4999
|
*
|
|
5004
5000
|
* **Returned shape**
|
|
5005
|
-
* `TClanTournamentPlayers` carries the
|
|
5006
|
-
* (`clan_id`, `clan_public_meta.name`, `clan_public_meta.image_url`)
|
|
5001
|
+
* `TClanTournamentPlayers` carries the `tournament_instance_id`
|
|
5007
5002
|
* alongside the `players[]` array — each entry has `position`,
|
|
5008
5003
|
* `scores`, `public_username`, `clean_ext_user_id`, `avatar_id`,
|
|
5009
5004
|
* `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.
|
|
5005
|
+
* `is_me` flag identifying the current user's row. The response does
|
|
5006
|
+
* NOT echo the clan's identity — render the clan header from the
|
|
5007
|
+
* caller-side `ClanLeaderboardEntry` object you passed in.
|
|
5015
5008
|
*
|
|
5016
5009
|
* **Username display**: prefer `clean_ext_user_id` when set, falling
|
|
5017
5010
|
* back to `public_username`. The default Smartico UI uses
|