@blizzard-api/sc2 3.1.3 → 3.2.0
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/{index-BtQ6VqOV.d.ts → index-6S3wZC_n.d.ts} +2 -2
- package/dist/{index-mkx0Rr6s.d.ts → index-CYQKcybk.d.ts} +2 -2
- package/dist/{index-BZARQmum.d.ts → index-Ca9LHu8M.d.ts} +2 -2
- package/dist/index.d.ts +6 -4
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/ladder/index.d.ts +1 -1
- package/dist/legacy/index.d.ts +1 -1
- package/dist/profile/index.d.ts +1 -1
- package/dist/regions-D_uWPFaI.d.ts +6 -0
- package/package.json +1 -1
- package/dist/regions-pSiIWRj6.d.ts +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as StarcraftRegion } from "./regions-
|
|
1
|
+
import { t as StarcraftRegion } from "./regions-D_uWPFaI.js";
|
|
2
2
|
import { Resource } from "@blizzard-api/core";
|
|
3
3
|
//#region src/ladder/types.d.ts
|
|
4
4
|
interface GrandmasterLeaderboardResponse {
|
|
@@ -44,4 +44,4 @@ declare function grandmasterLeaderboard(regionId: StarcraftRegion): Resource<Gra
|
|
|
44
44
|
declare function season(regionId: StarcraftRegion): Resource<SeasonResponse>;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { SeasonResponse as i, season as n, GrandmasterLeaderboardResponse as r, grandmasterLeaderboard as t };
|
|
47
|
-
//# sourceMappingURL=index-
|
|
47
|
+
//# sourceMappingURL=index-6S3wZC_n.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as StarcraftRegion } from "./regions-
|
|
1
|
+
import { t as StarcraftRegion } from "./regions-D_uWPFaI.js";
|
|
2
2
|
import { Resource } from "@blizzard-api/core";
|
|
3
3
|
//#region src/profile/types.d.ts
|
|
4
4
|
interface LadderResponse {
|
|
@@ -212,4 +212,4 @@ declare function profile(regionId: StarcraftRegion, realmId: 1 | 2, profileId: n
|
|
|
212
212
|
declare function staticProfile(regionId: StarcraftRegion): Resource<StaticProfileResponse>;
|
|
213
213
|
//#endregion
|
|
214
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-
|
|
215
|
+
//# sourceMappingURL=index-CYQKcybk.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as StarcraftRegion } from "./regions-
|
|
1
|
+
import { t as StarcraftRegion } from "./regions-D_uWPFaI.js";
|
|
2
2
|
import { Resource } from "@blizzard-api/core";
|
|
3
3
|
//#region src/legacy/types.d.ts
|
|
4
4
|
interface LegacyAchievementsResponse {
|
|
@@ -225,4 +225,4 @@ declare function legacyProfile(regionId: StarcraftRegion, realmId: 1 | 2, profil
|
|
|
225
225
|
declare function legacyRewards(regionId: StarcraftRegion): Resource<LegacyRewardsResponse>;
|
|
226
226
|
//#endregion
|
|
227
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-
|
|
228
|
+
//# sourceMappingURL=index-Ca9LHu8M.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { player } from "./account/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { n as starcraftRegion, t as StarcraftRegion } from "./regions-D_uWPFaI.js";
|
|
3
|
+
import { i as SeasonResponse, n as season, r as GrandmasterLeaderboardResponse, t as grandmasterLeaderboard } from "./index-6S3wZC_n.js";
|
|
3
4
|
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-
|
|
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-
|
|
5
|
+
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-Ca9LHu8M.js";
|
|
6
|
+
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-CYQKcybk.js";
|
|
6
7
|
//#region src/index.d.ts
|
|
7
8
|
declare const sc2: {
|
|
8
9
|
player: typeof player;
|
|
@@ -20,7 +21,8 @@ declare const sc2: {
|
|
|
20
21
|
metadata: typeof metadata;
|
|
21
22
|
profile: typeof profile;
|
|
22
23
|
staticProfile: typeof staticProfile;
|
|
24
|
+
starcraftRegion: Record<StarcraftRegion, number>;
|
|
23
25
|
};
|
|
24
26
|
//#endregion
|
|
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
|
+
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, StarcraftRegion, type StaticProfileResponse, sc2 as default, sc2, getLeagueData, grandmasterLeaderboard, ladder, ladderSummary, legacyAchievements, legacyLadder, legacyLadders, legacyMatchHistory, legacyProfile, legacyRewards, metadata, player, profile, season, starcraftRegion, staticProfile };
|
|
26
28
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { player } from "./account/index.js";
|
|
2
|
+
import { t as starcraftRegion } from "./regions-WKmRG-YC.js";
|
|
2
3
|
import { grandmasterLeaderboard, season } from "./ladder/index.js";
|
|
3
4
|
import { getLeagueData } from "./league/index.js";
|
|
4
5
|
import { legacyAchievements, legacyLadder, legacyLadders, legacyMatchHistory, legacyProfile, legacyRewards } from "./legacy/index.js";
|
|
@@ -19,9 +20,10 @@ const sc2 = {
|
|
|
19
20
|
ladderSummary,
|
|
20
21
|
metadata,
|
|
21
22
|
profile,
|
|
22
|
-
staticProfile
|
|
23
|
+
staticProfile,
|
|
24
|
+
starcraftRegion
|
|
23
25
|
};
|
|
24
26
|
//#endregion
|
|
25
|
-
export { sc2 as default, sc2, getLeagueData, grandmasterLeaderboard, ladder, ladderSummary, legacyAchievements, legacyLadder, legacyLadders, legacyMatchHistory, legacyProfile, legacyRewards, metadata, player, profile, season, staticProfile };
|
|
27
|
+
export { sc2 as default, sc2, getLeagueData, grandmasterLeaderboard, ladder, ladderSummary, legacyAchievements, legacyLadder, legacyLadders, legacyMatchHistory, legacyProfile, legacyRewards, metadata, player, profile, season, starcraftRegion, staticProfile };
|
|
26
28
|
|
|
27
29
|
//# sourceMappingURL=index.js.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';\nimport { grandmasterLeaderboard, season } from './ladder/index';\nimport { getLeagueData } from './league/index';\nimport {\n legacyAchievements,\n legacyLadder,\n legacyLadders,\n legacyMatchHistory,\n legacyProfile,\n legacyRewards,\n} from './legacy/index';\nimport { ladder, ladderSummary, metadata, profile, staticProfile } from './profile/index';\n\nconst sc2 = {\n //Account\n player,\n //Ladder\n grandmasterLeaderboard,\n season,\n //League\n getLeagueData,\n //Legacy\n legacyAchievements,\n legacyLadder,\n legacyLadders,\n legacyMatchHistory,\n legacyProfile,\n legacyRewards,\n //Profile\n ladder,\n ladderSummary,\n metadata,\n profile,\n staticProfile,\n};\nexport default sc2;\nexport { sc2 };\n\n//Account\nexport * from './account/index';\n//Ladder\nexport * from './ladder/index';\nexport type * from './ladder/types';\n//League\nexport * from './league/index';\nexport type * from './league/types';\n//Legacy\nexport * from './legacy/index';\nexport type * from './legacy/types';\n//Profile\nexport * from './profile/index';\nexport type * from './profile/types';\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { player } from './account/index';\nimport { grandmasterLeaderboard, season } from './ladder/index';\nimport { getLeagueData } from './league/index';\nimport {\n legacyAchievements,\n legacyLadder,\n legacyLadders,\n legacyMatchHistory,\n legacyProfile,\n legacyRewards,\n} from './legacy/index';\nimport { ladder, ladderSummary, metadata, profile, staticProfile } from './profile/index';\nimport { starcraftRegion } from './regions';\n\nconst sc2 = {\n //Account\n player,\n //Ladder\n grandmasterLeaderboard,\n season,\n //League\n getLeagueData,\n //Legacy\n legacyAchievements,\n legacyLadder,\n legacyLadders,\n legacyMatchHistory,\n legacyProfile,\n legacyRewards,\n //Profile\n ladder,\n ladderSummary,\n metadata,\n profile,\n staticProfile,\n //Regions\n starcraftRegion,\n};\nexport default sc2;\nexport { sc2 };\n\n//Account\nexport * from './account/index';\n//Ladder\nexport * from './ladder/index';\nexport type * from './ladder/types';\n//League\nexport * from './league/index';\nexport type * from './league/types';\n//Legacy\nexport * from './legacy/index';\nexport type * from './legacy/types';\n//Profile\nexport * from './profile/index';\nexport type * from './profile/types';\n//Regions\nexport * from './regions';\n"],"mappings":";;;;;;;AAcA,MAAM,MAAM;CAEV;CAEA;CACA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;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-6S3wZC_n.js";
|
|
2
2
|
export { grandmasterLeaderboard, season };
|
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-Ca9LHu8M.js";
|
|
2
2
|
export { legacyAchievements, legacyLadder, legacyLadders, legacyMatchHistory, legacyProfile, legacyRewards };
|
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-CYQKcybk.js";
|
|
2
2
|
export { ladder, ladderSummary, metadata, profile, staticProfile };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/regions.d.ts
|
|
2
|
+
type StarcraftRegion = 'cn' | 'eu' | 'kr' | 'tw' | 'us';
|
|
3
|
+
declare const starcraftRegion: Record<StarcraftRegion, number>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { starcraftRegion as n, StarcraftRegion as t };
|
|
6
|
+
//# sourceMappingURL=regions-D_uWPFaI.d.ts.map
|
package/package.json
CHANGED