@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.
- 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 +8 -180
- 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
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { Resource } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/profile/types.d.ts
|
|
4
|
+
interface AccountHeroFollowerItemsResponse {
|
|
5
|
+
enchantress: Record<string, FollowerItem>;
|
|
6
|
+
scoundrel: Record<string, FollowerItem>;
|
|
7
|
+
templar: Record<string, FollowerItem>;
|
|
8
|
+
}
|
|
9
|
+
interface AccountHeroItemsResponse {
|
|
10
|
+
accountBound: boolean;
|
|
11
|
+
armor: number;
|
|
12
|
+
attacksPerSecond: number;
|
|
13
|
+
attributes: Attributes;
|
|
14
|
+
attributesHtml: Attributes;
|
|
15
|
+
craftedBy?: CraftedBy;
|
|
16
|
+
damage?: string;
|
|
17
|
+
displayColor: DisplayColor;
|
|
18
|
+
dps?: string;
|
|
19
|
+
elementalType?: string;
|
|
20
|
+
flavorText: string;
|
|
21
|
+
gems?: Array<Gem>;
|
|
22
|
+
icon: string;
|
|
23
|
+
id: string;
|
|
24
|
+
isSeasonRequiredToDrop: boolean;
|
|
25
|
+
itemLevel: number;
|
|
26
|
+
maxDamage: number;
|
|
27
|
+
minDamage: number;
|
|
28
|
+
name: string;
|
|
29
|
+
openSockets: number;
|
|
30
|
+
requiredLevel: number;
|
|
31
|
+
seasonRequiredToDrop: number;
|
|
32
|
+
set?: Set;
|
|
33
|
+
slots: string;
|
|
34
|
+
stackSizeMax: number;
|
|
35
|
+
tooltipParams: string;
|
|
36
|
+
type: Record<string, boolean | string>;
|
|
37
|
+
typeName: string;
|
|
38
|
+
}
|
|
39
|
+
interface AccountHeroResponse {
|
|
40
|
+
alive: boolean;
|
|
41
|
+
class: string;
|
|
42
|
+
followers: Followers;
|
|
43
|
+
gender: number;
|
|
44
|
+
hardcore: boolean;
|
|
45
|
+
highestSoloRiftCompleted: number;
|
|
46
|
+
id: number;
|
|
47
|
+
items: Record<string, Item>;
|
|
48
|
+
kills: Kills;
|
|
49
|
+
lastUpdated: number;
|
|
50
|
+
legendaryPowers: Array<Item>;
|
|
51
|
+
level: number;
|
|
52
|
+
name: string;
|
|
53
|
+
paragonLevel: number;
|
|
54
|
+
progression: HeroProgression;
|
|
55
|
+
seasonal: boolean;
|
|
56
|
+
seasonCreated: number;
|
|
57
|
+
skills: Skills;
|
|
58
|
+
stats: Record<string, number>;
|
|
59
|
+
}
|
|
60
|
+
interface AccountResponse {
|
|
61
|
+
battleTag: string;
|
|
62
|
+
blacksmith: Artisan;
|
|
63
|
+
blacksmithHardcore: Artisan;
|
|
64
|
+
blacksmithSeason: Artisan;
|
|
65
|
+
blacksmithSeasonHardcore: Artisan;
|
|
66
|
+
guildName: string;
|
|
67
|
+
heroes: Array<Hero>;
|
|
68
|
+
highestHardcoreLevel: number;
|
|
69
|
+
jeweler: Artisan;
|
|
70
|
+
jewelerHardcore: Artisan;
|
|
71
|
+
jewelerSeason: Artisan;
|
|
72
|
+
jewelerSeasonHardcore: Artisan;
|
|
73
|
+
kills: AccountResponseKills;
|
|
74
|
+
lastHeroPlayed: number;
|
|
75
|
+
lastUpdated: number;
|
|
76
|
+
mystic: Artisan;
|
|
77
|
+
mysticHardcore: Artisan;
|
|
78
|
+
mysticSeason: Artisan;
|
|
79
|
+
mysticSeasonHardcore: Artisan;
|
|
80
|
+
paragonLevel: number;
|
|
81
|
+
paragonLevelHardcore: number;
|
|
82
|
+
paragonLevelSeason: number;
|
|
83
|
+
paragonLevelSeasonHardcore: number;
|
|
84
|
+
progression: Progression;
|
|
85
|
+
seasonalProfiles: Record<`season${number}`, Season>;
|
|
86
|
+
timePlayed: TimePlayed;
|
|
87
|
+
}
|
|
88
|
+
interface AccountHeroItem {
|
|
89
|
+
icon: string;
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
path: string;
|
|
93
|
+
slug: string;
|
|
94
|
+
}
|
|
95
|
+
interface AccountResponseKills {
|
|
96
|
+
elites: number;
|
|
97
|
+
hardcoreMonsters: number;
|
|
98
|
+
monsters: number;
|
|
99
|
+
}
|
|
100
|
+
interface Act {
|
|
101
|
+
completed: boolean;
|
|
102
|
+
completedQuests: Array<CompletedQuest>;
|
|
103
|
+
}
|
|
104
|
+
interface Active {
|
|
105
|
+
rune: Rune;
|
|
106
|
+
skill: Skill;
|
|
107
|
+
}
|
|
108
|
+
interface Artisan {
|
|
109
|
+
level: number;
|
|
110
|
+
slug: 'blacksmith' | 'jeweler' | 'mystic';
|
|
111
|
+
}
|
|
112
|
+
interface Attributes {
|
|
113
|
+
primary: Array<string>;
|
|
114
|
+
secondary?: Array<string>;
|
|
115
|
+
}
|
|
116
|
+
interface CompletedQuest {
|
|
117
|
+
name: string;
|
|
118
|
+
slug: string;
|
|
119
|
+
}
|
|
120
|
+
interface CraftedBy {
|
|
121
|
+
cost: number;
|
|
122
|
+
id: string;
|
|
123
|
+
itemProduced: ItemProduced;
|
|
124
|
+
name: string;
|
|
125
|
+
reagents: Array<Reagent>;
|
|
126
|
+
slug: string;
|
|
127
|
+
}
|
|
128
|
+
type DisplayColor = 'blue' | 'green' | 'orange' | 'white' | 'yellow';
|
|
129
|
+
interface Dye {
|
|
130
|
+
icon: string;
|
|
131
|
+
id: string;
|
|
132
|
+
name: string;
|
|
133
|
+
tooltipParams: string;
|
|
134
|
+
}
|
|
135
|
+
interface Enchantress {
|
|
136
|
+
items: EnchantressItems;
|
|
137
|
+
level: number;
|
|
138
|
+
skills: Array<unknown>;
|
|
139
|
+
slug: string;
|
|
140
|
+
stats: Stats;
|
|
141
|
+
}
|
|
142
|
+
interface EnchantressItems {
|
|
143
|
+
mainHand: Item;
|
|
144
|
+
}
|
|
145
|
+
interface FollowerItem {
|
|
146
|
+
accountBound: boolean;
|
|
147
|
+
armor: number;
|
|
148
|
+
attacksPerSecond: number;
|
|
149
|
+
attributes?: Attributes;
|
|
150
|
+
attributesHtml?: Attributes;
|
|
151
|
+
blockChance?: string;
|
|
152
|
+
craftedBy?: CraftedBy;
|
|
153
|
+
damage?: string;
|
|
154
|
+
displayColor: string;
|
|
155
|
+
dps?: string;
|
|
156
|
+
dye?: Dye;
|
|
157
|
+
flavorText?: string;
|
|
158
|
+
icon: string;
|
|
159
|
+
id: string;
|
|
160
|
+
isSeasonRequiredToDrop: boolean;
|
|
161
|
+
itemLevel: number;
|
|
162
|
+
maxDamage: number;
|
|
163
|
+
minDamage: number;
|
|
164
|
+
name: string;
|
|
165
|
+
openSockets: number;
|
|
166
|
+
requiredLevel: number;
|
|
167
|
+
seasonRequiredToDrop: number;
|
|
168
|
+
set?: Set;
|
|
169
|
+
slots: string;
|
|
170
|
+
stackSizeMax: number;
|
|
171
|
+
tooltipParams: string;
|
|
172
|
+
type: Record<string, boolean | string>;
|
|
173
|
+
typeName: string;
|
|
174
|
+
}
|
|
175
|
+
interface Followers {
|
|
176
|
+
enchantress: Enchantress;
|
|
177
|
+
scoundrel: Scoundrel;
|
|
178
|
+
templar: Templar;
|
|
179
|
+
}
|
|
180
|
+
interface Gem {
|
|
181
|
+
attributes: Array<string>;
|
|
182
|
+
isGem: boolean;
|
|
183
|
+
isJewel: boolean;
|
|
184
|
+
item: AccountHeroItem;
|
|
185
|
+
jewelRank?: number;
|
|
186
|
+
jewelSecondaryUnlockRank?: number;
|
|
187
|
+
}
|
|
188
|
+
interface Hero {
|
|
189
|
+
class: string;
|
|
190
|
+
classSlug: string;
|
|
191
|
+
dead: boolean;
|
|
192
|
+
gender: number;
|
|
193
|
+
hardcore: boolean;
|
|
194
|
+
id: number;
|
|
195
|
+
kills: HeroKills;
|
|
196
|
+
'last-updated': number;
|
|
197
|
+
level: number;
|
|
198
|
+
name: string;
|
|
199
|
+
paragonLevel: number;
|
|
200
|
+
seasonal: boolean;
|
|
201
|
+
}
|
|
202
|
+
interface HeroKills {
|
|
203
|
+
elites: number;
|
|
204
|
+
}
|
|
205
|
+
interface HeroProgression {
|
|
206
|
+
act1: Act;
|
|
207
|
+
act2: Act;
|
|
208
|
+
act3: Act;
|
|
209
|
+
act4: Act;
|
|
210
|
+
act5: Act;
|
|
211
|
+
}
|
|
212
|
+
interface Item {
|
|
213
|
+
displayColor?: DisplayColor;
|
|
214
|
+
dyeColor?: Dye;
|
|
215
|
+
icon: string;
|
|
216
|
+
id: string;
|
|
217
|
+
name: string;
|
|
218
|
+
tooltipParams: string;
|
|
219
|
+
}
|
|
220
|
+
interface ItemProduced {
|
|
221
|
+
id: string;
|
|
222
|
+
path: string;
|
|
223
|
+
}
|
|
224
|
+
interface Kills {
|
|
225
|
+
elites: number;
|
|
226
|
+
}
|
|
227
|
+
interface Passive {
|
|
228
|
+
skill: Skill;
|
|
229
|
+
}
|
|
230
|
+
interface Progression {
|
|
231
|
+
act1: boolean;
|
|
232
|
+
act2: boolean;
|
|
233
|
+
act3: boolean;
|
|
234
|
+
act4: boolean;
|
|
235
|
+
act5: boolean;
|
|
236
|
+
}
|
|
237
|
+
interface Reagent {
|
|
238
|
+
item: AccountHeroItem;
|
|
239
|
+
quantity: number;
|
|
240
|
+
}
|
|
241
|
+
interface Rune {
|
|
242
|
+
description: string;
|
|
243
|
+
descriptionHtml: string;
|
|
244
|
+
level: number;
|
|
245
|
+
name: string;
|
|
246
|
+
slug: string;
|
|
247
|
+
type: string;
|
|
248
|
+
}
|
|
249
|
+
interface Scoundrel {
|
|
250
|
+
items: Record<string, Item>;
|
|
251
|
+
level: number;
|
|
252
|
+
skills: Array<Skill>;
|
|
253
|
+
slug: string;
|
|
254
|
+
stats: Stats;
|
|
255
|
+
}
|
|
256
|
+
interface Season {
|
|
257
|
+
highestHardcoreLevel: number;
|
|
258
|
+
kills: AccountResponseKills;
|
|
259
|
+
paragonLevel: number;
|
|
260
|
+
paragonLevelHardcore: number;
|
|
261
|
+
seasonId: number;
|
|
262
|
+
timePlayed: TimePlayed;
|
|
263
|
+
}
|
|
264
|
+
interface Set {
|
|
265
|
+
description: string;
|
|
266
|
+
descriptionHtml: string;
|
|
267
|
+
name: string;
|
|
268
|
+
slug: string;
|
|
269
|
+
}
|
|
270
|
+
interface Skill {
|
|
271
|
+
description: string;
|
|
272
|
+
descriptionHtml: string;
|
|
273
|
+
flavorText?: string;
|
|
274
|
+
icon: string;
|
|
275
|
+
level: number;
|
|
276
|
+
name: string;
|
|
277
|
+
slug: string;
|
|
278
|
+
tooltipUrl: string;
|
|
279
|
+
}
|
|
280
|
+
interface Skills {
|
|
281
|
+
active: Array<Active>;
|
|
282
|
+
passive: Array<Passive>;
|
|
283
|
+
}
|
|
284
|
+
interface Stats {
|
|
285
|
+
experienceBonus: number;
|
|
286
|
+
goldFind: number;
|
|
287
|
+
magicFind: number;
|
|
288
|
+
}
|
|
289
|
+
interface Templar {
|
|
290
|
+
items: TemplarItems;
|
|
291
|
+
level: number;
|
|
292
|
+
skills: Array<Skill>;
|
|
293
|
+
slug: string;
|
|
294
|
+
stats: Stats;
|
|
295
|
+
}
|
|
296
|
+
interface TemplarItems {
|
|
297
|
+
bracers: Item;
|
|
298
|
+
feet: Item;
|
|
299
|
+
hands: Item;
|
|
300
|
+
head: Item;
|
|
301
|
+
mainHand: Item;
|
|
302
|
+
offHand: Item;
|
|
303
|
+
shoulders: Item;
|
|
304
|
+
torso: Item;
|
|
305
|
+
waist: Item;
|
|
306
|
+
}
|
|
307
|
+
interface TimePlayed {
|
|
308
|
+
barbarian: number;
|
|
309
|
+
crusader: number;
|
|
310
|
+
'demon-hunter': number;
|
|
311
|
+
monk: number;
|
|
312
|
+
necromancer: number;
|
|
313
|
+
'witch-doctor': number;
|
|
314
|
+
wizard: number;
|
|
315
|
+
}
|
|
316
|
+
//#endregion
|
|
317
|
+
//#region src/profile/index.d.ts
|
|
318
|
+
/**
|
|
319
|
+
* Returns the account information for the specified battle tag.
|
|
320
|
+
* @param battleTag The battle tag of the account.
|
|
321
|
+
* @returns The account resource. See {@link AccountResponse}.
|
|
322
|
+
*/
|
|
323
|
+
declare function account(battleTag: string): Resource<AccountResponse>;
|
|
324
|
+
/**
|
|
325
|
+
* Returns the hero information for the specified battle tag and hero ID.
|
|
326
|
+
* @param battleTag The battle tag of the account.
|
|
327
|
+
* @param heroId The ID of the hero.
|
|
328
|
+
* @returns The hero resource. See {@link AccountHeroResponse}.
|
|
329
|
+
*/
|
|
330
|
+
declare function accountHero(battleTag: string, heroId: number): Resource<AccountHeroResponse>;
|
|
331
|
+
/**
|
|
332
|
+
* Returns the follower items for the specified battle tag and hero ID.
|
|
333
|
+
* @param battleTag The battle tag of the account.
|
|
334
|
+
* @param heroId The ID of the hero.
|
|
335
|
+
* @returns The follower items resource. See {@link AccountHeroFollowerItemsResponse}.
|
|
336
|
+
*/
|
|
337
|
+
declare function accountHeroFollowerItems(battleTag: string, heroId: number): Resource<AccountHeroFollowerItemsResponse>;
|
|
338
|
+
/**
|
|
339
|
+
* Returns the items for the specified battle tag and hero ID.
|
|
340
|
+
* @param battleTag The battle tag of the account.
|
|
341
|
+
* @param heroId The ID of the hero.
|
|
342
|
+
* @returns The hero items resource. See {@link AccountHeroResponse}.
|
|
343
|
+
*/
|
|
344
|
+
declare function accountHeroItems(battleTag: string, heroId: number): Resource<AccountHeroResponse>;
|
|
345
|
+
//#endregion
|
|
346
|
+
export { AccountHeroFollowerItemsResponse as a, AccountResponse as c, accountHeroItems as i, accountHero as n, AccountHeroItemsResponse as o, accountHeroFollowerItems as r, AccountHeroResponse as s, account as t };
|
|
347
|
+
//# sourceMappingURL=index-arHhEnWi.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Resource } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/character-class-and-skill/types.d.ts
|
|
4
|
+
interface CharacterClassResponse {
|
|
5
|
+
femaleName: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
maleName: string;
|
|
8
|
+
name: string;
|
|
9
|
+
skillCategories: Array<SkillCategory>;
|
|
10
|
+
skills: Record<'active' | 'passive', Array<Skill>>;
|
|
11
|
+
slug: string;
|
|
12
|
+
}
|
|
13
|
+
interface SkillResponse {
|
|
14
|
+
runes: Array<Rune>;
|
|
15
|
+
skill: Skill;
|
|
16
|
+
}
|
|
17
|
+
interface Rune {
|
|
18
|
+
description: string;
|
|
19
|
+
descriptionHtml: string;
|
|
20
|
+
level: number;
|
|
21
|
+
name: string;
|
|
22
|
+
slug: string;
|
|
23
|
+
type: string;
|
|
24
|
+
}
|
|
25
|
+
interface Skill {
|
|
26
|
+
description: string;
|
|
27
|
+
descriptionHtml: string;
|
|
28
|
+
flavorText?: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
level: number;
|
|
31
|
+
name: string;
|
|
32
|
+
slug: string;
|
|
33
|
+
tooltipUrl: string;
|
|
34
|
+
}
|
|
35
|
+
interface SkillCategory {
|
|
36
|
+
name: string;
|
|
37
|
+
slug: string;
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/character-class-and-skill/index.d.ts
|
|
41
|
+
/**
|
|
42
|
+
* Returns the character class information for the specified character class slug.
|
|
43
|
+
* @param characterClassSlug The slug of the character class.
|
|
44
|
+
* @returns The character class resource. See {@link CharacterClassResponse}.
|
|
45
|
+
*/
|
|
46
|
+
declare function characterClass(characterClassSlug: string): Resource<CharacterClassResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the skill information for the specified character class and skill slugs.
|
|
49
|
+
* @param characterClassSlug The slug of the character class.
|
|
50
|
+
* @param skillSlug The slug of the skill.
|
|
51
|
+
* @returns The skill resource. See {@link SkillResponse}.
|
|
52
|
+
*/
|
|
53
|
+
declare function skill(characterClassSlug: string, skillSlug: string): Resource<SkillResponse>;
|
|
54
|
+
//#endregion
|
|
55
|
+
export { SkillResponse as i, skill as n, CharacterClassResponse as r, characterClass as t };
|
|
56
|
+
//# sourceMappingURL=index-nKhzpD4F.d.ts.map
|