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