@smartico/public-api 0.0.377 → 0.0.379
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 +1 -0
- package/dist/Tournaments/TournamentClan.d.ts +4 -1
- package/dist/WSAPI/WSAPITypes.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +2 -1
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SmarticoLib/index.ts +1 -1
- package/src/Tournaments/GetTournamentInfoResponse.ts +6 -1
- package/src/Tournaments/TournamentClan.ts +5 -1
- package/src/WSAPI/WSAPITypes.ts +1 -1
package/package.json
CHANGED
package/src/SmarticoLib/index.ts
CHANGED
|
@@ -1056,7 +1056,7 @@ export interface TTournamentDetailed extends TTournament {
|
|
|
1056
1056
|
prize_pool_currency_code: string | null;
|
|
1057
1057
|
activity_type_id: number | null;
|
|
1058
1058
|
details_json: Record<string, any>;
|
|
1059
|
-
public_meta: { name: string; description: string; image_url: string } | null;
|
|
1059
|
+
public_meta: { name: string; description: string; image_url: string; prize_name?: string } | null;
|
|
1060
1060
|
tiers: {
|
|
1061
1061
|
player_place_from: number;
|
|
1062
1062
|
player_place_to: number;
|
|
@@ -85,7 +85,12 @@ export const tournamentInfoItemTransform = (t: GetTournamentInfoResponse): TTour
|
|
|
85
85
|
activity_type_id: entry.activity_type_id,
|
|
86
86
|
details_json: entry.details_json,
|
|
87
87
|
public_meta: entry.public_meta
|
|
88
|
-
? {
|
|
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
|
+
}
|
|
89
94
|
: null,
|
|
90
95
|
tiers: (entry.player_tiers || []).map((tier) => ({
|
|
91
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;
|
|
@@ -26,6 +30,6 @@ export interface ClanPrizeStructureEntry {
|
|
|
26
30
|
prize_pool_currency_code: string | null;
|
|
27
31
|
activity_type_id: number | null;
|
|
28
32
|
details_json: Record<string, any> | null;
|
|
29
|
-
public_meta:
|
|
33
|
+
public_meta: ClanPrizePublicMeta | null;
|
|
30
34
|
player_tiers: ClanPrizeTier[] | null;
|
|
31
35
|
}
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -505,7 +505,7 @@ export interface TTournamentDetailed extends TTournament {
|
|
|
505
505
|
prize_pool_currency_code: string | null;
|
|
506
506
|
activity_type_id: number | null;
|
|
507
507
|
details_json: Record<string, any>;
|
|
508
|
-
public_meta: { name: string; description: string; image_url: string } | null;
|
|
508
|
+
public_meta: { name: string; description: string; image_url: string; prize_name?: string } | null;
|
|
509
509
|
tiers: {
|
|
510
510
|
player_place_from: number;
|
|
511
511
|
player_place_to: number;
|