@smartico/public-api 0.0.376 → 0.0.378
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/SmarticoLib/index.d.ts +2 -0
- package/dist/Tournaments/TournamentClan.d.ts +5 -1
- package/dist/WSAPI/WSAPITypes.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +3 -1
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SmarticoLib/index.ts +3 -2
- package/src/Tournaments/GetTournamentInfoResponse.ts +7 -1
- package/src/Tournaments/TournamentClan.ts +6 -1
- package/src/WSAPI/WSAPITypes.ts +2 -1
package/package.json
CHANGED
package/src/SmarticoLib/index.ts
CHANGED
|
@@ -1049,13 +1049,14 @@ export interface TTournamentDetailed extends TTournament {
|
|
|
1049
1049
|
user_score_in_clan?: number | null;
|
|
1050
1050
|
/** Per-clan prize structure; null for non-clan tournaments */
|
|
1051
1051
|
clan_prize_structure?: {
|
|
1052
|
-
|
|
1052
|
+
clan_place: number;
|
|
1053
1053
|
/** 1 = Fixed, 2 = Dynamic */
|
|
1054
1054
|
prize_type_id: number;
|
|
1055
1055
|
prize_pool_amount: number | null;
|
|
1056
|
+
prize_pool_currency_code: string | null;
|
|
1056
1057
|
activity_type_id: number | null;
|
|
1057
1058
|
details_json: Record<string, any>;
|
|
1058
|
-
public_meta: { name: string; description: string; image_url: string } | null;
|
|
1059
|
+
public_meta: { name: string; description: string; image_url: string; prize_name?: string } | null;
|
|
1059
1060
|
tiers: {
|
|
1060
1061
|
player_place_from: number;
|
|
1061
1062
|
player_place_to: number;
|
|
@@ -81,10 +81,16 @@ export const tournamentInfoItemTransform = (t: GetTournamentInfoResponse): TTour
|
|
|
81
81
|
clan_place: entry.clan_place,
|
|
82
82
|
prize_type_id: entry.prize_type_id,
|
|
83
83
|
prize_pool_amount: entry.prize_pool_amount,
|
|
84
|
+
prize_pool_currency_code: entry.prize_pool_currency_code,
|
|
84
85
|
activity_type_id: entry.activity_type_id,
|
|
85
86
|
details_json: entry.details_json,
|
|
86
87
|
public_meta: entry.public_meta
|
|
87
|
-
? {
|
|
88
|
+
? {
|
|
89
|
+
name: entry.public_meta.name,
|
|
90
|
+
description: entry.public_meta.description,
|
|
91
|
+
image_url: entry.public_meta.image_url,
|
|
92
|
+
prize_name: entry.public_meta.prize_name,
|
|
93
|
+
}
|
|
88
94
|
: null,
|
|
89
95
|
tiers: (entry.player_tiers || []).map((tier) => ({
|
|
90
96
|
player_place_from: tier.player_place_from,
|
|
@@ -8,6 +8,10 @@ export interface ClanLeaderboardEntry {
|
|
|
8
8
|
memberCount: number;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
export interface ClanPrizePublicMeta extends ClanPublicMeta {
|
|
12
|
+
prize_name?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
11
15
|
export interface ClanPrizeTier {
|
|
12
16
|
player_place_from: number;
|
|
13
17
|
player_place_to: number;
|
|
@@ -23,8 +27,9 @@ export interface ClanPrizeStructureEntry {
|
|
|
23
27
|
/** 1 = Fixed, 2 = Dynamic */
|
|
24
28
|
prize_type_id: number;
|
|
25
29
|
prize_pool_amount: number | null;
|
|
30
|
+
prize_pool_currency_code: string | null;
|
|
26
31
|
activity_type_id: number | null;
|
|
27
32
|
details_json: Record<string, any> | null;
|
|
28
|
-
public_meta:
|
|
33
|
+
public_meta: ClanPrizePublicMeta | null;
|
|
29
34
|
player_tiers: ClanPrizeTier[] | null;
|
|
30
35
|
}
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -502,9 +502,10 @@ export interface TTournamentDetailed extends TTournament {
|
|
|
502
502
|
/** 1 = Fixed, 2 = Dynamic */
|
|
503
503
|
prize_type_id: number;
|
|
504
504
|
prize_pool_amount: number | null;
|
|
505
|
+
prize_pool_currency_code: string | null;
|
|
505
506
|
activity_type_id: number | null;
|
|
506
507
|
details_json: Record<string, any>;
|
|
507
|
-
public_meta: { name: string; description: string; image_url: string } | null;
|
|
508
|
+
public_meta: { name: string; description: string; image_url: string; prize_name?: string } | null;
|
|
508
509
|
tiers: {
|
|
509
510
|
player_place_from: number;
|
|
510
511
|
player_place_to: number;
|