@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
|
@@ -1038,12 +1038,14 @@ export interface TTournamentDetailed extends TTournament {
|
|
|
1038
1038
|
/** 1 = Fixed, 2 = Dynamic */
|
|
1039
1039
|
prize_type_id: number;
|
|
1040
1040
|
prize_pool_amount: number | null;
|
|
1041
|
+
prize_pool_currency_code: string | null;
|
|
1041
1042
|
activity_type_id: number | null;
|
|
1042
1043
|
details_json: Record<string, any>;
|
|
1043
1044
|
public_meta: {
|
|
1044
1045
|
name: string;
|
|
1045
1046
|
description: string;
|
|
1046
1047
|
image_url: string;
|
|
1048
|
+
prize_name?: string;
|
|
1047
1049
|
} | null;
|
|
1048
1050
|
tiers: {
|
|
1049
1051
|
player_place_from: number;
|
|
@@ -6,6 +6,9 @@ export interface ClanLeaderboardEntry {
|
|
|
6
6
|
totalScore: number;
|
|
7
7
|
memberCount: number;
|
|
8
8
|
}
|
|
9
|
+
export interface ClanPrizePublicMeta extends ClanPublicMeta {
|
|
10
|
+
prize_name?: string;
|
|
11
|
+
}
|
|
9
12
|
export interface ClanPrizeTier {
|
|
10
13
|
player_place_from: number;
|
|
11
14
|
player_place_to: number;
|
|
@@ -20,8 +23,9 @@ export interface ClanPrizeStructureEntry {
|
|
|
20
23
|
/** 1 = Fixed, 2 = Dynamic */
|
|
21
24
|
prize_type_id: number;
|
|
22
25
|
prize_pool_amount: number | null;
|
|
26
|
+
prize_pool_currency_code: string | null;
|
|
23
27
|
activity_type_id: number | null;
|
|
24
28
|
details_json: Record<string, any> | null;
|
|
25
|
-
public_meta:
|
|
29
|
+
public_meta: ClanPrizePublicMeta | null;
|
|
26
30
|
player_tiers: ClanPrizeTier[] | null;
|
|
27
31
|
}
|
|
@@ -470,12 +470,14 @@ export interface TTournamentDetailed extends TTournament {
|
|
|
470
470
|
/** 1 = Fixed, 2 = Dynamic */
|
|
471
471
|
prize_type_id: number;
|
|
472
472
|
prize_pool_amount: number | null;
|
|
473
|
+
prize_pool_currency_code: string | null;
|
|
473
474
|
activity_type_id: number | null;
|
|
474
475
|
details_json: Record<string, any>;
|
|
475
476
|
public_meta: {
|
|
476
477
|
name: string;
|
|
477
478
|
description: string;
|
|
478
479
|
image_url: string;
|
|
480
|
+
prize_name?: string;
|
|
479
481
|
} | null;
|
|
480
482
|
tiers: {
|
|
481
483
|
player_place_from: number;
|
package/dist/index.js
CHANGED
|
@@ -1967,12 +1967,14 @@ var tournamentInfoItemTransform = function tournamentInfoItemTransform(t) {
|
|
|
1967
1967
|
clan_place: entry.clan_place,
|
|
1968
1968
|
prize_type_id: entry.prize_type_id,
|
|
1969
1969
|
prize_pool_amount: entry.prize_pool_amount,
|
|
1970
|
+
prize_pool_currency_code: entry.prize_pool_currency_code,
|
|
1970
1971
|
activity_type_id: entry.activity_type_id,
|
|
1971
1972
|
details_json: entry.details_json,
|
|
1972
1973
|
public_meta: entry.public_meta ? {
|
|
1973
1974
|
name: entry.public_meta.name,
|
|
1974
1975
|
description: entry.public_meta.description,
|
|
1975
|
-
image_url: entry.public_meta.image_url
|
|
1976
|
+
image_url: entry.public_meta.image_url,
|
|
1977
|
+
prize_name: entry.public_meta.prize_name
|
|
1976
1978
|
} : null,
|
|
1977
1979
|
tiers: (entry.player_tiers || []).map(function (tier) {
|
|
1978
1980
|
return {
|