@blizzard-api/sc2 3.0.1 → 3.1.1
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/account/index.d.ts +0 -1
- package/dist/account/index.js.map +1 -1
- package/dist/{index-E_sUhfIc.d.ts → index-BBcAaWfH.d.ts} +104 -5
- package/dist/{index-D4dz9fHQ.d.ts → index-BawvMD5r.d.ts} +1 -2
- package/dist/{index-DShZYxRE.d.ts → index-BtQ6VqOV.d.ts} +4 -5
- package/dist/{index-C6XacDRF.d.ts → index-Dxs7pfrO.d.ts} +56 -9
- package/dist/index.d.ts +5 -6
- package/dist/index.js.map +1 -1
- package/dist/ladder/index.d.ts +1 -1
- package/dist/ladder/index.js +1 -1
- package/dist/ladder/index.js.map +1 -1
- package/dist/league/index.d.ts +1 -1
- package/dist/league/index.js.map +1 -1
- package/dist/legacy/index.d.ts +1 -1
- package/dist/legacy/index.js +1 -1
- package/dist/legacy/index.js.map +1 -1
- package/dist/profile/index.d.ts +1 -1
- package/dist/profile/index.js +1 -1
- package/dist/profile/index.js.map +1 -1
- package/dist/{regions-Dk4G9ABq.js → regions-WKmRG-YC.js} +1 -1
- package/dist/{regions-Dk4G9ABq.js.map → regions-WKmRG-YC.js.map} +1 -1
- package/dist/{regions-C2THJaaU.d.ts → regions-pSiIWRj6.d.ts} +1 -1
- package/package.json +4 -3
package/dist/account/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/account/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\n\n/**\n * Returns the player information for the specified account ID.\n * @param accountId The account ID\n * @returns The player resource. See {@link Resource}.\n */\nexport function player(accountId: string): Resource<Array<unknown>> {\n return {\n path: `/sc2/player/${accountId}`,\n };\n}\n"],"mappings":";;;;;;AAOA,SAAgB,OAAO,WAA6C;CAClE,OAAO,EACL,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/account/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\n\n/**\n * Returns the player information for the specified account ID.\n * @param accountId The account ID\n * @returns The player resource. See {@link Resource}.\n */\nexport function player(accountId: string): Resource<Array<unknown>> {\n return {\n path: `/sc2/player/${accountId}`,\n };\n}\n"],"mappings":";;;;;;AAOA,SAAgB,OAAO,WAA6C;CAClE,OAAO,EACL,MAAM,eAAe,YACvB;AACF"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as StarcraftRegion } from "./regions-
|
|
1
|
+
import { t as StarcraftRegion } from "./regions-pSiIWRj6.js";
|
|
2
2
|
import { Resource } from "@blizzard-api/core";
|
|
3
|
-
|
|
4
3
|
//#region src/profile/types.d.ts
|
|
5
4
|
interface LadderResponse {
|
|
6
5
|
allLadderMemberships: Array<unknown>;
|
|
@@ -20,6 +19,17 @@ interface MetadataResponse {
|
|
|
20
19
|
realmId: number;
|
|
21
20
|
regionId: number;
|
|
22
21
|
}
|
|
22
|
+
interface ProfileResponse {
|
|
23
|
+
achievementShowcase: Array<unknown>;
|
|
24
|
+
campaign: ProfileCampaigns;
|
|
25
|
+
career: ProfileCareer;
|
|
26
|
+
categoryPointProgress: Array<ProfileCategoryPointProgress>;
|
|
27
|
+
earnedAchievements: Array<ProfileEarnedAchiements>;
|
|
28
|
+
earnedRewards: Array<ProfileEarnedRewards>;
|
|
29
|
+
snapshot: ProfileSnapshot;
|
|
30
|
+
summary: ProfileSummary;
|
|
31
|
+
swarmLevels: ProfileSwarmLevels;
|
|
32
|
+
}
|
|
23
33
|
interface StaticProfileResponse {
|
|
24
34
|
achievements: Array<Achievement>;
|
|
25
35
|
categories: Array<Category>;
|
|
@@ -59,6 +69,89 @@ interface Criterion {
|
|
|
59
69
|
necessaryQuantity: number;
|
|
60
70
|
uiOrderHint: number;
|
|
61
71
|
}
|
|
72
|
+
interface ProfileCampaigns {
|
|
73
|
+
difficultyCompleted: {
|
|
74
|
+
'heart-of-the-swarm': string;
|
|
75
|
+
'legacy-of-the-void': string;
|
|
76
|
+
'wings-of-liberty': string;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
interface ProfileCareer {
|
|
80
|
+
best1v1Finish: ProfileCareerFinish;
|
|
81
|
+
bestTeamFinish: ProfileCareerFinish;
|
|
82
|
+
current1v1LeagueName?: null | string;
|
|
83
|
+
currentBestTeamLeagueName?: null | string;
|
|
84
|
+
protossWins: number;
|
|
85
|
+
terranWins: number;
|
|
86
|
+
totalCareerGames: number;
|
|
87
|
+
totalGamesThisSeason: number;
|
|
88
|
+
zergWins: number;
|
|
89
|
+
}
|
|
90
|
+
interface ProfileCareerFinish {
|
|
91
|
+
leagueName: string;
|
|
92
|
+
timesAchieved: number;
|
|
93
|
+
}
|
|
94
|
+
interface ProfileCategoryPointProgress {
|
|
95
|
+
categoryId: string;
|
|
96
|
+
pointsEarned: number;
|
|
97
|
+
}
|
|
98
|
+
interface ProfileEarnedAchiements {
|
|
99
|
+
achievementId: string;
|
|
100
|
+
completionDate: number;
|
|
101
|
+
criteria: Array<ProfileEarnedAchievementsCriteria>;
|
|
102
|
+
inProgress: boolean;
|
|
103
|
+
isComplete: boolean;
|
|
104
|
+
nextProgressEarnedQuantity?: number;
|
|
105
|
+
nextProgressRequiredQuantity?: number;
|
|
106
|
+
numCompletedAchievementsInSeries: number;
|
|
107
|
+
totalAchievementsInSeries: number;
|
|
108
|
+
}
|
|
109
|
+
interface ProfileEarnedAchievementsCriteria {
|
|
110
|
+
criterionId: string;
|
|
111
|
+
earned?: {
|
|
112
|
+
quantity: number;
|
|
113
|
+
startTime: number;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
interface ProfileEarnedRewards {
|
|
117
|
+
achievementId?: string;
|
|
118
|
+
category?: string;
|
|
119
|
+
rewardId: string;
|
|
120
|
+
selected: boolean;
|
|
121
|
+
}
|
|
122
|
+
interface ProfileSeasonSnapshot {
|
|
123
|
+
'1v1': SeasonSnapshot;
|
|
124
|
+
'2v2': SeasonSnapshot;
|
|
125
|
+
'3v3': SeasonSnapshot;
|
|
126
|
+
'4v4': SeasonSnapshot;
|
|
127
|
+
Archon: SeasonSnapshot;
|
|
128
|
+
}
|
|
129
|
+
interface ProfileSnapshot {
|
|
130
|
+
seasonSnapshot: ProfileSeasonSnapshot;
|
|
131
|
+
totalRankedSeasonGamesPlayed: number;
|
|
132
|
+
}
|
|
133
|
+
interface ProfileSummary {
|
|
134
|
+
decalProtoss: string;
|
|
135
|
+
decalTerran: string;
|
|
136
|
+
decalZerg: string;
|
|
137
|
+
displayName: string;
|
|
138
|
+
id: string;
|
|
139
|
+
portrait: string;
|
|
140
|
+
realm: number;
|
|
141
|
+
totalAchievementPoints: number;
|
|
142
|
+
totalSwarmLevel: number;
|
|
143
|
+
}
|
|
144
|
+
interface ProfileSwarmLevelByRace {
|
|
145
|
+
currentLevelPoints: number;
|
|
146
|
+
level: number;
|
|
147
|
+
maxLevelPoints: number;
|
|
148
|
+
}
|
|
149
|
+
interface ProfileSwarmLevels {
|
|
150
|
+
level: number;
|
|
151
|
+
protoss: ProfileSwarmLevelByRace;
|
|
152
|
+
terran: ProfileSwarmLevelByRace;
|
|
153
|
+
zerg: ProfileSwarmLevelByRace;
|
|
154
|
+
}
|
|
62
155
|
interface Reward {
|
|
63
156
|
achievementId?: string;
|
|
64
157
|
command?: '/dance';
|
|
@@ -70,6 +163,12 @@ interface Reward {
|
|
|
70
163
|
uiOrderHint: number;
|
|
71
164
|
unlockableType: string;
|
|
72
165
|
}
|
|
166
|
+
interface SeasonSnapshot {
|
|
167
|
+
leagueName: null | string;
|
|
168
|
+
rank: number;
|
|
169
|
+
totalGames: number;
|
|
170
|
+
totalWins: number;
|
|
171
|
+
}
|
|
73
172
|
//#endregion
|
|
74
173
|
//#region src/profile/index.d.ts
|
|
75
174
|
/**
|
|
@@ -104,7 +203,7 @@ declare function metadata(regionId: StarcraftRegion, realmId: 1 | 2, profileId:
|
|
|
104
203
|
* @param profileId The ID of the profile.
|
|
105
204
|
* @returns A resource representing the profile. See {@link MetadataResponse}
|
|
106
205
|
*/
|
|
107
|
-
declare function profile(regionId: StarcraftRegion, realmId: 1 | 2, profileId: number): Resource<
|
|
206
|
+
declare function profile(regionId: StarcraftRegion, realmId: 1 | 2, profileId: number): Resource<ProfileResponse>;
|
|
108
207
|
/**
|
|
109
208
|
*
|
|
110
209
|
* @param regionId The region ID for Starcraft.
|
|
@@ -112,5 +211,5 @@ declare function profile(regionId: StarcraftRegion, realmId: 1 | 2, profileId: n
|
|
|
112
211
|
*/
|
|
113
212
|
declare function staticProfile(regionId: StarcraftRegion): Resource<StaticProfileResponse>;
|
|
114
213
|
//#endregion
|
|
115
|
-
export { staticProfile as a, MetadataResponse as c, profile as i,
|
|
116
|
-
//# sourceMappingURL=index-
|
|
214
|
+
export { staticProfile as a, MetadataResponse as c, profile as i, ProfileResponse as l, ladderSummary as n, LadderResponse as o, metadata as r, LadderSummaryResponse as s, ladder as t, StaticProfileResponse as u };
|
|
215
|
+
//# sourceMappingURL=index-BBcAaWfH.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
-
|
|
3
2
|
//#region src/league/types.d.ts
|
|
4
3
|
interface LeagueDataResponse extends ResponseBase {
|
|
5
4
|
key: Key;
|
|
@@ -36,4 +35,4 @@ interface Tier {
|
|
|
36
35
|
declare function getLeagueData(seasonId: string, queueId: StarcraftLeagueQueue, teamType: StarcraftLeagueTeamType, leagueId: StarcraftLeagueId): Resource<LeagueDataResponse>;
|
|
37
36
|
//#endregion
|
|
38
37
|
export { StarcraftLeagueTeamType as a, StarcraftLeagueQueue as i, LeagueDataResponse as n, StarcraftLeagueId as r, getLeagueData as t };
|
|
39
|
-
//# sourceMappingURL=index-
|
|
38
|
+
//# sourceMappingURL=index-BawvMD5r.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as StarcraftRegion } from "./regions-
|
|
1
|
+
import { t as StarcraftRegion } from "./regions-pSiIWRj6.js";
|
|
2
2
|
import { Resource } from "@blizzard-api/core";
|
|
3
|
-
|
|
4
3
|
//#region src/ladder/types.d.ts
|
|
5
4
|
interface GrandmasterLeaderboardResponse {
|
|
6
5
|
ladderTeams: Array<LadderTeam>;
|
|
@@ -15,7 +14,7 @@ interface SeasonResponse {
|
|
|
15
14
|
interface LadderTeam {
|
|
16
15
|
joinTimestamp: number;
|
|
17
16
|
losses: number;
|
|
18
|
-
mmr
|
|
17
|
+
mmr?: number;
|
|
19
18
|
points: number;
|
|
20
19
|
previousRank: number;
|
|
21
20
|
teamMembers: Array<TeamMember>;
|
|
@@ -24,7 +23,7 @@ interface LadderTeam {
|
|
|
24
23
|
interface TeamMember {
|
|
25
24
|
clanTag?: string;
|
|
26
25
|
displayName: string;
|
|
27
|
-
favoriteRace
|
|
26
|
+
favoriteRace?: 'protoss' | 'random' | 'terran' | 'zerg';
|
|
28
27
|
id: string;
|
|
29
28
|
realm: number;
|
|
30
29
|
region: number;
|
|
@@ -45,4 +44,4 @@ declare function grandmasterLeaderboard(regionId: StarcraftRegion): Resource<Gra
|
|
|
45
44
|
declare function season(regionId: StarcraftRegion): Resource<SeasonResponse>;
|
|
46
45
|
//#endregion
|
|
47
46
|
export { SeasonResponse as i, season as n, GrandmasterLeaderboardResponse as r, grandmasterLeaderboard as t };
|
|
48
|
-
//# sourceMappingURL=index-
|
|
47
|
+
//# sourceMappingURL=index-BtQ6VqOV.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as StarcraftRegion } from "./regions-
|
|
1
|
+
import { t as StarcraftRegion } from "./regions-pSiIWRj6.js";
|
|
2
2
|
import { Resource } from "@blizzard-api/core";
|
|
3
|
-
|
|
4
3
|
//#region src/legacy/types.d.ts
|
|
5
4
|
interface LegacyAchievementsResponse {
|
|
6
5
|
achievements: Array<Achievement>;
|
|
@@ -8,7 +7,7 @@ interface LegacyAchievementsResponse {
|
|
|
8
7
|
}
|
|
9
8
|
interface LegacyLaddersResponse {
|
|
10
9
|
currentSeason: Array<unknown>;
|
|
11
|
-
previousSeason: Array<
|
|
10
|
+
previousSeason: Array<LegacySeason>;
|
|
12
11
|
showcasePlacement: Array<unknown>;
|
|
13
12
|
}
|
|
14
13
|
interface LegacyMatchHistoryResponse {
|
|
@@ -37,6 +36,9 @@ interface LegacyRewardsResponse {
|
|
|
37
36
|
terranDecals: Array<Animation>;
|
|
38
37
|
zergDecals: Array<Animation>;
|
|
39
38
|
}
|
|
39
|
+
interface SingleLegacyLadderResponse {
|
|
40
|
+
ladderMembers: Array<LegacyLadderMember>;
|
|
41
|
+
}
|
|
40
42
|
interface Achievement {
|
|
41
43
|
achievementId: string;
|
|
42
44
|
categoryId: string;
|
|
@@ -62,6 +64,7 @@ interface Animation {
|
|
|
62
64
|
}
|
|
63
65
|
interface Campaign {
|
|
64
66
|
hots: string;
|
|
67
|
+
lotv: string;
|
|
65
68
|
wol: string;
|
|
66
69
|
}
|
|
67
70
|
interface Career {
|
|
@@ -93,12 +96,56 @@ interface Icon {
|
|
|
93
96
|
x: number;
|
|
94
97
|
y: number;
|
|
95
98
|
}
|
|
99
|
+
interface LegacyLadderMember {
|
|
100
|
+
character: LegacyLadderMemberCharacter;
|
|
101
|
+
favoriteRaceP1: 'PROTOSS' | 'RANDOM' | 'TERRAN' | 'ZERG';
|
|
102
|
+
highestRank: number;
|
|
103
|
+
joinTimestamp: number;
|
|
104
|
+
losses: number;
|
|
105
|
+
points: number;
|
|
106
|
+
previousRank: number;
|
|
107
|
+
wins: number;
|
|
108
|
+
}
|
|
109
|
+
interface LegacyLadderMemberCharacter {
|
|
110
|
+
clanName: string;
|
|
111
|
+
clanTag: string;
|
|
112
|
+
displayName: string;
|
|
113
|
+
id: string;
|
|
114
|
+
profilePath: string;
|
|
115
|
+
realm: number;
|
|
116
|
+
region: number;
|
|
117
|
+
}
|
|
118
|
+
interface LegacySeason {
|
|
119
|
+
characters: Array<LegacySeasonCharacter>;
|
|
120
|
+
ladder: Array<LegacySeasonLadder>;
|
|
121
|
+
nonRanked: Array<unknown>;
|
|
122
|
+
}
|
|
123
|
+
interface LegacySeasonCharacter {
|
|
124
|
+
clanName: string;
|
|
125
|
+
clanTag: string;
|
|
126
|
+
displayName: string;
|
|
127
|
+
id: string;
|
|
128
|
+
profilePath: string;
|
|
129
|
+
realm: number;
|
|
130
|
+
region: number;
|
|
131
|
+
}
|
|
132
|
+
interface LegacySeasonLadder {
|
|
133
|
+
division: number;
|
|
134
|
+
ladderId: string;
|
|
135
|
+
ladderName: string;
|
|
136
|
+
league: string;
|
|
137
|
+
losses: number;
|
|
138
|
+
matchMakingQueue: string;
|
|
139
|
+
rank: number;
|
|
140
|
+
showcase: false;
|
|
141
|
+
wins: number;
|
|
142
|
+
}
|
|
96
143
|
interface Match {
|
|
97
144
|
date: number;
|
|
98
|
-
decision:
|
|
145
|
+
decision: string;
|
|
99
146
|
map: string;
|
|
100
|
-
speed:
|
|
101
|
-
type:
|
|
147
|
+
speed: string;
|
|
148
|
+
type: string;
|
|
102
149
|
}
|
|
103
150
|
interface Points {
|
|
104
151
|
categoryPoints: Record<string, number>;
|
|
@@ -145,7 +192,7 @@ declare function legacyAchievements(regionId: StarcraftRegion): Resource<LegacyA
|
|
|
145
192
|
* @param ladderId The ID of the ladder.
|
|
146
193
|
* @returns A resource representing the ladder. See {@link LadderResponse}
|
|
147
194
|
*/
|
|
148
|
-
declare function legacyLadder(regionId: StarcraftRegion, ladderId: number): Resource<
|
|
195
|
+
declare function legacyLadder(regionId: StarcraftRegion, ladderId: number): Resource<LegacyLaddersResponse>;
|
|
149
196
|
/**
|
|
150
197
|
* Returns the ladders for the specified profile.
|
|
151
198
|
* @param regionId The region ID for Starcraft.
|
|
@@ -177,5 +224,5 @@ declare function legacyProfile(regionId: StarcraftRegion, realmId: 1 | 2, profil
|
|
|
177
224
|
*/
|
|
178
225
|
declare function legacyRewards(regionId: StarcraftRegion): Resource<LegacyRewardsResponse>;
|
|
179
226
|
//#endregion
|
|
180
|
-
export { legacyProfile as a, LegacyLaddersResponse as c, LegacyRewardsResponse as d, legacyMatchHistory as i, LegacyMatchHistoryResponse as l, legacyLadder as n, legacyRewards as o, legacyLadders as r, LegacyAchievementsResponse as s, legacyAchievements as t, LegacyProfileResponse as u };
|
|
181
|
-
//# sourceMappingURL=index-
|
|
227
|
+
export { legacyProfile as a, LegacyLaddersResponse as c, LegacyRewardsResponse as d, SingleLegacyLadderResponse as f, legacyMatchHistory as i, LegacyMatchHistoryResponse as l, legacyLadder as n, legacyRewards as o, legacyLadders as r, LegacyAchievementsResponse as s, legacyAchievements as t, LegacyProfileResponse as u };
|
|
228
|
+
//# sourceMappingURL=index-Dxs7pfrO.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { player } from "./account/index.js";
|
|
2
|
-
import { i as SeasonResponse, n as season, r as GrandmasterLeaderboardResponse, t as grandmasterLeaderboard } from "./index-
|
|
3
|
-
import { a as StarcraftLeagueTeamType, i as StarcraftLeagueQueue, n as LeagueDataResponse, r as StarcraftLeagueId, t as getLeagueData } from "./index-
|
|
4
|
-
import { a as legacyProfile, c as LegacyLaddersResponse, d as LegacyRewardsResponse, i as legacyMatchHistory, l as LegacyMatchHistoryResponse, n as legacyLadder, o as legacyRewards, r as legacyLadders, s as LegacyAchievementsResponse, t as legacyAchievements, u as LegacyProfileResponse } from "./index-
|
|
5
|
-
import { a as staticProfile, c as MetadataResponse, i as profile, l as
|
|
6
|
-
|
|
2
|
+
import { i as SeasonResponse, n as season, r as GrandmasterLeaderboardResponse, t as grandmasterLeaderboard } from "./index-BtQ6VqOV.js";
|
|
3
|
+
import { a as StarcraftLeagueTeamType, i as StarcraftLeagueQueue, n as LeagueDataResponse, r as StarcraftLeagueId, t as getLeagueData } from "./index-BawvMD5r.js";
|
|
4
|
+
import { a as legacyProfile, c as LegacyLaddersResponse, d as LegacyRewardsResponse, f as SingleLegacyLadderResponse, i as legacyMatchHistory, l as LegacyMatchHistoryResponse, n as legacyLadder, o as legacyRewards, r as legacyLadders, s as LegacyAchievementsResponse, t as legacyAchievements, u as LegacyProfileResponse } from "./index-Dxs7pfrO.js";
|
|
5
|
+
import { a as staticProfile, c as MetadataResponse, i as profile, l as ProfileResponse, n as ladderSummary, o as LadderResponse, r as metadata, s as LadderSummaryResponse, t as ladder, u as StaticProfileResponse } from "./index-BBcAaWfH.js";
|
|
7
6
|
//#region src/index.d.ts
|
|
8
7
|
declare const sc2: {
|
|
9
8
|
player: typeof player;
|
|
@@ -23,5 +22,5 @@ declare const sc2: {
|
|
|
23
22
|
staticProfile: typeof staticProfile;
|
|
24
23
|
};
|
|
25
24
|
//#endregion
|
|
26
|
-
export { GrandmasterLeaderboardResponse, LadderResponse, LadderSummaryResponse, LeagueDataResponse, LegacyAchievementsResponse, LegacyLaddersResponse, LegacyMatchHistoryResponse, LegacyProfileResponse, LegacyRewardsResponse, MetadataResponse, SeasonResponse, StarcraftLeagueId, StarcraftLeagueQueue, StarcraftLeagueTeamType, StaticProfileResponse, sc2 as default, sc2, getLeagueData, grandmasterLeaderboard, ladder, ladderSummary, legacyAchievements, legacyLadder, legacyLadders, legacyMatchHistory, legacyProfile, legacyRewards, metadata, player, profile, season, staticProfile };
|
|
25
|
+
export { type GrandmasterLeaderboardResponse, type LadderResponse, type LadderSummaryResponse, type LeagueDataResponse, type LegacyAchievementsResponse, type LegacyLaddersResponse, type LegacyMatchHistoryResponse, type LegacyProfileResponse, type LegacyRewardsResponse, type MetadataResponse, type ProfileResponse, type SeasonResponse, type SingleLegacyLadderResponse, type StarcraftLeagueId, type StarcraftLeagueQueue, type StarcraftLeagueTeamType, type StaticProfileResponse, sc2 as default, sc2, getLeagueData, grandmasterLeaderboard, ladder, ladderSummary, legacyAchievements, legacyLadder, legacyLadders, legacyMatchHistory, legacyProfile, legacyRewards, metadata, player, profile, season, staticProfile };
|
|
27
26
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { player } from './account/index';\r\nimport { grandmasterLeaderboard, season } from './ladder/index';\r\nimport { getLeagueData } from './league/index';\r\nimport {\r\n legacyAchievements,\r\n legacyLadder,\r\n legacyLadders,\r\n legacyMatchHistory,\r\n legacyProfile,\r\n legacyRewards,\r\n} from './legacy/index';\r\nimport { ladder, ladderSummary, metadata, profile, staticProfile } from './profile/index';\r\n\r\nconst sc2 = {\r\n //Account\r\n player,\r\n //Ladder\r\n grandmasterLeaderboard,\r\n season,\r\n //League\r\n getLeagueData,\r\n //Legacy\r\n legacyAchievements,\r\n legacyLadder,\r\n legacyLadders,\r\n legacyMatchHistory,\r\n legacyProfile,\r\n legacyRewards,\r\n //Profile\r\n ladder,\r\n ladderSummary,\r\n metadata,\r\n profile,\r\n staticProfile,\r\n};\r\nexport default sc2;\r\nexport { sc2 };\r\n\r\n//Account\r\nexport * from './account/index';\r\n//Ladder\r\nexport * from './ladder/index';\r\nexport type * from './ladder/types';\r\n//League\r\nexport * from './league/index';\r\nexport type * from './league/types';\r\n//Legacy\r\nexport * from './legacy/index';\r\nexport type * from './legacy/types';\r\n//Profile\r\nexport * from './profile/index';\r\nexport type * from './profile/types';\r\n"],"mappings":";;;;;;AAaA,MAAM,MAAM;CAEV;CAEA;CACA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { player } from './account/index';\r\nimport { grandmasterLeaderboard, season } from './ladder/index';\r\nimport { getLeagueData } from './league/index';\r\nimport {\r\n legacyAchievements,\r\n legacyLadder,\r\n legacyLadders,\r\n legacyMatchHistory,\r\n legacyProfile,\r\n legacyRewards,\r\n} from './legacy/index';\r\nimport { ladder, ladderSummary, metadata, profile, staticProfile } from './profile/index';\r\n\r\nconst sc2 = {\r\n //Account\r\n player,\r\n //Ladder\r\n grandmasterLeaderboard,\r\n season,\r\n //League\r\n getLeagueData,\r\n //Legacy\r\n legacyAchievements,\r\n legacyLadder,\r\n legacyLadders,\r\n legacyMatchHistory,\r\n legacyProfile,\r\n legacyRewards,\r\n //Profile\r\n ladder,\r\n ladderSummary,\r\n metadata,\r\n profile,\r\n staticProfile,\r\n};\r\nexport default sc2;\r\nexport { sc2 };\r\n\r\n//Account\r\nexport * from './account/index';\r\n//Ladder\r\nexport * from './ladder/index';\r\nexport type * from './ladder/types';\r\n//League\r\nexport * from './league/index';\r\nexport type * from './league/types';\r\n//Legacy\r\nexport * from './legacy/index';\r\nexport type * from './legacy/types';\r\n//Profile\r\nexport * from './profile/index';\r\nexport type * from './profile/types';\r\n"],"mappings":";;;;;;AAaA,MAAM,MAAM;CAEV;CAEA;CACA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;AACF"}
|
package/dist/ladder/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as season, t as grandmasterLeaderboard } from "../index-
|
|
1
|
+
import { n as season, t as grandmasterLeaderboard } from "../index-BtQ6VqOV.js";
|
|
2
2
|
export { grandmasterLeaderboard, season };
|
package/dist/ladder/index.js
CHANGED
package/dist/ladder/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/ladder/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { starcraftRegion } from '../regions';\nimport type { StarcraftRegion } from '../regions';\nimport type { GrandmasterLeaderboardResponse, SeasonResponse } from './types';\n\n/**\n * Returns the grandmaster leaderboard for the specified region.\n * @param regionId The region ID\n * @returns The grandmaster leaderboard resource. See {@link GrandmasterLeaderboardResponse}.\n */\nexport function grandmasterLeaderboard(regionId: StarcraftRegion): Resource<GrandmasterLeaderboardResponse> {\n return {\n path: `/sc2/ladder/grandmaster/${starcraftRegion[regionId]}`,\n };\n}\n\n/**\n * Returns the season information for the specified region.\n * @param regionId The region ID\n * @returns The season resource. See {@link SeasonResponse}.\n */\nexport function season(regionId: StarcraftRegion): Resource<SeasonResponse> {\n return {\n path: `/sc2/ladder/season/${starcraftRegion[regionId]}`,\n };\n}\n"],"mappings":";;;;;;;AAUA,SAAgB,uBAAuB,UAAqE;CAC1G,OAAO,EACL,MAAM,2BAA2B,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/ladder/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { starcraftRegion } from '../regions';\nimport type { StarcraftRegion } from '../regions';\nimport type { GrandmasterLeaderboardResponse, SeasonResponse } from './types';\n\n/**\n * Returns the grandmaster leaderboard for the specified region.\n * @param regionId The region ID\n * @returns The grandmaster leaderboard resource. See {@link GrandmasterLeaderboardResponse}.\n */\nexport function grandmasterLeaderboard(regionId: StarcraftRegion): Resource<GrandmasterLeaderboardResponse> {\n return {\n path: `/sc2/ladder/grandmaster/${starcraftRegion[regionId]}`,\n };\n}\n\n/**\n * Returns the season information for the specified region.\n * @param regionId The region ID\n * @returns The season resource. See {@link SeasonResponse}.\n */\nexport function season(regionId: StarcraftRegion): Resource<SeasonResponse> {\n return {\n path: `/sc2/ladder/season/${starcraftRegion[regionId]}`,\n };\n}\n"],"mappings":";;;;;;;AAUA,SAAgB,uBAAuB,UAAqE;CAC1G,OAAO,EACL,MAAM,2BAA2B,gBAAgB,YACnD;AACF;;;;;;AAOA,SAAgB,OAAO,UAAqD;CAC1E,OAAO,EACL,MAAM,sBAAsB,gBAAgB,YAC9C;AACF"}
|
package/dist/league/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getLeagueData } from "../index-
|
|
1
|
+
import { t as getLeagueData } from "../index-BawvMD5r.js";
|
|
2
2
|
export { getLeagueData };
|
package/dist/league/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/league/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { LeagueDataResponse, StarcraftLeagueId, StarcraftLeagueQueue, StarcraftLeagueTeamType } from './types';\n\nconst starcraftLeagueQueue: Record<StarcraftLeagueQueue, number> = {\n 'hots-1v1': 101,\n 'hots-2v2': 102,\n 'hots-3v3': 103,\n 'hots-4v4': 104,\n 'lotv-1v1': 201,\n 'lotv-2v2': 202,\n 'lotv-3v3': 203,\n 'lotv-4v4': 204,\n 'lotv-archon': 206,\n 'wol-1v1': 1,\n 'wol-2v2': 2,\n 'wol-3v3': 3,\n 'wol-4v4': 4,\n};\n\nconst starcraftLeagueTeam: Record<StarcraftLeagueTeamType, number> = {\n arranged: 0,\n random: 1,\n};\n\nconst starcraftLeagueId: Record<StarcraftLeagueId, number> = {\n bronze: 0,\n diamond: 4,\n gold: 2,\n grandmaster: 6,\n master: 5,\n platinum: 3,\n silver: 1,\n};\n\n/**\n * Returns the league data for the specified season, queue, team type, and league.\n * @param seasonId The season ID\n * @param queueId The queue ID\n * @param teamType The team type\n * @param leagueId The league ID\n * @returns The league data resource. See {@link LeagueDataResponse}.\n */\nexport function getLeagueData(\n seasonId: string,\n queueId: StarcraftLeagueQueue,\n teamType: StarcraftLeagueTeamType,\n leagueId: StarcraftLeagueId,\n): Resource<LeagueDataResponse> {\n return {\n path: `/data/sc2/league/${seasonId}/${starcraftLeagueQueue[queueId]}/${starcraftLeagueTeam[teamType]}/${starcraftLeagueId[leagueId]}`,\n };\n}\n"],"mappings":";AAGA,MAAM,uBAA6D;CACjE,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,eAAe;CACf,WAAW;CACX,WAAW;CACX,WAAW;CACX,WAAW;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/league/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { LeagueDataResponse, StarcraftLeagueId, StarcraftLeagueQueue, StarcraftLeagueTeamType } from './types';\n\nconst starcraftLeagueQueue: Record<StarcraftLeagueQueue, number> = {\n 'hots-1v1': 101,\n 'hots-2v2': 102,\n 'hots-3v3': 103,\n 'hots-4v4': 104,\n 'lotv-1v1': 201,\n 'lotv-2v2': 202,\n 'lotv-3v3': 203,\n 'lotv-4v4': 204,\n 'lotv-archon': 206,\n 'wol-1v1': 1,\n 'wol-2v2': 2,\n 'wol-3v3': 3,\n 'wol-4v4': 4,\n};\n\nconst starcraftLeagueTeam: Record<StarcraftLeagueTeamType, number> = {\n arranged: 0,\n random: 1,\n};\n\nconst starcraftLeagueId: Record<StarcraftLeagueId, number> = {\n bronze: 0,\n diamond: 4,\n gold: 2,\n grandmaster: 6,\n master: 5,\n platinum: 3,\n silver: 1,\n};\n\n/**\n * Returns the league data for the specified season, queue, team type, and league.\n * @param seasonId The season ID\n * @param queueId The queue ID\n * @param teamType The team type\n * @param leagueId The league ID\n * @returns The league data resource. See {@link LeagueDataResponse}.\n */\nexport function getLeagueData(\n seasonId: string,\n queueId: StarcraftLeagueQueue,\n teamType: StarcraftLeagueTeamType,\n leagueId: StarcraftLeagueId,\n): Resource<LeagueDataResponse> {\n return {\n path: `/data/sc2/league/${seasonId}/${starcraftLeagueQueue[queueId]}/${starcraftLeagueTeam[teamType]}/${starcraftLeagueId[leagueId]}`,\n };\n}\n"],"mappings":";AAGA,MAAM,uBAA6D;CACjE,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,eAAe;CACf,WAAW;CACX,WAAW;CACX,WAAW;CACX,WAAW;AACb;AAEA,MAAM,sBAA+D;CACnE,UAAU;CACV,QAAQ;AACV;AAEA,MAAM,oBAAuD;CAC3D,QAAQ;CACR,SAAS;CACT,MAAM;CACN,aAAa;CACb,QAAQ;CACR,UAAU;CACV,QAAQ;AACV;;;;;;;;;AAUA,SAAgB,cACd,UACA,SACA,UACA,UAC8B;CAC9B,OAAO,EACL,MAAM,oBAAoB,SAAS,GAAG,qBAAqB,SAAS,GAAG,oBAAoB,UAAU,GAAG,kBAAkB,YAC5H;AACF"}
|
package/dist/legacy/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as legacyProfile, i as legacyMatchHistory, n as legacyLadder, o as legacyRewards, r as legacyLadders, t as legacyAchievements } from "../index-
|
|
1
|
+
import { a as legacyProfile, i as legacyMatchHistory, n as legacyLadder, o as legacyRewards, r as legacyLadders, t as legacyAchievements } from "../index-Dxs7pfrO.js";
|
|
2
2
|
export { legacyAchievements, legacyLadder, legacyLadders, legacyMatchHistory, legacyProfile, legacyRewards };
|
package/dist/legacy/index.js
CHANGED
package/dist/legacy/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/legacy/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { starcraftRegion } from '../regions';\nimport type { StarcraftRegion } from '../regions';\nimport type {\n LegacyAchievementsResponse,\n LegacyLaddersResponse,\n LegacyMatchHistoryResponse,\n LegacyProfileResponse,\n LegacyRewardsResponse,\n} from './types';\n\n/**\n * Returns the legacy achievements for the specified region.\n * @param regionId The region ID for Starcraft.\n * @returns A resource representing the legacy achievements. See {@link LegacyAchievementsResponse}\n */\nexport function legacyAchievements(regionId: StarcraftRegion): Resource<LegacyAchievementsResponse> {\n return {\n path: `/sc2/legacy/data/achievements/${starcraftRegion[regionId]}`,\n };\n}\n\n/**\n * Returns the ladder information for the specified ladder.\n * @param regionId The region ID for Starcraft.\n * @param ladderId The ID of the ladder.\n * @returns A resource representing the ladder. See {@link LadderResponse}\n */\nexport function legacyLadder(regionId: StarcraftRegion, ladderId: number): Resource<
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/legacy/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { starcraftRegion } from '../regions';\nimport type { StarcraftRegion } from '../regions';\nimport type {\n LegacyAchievementsResponse,\n LegacyLaddersResponse,\n LegacyMatchHistoryResponse,\n LegacyProfileResponse,\n LegacyRewardsResponse,\n} from './types';\n\n/**\n * Returns the legacy achievements for the specified region.\n * @param regionId The region ID for Starcraft.\n * @returns A resource representing the legacy achievements. See {@link LegacyAchievementsResponse}\n */\nexport function legacyAchievements(regionId: StarcraftRegion): Resource<LegacyAchievementsResponse> {\n return {\n path: `/sc2/legacy/data/achievements/${starcraftRegion[regionId]}`,\n };\n}\n\n/**\n * Returns the ladder information for the specified ladder.\n * @param regionId The region ID for Starcraft.\n * @param ladderId The ID of the ladder.\n * @returns A resource representing the ladder. See {@link LadderResponse}\n */\nexport function legacyLadder(regionId: StarcraftRegion, ladderId: number): Resource<LegacyLaddersResponse> {\n return {\n path: `/sc2/legacy/ladder/${starcraftRegion[regionId]}/${ladderId}`,\n };\n}\n\n/**\n * Returns the ladders for the specified profile.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @returns A resource representing the ladders for the given profile. See {@link LegacyLaddersResponse}\n */\nexport function legacyLadders(\n regionId: StarcraftRegion,\n realmId: 1 | 2,\n profileId: number,\n): Resource<LegacyLaddersResponse> {\n return {\n path: `/sc2/legacy/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}/ladders`,\n };\n}\n\n/**\n * Returns the match history for the specified profile.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @returns A resource representing the match history for the given profile. See {@link LegacyMatchHistoryResponse}\n */\nexport function legacyMatchHistory(\n regionId: StarcraftRegion,\n realmId: 1 | 2,\n profileId: number,\n): Resource<LegacyMatchHistoryResponse> {\n return {\n path: `/sc2/legacy/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}/matches`,\n };\n}\n\n/**\n * Returns the profile for the specified profile.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @returns A resource representing the profile for the given ID. See {@link LegacyProfileResponse}\n */\nexport function legacyProfile(\n regionId: StarcraftRegion,\n realmId: 1 | 2,\n profileId: number,\n): Resource<LegacyProfileResponse> {\n return {\n path: `/sc2/legacy/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}`,\n };\n}\n\n/**\n * Returns the rewards for the specified region.\n * @param regionId The region ID for Starcraft.\n * @returns A resource representing the rewards for the given region. See {@link LegacyRewardsResponse}\n */\nexport function legacyRewards(regionId: StarcraftRegion): Resource<LegacyRewardsResponse> {\n return {\n path: `/sc2/legacy/data/rewards/${starcraftRegion[regionId]}`,\n };\n}\n"],"mappings":";;;;;;;AAgBA,SAAgB,mBAAmB,UAAiE;CAClG,OAAO,EACL,MAAM,iCAAiC,gBAAgB,YACzD;AACF;;;;;;;AAQA,SAAgB,aAAa,UAA2B,UAAmD;CACzG,OAAO,EACL,MAAM,sBAAsB,gBAAgB,UAAU,GAAG,WAC3D;AACF;;;;;;;;AASA,SAAgB,cACd,UACA,SACA,WACiC;CACjC,OAAO,EACL,MAAM,uBAAuB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,UAAU,UACjF;AACF;;;;;;;;AASA,SAAgB,mBACd,UACA,SACA,WACsC;CACtC,OAAO,EACL,MAAM,uBAAuB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,UAAU,UACjF;AACF;;;;;;;;AASA,SAAgB,cACd,UACA,SACA,WACiC;CACjC,OAAO,EACL,MAAM,uBAAuB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,YACvE;AACF;;;;;;AAOA,SAAgB,cAAc,UAA4D;CACxF,OAAO,EACL,MAAM,4BAA4B,gBAAgB,YACpD;AACF"}
|
package/dist/profile/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as staticProfile, i as profile, n as ladderSummary, r as metadata, t as ladder } from "../index-
|
|
1
|
+
import { a as staticProfile, i as profile, n as ladderSummary, r as metadata, t as ladder } from "../index-BBcAaWfH.js";
|
|
2
2
|
export { ladder, ladderSummary, metadata, profile, staticProfile };
|
package/dist/profile/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/profile/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { starcraftRegion } from '../regions';\nimport type { StarcraftRegion } from '../regions';\nimport type {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/profile/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { starcraftRegion } from '../regions';\nimport type { StarcraftRegion } from '../regions';\nimport type {\n LadderResponse,\n LadderSummaryResponse,\n MetadataResponse,\n ProfileResponse,\n StaticProfileResponse,\n} from './types';\n\n/**\n * Returns the ladder information for the specified profile and ladder.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @param ladderId The ID of the ladder.\n * @returns A resource representing the ladder. See {@link LadderResponse}\n */\nexport function ladder(\n regionId: StarcraftRegion,\n realmId: 1 | 2,\n profileId: number,\n ladderId: number,\n): Resource<LadderResponse> {\n return {\n path: `/sc2/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}/ladder/${ladderId}`,\n };\n}\n\n/**\n * Returns the ladder summary information for the specified profile.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @returns A resource representing the ladder summary. See {@link LadderSummaryResponse}\n */\nexport function ladderSummary(\n regionId: StarcraftRegion,\n realmId: 1 | 2,\n profileId: number,\n): Resource<LadderSummaryResponse> {\n return {\n path: `/sc2/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}/ladder/summary`,\n };\n}\n\n/**\n * Returns the metadata information for the specified profile.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @returns A resource representing the metadata. See {@link MetadataResponse}\n */\nexport function metadata(regionId: StarcraftRegion, realmId: 1 | 2, profileId: number): Resource<MetadataResponse> {\n return {\n path: `/sc2/metadata/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}`,\n };\n}\n\n/**\n * Returns the profile information for the specified profile.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @returns A resource representing the profile. See {@link MetadataResponse}\n */\nexport function profile(regionId: StarcraftRegion, realmId: 1 | 2, profileId: number): Resource<ProfileResponse> {\n return {\n path: `/sc2/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}`,\n };\n}\n\n/**\n *\n * @param regionId The region ID for Starcraft.\n * @returns A resource representing the static profile. See {@link StaticProfileResponse}\n */\nexport function staticProfile(regionId: StarcraftRegion): Resource<StaticProfileResponse> {\n return {\n path: `/sc2/static/profile/${starcraftRegion[regionId]}`,\n };\n}\n"],"mappings":";;;;;;;;;;AAmBA,SAAgB,OACd,UACA,SACA,WACA,UAC0B;CAC1B,OAAO,EACL,MAAM,gBAAgB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,UAAU,UAAU,WACpF;AACF;;;;;;;;AASA,SAAgB,cACd,UACA,SACA,WACiC;CACjC,OAAO,EACL,MAAM,gBAAgB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,UAAU,iBAC1E;AACF;;;;;;;;AASA,SAAgB,SAAS,UAA2B,SAAgB,WAA+C;CACjH,OAAO,EACL,MAAM,yBAAyB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,YACzE;AACF;;;;;;;;AASA,SAAgB,QAAQ,UAA2B,SAAgB,WAA8C;CAC/G,OAAO,EACL,MAAM,gBAAgB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,YAChE;AACF;;;;;;AAOA,SAAgB,cAAc,UAA4D;CACxF,OAAO,EACL,MAAM,uBAAuB,gBAAgB,YAC/C;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regions-
|
|
1
|
+
{"version":3,"file":"regions-WKmRG-YC.js","names":[],"sources":["../src/regions.ts"],"sourcesContent":["//The region (1=US, 2=EU, 3=KO and TW, 5=CN).\nexport type StarcraftRegion = 'cn' | 'eu' | 'kr' | 'tw' | 'us';\n\nexport const starcraftRegion: Record<StarcraftRegion, number> = {\n cn: 5,\n eu: 2,\n kr: 3,\n tw: 3,\n us: 1,\n};\n"],"mappings":";AAGA,MAAa,kBAAmD;CAC9D,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blizzard-api/sc2",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Putro",
|
|
6
6
|
"description": "A series of helpers to interact with the Starcraft II Blizzard API",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"files": [
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
|
+
"sideEffects": false,
|
|
33
34
|
"keywords": [
|
|
34
35
|
"blizzard",
|
|
35
36
|
"battlenet",
|
|
@@ -41,10 +42,10 @@
|
|
|
41
42
|
],
|
|
42
43
|
"dependencies": {},
|
|
43
44
|
"peerDependencies": {
|
|
44
|
-
"@blizzard-api/core": "4.1.
|
|
45
|
+
"@blizzard-api/core": "4.1.1"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@blizzard-api/core": "4.1.
|
|
48
|
+
"@blizzard-api/core": "4.1.1"
|
|
48
49
|
},
|
|
49
50
|
"scripts": {
|
|
50
51
|
"build": "tsdown",
|