@blizzard-api/wow 4.2.2 → 4.2.3
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/account-profile/index.js +1 -1
- package/dist/account-profile/index.js.map +1 -1
- package/dist/achievements/index.js +3 -3
- package/dist/achievements/index.js.map +1 -1
- package/dist/auction-house/index.js +1 -1
- package/dist/auction-house/index.js.map +1 -1
- package/dist/azerite-essence/index.js +2 -2
- package/dist/azerite-essence/index.js.map +1 -1
- package/dist/character-achievements/index.js +2 -2
- package/dist/character-achievements/index.js.map +1 -1
- package/dist/character-appearance/index.js +1 -1
- package/dist/character-appearance/index.js.map +1 -1
- package/dist/character-collections/index.js +7 -7
- package/dist/character-collections/index.js.map +1 -1
- package/dist/character-encounters/index.js +3 -3
- package/dist/character-encounters/index.js.map +1 -1
- package/dist/character-equipment/index.js +1 -1
- package/dist/character-equipment/index.js.map +1 -1
- package/dist/character-house/index.js +1 -1
- package/dist/character-house/index.js.map +1 -1
- package/dist/character-hunter-pets/index.js +1 -1
- package/dist/character-hunter-pets/index.js.map +1 -1
- package/dist/character-media/index.js +1 -1
- package/dist/character-media/index.js.map +1 -1
- package/dist/character-mythic-keystone-profile/index.js +2 -2
- package/dist/character-mythic-keystone-profile/index.js.map +1 -1
- package/dist/character-professions/index.js +1 -1
- package/dist/character-professions/index.js.map +1 -1
- package/dist/character-profile/index.js +2 -2
- package/dist/character-profile/index.js.map +1 -1
- package/dist/character-pvp/index.js +2 -2
- package/dist/character-pvp/index.js.map +1 -1
- package/dist/character-quests/index.js +2 -2
- package/dist/character-quests/index.js.map +1 -1
- package/dist/character-reputations/index.js +1 -1
- package/dist/character-reputations/index.js.map +1 -1
- package/dist/character-soulbinds/index.js +1 -1
- package/dist/character-soulbinds/index.js.map +1 -1
- package/dist/character-specializations/index.js +1 -1
- package/dist/character-specializations/index.js.map +1 -1
- package/dist/character-statistics/index.js +1 -1
- package/dist/character-statistics/index.js.map +1 -1
- package/dist/character-titles/index.js +1 -1
- package/dist/character-titles/index.js.map +1 -1
- package/dist/connected-realm/index.js +1 -1
- package/dist/connected-realm/index.js.map +1 -1
- package/dist/covenant/index.js +4 -4
- package/dist/covenant/index.js.map +1 -1
- package/dist/creature/index.js +5 -5
- package/dist/creature/index.js.map +1 -1
- package/dist/guild/index.js +4 -4
- package/dist/guild/index.js.map +1 -1
- package/dist/guild-crest/index.js +2 -2
- package/dist/guild-crest/index.js.map +1 -1
- package/dist/heirloom/index.js +1 -1
- package/dist/heirloom/index.js.map +1 -1
- package/dist/housing-decor/index.js +4 -4
- package/dist/housing-decor/index.js.map +1 -1
- package/dist/{index-BaL7P-bA.d.ts → index-Cqlff6vd.d.ts} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/item/index.js +5 -5
- package/dist/item/index.js.map +1 -1
- package/dist/item-appearance/index.js +3 -3
- package/dist/item-appearance/index.js.map +1 -1
- package/dist/journal/index.js +4 -4
- package/dist/journal/index.js.map +1 -1
- package/dist/modified-crafting/index.js +2 -2
- package/dist/modified-crafting/index.js.map +1 -1
- package/dist/mount/index.js +1 -1
- package/dist/mount/index.js.map +1 -1
- package/dist/mythic-keystone-affix/index.js +2 -2
- package/dist/mythic-keystone-affix/index.js.map +1 -1
- package/dist/mythic-keystone-dungeon/index.js +3 -3
- package/dist/mythic-keystone-dungeon/index.js.map +1 -1
- package/dist/mythic-keystone-leaderboard/index.js +2 -2
- package/dist/mythic-keystone-leaderboard/index.js.map +1 -1
- package/dist/mythic-raid-leaderboard/index.js +1 -1
- package/dist/mythic-raid-leaderboard/index.js.map +1 -1
- package/dist/neighborhood-map/index.js +2 -2
- package/dist/neighborhood-map/index.js.map +1 -1
- package/dist/pet/index.js +4 -4
- package/dist/pet/index.js.map +1 -1
- package/dist/playable-class/index.js +3 -3
- package/dist/playable-class/index.js.map +1 -1
- package/dist/playable-race/index.js +1 -1
- package/dist/playable-race/index.js.map +1 -1
- package/dist/playable-specialization/index.js +2 -2
- package/dist/playable-specialization/index.js.map +1 -1
- package/dist/power-type/index.js +1 -1
- package/dist/power-type/index.js.map +1 -1
- package/dist/profession/index.js +5 -5
- package/dist/profession/index.js.map +1 -1
- package/dist/pvp-season/index.js +4 -4
- package/dist/pvp-season/index.js.map +1 -1
- package/dist/pvp-tier/index.js +2 -2
- package/dist/pvp-tier/index.js.map +1 -1
- package/dist/quest/index.d.ts +1 -1
- package/dist/quest/index.js +4 -4
- package/dist/quest/index.js.map +1 -1
- package/dist/realm/index.js +1 -1
- package/dist/realm/index.js.map +1 -1
- package/dist/region/index.js +1 -1
- package/dist/region/index.js.map +1 -1
- package/dist/reputations/index.js +2 -2
- package/dist/reputations/index.js.map +1 -1
- package/dist/spell/index.js +2 -2
- package/dist/spell/index.js.map +1 -1
- package/dist/talent/index.js +4 -4
- package/dist/talent/index.js.map +1 -1
- package/dist/tech-talent/index.js +3 -3
- package/dist/tech-talent/index.js.map +1 -1
- package/dist/title/index.js +1 -1
- package/dist/title/index.js.map +1 -1
- package/dist/toy/index.js +1 -1
- package/dist/toy/index.js.map +1 -1
- package/package.json +3 -3
package/dist/realm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/realm/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { RealmIndexResponse, RealmResponse, RealmSearchParameters, RealmSearchResponse } from './types';\n\n/**\n * Get a realm by slug.\n * @param realmSlug The realm slug.\n * @returns The realm. See {@link RealmResponse}.\n */\nexport function realm(realmSlug: string): Resource<RealmResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/realm/${realmSlug}`,\n };\n}\n/**\n * Get a realm index.\n * @returns The realm index. See {@link RealmIndexResponse}.\n */\nexport function realmIndex(): Resource<RealmIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/realm/index`,\n };\n}\n/**\n * Search for realms.\n * @param options The search parameters. See {@link RealmSearchParameters}.\n * @returns The search results. See {@link RealmSearchResponse}.\n */\nexport function realmSearch(options: RealmSearchParameters): Resource<RealmSearchResponse, RealmSearchParameters> {\n return {\n namespace: 'dynamic',\n parameters: {\n _page: options._page,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n timezone: options.timezone,\n },\n path: `${wowSearchBasePath}/realm`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,MAAM,WAA4C;CAChE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/realm/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { RealmIndexResponse, RealmResponse, RealmSearchParameters, RealmSearchResponse } from './types';\n\n/**\n * Get a realm by slug.\n * @param realmSlug The realm slug.\n * @returns The realm. See {@link RealmResponse}.\n */\nexport function realm(realmSlug: string): Resource<RealmResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/realm/${encodeURIComponent(realmSlug)}`,\n };\n}\n/**\n * Get a realm index.\n * @returns The realm index. See {@link RealmIndexResponse}.\n */\nexport function realmIndex(): Resource<RealmIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/realm/index`,\n };\n}\n/**\n * Search for realms.\n * @param options The search parameters. See {@link RealmSearchParameters}.\n * @returns The search results. See {@link RealmSearchResponse}.\n */\nexport function realmSearch(options: RealmSearchParameters): Resource<RealmSearchResponse, RealmSearchParameters> {\n return {\n namespace: 'dynamic',\n parameters: {\n _page: options._page,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n timezone: options.timezone,\n },\n path: `${wowSearchBasePath}/realm`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,MAAM,WAA4C;CAChE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS,mBAAmB,SAAS;CAC5D;AACF;;;;;AAKA,SAAgB,aAA2C;CACzD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,YAAY,SAAsF;CAChH,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;GACf,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;GAC9E,UAAU,QAAQ;EACpB;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF"}
|
package/dist/region/index.js
CHANGED
package/dist/region/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/region/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { RegionIndexResponse, RegionResponse } from './types';\n\n/**\n * Get a region by ID.\n * @param regionId The region ID.\n * @returns The region. See {@link RegionResponse}.\n */\nexport function region(regionId: number): Resource<RegionResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/region/${regionId}`,\n };\n}\n/**\n * Get a region index.\n * @returns The region index. See {@link RegionIndexResponse}.\n */\nexport function regionIndex(): Resource<RegionIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/region/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,OAAO,UAA4C;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,UAAU;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/region/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { RegionIndexResponse, RegionResponse } from './types';\n\n/**\n * Get a region by ID.\n * @param regionId The region ID.\n * @returns The region. See {@link RegionResponse}.\n */\nexport function region(regionId: number): Resource<RegionResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/region/${encodeURIComponent(regionId)}`,\n };\n}\n/**\n * Get a region index.\n * @returns The region index. See {@link RegionIndexResponse}.\n */\nexport function regionIndex(): Resource<RegionIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/region/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,OAAO,UAA4C;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,UAAU,mBAAmB,QAAQ;CAC5D;AACF;;;;;AAKA,SAAgB,cAA6C;CAC3D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
|
|
@@ -8,7 +8,7 @@ import { wowBasePath } from "@blizzard-api/core";
|
|
|
8
8
|
function reputationFaction(reputationFactionId) {
|
|
9
9
|
return {
|
|
10
10
|
namespace: "static",
|
|
11
|
-
path: `${wowBasePath}/reputation-faction/${reputationFactionId}`
|
|
11
|
+
path: `${wowBasePath}/reputation-faction/${encodeURIComponent(reputationFactionId)}`
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
@@ -29,7 +29,7 @@ function reputationFactionIndex() {
|
|
|
29
29
|
function reputationTiers(reputationTiersId) {
|
|
30
30
|
return {
|
|
31
31
|
namespace: "static",
|
|
32
|
-
path: `${wowBasePath}/reputation-tiers/${reputationTiersId}`
|
|
32
|
+
path: `${wowBasePath}/reputation-tiers/${encodeURIComponent(reputationTiersId)}`
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/reputations/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n ReputationFactionIndexResponse,\n ReputationFactionResponse,\n ReputationTiersIndexResponse,\n ReputationTiersResponse,\n} from './types';\n\n/**\n * Get a reputation faction by ID.\n * @param reputationFactionId The reputation faction ID.\n * @returns The reputation faction. See {@link ReputationFactionResponse}.\n */\nexport function reputationFaction(reputationFactionId: number): Resource<ReputationFactionResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/reputation-faction/${reputationFactionId}`,\n };\n}\n/**\n * Get a reputation faction index.\n * @returns The reputation faction index. See {@link ReputationFactionIndexResponse}.\n */\nexport function reputationFactionIndex(): Resource<ReputationFactionIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/reputation-faction/index`,\n };\n}\n/**\n * Get a reputation tier by ID.\n * @param reputationTiersId The reputation tier ID.\n * @returns The reputation tier. See {@link ReputationTiersResponse}.\n */\nexport function reputationTiers(reputationTiersId: number): Resource<ReputationTiersResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/reputation-tiers/${reputationTiersId}`,\n };\n}\n/**\n * Get a reputation tier index.\n * @returns The reputation tier index. See {@link ReputationTiersIndexResponse}.\n */\nexport function reputationTiersIndex(): Resource<ReputationTiersIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/reputation-tiers/index`,\n };\n}\n"],"mappings":";;;;;;;AAcA,SAAgB,kBAAkB,qBAAkE;CAClG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,sBAAsB;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/reputations/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n ReputationFactionIndexResponse,\n ReputationFactionResponse,\n ReputationTiersIndexResponse,\n ReputationTiersResponse,\n} from './types';\n\n/**\n * Get a reputation faction by ID.\n * @param reputationFactionId The reputation faction ID.\n * @returns The reputation faction. See {@link ReputationFactionResponse}.\n */\nexport function reputationFaction(reputationFactionId: number): Resource<ReputationFactionResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/reputation-faction/${encodeURIComponent(reputationFactionId)}`,\n };\n}\n/**\n * Get a reputation faction index.\n * @returns The reputation faction index. See {@link ReputationFactionIndexResponse}.\n */\nexport function reputationFactionIndex(): Resource<ReputationFactionIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/reputation-faction/index`,\n };\n}\n/**\n * Get a reputation tier by ID.\n * @param reputationTiersId The reputation tier ID.\n * @returns The reputation tier. See {@link ReputationTiersResponse}.\n */\nexport function reputationTiers(reputationTiersId: number): Resource<ReputationTiersResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/reputation-tiers/${encodeURIComponent(reputationTiersId)}`,\n };\n}\n/**\n * Get a reputation tier index.\n * @returns The reputation tier index. See {@link ReputationTiersIndexResponse}.\n */\nexport function reputationTiersIndex(): Resource<ReputationTiersIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/reputation-tiers/index`,\n };\n}\n"],"mappings":";;;;;;;AAcA,SAAgB,kBAAkB,qBAAkE;CAClG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,sBAAsB,mBAAmB,mBAAmB;CACnF;AACF;;;;;AAKA,SAAgB,yBAAmE;CACjF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,gBAAgB,mBAA8D;CAC5F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,oBAAoB,mBAAmB,iBAAiB;CAC/E;AACF;;;;;AAKA,SAAgB,uBAA+D;CAC7E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
|
package/dist/spell/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from "@blizzard-api/
|
|
|
8
8
|
function spell(spellId) {
|
|
9
9
|
return {
|
|
10
10
|
namespace: "static",
|
|
11
|
-
path: `${wowBasePath}/spell/${spellId}`
|
|
11
|
+
path: `${wowBasePath}/spell/${encodeURIComponent(spellId)}`
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
@@ -19,7 +19,7 @@ function spell(spellId) {
|
|
|
19
19
|
function spellMedia(spellId) {
|
|
20
20
|
return {
|
|
21
21
|
namespace: "static",
|
|
22
|
-
path: `${wowMediaBasePath}/spell/${spellId}`
|
|
22
|
+
path: `${wowMediaBasePath}/spell/${encodeURIComponent(spellId)}`
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
/**
|
package/dist/spell/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/spell/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { SpellMediaResponse, SpellResponse, SpellSearchParameters, SpellSearchResponse } from './types';\n\n/**\n * Get a spell by ID.\n * @param spellId The spell ID.\n * @returns The spell. See {@link SpellResponse}.\n */\nexport function spell(spellId: number): Resource<SpellResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/spell/${spellId}`,\n };\n}\n/**\n * Get spell media by ID.\n * @param spellId The spell ID.\n * @returns The spell media. See {@link SpellMediaResponse}.\n */\nexport function spellMedia(spellId: number): Resource<SpellMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/spell/${spellId}`,\n };\n}\n/**\n * Get a spell search.\n * @param options The spell search options. See {@link SpellSearchParameters}.\n * @returns The spell search. See {@link SpellSearchResponse}.\n */\nexport function spellSearch(\n options: SpellSearchParameters,\n): Resource<SpellSearchResponse, Omit<SpellSearchParameters, 'locale' | 'name'>> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n [`name.${options.locale}`]: options.name,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/spell`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,MAAM,SAA0C;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/spell/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { SpellMediaResponse, SpellResponse, SpellSearchParameters, SpellSearchResponse } from './types';\n\n/**\n * Get a spell by ID.\n * @param spellId The spell ID.\n * @returns The spell. See {@link SpellResponse}.\n */\nexport function spell(spellId: number): Resource<SpellResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/spell/${encodeURIComponent(spellId)}`,\n };\n}\n/**\n * Get spell media by ID.\n * @param spellId The spell ID.\n * @returns The spell media. See {@link SpellMediaResponse}.\n */\nexport function spellMedia(spellId: number): Resource<SpellMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/spell/${encodeURIComponent(spellId)}`,\n };\n}\n/**\n * Get a spell search.\n * @param options The spell search options. See {@link SpellSearchParameters}.\n * @returns The spell search. See {@link SpellSearchResponse}.\n */\nexport function spellSearch(\n options: SpellSearchParameters,\n): Resource<SpellSearchResponse, Omit<SpellSearchParameters, 'locale' | 'name'>> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n [`name.${options.locale}`]: options.name,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/spell`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,MAAM,SAA0C;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS,mBAAmB,OAAO;CAC1D;AACF;;;;;;AAMA,SAAgB,WAAW,SAA+C;CACxE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,SAAS,mBAAmB,OAAO;CAC/D;AACF;;;;;;AAMA,SAAgB,YACd,SAC+E;CAC/E,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF"}
|
package/dist/talent/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { wowBasePath } from "@blizzard-api/core";
|
|
|
8
8
|
function pvpTalent(pvpTalentId) {
|
|
9
9
|
return {
|
|
10
10
|
namespace: "static",
|
|
11
|
-
path: `${wowBasePath}/pvp-talent/${pvpTalentId}`
|
|
11
|
+
path: `${wowBasePath}/pvp-talent/${encodeURIComponent(pvpTalentId)}`
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
@@ -29,7 +29,7 @@ function pvpTalentIndex() {
|
|
|
29
29
|
function talent(talentId) {
|
|
30
30
|
return {
|
|
31
31
|
namespace: "static",
|
|
32
|
-
path: `${wowBasePath}/talent/${talentId}`
|
|
32
|
+
path: `${wowBasePath}/talent/${encodeURIComponent(talentId)}`
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
@@ -51,7 +51,7 @@ function talentIndex() {
|
|
|
51
51
|
function talentTree(talentTreeId, specId) {
|
|
52
52
|
return {
|
|
53
53
|
namespace: "static",
|
|
54
|
-
path: `${wowBasePath}/talent-tree/${talentTreeId}/playable-specialization/${specId}`
|
|
54
|
+
path: `${wowBasePath}/talent-tree/${encodeURIComponent(talentTreeId)}/playable-specialization/${encodeURIComponent(specId)}`
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -72,7 +72,7 @@ function talentTreeIndex() {
|
|
|
72
72
|
function talentTreeNodes(talentTreeId) {
|
|
73
73
|
return {
|
|
74
74
|
namespace: "static",
|
|
75
|
-
path: `${wowBasePath}/talent-tree/${talentTreeId}`
|
|
75
|
+
path: `${wowBasePath}/talent-tree/${encodeURIComponent(talentTreeId)}`
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
export { pvpTalent, pvpTalentIndex, talent, talentIndex, talentTree, talentTreeIndex, talentTreeNodes };
|
package/dist/talent/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/talent/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n PvpTalentIndexResponse,\n PvpTalentResponse,\n TalentIndexResponse,\n TalentResponse,\n TalentTreeIndexResponse,\n TalentTreeNodesResponse,\n TalentTreeResponse,\n} from './types';\n\n/**\n * Get a PvP talent by ID.\n * @param pvpTalentId The PvP talent ID.\n * @returns The PvP talent. See {@link PvpTalentResponse}.\n */\nexport function pvpTalent(pvpTalentId: number): Resource<PvpTalentResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pvp-talent/${pvpTalentId}`,\n };\n}\n/**\n * Get a PvP talent index.\n * @returns The PvP talent index. See {@link PvpTalentIndexResponse}.\n */\nexport function pvpTalentIndex(): Resource<PvpTalentIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pvp-talent/index`,\n };\n}\n/**\n * Get a talent by ID.\n * @param talentId The talent ID.\n * @returns The talent. See {@link TalentResponse}.\n */\nexport function talent(talentId: number): Resource<TalentResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent/${talentId}`,\n };\n}\n/**\n * Get a talent index.\n * @returns The talent index. See {@link TalentIndexResponse}.\n */\nexport function talentIndex(): Resource<TalentIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent/index`,\n };\n}\n/**\n * Get a talent tree by ID.\n * @param talentTreeId The talent tree ID.\n * @param specId The playable specialization ID.\n * @returns The talent tree. See {@link TalentTreeResponse}.\n */\nexport function talentTree(talentTreeId: number, specId: number): Resource<TalentTreeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent-tree/${talentTreeId}/playable-specialization/${specId}`,\n };\n}\n/**\n * Get a talent tree index.\n * @returns The talent tree index. See {@link TalentTreeIndexResponse}.\n */\nexport function talentTreeIndex(): Resource<TalentTreeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent-tree/index`,\n };\n}\n/**\n * Get talent tree nodes by talent tree ID.\n * @param talentTreeId The talent tree ID.\n * @returns The talent tree nodes. See {@link TalentTreeNodesResponse}.\n */\nexport function talentTreeNodes(talentTreeId: number): Resource<TalentTreeNodesResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent-tree/${talentTreeId}`,\n };\n}\n"],"mappings":";;;;;;;AAiBA,SAAgB,UAAU,aAAkD;CAC1E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/talent/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n PvpTalentIndexResponse,\n PvpTalentResponse,\n TalentIndexResponse,\n TalentResponse,\n TalentTreeIndexResponse,\n TalentTreeNodesResponse,\n TalentTreeResponse,\n} from './types';\n\n/**\n * Get a PvP talent by ID.\n * @param pvpTalentId The PvP talent ID.\n * @returns The PvP talent. See {@link PvpTalentResponse}.\n */\nexport function pvpTalent(pvpTalentId: number): Resource<PvpTalentResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pvp-talent/${encodeURIComponent(pvpTalentId)}`,\n };\n}\n/**\n * Get a PvP talent index.\n * @returns The PvP talent index. See {@link PvpTalentIndexResponse}.\n */\nexport function pvpTalentIndex(): Resource<PvpTalentIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pvp-talent/index`,\n };\n}\n/**\n * Get a talent by ID.\n * @param talentId The talent ID.\n * @returns The talent. See {@link TalentResponse}.\n */\nexport function talent(talentId: number): Resource<TalentResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent/${encodeURIComponent(talentId)}`,\n };\n}\n/**\n * Get a talent index.\n * @returns The talent index. See {@link TalentIndexResponse}.\n */\nexport function talentIndex(): Resource<TalentIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent/index`,\n };\n}\n/**\n * Get a talent tree by ID.\n * @param talentTreeId The talent tree ID.\n * @param specId The playable specialization ID.\n * @returns The talent tree. See {@link TalentTreeResponse}.\n */\nexport function talentTree(talentTreeId: number, specId: number): Resource<TalentTreeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent-tree/${encodeURIComponent(talentTreeId)}/playable-specialization/${encodeURIComponent(specId)}`,\n };\n}\n/**\n * Get a talent tree index.\n * @returns The talent tree index. See {@link TalentTreeIndexResponse}.\n */\nexport function talentTreeIndex(): Resource<TalentTreeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent-tree/index`,\n };\n}\n/**\n * Get talent tree nodes by talent tree ID.\n * @param talentTreeId The talent tree ID.\n * @returns The talent tree nodes. See {@link TalentTreeNodesResponse}.\n */\nexport function talentTreeNodes(talentTreeId: number): Resource<TalentTreeNodesResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent-tree/${encodeURIComponent(talentTreeId)}`,\n };\n}\n"],"mappings":";;;;;;;AAiBA,SAAgB,UAAU,aAAkD;CAC1E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc,mBAAmB,WAAW;CACnE;AACF;;;;;AAKA,SAAgB,iBAAmD;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,OAAO,UAA4C;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,UAAU,mBAAmB,QAAQ;CAC5D;AACF;;;;;AAKA,SAAgB,cAA6C;CAC3D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;;AAOA,SAAgB,WAAW,cAAsB,QAA8C;CAC7F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,eAAe,mBAAmB,YAAY,EAAE,2BAA2B,mBAAmB,MAAM;CAC3H;AACF;;;;;AAKA,SAAgB,kBAAqD;CACnE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,gBAAgB,cAAyD;CACvF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,eAAe,mBAAmB,YAAY;CACrE;AACF"}
|
|
@@ -8,7 +8,7 @@ import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
|
|
|
8
8
|
function techTalent(techTalentId) {
|
|
9
9
|
return {
|
|
10
10
|
namespace: "static",
|
|
11
|
-
path: `${wowBasePath}/tech-talent/${techTalentId}`
|
|
11
|
+
path: `${wowBasePath}/tech-talent/${encodeURIComponent(techTalentId)}`
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
@@ -29,7 +29,7 @@ function techTalentIndex() {
|
|
|
29
29
|
function techTalentMedia(techTalentId) {
|
|
30
30
|
return {
|
|
31
31
|
namespace: "static",
|
|
32
|
-
path: `${wowMediaBasePath}/tech-talent/${techTalentId}`
|
|
32
|
+
path: `${wowMediaBasePath}/tech-talent/${encodeURIComponent(techTalentId)}`
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
@@ -40,7 +40,7 @@ function techTalentMedia(techTalentId) {
|
|
|
40
40
|
function techTalentTree(techTalentTreeId) {
|
|
41
41
|
return {
|
|
42
42
|
namespace: "static",
|
|
43
|
-
path: `${wowBasePath}/tech-talent-tree/${techTalentTreeId}`
|
|
43
|
+
path: `${wowBasePath}/tech-talent-tree/${encodeURIComponent(techTalentTreeId)}`
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/tech-talent/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n TechTalentIndexResponse,\n TechTalentMediaResponse,\n TechTalentResponse,\n TechTalentTreeIndexResponse,\n TechTalentTreeResponse,\n} from './types';\n\n/**\n * Get a tech talent by ID.\n * @param techTalentId The tech talent ID.\n * @returns The tech talent. See {@link TechTalentResponse}.\n */\nexport function techTalent(techTalentId: number): Resource<TechTalentResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/tech-talent/${techTalentId}`,\n };\n}\n/**\n * Get a tech talent index.\n * @returns The tech talent index. See {@link TechTalentIndexResponse}.\n */\nexport function techTalentIndex(): Resource<TechTalentIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/tech-talent/index`,\n };\n}\n/**\n * Get tech talent media by ID.\n * @param techTalentId The tech talent ID.\n * @returns The tech talent media. See {@link TechTalentMediaResponse}.\n */\nexport function techTalentMedia(techTalentId: number): Resource<TechTalentMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/tech-talent/${techTalentId}`,\n };\n}\n/**\n * Get a tech talent tree by ID.\n * @param techTalentTreeId The tech talent tree ID.\n * @returns The tech talent tree. See {@link TechTalentTreeResponse}.\n */\nexport function techTalentTree(techTalentTreeId: number): Resource<TechTalentTreeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/tech-talent-tree/${techTalentTreeId}`,\n };\n}\n/**\n * Get a tech talent tree index.\n * @returns The tech talent tree index. See {@link TechTalentTreeIndexResponse}.\n */\nexport function techTalentTreeIndex(): Resource<TechTalentTreeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/tech-talent-tree/index`,\n };\n}\n"],"mappings":";;;;;;;AAeA,SAAgB,WAAW,cAAoD;CAC7E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,eAAe;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/tech-talent/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n TechTalentIndexResponse,\n TechTalentMediaResponse,\n TechTalentResponse,\n TechTalentTreeIndexResponse,\n TechTalentTreeResponse,\n} from './types';\n\n/**\n * Get a tech talent by ID.\n * @param techTalentId The tech talent ID.\n * @returns The tech talent. See {@link TechTalentResponse}.\n */\nexport function techTalent(techTalentId: number): Resource<TechTalentResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/tech-talent/${encodeURIComponent(techTalentId)}`,\n };\n}\n/**\n * Get a tech talent index.\n * @returns The tech talent index. See {@link TechTalentIndexResponse}.\n */\nexport function techTalentIndex(): Resource<TechTalentIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/tech-talent/index`,\n };\n}\n/**\n * Get tech talent media by ID.\n * @param techTalentId The tech talent ID.\n * @returns The tech talent media. See {@link TechTalentMediaResponse}.\n */\nexport function techTalentMedia(techTalentId: number): Resource<TechTalentMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/tech-talent/${encodeURIComponent(techTalentId)}`,\n };\n}\n/**\n * Get a tech talent tree by ID.\n * @param techTalentTreeId The tech talent tree ID.\n * @returns The tech talent tree. See {@link TechTalentTreeResponse}.\n */\nexport function techTalentTree(techTalentTreeId: number): Resource<TechTalentTreeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/tech-talent-tree/${encodeURIComponent(techTalentTreeId)}`,\n };\n}\n/**\n * Get a tech talent tree index.\n * @returns The tech talent tree index. See {@link TechTalentTreeIndexResponse}.\n */\nexport function techTalentTreeIndex(): Resource<TechTalentTreeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/tech-talent-tree/index`,\n };\n}\n"],"mappings":";;;;;;;AAeA,SAAgB,WAAW,cAAoD;CAC7E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,eAAe,mBAAmB,YAAY;CACrE;AACF;;;;;AAKA,SAAgB,kBAAqD;CACnE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,gBAAgB,cAAyD;CACvF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,eAAe,mBAAmB,YAAY;CAC1E;AACF;;;;;;AAMA,SAAgB,eAAe,kBAA4D;CACzF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,oBAAoB,mBAAmB,gBAAgB;CAC9E;AACF;;;;;AAKA,SAAgB,sBAA6D;CAC3E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
|
package/dist/title/index.js
CHANGED
package/dist/title/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/title/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { TitleIndexResponse, TitleResponse } from './types';\n\n/**\n * Get a title by ID.\n * @param titleId The title ID.\n * @returns The title. See {@link TitleResponse}.\n */\nexport function title(titleId: number): Resource<TitleResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/title/${titleId}`,\n };\n}\n/**\n * Get a title index.\n * @returns The title index. See {@link TitleIndexResponse}.\n */\nexport function titleIndex(): Resource<TitleIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/title/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,MAAM,SAA0C;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/title/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { TitleIndexResponse, TitleResponse } from './types';\n\n/**\n * Get a title by ID.\n * @param titleId The title ID.\n * @returns The title. See {@link TitleResponse}.\n */\nexport function title(titleId: number): Resource<TitleResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/title/${encodeURIComponent(titleId)}`,\n };\n}\n/**\n * Get a title index.\n * @returns The title index. See {@link TitleIndexResponse}.\n */\nexport function titleIndex(): Resource<TitleIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/title/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,MAAM,SAA0C;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS,mBAAmB,OAAO;CAC1D;AACF;;;;;AAKA,SAAgB,aAA2C;CACzD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
|
package/dist/toy/index.js
CHANGED
package/dist/toy/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/toy/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { ToyIndexResponse, ToyResponse } from './types';\n\n/**\n * Get a toy by ID.\n * @param toyId The toy ID.\n * @returns The toy. See {@link ToyResponse}.\n */\nexport function toy(toyId: number): Resource<ToyResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/toy/${toyId}`,\n };\n}\n/**\n * Get a toy index.\n * @returns The toy index. See {@link ToyIndexResponse}.\n */\nexport function toyIndex(): Resource<ToyIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/toy/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,IAAI,OAAsC;CACxD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,OAAO;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/toy/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { ToyIndexResponse, ToyResponse } from './types';\n\n/**\n * Get a toy by ID.\n * @param toyId The toy ID.\n * @returns The toy. See {@link ToyResponse}.\n */\nexport function toy(toyId: number): Resource<ToyResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/toy/${encodeURIComponent(toyId)}`,\n };\n}\n/**\n * Get a toy index.\n * @returns The toy index. See {@link ToyIndexResponse}.\n */\nexport function toyIndex(): Resource<ToyIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/toy/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,IAAI,OAAsC;CACxD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,OAAO,mBAAmB,KAAK;CACtD;AACF;;;;;AAKA,SAAgB,WAAuC;CACrD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blizzard-api/wow",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
4
4
|
"description": "A series of helpers to interact with the World of Warcraft Blizzard API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@blizzard-api/core": "4.5.
|
|
45
|
+
"@blizzard-api/core": "4.5.2"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@blizzard-api/core": "4.5.
|
|
48
|
+
"@blizzard-api/core": "4.5.2"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": "^22.13.0 || ^24 || ^26"
|