@smartico/public-api 0.0.408 → 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 +2 -16
- package/dist/WSAPI/WSAPITypes.d.ts +4 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +5 -0
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/README.md +0 -2
- package/docs/api/functions/clanTournamentPlayersTransform.md +2 -2
- package/docs/api/interfaces/GamePickEvent.md +6 -1
- 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/package.json +2 -2
- package/src/GamePick/GamePickTypes.ts +6 -1
- package/src/MiniGames/SAWGetTemplatesResponse.ts +2 -0
- package/src/Tournaments/GetClanTournamentPlayersResponse.ts +5 -18
- package/src/WSAPI/WSAPITypes.ts +4 -0
- package/docs/api/interfaces/TClanTournamentPlayer.md +0 -55
- package/docs/api/interfaces/TClanTournamentPlayersResult.md +0 -13
|
@@ -229,7 +229,12 @@ export interface GamePickEvent {
|
|
|
229
229
|
resolution_score?: number;
|
|
230
230
|
/** Whether this event is still accepting predictions */
|
|
231
231
|
is_open_for_bets?: boolean;
|
|
232
|
-
/**
|
|
232
|
+
/** Per-outcome numbers keyed by the outcome value (`'1'` / `'x'` / `'2'`, `'yes'` / `'no'`, …).
|
|
233
|
+
* Dual-purpose by event type:
|
|
234
|
+
* - Sports / MatchX: decimal **betting odds** (e.g. `{ "1": 2.45, "x": 3.26, "2": 3.01 }`).
|
|
235
|
+
* - Quiz: when the round's `show_users_preference` is `true`, these are aggregated
|
|
236
|
+
* **user-preference percentages** — what other users predicted, summing to ~100
|
|
237
|
+
* (e.g. `{ "1": 33, "x": 25, "2": 42 }`). Render as the "what others predicted" bar. */
|
|
233
238
|
odds_details?: {
|
|
234
239
|
odd_value: {
|
|
235
240
|
[key: string]: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
2
|
+
import { TClanTournamentPlayers } from '../WSAPI/WSAPITypes';
|
|
2
3
|
export interface ClanTournamentPlayerRaw {
|
|
3
4
|
userId: number;
|
|
4
5
|
cleanExtUserId: string;
|
|
@@ -16,19 +17,4 @@ export interface GetClanTournamentPlayersResponse extends ProtocolResponse {
|
|
|
16
17
|
tournament_instance_id: number;
|
|
17
18
|
players: ClanTournamentPlayerRaw[];
|
|
18
19
|
}
|
|
19
|
-
export
|
|
20
|
-
user_id: number;
|
|
21
|
-
clean_ext_user_id: string;
|
|
22
|
-
public_username: string;
|
|
23
|
-
avatar_id: string;
|
|
24
|
-
avatar_real_id: number;
|
|
25
|
-
avatar_url?: string;
|
|
26
|
-
position: number;
|
|
27
|
-
scores: number;
|
|
28
|
-
is_me: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface TClanTournamentPlayersResult {
|
|
31
|
-
tournament_instance_id: number;
|
|
32
|
-
players: TClanTournamentPlayer[];
|
|
33
|
-
}
|
|
34
|
-
export declare const clanTournamentPlayersTransform: (response: GetClanTournamentPlayersResponse) => TClanTournamentPlayersResult;
|
|
20
|
+
export declare const clanTournamentPlayersTransform: (response: GetClanTournamentPlayersResponse) => TClanTournamentPlayers;
|
|
@@ -50,6 +50,10 @@ export interface TMiniGamePrize {
|
|
|
50
50
|
acknowledge_dp_additional?: string;
|
|
51
51
|
/** The name of the action button in modal pop-up (additional) */
|
|
52
52
|
acknowledge_action_title_additional?: string;
|
|
53
|
+
/** Deep link that will trigger some action in modal pop-up (second button) */
|
|
54
|
+
second_btn?: string;
|
|
55
|
+
/** The name of the action button in modal pop-up (second button) */
|
|
56
|
+
second_btn_action_title?: string;
|
|
53
57
|
/** Message when the prize pool is empty for that specific prize */
|
|
54
58
|
out_of_stock_message?: string;
|
|
55
59
|
/** Number of items in stock */
|
package/dist/index.js
CHANGED
|
@@ -542,6 +542,8 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
|
|
|
542
542
|
acknowledge_action_title: p.saw_prize_ui_definition.acknowledge_action_title,
|
|
543
543
|
acknowledge_dp_additional: p.saw_prize_ui_definition.acknowledge_dp_additional,
|
|
544
544
|
acknowledge_action_title_additional: p.saw_prize_ui_definition.acknowledge_action_title_additional,
|
|
545
|
+
second_btn: p.saw_prize_ui_definition.second_btn,
|
|
546
|
+
second_btn_action_title: p.saw_prize_ui_definition.second_btn_action_title,
|
|
545
547
|
out_of_stock_message: p.saw_prize_ui_definition.out_of_stock_message,
|
|
546
548
|
pool: p.pool,
|
|
547
549
|
pool_initial: p.pool_initial,
|
|
@@ -1760,6 +1762,9 @@ exports.AchievementClaimPeriodTypeId = void 0;
|
|
|
1760
1762
|
AchievementClaimPeriodTypeId[AchievementClaimPeriodTypeId["ExactPeriod"] = 1] = "ExactPeriod";
|
|
1761
1763
|
})(exports.AchievementClaimPeriodTypeId || (exports.AchievementClaimPeriodTypeId = {}));
|
|
1762
1764
|
|
|
1765
|
+
// Consumer-facing types live in WSAPITypes.ts (`TClanTournamentPlayers`) — the
|
|
1766
|
+
// single source documented + emitted to docs. This transform maps the raw wire
|
|
1767
|
+
// shape onto it; do not re-declare a parallel result/player type here.
|
|
1763
1768
|
var clanTournamentPlayersTransform = function clanTournamentPlayersTransform(response) {
|
|
1764
1769
|
return {
|
|
1765
1770
|
tournament_instance_id: response.tournament_instance_id,
|