@blizzard-api/d3 2.0.2 → 3.0.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.
@@ -0,0 +1,2 @@
1
+ import { n as actIndex, t as act } from "../index-DDdb6KdV.js";
2
+ export { act, actIndex };
@@ -0,0 +1,21 @@
1
+ import { d3BasePath } from "@blizzard-api/core";
2
+ //#region src/act/index.ts
3
+ /**
4
+ * Returns the act information for the specified act ID.
5
+ * @param actId The ID of the act.
6
+ * @returns The act resource. See {@link ActResponse}.
7
+ */
8
+ function act(actId) {
9
+ return { path: `${d3BasePath}/act/${actId}` };
10
+ }
11
+ /**
12
+ * Returns the index of acts.
13
+ * @returns The act index resource. See {@link ActIndexResponse}.
14
+ */
15
+ function actIndex() {
16
+ return { path: `${d3BasePath}/act` };
17
+ }
18
+ //#endregion
19
+ export { act, actIndex };
20
+
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;CACxD,OAAO,EACL,MAAM,GAAG,WAAW,OAAO,SAC5B;;;;;;AAOH,SAAgB,WAAuC;CACrD,OAAO,EACL,MAAM,GAAG,WAAW,OACrB"}
@@ -0,0 +1,2 @@
1
+ import { n as recipe, t as artisan } from "../index-B3XcHQEG.js";
2
+ export { artisan, recipe };
@@ -0,0 +1,23 @@
1
+ import { d3BasePath } from "@blizzard-api/core";
2
+ //#region src/artisan-and-recipe/index.ts
3
+ /**
4
+ * Returns the artisan information for the specified artisan slug.
5
+ * @param artisanSlug The slug of the artisan.
6
+ * @returns The artisan resource. See {@link ArtisanResponse}.
7
+ */
8
+ function artisan(artisanSlug) {
9
+ return { path: `${d3BasePath}/artisan/${artisanSlug}` };
10
+ }
11
+ /**
12
+ * Returns the recipe information for the specified artisan and recipe slugs.
13
+ * @param artisanSlug The slug of the artisan.
14
+ * @param recipeSlug The slug of the recipe.
15
+ * @returns The recipe resource. See {@link RecipeResponse}.
16
+ */
17
+ function recipe(artisanSlug, recipeSlug) {
18
+ return { path: `${d3BasePath}/artisan/${artisanSlug}/recipe/${recipeSlug}` };
19
+ }
20
+ //#endregion
21
+ export { artisan, recipe };
22
+
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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: string): 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: string, recipeSlug: string): Resource<RecipeResponse> {\n return {\n path: `${d3BasePath}/artisan/${artisanSlug}/recipe/${recipeSlug}`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,QAAQ,aAAgD;CACtE,OAAO,EACL,MAAM,GAAG,WAAW,WAAW,eAChC;;;;;;;;AASH,SAAgB,OAAO,aAAqB,YAA8C;CACxF,OAAO,EACL,MAAM,GAAG,WAAW,WAAW,YAAY,UAAU,cACtD"}
@@ -0,0 +1,2 @@
1
+ import { n as skill, t as characterClass } from "../index-nKhzpD4F.js";
2
+ export { characterClass, skill };
@@ -0,0 +1,23 @@
1
+ import { d3BasePath } from "@blizzard-api/core";
2
+ //#region src/character-class-and-skill/index.ts
3
+ /**
4
+ * Returns the character class information for the specified character class slug.
5
+ * @param characterClassSlug The slug of the character class.
6
+ * @returns The character class resource. See {@link CharacterClassResponse}.
7
+ */
8
+ function characterClass(characterClassSlug) {
9
+ return { path: `${d3BasePath}/character-class/${characterClassSlug}` };
10
+ }
11
+ /**
12
+ * Returns the skill information for the specified character class and skill slugs.
13
+ * @param characterClassSlug The slug of the character class.
14
+ * @param skillSlug The slug of the skill.
15
+ * @returns The skill resource. See {@link SkillResponse}.
16
+ */
17
+ function skill(characterClassSlug, skillSlug) {
18
+ return { path: `${d3BasePath}/hero/${characterClassSlug}/skill/${skillSlug}` };
19
+ }
20
+ //#endregion
21
+ export { characterClass, skill };
22
+
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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: string): Resource<CharacterClassResponse> {\n return {\n path: `${d3BasePath}/character-class/${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: string, skillSlug: string): Resource<SkillResponse> {\n return {\n path: `${d3BasePath}/hero/${characterClassSlug}/skill/${skillSlug}`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,eAAe,oBAA8D;CAC3F,OAAO,EACL,MAAM,GAAG,WAAW,mBAAmB,sBACxC;;;;;;;;AASH,SAAgB,MAAM,oBAA4B,WAA4C;CAC5F,OAAO,EACL,MAAM,GAAG,WAAW,QAAQ,mBAAmB,SAAS,aACzD"}
@@ -0,0 +1,2 @@
1
+ import { t as follower } from "../index-CbNO-aVd.js";
2
+ export { follower };
@@ -0,0 +1,14 @@
1
+ import { d3BasePath } from "@blizzard-api/core";
2
+ //#region src/follower/index.ts
3
+ /**
4
+ * Returns the follower information for the specified follower slug.
5
+ * @param followerSlug The slug of the follower.
6
+ * @returns The follower resource. See {@link FollowerResponse}.
7
+ */
8
+ function follower(followerSlug) {
9
+ return { path: `${d3BasePath}/follower/${followerSlug}` };
10
+ }
11
+ //#endregion
12
+ export { follower };
13
+
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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: string): Resource<FollowerResponse> {\n return {\n path: `${d3BasePath}/follower/${followerSlug}`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,SAAS,cAAkD;CACzE,OAAO,EACL,MAAM,GAAG,WAAW,YAAY,gBACjC"}
@@ -0,0 +1,2 @@
1
+ import { a as seasonIndex, i as season, n as eraIndex, o as seasonLeaderboard, r as eraLeaderboard, t as era } from "../index-Odfm-W__.js";
2
+ export { era, eraIndex, eraLeaderboard, season, seasonIndex, seasonLeaderboard };
@@ -0,0 +1,54 @@
1
+ import { d3GameDataBasePath } from "@blizzard-api/core";
2
+ //#region src/game-data/index.ts
3
+ /**
4
+ * Returns the era information for the specified era ID.
5
+ * @param id The ID of the era.
6
+ * @returns The era resource. See {@link EraResponse}.
7
+ */
8
+ function era(id) {
9
+ return { path: `${d3GameDataBasePath}/era/${id}` };
10
+ }
11
+ /**
12
+ * Returns the era index.
13
+ * @returns The era index resource. See {@link EraIndexResponse}.
14
+ */
15
+ function eraIndex() {
16
+ return { path: `${d3GameDataBasePath}/era` };
17
+ }
18
+ /**
19
+ * Returns the era leaderboard for the specified era ID and leaderboard.
20
+ * @param id The ID of the era.
21
+ * @param leaderboard The name of the leaderboard.
22
+ * @returns The era leaderboard resource. See {@link EraLeaderboardResponse}.
23
+ */
24
+ function eraLeaderboard(id, leaderboard) {
25
+ return { path: `${d3GameDataBasePath}/era/${id}/leaderboard/${leaderboard}` };
26
+ }
27
+ /**
28
+ * Returns the season information for the specified season ID.
29
+ * @param id The ID of the season.
30
+ * @returns The season resource. See {@link SeasonResponse}.
31
+ */
32
+ function season(id) {
33
+ return { path: `${d3GameDataBasePath}/season/${id}` };
34
+ }
35
+ /**
36
+ * Returns the season index.
37
+ * @returns The season index resource. See {@link SeasonIndexResponse}.
38
+ */
39
+ function seasonIndex() {
40
+ return { path: `${d3GameDataBasePath}/season` };
41
+ }
42
+ /**
43
+ * Returns the season leaderboard for the specified season ID and leaderboard.
44
+ * @param id The ID of the season.
45
+ * @param leaderboard The name of the leaderboard.
46
+ * @returns The season leaderboard resource. See {@link SeasonLeaderboardResponse}.
47
+ */
48
+ function seasonLeaderboard(id, leaderboard) {
49
+ return { path: `${d3GameDataBasePath}/season/${id}/leaderboard/${leaderboard}` };
50
+ }
51
+ //#endregion
52
+ export { era, eraIndex, eraLeaderboard, season, seasonIndex, seasonLeaderboard };
53
+
54
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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`,\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,MACpC;;;;;;AAOH,SAAgB,WAAuC;CACrD,OAAO,EACL,MAAM,GAAG,mBAAmB,OAC7B;;;;;;;;AASH,SAAgB,eAAe,IAAY,aAAuD;CAChG,OAAO,EACL,MAAM,GAAG,mBAAmB,OAAO,GAAG,eAAe,eACtD;;;;;;;AAQH,SAAgB,OAAO,IAAsC;CAC3D,OAAO,EACL,MAAM,GAAG,mBAAmB,UAAU,MACvC;;;;;;AAOH,SAAgB,cAA6C;CAC3D,OAAO,EACL,MAAM,GAAG,mBAAmB,UAC7B;;;;;;;;AASH,SAAgB,kBAAkB,IAAY,aAA0D;CACtG,OAAO,EACL,MAAM,GAAG,mBAAmB,UAAU,GAAG,eAAe,eACzD"}
@@ -0,0 +1,62 @@
1
+ import { Resource } from "@blizzard-api/core";
2
+
3
+ //#region src/artisan-and-recipe/types.d.ts
4
+ interface ArtisanResponse {
5
+ name: string;
6
+ portrait: string;
7
+ slug: string;
8
+ training: Training;
9
+ }
10
+ interface RecipeResponse {
11
+ cost: number;
12
+ id: string;
13
+ itemProduced: Item;
14
+ name: string;
15
+ reagents: Array<Reagent>;
16
+ slug: string;
17
+ }
18
+ interface Item {
19
+ icon: string;
20
+ id: string;
21
+ name: string;
22
+ path: string;
23
+ slug: string;
24
+ }
25
+ interface Reagent {
26
+ item: Item;
27
+ quantity: number;
28
+ }
29
+ interface Recipe {
30
+ cost: number;
31
+ id: string;
32
+ itemProduced: Item;
33
+ name: string;
34
+ reagents: Array<Reagent>;
35
+ slug: string;
36
+ }
37
+ interface Tier {
38
+ taughtRecipes: Array<Recipe>;
39
+ tier: number;
40
+ trainedRecipes: Array<Recipe>;
41
+ }
42
+ interface Training {
43
+ tiers: Array<Tier>;
44
+ }
45
+ //#endregion
46
+ //#region src/artisan-and-recipe/index.d.ts
47
+ /**
48
+ * Returns the artisan information for the specified artisan slug.
49
+ * @param artisanSlug The slug of the artisan.
50
+ * @returns The artisan resource. See {@link ArtisanResponse}.
51
+ */
52
+ declare function artisan(artisanSlug: string): Resource<ArtisanResponse>;
53
+ /**
54
+ * Returns the recipe information for the specified artisan and recipe slugs.
55
+ * @param artisanSlug The slug of the artisan.
56
+ * @param recipeSlug The slug of the recipe.
57
+ * @returns The recipe resource. See {@link RecipeResponse}.
58
+ */
59
+ declare function recipe(artisanSlug: string, recipeSlug: string): Resource<RecipeResponse>;
60
+ //#endregion
61
+ export { RecipeResponse as i, recipe as n, ArtisanResponse as r, artisan as t };
62
+ //# sourceMappingURL=index-B3XcHQEG.d.ts.map
@@ -0,0 +1,30 @@
1
+ import { Resource } from "@blizzard-api/core";
2
+
3
+ //#region src/follower/types.d.ts
4
+ interface FollowerResponse {
5
+ name: string;
6
+ portrait: string;
7
+ realName: string;
8
+ skills: Array<Skill>;
9
+ slug: string;
10
+ }
11
+ interface Skill {
12
+ description: string;
13
+ descriptionHtml: string;
14
+ icon: string;
15
+ level: number;
16
+ name: string;
17
+ slug: string;
18
+ tooltipUrl: string;
19
+ }
20
+ //#endregion
21
+ //#region src/follower/index.d.ts
22
+ /**
23
+ * Returns the follower information for the specified follower slug.
24
+ * @param followerSlug The slug of the follower.
25
+ * @returns The follower resource. See {@link FollowerResponse}.
26
+ */
27
+ declare function follower(followerSlug: string): Resource<FollowerResponse>;
28
+ //#endregion
29
+ export { FollowerResponse as n, follower as t };
30
+ //# sourceMappingURL=index-CbNO-aVd.d.ts.map
@@ -0,0 +1,31 @@
1
+ import { Resource } from "@blizzard-api/core";
2
+
3
+ //#region src/item-type/types.d.ts
4
+ interface ItemTypeIndexResponse {
5
+ id: string;
6
+ name: string;
7
+ path: string;
8
+ }
9
+ interface ItemTypeResponse {
10
+ icon: string;
11
+ id: string;
12
+ name: string;
13
+ path: string;
14
+ slug: string;
15
+ }
16
+ //#endregion
17
+ //#region src/item-type/index.d.ts
18
+ /**
19
+ * Returns the item type information for the specified item type slug.
20
+ * @param itemTypeSlug The slug of the item type, example: "sword2h"
21
+ * @returns The item type resource. See {@link ItemTypeResponse}.
22
+ */
23
+ declare function itemType(itemTypeSlug: string): Resource<Array<ItemTypeResponse>>;
24
+ /**
25
+ * Returns the item type index.
26
+ * @returns The item type index resource. See {@link ItemTypeIndexResponse}.
27
+ */
28
+ declare function itemTypeIndex(): Resource<Array<ItemTypeIndexResponse>>;
29
+ //#endregion
30
+ export { ItemTypeResponse as i, itemTypeIndex as n, ItemTypeIndexResponse as r, itemType as t };
31
+ //# sourceMappingURL=index-Cd9ttc2_.d.ts.map
@@ -0,0 +1,54 @@
1
+ import { Resource } from "@blizzard-api/core";
2
+
3
+ //#region src/item/types.d.ts
4
+ interface Attributes {
5
+ other: Array<unknown>;
6
+ primary: Array<Primary>;
7
+ secondary: Array<Primary>;
8
+ }
9
+ interface ItemResponse {
10
+ accountBound: boolean;
11
+ attributes: Attributes;
12
+ color: string;
13
+ damage: string;
14
+ damageHtml: string;
15
+ dps: string;
16
+ flavorText: string;
17
+ flavorTextHtml: string;
18
+ icon: string;
19
+ id: string;
20
+ isSeasonRequiredToDrop: boolean;
21
+ name: string;
22
+ randomAffixes: Array<RandomAffix>;
23
+ requiredLevel: number;
24
+ seasonRequiredToDrop: number;
25
+ setItems: Array<unknown>;
26
+ slots: Array<string>;
27
+ slug: string;
28
+ stackSizeMax: number;
29
+ tooltipParams: string;
30
+ type: Type;
31
+ typeName: string;
32
+ }
33
+ interface Primary {
34
+ text: string;
35
+ textHtml: string;
36
+ }
37
+ interface RandomAffix {
38
+ oneOf: Array<Primary>;
39
+ }
40
+ interface Type {
41
+ id: string;
42
+ twoHanded: boolean;
43
+ }
44
+ //#endregion
45
+ //#region src/item/index.d.ts
46
+ /**
47
+ * Returns the item information for the specified item slug and ID.
48
+ * @param itemSlugAndId The slug and ID of the item, example: "corrupted-ashbringer-Unique_Sword_2H_104_x1".
49
+ * @returns The item resource. See {@link ItemResponse}.
50
+ */
51
+ declare function item(itemSlugAndId: string): Resource<ItemResponse>;
52
+ //#endregion
53
+ export { RandomAffix as a, Primary as i, Attributes as n, Type as o, ItemResponse as r, item as t };
54
+ //# sourceMappingURL=index-DC4Sl-cR.d.ts.map
@@ -0,0 +1,39 @@
1
+ import { Resource } from "@blizzard-api/core";
2
+
3
+ //#region src/act/types.d.ts
4
+ interface ActIndexResponse {
5
+ acts: Array<Act>;
6
+ }
7
+ interface ActResponse {
8
+ name: string;
9
+ number: number;
10
+ quests: Array<Quest>;
11
+ slug: string;
12
+ }
13
+ interface Act {
14
+ name: string;
15
+ number: number;
16
+ quests: Array<Quest>;
17
+ slug: string;
18
+ }
19
+ interface Quest {
20
+ id: number;
21
+ name: string;
22
+ slug: string;
23
+ }
24
+ //#endregion
25
+ //#region src/act/index.d.ts
26
+ /**
27
+ * Returns the act information for the specified act ID.
28
+ * @param actId The ID of the act.
29
+ * @returns The act resource. See {@link ActResponse}.
30
+ */
31
+ declare function act(actId: number): Resource<ActResponse>;
32
+ /**
33
+ * Returns the index of acts.
34
+ * @returns The act index resource. See {@link ActIndexResponse}.
35
+ */
36
+ declare function actIndex(): Resource<ActIndexResponse>;
37
+ //#endregion
38
+ export { ActResponse as i, actIndex as n, ActIndexResponse as r, act as t };
39
+ //# sourceMappingURL=index-DDdb6KdV.d.ts.map
@@ -0,0 +1,131 @@
1
+ import { Href, Resource, ResponseBase } from "@blizzard-api/core";
2
+
3
+ //#region src/game-data/types.d.ts
4
+ interface EraIndexResponse extends ResponseBase {
5
+ current_era: number;
6
+ era: Array<Href>;
7
+ generated_by: string;
8
+ last_update_time: string;
9
+ }
10
+ interface EraLeaderboardResponse extends ResponseBase {
11
+ column: Array<Column>;
12
+ era: number;
13
+ generated_by: string;
14
+ greater_rift: boolean;
15
+ greater_rift_solo_class: string;
16
+ key: string;
17
+ last_update_time: string;
18
+ row: Array<Row>;
19
+ title: string;
20
+ }
21
+ interface EraResponse extends ResponseBase {
22
+ era_id: number;
23
+ era_start_date: number;
24
+ generated_by: string;
25
+ last_update_time: string;
26
+ leaderboard: Array<EraLeaderboard>;
27
+ }
28
+ interface SeasonIndexResponse extends ResponseBase {
29
+ current_season: number;
30
+ generated_by: string;
31
+ last_update_time: string;
32
+ season: Array<Href>;
33
+ service_current_season: number;
34
+ service_season_state: string;
35
+ }
36
+ interface SeasonLeaderboardResponse extends ResponseBase {
37
+ achievement_points: boolean;
38
+ column: Array<Column>;
39
+ generated_by: string;
40
+ key: string;
41
+ last_update_time: string;
42
+ row: Array<Row>;
43
+ season: number;
44
+ title: string;
45
+ }
46
+ interface SeasonResponse extends ResponseBase {
47
+ generated_by: string;
48
+ last_update_time: string;
49
+ leaderboard: Array<Leaderboard>;
50
+ season_id: number;
51
+ }
52
+ interface Column {
53
+ hidden: boolean;
54
+ id: LeaderboardId;
55
+ label: null | string;
56
+ order?: number;
57
+ type: 'DATETIME' | 'NUMBER' | 'STRING';
58
+ }
59
+ interface EraLeaderboard {
60
+ hardcore?: boolean;
61
+ hero_class_string?: string;
62
+ ladder: Self;
63
+ team_size: number;
64
+ }
65
+ interface Leaderboard {
66
+ hardcore?: boolean;
67
+ hero_class_string?: string;
68
+ ladder: Href;
69
+ team_size?: number;
70
+ }
71
+ type LeaderboardId = 'AchievementPoints' | 'BattleTag' | 'ClanName' | 'CompletedTime' | 'GameAccount' | 'HeroBattleTag' | 'HeroClanTag' | 'HeroClass' | 'HeroGender' | 'HeroId' | 'HeroLevel' | 'HeroVisualItems' | 'ParagonLevel' | 'Rank' | 'RiftLevel' | 'RiftTime';
72
+ interface Player {
73
+ accountId: number;
74
+ data: Array<RowData>;
75
+ key: string;
76
+ }
77
+ interface Row {
78
+ data: Array<RowData>;
79
+ order: number;
80
+ player: Array<Player>;
81
+ }
82
+ interface RowData {
83
+ id: LeaderboardId;
84
+ number?: number;
85
+ string?: string;
86
+ timestamp?: number;
87
+ }
88
+ interface Self {
89
+ href: string;
90
+ }
91
+ //#endregion
92
+ //#region src/game-data/index.d.ts
93
+ /**
94
+ * Returns the era information for the specified era ID.
95
+ * @param id The ID of the era.
96
+ * @returns The era resource. See {@link EraResponse}.
97
+ */
98
+ declare function era(id: number): Resource<EraResponse>;
99
+ /**
100
+ * Returns the era index.
101
+ * @returns The era index resource. See {@link EraIndexResponse}.
102
+ */
103
+ declare function eraIndex(): Resource<EraIndexResponse>;
104
+ /**
105
+ * Returns the era leaderboard for the specified era ID and leaderboard.
106
+ * @param id The ID of the era.
107
+ * @param leaderboard The name of the leaderboard.
108
+ * @returns The era leaderboard resource. See {@link EraLeaderboardResponse}.
109
+ */
110
+ declare function eraLeaderboard(id: number, leaderboard: string): Resource<EraLeaderboardResponse>;
111
+ /**
112
+ * Returns the season information for the specified season ID.
113
+ * @param id The ID of the season.
114
+ * @returns The season resource. See {@link SeasonResponse}.
115
+ */
116
+ declare function season(id: number): Resource<SeasonResponse>;
117
+ /**
118
+ * Returns the season index.
119
+ * @returns The season index resource. See {@link SeasonIndexResponse}.
120
+ */
121
+ declare function seasonIndex(): Resource<SeasonIndexResponse>;
122
+ /**
123
+ * Returns the season leaderboard for the specified season ID and leaderboard.
124
+ * @param id The ID of the season.
125
+ * @param leaderboard The name of the leaderboard.
126
+ * @returns The season leaderboard resource. See {@link SeasonLeaderboardResponse}.
127
+ */
128
+ declare function seasonLeaderboard(id: number, leaderboard: string): Resource<SeasonLeaderboardResponse>;
129
+ //#endregion
130
+ 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-Odfm-W__.d.ts.map