@blizzard-api/d3 2.0.1 → 3.0.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 +2 -0
- package/dist/act/index.js +21 -0
- package/dist/act/index.js.map +1 -0
- package/dist/artisan-and-recipe/index.d.ts +2 -0
- package/dist/artisan-and-recipe/index.js +23 -0
- package/dist/artisan-and-recipe/index.js.map +1 -0
- package/dist/character-class-and-skill/index.d.ts +2 -0
- package/dist/character-class-and-skill/index.js +23 -0
- package/dist/character-class-and-skill/index.js.map +1 -0
- package/dist/follower/index.d.ts +2 -0
- package/dist/follower/index.js +14 -0
- package/dist/follower/index.js.map +1 -0
- package/dist/game-data/index.d.ts +2 -0
- package/dist/game-data/index.js +54 -0
- package/dist/game-data/index.js.map +1 -0
- package/dist/index-B3XcHQEG.d.ts +62 -0
- package/dist/index-CbNO-aVd.d.ts +30 -0
- package/dist/index-Cd9ttc2_.d.ts +31 -0
- package/dist/index-DC4Sl-cR.d.ts +54 -0
- package/dist/index-DDdb6KdV.d.ts +39 -0
- package/dist/index-Odfm-W__.d.ts +131 -0
- package/dist/index-arHhEnWi.d.ts +347 -0
- package/dist/index-nKhzpD4F.d.ts +56 -0
- package/dist/index.d.ts +8 -719
- package/dist/index.js +9 -190
- package/dist/index.js.map +1 -1
- package/dist/item/index.d.ts +2 -0
- package/dist/item/index.js +14 -0
- package/dist/item/index.js.map +1 -0
- package/dist/item-type/index.d.ts +2 -0
- package/dist/item-type/index.js +21 -0
- package/dist/item-type/index.js.map +1 -0
- package/dist/profile/index.d.ts +2 -0
- package/dist/profile/index.js +41 -0
- package/dist/profile/index.js.map +1 -0
- package/package.json +16 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,723 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as ActResponse, n as actIndex, r as ActIndexResponse, t as act } from "./index-DDdb6KdV.js";
|
|
2
|
+
import { i as RecipeResponse, n as recipe, r as ArtisanResponse, t as artisan } from "./index-B3XcHQEG.js";
|
|
3
|
+
import { i as SkillResponse, n as skill, r as CharacterClassResponse, t as characterClass } from "./index-nKhzpD4F.js";
|
|
4
|
+
import { n as FollowerResponse, t as follower } from "./index-CbNO-aVd.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-Odfm-W__.js";
|
|
6
|
+
import { i as ItemTypeResponse, n as itemTypeIndex, r as ItemTypeIndexResponse, t as itemType } from "./index-Cd9ttc2_.js";
|
|
7
|
+
import { a as RandomAffix, i as Primary, n as Attributes, o as Type, r as ItemResponse, t as item } from "./index-DC4Sl-cR.js";
|
|
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-arHhEnWi.js";
|
|
2
9
|
|
|
3
|
-
//#region src/act/types.d.ts
|
|
4
|
-
interface ActIndexResponse {
|
|
5
|
-
acts: Array<Act$1>;
|
|
6
|
-
}
|
|
7
|
-
interface ActResponse {
|
|
8
|
-
name: string;
|
|
9
|
-
number: number;
|
|
10
|
-
quests: Array<Quest>;
|
|
11
|
-
slug: string;
|
|
12
|
-
}
|
|
13
|
-
interface Act$1 {
|
|
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/act.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
|
-
//#region src/artisan-and-recipe/types.d.ts
|
|
39
|
-
interface ArtisanResponse {
|
|
40
|
-
name: string;
|
|
41
|
-
portrait: string;
|
|
42
|
-
slug: string;
|
|
43
|
-
training: Training;
|
|
44
|
-
}
|
|
45
|
-
interface RecipeResponse {
|
|
46
|
-
cost: number;
|
|
47
|
-
id: string;
|
|
48
|
-
itemProduced: Item$1;
|
|
49
|
-
name: string;
|
|
50
|
-
reagents: Array<Reagent$1>;
|
|
51
|
-
slug: string;
|
|
52
|
-
}
|
|
53
|
-
interface Item$1 {
|
|
54
|
-
icon: string;
|
|
55
|
-
id: string;
|
|
56
|
-
name: string;
|
|
57
|
-
path: string;
|
|
58
|
-
slug: string;
|
|
59
|
-
}
|
|
60
|
-
interface Reagent$1 {
|
|
61
|
-
item: Item$1;
|
|
62
|
-
quantity: number;
|
|
63
|
-
}
|
|
64
|
-
interface Recipe {
|
|
65
|
-
cost: number;
|
|
66
|
-
id: string;
|
|
67
|
-
itemProduced: Item$1;
|
|
68
|
-
name: string;
|
|
69
|
-
reagents: Array<Reagent$1>;
|
|
70
|
-
slug: string;
|
|
71
|
-
}
|
|
72
|
-
interface Tier {
|
|
73
|
-
taughtRecipes: Array<Recipe>;
|
|
74
|
-
tier: number;
|
|
75
|
-
trainedRecipes: Array<Recipe>;
|
|
76
|
-
}
|
|
77
|
-
interface Training {
|
|
78
|
-
tiers: Array<Tier>;
|
|
79
|
-
}
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region src/artisan-and-recipe/artisan-and-recipe.d.ts
|
|
82
|
-
/**
|
|
83
|
-
* Returns the artisan information for the specified artisan slug.
|
|
84
|
-
* @param artisanSlug The slug of the artisan.
|
|
85
|
-
* @returns The artisan resource. See {@link ArtisanResponse}.
|
|
86
|
-
*/
|
|
87
|
-
declare function artisan(artisanSlug: string): Resource<ArtisanResponse>;
|
|
88
|
-
/**
|
|
89
|
-
* Returns the recipe information for the specified artisan and recipe slugs.
|
|
90
|
-
* @param artisanSlug The slug of the artisan.
|
|
91
|
-
* @param recipeSlug The slug of the recipe.
|
|
92
|
-
* @returns The recipe resource. See {@link RecipeResponse}.
|
|
93
|
-
*/
|
|
94
|
-
declare function recipe(artisanSlug: string, recipeSlug: string): Resource<RecipeResponse>;
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region src/character-class-and-skill/types.d.ts
|
|
97
|
-
interface CharacterClassResponse {
|
|
98
|
-
femaleName: string;
|
|
99
|
-
icon: string;
|
|
100
|
-
maleName: string;
|
|
101
|
-
name: string;
|
|
102
|
-
skillCategories: Array<SkillCategory>;
|
|
103
|
-
skills: Record<'active' | 'passive', Array<Skill$2>>;
|
|
104
|
-
slug: string;
|
|
105
|
-
}
|
|
106
|
-
interface SkillResponse {
|
|
107
|
-
runes: Array<Rune$1>;
|
|
108
|
-
skill: Skill$2;
|
|
109
|
-
}
|
|
110
|
-
interface Rune$1 {
|
|
111
|
-
description: string;
|
|
112
|
-
descriptionHtml: string;
|
|
113
|
-
level: number;
|
|
114
|
-
name: string;
|
|
115
|
-
slug: string;
|
|
116
|
-
type: string;
|
|
117
|
-
}
|
|
118
|
-
interface Skill$2 {
|
|
119
|
-
description: string;
|
|
120
|
-
descriptionHtml: string;
|
|
121
|
-
flavorText?: string;
|
|
122
|
-
icon: string;
|
|
123
|
-
level: number;
|
|
124
|
-
name: string;
|
|
125
|
-
slug: string;
|
|
126
|
-
tooltipUrl: string;
|
|
127
|
-
}
|
|
128
|
-
interface SkillCategory {
|
|
129
|
-
name: string;
|
|
130
|
-
slug: string;
|
|
131
|
-
}
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region src/character-class-and-skill/character-class-and-skill.d.ts
|
|
134
|
-
/**
|
|
135
|
-
* Returns the character class information for the specified character class slug.
|
|
136
|
-
* @param characterClassSlug The slug of the character class.
|
|
137
|
-
* @returns The character class resource. See {@link CharacterClassResponse}.
|
|
138
|
-
*/
|
|
139
|
-
declare function characterClass(characterClassSlug: string): Resource<CharacterClassResponse>;
|
|
140
|
-
/**
|
|
141
|
-
* Returns the skill information for the specified character class and skill slugs.
|
|
142
|
-
* @param characterClassSlug The slug of the character class.
|
|
143
|
-
* @param skillSlug The slug of the skill.
|
|
144
|
-
* @returns The skill resource. See {@link SkillResponse}.
|
|
145
|
-
*/
|
|
146
|
-
declare function skill(characterClassSlug: string, skillSlug: string): Resource<SkillResponse>;
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region src/follower/types.d.ts
|
|
149
|
-
interface FollowerResponse {
|
|
150
|
-
name: string;
|
|
151
|
-
portrait: string;
|
|
152
|
-
realName: string;
|
|
153
|
-
skills: Array<Skill$1>;
|
|
154
|
-
slug: string;
|
|
155
|
-
}
|
|
156
|
-
interface Skill$1 {
|
|
157
|
-
description: string;
|
|
158
|
-
descriptionHtml: string;
|
|
159
|
-
icon: string;
|
|
160
|
-
level: number;
|
|
161
|
-
name: string;
|
|
162
|
-
slug: string;
|
|
163
|
-
tooltipUrl: string;
|
|
164
|
-
}
|
|
165
|
-
//#endregion
|
|
166
|
-
//#region src/follower/follower.d.ts
|
|
167
|
-
/**
|
|
168
|
-
* Returns the follower information for the specified follower slug.
|
|
169
|
-
* @param followerSlug The slug of the follower.
|
|
170
|
-
* @returns The follower resource. See {@link FollowerResponse}.
|
|
171
|
-
*/
|
|
172
|
-
declare function follower(followerSlug: string): Resource<FollowerResponse>;
|
|
173
|
-
//#endregion
|
|
174
|
-
//#region src/game-data/types.d.ts
|
|
175
|
-
interface EraIndexResponse extends ResponseBase {
|
|
176
|
-
current_era: number;
|
|
177
|
-
era: Array<Href>;
|
|
178
|
-
generated_by: string;
|
|
179
|
-
last_update_time: string;
|
|
180
|
-
}
|
|
181
|
-
interface EraLeaderboardResponse extends ResponseBase {
|
|
182
|
-
column: Array<Column>;
|
|
183
|
-
era: number;
|
|
184
|
-
generated_by: string;
|
|
185
|
-
greater_rift: boolean;
|
|
186
|
-
greater_rift_solo_class: string;
|
|
187
|
-
key: string;
|
|
188
|
-
last_update_time: string;
|
|
189
|
-
row: Array<Row>;
|
|
190
|
-
title: string;
|
|
191
|
-
}
|
|
192
|
-
interface EraResponse extends ResponseBase {
|
|
193
|
-
era_id: number;
|
|
194
|
-
era_start_date: number;
|
|
195
|
-
generated_by: string;
|
|
196
|
-
last_update_time: string;
|
|
197
|
-
leaderboard: Array<EraLeaderboard>;
|
|
198
|
-
}
|
|
199
|
-
interface SeasonIndexResponse extends ResponseBase {
|
|
200
|
-
current_season: number;
|
|
201
|
-
generated_by: string;
|
|
202
|
-
last_update_time: string;
|
|
203
|
-
season: Array<Href>;
|
|
204
|
-
service_current_season: number;
|
|
205
|
-
service_season_state: string;
|
|
206
|
-
}
|
|
207
|
-
interface SeasonLeaderboardResponse extends ResponseBase {
|
|
208
|
-
achievement_points: boolean;
|
|
209
|
-
column: Array<Column>;
|
|
210
|
-
generated_by: string;
|
|
211
|
-
key: string;
|
|
212
|
-
last_update_time: string;
|
|
213
|
-
row: Array<Row>;
|
|
214
|
-
season: number;
|
|
215
|
-
title: string;
|
|
216
|
-
}
|
|
217
|
-
interface SeasonResponse extends ResponseBase {
|
|
218
|
-
generated_by: string;
|
|
219
|
-
last_update_time: string;
|
|
220
|
-
leaderboard: Array<Leaderboard>;
|
|
221
|
-
season_id: number;
|
|
222
|
-
}
|
|
223
|
-
interface Column {
|
|
224
|
-
hidden: boolean;
|
|
225
|
-
id: LeaderboardId;
|
|
226
|
-
label: null | string;
|
|
227
|
-
order?: number;
|
|
228
|
-
type: 'DATETIME' | 'NUMBER' | 'STRING';
|
|
229
|
-
}
|
|
230
|
-
interface EraLeaderboard {
|
|
231
|
-
hardcore?: boolean;
|
|
232
|
-
hero_class_string?: string;
|
|
233
|
-
ladder: Self;
|
|
234
|
-
team_size: number;
|
|
235
|
-
}
|
|
236
|
-
interface Leaderboard {
|
|
237
|
-
hardcore?: boolean;
|
|
238
|
-
hero_class_string?: string;
|
|
239
|
-
ladder: Href;
|
|
240
|
-
team_size?: number;
|
|
241
|
-
}
|
|
242
|
-
type LeaderboardId = 'AchievementPoints' | 'BattleTag' | 'ClanName' | 'CompletedTime' | 'GameAccount' | 'HeroBattleTag' | 'HeroClanTag' | 'HeroClass' | 'HeroGender' | 'HeroId' | 'HeroLevel' | 'HeroVisualItems' | 'ParagonLevel' | 'Rank' | 'RiftLevel' | 'RiftTime';
|
|
243
|
-
interface Player {
|
|
244
|
-
accountId: number;
|
|
245
|
-
data: Array<RowData>;
|
|
246
|
-
key: string;
|
|
247
|
-
}
|
|
248
|
-
interface Row {
|
|
249
|
-
data: Array<RowData>;
|
|
250
|
-
order: number;
|
|
251
|
-
player: Array<Player>;
|
|
252
|
-
}
|
|
253
|
-
interface RowData {
|
|
254
|
-
id: LeaderboardId;
|
|
255
|
-
number?: number;
|
|
256
|
-
string?: string;
|
|
257
|
-
timestamp?: number;
|
|
258
|
-
}
|
|
259
|
-
interface Self {
|
|
260
|
-
href: string;
|
|
261
|
-
}
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region src/game-data/game-data.d.ts
|
|
264
|
-
/**
|
|
265
|
-
* Returns the era information for the specified era ID.
|
|
266
|
-
* @param id The ID of the era.
|
|
267
|
-
* @returns The era resource. See {@link EraResponse}.
|
|
268
|
-
*/
|
|
269
|
-
declare function era(id: number): Resource<EraResponse>;
|
|
270
|
-
/**
|
|
271
|
-
* Returns the era index.
|
|
272
|
-
* @returns The era index resource. See {@link EraIndexResponse}.
|
|
273
|
-
*/
|
|
274
|
-
declare function eraIndex(): Resource<EraIndexResponse>;
|
|
275
|
-
/**
|
|
276
|
-
* Returns the era leaderboard for the specified era ID and leaderboard.
|
|
277
|
-
* @param id The ID of the era.
|
|
278
|
-
* @param leaderboard The name of the leaderboard.
|
|
279
|
-
* @returns The era leaderboard resource. See {@link EraLeaderboardResponse}.
|
|
280
|
-
*/
|
|
281
|
-
declare function eraLeaderboard(id: number, leaderboard: string): Resource<EraLeaderboardResponse>;
|
|
282
|
-
/**
|
|
283
|
-
* Returns the season information for the specified season ID.
|
|
284
|
-
* @param id The ID of the season.
|
|
285
|
-
* @returns The season resource. See {@link SeasonResponse}.
|
|
286
|
-
*/
|
|
287
|
-
declare function season(id: number): Resource<SeasonResponse>;
|
|
288
|
-
/**
|
|
289
|
-
* Returns the season index.
|
|
290
|
-
* @returns The season index resource. See {@link SeasonIndexResponse}.
|
|
291
|
-
*/
|
|
292
|
-
declare function seasonIndex(): Resource<SeasonIndexResponse>;
|
|
293
|
-
/**
|
|
294
|
-
* Returns the season leaderboard for the specified season ID and leaderboard.
|
|
295
|
-
* @param id The ID of the season.
|
|
296
|
-
* @param leaderboard The name of the leaderboard.
|
|
297
|
-
* @returns The season leaderboard resource. See {@link SeasonLeaderboardResponse}.
|
|
298
|
-
*/
|
|
299
|
-
declare function seasonLeaderboard(id: number, leaderboard: string): Resource<SeasonLeaderboardResponse>;
|
|
300
|
-
//#endregion
|
|
301
|
-
//#region src/item-type/types.d.ts
|
|
302
|
-
interface ItemTypeIndexResponse {
|
|
303
|
-
id: string;
|
|
304
|
-
name: string;
|
|
305
|
-
path: string;
|
|
306
|
-
}
|
|
307
|
-
interface ItemTypeResponse {
|
|
308
|
-
icon: string;
|
|
309
|
-
id: string;
|
|
310
|
-
name: string;
|
|
311
|
-
path: string;
|
|
312
|
-
slug: string;
|
|
313
|
-
}
|
|
314
|
-
//#endregion
|
|
315
|
-
//#region src/item-type/item-type.d.ts
|
|
316
|
-
/**
|
|
317
|
-
* Returns the item type information for the specified item type slug.
|
|
318
|
-
* @param itemTypeSlug The slug of the item type, example: "sword2h"
|
|
319
|
-
* @returns The item type resource. See {@link ItemTypeResponse}.
|
|
320
|
-
*/
|
|
321
|
-
declare function itemType(itemTypeSlug: string): Resource<Array<ItemTypeResponse>>;
|
|
322
|
-
/**
|
|
323
|
-
* Returns the item type index.
|
|
324
|
-
* @returns The item type index resource. See {@link ItemTypeIndexResponse}.
|
|
325
|
-
*/
|
|
326
|
-
declare function itemTypeIndex(): Resource<Array<ItemTypeIndexResponse>>;
|
|
327
|
-
//#endregion
|
|
328
|
-
//#region src/item/types.d.ts
|
|
329
|
-
interface Attributes {
|
|
330
|
-
other: Array<unknown>;
|
|
331
|
-
primary: Array<Primary>;
|
|
332
|
-
secondary: Array<Primary>;
|
|
333
|
-
}
|
|
334
|
-
interface ItemResponse {
|
|
335
|
-
accountBound: boolean;
|
|
336
|
-
attributes: Attributes;
|
|
337
|
-
color: string;
|
|
338
|
-
damage: string;
|
|
339
|
-
damageHtml: string;
|
|
340
|
-
dps: string;
|
|
341
|
-
flavorText: string;
|
|
342
|
-
flavorTextHtml: string;
|
|
343
|
-
icon: string;
|
|
344
|
-
id: string;
|
|
345
|
-
isSeasonRequiredToDrop: boolean;
|
|
346
|
-
name: string;
|
|
347
|
-
randomAffixes: Array<RandomAffix>;
|
|
348
|
-
requiredLevel: number;
|
|
349
|
-
seasonRequiredToDrop: number;
|
|
350
|
-
setItems: Array<unknown>;
|
|
351
|
-
slots: Array<string>;
|
|
352
|
-
slug: string;
|
|
353
|
-
stackSizeMax: number;
|
|
354
|
-
tooltipParams: string;
|
|
355
|
-
type: Type;
|
|
356
|
-
typeName: string;
|
|
357
|
-
}
|
|
358
|
-
interface Primary {
|
|
359
|
-
text: string;
|
|
360
|
-
textHtml: string;
|
|
361
|
-
}
|
|
362
|
-
interface RandomAffix {
|
|
363
|
-
oneOf: Array<Primary>;
|
|
364
|
-
}
|
|
365
|
-
interface Type {
|
|
366
|
-
id: string;
|
|
367
|
-
twoHanded: boolean;
|
|
368
|
-
}
|
|
369
|
-
//#endregion
|
|
370
|
-
//#region src/item/item.d.ts
|
|
371
|
-
/**
|
|
372
|
-
* Returns the item information for the specified item slug and ID.
|
|
373
|
-
* @param itemSlugAndId The slug and ID of the item, example: "corrupted-ashbringer-Unique_Sword_2H_104_x1".
|
|
374
|
-
* @returns The item resource. See {@link ItemResponse}.
|
|
375
|
-
*/
|
|
376
|
-
declare function item(itemSlugAndId: string): Resource<ItemResponse>;
|
|
377
|
-
//#endregion
|
|
378
|
-
//#region src/profile/types.d.ts
|
|
379
|
-
interface AccountHeroFollowerItemsResponse {
|
|
380
|
-
enchantress: Record<string, FollowerItem>;
|
|
381
|
-
scoundrel: Record<string, FollowerItem>;
|
|
382
|
-
templar: Record<string, FollowerItem>;
|
|
383
|
-
}
|
|
384
|
-
interface AccountHeroItemsResponse {
|
|
385
|
-
accountBound: boolean;
|
|
386
|
-
armor: number;
|
|
387
|
-
attacksPerSecond: number;
|
|
388
|
-
attributes: Attributes$1;
|
|
389
|
-
attributesHtml: Attributes$1;
|
|
390
|
-
craftedBy?: CraftedBy;
|
|
391
|
-
damage?: string;
|
|
392
|
-
displayColor: DisplayColor;
|
|
393
|
-
dps?: string;
|
|
394
|
-
elementalType?: string;
|
|
395
|
-
flavorText: string;
|
|
396
|
-
gems?: Array<Gem>;
|
|
397
|
-
icon: string;
|
|
398
|
-
id: string;
|
|
399
|
-
isSeasonRequiredToDrop: boolean;
|
|
400
|
-
itemLevel: number;
|
|
401
|
-
maxDamage: number;
|
|
402
|
-
minDamage: number;
|
|
403
|
-
name: string;
|
|
404
|
-
openSockets: number;
|
|
405
|
-
requiredLevel: number;
|
|
406
|
-
seasonRequiredToDrop: number;
|
|
407
|
-
set?: Set;
|
|
408
|
-
slots: string;
|
|
409
|
-
stackSizeMax: number;
|
|
410
|
-
tooltipParams: string;
|
|
411
|
-
type: Record<string, boolean | string>;
|
|
412
|
-
typeName: string;
|
|
413
|
-
}
|
|
414
|
-
interface AccountHeroResponse {
|
|
415
|
-
alive: boolean;
|
|
416
|
-
class: string;
|
|
417
|
-
followers: Followers;
|
|
418
|
-
gender: number;
|
|
419
|
-
hardcore: boolean;
|
|
420
|
-
highestSoloRiftCompleted: number;
|
|
421
|
-
id: number;
|
|
422
|
-
items: Record<string, Item>;
|
|
423
|
-
kills: Kills;
|
|
424
|
-
lastUpdated: number;
|
|
425
|
-
legendaryPowers: Array<Item>;
|
|
426
|
-
level: number;
|
|
427
|
-
name: string;
|
|
428
|
-
paragonLevel: number;
|
|
429
|
-
progression: HeroProgression;
|
|
430
|
-
seasonal: boolean;
|
|
431
|
-
seasonCreated: number;
|
|
432
|
-
skills: Skills;
|
|
433
|
-
stats: Record<string, number>;
|
|
434
|
-
}
|
|
435
|
-
interface AccountResponse {
|
|
436
|
-
battleTag: string;
|
|
437
|
-
blacksmith: Artisan;
|
|
438
|
-
blacksmithHardcore: Artisan;
|
|
439
|
-
blacksmithSeason: Artisan;
|
|
440
|
-
blacksmithSeasonHardcore: Artisan;
|
|
441
|
-
guildName: string;
|
|
442
|
-
heroes: Array<Hero>;
|
|
443
|
-
highestHardcoreLevel: number;
|
|
444
|
-
jeweler: Artisan;
|
|
445
|
-
jewelerHardcore: Artisan;
|
|
446
|
-
jewelerSeason: Artisan;
|
|
447
|
-
jewelerSeasonHardcore: Artisan;
|
|
448
|
-
kills: AccountResponseKills;
|
|
449
|
-
lastHeroPlayed: number;
|
|
450
|
-
lastUpdated: number;
|
|
451
|
-
mystic: Artisan;
|
|
452
|
-
mysticHardcore: Artisan;
|
|
453
|
-
mysticSeason: Artisan;
|
|
454
|
-
mysticSeasonHardcore: Artisan;
|
|
455
|
-
paragonLevel: number;
|
|
456
|
-
paragonLevelHardcore: number;
|
|
457
|
-
paragonLevelSeason: number;
|
|
458
|
-
paragonLevelSeasonHardcore: number;
|
|
459
|
-
progression: Progression;
|
|
460
|
-
seasonalProfiles: Record<`season${number}`, Season>;
|
|
461
|
-
timePlayed: TimePlayed;
|
|
462
|
-
}
|
|
463
|
-
interface AccountHeroItem {
|
|
464
|
-
icon: string;
|
|
465
|
-
id: string;
|
|
466
|
-
name: string;
|
|
467
|
-
path: string;
|
|
468
|
-
slug: string;
|
|
469
|
-
}
|
|
470
|
-
interface AccountResponseKills {
|
|
471
|
-
elites: number;
|
|
472
|
-
hardcoreMonsters: number;
|
|
473
|
-
monsters: number;
|
|
474
|
-
}
|
|
475
|
-
interface Act {
|
|
476
|
-
completed: boolean;
|
|
477
|
-
completedQuests: Array<CompletedQuest>;
|
|
478
|
-
}
|
|
479
|
-
interface Active {
|
|
480
|
-
rune: Rune;
|
|
481
|
-
skill: Skill;
|
|
482
|
-
}
|
|
483
|
-
interface Artisan {
|
|
484
|
-
level: number;
|
|
485
|
-
slug: 'blacksmith' | 'jeweler' | 'mystic';
|
|
486
|
-
}
|
|
487
|
-
interface Attributes$1 {
|
|
488
|
-
primary: Array<string>;
|
|
489
|
-
secondary?: Array<string>;
|
|
490
|
-
}
|
|
491
|
-
interface CompletedQuest {
|
|
492
|
-
name: string;
|
|
493
|
-
slug: string;
|
|
494
|
-
}
|
|
495
|
-
interface CraftedBy {
|
|
496
|
-
cost: number;
|
|
497
|
-
id: string;
|
|
498
|
-
itemProduced: ItemProduced;
|
|
499
|
-
name: string;
|
|
500
|
-
reagents: Array<Reagent>;
|
|
501
|
-
slug: string;
|
|
502
|
-
}
|
|
503
|
-
type DisplayColor = 'blue' | 'green' | 'orange' | 'white' | 'yellow';
|
|
504
|
-
interface Dye {
|
|
505
|
-
icon: string;
|
|
506
|
-
id: string;
|
|
507
|
-
name: string;
|
|
508
|
-
tooltipParams: string;
|
|
509
|
-
}
|
|
510
|
-
interface Enchantress {
|
|
511
|
-
items: EnchantressItems;
|
|
512
|
-
level: number;
|
|
513
|
-
skills: Array<unknown>;
|
|
514
|
-
slug: string;
|
|
515
|
-
stats: Stats;
|
|
516
|
-
}
|
|
517
|
-
interface EnchantressItems {
|
|
518
|
-
mainHand: Item;
|
|
519
|
-
}
|
|
520
|
-
interface FollowerItem {
|
|
521
|
-
accountBound: boolean;
|
|
522
|
-
armor: number;
|
|
523
|
-
attacksPerSecond: number;
|
|
524
|
-
attributes?: Attributes$1;
|
|
525
|
-
attributesHtml?: Attributes$1;
|
|
526
|
-
blockChance?: string;
|
|
527
|
-
craftedBy?: CraftedBy;
|
|
528
|
-
damage?: string;
|
|
529
|
-
displayColor: string;
|
|
530
|
-
dps?: string;
|
|
531
|
-
dye?: Dye;
|
|
532
|
-
flavorText?: string;
|
|
533
|
-
icon: string;
|
|
534
|
-
id: string;
|
|
535
|
-
isSeasonRequiredToDrop: boolean;
|
|
536
|
-
itemLevel: number;
|
|
537
|
-
maxDamage: number;
|
|
538
|
-
minDamage: number;
|
|
539
|
-
name: string;
|
|
540
|
-
openSockets: number;
|
|
541
|
-
requiredLevel: number;
|
|
542
|
-
seasonRequiredToDrop: number;
|
|
543
|
-
set?: Set;
|
|
544
|
-
slots: string;
|
|
545
|
-
stackSizeMax: number;
|
|
546
|
-
tooltipParams: string;
|
|
547
|
-
type: Record<string, boolean | string>;
|
|
548
|
-
typeName: string;
|
|
549
|
-
}
|
|
550
|
-
interface Followers {
|
|
551
|
-
enchantress: Enchantress;
|
|
552
|
-
scoundrel: Scoundrel;
|
|
553
|
-
templar: Templar;
|
|
554
|
-
}
|
|
555
|
-
interface Gem {
|
|
556
|
-
attributes: Array<string>;
|
|
557
|
-
isGem: boolean;
|
|
558
|
-
isJewel: boolean;
|
|
559
|
-
item: AccountHeroItem;
|
|
560
|
-
jewelRank?: number;
|
|
561
|
-
jewelSecondaryUnlockRank?: number;
|
|
562
|
-
}
|
|
563
|
-
interface Hero {
|
|
564
|
-
class: string;
|
|
565
|
-
classSlug: string;
|
|
566
|
-
dead: boolean;
|
|
567
|
-
gender: number;
|
|
568
|
-
hardcore: boolean;
|
|
569
|
-
id: number;
|
|
570
|
-
kills: HeroKills;
|
|
571
|
-
'last-updated': number;
|
|
572
|
-
level: number;
|
|
573
|
-
name: string;
|
|
574
|
-
paragonLevel: number;
|
|
575
|
-
seasonal: boolean;
|
|
576
|
-
}
|
|
577
|
-
interface HeroKills {
|
|
578
|
-
elites: number;
|
|
579
|
-
}
|
|
580
|
-
interface HeroProgression {
|
|
581
|
-
act1: Act;
|
|
582
|
-
act2: Act;
|
|
583
|
-
act3: Act;
|
|
584
|
-
act4: Act;
|
|
585
|
-
act5: Act;
|
|
586
|
-
}
|
|
587
|
-
interface Item {
|
|
588
|
-
displayColor?: DisplayColor;
|
|
589
|
-
dyeColor?: Dye;
|
|
590
|
-
icon: string;
|
|
591
|
-
id: string;
|
|
592
|
-
name: string;
|
|
593
|
-
tooltipParams: string;
|
|
594
|
-
}
|
|
595
|
-
interface ItemProduced {
|
|
596
|
-
id: string;
|
|
597
|
-
path: string;
|
|
598
|
-
}
|
|
599
|
-
interface Kills {
|
|
600
|
-
elites: number;
|
|
601
|
-
}
|
|
602
|
-
interface Passive {
|
|
603
|
-
skill: Skill;
|
|
604
|
-
}
|
|
605
|
-
interface Progression {
|
|
606
|
-
act1: boolean;
|
|
607
|
-
act2: boolean;
|
|
608
|
-
act3: boolean;
|
|
609
|
-
act4: boolean;
|
|
610
|
-
act5: boolean;
|
|
611
|
-
}
|
|
612
|
-
interface Reagent {
|
|
613
|
-
item: AccountHeroItem;
|
|
614
|
-
quantity: number;
|
|
615
|
-
}
|
|
616
|
-
interface Rune {
|
|
617
|
-
description: string;
|
|
618
|
-
descriptionHtml: string;
|
|
619
|
-
level: number;
|
|
620
|
-
name: string;
|
|
621
|
-
slug: string;
|
|
622
|
-
type: string;
|
|
623
|
-
}
|
|
624
|
-
interface Scoundrel {
|
|
625
|
-
items: Record<string, Item>;
|
|
626
|
-
level: number;
|
|
627
|
-
skills: Array<Skill>;
|
|
628
|
-
slug: string;
|
|
629
|
-
stats: Stats;
|
|
630
|
-
}
|
|
631
|
-
interface Season {
|
|
632
|
-
highestHardcoreLevel: number;
|
|
633
|
-
kills: AccountResponseKills;
|
|
634
|
-
paragonLevel: number;
|
|
635
|
-
paragonLevelHardcore: number;
|
|
636
|
-
seasonId: number;
|
|
637
|
-
timePlayed: TimePlayed;
|
|
638
|
-
}
|
|
639
|
-
interface Set {
|
|
640
|
-
description: string;
|
|
641
|
-
descriptionHtml: string;
|
|
642
|
-
name: string;
|
|
643
|
-
slug: string;
|
|
644
|
-
}
|
|
645
|
-
interface Skill {
|
|
646
|
-
description: string;
|
|
647
|
-
descriptionHtml: string;
|
|
648
|
-
flavorText?: string;
|
|
649
|
-
icon: string;
|
|
650
|
-
level: number;
|
|
651
|
-
name: string;
|
|
652
|
-
slug: string;
|
|
653
|
-
tooltipUrl: string;
|
|
654
|
-
}
|
|
655
|
-
interface Skills {
|
|
656
|
-
active: Array<Active>;
|
|
657
|
-
passive: Array<Passive>;
|
|
658
|
-
}
|
|
659
|
-
interface Stats {
|
|
660
|
-
experienceBonus: number;
|
|
661
|
-
goldFind: number;
|
|
662
|
-
magicFind: number;
|
|
663
|
-
}
|
|
664
|
-
interface Templar {
|
|
665
|
-
items: TemplarItems;
|
|
666
|
-
level: number;
|
|
667
|
-
skills: Array<Skill>;
|
|
668
|
-
slug: string;
|
|
669
|
-
stats: Stats;
|
|
670
|
-
}
|
|
671
|
-
interface TemplarItems {
|
|
672
|
-
bracers: Item;
|
|
673
|
-
feet: Item;
|
|
674
|
-
hands: Item;
|
|
675
|
-
head: Item;
|
|
676
|
-
mainHand: Item;
|
|
677
|
-
offHand: Item;
|
|
678
|
-
shoulders: Item;
|
|
679
|
-
torso: Item;
|
|
680
|
-
waist: Item;
|
|
681
|
-
}
|
|
682
|
-
interface TimePlayed {
|
|
683
|
-
barbarian: number;
|
|
684
|
-
crusader: number;
|
|
685
|
-
'demon-hunter': number;
|
|
686
|
-
monk: number;
|
|
687
|
-
necromancer: number;
|
|
688
|
-
'witch-doctor': number;
|
|
689
|
-
wizard: number;
|
|
690
|
-
}
|
|
691
|
-
//#endregion
|
|
692
|
-
//#region src/profile/profile.d.ts
|
|
693
|
-
/**
|
|
694
|
-
* Returns the account information for the specified battle tag.
|
|
695
|
-
* @param battleTag The battle tag of the account.
|
|
696
|
-
* @returns The account resource. See {@link AccountResponse}.
|
|
697
|
-
*/
|
|
698
|
-
declare function account(battleTag: string): Resource<AccountResponse>;
|
|
699
|
-
/**
|
|
700
|
-
* Returns the hero information for the specified battle tag and hero ID.
|
|
701
|
-
* @param battleTag The battle tag of the account.
|
|
702
|
-
* @param heroId The ID of the hero.
|
|
703
|
-
* @returns The hero resource. See {@link AccountHeroResponse}.
|
|
704
|
-
*/
|
|
705
|
-
declare function accountHero(battleTag: string, heroId: number): Resource<AccountHeroResponse>;
|
|
706
|
-
/**
|
|
707
|
-
* Returns the follower items for the specified battle tag and hero ID.
|
|
708
|
-
* @param battleTag The battle tag of the account.
|
|
709
|
-
* @param heroId The ID of the hero.
|
|
710
|
-
* @returns The follower items resource. See {@link AccountHeroFollowerItemsResponse}.
|
|
711
|
-
*/
|
|
712
|
-
declare function accountHeroFollowerItems(battleTag: string, heroId: number): Resource<AccountHeroFollowerItemsResponse>;
|
|
713
|
-
/**
|
|
714
|
-
* Returns the items for the specified battle tag and hero ID.
|
|
715
|
-
* @param battleTag The battle tag of the account.
|
|
716
|
-
* @param heroId The ID of the hero.
|
|
717
|
-
* @returns The hero items resource. See {@link AccountHeroResponse}.
|
|
718
|
-
*/
|
|
719
|
-
declare function accountHeroItems(battleTag: string, heroId: number): Resource<AccountHeroResponse>;
|
|
720
|
-
//#endregion
|
|
721
10
|
//#region src/index.d.ts
|
|
722
11
|
declare const d3: {
|
|
723
12
|
act: typeof act;
|