@blizzard-api/wow 4.1.6 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/account-profile/index.d.ts +2 -2
  2. package/dist/account-profile/index.js +22 -10
  3. package/dist/account-profile/index.js.map +1 -1
  4. package/dist/character-achievements/index.js +3 -3
  5. package/dist/character-achievements/index.js.map +1 -1
  6. package/dist/character-collections/index.d.ts +2 -2
  7. package/dist/character-collections/index.js +19 -8
  8. package/dist/character-collections/index.js.map +1 -1
  9. package/dist/character-equipment/index.d.ts +1 -1
  10. package/dist/character-house/index.d.ts +2 -0
  11. package/dist/character-house/index.js +22 -0
  12. package/dist/character-house/index.js.map +1 -0
  13. package/dist/character-mythic-keystone-profile/index.d.ts +1 -1
  14. package/dist/guild/index.js +5 -5
  15. package/dist/guild/index.js.map +1 -1
  16. package/dist/index-BlmuhVLr.d.ts +45 -0
  17. package/dist/index-CAAhdmK-.d.ts +25 -0
  18. package/dist/index-CcOUGucU.d.ts +121 -0
  19. package/dist/{index-BYi-k0bg.d.ts → index-D4WW7V4l.d.ts} +5 -11
  20. package/dist/{index-XAI3xA9N.d.ts → index-DdmXkF2F.d.ts} +5 -15
  21. package/dist/{index-CNnXwh3U.d.ts → index-DxnfWpb6.d.ts} +21 -21
  22. package/dist/{index-DE8VhwEW.d.ts → index-FuJJlGI3.d.ts} +24 -26
  23. package/dist/index.d.ts +21 -5
  24. package/dist/index.js +18 -3
  25. package/dist/index.js.map +1 -1
  26. package/dist/item-appearance/index.d.ts +2 -0
  27. package/dist/item-appearance/index.js +74 -0
  28. package/dist/item-appearance/index.js.map +1 -0
  29. package/dist/neighborhood-map/index.d.ts +2 -0
  30. package/dist/neighborhood-map/index.js +38 -0
  31. package/dist/neighborhood-map/index.js.map +1 -0
  32. package/dist/types-BihzpfkI.d.ts +18 -0
  33. package/package.json +3 -3
@@ -1,2 +1,2 @@
1
- import { a as accountProfileSummary, c as protectedCharacterProfileSummary, i as accountPetsCollectionSummary, n as accountHeirloomsCollectionSummary, o as accountToysCollectionSummary, r as accountMountsCollectionSummary, s as accountTransmogsCollectionSummary, t as accountCollectionsIndex } from "../index-DE8VhwEW.js";
2
- export { accountCollectionsIndex, accountHeirloomsCollectionSummary, accountMountsCollectionSummary, accountPetsCollectionSummary, accountProfileSummary, accountToysCollectionSummary, accountTransmogsCollectionSummary, protectedCharacterProfileSummary };
1
+ import { a as accountPetsCollectionSummary, c as accountTransmogsCollectionSummary, i as accountMountsCollectionSummary, l as protectedCharacterProfileSummary, n as accountDecorCollection, o as accountProfileSummary, r as accountHeirloomsCollectionSummary, s as accountToysCollectionSummary, t as accountCollectionsIndex } from "../index-FuJJlGI3.js";
2
+ export { accountCollectionsIndex, accountDecorCollection, accountHeirloomsCollectionSummary, accountMountsCollectionSummary, accountPetsCollectionSummary, accountProfileSummary, accountToysCollectionSummary, accountTransmogsCollectionSummary, protectedCharacterProfileSummary };
@@ -1,5 +1,5 @@
1
+ import { wowAccountProfileBasePath } from "@blizzard-api/core";
1
2
  // src/account-profile/index.ts
2
- const accountProfileBase = "/profile/user/wow";
3
3
  /**
4
4
  * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
5
5
  * @param token The OAuth 2.0 access token to use for authentication.
@@ -8,7 +8,19 @@ const accountProfileBase = "/profile/user/wow";
8
8
  function accountCollectionsIndex(token) {
9
9
  return {
10
10
  namespace: "profile",
11
- path: `${accountProfileBase}/collections`,
11
+ path: `${wowAccountProfileBasePath}/collections`,
12
+ token
13
+ };
14
+ }
15
+ /**
16
+ * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
17
+ * @param token The OAuth 2.0 access token to use for authentication.
18
+ * @returns the housing decor an account has collected.
19
+ */
20
+ function accountDecorCollection(token) {
21
+ return {
22
+ namespace: "profile",
23
+ path: `${wowAccountProfileBasePath}/collections/decor`,
12
24
  token
13
25
  };
14
26
  }
