@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.
@@ -1,4 +1,4 @@
1
- import { t as StarcraftRegion } from "./regions-pSiIWRj6.js";
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-BtQ6VqOV.d.ts.map
47
+ //# sourceMappingURL=index-6S3wZC_n.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as StarcraftRegion } from "./regions-pSiIWRj6.js";
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-mkx0Rr6s.d.ts.map
215
+ //# sourceMappingURL=index-CYQKcybk.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as StarcraftRegion } from "./regions-pSiIWRj6.js";
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-BZARQmum.d.ts.map
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 { i as SeasonResponse, n as season, r as GrandmasterLeaderboardResponse, t as grandmasterLeaderboard } from "./index-BtQ6VqOV.js";
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-BZARQmum.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-mkx0Rr6s.js";
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":";;;;;;AAaA,MAAM,MAAM;CAEV;CAEA;CACA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;AACF"}
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"}
@@ -1,2 +1,2 @@
1
- import { n as season, t as grandmasterLeaderboard } from "../index-BtQ6VqOV.js";
1
+ import { n as season, t as grandmasterLeaderboard } from "../index-6S3wZC_n.js";
2
2
  export { grandmasterLeaderboard, season };
@@ -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-BZARQmum.js";
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 };
@@ -1,2 +1,2 @@
1
- import { a as staticProfile, i as profile, n as ladderSummary, r as metadata, t as ladder } from "../index-mkx0Rr6s.js";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blizzard-api/sc2",
3
- "version": "3.1.3",
3
+ "version": "3.2.0",
4
4
  "description": "A series of helpers to interact with the Starcraft II Blizzard API",
5
5
  "keywords": [
6
6
  "api",
@@ -1,5 +0,0 @@
1
- //#region src/regions.d.ts
2
- type StarcraftRegion = 'cn' | 'eu' | 'kr' | 'tw' | 'us';
3
- //#endregion
4
- export { StarcraftRegion as t };
5
- //# sourceMappingURL=regions-pSiIWRj6.d.ts.map