@blizzard-api/d3 1.0.4 → 2.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/README.md +75 -75
- package/dist/index.d.ts +473 -472
- package/dist/index.js +171 -112
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { Resource } from
|
|
1
|
+
import { Href, Resource, ResponseBase } 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.
|
|
@@ -32,49 +34,51 @@ declare function act(actId: number): Resource<ActResponse>;
|
|
|
32
34
|
* @returns The act index resource. See {@link ActIndexResponse}.
|
|
33
35
|
*/
|
|
34
36
|
declare function actIndex(): Resource<ActIndexResponse>;
|
|
35
|
-
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/artisan-and-recipe/types.d.ts
|
|
36
39
|
interface ArtisanResponse {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
name: string;
|
|
41
|
+
portrait: string;
|
|
42
|
+
slug: string;
|
|
43
|
+
training: Training;
|
|
41
44
|
}
|
|
42
45
|
interface RecipeResponse {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
cost: number;
|
|
47
|
+
id: string;
|
|
48
|
+
itemProduced: Item$1;
|
|
49
|
+
name: string;
|
|
50
|
+
reagents: Array<Reagent$1>;
|
|
51
|
+
slug: string;
|
|
49
52
|
}
|
|
50
53
|
interface Item$1 {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
icon: string;
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
path: string;
|
|
58
|
+
slug: string;
|
|
56
59
|
}
|
|
57
60
|
interface Reagent$1 {
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
item: Item$1;
|
|
62
|
+
quantity: number;
|
|
60
63
|
}
|
|
61
64
|
interface Recipe {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
cost: number;
|
|
66
|
+
id: string;
|
|
67
|
+
itemProduced: Item$1;
|
|
68
|
+
name: string;
|
|
69
|
+
reagents: Array<Reagent$1>;
|
|
70
|
+
slug: string;
|
|
68
71
|
}
|
|
69
72
|
interface Tier {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
taughtRecipes: Array<Recipe>;
|
|
74
|
+
tier: number;
|
|
75
|
+
trainedRecipes: Array<Recipe>;
|
|
73
76
|
}
|
|
74
77
|
interface Training {
|
|
75
|
-
|
|
78
|
+
tiers: Array<Tier>;
|
|
76
79
|
}
|
|
77
|
-
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/artisan-and-recipe/artisan-and-recipe.d.ts
|
|
78
82
|
/**
|
|
79
83
|
* Returns the artisan information for the specified artisan slug.
|
|
80
84
|
* @param artisanSlug The slug of the artisan.
|
|
@@ -88,43 +92,45 @@ declare function artisan(artisanSlug: string): Resource<ArtisanResponse>;
|
|
|
88
92
|
* @returns The recipe resource. See {@link RecipeResponse}.
|
|
89
93
|
*/
|
|
90
94
|
declare function recipe(artisanSlug: string, recipeSlug: string): Resource<RecipeResponse>;
|
|
91
|
-
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/character-class-and-skill/types.d.ts
|
|
92
97
|
interface CharacterClassResponse {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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;
|
|
100
105
|
}
|
|
101
106
|
interface SkillResponse {
|
|
102
|
-
|
|
103
|
-
|
|
107
|
+
runes: Array<Rune$1>;
|
|
108
|
+
skill: Skill$2;
|
|
104
109
|
}
|
|
105
110
|
interface Rune$1 {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
description: string;
|
|
112
|
+
descriptionHtml: string;
|
|
113
|
+
level: number;
|
|
114
|
+
name: string;
|
|
115
|
+
slug: string;
|
|
116
|
+
type: string;
|
|
112
117
|
}
|
|
113
118
|
interface Skill$2 {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
description: string;
|
|
120
|
+
descriptionHtml: string;
|
|
121
|
+
flavorText?: string;
|
|
122
|
+
icon: string;
|
|
123
|
+
level: number;
|
|
124
|
+
name: string;
|
|
125
|
+
slug: string;
|
|
126
|
+
tooltipUrl: string;
|
|
122
127
|
}
|
|
123
128
|
interface SkillCategory {
|
|
124
|
-
|
|
125
|
-
|
|
129
|
+
name: string;
|
|
130
|
+
slug: string;
|
|
126
131
|
}
|
|
127
|
-
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/character-class-and-skill/character-class-and-skill.d.ts
|
|
128
134
|
/**
|
|
129
135
|
* Returns the character class information for the specified character class slug.
|
|
130
136
|
* @param characterClassSlug The slug of the character class.
|
|
@@ -138,136 +144,123 @@ declare function characterClass(characterClassSlug: string): Resource<CharacterC
|
|
|
138
144
|
* @returns The skill resource. See {@link SkillResponse}.
|
|
139
145
|
*/
|
|
140
146
|
declare function skill(characterClassSlug: string, skillSlug: string): Resource<SkillResponse>;
|
|
141
|
-
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/follower/types.d.ts
|
|
142
149
|
interface FollowerResponse {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
name: string;
|
|
151
|
+
portrait: string;
|
|
152
|
+
realName: string;
|
|
153
|
+
skills: Array<Skill$1>;
|
|
154
|
+
slug: string;
|
|
148
155
|
}
|
|
149
156
|
interface Skill$1 {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
|
|
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
|
|
159
167
|
/**
|
|
160
168
|
* Returns the follower information for the specified follower slug.
|
|
161
169
|
* @param followerSlug The slug of the follower.
|
|
162
170
|
* @returns The follower resource. See {@link FollowerResponse}.
|
|
163
171
|
*/
|
|
164
172
|
declare function follower(followerSlug: string): Resource<FollowerResponse>;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
* Base interface for Blizzard API responses.
|
|
168
|
-
*/
|
|
169
|
-
interface ResponseBase {
|
|
170
|
-
_links: {
|
|
171
|
-
self: {
|
|
172
|
-
href: string;
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/game-data/types.d.ts
|
|
177
175
|
interface EraIndexResponse extends ResponseBase {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
generated_by: string;
|
|
183
|
-
last_update_time: string;
|
|
176
|
+
current_era: number;
|
|
177
|
+
era: Array<Href>;
|
|
178
|
+
generated_by: string;
|
|
179
|
+
last_update_time: string;
|
|
184
180
|
}
|
|
185
181
|
interface EraLeaderboardResponse extends ResponseBase {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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;
|
|
195
191
|
}
|
|
196
192
|
interface EraResponse extends ResponseBase {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
193
|
+
era_id: number;
|
|
194
|
+
era_start_date: number;
|
|
195
|
+
generated_by: string;
|
|
196
|
+
last_update_time: string;
|
|
197
|
+
leaderboard: Array<EraLeaderboard>;
|
|
202
198
|
}
|
|
203
199
|
interface SeasonIndexResponse extends ResponseBase {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
service_current_season: number;
|
|
211
|
-
service_season_state: string;
|
|
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;
|
|
212
206
|
}
|
|
213
207
|
interface SeasonLeaderboardResponse extends ResponseBase {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
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;
|
|
222
216
|
}
|
|
223
217
|
interface SeasonResponse extends ResponseBase {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
218
|
+
generated_by: string;
|
|
219
|
+
last_update_time: string;
|
|
220
|
+
leaderboard: Array<Leaderboard>;
|
|
221
|
+
season_id: number;
|
|
228
222
|
}
|
|
229
223
|
interface Column {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
224
|
+
hidden: boolean;
|
|
225
|
+
id: LeaderboardId;
|
|
226
|
+
label: null | string;
|
|
227
|
+
order?: number;
|
|
228
|
+
type: 'DATETIME' | 'NUMBER' | 'STRING';
|
|
235
229
|
}
|
|
236
230
|
interface EraLeaderboard {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
231
|
+
hardcore?: boolean;
|
|
232
|
+
hero_class_string?: string;
|
|
233
|
+
ladder: Self;
|
|
234
|
+
team_size: number;
|
|
241
235
|
}
|
|
242
236
|
interface Leaderboard {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
};
|
|
248
|
-
team_size?: number;
|
|
237
|
+
hardcore?: boolean;
|
|
238
|
+
hero_class_string?: string;
|
|
239
|
+
ladder: Href;
|
|
240
|
+
team_size?: number;
|
|
249
241
|
}
|
|
250
242
|
type LeaderboardId = 'AchievementPoints' | 'BattleTag' | 'ClanName' | 'CompletedTime' | 'GameAccount' | 'HeroBattleTag' | 'HeroClanTag' | 'HeroClass' | 'HeroGender' | 'HeroId' | 'HeroLevel' | 'HeroVisualItems' | 'ParagonLevel' | 'Rank' | 'RiftLevel' | 'RiftTime';
|
|
251
243
|
interface Player {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
244
|
+
accountId: number;
|
|
245
|
+
data: Array<RowData>;
|
|
246
|
+
key: string;
|
|
255
247
|
}
|
|
256
248
|
interface Row {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
249
|
+
data: Array<RowData>;
|
|
250
|
+
order: number;
|
|
251
|
+
player: Array<Player>;
|
|
260
252
|
}
|
|
261
253
|
interface RowData {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
254
|
+
id: LeaderboardId;
|
|
255
|
+
number?: number;
|
|
256
|
+
string?: string;
|
|
257
|
+
timestamp?: number;
|
|
266
258
|
}
|
|
267
259
|
interface Self {
|
|
268
|
-
|
|
260
|
+
href: string;
|
|
269
261
|
}
|
|
270
|
-
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region src/game-data/game-data.d.ts
|
|
271
264
|
/**
|
|
272
265
|
* Returns the era information for the specified era ID.
|
|
273
266
|
* @param id The ID of the era.
|
|
@@ -304,20 +297,22 @@ declare function seasonIndex(): Resource<SeasonIndexResponse>;
|
|
|
304
297
|
* @returns The season leaderboard resource. See {@link SeasonLeaderboardResponse}.
|
|
305
298
|
*/
|
|
306
299
|
declare function seasonLeaderboard(id: number, leaderboard: string): Resource<SeasonLeaderboardResponse>;
|
|
307
|
-
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region src/item-type/types.d.ts
|
|
308
302
|
interface ItemTypeIndexResponse {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
303
|
+
id: string;
|
|
304
|
+
name: string;
|
|
305
|
+
path: string;
|
|
312
306
|
}
|
|
313
307
|
interface ItemTypeResponse {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
}
|
|
320
|
-
|
|
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
|
|
321
316
|
/**
|
|
322
317
|
* Returns the item type information for the specified item type slug.
|
|
323
318
|
* @param itemTypeSlug The slug of the item type, example: "sword2h"
|
|
@@ -329,368 +324,372 @@ declare function itemType(itemTypeSlug: string): Resource<Array<ItemTypeResponse
|
|
|
329
324
|
* @returns The item type index resource. See {@link ItemTypeIndexResponse}.
|
|
330
325
|
*/
|
|
331
326
|
declare function itemTypeIndex(): Resource<Array<ItemTypeIndexResponse>>;
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
327
|
+
//#endregion
|
|
328
|
+
//#region src/item/types.d.ts
|
|
329
|
+
interface Attributes {
|
|
330
|
+
other: Array<unknown>;
|
|
331
|
+
primary: Array<Primary>;
|
|
332
|
+
secondary: Array<Primary>;
|
|
337
333
|
}
|
|
338
334
|
interface ItemResponse {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
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;
|
|
361
357
|
}
|
|
362
358
|
interface Primary {
|
|
363
|
-
|
|
364
|
-
|
|
359
|
+
text: string;
|
|
360
|
+
textHtml: string;
|
|
365
361
|
}
|
|
366
362
|
interface RandomAffix {
|
|
367
|
-
|
|
363
|
+
oneOf: Array<Primary>;
|
|
368
364
|
}
|
|
369
365
|
interface Type {
|
|
370
|
-
|
|
371
|
-
|
|
366
|
+
id: string;
|
|
367
|
+
twoHanded: boolean;
|
|
372
368
|
}
|
|
373
|
-
|
|
369
|
+
//#endregion
|
|
370
|
+
//#region src/item/item.d.ts
|
|
374
371
|
/**
|
|
375
372
|
* Returns the item information for the specified item slug and ID.
|
|
376
373
|
* @param itemSlugAndId The slug and ID of the item, example: "corrupted-ashbringer-Unique_Sword_2H_104_x1".
|
|
377
374
|
* @returns The item resource. See {@link ItemResponse}.
|
|
378
375
|
*/
|
|
379
376
|
declare function item(itemSlugAndId: string): Resource<ItemResponse>;
|
|
380
|
-
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region src/profile/types.d.ts
|
|
381
379
|
interface AccountHeroFollowerItemsResponse {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
380
|
+
enchantress: Record<string, FollowerItem>;
|
|
381
|
+
scoundrel: Record<string, FollowerItem>;
|
|
382
|
+
templar: Record<string, FollowerItem>;
|
|
385
383
|
}
|
|
386
384
|
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
|
-
|
|
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;
|
|
415
413
|
}
|
|
416
414
|
interface AccountHeroResponse {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
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>;
|
|
436
434
|
}
|
|
437
435
|
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
|
-
|
|
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;
|
|
464
462
|
}
|
|
465
463
|
interface AccountHeroItem {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
464
|
+
icon: string;
|
|
465
|
+
id: string;
|
|
466
|
+
name: string;
|
|
467
|
+
path: string;
|
|
468
|
+
slug: string;
|
|
471
469
|
}
|
|
472
470
|
interface AccountResponseKills {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
471
|
+
elites: number;
|
|
472
|
+
hardcoreMonsters: number;
|
|
473
|
+
monsters: number;
|
|
476
474
|
}
|
|
477
475
|
interface Act {
|
|
478
|
-
|
|
479
|
-
|
|
476
|
+
completed: boolean;
|
|
477
|
+
completedQuests: Array<CompletedQuest>;
|
|
480
478
|
}
|
|
481
479
|
interface Active {
|
|
482
|
-
|
|
483
|
-
|
|
480
|
+
rune: Rune;
|
|
481
|
+
skill: Skill;
|
|
484
482
|
}
|
|
485
483
|
interface Artisan {
|
|
486
|
-
|
|
487
|
-
|
|
484
|
+
level: number;
|
|
485
|
+
slug: 'blacksmith' | 'jeweler' | 'mystic';
|
|
488
486
|
}
|
|
489
|
-
interface Attributes {
|
|
490
|
-
|
|
491
|
-
|
|
487
|
+
interface Attributes$1 {
|
|
488
|
+
primary: Array<string>;
|
|
489
|
+
secondary?: Array<string>;
|
|
492
490
|
}
|
|
493
491
|
interface CompletedQuest {
|
|
494
|
-
|
|
495
|
-
|
|
492
|
+
name: string;
|
|
493
|
+
slug: string;
|
|
496
494
|
}
|
|
497
495
|
interface CraftedBy {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
496
|
+
cost: number;
|
|
497
|
+
id: string;
|
|
498
|
+
itemProduced: ItemProduced;
|
|
499
|
+
name: string;
|
|
500
|
+
reagents: Array<Reagent>;
|
|
501
|
+
slug: string;
|
|
504
502
|
}
|
|
505
503
|
type DisplayColor = 'blue' | 'green' | 'orange' | 'white' | 'yellow';
|
|
506
504
|
interface Dye {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
505
|
+
icon: string;
|
|
506
|
+
id: string;
|
|
507
|
+
name: string;
|
|
508
|
+
tooltipParams: string;
|
|
511
509
|
}
|
|
512
510
|
interface Enchantress {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
511
|
+
items: EnchantressItems;
|
|
512
|
+
level: number;
|
|
513
|
+
skills: Array<unknown>;
|
|
514
|
+
slug: string;
|
|
515
|
+
stats: Stats;
|
|
518
516
|
}
|
|
519
517
|
interface EnchantressItems {
|
|
520
|
-
|
|
518
|
+
mainHand: Item;
|
|
521
519
|
}
|
|
522
520
|
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
|
-
|
|
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;
|
|
551
549
|
}
|
|
552
550
|
interface Followers {
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
551
|
+
enchantress: Enchantress;
|
|
552
|
+
scoundrel: Scoundrel;
|
|
553
|
+
templar: Templar;
|
|
556
554
|
}
|
|
557
555
|
interface Gem {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
556
|
+
attributes: Array<string>;
|
|
557
|
+
isGem: boolean;
|
|
558
|
+
isJewel: boolean;
|
|
559
|
+
item: AccountHeroItem;
|
|
560
|
+
jewelRank?: number;
|
|
561
|
+
jewelSecondaryUnlockRank?: number;
|
|
564
562
|
}
|
|
565
563
|
interface Hero {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
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;
|
|
578
576
|
}
|
|
579
577
|
interface HeroKills {
|
|
580
|
-
|
|
578
|
+
elites: number;
|
|
581
579
|
}
|
|
582
580
|
interface HeroProgression {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
581
|
+
act1: Act;
|
|
582
|
+
act2: Act;
|
|
583
|
+
act3: Act;
|
|
584
|
+
act4: Act;
|
|
585
|
+
act5: Act;
|
|
588
586
|
}
|
|
589
587
|
interface Item {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
588
|
+
displayColor?: DisplayColor;
|
|
589
|
+
dyeColor?: Dye;
|
|
590
|
+
icon: string;
|
|
591
|
+
id: string;
|
|
592
|
+
name: string;
|
|
593
|
+
tooltipParams: string;
|
|
596
594
|
}
|
|
597
595
|
interface ItemProduced {
|
|
598
|
-
|
|
599
|
-
|
|
596
|
+
id: string;
|
|
597
|
+
path: string;
|
|
600
598
|
}
|
|
601
599
|
interface Kills {
|
|
602
|
-
|
|
600
|
+
elites: number;
|
|
603
601
|
}
|
|
604
602
|
interface Passive {
|
|
605
|
-
|
|
603
|
+
skill: Skill;
|
|
606
604
|
}
|
|
607
605
|
interface Progression {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
606
|
+
act1: boolean;
|
|
607
|
+
act2: boolean;
|
|
608
|
+
act3: boolean;
|
|
609
|
+
act4: boolean;
|
|
610
|
+
act5: boolean;
|
|
613
611
|
}
|
|
614
612
|
interface Reagent {
|
|
615
|
-
|
|
616
|
-
|
|
613
|
+
item: AccountHeroItem;
|
|
614
|
+
quantity: number;
|
|
617
615
|
}
|
|
618
616
|
interface Rune {
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
617
|
+
description: string;
|
|
618
|
+
descriptionHtml: string;
|
|
619
|
+
level: number;
|
|
620
|
+
name: string;
|
|
621
|
+
slug: string;
|
|
622
|
+
type: string;
|
|
625
623
|
}
|
|
626
624
|
interface Scoundrel {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
625
|
+
items: Record<string, Item>;
|
|
626
|
+
level: number;
|
|
627
|
+
skills: Array<Skill>;
|
|
628
|
+
slug: string;
|
|
629
|
+
stats: Stats;
|
|
632
630
|
}
|
|
633
631
|
interface Season {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
632
|
+
highestHardcoreLevel: number;
|
|
633
|
+
kills: AccountResponseKills;
|
|
634
|
+
paragonLevel: number;
|
|
635
|
+
paragonLevelHardcore: number;
|
|
636
|
+
seasonId: number;
|
|
637
|
+
timePlayed: TimePlayed;
|
|
640
638
|
}
|
|
641
639
|
interface Set {
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
640
|
+
description: string;
|
|
641
|
+
descriptionHtml: string;
|
|
642
|
+
name: string;
|
|
643
|
+
slug: string;
|
|
646
644
|
}
|
|
647
645
|
interface Skill {
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
646
|
+
description: string;
|
|
647
|
+
descriptionHtml: string;
|
|
648
|
+
flavorText?: string;
|
|
649
|
+
icon: string;
|
|
650
|
+
level: number;
|
|
651
|
+
name: string;
|
|
652
|
+
slug: string;
|
|
653
|
+
tooltipUrl: string;
|
|
656
654
|
}
|
|
657
655
|
interface Skills {
|
|
658
|
-
|
|
659
|
-
|
|
656
|
+
active: Array<Active>;
|
|
657
|
+
passive: Array<Passive>;
|
|
660
658
|
}
|
|
661
659
|
interface Stats {
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
660
|
+
experienceBonus: number;
|
|
661
|
+
goldFind: number;
|
|
662
|
+
magicFind: number;
|
|
665
663
|
}
|
|
666
664
|
interface Templar {
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
665
|
+
items: TemplarItems;
|
|
666
|
+
level: number;
|
|
667
|
+
skills: Array<Skill>;
|
|
668
|
+
slug: string;
|
|
669
|
+
stats: Stats;
|
|
672
670
|
}
|
|
673
671
|
interface TemplarItems {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
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;
|
|
683
681
|
}
|
|
684
682
|
interface TimePlayed {
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
}
|
|
693
|
-
|
|
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
|
|
694
693
|
/**
|
|
695
694
|
* Returns the account information for the specified battle tag.
|
|
696
695
|
* @param battleTag The battle tag of the account.
|
|
@@ -718,28 +717,30 @@ declare function accountHeroFollowerItems(battleTag: string, heroId: number): Re
|
|
|
718
717
|
* @returns The hero items resource. See {@link AccountHeroResponse}.
|
|
719
718
|
*/
|
|
720
719
|
declare function accountHeroItems(battleTag: string, heroId: number): Resource<AccountHeroResponse>;
|
|
721
|
-
|
|
720
|
+
//#endregion
|
|
721
|
+
//#region src/index.d.ts
|
|
722
722
|
declare const d3: {
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
723
|
+
act: typeof act;
|
|
724
|
+
actIndex: typeof actIndex;
|
|
725
|
+
artisan: typeof artisan;
|
|
726
|
+
recipe: typeof recipe;
|
|
727
|
+
follower: typeof follower;
|
|
728
|
+
characterClass: typeof characterClass;
|
|
729
|
+
skill: typeof skill;
|
|
730
|
+
itemType: typeof itemType;
|
|
731
|
+
itemTypeIndex: typeof itemTypeIndex;
|
|
732
|
+
item: typeof item;
|
|
733
|
+
account: typeof account;
|
|
734
|
+
accountHero: typeof accountHero;
|
|
735
|
+
accountHeroFollowerItems: typeof accountHeroFollowerItems;
|
|
736
|
+
accountHeroItems: typeof accountHeroItems;
|
|
737
|
+
era: typeof era;
|
|
738
|
+
eraIndex: typeof eraIndex;
|
|
739
|
+
eraLeaderboard: typeof eraLeaderboard;
|
|
740
|
+
season: typeof season;
|
|
741
|
+
seasonIndex: typeof seasonIndex;
|
|
742
|
+
seasonLeaderboard: typeof seasonLeaderboard;
|
|
743
743
|
};
|
|
744
|
-
|
|
745
|
-
export {
|
|
744
|
+
//#endregion
|
|
745
|
+
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 };
|
|
746
|
+
//# sourceMappingURL=index.d.ts.map
|