@@ -20,7 +32,7 @@ function accountCollectionsIndex(token) {
20
32
  function accountHeirloomsCollectionSummary(token) {
21
33
  return {
22
34
  namespace: "profile",
23
- path: `${accountProfileBase}/collections/heirlooms`,
35
+ path: `${wowAccountProfileBasePath}/collections/heirlooms`,
24
36
  token
25
37
  };
26
38
  }
@@ -32,7 +44,7 @@ function accountHeirloomsCollectionSummary(token) {
32
44
  function accountMountsCollectionSummary(token) {
33
45
  return {
34
46
  namespace: "profile",
35
- path: `${accountProfileBase}/collections/mounts`,
47
+ path: `${wowAccountProfileBasePath}/collections/mounts`,
36
48
  token
37
49
  };
38
50
  }
@@ -44,7 +56,7 @@ function accountMountsCollectionSummary(token) {
44
56
  function accountPetsCollectionSummary(token) {
45
57
  return {
46
58
  namespace: "profile",
47
- path: `${accountProfileBase}/collections/pets`,
59
+ path: `${wowAccountProfileBasePath}/collections/pets`,
48
60
  token
49
61
  };
50
62
  }
@@ -56,7 +68,7 @@ function accountPetsCollectionSummary(token) {
56
68
  function accountProfileSummary(token) {
57
69
  return {
58
70
  namespace: "profile",
59
- path: accountProfileBase,
71
+ path: wowAccountProfileBasePath,
60
72
  token
61
73
  };
62
74
  }
@@ -68,7 +80,7 @@ function accountProfileSummary(token) {
68
80
  function accountToysCollectionSummary(token) {
69
81
  return {
70
82
  namespace: "profile",
71
- path: `${accountProfileBase}/collections/toys`,
83
+ path: `${wowAccountProfileBasePath}/collections/toys`,
72
84
  token
73
85
  };
74
86
  }
@@ -80,7 +92,7 @@ function accountToysCollectionSummary(token) {
80
92
  function accountTransmogsCollectionSummary(token) {
81
93
  return {
82
94
  namespace: "profile",
83
- path: `${accountProfileBase}/collections/transmogs`,
95
+ path: `${wowAccountProfileBasePath}/collections/transmogs`,
84
96
  token
85
97
  };
86
98
  }
@@ -94,10 +106,10 @@ function accountTransmogsCollectionSummary(token) {
94
106
  function protectedCharacterProfileSummary(realmId, characterId, token) {
95
107
  return {
96
108
  namespace: "profile",
97
- path: `${accountProfileBase}/protected-character/${realmId}-${characterId}`,
109
+ path: `${wowAccountProfileBasePath}/protected-character/${realmId}-${characterId}`,
98
110
  token
99
111
  };
100
112
  }
101
- export { accountCollectionsIndex, accountHeirloomsCollectionSummary, accountMountsCollectionSummary, accountPetsCollectionSummary, accountProfileSummary, accountToysCollectionSummary, accountTransmogsCollectionSummary, protectedCharacterProfileSummary };
113
+ export { accountCollectionsIndex, accountDecorCollection, accountHeirloomsCollectionSummary, accountMountsCollectionSummary, accountPetsCollectionSummary, accountProfileSummary, accountToysCollectionSummary, accountTransmogsCollectionSummary, protectedCharacterProfileSummary };
102
114
 
103
115
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/account-profile/index.ts"],"sourcesContent":["import type { ProtectedResource } from '@blizzard-api/core';\nimport type {\n AccountCollectionsIndexResponse,\n AccountHeirloomsCollectionSummaryResponse,\n AccountMountsCollectionSummaryResponse,\n AccountPetsCollectionSummaryResponse,\n AccountProfileSummaryResponse,\n AccountToysCollectionSummaryResponse,\n AccountTransmogsCollectionSummaryResponse,\n ProtectedCharacterProfileSummaryResponse,\n} from './types';\n\nconst accountProfileBase = '/profile/user/wow';\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns an index of collection types for an account.\n */\nexport function accountCollectionsIndex(token: string): ProtectedResource<AccountCollectionsIndexResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/collections`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the heirlooms an account has obtained.\n */\nexport function accountHeirloomsCollectionSummary(\n token: string,\n): ProtectedResource<AccountHeirloomsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/collections/heirlooms`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the mounts an account has obtained.\n */\nexport function accountMountsCollectionSummary(\n token: string,\n): ProtectedResource<AccountMountsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/collections/mounts`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the battle pets an account has obtained.\n */\nexport function accountPetsCollectionSummary(token: string): ProtectedResource<AccountPetsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/collections/pets`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a profile summary for an account.\n */\nexport function accountProfileSummary(token: string): ProtectedResource<AccountProfileSummaryResponse> {\n return {\n namespace: 'profile',\n path: accountProfileBase,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the toys an account has obtained.\n */\nexport function accountToysCollectionSummary(token: string): ProtectedResource<AccountToysCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/collections/toys`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the transmog unlocks an account has obtained.\n */\nexport function accountTransmogsCollectionSummary(\n token: string,\n): ProtectedResource<AccountTransmogsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/collections/transmogs`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param realmId The realm ID.\n * @param characterId The character ID.\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a protected profile summary for a character.\n */\nexport function protectedCharacterProfileSummary(\n realmId: number,\n characterId: number,\n token: string,\n): ProtectedResource<ProtectedCharacterProfileSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/protected-character/${realmId}-${characterId}`,\n token,\n };\n}\n"],"mappings":";AAYA,MAAM,qBAAqB;;;;;;AAO3B,SAAgB,wBAAwB,OAAmE;CACzG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB;EAC5B;CACF;AACF;;;;;;AAOA,SAAgB,kCACd,OAC8D;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB;EAC5B;CACF;AACF;;;;;;AAOA,SAAgB,+BACd,OAC2D;CAC3D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB;EAC5B;CACF;AACF;;;;;;AAOA,SAAgB,6BAA6B,OAAwE;CACnH,OAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB;EAC5B;CACF;AACF;;;;;;AAOA,SAAgB,sBAAsB,OAAiE;CACrG,OAAO;EACL,WAAW;EACX,MAAM;EACN;CACF;AACF;;;;;;AAOA,SAAgB,6BAA6B,OAAwE;CACnH,OAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB;EAC5B;CACF;AACF;;;;;;AAOA,SAAgB,kCACd,OAC8D;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB;EAC5B;CACF;AACF;;;;;;;;AASA,SAAgB,iCACd,SACA,aACA,OAC6D;CAC7D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB,uBAAuB,QAAQ,GAAG;EAC9D;CACF;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/account-profile/index.ts"],"sourcesContent":["import { wowAccountProfileBasePath } from '@blizzard-api/core';\nimport type { ProtectedResource } from '@blizzard-api/core';\nimport type {\n AccountCollectionsIndexResponse,\n AccountDecorCollectionResponse,\n AccountHeirloomsCollectionSummaryResponse,\n AccountMountsCollectionSummaryResponse,\n AccountPetsCollectionSummaryResponse,\n AccountProfileSummaryResponse,\n AccountToysCollectionSummaryResponse,\n AccountTransmogsCollectionSummaryResponse,\n ProtectedCharacterProfileSummaryResponse,\n} from './types';\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns an index of collection types for an account.\n */\nexport function accountCollectionsIndex(token: string): ProtectedResource<AccountCollectionsIndexResponse> {\n return {\n namespace: 'profile',\n path: `${wowAccountProfileBasePath}/collections`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns the housing decor an account has collected.\n */\nexport function accountDecorCollection(token: string): ProtectedResource<AccountDecorCollectionResponse> {\n return {\n namespace: 'profile',\n path: `${wowAccountProfileBasePath}/collections/decor`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the heirlooms an account has obtained.\n */\nexport function accountHeirloomsCollectionSummary(\n token: string,\n): ProtectedResource<AccountHeirloomsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowAccountProfileBasePath}/collections/heirlooms`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the mounts an account has obtained.\n */\nexport function accountMountsCollectionSummary(\n token: string,\n): ProtectedResource<AccountMountsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowAccountProfileBasePath}/collections/mounts`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the battle pets an account has obtained.\n */\nexport function accountPetsCollectionSummary(token: string): ProtectedResource<AccountPetsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowAccountProfileBasePath}/collections/pets`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a profile summary for an account.\n */\nexport function accountProfileSummary(token: string): ProtectedResource<AccountProfileSummaryResponse> {\n return {\n namespace: 'profile',\n path: wowAccountProfileBasePath,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the toys an account has obtained.\n */\nexport function accountToysCollectionSummary(token: string): ProtectedResource<AccountToysCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowAccountProfileBasePath}/collections/toys`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the transmog unlocks an account has obtained.\n */\nexport function accountTransmogsCollectionSummary(\n token: string,\n): ProtectedResource<AccountTransmogsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowAccountProfileBasePath}/collections/transmogs`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param realmId The realm ID.\n * @param characterId The character ID.\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a protected profile summary for a character.\n */\nexport function protectedCharacterProfileSummary(\n realmId: number,\n characterId: number,\n token: string,\n): ProtectedResource<ProtectedCharacterProfileSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowAccountProfileBasePath}/protected-character/${realmId}-${characterId}`,\n token,\n };\n}\n"],"mappings":";;;;;;;AAmBA,SAAgB,wBAAwB,OAAmE;CACzG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,0BAA0B;EACnC;CACF;AACF;;;;;;AAOA,SAAgB,uBAAuB,OAAkE;CACvG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,0BAA0B;EACnC;CACF;AACF;;;;;;AAOA,SAAgB,kCACd,OAC8D;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,0BAA0B;EACnC;CACF;AACF;;;;;;AAOA,SAAgB,+BACd,OAC2D;CAC3D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,0BAA0B;EACnC;CACF;AACF;;;;;;AAOA,SAAgB,6BAA6B,OAAwE;CACnH,OAAO;EACL,WAAW;EACX,MAAM,GAAG,0BAA0B;EACnC;CACF;AACF;;;;;;AAOA,SAAgB,sBAAsB,OAAiE;CACrG,OAAO;EACL,WAAW;EACX,MAAM;EACN;CACF;AACF;;;;;;AAOA,SAAgB,6BAA6B,OAAwE;CACnH,OAAO;EACL,WAAW;EACX,MAAM,GAAG,0BAA0B;EACnC;CACF;AACF;;;;;;AAOA,SAAgB,kCACd,OAC8D;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,0BAA0B;EACnC;CACF;AACF;;;;;;;;AASA,SAAgB,iCACd,SACA,aACA,OAC6D;CAC7D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,0BAA0B,uBAAuB,QAAQ,GAAG;EACrE;CACF;AACF"}
@@ -1,5 +1,5 @@
1
+ import { wowCharacterBasePath } from "@blizzard-api/core";
1
2
  // src/character-achievements/index.ts
2
- const basePath = "/profile/wow/character";
3
3
  /**
4
4
  * @param realmSlug The slug of the realm.
5
5
  * @param characterName The lowercase name of the character.
@@ -8,7 +8,7 @@ const basePath = "/profile/wow/character";
8
8
  function characterAchievementsSummary(realmSlug, characterName) {
9
9
  return {
10
10
  namespace: "profile",
11
- path: `${basePath}/${realmSlug}/${characterName.toLowerCase()}/achievements`
11
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements`
12
12
  };
13
13
  }
14
14
  /**
@@ -19,7 +19,7 @@ function characterAchievementsSummary(realmSlug, characterName) {
19
19
  function characterAchievementStatistics(realmSlug, characterName) {
20
20
  return {
21
21
  namespace: "profile",
22
- path: `${basePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`
22
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`
23
23
  };
24
24
  }
25
25
  export { characterAchievementStatistics, characterAchievementsSummary };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/character-achievements/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterAchievementsSummaryResponse, CharacterAchievementStatisticsResponse } from './types';\n\nconst basePath = '/profile/wow/character';\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 achievements a character has completed.\n */\nexport function characterAchievementsSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterAchievementsSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName.toLowerCase()}/achievements`,\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 statistics as they pertain to achievements.\n */\nexport function characterAchievementStatistics(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterAchievementStatisticsResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`,\n };\n}\n"],"mappings":";AAGA,MAAM,WAAW;;;;;;AAOjB,SAAgB,6BACd,WACA,eACgD;CAChD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,YAAY,EAAE;CAChE;AACF;;;;;;AAOA,SAAgB,+BACd,WACA,eACkD;CAClD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,YAAY,EAAE;CAChE;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/character-achievements/index.ts"],"sourcesContent":["import { wowCharacterBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type { CharacterAchievementsSummaryResponse, CharacterAchievementStatisticsResponse } 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 achievements a character has completed.\n */\nexport function characterAchievementsSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterAchievementsSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements`,\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 statistics as they pertain to achievements.\n */\nexport function characterAchievementStatistics(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterAchievementStatisticsResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,6BACd,WACA,eACgD;CAChD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,YAAY,EAAE;CAC5E;AACF;;;;;;AAOA,SAAgB,+BACd,WACA,eACkD;CAClD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,YAAY,EAAE;CAC5E;AACF"}
@@ -1,2 +1,2 @@
1
- import { a as characterToysCollectionSummary, i as characterPetsCollectionSummary, n as characterHeirloomsCollectionSummary, o as characterTransmogCollectionSummary, r as characterMountsCollectionSummary, t as characterCollectionsIndex } from "../index-CNnXwh3U.js";
2
- export { characterCollectionsIndex, characterHeirloomsCollectionSummary, characterMountsCollectionSummary, characterPetsCollectionSummary, characterToysCollectionSummary, characterTransmogCollectionSummary };
1
+ import { a as characterPetsCollectionSummary, i as characterMountsCollectionSummary, n as characterCollectionsIndex, o as characterToysCollectionSummary, r as characterHeirloomsCollectionSummary, s as characterTransmogCollectionSummary, t as characterCollectionDecor } from "../index-DxnfWpb6.js";
2
+ export { characterCollectionDecor, characterCollectionsIndex, characterHeirloomsCollectionSummary, characterMountsCollectionSummary, characterPetsCollectionSummary, characterToysCollectionSummary, characterTransmogCollectionSummary };
@@ -1,5 +1,5 @@
1
+ import { wowCharacterBasePath } from "@blizzard-api/core";
1
2
  // src/character-collections/index.ts
2
- const basePath = "/profile/wow/character";
3
3
  /**
4
4
  * @param realmSlug The slug of the realm.
5
5
  * @param characterName The lowercase name of the character.
@@ -8,7 +8,18 @@ const basePath = "/profile/wow/character";
8
8
  function characterCollectionsIndex(realmSlug, characterName) {
9
9
  return {
10
10
  namespace: "profile",
11
- path: `${basePath}/${realmSlug}/${characterName}/collections`
11
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections`
12
+ };
13
+ }
14
+ /**
15
+ * @param realmSlug The slug of the realm.
16
+ * @param characterName The lowercase name of the character.
17
+ * @returns a summary of the housing decor a character has collected.
18
+ */
19
+ function characterCollectionDecor(realmSlug, characterName) {
20
+ return {
21
+ namespace: "profile",
22
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/decor`
12
23
  };
13
24
  }
14
25
  /**
@@ -19,7 +30,7 @@ function characterCollectionsIndex(realmSlug, characterName) {
19
30
  function characterHeirloomsCollectionSummary(realmSlug, characterName) {
20
31
  return {
21
32
  namespace: "profile",
22
- path: `${basePath}/${realmSlug}/${characterName}/collections/heirlooms`
33
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/heirlooms`
23
34
  };
24
35
  }
25
36
  /**
@@ -30,7 +41,7 @@ function characterHeirloomsCollectionSummary(realmSlug, characterName) {
30
41
  function characterMountsCollectionSummary(realmSlug, characterName) {
31
42
  return {
32
43
  namespace: "profile",
33
- path: `${basePath}/${realmSlug}/${characterName}/collections/mounts`
44
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/mounts`
34
45
  };
35
46
  }
36
47
  /**
@@ -41,7 +52,7 @@ function characterMountsCollectionSummary(realmSlug, characterName) {
41
52
  function characterPetsCollectionSummary(realmSlug, characterName) {
42
53
  return {
43
54
  namespace: "profile",
44
- path: `${basePath}/${realmSlug}/${characterName}/collections/pets`
55
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/pets`
45
56
  };
46
57
  }
47
58
  /**
@@ -52,7 +63,7 @@ function characterPetsCollectionSummary(realmSlug, characterName) {
52
63
  function characterToysCollectionSummary(realmSlug, characterName) {
53
64
  return {
54
65
  namespace: "profile",
55
- path: `${basePath}/${realmSlug}/${characterName}/collections/toys`
66
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/toys`
56
67
  };
57
68
  }
58
69
  /**
@@ -63,9 +74,9 @@ function characterToysCollectionSummary(realmSlug, characterName) {
63
74
  function characterTransmogCollectionSummary(realmSlug, characterName) {
64
75
  return {
65
76
  namespace: "profile",
66
- path: `${basePath}/${realmSlug}/${characterName}/collections/transmogs`
77
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/transmogs`
67
78
  };
68
79
  }
69
- export { characterCollectionsIndex, characterHeirloomsCollectionSummary, characterMountsCollectionSummary, characterPetsCollectionSummary, characterToysCollectionSummary, characterTransmogCollectionSummary };
80
+ export { characterCollectionDecor, characterCollectionsIndex, characterHeirloomsCollectionSummary, characterMountsCollectionSummary, characterPetsCollectionSummary, characterToysCollectionSummary, characterTransmogCollectionSummary };
70
81
 
71
82
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/character-collections/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type {\n CharacterCollectionsIndexResponse,\n CharacterHeirloomsCollectionSummaryResponse,\n CharacterMountsCollectionSummaryResponse,\n CharacterPetsCollectionSummaryResponse,\n CharacterToysCollectionSummaryResponse,\n CharacterTransmogCollectionSummaryResponse,\n} from './types';\n\nconst basePath = '/profile/wow/character';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns an index of collection types for a character.\n */\nexport function characterCollectionsIndex(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterCollectionsIndexResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName}/collections`,\n };\n}\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 heirlooms a character has obtained.\n */\nexport function characterHeirloomsCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterHeirloomsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName}/collections/heirlooms`,\n };\n}\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 mounts a character has obtained.\n */\nexport function characterMountsCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterMountsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName}/collections/mounts`,\n };\n}\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 battle pets a character has obtained.\n */\nexport function characterPetsCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterPetsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName}/collections/pets`,\n };\n}\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 toys a character has obtained.\n */\nexport function characterToysCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterToysCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName}/collections/toys`,\n };\n}\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 transmog unlocks a character has obtained.\n */\nexport function characterTransmogCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterTransmogCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName}/collections/transmogs`,\n };\n}\n"],"mappings":";AAUA,MAAM,WAAW;;;;;;AAOjB,SAAgB,0BACd,WACA,eAC6C;CAC7C,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc;CAClD;AACF;;;;;;AAOA,SAAgB,oCACd,WACA,eACuD;CACvD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc;CAClD;AACF;;;;;;AAOA,SAAgB,iCACd,WACA,eACoD;CACpD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc;CAClD;AACF;;;;;;AAOA,SAAgB,+BACd,WACA,eACkD;CAClD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc;CAClD;AACF;;;;;;AAOA,SAAgB,+BACd,WACA,eACkD;CAClD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc;CAClD;AACF;;;;;;AAOA,SAAgB,mCACd,WACA,eACsD;CACtD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc;CAClD;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/character-collections/index.ts"],"sourcesContent":["import { wowCharacterBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type {\n CharacterCollectionDecorResponse,\n CharacterCollectionsIndexResponse,\n CharacterHeirloomsCollectionSummaryResponse,\n CharacterMountsCollectionSummaryResponse,\n CharacterPetsCollectionSummaryResponse,\n CharacterToysCollectionSummaryResponse,\n CharacterTransmogCollectionSummaryResponse,\n} from './types';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns an index of collection types for a character.\n */\nexport function characterCollectionsIndex(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterCollectionsIndexResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections`,\n };\n}\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 housing decor a character has collected.\n */\nexport function characterCollectionDecor(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterCollectionDecorResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/decor`,\n };\n}\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 heirlooms a character has obtained.\n */\nexport function characterHeirloomsCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterHeirloomsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/heirlooms`,\n };\n}\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 mounts a character has obtained.\n */\nexport function characterMountsCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterMountsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/mounts`,\n };\n}\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 battle pets a character has obtained.\n */\nexport function characterPetsCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterPetsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/pets`,\n };\n}\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 toys a character has obtained.\n */\nexport function characterToysCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterToysCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/toys`,\n };\n}\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 transmog unlocks a character has obtained.\n */\nexport function characterTransmogCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterTransmogCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/transmogs`,\n };\n}\n"],"mappings":";;;;;;;AAiBA,SAAgB,0BACd,WACA,eAC6C;CAC7C,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF;;;;;;AAOA,SAAgB,yBACd,WACA,eAC4C;CAC5C,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF;;;;;;AAOA,SAAgB,oCACd,WACA,eACuD;CACvD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF;;;;;;AAOA,SAAgB,iCACd,WACA,eACoD;CACpD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF;;;;;;AAOA,SAAgB,+BACd,WACA,eACkD;CAClD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF;;;;;;AAOA,SAAgB,+BACd,WACA,eACkD;CAClD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF;;;;;;AAOA,SAAgB,mCACd,WACA,eACsD;CACtD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF"}
@@ -1,2 +1,2 @@
1
- import { t as characterEquipmentSummary } from "../index-XAI3xA9N.js";
1
+ import { t as characterEquipmentSummary } from "../index-DdmXkF2F.js";
2
2
  export { characterEquipmentSummary };
@@ -0,0 +1,2 @@
1
+ import { t as characterHouse } from "../index-CAAhdmK-.js";
2
+ export { characterHouse };
@@ -0,0 +1,22 @@
1
+ import { wowCharacterBasePath } from "@blizzard-api/core";
2
+ // src/character-house/index.ts
3
+ /**
4
+ * Get a summary of a house a character has built.
5
+ *
6
+ * Blizzard disabled this endpoint in early 2026 over player privacy concerns, and it currently returns 404 even for
7
+ * characters that own a house. The helper is kept for when it returns; the response type is unverified.
8
+ * @see {@link https://us.forums.blizzard.com/en/blizzard/t/new-housing-apis/56815}
9
+ * @param realmSlug The slug of the realm.
10
+ * @param characterName The lowercase name of the character.
11
+ * @param houseNumber The number of the character's house (e.g. 1 for house-1).
12
+ * @returns The character's house. See {@link CharacterHouseResponse}.
13
+ */
14
+ function characterHouse(realmSlug, characterName, houseNumber) {
15
+ return {
16
+ namespace: "profile",
17
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/house/house-${houseNumber}`
18
+ };
19
+ }
20
+ export { characterHouse };
21
+
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/character-house/index.ts"],"sourcesContent":["import { wowCharacterBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type { CharacterHouseResponse } from './types';\n\n/**\n * Get a summary of a house a character has built.\n *\n * Blizzard disabled this endpoint in early 2026 over player privacy concerns, and it currently returns 404 even for\n * characters that own a house. The helper is kept for when it returns; the response type is unverified.\n * @see {@link https://us.forums.blizzard.com/en/blizzard/t/new-housing-apis/56815}\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @param houseNumber The number of the character's house (e.g. 1 for house-1).\n * @returns The character's house. See {@link CharacterHouseResponse}.\n */\nexport function characterHouse(\n realmSlug: string,\n characterName: string,\n houseNumber: number,\n): Resource<CharacterHouseResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/house/house-${houseNumber}`,\n };\n}\n"],"mappings":";;;;;;;;;;;;;AAeA,SAAgB,eACd,WACA,eACA,aACkC;CAClC,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,YAAY,EAAE,eAAe;CAC3F;AACF"}
@@ -1,2 +1,2 @@
1
- import { n as characterMythicKeystoneSeasonDetails, t as characterMythicKeystoneProfileIndex } from "../index-BYi-k0bg.js";
1
+ import { n as characterMythicKeystoneSeasonDetails, t as characterMythicKeystoneProfileIndex } from "../index-D4WW7V4l.js";
2
2
  export { characterMythicKeystoneProfileIndex, characterMythicKeystoneSeasonDetails };
@@ -1,5 +1,5 @@
1
+ import { wowGuildBasePath } from "@blizzard-api/core";
1
2
  // src/guild/index.ts
2
- const basePath = "/data/wow/guild";
3
3
  /**
4
4
  * @param realmSlug The slug of the realm.
5
5
  * @param nameSlug The lowercase name of the guild.
@@ -8,7 +8,7 @@ const basePath = "/data/wow/guild";
8
8
  function guild(realmSlug, nameSlug) {
9
9
  return {
10
10
  namespace: "profile",
11
- path: `${basePath}/${realmSlug}/${nameSlug}`
11
+ path: `${wowGuildBasePath}/${realmSlug}/${nameSlug}`
12
12
  };
13
13
  }
14
14
  /**
@@ -19,7 +19,7 @@ function guild(realmSlug, nameSlug) {
19
19
  function guildAchievements(realmSlug, nameSlug) {
20
20
  return {
21
21
  namespace: "profile",
22
- path: `${basePath}/${realmSlug}/${nameSlug}/achievements`
22
+ path: `${wowGuildBasePath}/${realmSlug}/${nameSlug}/achievements`
23
23
  };
24
24
  }
25
25
  /**
@@ -30,7 +30,7 @@ function guildAchievements(realmSlug, nameSlug) {
30
30
  function guildActivity(realmSlug, nameSlug) {
31
31
  return {
32
32
  namespace: "profile",
33
- path: `${basePath}/${realmSlug}/${nameSlug}/activity`
33
+ path: `${wowGuildBasePath}/${realmSlug}/${nameSlug}/activity`
34
34
  };
35
35
  }
36
36
  /**
@@ -41,7 +41,7 @@ function guildActivity(realmSlug, nameSlug) {
41
41
  function guildRoster(realmSlug, nameSlug) {
42
42
  return {
43
43
  namespace: "profile",
44
- path: `${basePath}/${realmSlug}/${nameSlug}/roster`
44
+ path: `${wowGuildBasePath}/${realmSlug}/${nameSlug}/roster`
45
45
  };
46
46
  }
47
47
  export { guild, guildAchievements, guildActivity, guildRoster };
@@ -1 +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;CACpC;AACF;;;;;;AAOA,SAAgB,kBAAkB,WAAmB,UAAuD;CAC1G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS;CAC7C;AACF;;;;;;AAOA,SAAgB,cAAc,WAAmB,UAAmD;CAClG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS;CAC7C;AACF;;;;;;AAOA,SAAgB,YAAY,WAAmB,UAAiD;CAC9F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS;CAC7C;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/guild/index.ts"],"sourcesContent":["import { wowGuildBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type { GuildAchievementsResponse, GuildActivityResponse, GuildResponse, GuildRosterResponse } from './types';\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: `${wowGuildBasePath}/${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: `${wowGuildBasePath}/${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: `${wowGuildBasePath}/${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: `${wowGuildBasePath}/${realmSlug}/${nameSlug}/roster`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,MAAM,WAAmB,UAA2C;CAClF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,GAAG,UAAU,GAAG;CAC5C;AACF;;;;;;AAOA,SAAgB,kBAAkB,WAAmB,UAAuD;CAC1G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,GAAG,UAAU,GAAG,SAAS;CACrD;AACF;;;;;;AAOA,SAAgB,cAAc,WAAmB,UAAmD;CAClG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,GAAG,UAAU,GAAG,SAAS;CACrD;AACF;;;;;;AAOA,SAAgB,YAAY,WAAmB,UAAiD;CAC9F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,GAAG,UAAU,GAAG,SAAS;CACrD;AACF"}
@@ -0,0 +1,45 @@
1
+ import { NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
+ /**
3
+ * The response for an index of neighborhood maps.
4
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
5
+ */
6
+ interface NeighborhoodMapIndexResponse extends ResponseBase {
7
+ maps: Array<NameIdKey>;
8
+ }
9
+ /**
10
+ * The response for a neighborhood map.
11
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
12
+ */
13
+ interface NeighborhoodMapResponse extends ResponseBase {
14
+ id: number;
15
+ name: string;
16
+ }
17
+ /**
18
+ * The response for a neighborhood within a neighborhood map.
19
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
20
+ */
21
+ interface NeighborhoodResponse extends ResponseBase {
22
+ id: number;
23
+ neighborhood_map: NameIdKey;
24
+ neighborhood_name: string;
25
+ }
26
+ /**
27
+ * Get an index of neighborhood maps.
28
+ * @returns The neighborhood map index. See {@link NeighborhoodMapIndexResponse}.
29
+ */
30
+ declare function neighborhoodMaps(): Resource<NeighborhoodMapIndexResponse>;
31
+ /**
32
+ * Get a neighborhood map by ID.
33
+ * @param neighborhoodMapId The neighborhood map ID.
34
+ * @returns The neighborhood map. See {@link NeighborhoodMapResponse}.
35
+ */
36
+ declare function neighborhoodMap(neighborhoodMapId: number): Resource<NeighborhoodMapResponse>;
37
+ /**
38
+ * Get a neighborhood within a neighborhood map by ID.
39
+ * @param neighborhoodMapId The neighborhood map ID.
40
+ * @param neighborhoodId The neighborhood ID.
41
+ * @returns The neighborhood. See {@link NeighborhoodResponse}.
42
+ */
43
+ declare function neighborhood(neighborhoodMapId: number, neighborhoodId: number): Resource<NeighborhoodResponse>;
44
+ export { NeighborhoodMapResponse as a, NeighborhoodMapIndexResponse as i, neighborhoodMap as n, NeighborhoodResponse as o, neighborhoodMaps as r, neighborhood as t };
45
+ //# sourceMappingURL=index-BlmuhVLr.d.ts.map
@@ -0,0 +1,25 @@
1
+ import { Resource, ResponseBase } from "@blizzard-api/core";
2
+ /**
3
+ * The response for a character's house.
4
+ *
5
+ * Blizzard disabled this endpoint in early 2026 over player privacy concerns, and it currently returns 404 even for
6
+ * characters that own a house. The response type is unverified until the endpoint returns.
7
+ * @see {@link https://us.forums.blizzard.com/en/blizzard/t/new-housing-apis/56815}
8
+ */
9
+ interface CharacterHouseResponse extends ResponseBase {
10
+ id?: number;
11
+ }
12
+ /**
13
+ * Get a summary of a house a character has built.
14
+ *
15
+ * Blizzard disabled this endpoint in early 2026 over player privacy concerns, and it currently returns 404 even for
16
+ * characters that own a house. The helper is kept for when it returns; the response type is unverified.
17
+ * @see {@link https://us.forums.blizzard.com/en/blizzard/t/new-housing-apis/56815}
18
+ * @param realmSlug The slug of the realm.
19
+ * @param characterName The lowercase name of the character.
20
+ * @param houseNumber The number of the character's house (e.g. 1 for house-1).
21
+ * @returns The character's house. See {@link CharacterHouseResponse}.
22
+ */
23
+ declare function characterHouse(realmSlug: string, characterName: string, houseNumber: number): Resource<CharacterHouseResponse>;
24
+ export { CharacterHouseResponse as n, characterHouse as t };
25
+ //# sourceMappingURL=index-CAAhdmK-.d.ts.map
@@ -0,0 +1,121 @@
1
+ import { BaseSearchParameters, KeyBase, Locales, NameIdKey, NullishNameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
+ /**
3
+ * The equipment slot types an item appearance can belong to.
4
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
5
+ */
6
+ type ItemAppearanceSlotType = 'AMMO' | 'BAG' | 'BODY' | 'CHEST' | 'CLOAK' | 'FEET' | 'HAND' | 'HEAD' | 'HOLDABLE' | 'LEGS' | 'RANGED' | 'RANGEDRIGHT' | 'ROBE' | 'SHIELD' | 'SHOULDER' | 'TABARD' | 'THROWN' | 'TWOHWEAPON' | 'WAIST' | 'WEAPON' | 'WEAPONMAINHAND' | 'WEAPONOFFHAND' | 'WRIST';
7
+ /**
8
+ * The response for an item appearance.
9
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
10
+ */
11
+ interface ItemAppearanceResponse extends ResponseBase {
12
+ id: number;
13
+ item_class?: NameIdKey;
14
+ item_display_info_id: number;
15
+ item_subclass?: NameIdKey;
16
+ items?: Array<NullishNameIdKey>;
17
+ media: ItemAppearanceMedia;
18
+ slot?: ItemAppearanceSlot;
19
+ }
20
+ /**
21
+ * The search parameters for item appearances.
22
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
23
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
24
+ */
25
+ interface ItemAppearanceSearchParameters extends BaseSearchParameters {
26
+ id?: number;
27
+ }
28
+ /**
29
+ * The response for an item appearance search.
30
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
31
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
32
+ */
33
+ interface ItemAppearanceSearchResponse extends SearchResponseWithoutResults {
34
+ results: Array<ItemAppearanceSearchResponseItem>;
35
+ }
36
+ /**
37
+ * The response for an item appearance set index.
38
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
39
+ */
40
+ interface ItemAppearanceSetIndexResponse extends ResponseBase {
41
+ appearance_sets: Array<NameIdKey>;
42
+ }
43
+ /**
44
+ * The response for an item appearance set.
45
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
46
+ */
47
+ interface ItemAppearanceSetResponse extends ResponseBase {
48
+ appearances: Array<ItemAppearanceSummary>;
49
+ id: number;
50
+ set_name: string;
51
+ }
52
+ /**
53
+ * The response for an item appearance slot index.
54
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
55
+ */
56
+ interface ItemAppearanceSlotIndexResponse extends ResponseBase {
57
+ slots: Array<KeyBase>;
58
+ }
59
+ /**
60
+ * The response for an item appearance slot.
61
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
62
+ */
63
+ interface ItemAppearanceSlotResponse extends ResponseBase {
64
+ appearances: Array<ItemAppearanceSummary>;
65
+ }
66
+ interface ItemAppearanceMedia extends KeyBase {
67
+ id: number;
68
+ }
69
+ interface ItemAppearanceSearchResponseItem extends KeyBase {
70
+ data: {
71
+ id: number;
72
+ item_display_info_id: number;
73
+ slot?: {
74
+ name: Record<Locales, string | undefined>;
75
+ type: ItemAppearanceSlotType;
76
+ };
77
+ };
78
+ }
79
+ interface ItemAppearanceSlot {
80
+ name: string;
81
+ type: ItemAppearanceSlotType;
82
+ }
83
+ interface ItemAppearanceSummary extends KeyBase {
84
+ id: number;
85
+ }
86
+ /**
87
+ * Get an item appearance by ID.
88
+ * @param appearanceId The item appearance ID.
89
+ * @returns The item appearance. See {@link ItemAppearanceResponse}.
90
+ */
91
+ declare function itemAppearance(appearanceId: number): Resource<ItemAppearanceResponse>;
92
+ /**
93
+ * Search for item appearances.
94
+ * @param options The search parameters. See {@link ItemAppearanceSearchParameters}.
95
+ * @returns The search results. See {@link ItemAppearanceSearchResponse}.
96
+ */
97
+ declare function itemAppearanceSearch(options: ItemAppearanceSearchParameters): Resource<ItemAppearanceSearchResponse, ItemAppearanceSearchParameters>;
98
+ /**
99
+ * Get an item appearance set by ID.
100
+ * @param appearanceSetId The item appearance set ID.
101
+ * @returns The item appearance set. See {@link ItemAppearanceSetResponse}.
102
+ */
103
+ declare function itemAppearanceSet(appearanceSetId: number): Resource<ItemAppearanceSetResponse>;
104
+ /**
105
+ * Get an item appearance set index.
106
+ * @returns The item appearance set index. See {@link ItemAppearanceSetIndexResponse}.
107
+ */
108
+ declare function itemAppearanceSetIndex(): Resource<ItemAppearanceSetIndexResponse>;
109
+ /**
110
+ * Get an item appearance slot by slot type.
111
+ * @param slotType The item appearance slot type.
112
+ * @returns The item appearance slot. See {@link ItemAppearanceSlotResponse}.
113
+ */
114
+ declare function itemAppearanceSlot(slotType: ItemAppearanceSlotType): Resource<ItemAppearanceSlotResponse>;
115
+ /**
116
+ * Get an item appearance slot index.
117
+ * @returns The item appearance slot index. See {@link ItemAppearanceSlotIndexResponse}.
118
+ */
119
+ declare function itemAppearanceSlotIndex(): Resource<ItemAppearanceSlotIndexResponse>;
120
+ export { itemAppearanceSlot as a, ItemAppearanceSearchParameters as c, ItemAppearanceSetResponse as d, ItemAppearanceSlotIndexResponse as f, itemAppearanceSetIndex as i, ItemAppearanceSearchResponse as l, ItemAppearanceSlotType as m, itemAppearanceSearch as n, itemAppearanceSlotIndex as o, ItemAppearanceSlotResponse as p, itemAppearanceSet as r, ItemAppearanceResponse as s, itemAppearance as t, ItemAppearanceSetIndexResponse as u };
121
+ //# sourceMappingURL=index-CcOUGucU.d.ts.map
@@ -1,18 +1,14 @@
1
- import { Character, Color, KeyBase, NameId, NameIdKey, Realm, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Character, Color, IdKey, NameId, NameIdKey, Realm, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  interface CharacterMythicKeystoneProfileIndexResponse extends ResponseBase {
3
3
  character: Character;
4
4
  current_period: CurrentPeriod;
5
- seasons: Array<KeyBase & {
6
- id: number;
7
- }>;
5
+ seasons: Array<IdKey>;
8
6
  }
9
7
  interface CharacterMythicKeystoneSeasonDetailsResponse extends ResponseBase {
10
8
  best_runs: Array<BestRun>;
11
9
  character: Character;
12
10
  mythic_rating: MythicRating;
13
- season: KeyBase & {
14
- id: number;
15
- };
11
+ season: IdKey;
16
12
  }
17
13
  interface BestRun {
18
14
  completed_timestamp: number;
@@ -25,9 +21,7 @@ interface BestRun {
25
21
  mythic_rating: MythicRating;
26
22
  }
27
23
  interface CurrentPeriod {
28
- period: KeyBase & {
29
- id: number;
30
- };
24
+ period: IdKey;
31
25
  }
32
26
  interface Member {
33
27
  character: NameId & {
@@ -57,4 +51,4 @@ declare function characterMythicKeystoneProfileIndex(realmSlug: string, characte
57
51
  */
58
52
  declare function characterMythicKeystoneSeasonDetails(realmSlug: string, characterName: string, seasonId: number): Resource<CharacterMythicKeystoneSeasonDetailsResponse>;
59
53
  export { CharacterMythicKeystoneSeasonDetailsResponse as i, characterMythicKeystoneSeasonDetails as n, CharacterMythicKeystoneProfileIndexResponse as r, characterMythicKeystoneProfileIndex as t };
60
- //# sourceMappingURL=index-BYi-k0bg.d.ts.map
54
+ //# sourceMappingURL=index-D4WW7V4l.d.ts.map