@blizzard-api/wow 3.0.4 → 3.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 +31 -29
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseSearchParameters, Character, Color, Faction, Factions, Gender, GenderName, Href, KeyBase, Locales, MediaAsset, NameId, NameIdKey, Origins, ProtectedResource, Realm, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
|
|
1
|
+
import { BaseSearchParameters, Character, Color, Faction, Factions, Gender, GenderName, Href, KeyBase, Locales, MediaAsset, NameId, NameIdKey, NullishNameIdKey, Origins, ProtectedResource, Realm, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
|
|
2
2
|
|
|
3
3
|
//#region src/account-profile/types.d.ts
|
|
4
4
|
interface AccountCollectionsIndexResponse {
|
|
@@ -590,7 +590,7 @@ interface BorderEmblem {
|
|
|
590
590
|
interface Choice {
|
|
591
591
|
display_order: number;
|
|
592
592
|
id: number;
|
|
593
|
-
name?: string;
|
|
593
|
+
name?: null | string;
|
|
594
594
|
}
|
|
595
595
|
interface Customization {
|
|
596
596
|
choice: Choice;
|
|
@@ -953,6 +953,7 @@ interface Socket$1 {
|
|
|
953
953
|
}
|
|
954
954
|
interface Spell$1 {
|
|
955
955
|
description: string;
|
|
956
|
+
display_color?: Color;
|
|
956
957
|
spell: NameIdKey;
|
|
957
958
|
}
|
|
958
959
|
interface Stat$2 {
|
|
@@ -1334,7 +1335,7 @@ interface Trait {
|
|
|
1334
1335
|
trait?: NameIdKey;
|
|
1335
1336
|
}
|
|
1336
1337
|
interface TypeClass {
|
|
1337
|
-
name:
|
|
1338
|
+
name: string;
|
|
1338
1339
|
type: 'ENDURANCE' | 'FINESSE' | 'POTENCY';
|
|
1339
1340
|
}
|
|
1340
1341
|
//#endregion
|
|
@@ -1391,11 +1392,11 @@ interface Specialization$1 {
|
|
|
1391
1392
|
specialization: NameIdKey;
|
|
1392
1393
|
}
|
|
1393
1394
|
interface SpellTooltip$3 {
|
|
1394
|
-
cast_time?:
|
|
1395
|
+
cast_time?: string;
|
|
1395
1396
|
cooldown?: string;
|
|
1396
1397
|
description?: string;
|
|
1397
1398
|
power_cost?: string;
|
|
1398
|
-
range?:
|
|
1399
|
+
range?: string;
|
|
1399
1400
|
spell: KeyBase & {
|
|
1400
1401
|
id: number;
|
|
1401
1402
|
name?: string;
|
|
@@ -1591,7 +1592,7 @@ interface ConnectedRealmResponse extends ResponseBase {
|
|
|
1591
1592
|
realm_locked_status?: RealmLockedStatus;
|
|
1592
1593
|
realms: Array<Realm$4>;
|
|
1593
1594
|
status: {
|
|
1594
|
-
name:
|
|
1595
|
+
name: string;
|
|
1595
1596
|
type: RealmStatusCapitalized;
|
|
1596
1597
|
};
|
|
1597
1598
|
}
|
|
@@ -1641,7 +1642,6 @@ interface RealmLockedStatus {
|
|
|
1641
1642
|
is_locked_for_pct: boolean;
|
|
1642
1643
|
}
|
|
1643
1644
|
type RealmPopulationCapitalized = 'FULL' | 'HIGH' | 'LOW' | 'MEDIUM' | 'RECOMMENDED';
|
|
1644
|
-
type RealmStatus = 'Down' | 'Up';
|
|
1645
1645
|
type RealmStatusCapitalized = 'DOWN' | 'UP';
|
|
1646
1646
|
interface SearchRealm {
|
|
1647
1647
|
category: Record<Locales, string>;
|
|
@@ -2137,7 +2137,7 @@ interface EncounterActivity {
|
|
|
2137
2137
|
encounter: NameIdKey;
|
|
2138
2138
|
mode: {
|
|
2139
2139
|
name: string;
|
|
2140
|
-
type:
|
|
2140
|
+
type: ModeType$1;
|
|
2141
2141
|
};
|
|
2142
2142
|
}
|
|
2143
2143
|
interface Guild$1 extends NameIdKey {
|
|
@@ -2148,6 +2148,7 @@ interface Member$1 {
|
|
|
2148
2148
|
character: RosterMemberCharacter;
|
|
2149
2149
|
rank: number;
|
|
2150
2150
|
}
|
|
2151
|
+
type ModeType$1 = 'HEROIC' | 'LEGACY_10_MAN' | 'LEGACY_10_MAN_HEROIC' | 'LEGACY_25_MAN' | 'LEGACY_25_MAN_HEROIC' | 'LFR' | 'MYTHIC' | 'MYTHIC_KEYSTONE' | 'NORMAL';
|
|
2151
2152
|
interface Playable extends KeyBase {
|
|
2152
2153
|
id: number;
|
|
2153
2154
|
}
|
|
@@ -2489,7 +2490,7 @@ interface PreviewItem {
|
|
|
2489
2490
|
shield_block?: Armor;
|
|
2490
2491
|
spells?: Array<Spell>;
|
|
2491
2492
|
stats?: Array<Stat>;
|
|
2492
|
-
unique_equipped?:
|
|
2493
|
+
unique_equipped?: string;
|
|
2493
2494
|
weapon?: Weapon;
|
|
2494
2495
|
}
|
|
2495
2496
|
interface Recipe {
|
|
@@ -2606,7 +2607,7 @@ declare function itemSubClass(itemClassId: number, itemSubclassId: number): Reso
|
|
|
2606
2607
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2607
2608
|
*/
|
|
2608
2609
|
interface JournalEncounterIndexResponse extends ResponseBase {
|
|
2609
|
-
encounters: Array<
|
|
2610
|
+
encounters: Array<NullishNameIdKey>;
|
|
2610
2611
|
}
|
|
2611
2612
|
/**
|
|
2612
2613
|
* The response for a journal encounter.
|
|
@@ -2821,7 +2822,7 @@ interface Media$9 extends KeyBase {
|
|
|
2821
2822
|
id: number;
|
|
2822
2823
|
}
|
|
2823
2824
|
interface Mode {
|
|
2824
|
-
name:
|
|
2825
|
+
name: string;
|
|
2825
2826
|
type: ModeType;
|
|
2826
2827
|
}
|
|
2827
2828
|
interface ModeElement {
|
|
@@ -2830,7 +2831,6 @@ interface ModeElement {
|
|
|
2830
2831
|
mode: Mode;
|
|
2831
2832
|
players: number;
|
|
2832
2833
|
}
|
|
2833
|
-
type ModeName = '10 Player' | '10 Player (Heroic)' | '25 Player' | '25 Player (Heroic)' | 'Heroic' | 'Mythic' | 'Mythic+ Dungeons' | 'Normal' | 'Raid Finder';
|
|
2834
2834
|
type ModeType = 'HEROIC' | 'LEGACY_10_MAN' | 'LEGACY_10_MAN_HEROIC' | 'LEGACY_25_MAN' | 'LEGACY_25_MAN_HEROIC' | 'LFR' | 'MYTHIC' | 'MYTHIC_KEYSTONE' | 'NORMAL';
|
|
2835
2835
|
//#endregion
|
|
2836
2836
|
//#region src/journal/journal.d.ts
|
|
@@ -2920,7 +2920,7 @@ declare function mediaSearch(options: MediaSearchParameters): Resource<MediaSear
|
|
|
2920
2920
|
interface ModifiedCraftingCategoryIndexResponse extends ResponseBase {
|
|
2921
2921
|
categories: Array<KeyBase & {
|
|
2922
2922
|
id: number;
|
|
2923
|
-
name?: string;
|
|
2923
|
+
name?: null | string;
|
|
2924
2924
|
}>;
|
|
2925
2925
|
}
|
|
2926
2926
|
/**
|
|
@@ -2957,7 +2957,7 @@ interface ModifiedCraftingReagentSlotTypeResponse extends ResponseBase {
|
|
|
2957
2957
|
}
|
|
2958
2958
|
interface SlotType extends KeyBase {
|
|
2959
2959
|
id: number;
|
|
2960
|
-
name?: string;
|
|
2960
|
+
name?: null | string;
|
|
2961
2961
|
}
|
|
2962
2962
|
//#endregion
|
|
2963
2963
|
//#region src/modified-crafting/modified-crafting.d.ts
|
|
@@ -2995,7 +2995,7 @@ declare function modifiedCraftingReagentSlotTypeIndex(): Resource<ModifiedCrafti
|
|
|
2995
2995
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2996
2996
|
*/
|
|
2997
2997
|
interface MountIndexResponse extends ResponseBase {
|
|
2998
|
-
mounts: Array<
|
|
2998
|
+
mounts: Array<NullishNameIdKey>;
|
|
2999
2999
|
}
|
|
3000
3000
|
/**
|
|
3001
3001
|
* The response for a mount.
|
|
@@ -3335,11 +3335,11 @@ interface Guild extends NameId {
|
|
|
3335
3335
|
}
|
|
3336
3336
|
interface JournalInstance extends KeyBase {
|
|
3337
3337
|
id: number;
|
|
3338
|
-
name: null;
|
|
3338
|
+
name: null | string;
|
|
3339
3339
|
}
|
|
3340
3340
|
interface Realm$2 {
|
|
3341
3341
|
id: number;
|
|
3342
|
-
name: null;
|
|
3342
|
+
name: null | string;
|
|
3343
3343
|
slug: string;
|
|
3344
3344
|
}
|
|
3345
3345
|
//#endregion
|
|
@@ -3358,7 +3358,7 @@ declare function mythicRaidLeaderboard(raid: string, faction: Lowercase<Factions
|
|
|
3358
3358
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
3359
3359
|
*/
|
|
3360
3360
|
interface PetAbilityIndexResponse extends ResponseBase {
|
|
3361
|
-
abilities: Array<
|
|
3361
|
+
abilities: Array<NullishNameIdKey>;
|
|
3362
3362
|
}
|
|
3363
3363
|
/**
|
|
3364
3364
|
* The response for a pet ability media.
|
|
@@ -3383,7 +3383,7 @@ interface PetAbilityResponse extends NameId, ResponseBase {
|
|
|
3383
3383
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
3384
3384
|
*/
|
|
3385
3385
|
interface PetIndexResponse extends ResponseBase {
|
|
3386
|
-
pets: Array<
|
|
3386
|
+
pets: Array<NullishNameIdKey>;
|
|
3387
3387
|
}
|
|
3388
3388
|
/**
|
|
3389
3389
|
* The response for a pet search.
|
|
@@ -3590,7 +3590,7 @@ interface PlayableSpecializationMediaResponse extends ResponseBase {
|
|
|
3590
3590
|
*/
|
|
3591
3591
|
interface PlayableSpecializationResponse extends NameId, ResponseBase {
|
|
3592
3592
|
gender_description: GenderName;
|
|
3593
|
-
hero_talent_trees: Array<
|
|
3593
|
+
hero_talent_trees: Array<NullishNameIdKey>;
|
|
3594
3594
|
media: Media$5;
|
|
3595
3595
|
playable_class: NameIdKey;
|
|
3596
3596
|
power_type: NameIdKey;
|
|
@@ -3727,7 +3727,7 @@ interface RecipeResponse extends NameId, ResponseBase {
|
|
|
3727
3727
|
}
|
|
3728
3728
|
interface Category {
|
|
3729
3729
|
name: string;
|
|
3730
|
-
recipes: Array<
|
|
3730
|
+
recipes: Array<NullishNameIdKey>;
|
|
3731
3731
|
}
|
|
3732
3732
|
interface CraftedQuantity {
|
|
3733
3733
|
maximum?: number;
|
|
@@ -3916,7 +3916,7 @@ declare function pvpSeasonIndex(): Resource<PvpSeasonIndexResponse>;
|
|
|
3916
3916
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
3917
3917
|
*/
|
|
3918
3918
|
interface PvpTierIndexResponse extends ResponseBase {
|
|
3919
|
-
tiers: Array<
|
|
3919
|
+
tiers: Array<NullishNameIdKey>;
|
|
3920
3920
|
}
|
|
3921
3921
|
/**
|
|
3922
3922
|
* The response for a PvP tier media.
|
|
@@ -3930,11 +3930,13 @@ interface PvpTierMediaResponse extends ResponseBase {
|
|
|
3930
3930
|
* The response for a PvP tier.
|
|
3931
3931
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
3932
3932
|
*/
|
|
3933
|
-
interface PvpTierResponse extends
|
|
3933
|
+
interface PvpTierResponse extends ResponseBase {
|
|
3934
3934
|
bracket: Bracket;
|
|
3935
|
+
id: number;
|
|
3935
3936
|
max_rating: number;
|
|
3936
3937
|
media: Media$3;
|
|
3937
3938
|
min_rating: number;
|
|
3939
|
+
name: null | string;
|
|
3938
3940
|
rating_type: number;
|
|
3939
3941
|
}
|
|
3940
3942
|
interface Bracket {
|
|
@@ -3970,7 +3972,7 @@ declare function pvpTierMedia(pvpTierId: number): Resource<PvpTierMediaResponse>
|
|
|
3970
3972
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
3971
3973
|
*/
|
|
3972
3974
|
interface QuestAreaIndexResponse extends ResponseBase {
|
|
3973
|
-
areas: Array<
|
|
3975
|
+
areas: Array<NullishNameIdKey>;
|
|
3974
3976
|
}
|
|
3975
3977
|
/**
|
|
3976
3978
|
* The response for a quest area.
|
|
@@ -4165,7 +4167,7 @@ declare function regionIndex(): Resource<RegionIndexResponse>;
|
|
|
4165
4167
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
4166
4168
|
*/
|
|
4167
4169
|
interface ReputationFactionIndexResponse extends ResponseBase {
|
|
4168
|
-
factions: Array<
|
|
4170
|
+
factions: Array<NullishNameIdKey>;
|
|
4169
4171
|
root_factions: Array<NameIdKey>;
|
|
4170
4172
|
}
|
|
4171
4173
|
/**
|
|
@@ -4334,7 +4336,7 @@ interface PvpTalentResponse extends ResponseBase {
|
|
|
4334
4336
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
4335
4337
|
*/
|
|
4336
4338
|
interface TalentIndexResponse extends ResponseBase {
|
|
4337
|
-
talents: Array<
|
|
4339
|
+
talents: Array<NullishNameIdKey>;
|
|
4338
4340
|
}
|
|
4339
4341
|
/**
|
|
4340
4342
|
* The response for a talent.
|
|
@@ -4598,7 +4600,7 @@ interface SpellTooltip {
|
|
|
4598
4600
|
description: null | string;
|
|
4599
4601
|
power_cost?: null | string;
|
|
4600
4602
|
range?: string;
|
|
4601
|
-
spell:
|
|
4603
|
+
spell: NullishNameIdKey;
|
|
4602
4604
|
}
|
|
4603
4605
|
interface TalentTree extends KeyBase {
|
|
4604
4606
|
id: number;
|
|
@@ -4655,10 +4657,10 @@ interface TitleSource {
|
|
|
4655
4657
|
achievements?: Array<NameIdKey>;
|
|
4656
4658
|
quests?: Array<NameIdKey>;
|
|
4657
4659
|
type: {
|
|
4658
|
-
name:
|
|
4660
|
+
name: string;
|
|
4659
4661
|
type: 'ACHIEVEMENT';
|
|
4660
4662
|
} | {
|
|
4661
|
-
name:
|
|
4663
|
+
name: string;
|
|
4662
4664
|
type: 'QUEST';
|
|
4663
4665
|
};
|
|
4664
4666
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blizzard-api/wow",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Putro",
|
|
6
6
|
"description": "A series of helpers to interact with the World of Warcraft Blizzard API",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@blizzard-api/core": "3.0.
|
|
37
|
+
"@blizzard-api/core": "3.0.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@blizzard-api/core": "3.0.
|
|
40
|
+
"@blizzard-api/core": "3.0.2"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsdown",
|