@blizzard-api/d3 3.0.0 → 3.1.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/act/index.d.ts +1 -1
- package/dist/act/index.js.map +1 -1
- package/dist/artisan-and-recipe/index.d.ts +1 -1
- package/dist/artisan-and-recipe/index.js.map +1 -1
- package/dist/character-class-and-skill/index.d.ts +1 -1
- package/dist/character-class-and-skill/index.js +1 -1
- package/dist/character-class-and-skill/index.js.map +1 -1
- package/dist/follower/index.d.ts +1 -1
- package/dist/follower/index.js.map +1 -1
- package/dist/game-data/index.d.ts +1 -1
- package/dist/game-data/index.js +2 -2
- package/dist/game-data/index.js.map +1 -1
- package/dist/{index-nKhzpD4F.d.ts → index-BQEnnsWA.d.ts} +6 -6
- package/dist/{index-Cd9ttc2_.d.ts → index-Bu-d9xlV.d.ts} +9 -8
- package/dist/{index-Odfm-W__.d.ts → index-CEmEUtwX.d.ts} +17 -7
- package/dist/{index-DC4Sl-cR.d.ts → index-CgPqa46U.d.ts} +1 -2
- package/dist/{index-B3XcHQEG.d.ts → index-CuXladQR.d.ts} +6 -6
- package/dist/{index-CbNO-aVd.d.ts → index-DGCuVzh2.d.ts} +5 -5
- package/dist/{index-DDdb6KdV.d.ts → index-DuQ64drg.d.ts} +1 -2
- package/dist/{index-arHhEnWi.d.ts → index-OGh-NDHj.d.ts} +88 -66
- package/dist/index.d.ts +9 -10
- package/dist/index.js.map +1 -1
- package/dist/item/index.d.ts +1 -1
- package/dist/item/index.js.map +1 -1
- package/dist/item-type/index.d.ts +1 -1
- package/dist/item-type/index.js.map +1 -1
- package/dist/profile/index.d.ts +1 -1
- package/dist/profile/index.js +2 -2
- package/dist/profile/index.js.map +1 -1
- package/package.json +4 -3
package/dist/act/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as actIndex, t as act } from "../index-
|
|
1
|
+
import { n as actIndex, t as act } from "../index-DuQ64drg.js";
|
|
2
2
|
export { act, actIndex };
|
package/dist/act/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/act/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { d3BasePath } from '@blizzard-api/core';\nimport type { ActIndexResponse, ActResponse } from './types';\n\n/**\n * Returns the act information for the specified act ID.\n * @param actId The ID of the act.\n * @returns The act resource. See {@link ActResponse}.\n */\nexport function act(actId: number): Resource<ActResponse> {\n return {\n path: `${d3BasePath}/act/${actId}`,\n };\n}\n\n/**\n * Returns the index of acts.\n * @returns The act index resource. See {@link ActIndexResponse}.\n */\nexport function actIndex(): Resource<ActIndexResponse> {\n return {\n path: `${d3BasePath}/act`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,IAAI,OAAsC;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/act/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { d3BasePath } from '@blizzard-api/core';\nimport type { ActIndexResponse, ActResponse } from './types';\n\n/**\n * Returns the act information for the specified act ID.\n * @param actId The ID of the act.\n * @returns The act resource. See {@link ActResponse}.\n */\nexport function act(actId: number): Resource<ActResponse> {\n return {\n path: `${d3BasePath}/act/${actId}`,\n };\n}\n\n/**\n * Returns the index of acts.\n * @returns The act index resource. See {@link ActIndexResponse}.\n */\nexport function actIndex(): Resource<ActIndexResponse> {\n return {\n path: `${d3BasePath}/act`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,IAAI,OAAsC;CACxD,OAAO,EACL,MAAM,GAAG,WAAW,OAAO,QAC7B;AACF;;;;;AAMA,SAAgB,WAAuC;CACrD,OAAO,EACL,MAAM,GAAG,WAAW,MACtB;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as recipe, t as artisan } from "../index-
|
|
1
|
+
import { n as recipe, t as artisan } from "../index-CuXladQR.js";
|
|
2
2
|
export { artisan, recipe };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/artisan-and-recipe/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { d3BasePath } from '@blizzard-api/core';\nimport type { ArtisanResponse, RecipeResponse } from './types';\n\n/**\n * Returns the artisan information for the specified artisan slug.\n * @param artisanSlug The slug of the artisan.\n * @returns The artisan resource. See {@link ArtisanResponse}.\n */\nexport function artisan(artisanSlug:
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/artisan-and-recipe/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { d3BasePath } from '@blizzard-api/core';\nimport type { ArtisanResponse, Artisans, RecipeResponse } from './types';\n\n/**\n * Returns the artisan information for the specified artisan slug.\n * @param artisanSlug The slug of the artisan.\n * @returns The artisan resource. See {@link ArtisanResponse}.\n */\nexport function artisan(artisanSlug: Artisans): Resource<ArtisanResponse> {\n return {\n path: `${d3BasePath}/artisan/${artisanSlug}`,\n };\n}\n\n/**\n * Returns the recipe information for the specified artisan and recipe slugs.\n * @param artisanSlug The slug of the artisan.\n * @param recipeSlug The slug of the recipe.\n * @returns The recipe resource. See {@link RecipeResponse}.\n */\nexport function recipe(artisanSlug: Artisans, recipeSlug: string): Resource<RecipeResponse> {\n return {\n path: `${d3BasePath}/artisan/${artisanSlug}/recipe/${recipeSlug}`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,QAAQ,aAAkD;CACxE,OAAO,EACL,MAAM,GAAG,WAAW,WAAW,cACjC;AACF;;;;;;;AAQA,SAAgB,OAAO,aAAuB,YAA8C;CAC1F,OAAO,EACL,MAAM,GAAG,WAAW,WAAW,YAAY,UAAU,aACvD;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as skill, t as characterClass } from "../index-
|
|
1
|
+
import { n as skill, t as characterClass } from "../index-BQEnnsWA.js";
|
|
2
2
|
export { characterClass, skill };
|
|
@@ -6,7 +6,7 @@ import { d3BasePath } from "@blizzard-api/core";
|
|
|
6
6
|
* @returns The character class resource. See {@link CharacterClassResponse}.
|
|
7
7
|
*/
|
|
8
8
|
function characterClass(characterClassSlug) {
|
|
9
|
-
return { path: `${d3BasePath}/
|
|
9
|
+
return { path: `${d3BasePath}/hero/${characterClassSlug}` };
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Returns the skill information for the specified character class and skill slugs.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-class-and-skill/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { d3BasePath } from '@blizzard-api/core';\nimport type { CharacterClassResponse, SkillResponse } from './types';\n\n/**\n * Returns the character class information for the specified character class slug.\n * @param characterClassSlug The slug of the character class.\n * @returns The character class resource. See {@link CharacterClassResponse}.\n */\nexport function characterClass(characterClassSlug:
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-class-and-skill/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { d3BasePath } from '@blizzard-api/core';\nimport type { CharacterClass, CharacterClassResponse, SkillResponse } from './types';\n\n/**\n * Returns the character class information for the specified character class slug.\n * @param characterClassSlug The slug of the character class.\n * @returns The character class resource. See {@link CharacterClassResponse}.\n */\nexport function characterClass(characterClassSlug: CharacterClass): Resource<CharacterClassResponse> {\n return {\n path: `${d3BasePath}/hero/${characterClassSlug}`,\n };\n}\n\n/**\n * Returns the skill information for the specified character class and skill slugs.\n * @param characterClassSlug The slug of the character class.\n * @param skillSlug The slug of the skill.\n * @returns The skill resource. See {@link SkillResponse}.\n */\nexport function skill(characterClassSlug: CharacterClass, skillSlug: string): Resource<SkillResponse> {\n return {\n path: `${d3BasePath}/hero/${characterClassSlug}/skill/${skillSlug}`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,eAAe,oBAAsE;CACnG,OAAO,EACL,MAAM,GAAG,WAAW,QAAQ,qBAC9B;AACF;;;;;;;AAQA,SAAgB,MAAM,oBAAoC,WAA4C;CACpG,OAAO,EACL,MAAM,GAAG,WAAW,QAAQ,mBAAmB,SAAS,YAC1D;AACF"}
|
package/dist/follower/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as follower } from "../index-
|
|
1
|
+
import { t as follower } from "../index-DGCuVzh2.js";
|
|
2
2
|
export { follower };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/follower/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { d3BasePath } from '@blizzard-api/core';\nimport type { FollowerResponse } from './types';\n\n/**\n * Returns the follower information for the specified follower slug.\n * @param followerSlug The slug of the follower.\n * @returns The follower resource. See {@link FollowerResponse}.\n */\nexport function follower(followerSlug:
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/follower/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { d3BasePath } from '@blizzard-api/core';\nimport type { Follower, FollowerResponse } from './types';\n\n/**\n * Returns the follower information for the specified follower slug.\n * @param followerSlug The slug of the follower.\n * @returns The follower resource. See {@link FollowerResponse}.\n */\nexport function follower(followerSlug: Follower): Resource<FollowerResponse> {\n return {\n path: `${d3BasePath}/follower/${followerSlug}`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,SAAS,cAAoD;CAC3E,OAAO,EACL,MAAM,GAAG,WAAW,YAAY,eAClC;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as seasonIndex, i as season, n as eraIndex, o as seasonLeaderboard, r as eraLeaderboard, t as era } from "../index-
|
|
1
|
+
import { a as seasonIndex, i as season, n as eraIndex, o as seasonLeaderboard, r as eraLeaderboard, t as era } from "../index-CEmEUtwX.js";
|
|
2
2
|
export { era, eraIndex, eraLeaderboard, season, seasonIndex, seasonLeaderboard };
|
package/dist/game-data/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function era(id) {
|
|
|
13
13
|
* @returns The era index resource. See {@link EraIndexResponse}.
|
|
14
14
|
*/
|
|
15
15
|
function eraIndex() {
|
|
16
|
-
return { path: `${d3GameDataBasePath}/era
|
|
16
|
+
return { path: `${d3GameDataBasePath}/era/` };
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Returns the era leaderboard for the specified era ID and leaderboard.
|
|
@@ -37,7 +37,7 @@ function season(id) {
|
|
|
37
37
|
* @returns The season index resource. See {@link SeasonIndexResponse}.
|
|
38
38
|
*/
|
|
39
39
|
function seasonIndex() {
|
|
40
|
-
return { path: `${d3GameDataBasePath}/season
|
|
40
|
+
return { path: `${d3GameDataBasePath}/season/` };
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Returns the season leaderboard for the specified season ID and leaderboard.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/game-data/index.ts"],"sourcesContent":["import { d3GameDataBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type {\n EraIndexResponse,\n EraLeaderboardResponse,\n EraResponse,\n SeasonIndexResponse,\n SeasonLeaderboardResponse,\n SeasonResponse,\n} from './types';\n\n/**\n * Returns the era information for the specified era ID.\n * @param id The ID of the era.\n * @returns The era resource. See {@link EraResponse}.\n */\nexport function era(id: number): Resource<EraResponse> {\n return {\n path: `${d3GameDataBasePath}/era/${id}`,\n };\n}\n\n/**\n * Returns the era index.\n * @returns The era index resource. See {@link EraIndexResponse}.\n */\nexport function eraIndex(): Resource<EraIndexResponse> {\n return {\n path: `${d3GameDataBasePath}/era
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/game-data/index.ts"],"sourcesContent":["import { d3GameDataBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type {\n EraIndexResponse,\n EraLeaderboardResponse,\n EraResponse,\n SeasonIndexResponse,\n SeasonLeaderboardResponse,\n SeasonResponse,\n} from './types';\n\n/**\n * Returns the era information for the specified era ID.\n * @param id The ID of the era.\n * @returns The era resource. See {@link EraResponse}.\n */\nexport function era(id: number): Resource<EraResponse> {\n return {\n path: `${d3GameDataBasePath}/era/${id}`,\n };\n}\n\n/**\n * Returns the era index.\n * @returns The era index resource. See {@link EraIndexResponse}.\n */\nexport function eraIndex(): Resource<EraIndexResponse> {\n return {\n path: `${d3GameDataBasePath}/era/`,\n };\n}\n\n/**\n * Returns the era leaderboard for the specified era ID and leaderboard.\n * @param id The ID of the era.\n * @param leaderboard The name of the leaderboard.\n * @returns The era leaderboard resource. See {@link EraLeaderboardResponse}.\n */\nexport function eraLeaderboard(id: number, leaderboard: string): Resource<EraLeaderboardResponse> {\n return {\n path: `${d3GameDataBasePath}/era/${id}/leaderboard/${leaderboard}`,\n };\n}\n\n/**\n * Returns the season information for the specified season ID.\n * @param id The ID of the season.\n * @returns The season resource. See {@link SeasonResponse}.\n */\nexport function season(id: number): Resource<SeasonResponse> {\n return {\n path: `${d3GameDataBasePath}/season/${id}`,\n };\n}\n\n/**\n * Returns the season index.\n * @returns The season index resource. See {@link SeasonIndexResponse}.\n */\nexport function seasonIndex(): Resource<SeasonIndexResponse> {\n return {\n path: `${d3GameDataBasePath}/season/`,\n };\n}\n\n/**\n * Returns the season leaderboard for the specified season ID and leaderboard.\n * @param id The ID of the season.\n * @param leaderboard The name of the leaderboard.\n * @returns The season leaderboard resource. See {@link SeasonLeaderboardResponse}.\n */\nexport function seasonLeaderboard(id: number, leaderboard: string): Resource<SeasonLeaderboardResponse> {\n return {\n path: `${d3GameDataBasePath}/season/${id}/leaderboard/${leaderboard}`,\n };\n}\n"],"mappings":";;;;;;;AAgBA,SAAgB,IAAI,IAAmC;CACrD,OAAO,EACL,MAAM,GAAG,mBAAmB,OAAO,KACrC;AACF;;;;;AAMA,SAAgB,WAAuC;CACrD,OAAO,EACL,MAAM,GAAG,mBAAmB,OAC9B;AACF;;;;;;;AAQA,SAAgB,eAAe,IAAY,aAAuD;CAChG,OAAO,EACL,MAAM,GAAG,mBAAmB,OAAO,GAAG,eAAe,cACvD;AACF;;;;;;AAOA,SAAgB,OAAO,IAAsC;CAC3D,OAAO,EACL,MAAM,GAAG,mBAAmB,UAAU,KACxC;AACF;;;;;AAMA,SAAgB,cAA6C;CAC3D,OAAO,EACL,MAAM,GAAG,mBAAmB,UAC9B;AACF;;;;;;;AAQA,SAAgB,kBAAkB,IAAY,aAA0D;CACtG,OAAO,EACL,MAAM,GAAG,mBAAmB,UAAU,GAAG,eAAe,cAC1D;AACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from "@blizzard-api/core";
|
|
2
|
-
|
|
3
2
|
//#region src/character-class-and-skill/types.d.ts
|
|
3
|
+
type CharacterClass = 'barbarian' | 'crusader' | 'demon-hunter' | 'monk' | 'necromancer' | 'witch-doctor' | 'wizard';
|
|
4
4
|
interface CharacterClassResponse {
|
|
5
5
|
femaleName: string;
|
|
6
6
|
icon: string;
|
|
@@ -8,7 +8,7 @@ interface CharacterClassResponse {
|
|
|
8
8
|
name: string;
|
|
9
9
|
skillCategories: Array<SkillCategory>;
|
|
10
10
|
skills: Record<'active' | 'passive', Array<Skill>>;
|
|
11
|
-
slug:
|
|
11
|
+
slug: CharacterClass;
|
|
12
12
|
}
|
|
13
13
|
interface SkillResponse {
|
|
14
14
|
runes: Array<Rune>;
|
|
@@ -43,14 +43,14 @@ interface SkillCategory {
|
|
|
43
43
|
* @param characterClassSlug The slug of the character class.
|
|
44
44
|
* @returns The character class resource. See {@link CharacterClassResponse}.
|
|
45
45
|
*/
|
|
46
|
-
declare function characterClass(characterClassSlug:
|
|
46
|
+
declare function characterClass(characterClassSlug: CharacterClass): Resource<CharacterClassResponse>;
|
|
47
47
|
/**
|
|
48
48
|
* Returns the skill information for the specified character class and skill slugs.
|
|
49
49
|
* @param characterClassSlug The slug of the character class.
|
|
50
50
|
* @param skillSlug The slug of the skill.
|
|
51
51
|
* @returns The skill resource. See {@link SkillResponse}.
|
|
52
52
|
*/
|
|
53
|
-
declare function skill(characterClassSlug:
|
|
53
|
+
declare function skill(characterClassSlug: CharacterClass, skillSlug: string): Resource<SkillResponse>;
|
|
54
54
|
//#endregion
|
|
55
|
-
export { SkillResponse as i, skill as n,
|
|
56
|
-
//# sourceMappingURL=index-
|
|
55
|
+
export { SkillResponse as a, CharacterClassResponse as i, skill as n, CharacterClass as r, characterClass as t };
|
|
56
|
+
//# sourceMappingURL=index-BQEnnsWA.d.ts.map
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { Resource } from "@blizzard-api/core";
|
|
2
|
-
|
|
3
2
|
//#region src/item-type/types.d.ts
|
|
4
|
-
|
|
3
|
+
type ItemTypeIndexResponse = Array<ItemTypeIndex>;
|
|
4
|
+
type ItemTypeResponse = Array<ItemType>;
|
|
5
|
+
interface ItemType {
|
|
6
|
+
icon: string;
|
|
5
7
|
id: string;
|
|
6
8
|
name: string;
|
|
7
9
|
path: string;
|
|
10
|
+
slug: string;
|
|
8
11
|
}
|
|
9
|
-
interface
|
|
10
|
-
icon: string;
|
|
12
|
+
interface ItemTypeIndex {
|
|
11
13
|
id: string;
|
|
12
14
|
name: string;
|
|
13
15
|
path: string;
|
|
14
|
-
slug: string;
|
|
15
16
|
}
|
|
16
17
|
//#endregion
|
|
17
18
|
//#region src/item-type/index.d.ts
|
|
@@ -20,12 +21,12 @@ interface ItemTypeResponse {
|
|
|
20
21
|
* @param itemTypeSlug The slug of the item type, example: "sword2h"
|
|
21
22
|
* @returns The item type resource. See {@link ItemTypeResponse}.
|
|
22
23
|
*/
|
|
23
|
-
declare function itemType(itemTypeSlug: string): Resource<
|
|
24
|
+
declare function itemType(itemTypeSlug: string): Resource<ItemTypeResponse>;
|
|
24
25
|
/**
|
|
25
26
|
* Returns the item type index.
|
|
26
27
|
* @returns The item type index resource. See {@link ItemTypeIndexResponse}.
|
|
27
28
|
*/
|
|
28
|
-
declare function itemTypeIndex(): Resource<
|
|
29
|
+
declare function itemTypeIndex(): Resource<ItemTypeIndexResponse>;
|
|
29
30
|
//#endregion
|
|
30
31
|
export { ItemTypeResponse as i, itemTypeIndex as n, ItemTypeIndexResponse as r, itemType as t };
|
|
31
|
-
//# sourceMappingURL=index-
|
|
32
|
+
//# sourceMappingURL=index-Bu-d9xlV.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Href, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
-
|
|
3
2
|
//#region src/game-data/types.d.ts
|
|
4
3
|
interface EraIndexResponse extends ResponseBase {
|
|
5
4
|
current_era: number;
|
|
@@ -12,7 +11,9 @@ interface EraLeaderboardResponse extends ResponseBase {
|
|
|
12
11
|
era: number;
|
|
13
12
|
generated_by: string;
|
|
14
13
|
greater_rift: boolean;
|
|
15
|
-
greater_rift_solo_class
|
|
14
|
+
greater_rift_solo_class?: string;
|
|
15
|
+
greater_rift_team_size?: number;
|
|
16
|
+
hardcore?: boolean;
|
|
16
17
|
key: string;
|
|
17
18
|
last_update_time: string;
|
|
18
19
|
row: Array<Row>;
|
|
@@ -34,9 +35,18 @@ interface SeasonIndexResponse extends ResponseBase {
|
|
|
34
35
|
service_season_state: string;
|
|
35
36
|
}
|
|
36
37
|
interface SeasonLeaderboardResponse extends ResponseBase {
|
|
37
|
-
achievement_points
|
|
38
|
+
achievement_points?: boolean;
|
|
38
39
|
column: Array<Column>;
|
|
40
|
+
conquest?: boolean;
|
|
41
|
+
conquest_desc?: string;
|
|
42
|
+
conquest_icon_id?: string;
|
|
43
|
+
conquest_id?: number;
|
|
44
|
+
conquest_name?: string;
|
|
39
45
|
generated_by: string;
|
|
46
|
+
greater_rift?: boolean;
|
|
47
|
+
greater_rift_solo_class?: string;
|
|
48
|
+
greater_rift_team_size?: number;
|
|
49
|
+
hardcore?: boolean;
|
|
40
50
|
key: string;
|
|
41
51
|
last_update_time: string;
|
|
42
52
|
row: Array<Row>;
|
|
@@ -54,7 +64,7 @@ interface Column {
|
|
|
54
64
|
id: LeaderboardId;
|
|
55
65
|
label: null | string;
|
|
56
66
|
order?: number;
|
|
57
|
-
type: 'DATETIME' | 'NUMBER' | 'STRING';
|
|
67
|
+
type: 'DATETIME' | 'NUMBER' | 'SPAN_MS' | 'STRING';
|
|
58
68
|
}
|
|
59
69
|
interface EraLeaderboard {
|
|
60
70
|
hardcore?: boolean;
|
|
@@ -70,9 +80,9 @@ interface Leaderboard {
|
|
|
70
80
|
}
|
|
71
81
|
type LeaderboardId = 'AchievementPoints' | 'BattleTag' | 'ClanName' | 'CompletedTime' | 'GameAccount' | 'HeroBattleTag' | 'HeroClanTag' | 'HeroClass' | 'HeroGender' | 'HeroId' | 'HeroLevel' | 'HeroVisualItems' | 'ParagonLevel' | 'Rank' | 'RiftLevel' | 'RiftTime';
|
|
72
82
|
interface Player {
|
|
73
|
-
accountId
|
|
83
|
+
accountId?: number;
|
|
74
84
|
data: Array<RowData>;
|
|
75
|
-
key
|
|
85
|
+
key?: string;
|
|
76
86
|
}
|
|
77
87
|
interface Row {
|
|
78
88
|
data: Array<RowData>;
|
|
@@ -128,4 +138,4 @@ declare function seasonIndex(): Resource<SeasonIndexResponse>;
|
|
|
128
138
|
declare function seasonLeaderboard(id: number, leaderboard: string): Resource<SeasonLeaderboardResponse>;
|
|
129
139
|
//#endregion
|
|
130
140
|
export { seasonIndex as a, EraLeaderboardResponse as c, SeasonLeaderboardResponse as d, SeasonResponse as f, season as i, EraResponse as l, eraIndex as n, seasonLeaderboard as o, eraLeaderboard as r, EraIndexResponse as s, era as t, SeasonIndexResponse as u };
|
|
131
|
-
//# sourceMappingURL=index-
|
|
141
|
+
//# sourceMappingURL=index-CEmEUtwX.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Resource } from "@blizzard-api/core";
|
|
2
|
-
|
|
3
2
|
//#region src/item/types.d.ts
|
|
4
3
|
interface Attributes {
|
|
5
4
|
other: Array<unknown>;
|
|
@@ -51,4 +50,4 @@ interface Type {
|
|
|
51
50
|
declare function item(itemSlugAndId: string): Resource<ItemResponse>;
|
|
52
51
|
//#endregion
|
|
53
52
|
export { RandomAffix as a, Primary as i, Attributes as n, Type as o, ItemResponse as r, item as t };
|
|
54
|
-
//# sourceMappingURL=index-
|
|
53
|
+
//# sourceMappingURL=index-CgPqa46U.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Resource } from "@blizzard-api/core";
|
|
2
|
-
|
|
3
2
|
//#region src/artisan-and-recipe/types.d.ts
|
|
4
3
|
interface ArtisanResponse {
|
|
5
4
|
name: string;
|
|
6
5
|
portrait: string;
|
|
7
|
-
slug:
|
|
6
|
+
slug: Artisans;
|
|
8
7
|
training: Training;
|
|
9
8
|
}
|
|
9
|
+
type Artisans = 'blacksmith' | 'jeweler' | 'mystic';
|
|
10
10
|
interface RecipeResponse {
|
|
11
11
|
cost: number;
|
|
12
12
|
id: string;
|
|
@@ -49,14 +49,14 @@ interface Training {
|
|
|
49
49
|
* @param artisanSlug The slug of the artisan.
|
|
50
50
|
* @returns The artisan resource. See {@link ArtisanResponse}.
|
|
51
51
|
*/
|
|
52
|
-
declare function artisan(artisanSlug:
|
|
52
|
+
declare function artisan(artisanSlug: Artisans): Resource<ArtisanResponse>;
|
|
53
53
|
/**
|
|
54
54
|
* Returns the recipe information for the specified artisan and recipe slugs.
|
|
55
55
|
* @param artisanSlug The slug of the artisan.
|
|
56
56
|
* @param recipeSlug The slug of the recipe.
|
|
57
57
|
* @returns The recipe resource. See {@link RecipeResponse}.
|
|
58
58
|
*/
|
|
59
|
-
declare function recipe(artisanSlug:
|
|
59
|
+
declare function recipe(artisanSlug: Artisans, recipeSlug: string): Resource<RecipeResponse>;
|
|
60
60
|
//#endregion
|
|
61
|
-
export { RecipeResponse as i, recipe as n, ArtisanResponse as r, artisan as t };
|
|
62
|
-
//# sourceMappingURL=index-
|
|
61
|
+
export { RecipeResponse as a, Artisans as i, recipe as n, ArtisanResponse as r, artisan as t };
|
|
62
|
+
//# sourceMappingURL=index-CuXladQR.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Resource } from "@blizzard-api/core";
|
|
2
|
-
|
|
3
2
|
//#region src/follower/types.d.ts
|
|
3
|
+
type Follower = 'enchantress' | 'scoundrel' | 'templar';
|
|
4
4
|
interface FollowerResponse {
|
|
5
5
|
name: string;
|
|
6
6
|
portrait: string;
|
|
7
7
|
realName: string;
|
|
8
8
|
skills: Array<Skill>;
|
|
9
|
-
slug:
|
|
9
|
+
slug: Follower;
|
|
10
10
|
}
|
|
11
11
|
interface Skill {
|
|
12
12
|
description: string;
|
|
@@ -24,7 +24,7 @@ interface Skill {
|
|
|
24
24
|
* @param followerSlug The slug of the follower.
|
|
25
25
|
* @returns The follower resource. See {@link FollowerResponse}.
|
|
26
26
|
*/
|
|
27
|
-
declare function follower(followerSlug:
|
|
27
|
+
declare function follower(followerSlug: Follower): Resource<FollowerResponse>;
|
|
28
28
|
//#endregion
|
|
29
|
-
export {
|
|
30
|
-
//# sourceMappingURL=index-
|
|
29
|
+
export { Follower as n, FollowerResponse as r, follower as t };
|
|
30
|
+
//# sourceMappingURL=index-DGCuVzh2.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Resource } from "@blizzard-api/core";
|
|
2
|
-
|
|
3
2
|
//#region src/act/types.d.ts
|
|
4
3
|
interface ActIndexResponse {
|
|
5
4
|
acts: Array<Act>;
|
|
@@ -36,4 +35,4 @@ declare function act(actId: number): Resource<ActResponse>;
|
|
|
36
35
|
declare function actIndex(): Resource<ActIndexResponse>;
|
|
37
36
|
//#endregion
|
|
38
37
|
export { ActResponse as i, actIndex as n, ActIndexResponse as r, act as t };
|
|
39
|
-
//# sourceMappingURL=index-
|
|
38
|
+
//# sourceMappingURL=index-DuQ64drg.d.ts.map
|
|
@@ -1,40 +1,24 @@
|
|
|
1
1
|
import { Resource } from "@blizzard-api/core";
|
|
2
|
-
|
|
3
2
|
//#region src/profile/types.d.ts
|
|
4
3
|
interface AccountHeroFollowerItemsResponse {
|
|
5
|
-
enchantress
|
|
6
|
-
scoundrel
|
|
7
|
-
templar
|
|
4
|
+
enchantress?: Record<string, FollowerItem>;
|
|
5
|
+
scoundrel?: Record<string, FollowerItem>;
|
|
6
|
+
templar?: Record<string, FollowerItem>;
|
|
8
7
|
}
|
|
9
8
|
interface AccountHeroItemsResponse {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
id: string;
|
|
24
|
-
isSeasonRequiredToDrop: boolean;
|
|
25
|
-
itemLevel: number;
|
|
26
|
-
maxDamage: number;
|
|
27
|
-
minDamage: number;
|
|
28
|
-
name: string;
|
|
29
|
-
openSockets: number;
|
|
30
|
-
requiredLevel: number;
|
|
31
|
-
seasonRequiredToDrop: number;
|
|
32
|
-
set?: Set;
|
|
33
|
-
slots: string;
|
|
34
|
-
stackSizeMax: number;
|
|
35
|
-
tooltipParams: string;
|
|
36
|
-
type: Record<string, boolean | string>;
|
|
37
|
-
typeName: string;
|
|
9
|
+
bracers?: AccountHeroItem;
|
|
10
|
+
feet?: AccountHeroItem;
|
|
11
|
+
hands?: AccountHeroItem;
|
|
12
|
+
head?: AccountHeroItem;
|
|
13
|
+
leftFinger?: AccountHeroItem;
|
|
14
|
+
legs?: AccountHeroItem;
|
|
15
|
+
mainHand?: AccountHeroItem;
|
|
16
|
+
neck?: AccountHeroItem;
|
|
17
|
+
offHand?: AccountHeroItem;
|
|
18
|
+
rightFinger?: AccountHeroItem;
|
|
19
|
+
shoulders?: AccountHeroItem;
|
|
20
|
+
torso?: AccountHeroItem;
|
|
21
|
+
waist?: AccountHeroItem;
|
|
38
22
|
}
|
|
39
23
|
interface AccountHeroResponse {
|
|
40
24
|
alive: boolean;
|
|
@@ -85,12 +69,47 @@ interface AccountResponse {
|
|
|
85
69
|
seasonalProfiles: Record<`season${number}`, Season>;
|
|
86
70
|
timePlayed: TimePlayed;
|
|
87
71
|
}
|
|
72
|
+
interface Item {
|
|
73
|
+
displayColor?: DisplayColor;
|
|
74
|
+
dyeColor?: Dye;
|
|
75
|
+
icon: string;
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
tooltipParams: string;
|
|
79
|
+
transmogItem?: Item;
|
|
80
|
+
}
|
|
88
81
|
interface AccountHeroItem {
|
|
82
|
+
accountBound: boolean;
|
|
83
|
+
armor: number;
|
|
84
|
+
attacksPerSecond: number;
|
|
85
|
+
attributes?: Attributes;
|
|
86
|
+
attributesHtml?: Attributes;
|
|
87
|
+
augmentation?: string;
|
|
88
|
+
blockChance?: string;
|
|
89
|
+
craftedBy?: CraftedBy;
|
|
90
|
+
damage?: string;
|
|
91
|
+
displayColor: DisplayColor;
|
|
92
|
+
dps?: string;
|
|
93
|
+
elementalType?: string;
|
|
94
|
+
flavorText?: string;
|
|
95
|
+
gems?: Array<Gem>;
|
|
89
96
|
icon: string;
|
|
90
97
|
id: string;
|
|
98
|
+
isSeasonRequiredToDrop: boolean;
|
|
99
|
+
itemLevel: number;
|
|
100
|
+
maxDamage: number;
|
|
101
|
+
minDamage: number;
|
|
91
102
|
name: string;
|
|
92
|
-
|
|
93
|
-
|
|
103
|
+
openSockets: number;
|
|
104
|
+
requiredLevel: number;
|
|
105
|
+
seasonRequiredToDrop: number;
|
|
106
|
+
set?: Set;
|
|
107
|
+
slots: string;
|
|
108
|
+
stackSizeMax: number;
|
|
109
|
+
tooltipParams: string;
|
|
110
|
+
transmog?: Item;
|
|
111
|
+
type: Record<string, boolean | string>;
|
|
112
|
+
typeName: string;
|
|
94
113
|
}
|
|
95
114
|
interface AccountResponseKills {
|
|
96
115
|
elites: number;
|
|
@@ -102,7 +121,7 @@ interface Act {
|
|
|
102
121
|
completedQuests: Array<CompletedQuest>;
|
|
103
122
|
}
|
|
104
123
|
interface Active {
|
|
105
|
-
rune
|
|
124
|
+
rune?: Rune;
|
|
106
125
|
skill: Skill;
|
|
107
126
|
}
|
|
108
127
|
interface Artisan {
|
|
@@ -133,15 +152,12 @@ interface Dye {
|
|
|
133
152
|
tooltipParams: string;
|
|
134
153
|
}
|
|
135
154
|
interface Enchantress {
|
|
136
|
-
items:
|
|
155
|
+
items: FollowerItems;
|
|
137
156
|
level: number;
|
|
138
157
|
skills: Array<unknown>;
|
|
139
158
|
slug: string;
|
|
140
159
|
stats: Stats;
|
|
141
160
|
}
|
|
142
|
-
interface EnchantressItems {
|
|
143
|
-
mainHand: Item;
|
|
144
|
-
}
|
|
145
161
|
interface FollowerItem {
|
|
146
162
|
accountBound: boolean;
|
|
147
163
|
armor: number;
|
|
@@ -154,7 +170,9 @@ interface FollowerItem {
|
|
|
154
170
|
displayColor: string;
|
|
155
171
|
dps?: string;
|
|
156
172
|
dye?: Dye;
|
|
173
|
+
elementalType?: string;
|
|
157
174
|
flavorText?: string;
|
|
175
|
+
gems?: Array<Gem>;
|
|
158
176
|
icon: string;
|
|
159
177
|
id: string;
|
|
160
178
|
isSeasonRequiredToDrop: boolean;
|
|
@@ -172,6 +190,22 @@ interface FollowerItem {
|
|
|
172
190
|
type: Record<string, boolean | string>;
|
|
173
191
|
typeName: string;
|
|
174
192
|
}
|
|
193
|
+
interface FollowerItems {
|
|
194
|
+
bracers?: Item;
|
|
195
|
+
feet?: Item;
|
|
196
|
+
hands?: Item;
|
|
197
|
+
head?: Item;
|
|
198
|
+
leftFinger?: Item;
|
|
199
|
+
legs?: Item;
|
|
200
|
+
mainHand?: Item;
|
|
201
|
+
neck?: Item;
|
|
202
|
+
offHand?: Item;
|
|
203
|
+
rightFinger?: Item;
|
|
204
|
+
shoulders?: Item;
|
|
205
|
+
special?: Item;
|
|
206
|
+
torso?: Item;
|
|
207
|
+
waist?: Item;
|
|
208
|
+
}
|
|
175
209
|
interface Followers {
|
|
176
210
|
enchantress: Enchantress;
|
|
177
211
|
scoundrel: Scoundrel;
|
|
@@ -181,7 +215,7 @@ interface Gem {
|
|
|
181
215
|
attributes: Array<string>;
|
|
182
216
|
isGem: boolean;
|
|
183
217
|
isJewel: boolean;
|
|
184
|
-
item:
|
|
218
|
+
item: ReagentItem;
|
|
185
219
|
jewelRank?: number;
|
|
186
220
|
jewelSecondaryUnlockRank?: number;
|
|
187
221
|
}
|
|
@@ -209,14 +243,6 @@ interface HeroProgression {
|
|
|
209
243
|
act4: Act;
|
|
210
244
|
act5: Act;
|
|
211
245
|
}
|
|
212
|
-
interface Item {
|
|
213
|
-
displayColor?: DisplayColor;
|
|
214
|
-
dyeColor?: Dye;
|
|
215
|
-
icon: string;
|
|
216
|
-
id: string;
|
|
217
|
-
name: string;
|
|
218
|
-
tooltipParams: string;
|
|
219
|
-
}
|
|
220
246
|
interface ItemProduced {
|
|
221
247
|
id: string;
|
|
222
248
|
path: string;
|
|
@@ -235,9 +261,16 @@ interface Progression {
|
|
|
235
261
|
act5: boolean;
|
|
236
262
|
}
|
|
237
263
|
interface Reagent {
|
|
238
|
-
item:
|
|
264
|
+
item: ReagentItem;
|
|
239
265
|
quantity: number;
|
|
240
266
|
}
|
|
267
|
+
interface ReagentItem {
|
|
268
|
+
icon: string;
|
|
269
|
+
id: string;
|
|
270
|
+
name: string;
|
|
271
|
+
path: string;
|
|
272
|
+
slug: string;
|
|
273
|
+
}
|
|
241
274
|
interface Rune {
|
|
242
275
|
description: string;
|
|
243
276
|
descriptionHtml: string;
|
|
@@ -247,7 +280,7 @@ interface Rune {
|
|
|
247
280
|
type: string;
|
|
248
281
|
}
|
|
249
282
|
interface Scoundrel {
|
|
250
|
-
items:
|
|
283
|
+
items: FollowerItems;
|
|
251
284
|
level: number;
|
|
252
285
|
skills: Array<Skill>;
|
|
253
286
|
slug: string;
|
|
@@ -287,23 +320,12 @@ interface Stats {
|
|
|
287
320
|
magicFind: number;
|
|
288
321
|
}
|
|
289
322
|
interface Templar {
|
|
290
|
-
items:
|
|
323
|
+
items: FollowerItems;
|
|
291
324
|
level: number;
|
|
292
325
|
skills: Array<Skill>;
|
|
293
326
|
slug: string;
|
|
294
327
|
stats: Stats;
|
|
295
328
|
}
|
|
296
|
-
interface TemplarItems {
|
|
297
|
-
bracers: Item;
|
|
298
|
-
feet: Item;
|
|
299
|
-
hands: Item;
|
|
300
|
-
head: Item;
|
|
301
|
-
mainHand: Item;
|
|
302
|
-
offHand: Item;
|
|
303
|
-
shoulders: Item;
|
|
304
|
-
torso: Item;
|
|
305
|
-
waist: Item;
|
|
306
|
-
}
|
|
307
329
|
interface TimePlayed {
|
|
308
330
|
barbarian: number;
|
|
309
331
|
crusader: number;
|
|
@@ -339,9 +361,9 @@ declare function accountHeroFollowerItems(battleTag: string, heroId: number): Re
|
|
|
339
361
|
* Returns the items for the specified battle tag and hero ID.
|
|
340
362
|
* @param battleTag The battle tag of the account.
|
|
341
363
|
* @param heroId The ID of the hero.
|
|
342
|
-
* @returns The hero items resource. See {@link
|
|
364
|
+
* @returns The hero items resource. See {@link AccountHeroItemsResponse}.
|
|
343
365
|
*/
|
|
344
|
-
declare function accountHeroItems(battleTag: string, heroId: number): Resource<
|
|
366
|
+
declare function accountHeroItems(battleTag: string, heroId: number): Resource<AccountHeroItemsResponse>;
|
|
345
367
|
//#endregion
|
|
346
|
-
export { AccountHeroFollowerItemsResponse as a, AccountResponse as c, accountHeroItems as i, accountHero as n, AccountHeroItemsResponse as o, accountHeroFollowerItems as r, AccountHeroResponse as s, account as t };
|
|
347
|
-
//# sourceMappingURL=index-
|
|
368
|
+
export { AccountHeroFollowerItemsResponse as a, AccountResponse as c, accountHeroItems as i, Item as l, accountHero as n, AccountHeroItemsResponse as o, accountHeroFollowerItems as r, AccountHeroResponse as s, account as t };
|
|
369
|
+
//# sourceMappingURL=index-OGh-NDHj.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { i as ActResponse, n as actIndex, r as ActIndexResponse, t as act } from "./index-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as FollowerResponse, t as follower } from "./index-
|
|
5
|
-
import { a as seasonIndex, c as EraLeaderboardResponse, d as SeasonLeaderboardResponse, f as SeasonResponse, i as season, l as EraResponse, n as eraIndex, o as seasonLeaderboard, r as eraLeaderboard, s as EraIndexResponse, t as era, u as SeasonIndexResponse } from "./index-
|
|
6
|
-
import { i as ItemTypeResponse, n as itemTypeIndex, r as ItemTypeIndexResponse, t as itemType } from "./index-
|
|
7
|
-
import { a as RandomAffix, i as Primary, n as Attributes, o as Type, r as ItemResponse, t as item } from "./index-
|
|
8
|
-
import { a as AccountHeroFollowerItemsResponse, c as AccountResponse, i as accountHeroItems, n as accountHero, o as AccountHeroItemsResponse, r as accountHeroFollowerItems, s as AccountHeroResponse, t as account } from "./index-
|
|
9
|
-
|
|
1
|
+
import { i as ActResponse, n as actIndex, r as ActIndexResponse, t as act } from "./index-DuQ64drg.js";
|
|
2
|
+
import { a as RecipeResponse, i as Artisans, n as recipe, r as ArtisanResponse, t as artisan } from "./index-CuXladQR.js";
|
|
3
|
+
import { a as SkillResponse, i as CharacterClassResponse, n as skill, r as CharacterClass, t as characterClass } from "./index-BQEnnsWA.js";
|
|
4
|
+
import { n as Follower, r as FollowerResponse, t as follower } from "./index-DGCuVzh2.js";
|
|
5
|
+
import { a as seasonIndex, c as EraLeaderboardResponse, d as SeasonLeaderboardResponse, f as SeasonResponse, i as season, l as EraResponse, n as eraIndex, o as seasonLeaderboard, r as eraLeaderboard, s as EraIndexResponse, t as era, u as SeasonIndexResponse } from "./index-CEmEUtwX.js";
|
|
6
|
+
import { i as ItemTypeResponse, n as itemTypeIndex, r as ItemTypeIndexResponse, t as itemType } from "./index-Bu-d9xlV.js";
|
|
7
|
+
import { a as RandomAffix, i as Primary, n as Attributes, o as Type, r as ItemResponse, t as item } from "./index-CgPqa46U.js";
|
|
8
|
+
import { a as AccountHeroFollowerItemsResponse, c as AccountResponse, i as accountHeroItems, l as Item, n as accountHero, o as AccountHeroItemsResponse, r as accountHeroFollowerItems, s as AccountHeroResponse, t as account } from "./index-OGh-NDHj.js";
|
|
10
9
|
//#region src/index.d.ts
|
|
11
10
|
declare const d3: {
|
|
12
11
|
act: typeof act;
|
|
@@ -31,5 +30,5 @@ declare const d3: {
|
|
|
31
30
|
seasonLeaderboard: typeof seasonLeaderboard;
|
|
32
31
|
};
|
|
33
32
|
//#endregion
|
|
34
|
-
export { AccountHeroFollowerItemsResponse, AccountHeroItemsResponse, AccountHeroResponse, AccountResponse, ActIndexResponse, ActResponse, ArtisanResponse, Attributes, CharacterClassResponse, EraIndexResponse, EraLeaderboardResponse, EraResponse, FollowerResponse, ItemResponse, ItemTypeIndexResponse, ItemTypeResponse, Primary, RandomAffix, RecipeResponse, SeasonIndexResponse, SeasonLeaderboardResponse, SeasonResponse, SkillResponse, Type, account, accountHero, accountHeroFollowerItems, accountHeroItems, act, actIndex, artisan, characterClass, d3, d3 as default, era, eraIndex, eraLeaderboard, follower, item, itemType, itemTypeIndex, recipe, season, seasonIndex, seasonLeaderboard, skill };
|
|
33
|
+
export { type AccountHeroFollowerItemsResponse, type AccountHeroItemsResponse, type AccountHeroResponse, type AccountResponse, type ActIndexResponse, type ActResponse, type ArtisanResponse, type Artisans, type Attributes, type CharacterClass, type CharacterClassResponse, type EraIndexResponse, type EraLeaderboardResponse, type EraResponse, type Follower, type FollowerResponse, type Item, type ItemResponse, type ItemTypeIndexResponse, type ItemTypeResponse, type Primary, type RandomAffix, type RecipeResponse, type SeasonIndexResponse, type SeasonLeaderboardResponse, type SeasonResponse, type SkillResponse, type Type, account, accountHero, accountHeroFollowerItems, accountHeroItems, act, actIndex, artisan, characterClass, d3, d3 as default, era, eraIndex, eraLeaderboard, follower, item, itemType, itemTypeIndex, recipe, season, seasonIndex, seasonLeaderboard, skill };
|
|
35
34
|
//# 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 { act, actIndex } from './act/index';\r\nimport { artisan, recipe } from './artisan-and-recipe/index';\r\nimport { characterClass, skill } from './character-class-and-skill/index';\r\nimport { follower } from './follower/index';\r\nimport { era, eraIndex, eraLeaderboard, season, seasonIndex, seasonLeaderboard } from './game-data/index';\r\nimport { itemType, itemTypeIndex } from './item-type/index';\r\nimport { item } from './item/index';\r\nimport { account, accountHero, accountHeroFollowerItems, accountHeroItems } from './profile/index';\r\n\r\nconst d3 = {\r\n //Act\r\n act,\r\n actIndex,\r\n //Artisan and Recipe\r\n artisan,\r\n recipe,\r\n //Follower\r\n follower,\r\n //Character Class and Skill\r\n characterClass,\r\n skill,\r\n //Item Type\r\n itemType,\r\n itemTypeIndex,\r\n //Item\r\n item,\r\n //Profile\r\n account,\r\n accountHero,\r\n accountHeroFollowerItems,\r\n accountHeroItems,\r\n //Game Data\r\n era,\r\n eraIndex,\r\n eraLeaderboard,\r\n season,\r\n seasonIndex,\r\n seasonLeaderboard,\r\n};\r\nexport default d3;\r\nexport { d3 };\r\n\r\n//Act\r\nexport * from './act/index';\r\nexport type * from './act/types';\r\n//Artisan and Recipe\r\nexport * from './artisan-and-recipe/index';\r\nexport type * from './artisan-and-recipe/types';\r\n//Character Class and Skill\r\nexport * from './character-class-and-skill/index';\r\nexport type * from './character-class-and-skill/types';\r\n//Follower\r\nexport * from './follower/index';\r\nexport type * from './follower/types';\r\n//Game Data\r\nexport * from './game-data/index';\r\nexport type * from './game-data/types';\r\n//Item\r\nexport * from './item/index';\r\nexport type * from './item/types';\r\n//Item Type\r\nexport * from './item-type/index';\r\nexport type * from './item-type/types';\r\n//Profile\r\nexport * from './profile/index';\r\nexport type * from './profile/types';\r\n"],"mappings":";;;;;;;;;AASA,MAAM,KAAK;CAET;CACA;CAEA;CACA;CAEA;CAEA;CACA;CAEA;CACA;CAEA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { act, actIndex } from './act/index';\r\nimport { artisan, recipe } from './artisan-and-recipe/index';\r\nimport { characterClass, skill } from './character-class-and-skill/index';\r\nimport { follower } from './follower/index';\r\nimport { era, eraIndex, eraLeaderboard, season, seasonIndex, seasonLeaderboard } from './game-data/index';\r\nimport { itemType, itemTypeIndex } from './item-type/index';\r\nimport { item } from './item/index';\r\nimport { account, accountHero, accountHeroFollowerItems, accountHeroItems } from './profile/index';\r\n\r\nconst d3 = {\r\n //Act\r\n act,\r\n actIndex,\r\n //Artisan and Recipe\r\n artisan,\r\n recipe,\r\n //Follower\r\n follower,\r\n //Character Class and Skill\r\n characterClass,\r\n skill,\r\n //Item Type\r\n itemType,\r\n itemTypeIndex,\r\n //Item\r\n item,\r\n //Profile\r\n account,\r\n accountHero,\r\n accountHeroFollowerItems,\r\n accountHeroItems,\r\n //Game Data\r\n era,\r\n eraIndex,\r\n eraLeaderboard,\r\n season,\r\n seasonIndex,\r\n seasonLeaderboard,\r\n};\r\nexport default d3;\r\nexport { d3 };\r\n\r\n//Act\r\nexport * from './act/index';\r\nexport type * from './act/types';\r\n//Artisan and Recipe\r\nexport * from './artisan-and-recipe/index';\r\nexport type * from './artisan-and-recipe/types';\r\n//Character Class and Skill\r\nexport * from './character-class-and-skill/index';\r\nexport type * from './character-class-and-skill/types';\r\n//Follower\r\nexport * from './follower/index';\r\nexport type * from './follower/types';\r\n//Game Data\r\nexport * from './game-data/index';\r\nexport type * from './game-data/types';\r\n//Item\r\nexport * from './item/index';\r\nexport type * from './item/types';\r\n//Item Type\r\nexport * from './item-type/index';\r\nexport type * from './item-type/types';\r\n//Profile\r\nexport * from './profile/index';\r\nexport type * from './profile/types';\r\n"],"mappings":";;;;;;;;;AASA,MAAM,KAAK;CAET;CACA;CAEA;CACA;CAEA;CAEA;CACA;CAEA;CACA;CAEA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;AACF"}
|
package/dist/item/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as item } from "../index-
|
|
1
|
+
import { t as item } from "../index-CgPqa46U.js";
|
|
2
2
|
export { item };
|
package/dist/item/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/item/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { d3BasePath } from '@blizzard-api/core';\nimport type { ItemResponse } from './types';\n\n/**\n * Returns the item information for the specified item slug and ID.\n * @param itemSlugAndId The slug and ID of the item, example: \"corrupted-ashbringer-Unique_Sword_2H_104_x1\".\n * @returns The item resource. See {@link ItemResponse}.\n */\nexport function item(itemSlugAndId: string): Resource<ItemResponse> {\n return {\n path: `${d3BasePath}/item/${itemSlugAndId}`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,KAAK,eAA+C;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/item/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { d3BasePath } from '@blizzard-api/core';\nimport type { ItemResponse } from './types';\n\n/**\n * Returns the item information for the specified item slug and ID.\n * @param itemSlugAndId The slug and ID of the item, example: \"corrupted-ashbringer-Unique_Sword_2H_104_x1\".\n * @returns The item resource. See {@link ItemResponse}.\n */\nexport function item(itemSlugAndId: string): Resource<ItemResponse> {\n return {\n path: `${d3BasePath}/item/${itemSlugAndId}`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,KAAK,eAA+C;CAClE,OAAO,EACL,MAAM,GAAG,WAAW,QAAQ,gBAC9B;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as itemTypeIndex, t as itemType } from "../index-
|
|
1
|
+
import { n as itemTypeIndex, t as itemType } from "../index-Bu-d9xlV.js";
|
|
2
2
|
export { itemType, itemTypeIndex };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/item-type/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { d3BasePath } from '@blizzard-api/core';\nimport type { ItemTypeIndexResponse, ItemTypeResponse } from './types';\n\n/**\n * Returns the item type information for the specified item type slug.\n * @param itemTypeSlug The slug of the item type, example: \"sword2h\"\n * @returns The item type resource. See {@link ItemTypeResponse}.\n */\nexport function itemType(itemTypeSlug: string): Resource<
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/item-type/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { d3BasePath } from '@blizzard-api/core';\nimport type { ItemTypeIndexResponse, ItemTypeResponse } from './types';\n\n/**\n * Returns the item type information for the specified item type slug.\n * @param itemTypeSlug The slug of the item type, example: \"sword2h\"\n * @returns The item type resource. See {@link ItemTypeResponse}.\n */\nexport function itemType(itemTypeSlug: string): Resource<ItemTypeResponse> {\n return {\n path: `${d3BasePath}/item-type/${itemTypeSlug}`,\n };\n}\n\n/**\n * Returns the item type index.\n * @returns The item type index resource. See {@link ItemTypeIndexResponse}.\n */\nexport function itemTypeIndex(): Resource<ItemTypeIndexResponse> {\n return {\n path: `${d3BasePath}/item-type`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,SAAS,cAAkD;CACzE,OAAO,EACL,MAAM,GAAG,WAAW,aAAa,eACnC;AACF;;;;;AAMA,SAAgB,gBAAiD;CAC/D,OAAO,EACL,MAAM,GAAG,WAAW,YACtB;AACF"}
|
package/dist/profile/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as accountHeroItems, n as accountHero, r as accountHeroFollowerItems, t as account } from "../index-
|
|
1
|
+
import { i as accountHeroItems, n as accountHero, r as accountHeroFollowerItems, t as account } from "../index-OGh-NDHj.js";
|
|
2
2
|
export { account, accountHero, accountHeroFollowerItems, accountHeroItems };
|
package/dist/profile/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { d3ProfileBasePath } from "@blizzard-api/core";
|
|
|
6
6
|
* @returns The account resource. See {@link AccountResponse}.
|
|
7
7
|
*/
|
|
8
8
|
function account(battleTag) {
|
|
9
|
-
return { path: `${d3ProfileBasePath}/${encodeURIComponent(battleTag)}
|
|
9
|
+
return { path: `${d3ProfileBasePath}/${encodeURIComponent(battleTag)}/` };
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Returns the hero information for the specified battle tag and hero ID.
|
|
@@ -30,7 +30,7 @@ function accountHeroFollowerItems(battleTag, heroId) {
|
|
|
30
30
|
* Returns the items for the specified battle tag and hero ID.
|
|
31
31
|
* @param battleTag The battle tag of the account.
|
|
32
32
|
* @param heroId The ID of the hero.
|
|
33
|
-
* @returns The hero items resource. See {@link
|
|
33
|
+
* @returns The hero items resource. See {@link AccountHeroItemsResponse}.
|
|
34
34
|
*/
|
|
35
35
|
function accountHeroItems(battleTag, heroId) {
|
|
36
36
|
return { path: `${d3ProfileBasePath}/${encodeURIComponent(battleTag)}/hero/${heroId}/items` };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/profile/index.ts"],"sourcesContent":["import { d3ProfileBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/profile/index.ts"],"sourcesContent":["import { d3ProfileBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type {\n AccountHeroFollowerItemsResponse,\n AccountHeroItemsResponse,\n AccountHeroResponse,\n AccountResponse,\n} from './types';\n\n/**\n * Returns the account information for the specified battle tag.\n * @param battleTag The battle tag of the account.\n * @returns The account resource. See {@link AccountResponse}.\n */\nexport function account(battleTag: string): Resource<AccountResponse> {\n return {\n path: `${d3ProfileBasePath}/${encodeURIComponent(battleTag)}/`,\n };\n}\n\n/**\n * Returns the hero information for the specified battle tag and hero ID.\n * @param battleTag The battle tag of the account.\n * @param heroId The ID of the hero.\n * @returns The hero resource. See {@link AccountHeroResponse}.\n */\nexport function accountHero(battleTag: string, heroId: number): Resource<AccountHeroResponse> {\n return {\n path: `${d3ProfileBasePath}/${encodeURIComponent(battleTag)}/hero/${heroId}`,\n };\n}\n\n/**\n * Returns the follower items for the specified battle tag and hero ID.\n * @param battleTag The battle tag of the account.\n * @param heroId The ID of the hero.\n * @returns The follower items resource. See {@link AccountHeroFollowerItemsResponse}.\n */\nexport function accountHeroFollowerItems(\n battleTag: string,\n heroId: number,\n): Resource<AccountHeroFollowerItemsResponse> {\n return {\n path: `${d3ProfileBasePath}/${encodeURIComponent(battleTag)}/hero/${heroId}/follower-items`,\n };\n}\n\n/**\n * Returns the items for the specified battle tag and hero ID.\n * @param battleTag The battle tag of the account.\n * @param heroId The ID of the hero.\n * @returns The hero items resource. See {@link AccountHeroItemsResponse}.\n */\nexport function accountHeroItems(battleTag: string, heroId: number): Resource<AccountHeroItemsResponse> {\n return {\n path: `${d3ProfileBasePath}/${encodeURIComponent(battleTag)}/hero/${heroId}/items`,\n };\n}\n"],"mappings":";;;;;;;AAcA,SAAgB,QAAQ,WAA8C;CACpE,OAAO,EACL,MAAM,GAAG,kBAAkB,GAAG,mBAAmB,SAAS,EAAE,GAC9D;AACF;;;;;;;AAQA,SAAgB,YAAY,WAAmB,QAA+C;CAC5F,OAAO,EACL,MAAM,GAAG,kBAAkB,GAAG,mBAAmB,SAAS,EAAE,QAAQ,SACtE;AACF;;;;;;;AAQA,SAAgB,yBACd,WACA,QAC4C;CAC5C,OAAO,EACL,MAAM,GAAG,kBAAkB,GAAG,mBAAmB,SAAS,EAAE,QAAQ,OAAO,iBAC7E;AACF;;;;;;;AAQA,SAAgB,iBAAiB,WAAmB,QAAoD;CACtG,OAAO,EACL,MAAM,GAAG,kBAAkB,GAAG,mBAAmB,SAAS,EAAE,QAAQ,OAAO,QAC7E;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blizzard-api/d3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Putro",
|
|
6
6
|
"description": "A series of helpers to interact with the Diablo 3 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",
|
|
@@ -43,10 +44,10 @@
|
|
|
43
44
|
],
|
|
44
45
|
"dependencies": {},
|
|
45
46
|
"peerDependencies": {
|
|
46
|
-
"@blizzard-api/core": "4.
|
|
47
|
+
"@blizzard-api/core": "4.1.1"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
|
-
"@blizzard-api/core": "4.
|
|
50
|
+
"@blizzard-api/core": "4.1.1"
|
|
50
51
|
},
|
|
51
52
|
"scripts": {
|
|
52
53
|
"build": "tsdown",
|