@blizzard-api/wow 3.0.6 → 4.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/account-profile/index.d.ts +2 -0
- package/dist/account-profile/index.js +104 -0
- package/dist/account-profile/index.js.map +1 -0
- package/dist/achievements/index.d.ts +2 -0
- package/dist/achievements/index.js +61 -0
- package/dist/achievements/index.js.map +1 -0
- package/dist/auction-house/index.d.ts +2 -0
- package/dist/auction-house/index.js +27 -0
- package/dist/auction-house/index.js.map +1 -0
- package/dist/azerite-essence/index.d.ts +2 -0
- package/dist/azerite-essence/index.js +54 -0
- package/dist/azerite-essence/index.js.map +1 -0
- package/dist/character-achievements/index.d.ts +2 -0
- package/dist/character-achievements/index.js +28 -0
- package/dist/character-achievements/index.js.map +1 -0
- package/dist/character-appearance/index.d.ts +2 -0
- package/dist/character-appearance/index.js +16 -0
- package/dist/character-appearance/index.js.map +1 -0
- package/dist/character-collections/index.d.ts +2 -0
- package/dist/character-collections/index.js +72 -0
- package/dist/character-collections/index.js.map +1 -0
- package/dist/character-encounters/index.d.ts +2 -0
- package/dist/character-encounters/index.js +39 -0
- package/dist/character-encounters/index.js.map +1 -0
- package/dist/character-equipment/index.d.ts +2 -0
- package/dist/character-equipment/index.js +16 -0
- package/dist/character-equipment/index.js.map +1 -0
- package/dist/character-hunter-pets/index.d.ts +2 -0
- package/dist/character-hunter-pets/index.js +17 -0
- package/dist/character-hunter-pets/index.js.map +1 -0
- package/dist/character-media/index.d.ts +2 -0
- package/dist/character-media/index.js +16 -0
- package/dist/character-media/index.js.map +1 -0
- package/dist/character-mythic-keystone-profile/index.d.ts +2 -0
- package/dist/character-mythic-keystone-profile/index.js +30 -0
- package/dist/character-mythic-keystone-profile/index.js.map +1 -0
- package/dist/character-professions/index.d.ts +2 -0
- package/dist/character-professions/index.js +16 -0
- package/dist/character-professions/index.js.map +1 -0
- package/dist/character-profile/index.d.ts +2 -0
- package/dist/character-profile/index.js +39 -0
- package/dist/character-profile/index.js.map +1 -0
- package/dist/character-pvp/index.d.ts +2 -0
- package/dist/character-pvp/index.js +28 -0
- package/dist/character-pvp/index.js.map +1 -0
- package/dist/character-quests/index.d.ts +2 -0
- package/dist/character-quests/index.js +27 -0
- package/dist/character-quests/index.js.map +1 -0
- package/dist/character-reputations/index.d.ts +2 -0
- package/dist/character-reputations/index.js +16 -0
- package/dist/character-reputations/index.js.map +1 -0
- package/dist/character-soulbinds/index.d.ts +2 -0
- package/dist/character-soulbinds/index.js +16 -0
- package/dist/character-soulbinds/index.js.map +1 -0
- package/dist/character-specializations/index.d.ts +2 -0
- package/dist/character-specializations/index.js +16 -0
- package/dist/character-specializations/index.js.map +1 -0
- package/dist/character-statistics/index.d.ts +2 -0
- package/dist/character-statistics/index.js +16 -0
- package/dist/character-statistics/index.js.map +1 -0
- package/dist/character-titles/index.d.ts +2 -0
- package/dist/character-titles/index.js +16 -0
- package/dist/character-titles/index.js.map +1 -0
- package/dist/connected-realm/index.d.ts +2 -0
- package/dist/connected-realm/index.js +44 -0
- package/dist/connected-realm/index.js.map +1 -0
- package/dist/covenant/index.d.ts +2 -0
- package/dist/covenant/index.js +80 -0
- package/dist/covenant/index.js.map +1 -0
- package/dist/creature/index.d.ts +2 -0
- package/dist/creature/index.js +97 -0
- package/dist/creature/index.js.map +1 -0
- package/dist/guild/index.d.ts +2 -0
- package/dist/guild/index.js +50 -0
- package/dist/guild/index.js.map +1 -0
- package/dist/guild-crest/index.d.ts +2 -0
- package/dist/guild-crest/index.js +38 -0
- package/dist/guild-crest/index.js.map +1 -0
- package/dist/heirloom/index.d.ts +2 -0
- package/dist/heirloom/index.js +27 -0
- package/dist/heirloom/index.js.map +1 -0
- package/dist/housing-decor/index.d.ts +2 -0
- package/dist/housing-decor/index.js +155 -0
- package/dist/housing-decor/index.js.map +1 -0
- package/dist/index--WL1Ol2r.d.ts +192 -0
- package/dist/index-0hpJYoWw.d.ts +86 -0
- package/dist/index-2xjdPrIp.d.ts +34 -0
- package/dist/index-8go905Or2.d.ts +46 -0
- package/dist/index-B-v4jmT8.d.ts +120 -0
- package/dist/index-BAx6xlRe.d.ts +43 -0
- package/dist/index-BJYdOuJB2.d.ts +21 -0
- package/dist/index-BM5t9AbX2.d.ts +72 -0
- package/dist/index-BOz0BCUN2.d.ts +233 -0
- package/dist/index-BUSzkCHP2.d.ts +38 -0
- package/dist/index-BWGWNZX7.d.ts +62 -0
- package/dist/index-BXawY6VA2.d.ts +150 -0
- package/dist/index-B_OrLUY42.d.ts +102 -0
- package/dist/index-BcKDDvwF.d.ts +85 -0
- package/dist/index-Bd_PavJU.d.ts +56 -0
- package/dist/index-BgkVcJkr2.d.ts +60 -0
- package/dist/index-BuORTLmA.d.ts +29 -0
- package/dist/index-C2BXkcO8.d.ts +36 -0
- package/dist/index-C9JT3jCN2.d.ts +77 -0
- package/dist/index-CE4iGLJf2.d.ts +128 -0
- package/dist/index-CH3CudPP.d.ts +91 -0
- package/dist/index-CJSqSpru.d.ts +145 -0
- package/dist/index-CMDZfaJk.d.ts +161 -0
- package/dist/index-CP1gTrDv.d.ts +312 -0
- package/dist/index-CQXTvcKu2.d.ts +72 -0
- package/dist/index-CS_QQdEk.d.ts +22 -0
- package/dist/index-CWFif_SP2.d.ts +31 -0
- package/dist/index-ChVDi11Z.d.ts +54 -0
- package/dist/index-CmJhDVVk.d.ts +157 -0
- package/dist/index-Cry2-cm82.d.ts +123 -0
- package/dist/index-Cto5KQ-A2.d.ts +71 -0
- package/dist/index-D9u-Oxk6.d.ts +69 -0
- package/dist/index-DDHIN-u0.d.ts +36 -0
- package/dist/index-DJZZaqMF.d.ts +66 -0
- package/dist/index-DLD2tbdk.d.ts +68 -0
- package/dist/index-DScltfEW.d.ts +89 -0
- package/dist/index-DZqv9GTd.d.ts +125 -0
- package/dist/index-DiU4f1cd2.d.ts +45 -0
- package/dist/index-DlkM3Nrw2.d.ts +45 -0
- package/dist/index-Do1l3j1C.d.ts +283 -0
- package/dist/index-DpfeUoRy.d.ts +149 -0
- package/dist/index-DvzdYkdL.d.ts +89 -0
- package/dist/index-DwuFoDTp.d.ts +159 -0
- package/dist/index-DxEXkR_n.d.ts +81 -0
- package/dist/index-Dzfv2QaX.d.ts +65 -0
- package/dist/index-J46u_PSy2.d.ts +117 -0
- package/dist/index-LhUh1Lk5.d.ts +30 -0
- package/dist/index-SfMQ7bBi2.d.ts +86 -0
- package/dist/index-Xyv-CG_n.d.ts +160 -0
- package/dist/index-ZAJGdEvm.d.ts +102 -0
- package/dist/index-fbBIJXcV.d.ts +69 -0
- package/dist/index-fn_f7xiC.d.ts +21 -0
- package/dist/index-h17WWDmt.d.ts +118 -0
- package/dist/index-m4fmIRKg.d.ts +35 -0
- package/dist/index.d.ts +69 -4738
- package/dist/index.js +68 -2137
- package/dist/index.js.map +1 -1
- package/dist/item/index.d.ts +2 -0
- package/dist/item/index.js +98 -0
- package/dist/item/index.js.map +1 -0
- package/dist/journal/index.d.ts +2 -0
- package/dist/journal/index.js +96 -0
- package/dist/journal/index.js.map +1 -0
- package/dist/media-search/index.d.ts +2 -0
- package/dist/media-search/index.js +22 -0
- package/dist/media-search/index.js.map +1 -0
- package/dist/modified-crafting/index.d.ts +2 -0
- package/dist/modified-crafting/index.js +58 -0
- package/dist/modified-crafting/index.js.map +1 -0
- package/dist/mount/index.d.ts +2 -0
- package/dist/mount/index.js +43 -0
- package/dist/mount/index.js.map +1 -0
- package/dist/mythic-keystone-affix/index.d.ts +2 -0
- package/dist/mythic-keystone-affix/index.js +38 -0
- package/dist/mythic-keystone-affix/index.js.map +1 -0
- package/dist/mythic-keystone-dungeon/index.d.ts +2 -0
- package/dist/mythic-keystone-dungeon/index.js +79 -0
- package/dist/mythic-keystone-dungeon/index.js.map +1 -0
- package/dist/mythic-keystone-leaderboard/index.d.ts +2 -0
- package/dist/mythic-keystone-leaderboard/index.js +30 -0
- package/dist/mythic-keystone-leaderboard/index.js.map +1 -0
- package/dist/mythic-raid-leaderboard/index.d.ts +2 -0
- package/dist/mythic-raid-leaderboard/index.js +18 -0
- package/dist/mythic-raid-leaderboard/index.js.map +1 -0
- package/dist/pet/index.d.ts +2 -0
- package/dist/pet/index.js +70 -0
- package/dist/pet/index.js.map +1 -0
- package/dist/playable-class/index.d.ts +2 -0
- package/dist/playable-class/index.js +49 -0
- package/dist/playable-class/index.js.map +1 -0
- package/dist/playable-race/index.d.ts +2 -0
- package/dist/playable-race/index.js +27 -0
- package/dist/playable-race/index.js.map +1 -0
- package/dist/playable-specialization/index.d.ts +2 -0
- package/dist/playable-specialization/index.js +38 -0
- package/dist/playable-specialization/index.js.map +1 -0
- package/dist/power-type/index.d.ts +2 -0
- package/dist/power-type/index.js +27 -0
- package/dist/power-type/index.js.map +1 -0
- package/dist/profession/index.d.ts +2 -0
- package/dist/profession/index.js +72 -0
- package/dist/profession/index.js.map +1 -0
- package/dist/pvp-season/index.d.ts +2 -0
- package/dist/pvp-season/index.js +61 -0
- package/dist/pvp-season/index.js.map +1 -0
- package/dist/pvp-tier/index.d.ts +2 -0
- package/dist/pvp-tier/index.js +38 -0
- package/dist/pvp-tier/index.js.map +1 -0
- package/dist/quest/index.d.ts +2 -0
- package/dist/quest/index.js +90 -0
- package/dist/quest/index.js.map +1 -0
- package/dist/realm/index.d.ts +24 -0
- package/dist/realm/index.js +43 -0
- package/dist/realm/index.js.map +1 -0
- package/dist/region/index.d.ts +2 -0
- package/dist/region/index.js +27 -0
- package/dist/region/index.js.map +1 -0
- package/dist/reputations/index.d.ts +2 -0
- package/dist/reputations/index.js +48 -0
- package/dist/reputations/index.js.map +1 -0
- package/dist/spell/index.d.ts +2 -0
- package/dist/spell/index.js +44 -0
- package/dist/spell/index.js.map +1 -0
- package/dist/talent/index.d.ts +2 -0
- package/dist/talent/index.js +81 -0
- package/dist/talent/index.js.map +1 -0
- package/dist/tech-talent/index.d.ts +2 -0
- package/dist/tech-talent/index.js +59 -0
- package/dist/tech-talent/index.js.map +1 -0
- package/dist/title/index.d.ts +2 -0
- package/dist/title/index.js +27 -0
- package/dist/title/index.js.map +1 -0
- package/dist/toy/index.d.ts +2 -0
- package/dist/toy/index.js +27 -0
- package/dist/toy/index.js.map +1 -0
- package/dist/types-Z0ZgMUXA.d.ts +79 -0
- package/dist/wow-token/index.d.ts +2 -0
- package/dist/wow-token/index.js +16 -0
- package/dist/wow-token/index.js.map +1 -0
- package/package.json +16 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-mythic-keystone-profile/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type {\n CharacterMythicKeystoneProfileIndexResponse,\n CharacterMythicKeystoneSeasonDetailsResponse,\n} from './types';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns Returns the Mythic Keystone season details for a character. Returns a 404 Not Found for characters that have not yet completed a Mythic Keystone dungeon for the specified season.\n */\nexport function characterMythicKeystoneProfileIndex(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterMythicKeystoneProfileIndexResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName}/mythic-keystone-profile`,\n };\n}\n\n/**\n * Returns the Mythic Keystone season details for a character.\n * Returns a 404 Not Found for characters that have not yet completed a Mythic Keystone dungeon for the specified season.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @param seasonId The ID of the season.\n * @returns the Mythic Keystone season details for a character.\n */\nexport function characterMythicKeystoneSeasonDetails(\n realmSlug: string,\n characterName: string,\n seasonId: number,\n): Resource<CharacterMythicKeystoneSeasonDetailsResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName}/mythic-keystone-profile/season/${seasonId}`,\n };\n}\n"],"mappings":";;;;;;AAWA,SAAgB,oCACd,WACA,eACuD;CACvD,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc;EAC5D;;;;;;;;;;AAWH,SAAgB,qCACd,WACA,eACA,UACwD;CACxD,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,kCAAkC;EAC9F"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/character-professions/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* @param realmSlug The slug of the realm.
|
|
4
|
+
* @param characterName The lowercase name of the character.
|
|
5
|
+
* @returns a summary of the professions for a character.
|
|
6
|
+
*/
|
|
7
|
+
function characterProfessionsSummary(realmSlug, characterName) {
|
|
8
|
+
return {
|
|
9
|
+
namespace: "profile",
|
|
10
|
+
path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/professions`
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { characterProfessionsSummary };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-professions/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterProfessionsSummaryResponse } from './types';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the professions for a character.\n */\nexport function characterProfessionsSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterProfessionsSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/professions`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,4BACd,WACA,eAC+C;CAC/C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,aAAa,CAAC;EAC1E"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region src/character-profile/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* Returns the status and a unique ID for a character. A client should delete information about a character from their application if any of the following conditions occur:
|
|
4
|
+
* - an HTTP 404 Not Found error is returned
|
|
5
|
+
* - the is_valid value is false
|
|
6
|
+
* - the returned character ID doesn't match the previously recorded value for the character
|
|
7
|
+
*
|
|
8
|
+
* The following example illustrates how to use this endpoint:
|
|
9
|
+
*
|
|
10
|
+
* 1. A client requests and stores information about a character, including its unique character ID and the timestamp of the request.
|
|
11
|
+
* 2. After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.
|
|
12
|
+
* 3. If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.
|
|
13
|
+
* 4. If the character is valid and the character IDs match, the client retains the data for another 30 days.
|
|
14
|
+
* @param realmSlug The slug of the realm.
|
|
15
|
+
* @param characterName The lowercase name of the character.
|
|
16
|
+
* @returns the status of the character profile for a character.
|
|
17
|
+
*/
|
|
18
|
+
function characterProfileStatus(realmSlug, characterName) {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "profile",
|
|
21
|
+
path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/status`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns a summary of the character profile for a character.
|
|
26
|
+
* @param realmSlug The slug of the realm.
|
|
27
|
+
* @param characterName The lowercase name of the character.
|
|
28
|
+
* @returns a summary of the character profile for a character.
|
|
29
|
+
*/
|
|
30
|
+
function characterProfileSummary(realmSlug, characterName) {
|
|
31
|
+
return {
|
|
32
|
+
namespace: "profile",
|
|
33
|
+
path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}`
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { characterProfileStatus, characterProfileSummary };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-profile/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterProfileStatusResponse, CharacterProfileSummaryResponse } from './types';\n\n/**\n * Returns the status and a unique ID for a character. A client should delete information about a character from their application if any of the following conditions occur:\n * - an HTTP 404 Not Found error is returned\n * - the is_valid value is false\n * - the returned character ID doesn't match the previously recorded value for the character\n *\n * The following example illustrates how to use this endpoint:\n *\n * 1. A client requests and stores information about a character, including its unique character ID and the timestamp of the request.\n * 2. After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.\n * 3. If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.\n * 4. If the character is valid and the character IDs match, the client retains the data for another 30 days.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns the status of the character profile for a character.\n */\nexport function characterProfileStatus(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterProfileStatusResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/status`,\n };\n}\n\n/**\n * Returns a summary of the character profile for a character.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the character profile for a character.\n */\nexport function characterProfileSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterProfileSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}`,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmBA,SAAgB,uBACd,WACA,eAC0C;CAC1C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,aAAa,CAAC;EAC1E;;;;;;;;AASH,SAAgB,wBACd,WACA,eAC2C;CAC3C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,aAAa;EACzE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//#region src/character-pvp/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* @param realmSlug The slug of the realm.
|
|
4
|
+
* @param characterName The lowercase name of the character.
|
|
5
|
+
* @param bracketId The ID of the PvP bracket.
|
|
6
|
+
* @returns a PvP bracket statistics for a character.
|
|
7
|
+
*/
|
|
8
|
+
function characterPvpBracketStatistics(realmSlug, characterName, bracketId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "profile",
|
|
11
|
+
path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/pvp-bracket/${bracketId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @param realmSlug The slug of the realm.
|
|
16
|
+
* @param characterName The lowercase name of the character.
|
|
17
|
+
* @returns a PvP summary for a character.
|
|
18
|
+
*/
|
|
19
|
+
function characterPvpSummary(realmSlug, characterName) {
|
|
20
|
+
return {
|
|
21
|
+
namespace: "profile",
|
|
22
|
+
path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/pvp-summary`
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { characterPvpBracketStatistics, characterPvpSummary };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-pvp/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterPvpBracketStatisticsResponse, CharacterPvpSummaryResponse } from './types';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @param bracketId The ID of the PvP bracket.\n * @returns a PvP bracket statistics for a character.\n */\nexport function characterPvpBracketStatistics(\n realmSlug: string,\n characterName: string,\n bracketId: '2v2' | '3v3' | 'rbg' | `shuffle-${string}-${string}`,\n): Resource<CharacterPvpBracketStatisticsResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/pvp-bracket/${bracketId}`,\n };\n}\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a PvP summary for a character.\n */\nexport function characterPvpSummary(realmSlug: string, characterName: string): Resource<CharacterPvpSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/pvp-summary`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,8BACd,WACA,eACA,WACiD;CACjD,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,aAAa,CAAC,eAAe;EACzF;;;;;;;AAQH,SAAgB,oBAAoB,WAAmB,eAA8D;CACnH,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,aAAa,CAAC;EAC1E"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/character-quests/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* @param realmSlug The slug of the realm.
|
|
4
|
+
* @param characterName The lowercase name of the character.
|
|
5
|
+
* @returns a list of quests that a character has completed.
|
|
6
|
+
*/
|
|
7
|
+
function characterCompletedQuests(realmSlug, characterName) {
|
|
8
|
+
return {
|
|
9
|
+
namespace: "profile",
|
|
10
|
+
path: `/profile/wow/character/${realmSlug}/${characterName}/quests/completed`
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @param realmSlug The slug of the realm.
|
|
15
|
+
* @param characterName The lowercase name of the character.
|
|
16
|
+
* @returns a character's active quests as well as a link to the character's completed quests.
|
|
17
|
+
*/
|
|
18
|
+
function characterQuests(realmSlug, characterName) {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "profile",
|
|
21
|
+
path: `/profile/wow/character/${realmSlug}/${characterName}/quests`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { characterCompletedQuests, characterQuests };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-quests/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterCompletedQuestsResponse, CharacterQuestsResponse } from './types';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a list of quests that a character has completed.\n */\nexport function characterCompletedQuests(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterCompletedQuestsResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName}/quests/completed`,\n };\n}\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a character's active quests as well as a link to the character's completed quests.\n */\nexport function characterQuests(realmSlug: string, characterName: string): Resource<CharacterQuestsResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName}/quests`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,yBACd,WACA,eAC4C;CAC5C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc;EAC5D;;;;;;;AAQH,SAAgB,gBAAgB,WAAmB,eAA0D;CAC3G,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc;EAC5D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/character-reputations/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* @param realmSlug The slug of the realm.
|
|
4
|
+
* @param characterName The lowercase name of the character.
|
|
5
|
+
* @returns a summary of a character's reputations.
|
|
6
|
+
*/
|
|
7
|
+
function characterReputationsSummary(realmSlug, characterName) {
|
|
8
|
+
return {
|
|
9
|
+
namespace: "profile",
|
|
10
|
+
path: `/profile/wow/character/${realmSlug}/${characterName}/reputations`
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { characterReputationsSummary };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-reputations/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterReputationsSummaryResponse } from './types';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of a character's reputations.\n */\nexport function characterReputationsSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterReputationsSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName}/reputations`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,4BACd,WACA,eAC+C;CAC/C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc;EAC5D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/character-soulbinds/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* @param realmSlug The slug of the realm.
|
|
4
|
+
* @param characterName The lowercase name of the character.
|
|
5
|
+
* @returns a character's soulbinds.
|
|
6
|
+
*/
|
|
7
|
+
function characterSoulbinds(realmSlug, characterName) {
|
|
8
|
+
return {
|
|
9
|
+
namespace: "profile",
|
|
10
|
+
path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/soulbinds`
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { characterSoulbinds };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-soulbinds/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterSoulbindsResponse } from './types';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a character's soulbinds.\n */\nexport function characterSoulbinds(realmSlug: string, characterName: string): Resource<CharacterSoulbindsResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/soulbinds`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,mBAAmB,WAAmB,eAA6D;CACjH,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,aAAa,CAAC;EAC1E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/character-specializations/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* @param realmSlug The slug of the realm.
|
|
4
|
+
* @param characterName The lowercase name of the character.
|
|
5
|
+
* @returns a summary of a character's specializations.
|
|
6
|
+
*/
|
|
7
|
+
function characterSpecializationsSummary(realmSlug, characterName) {
|
|
8
|
+
return {
|
|
9
|
+
namespace: "profile",
|
|
10
|
+
path: `/profile/wow/character/${realmSlug}/${characterName}/specializations`
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { characterSpecializationsSummary };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-specializations/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterSpecializationsSummaryResponse } from './types';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of a character's specializations.\n */\nexport function characterSpecializationsSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterSpecializationsSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName}/specializations`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,gCACd,WACA,eACmD;CACnD,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc;EAC5D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/character-statistics/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* @param realmSlug The slug of the realm.
|
|
4
|
+
* @param characterName The lowercase name of the character.
|
|
5
|
+
* @returns a statistics summary for a character.
|
|
6
|
+
*/
|
|
7
|
+
function characterStatisticsSummary(realmSlug, characterName) {
|
|
8
|
+
return {
|
|
9
|
+
namespace: "profile",
|
|
10
|
+
path: `/profile/wow/character/${realmSlug}/${characterName}/statistics`
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { characterStatisticsSummary };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-statistics/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterStatisticsSummaryResponse } from './types';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a statistics summary for a character.\n */\nexport function characterStatisticsSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterStatisticsSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName}/statistics`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,2BACd,WACA,eAC8C;CAC9C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc;EAC5D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/character-titles/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* @param realmSlug The slug of the realm.
|
|
4
|
+
* @param characterName The lowercase name of the character.
|
|
5
|
+
* @returns a summary of titles a character has obtained.
|
|
6
|
+
*/
|
|
7
|
+
function characterTitlesSummary(realmSlug, characterName) {
|
|
8
|
+
return {
|
|
9
|
+
namespace: "profile",
|
|
10
|
+
path: `/profile/wow/character/${realmSlug}/${characterName}/titles`
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { characterTitlesSummary };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-titles/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterTitlesSummaryResponse } from './types';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of titles a character has obtained.\n */\nexport function characterTitlesSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterTitlesSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName}/titles`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,uBACd,WACA,eAC0C;CAC1C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc;EAC5D"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { wowBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/connected-realm/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a connected realm by ID.
|
|
5
|
+
* @param connectedRealmId The connected realm ID.
|
|
6
|
+
* @returns The connected realm. See {@link ConnectedRealmResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function connectedRealm(connectedRealmId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "dynamic",
|
|
11
|
+
path: `${wowBasePath}/connected-realm/${connectedRealmId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a connected realm index.
|
|
16
|
+
* @returns The connected realm index. See {@link ConnectedRealmIndexResponse}.
|
|
17
|
+
*/
|
|
18
|
+
function connectedRealmIndex() {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "dynamic",
|
|
21
|
+
path: `${wowBasePath}/connected-realm/index`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Search for connected realms.
|
|
26
|
+
* @param options The search parameters. See {@link ConnectedRealmSearchParameters}.
|
|
27
|
+
* @returns The search results. See {@link ConnectedRealmSearchResponse}.
|
|
28
|
+
*/
|
|
29
|
+
function connectedRealmSearch(options) {
|
|
30
|
+
return {
|
|
31
|
+
namespace: "dynamic",
|
|
32
|
+
parameters: {
|
|
33
|
+
_page: options._page,
|
|
34
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
35
|
+
"realms.timezone": options["realms.timezone"],
|
|
36
|
+
"status.type": options["status.type"]
|
|
37
|
+
},
|
|
38
|
+
path: `${wowBasePath}/search/connected-realm`
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { connectedRealm, connectedRealmIndex, connectedRealmSearch };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/connected-realm/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n ConnectedRealmIndexResponse,\n ConnectedRealmResponse,\n ConnectedRealmSearchParameters,\n ConnectedRealmSearchResponse,\n} from './types';\n\n/**\n * Get a connected realm by ID.\n * @param connectedRealmId The connected realm ID.\n * @returns The connected realm. See {@link ConnectedRealmResponse}.\n */\nexport function connectedRealm(connectedRealmId: number): Resource<ConnectedRealmResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/connected-realm/${connectedRealmId}`,\n };\n}\n/**\n * Get a connected realm index.\n * @returns The connected realm index. See {@link ConnectedRealmIndexResponse}.\n */\nexport function connectedRealmIndex(): Resource<ConnectedRealmIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/connected-realm/index`,\n };\n}\n/**\n * Search for connected realms.\n * @param options The search parameters. See {@link ConnectedRealmSearchParameters}.\n * @returns The search results. See {@link ConnectedRealmSearchResponse}.\n */\nexport function connectedRealmSearch(\n options: ConnectedRealmSearchParameters,\n): Resource<ConnectedRealmSearchResponse, ConnectedRealmSearchParameters> {\n return {\n namespace: 'dynamic',\n parameters: {\n _page: options._page,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n 'realms.timezone': options['realms.timezone'],\n 'status.type': options['status.type'],\n },\n path: `${wowBasePath}/search/connected-realm`,\n };\n}\n"],"mappings":";;;;;;;AAcA,SAAgB,eAAe,kBAA4D;CACzF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB;EACzC;;;;;;AAMH,SAAgB,sBAA6D;CAC3E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,qBACd,SACwE;CACxE,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;GACf,SAAS,MAAM,QAAQ,QAAQ,QAAQ,GAAG,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ;GAC9E,mBAAmB,QAAQ;GAC3B,eAAe,QAAQ;GACxB;EACD,MAAM,GAAG,YAAY;EACtB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/covenant/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a conduit by ID.
|
|
5
|
+
* @param conduitId The conduit ID.
|
|
6
|
+
* @returns The conduit. See {@link ConduitResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function conduit(conduitId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowBasePath}/covenant/conduit/${conduitId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a conduit index.
|
|
16
|
+
* @returns The conduit index. See {@link ConduitIndexResponse}.
|
|
17
|
+
*/
|
|
18
|
+
function conduitIndex() {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "static",
|
|
21
|
+
path: `${wowBasePath}/covenant/conduit/index`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get a covenant by ID.
|
|
26
|
+
* @param covenantId The covenant ID.
|
|
27
|
+
* @returns The covenant. See {@link CovenantResponse}.
|
|
28
|
+
*/
|
|
29
|
+
function covenant(covenantId) {
|
|
30
|
+
return {
|
|
31
|
+
namespace: "static",
|
|
32
|
+
path: `${wowBasePath}/covenant/${covenantId}`
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get a covenant index.
|
|
37
|
+
* @returns The covenant index. See {@link CovenantIndexResponse}.
|
|
38
|
+
*/
|
|
39
|
+
function covenantIndex() {
|
|
40
|
+
return {
|
|
41
|
+
namespace: "static",
|
|
42
|
+
path: `${wowBasePath}/covenant/index`
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get covenant media by ID.
|
|
47
|
+
* @param covenantId The covenant ID.
|
|
48
|
+
* @returns The covenant media. See {@link CovenantMediaResponse}.
|
|
49
|
+
*/
|
|
50
|
+
function covenantMedia(covenantId) {
|
|
51
|
+
return {
|
|
52
|
+
namespace: "static",
|
|
53
|
+
path: `${wowMediaBasePath}/covenant/${covenantId}`
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get a soulbind by ID.
|
|
58
|
+
* @param soulbindId The soulbind ID.
|
|
59
|
+
* @returns The soulbind. See {@link SoulbindResponse}.
|
|
60
|
+
*/
|
|
61
|
+
function soulbind(soulbindId) {
|
|
62
|
+
return {
|
|
63
|
+
namespace: "static",
|
|
64
|
+
path: `${wowBasePath}/covenant/soulbind/${soulbindId}`
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Get a soulbind index.
|
|
69
|
+
* @returns The soulbind index. See {@link SoulbindIndexResponse}.
|
|
70
|
+
*/
|
|
71
|
+
function soulbindIndex() {
|
|
72
|
+
return {
|
|
73
|
+
namespace: "static",
|
|
74
|
+
path: `${wowBasePath}/covenant/soulbind/index`
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { conduit, conduitIndex, covenant, covenantIndex, covenantMedia, soulbind, soulbindIndex };
|
|
79
|
+
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/covenant/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n ConduitIndexResponse,\n ConduitResponse,\n CovenantIndexResponse,\n CovenantMediaResponse,\n CovenantResponse,\n SoulbindIndexResponse,\n SoulbindResponse,\n} from './types';\n\n/**\n * Get a conduit by ID.\n * @param conduitId The conduit ID.\n * @returns The conduit. See {@link ConduitResponse}.\n */\nexport function conduit(conduitId: number): Resource<ConduitResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/covenant/conduit/${conduitId}`,\n };\n}\n/**\n * Get a conduit index.\n * @returns The conduit index. See {@link ConduitIndexResponse}.\n */\nexport function conduitIndex(): Resource<ConduitIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/covenant/conduit/index`,\n };\n}\n/**\n * Get a covenant by ID.\n * @param covenantId The covenant ID.\n * @returns The covenant. See {@link CovenantResponse}.\n */\nexport function covenant(covenantId: number): Resource<CovenantResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/covenant/${covenantId}`,\n };\n}\n/**\n * Get a covenant index.\n * @returns The covenant index. See {@link CovenantIndexResponse}.\n */\nexport function covenantIndex(): Resource<CovenantIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/covenant/index`,\n };\n}\n/**\n * Get covenant media by ID.\n * @param covenantId The covenant ID.\n * @returns The covenant media. See {@link CovenantMediaResponse}.\n */\nexport function covenantMedia(covenantId: number): Resource<CovenantMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/covenant/${covenantId}`,\n };\n}\n/**\n * Get a soulbind by ID.\n * @param soulbindId The soulbind ID.\n * @returns The soulbind. See {@link SoulbindResponse}.\n */\nexport function soulbind(soulbindId: number): Resource<SoulbindResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/covenant/soulbind/${soulbindId}`,\n };\n}\n/**\n * Get a soulbind index.\n * @returns The soulbind index. See {@link SoulbindIndexResponse}.\n */\nexport function soulbindIndex(): Resource<SoulbindIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/covenant/soulbind/index`,\n };\n}\n"],"mappings":";;;;;;;AAiBA,SAAgB,QAAQ,WAA8C;CACpE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,oBAAoB;EAC1C;;;;;;AAMH,SAAgB,eAA+C;CAC7D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,SAAS,YAAgD;CACvE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,YAAY;EAClC;;;;;;AAMH,SAAgB,gBAAiD;CAC/D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,cAAc,YAAqD;CACjF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,YAAY;EACvC;;;;;;;AAOH,SAAgB,SAAS,YAAgD;CACvE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,qBAAqB;EAC3C;;;;;;AAMH,SAAgB,gBAAiD;CAC/D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as creatureFamilyMedia, c as creatureTypeIndex, i as creatureFamilyIndex, n as creatureDisplayMedia, o as creatureSearch, r as creatureFamily, s as creatureType, t as creature } from "../index-DwuFoDTp.js";
|
|
2
|
+
export { creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/creature/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a creature by ID.
|
|
5
|
+
* @param creatureId The creature ID.
|
|
6
|
+
* @returns The creature. See {@link CreatureResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function creature(creatureId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowBasePath}/creature/${creatureId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get creature display media by ID.
|
|
16
|
+
* @param creatureDisplayId The creature display ID.
|
|
17
|
+
* @returns The creature display media. See {@link CreatureDisplayMediaResponse}.
|
|
18
|
+
*/
|
|
19
|
+
function creatureDisplayMedia(creatureDisplayId) {
|
|
20
|
+
return {
|
|
21
|
+
namespace: "static",
|
|
22
|
+
path: `${wowMediaBasePath}/creature-display/${creatureDisplayId}`
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get a creature family by ID.
|
|
27
|
+
* @param creatureFamilyId The creature family ID.
|
|
28
|
+
* @returns The creature family. See {@link CreatureFamilyResponse}.
|
|
29
|
+
*/
|
|
30
|
+
function creatureFamily(creatureFamilyId) {
|
|
31
|
+
return {
|
|
32
|
+
namespace: "static",
|
|
33
|
+
path: `${wowBasePath}/creature-family/${creatureFamilyId}`
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Get a creature family index.
|
|
38
|
+
* @returns The creature family index. See {@link CreatureFamilyIndexResponse}.
|
|
39
|
+
*/
|
|
40
|
+
function creatureFamilyIndex() {
|
|
41
|
+
return {
|
|
42
|
+
namespace: "static",
|
|
43
|
+
path: `${wowBasePath}/creature-family/index`
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get creature family media by ID.
|
|
48
|
+
* @param creatureFamilyId The creature family ID.
|
|
49
|
+
* @returns The creature family media. See {@link CreatureFamilyMediaResponse}.
|
|
50
|
+
*/
|
|
51
|
+
function creatureFamilyMedia(creatureFamilyId) {
|
|
52
|
+
return {
|
|
53
|
+
namespace: "static",
|
|
54
|
+
path: `${wowMediaBasePath}/creature-family/${creatureFamilyId}`
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Search for creatures.
|
|
59
|
+
* @param options The creature search parameters. See {@link CreatureSearchParameters}.
|
|
60
|
+
* @returns The creature search results. See {@link CreatureSearchResponse}.
|
|
61
|
+
*/
|
|
62
|
+
function creatureSearch(options) {
|
|
63
|
+
return {
|
|
64
|
+
namespace: "static",
|
|
65
|
+
parameters: {
|
|
66
|
+
_page: options._page,
|
|
67
|
+
[`name.${options.locale}`]: options.name,
|
|
68
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
|
|
69
|
+
},
|
|
70
|
+
path: `${wowSearchBasePath}/creature`
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Get a creature type by ID.
|
|
75
|
+
* @param creatureTypeId The creature type ID.
|
|
76
|
+
* @returns The creature type. See {@link CreatureTypeResponse}.
|
|
77
|
+
*/
|
|
78
|
+
function creatureType(creatureTypeId) {
|
|
79
|
+
return {
|
|
80
|
+
namespace: "static",
|
|
81
|
+
path: `${wowBasePath}/creature-type/${creatureTypeId}`
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Get a creature type index.
|
|
86
|
+
* @returns The creature type index. See {@link CreatureTypeIndexResponse}.
|
|
87
|
+
*/
|
|
88
|
+
function creatureTypeIndex() {
|
|
89
|
+
return {
|
|
90
|
+
namespace: "static",
|
|
91
|
+
path: `${wowBasePath}/creature-type/index`
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex };
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/creature/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type {\n CreatureDisplayMediaResponse,\n CreatureFamilyIndexResponse,\n CreatureFamilyMediaResponse,\n CreatureFamilyResponse,\n CreatureResponse,\n CreatureSearchParameters,\n CreatureSearchResponse,\n CreatureTypeIndexResponse,\n CreatureTypeResponse,\n} from './types';\n\n/**\n * Get a creature by ID.\n * @param creatureId The creature ID.\n * @returns The creature. See {@link CreatureResponse}.\n */\nexport function creature(creatureId: number): Resource<CreatureResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/creature/${creatureId}`,\n };\n}\n/**\n * Get creature display media by ID.\n * @param creatureDisplayId The creature display ID.\n * @returns The creature display media. See {@link CreatureDisplayMediaResponse}.\n */\nexport function creatureDisplayMedia(creatureDisplayId: number): Resource<CreatureDisplayMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/creature-display/${creatureDisplayId}`,\n };\n}\n/**\n * Get a creature family by ID.\n * @param creatureFamilyId The creature family ID.\n * @returns The creature family. See {@link CreatureFamilyResponse}.\n */\nexport function creatureFamily(creatureFamilyId: number): Resource<CreatureFamilyResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/creature-family/${creatureFamilyId}`,\n };\n}\n/**\n * Get a creature family index.\n * @returns The creature family index. See {@link CreatureFamilyIndexResponse}.\n */\nexport function creatureFamilyIndex(): Resource<CreatureFamilyIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/creature-family/index`,\n };\n}\n/**\n * Get creature family media by ID.\n * @param creatureFamilyId The creature family ID.\n * @returns The creature family media. See {@link CreatureFamilyMediaResponse}.\n */\nexport function creatureFamilyMedia(creatureFamilyId: number): Resource<CreatureFamilyMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/creature-family/${creatureFamilyId}`,\n };\n}\n/**\n * Search for creatures.\n * @param options The creature search parameters. See {@link CreatureSearchParameters}.\n * @returns The creature search results. See {@link CreatureSearchResponse}.\n */\nexport function creatureSearch(\n options: CreatureSearchParameters,\n): Resource<CreatureSearchResponse, Omit<CreatureSearchParameters, '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}/creature`,\n };\n}\n/**\n * Get a creature type by ID.\n * @param creatureTypeId The creature type ID.\n * @returns The creature type. See {@link CreatureTypeResponse}.\n */\nexport function creatureType(creatureTypeId: number): Resource<CreatureTypeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/creature-type/${creatureTypeId}`,\n };\n}\n/**\n * Get a creature type index.\n * @returns The creature type index. See {@link CreatureTypeIndexResponse}.\n */\nexport function creatureTypeIndex(): Resource<CreatureTypeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/creature-type/index`,\n };\n}\n"],"mappings":";;;;;;;AAmBA,SAAgB,SAAS,YAAgD;CACvE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,YAAY;EAClC;;;;;;;AAOH,SAAgB,qBAAqB,mBAAmE;CACtG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,oBAAoB;EAC/C;;;;;;;AAOH,SAAgB,eAAe,kBAA4D;CACzF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB;EACzC;;;;;;AAMH,SAAgB,sBAA6D;CAC3E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,oBAAoB,kBAAiE;CACnG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,mBAAmB;EAC9C;;;;;;;AAOH,SAAgB,eACd,SACqF;CACrF,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,QAAQ,GAAG,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ;GAC/E;EACD,MAAM,GAAG,kBAAkB;EAC5B;;;;;;;AAOH,SAAgB,aAAa,gBAAwD;CACnF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,iBAAiB;EACvC;;;;;;AAMH,SAAgB,oBAAyD;CACvE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//#region src/guild/index.ts
|
|
2
|
+
const basePath = "/data/wow/guild";
|
|
3
|
+
/**
|
|
4
|
+
* @param realmSlug The slug of the realm.
|
|
5
|
+
* @param nameSlug The lowercase name of the guild.
|
|
6
|
+
* @returns a single guild by its name and realm.
|
|
7
|
+
*/
|
|
8
|
+
function guild(realmSlug, nameSlug) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "profile",
|
|
11
|
+
path: `${basePath}/${realmSlug}/${nameSlug}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @param realmSlug The slug of the realm.
|
|
16
|
+
* @param nameSlug The lowercase name of the guild.
|
|
17
|
+
* @returns a single guild's achievements by name and realm.
|
|
18
|
+
*/
|
|
19
|
+
function guildAchievements(realmSlug, nameSlug) {
|
|
20
|
+
return {
|
|
21
|
+
namespace: "profile",
|
|
22
|
+
path: `${basePath}/${realmSlug}/${nameSlug}/achievements`
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @param realmSlug The slug of the realm.
|
|
27
|
+
* @param nameSlug The lowercase name of the guild.
|
|
28
|
+
* @returns a single guild's activity by name and realm.
|
|
29
|
+
*/
|
|
30
|
+
function guildActivity(realmSlug, nameSlug) {
|
|
31
|
+
return {
|
|
32
|
+
namespace: "profile",
|
|
33
|
+
path: `${basePath}/${realmSlug}/${nameSlug}/activity`
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @param realmSlug The slug of the realm.
|
|
38
|
+
* @param nameSlug The lowercase name of the guild.
|
|
39
|
+
* @returns a single guild's roster by its name and realm.
|
|
40
|
+
*/
|
|
41
|
+
function guildRoster(realmSlug, nameSlug) {
|
|
42
|
+
return {
|
|
43
|
+
namespace: "profile",
|
|
44
|
+
path: `${basePath}/${realmSlug}/${nameSlug}/roster`
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { guild, guildAchievements, guildActivity, guildRoster };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/guild/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { GuildAchievementsResponse, GuildActivityResponse, GuildResponse, GuildRosterResponse } from './types';\n\nconst basePath = '/data/wow/guild';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param nameSlug The lowercase name of the guild.\n * @returns a single guild by its name and realm.\n */\nexport function guild(realmSlug: string, nameSlug: string): Resource<GuildResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${nameSlug}`,\n };\n}\n\n/**\n * @param realmSlug The slug of the realm.\n * @param nameSlug The lowercase name of the guild.\n * @returns a single guild's achievements by name and realm.\n */\nexport function guildAchievements(realmSlug: string, nameSlug: string): Resource<GuildAchievementsResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${nameSlug}/achievements`,\n };\n}\n\n/**\n * @param realmSlug The slug of the realm.\n * @param nameSlug The lowercase name of the guild.\n * @returns a single guild's activity by name and realm.\n */\nexport function guildActivity(realmSlug: string, nameSlug: string): Resource<GuildActivityResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${nameSlug}/activity`,\n };\n}\n\n/**\n * @param realmSlug The slug of the realm.\n * @param nameSlug The lowercase name of the guild.\n * @returns a single guild's roster by its name and realm.\n */\nexport function guildRoster(realmSlug: string, nameSlug: string): Resource<GuildRosterResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${nameSlug}/roster`,\n };\n}\n"],"mappings":";AAGA,MAAM,WAAW;;;;;;AAOjB,SAAgB,MAAM,WAAmB,UAA2C;CAClF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG;EACnC;;;;;;;AAQH,SAAgB,kBAAkB,WAAmB,UAAuD;CAC1G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS;EAC5C;;;;;;;AAQH,SAAgB,cAAc,WAAmB,UAAmD;CAClG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS;EAC5C;;;;;;;AAQH,SAAgB,YAAY,WAAmB,UAAiD;CAC9F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS;EAC5C"}
|