@blizzard-api/wow 4.2.2 → 4.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/account-profile/index.js +1 -1
  2. package/dist/account-profile/index.js.map +1 -1
  3. package/dist/achievements/index.js +3 -3
  4. package/dist/achievements/index.js.map +1 -1
  5. package/dist/auction-house/index.js +1 -1
  6. package/dist/auction-house/index.js.map +1 -1
  7. package/dist/azerite-essence/index.js +2 -2
  8. package/dist/azerite-essence/index.js.map +1 -1
  9. package/dist/character-achievements/index.js +2 -2
  10. package/dist/character-achievements/index.js.map +1 -1
  11. package/dist/character-appearance/index.js +1 -1
  12. package/dist/character-appearance/index.js.map +1 -1
  13. package/dist/character-collections/index.js +7 -7
  14. package/dist/character-collections/index.js.map +1 -1
  15. package/dist/character-encounters/index.js +3 -3
  16. package/dist/character-encounters/index.js.map +1 -1
  17. package/dist/character-equipment/index.js +1 -1
  18. package/dist/character-equipment/index.js.map +1 -1
  19. package/dist/character-house/index.js +1 -1
  20. package/dist/character-house/index.js.map +1 -1
  21. package/dist/character-hunter-pets/index.js +1 -1
  22. package/dist/character-hunter-pets/index.js.map +1 -1
  23. package/dist/character-media/index.js +1 -1
  24. package/dist/character-media/index.js.map +1 -1
  25. package/dist/character-mythic-keystone-profile/index.js +2 -2
  26. package/dist/character-mythic-keystone-profile/index.js.map +1 -1
  27. package/dist/character-professions/index.js +1 -1
  28. package/dist/character-professions/index.js.map +1 -1
  29. package/dist/character-profile/index.js +2 -2
  30. package/dist/character-profile/index.js.map +1 -1
  31. package/dist/character-pvp/index.js +2 -2
  32. package/dist/character-pvp/index.js.map +1 -1
  33. package/dist/character-quests/index.js +2 -2
  34. package/dist/character-quests/index.js.map +1 -1
  35. package/dist/character-reputations/index.js +1 -1
  36. package/dist/character-reputations/index.js.map +1 -1
  37. package/dist/character-soulbinds/index.js +1 -1
  38. package/dist/character-soulbinds/index.js.map +1 -1
  39. package/dist/character-specializations/index.js +1 -1
  40. package/dist/character-specializations/index.js.map +1 -1
  41. package/dist/character-statistics/index.js +1 -1
  42. package/dist/character-statistics/index.js.map +1 -1
  43. package/dist/character-titles/index.js +1 -1
  44. package/dist/character-titles/index.js.map +1 -1
  45. package/dist/connected-realm/index.js +1 -1
  46. package/dist/connected-realm/index.js.map +1 -1
  47. package/dist/covenant/index.js +4 -4
  48. package/dist/covenant/index.js.map +1 -1
  49. package/dist/creature/index.js +5 -5
  50. package/dist/creature/index.js.map +1 -1
  51. package/dist/guild/index.js +4 -4
  52. package/dist/guild/index.js.map +1 -1
  53. package/dist/guild-crest/index.js +2 -2
  54. package/dist/guild-crest/index.js.map +1 -1
  55. package/dist/heirloom/index.js +1 -1
  56. package/dist/heirloom/index.js.map +1 -1
  57. package/dist/housing-decor/index.js +4 -4
  58. package/dist/housing-decor/index.js.map +1 -1
  59. package/dist/{index-BaL7P-bA.d.ts → index-Cqlff6vd.d.ts} +2 -2
  60. package/dist/index.d.ts +1 -1
  61. package/dist/item/index.js +5 -5
  62. package/dist/item/index.js.map +1 -1
  63. package/dist/item-appearance/index.js +3 -3
  64. package/dist/item-appearance/index.js.map +1 -1
  65. package/dist/journal/index.js +4 -4
  66. package/dist/journal/index.js.map +1 -1
  67. package/dist/modified-crafting/index.js +2 -2
  68. package/dist/modified-crafting/index.js.map +1 -1
  69. package/dist/mount/index.js +1 -1
  70. package/dist/mount/index.js.map +1 -1
  71. package/dist/mythic-keystone-affix/index.js +2 -2
  72. package/dist/mythic-keystone-affix/index.js.map +1 -1
  73. package/dist/mythic-keystone-dungeon/index.js +3 -3
  74. package/dist/mythic-keystone-dungeon/index.js.map +1 -1
  75. package/dist/mythic-keystone-leaderboard/index.js +2 -2
  76. package/dist/mythic-keystone-leaderboard/index.js.map +1 -1
  77. package/dist/mythic-raid-leaderboard/index.js +1 -1
  78. package/dist/mythic-raid-leaderboard/index.js.map +1 -1
  79. package/dist/neighborhood-map/index.js +2 -2
  80. package/dist/neighborhood-map/index.js.map +1 -1
  81. package/dist/pet/index.js +4 -4
  82. package/dist/pet/index.js.map +1 -1
  83. package/dist/playable-class/index.js +3 -3
  84. package/dist/playable-class/index.js.map +1 -1
  85. package/dist/playable-race/index.js +1 -1
  86. package/dist/playable-race/index.js.map +1 -1
  87. package/dist/playable-specialization/index.js +2 -2
  88. package/dist/playable-specialization/index.js.map +1 -1
  89. package/dist/power-type/index.js +1 -1
  90. package/dist/power-type/index.js.map +1 -1
  91. package/dist/profession/index.js +5 -5
  92. package/dist/profession/index.js.map +1 -1
  93. package/dist/pvp-season/index.js +4 -4
  94. package/dist/pvp-season/index.js.map +1 -1
  95. package/dist/pvp-tier/index.js +2 -2
  96. package/dist/pvp-tier/index.js.map +1 -1
  97. package/dist/quest/index.d.ts +1 -1
  98. package/dist/quest/index.js +4 -4
  99. package/dist/quest/index.js.map +1 -1
  100. package/dist/realm/index.js +1 -1
  101. package/dist/realm/index.js.map +1 -1
  102. package/dist/region/index.js +1 -1
  103. package/dist/region/index.js.map +1 -1
  104. package/dist/reputations/index.js +2 -2
  105. package/dist/reputations/index.js.map +1 -1
  106. package/dist/spell/index.js +2 -2
  107. package/dist/spell/index.js.map +1 -1
  108. package/dist/talent/index.js +4 -4
  109. package/dist/talent/index.js.map +1 -1
  110. package/dist/tech-talent/index.js +3 -3
  111. package/dist/tech-talent/index.js.map +1 -1
  112. package/dist/title/index.js +1 -1
  113. package/dist/title/index.js.map +1 -1
  114. package/dist/toy/index.js +1 -1
  115. package/dist/toy/index.js.map +1 -1
  116. package/package.json +3 -3
@@ -106,7 +106,7 @@ function accountTransmogsCollectionSummary(token) {
106
106
  function protectedCharacterProfileSummary(realmId, characterId, token) {
107
107
  return {
108
108
  namespace: "profile",
109
- path: `${wowAccountProfileBasePath}/protected-character/${realmId}-${characterId}`,
109
+ path: `${wowAccountProfileBasePath}/protected-character/${encodeURIComponent(realmId)}-${encodeURIComponent(characterId)}`,
110
110
  token
111
111
  };
112
112
  }
@@ -1 +1 @@
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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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,OAAoE;CAC1G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,0BAA0B;EACnC;CACF;AACF;;;;;;AAOA,SAAgB,uBAAuB,OAAmE;CACxG,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,OAAyE;CACpH,OAAO;EACL,WAAW;EACX,MAAM,GAAG,0BAA0B;EACnC;CACF;AACF;;;;;;AAOA,SAAgB,sBAAsB,OAAkE;CACtG,OAAO;EACL,WAAW;EACX,MAAM;EACN;CACF;AACF;;;;;;AAOA,SAAgB,6BAA6B,OAAyE;CACpH,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
+ {"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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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 Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.\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/${encodeURIComponent(realmId)}-${encodeURIComponent(characterId)}`,\n token,\n };\n}\n"],"mappings":";;;;;;;AAmBA,SAAgB,wBAAwB,OAAoE;CAC1G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,0BAA0B;EACnC;CACF;AACF;;;;;;AAOA,SAAgB,uBAAuB,OAAmE;CACxG,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,OAAyE;CACpH,OAAO;EACL,WAAW;EACX,MAAM,GAAG,0BAA0B;EACnC;CACF;AACF;;;;;;AAOA,SAAgB,sBAAsB,OAAkE;CACtG,OAAO;EACL,WAAW;EACX,MAAM;EACN;CACF;AACF;;;;;;AAOA,SAAgB,6BAA6B,OAAyE;CACpH,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,mBAAmB,OAAO,EAAE,GAAG,mBAAmB,WAAW;EACvH;CACF;AACF"}
@@ -10,7 +10,7 @@ const achievementCategoryBase = `${wowBasePath}/achievement-category`;
10
10
  function achievement(achievementId) {
11
11
  return {
12
12
  namespace: "static",
13
- path: `${achievementBase}/${achievementId}`
13
+ path: `${achievementBase}/${encodeURIComponent(achievementId)}`
14
14
  };
15
15
  }
16
16
  /**
@@ -21,7 +21,7 @@ function achievement(achievementId) {
21
21
  function achievementCategory(achievementCategoryId) {
22
22
  return {
23
23
  namespace: "static",
24
- path: `${achievementCategoryBase}/${achievementCategoryId}`
24
+ path: `${achievementCategoryBase}/${encodeURIComponent(achievementCategoryId)}`
25
25
  };
26
26
  }
27
27
  /**
@@ -52,7 +52,7 @@ function achievementIndex() {
52
52
  function achievementMedia(achievementId) {
53
53
  return {
54
54
  namespace: "static",
55
- path: `${wowMediaBasePath}/achievement/${achievementId}`
55
+ path: `${wowMediaBasePath}/achievement/${encodeURIComponent(achievementId)}`
56
56
  };
57
57
  }
58
58
  export { achievement, achievementCategory, achievementCategoryIndex, achievementIndex, achievementMedia };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/achievements/index.ts"],"sourcesContent":["import { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type {\n AchievementCategoryIndexResponse,\n AchievementCategoryResponse,\n AchievementIndexResponse,\n AchievementMediaResponse,\n AchievementResponse,\n} from './types';\n\nconst achievementBase = `${wowBasePath}/achievement`;\nconst achievementCategoryBase = `${wowBasePath}/achievement-category`;\n\n/**\n * Get an achievement by ID.\n * @param achievementId The achievement ID.\n * @returns The achievement. See {@link AchievementResponse}.\n */\nexport function achievement(achievementId: number): Resource<AchievementResponse> {\n return {\n namespace: 'static',\n path: `${achievementBase}/${achievementId}`,\n };\n}\n/**\n * Get an achievement category by ID.\n * @param achievementCategoryId The achievement category ID.\n * @returns The achievement category. See {@link AchievementCategoryResponse}.\n */\nexport function achievementCategory(achievementCategoryId: number): Resource<AchievementCategoryResponse> {\n return {\n namespace: 'static',\n path: `${achievementCategoryBase}/${achievementCategoryId}`,\n };\n}\n/**\n * Get an achievement category index.\n * @returns The achievement category index. See {@link AchievementCategoryIndexResponse}.\n */\nexport function achievementCategoryIndex(): Resource<AchievementCategoryIndexResponse> {\n return {\n namespace: 'static',\n path: `${achievementCategoryBase}/index`,\n };\n}\n/**\n * Get an achievement index.\n * @returns The achievement index. See {@link AchievementIndexResponse}.\n */\nexport function achievementIndex(): Resource<AchievementIndexResponse> {\n return {\n namespace: 'static',\n path: `${achievementBase}/index`,\n };\n}\n/**\n * Get achievement media by ID.\n * @param achievementId The achievement ID.\n * @returns The achievement media. See {@link AchievementMediaResponse}.\n */\nexport function achievementMedia(achievementId: number): Resource<AchievementMediaResponse> {\n return { namespace: 'static', path: `${wowMediaBasePath}/achievement/${achievementId}` };\n}\n"],"mappings":";;AAUA,MAAM,kBAAkB,GAAG,YAAY;AACvC,MAAM,0BAA0B,GAAG,YAAY;;;;;;AAO/C,SAAgB,YAAY,eAAsD;CAChF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,gBAAgB,GAAG;CAC9B;AACF;;;;;;AAMA,SAAgB,oBAAoB,uBAAsE;CACxG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,wBAAwB,GAAG;CACtC;AACF;;;;;AAKA,SAAgB,2BAAuE;CACrF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,wBAAwB;CACnC;AACF;;;;;AAKA,SAAgB,mBAAuD;CACrE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,gBAAgB;CAC3B;AACF;;;;;;AAMA,SAAgB,iBAAiB,eAA2D;CAC1F,OAAO;EAAE,WAAW;EAAU,MAAM,GAAG,iBAAiB,eAAe;CAAgB;AACzF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/achievements/index.ts"],"sourcesContent":["import { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type {\n AchievementCategoryIndexResponse,\n AchievementCategoryResponse,\n AchievementIndexResponse,\n AchievementMediaResponse,\n AchievementResponse,\n} from './types';\n\nconst achievementBase = `${wowBasePath}/achievement`;\nconst achievementCategoryBase = `${wowBasePath}/achievement-category`;\n\n/**\n * Get an achievement by ID.\n * @param achievementId The achievement ID.\n * @returns The achievement. See {@link AchievementResponse}.\n */\nexport function achievement(achievementId: number): Resource<AchievementResponse> {\n return {\n namespace: 'static',\n path: `${achievementBase}/${encodeURIComponent(achievementId)}`,\n };\n}\n/**\n * Get an achievement category by ID.\n * @param achievementCategoryId The achievement category ID.\n * @returns The achievement category. See {@link AchievementCategoryResponse}.\n */\nexport function achievementCategory(achievementCategoryId: number): Resource<AchievementCategoryResponse> {\n return {\n namespace: 'static',\n path: `${achievementCategoryBase}/${encodeURIComponent(achievementCategoryId)}`,\n };\n}\n/**\n * Get an achievement category index.\n * @returns The achievement category index. See {@link AchievementCategoryIndexResponse}.\n */\nexport function achievementCategoryIndex(): Resource<AchievementCategoryIndexResponse> {\n return {\n namespace: 'static',\n path: `${achievementCategoryBase}/index`,\n };\n}\n/**\n * Get an achievement index.\n * @returns The achievement index. See {@link AchievementIndexResponse}.\n */\nexport function achievementIndex(): Resource<AchievementIndexResponse> {\n return {\n namespace: 'static',\n path: `${achievementBase}/index`,\n };\n}\n/**\n * Get achievement media by ID.\n * @param achievementId The achievement ID.\n * @returns The achievement media. See {@link AchievementMediaResponse}.\n */\nexport function achievementMedia(achievementId: number): Resource<AchievementMediaResponse> {\n return { namespace: 'static', path: `${wowMediaBasePath}/achievement/${encodeURIComponent(achievementId)}` };\n}\n"],"mappings":";;AAUA,MAAM,kBAAkB,GAAG,YAAY;AACvC,MAAM,0BAA0B,GAAG,YAAY;;;;;;AAO/C,SAAgB,YAAY,eAAsD;CAChF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,gBAAgB,GAAG,mBAAmB,aAAa;CAC9D;AACF;;;;;;AAMA,SAAgB,oBAAoB,uBAAsE;CACxG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,wBAAwB,GAAG,mBAAmB,qBAAqB;CAC9E;AACF;;;;;AAKA,SAAgB,2BAAuE;CACrF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,wBAAwB;CACnC;AACF;;;;;AAKA,SAAgB,mBAAuD;CACrE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,gBAAgB;CAC3B;AACF;;;;;;AAMA,SAAgB,iBAAiB,eAA2D;CAC1F,OAAO;EAAE,WAAW;EAAU,MAAM,GAAG,iBAAiB,eAAe,mBAAmB,aAAa;CAAI;AAC7G"}
@@ -8,7 +8,7 @@ import { wowBasePath } from "@blizzard-api/core";
8
8
  function auctions(connectedRealmId) {
9
9
  return {
10
10
  namespace: "dynamic",
11
- path: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions`
11
+ path: `${wowBasePath}/connected-realm/${encodeURIComponent(connectedRealmId)}/auctions`
12
12
  };
13
13
  }
14
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/auction-house/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type { AuctionHouseCommoditiesResponse, AuctionHouseResponse } from './types';\n\n/**\n * Get auction house data for a connected realm.\n * @param connectedRealmId The ID of the connected realm.\n * @returns The auction house data. See {@link AuctionHouseResponse}.\n */\nexport function auctions(connectedRealmId: number): Resource<AuctionHouseResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions`,\n };\n}\n/**\n * Get auction house data for all connected realms.\n * @returns The auction house data. See {@link AuctionHouseResponse}.\n */\nexport function commodities(): Resource<AuctionHouseCommoditiesResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/auctions/commodities`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,SAAS,kBAA0D;CACjF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB,iBAAiB;CAC3D;AACF;;;;;AAKA,SAAgB,cAAyD;CACvE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/auction-house/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type { AuctionHouseCommoditiesResponse, AuctionHouseResponse } from './types';\n\n/**\n * Get auction house data for a connected realm.\n * @param connectedRealmId The ID of the connected realm.\n * @returns The auction house data. See {@link AuctionHouseResponse}.\n */\nexport function auctions(connectedRealmId: number): Resource<AuctionHouseResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/connected-realm/${encodeURIComponent(connectedRealmId)}/auctions`,\n };\n}\n/**\n * Get auction house data for all connected realms.\n * @returns The auction house data. See {@link AuctionHouseResponse}.\n */\nexport function commodities(): Resource<AuctionHouseCommoditiesResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/auctions/commodities`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,SAAS,kBAA0D;CACjF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB,mBAAmB,gBAAgB,EAAE;CAC/E;AACF;;;;;AAKA,SAAgB,cAAyD;CACvE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
@@ -8,7 +8,7 @@ import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from "@blizzard-api/
8
8
  function azeriteEssence(azeriteEssenceId) {
9
9
  return {
10
10
  namespace: "static",
11
- path: `${wowBasePath}/azerite-essence/${azeriteEssenceId}`
11
+ path: `${wowBasePath}/azerite-essence/${encodeURIComponent(azeriteEssenceId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -29,7 +29,7 @@ function azeriteEssenceIndex() {
29
29
  function azeriteEssenceMedia(azeriteEssenceId) {
30
30
  return {
31
31
  namespace: "static",
32
- path: `${wowMediaBasePath}/azerite-essence/${azeriteEssenceId}`
32
+ path: `${wowMediaBasePath}/azerite-essence/${encodeURIComponent(azeriteEssenceId)}`
33
33
  };
34
34
  }
35
35
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/azerite-essence/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type {\n AzeriteEssenceIndexResponse,\n AzeriteEssenceMediaResponse,\n AzeriteEssenceResponse,\n AzeriteEssenceSearchParameters,\n AzeriteEssenceSearchResponse,\n} from './types';\n\n/**\n * Get an azerite essence by ID.\n * @param azeriteEssenceId The azerite essence ID.\n * @returns The azerite essence. See {@link AzeriteEssenceResponse}.\n */\nexport function azeriteEssence(azeriteEssenceId: number): Resource<AzeriteEssenceResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/azerite-essence/${azeriteEssenceId}`,\n };\n}\n/**\n * Get an azerite essence index.\n * @returns The azerite essence index. See {@link AzeriteEssenceIndexResponse}.\n */\nexport function azeriteEssenceIndex(): Resource<AzeriteEssenceIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/azerite-essence/index`,\n };\n}\n/**\n * Get azerite essence media by ID.\n * @param azeriteEssenceId The azerite essence ID.\n * @returns The azerite essence media. See {@link AzeriteEssenceMediaResponse}.\n */\nexport function azeriteEssenceMedia(azeriteEssenceId: number): Resource<AzeriteEssenceMediaResponse> {\n return { namespace: 'static', path: `${wowMediaBasePath}/azerite-essence/${azeriteEssenceId}` };\n}\n/**\n * Search for azerite essences.\n * @param options The search parameters. See {@link AzeriteEssenceSearchParameters}.\n * @returns The search results. See {@link AzeriteEssenceSearchResponse}.\n */\nexport function azeriteEssenceSearch(\n options: AzeriteEssenceSearchParameters,\n): Resource<AzeriteEssenceSearchResponse, AzeriteEssenceSearchParameters> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n 'allowed_specializations.id': options['allowed_specializations.id'],\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/azerite-essence`,\n };\n}\n"],"mappings":";;;;;;;AAeA,SAAgB,eAAe,kBAA4D;CACzF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB;CAC1C;AACF;;;;;AAKA,SAAgB,sBAA6D;CAC3E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,oBAAoB,kBAAiE;CACnG,OAAO;EAAE,WAAW;EAAU,MAAM,GAAG,iBAAiB,mBAAmB;CAAmB;AAChG;;;;;;AAMA,SAAgB,qBACd,SACwE;CACxE,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;GACf,8BAA8B,QAAQ;GACtC,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/azerite-essence/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type {\n AzeriteEssenceIndexResponse,\n AzeriteEssenceMediaResponse,\n AzeriteEssenceResponse,\n AzeriteEssenceSearchParameters,\n AzeriteEssenceSearchResponse,\n} from './types';\n\n/**\n * Get an azerite essence by ID.\n * @param azeriteEssenceId The azerite essence ID.\n * @returns The azerite essence. See {@link AzeriteEssenceResponse}.\n */\nexport function azeriteEssence(azeriteEssenceId: number): Resource<AzeriteEssenceResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/azerite-essence/${encodeURIComponent(azeriteEssenceId)}`,\n };\n}\n/**\n * Get an azerite essence index.\n * @returns The azerite essence index. See {@link AzeriteEssenceIndexResponse}.\n */\nexport function azeriteEssenceIndex(): Resource<AzeriteEssenceIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/azerite-essence/index`,\n };\n}\n/**\n * Get azerite essence media by ID.\n * @param azeriteEssenceId The azerite essence ID.\n * @returns The azerite essence media. See {@link AzeriteEssenceMediaResponse}.\n */\nexport function azeriteEssenceMedia(azeriteEssenceId: number): Resource<AzeriteEssenceMediaResponse> {\n return { namespace: 'static', path: `${wowMediaBasePath}/azerite-essence/${encodeURIComponent(azeriteEssenceId)}` };\n}\n/**\n * Search for azerite essences.\n * @param options The search parameters. See {@link AzeriteEssenceSearchParameters}.\n * @returns The search results. See {@link AzeriteEssenceSearchResponse}.\n */\nexport function azeriteEssenceSearch(\n options: AzeriteEssenceSearchParameters,\n): Resource<AzeriteEssenceSearchResponse, AzeriteEssenceSearchParameters> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n 'allowed_specializations.id': options['allowed_specializations.id'],\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/azerite-essence`,\n };\n}\n"],"mappings":";;;;;;;AAeA,SAAgB,eAAe,kBAA4D;CACzF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB,mBAAmB,gBAAgB;CAC7E;AACF;;;;;AAKA,SAAgB,sBAA6D;CAC3E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,oBAAoB,kBAAiE;CACnG,OAAO;EAAE,WAAW;EAAU,MAAM,GAAG,iBAAiB,mBAAmB,mBAAmB,gBAAgB;CAAI;AACpH;;;;;;AAMA,SAAgB,qBACd,SACwE;CACxE,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;GACf,8BAA8B,QAAQ;GACtC,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF"}
@@ -8,7 +8,7 @@ import { wowCharacterBasePath } from "@blizzard-api/core";
8
8
  function characterAchievementsSummary(realmSlug, characterName) {
9
9
  return {
10
10
  namespace: "profile",
11
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements`
11
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(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: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`
22
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(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 { 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
+ {"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}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(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}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/achievements/statistics`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,6BACd,WACA,eACgD;CAChD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC,EAAE;CACpH;AACF;;;;;;AAOA,SAAgB,+BACd,WACA,eACkD;CAClD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC,EAAE;CACpH;AACF"}
@@ -7,7 +7,7 @@
7
7
  function characterAppearanceSummary(realmSlug, characterName) {
8
8
  return {
9
9
  namespace: "profile",
10
- path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/appearance`
10
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/appearance`
11
11
  };
12
12
  }
13
13
  export { characterAppearanceSummary };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/character-appearance/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterAppearanceResponse } 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 appearance settings.\n */\nexport function characterAppearanceSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterAppearanceResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/appearance`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,2BACd,WACA,eACuC;CACvC,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,YAAY,EAAE;CAC3E;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/character-appearance/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterAppearanceResponse } 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 appearance settings.\n */\nexport function characterAppearanceSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterAppearanceResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/appearance`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,2BACd,WACA,eACuC;CACvC,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC,EAAE;CACnH;AACF"}
@@ -8,7 +8,7 @@ import { wowCharacterBasePath } from "@blizzard-api/core";
8
8
  function characterCollectionsIndex(realmSlug, characterName) {
9
9
  return {
10
10
  namespace: "profile",
11
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections`
11
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/collections`
12
12
  };
13
13
  }
14
14
  /**
@@ -19,7 +19,7 @@ function characterCollectionsIndex(realmSlug, characterName) {
19
19
  function characterCollectionDecor(realmSlug, characterName) {
20
20
  return {
21
21
  namespace: "profile",
22
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/decor`
22
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/collections/decor`
23
23
  };
24
24
  }
25
25
  /**
@@ -30,7 +30,7 @@ function characterCollectionDecor(realmSlug, characterName) {
30
30
  function characterHeirloomsCollectionSummary(realmSlug, characterName) {
31
31
  return {
32
32
  namespace: "profile",
33
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/heirlooms`
33
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/collections/heirlooms`
34
34
  };
35
35
  }
36
36
  /**
@@ -41,7 +41,7 @@ function characterHeirloomsCollectionSummary(realmSlug, characterName) {
41
41
  function characterMountsCollectionSummary(realmSlug, characterName) {
42
42
  return {
43
43
  namespace: "profile",
44
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/mounts`
44
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/collections/mounts`
45
45
  };
46
46
  }
47
47
  /**
@@ -52,7 +52,7 @@ function characterMountsCollectionSummary(realmSlug, characterName) {
52
52
  function characterPetsCollectionSummary(realmSlug, characterName) {
53
53
  return {
54
54
  namespace: "profile",
55
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/pets`
55
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/collections/pets`
56
56
  };
57
57
  }
58
58
  /**
@@ -63,7 +63,7 @@ function characterPetsCollectionSummary(realmSlug, characterName) {
63
63
  function characterToysCollectionSummary(realmSlug, characterName) {
64
64
  return {
65
65
  namespace: "profile",
66
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/toys`
66
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/collections/toys`
67
67
  };
68
68
  }
69
69
  /**
@@ -74,7 +74,7 @@ function characterToysCollectionSummary(realmSlug, characterName) {
74
74
  function characterTransmogCollectionSummary(realmSlug, characterName) {
75
75
  return {
76
76
  namespace: "profile",
77
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/collections/transmogs`
77
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/collections/transmogs`
78
78
  };
79
79
  }
80
80
  export { characterCollectionDecor, characterCollectionsIndex, characterHeirloomsCollectionSummary, characterMountsCollectionSummary, characterPetsCollectionSummary, characterToysCollectionSummary, characterTransmogCollectionSummary };
@@ -1 +1 @@
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
+ {"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}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(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}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(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}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(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}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(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}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(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}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(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}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/collections/transmogs`,\n };\n}\n"],"mappings":";;;;;;;AAiBA,SAAgB,0BACd,WACA,eAC6C;CAC7C,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACtG;AACF;;;;;;AAOA,SAAgB,yBACd,WACA,eAC4C;CAC5C,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACtG;AACF;;;;;;AAOA,SAAgB,oCACd,WACA,eACuD;CACvD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACtG;AACF;;;;;;AAOA,SAAgB,iCACd,WACA,eACoD;CACpD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACtG;AACF;;;;;;AAOA,SAAgB,+BACd,WACA,eACkD;CAClD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACtG;AACF;;;;;;AAOA,SAAgB,+BACd,WACA,eACkD;CAClD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACtG;AACF;;;;;;AAOA,SAAgB,mCACd,WACA,eACsD;CACtD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACtG;AACF"}
@@ -8,7 +8,7 @@ import { wowCharacterBasePath } from "@blizzard-api/core";
8
8
  function characterDungeons(realmSlug, characterName) {
9
9
  return {
10
10
  namespace: "profile",
11
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/encounters/dungeons`
11
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/encounters/dungeons`
12
12
  };
13
13
  }
14
14
  /**
@@ -19,7 +19,7 @@ function characterDungeons(realmSlug, characterName) {
19
19
  function characterEncountersSummary(realmSlug, characterName) {
20
20
  return {
21
21
  namespace: "profile",
22
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/encounters`
22
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/encounters`
23
23
  };
24
24
  }
25
25
  /**
@@ -30,7 +30,7 @@ function characterEncountersSummary(realmSlug, characterName) {
30
30
  function characterRaids(realmSlug, characterName) {
31
31
  return {
32
32
  namespace: "profile",
33
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/encounters/raids`
33
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/encounters/raids`
34
34
  };
35
35
  }
36
36
  export { characterDungeons, characterEncountersSummary, characterRaids };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/character-encounters/index.ts"],"sourcesContent":["import { wowCharacterBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type { CharacterDungeonsResponse, CharacterEncountersSummaryResponse, CharacterRaidsResponse } 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 completed dungeons.\n */\nexport function characterDungeons(realmSlug: string, characterName: string): Resource<CharacterDungeonsResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/encounters/dungeons`,\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 a character's encounters.\n */\nexport function characterEncountersSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterEncountersSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/encounters`,\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 a character's completed raids.\n */\nexport function characterRaids(realmSlug: string, characterName: string): Resource<CharacterRaidsResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/encounters/raids`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,kBAAkB,WAAmB,eAA4D;CAC/G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,YAAY,EAAE;CAC5E;AACF;;;;;;AAOA,SAAgB,2BACd,WACA,eAC8C;CAC9C,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,YAAY,EAAE;CAC5E;AACF;;;;;;AAOA,SAAgB,eAAe,WAAmB,eAAyD;CACzG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,YAAY,EAAE;CAC5E;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/character-encounters/index.ts"],"sourcesContent":["import { wowCharacterBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type { CharacterDungeonsResponse, CharacterEncountersSummaryResponse, CharacterRaidsResponse } 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 completed dungeons.\n */\nexport function characterDungeons(realmSlug: string, characterName: string): Resource<CharacterDungeonsResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/encounters/dungeons`,\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 a character's encounters.\n */\nexport function characterEncountersSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterEncountersSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/encounters`,\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 a character's completed raids.\n */\nexport function characterRaids(realmSlug: string, characterName: string): Resource<CharacterRaidsResponse> {\n return {\n namespace: 'profile',\n path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/encounters/raids`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,kBAAkB,WAAmB,eAA4D;CAC/G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC,EAAE;CACpH;AACF;;;;;;AAOA,SAAgB,2BACd,WACA,eAC8C;CAC9C,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC,EAAE;CACpH;AACF;;;;;;AAOA,SAAgB,eAAe,WAAmB,eAAyD;CACzG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC,EAAE;CACpH;AACF"}
@@ -7,7 +7,7 @@
7
7
  function characterEquipmentSummary(realmSlug, characterName) {
8
8
  return {
9
9
  namespace: "profile",
10
- path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/equipment`
10
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/equipment`
11
11
  };
12
12
  }
13
13
  export { characterEquipmentSummary };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/character-equipment/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterEquipmentSummaryResponse } 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 items equipped by a character.\n */\nexport function characterEquipmentSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterEquipmentSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/equipment`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,0BACd,WACA,eAC6C;CAC7C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,YAAY,EAAE;CAC3E;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/character-equipment/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterEquipmentSummaryResponse } 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 items equipped by a character.\n */\nexport function characterEquipmentSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterEquipmentSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/equipment`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,0BACd,WACA,eAC6C;CAC7C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC,EAAE;CACnH;AACF"}
@@ -14,7 +14,7 @@ import { wowCharacterBasePath } from "@blizzard-api/core";
14
14
  function characterHouse(realmSlug, characterName, houseNumber) {
15
15
  return {
16
16
  namespace: "profile",
17
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/house/house-${houseNumber}`
17
+ path: `${wowCharacterBasePath}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/house/house-${encodeURIComponent(houseNumber)}`
18
18
  };
19
19
  }
20
20
  export { characterHouse };
@@ -1 +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
+ {"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}/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/house/house-${encodeURIComponent(houseNumber)}`,\n };\n}\n"],"mappings":";;;;;;;;;;;;;AAeA,SAAgB,eACd,WACA,eACA,aACkC;CAClC,OAAO;EACL,WAAW;EACX,MAAM,GAAG,qBAAqB,GAAG,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC,EAAE,eAAe,mBAAmB,WAAW;CACjK;AACF"}
@@ -8,7 +8,7 @@
8
8
  function characterHunterPetsSummary(realmSlug, characterName) {
9
9
  return {
10
10
  namespace: "profile",
11
- path: `/profile/wow/character/${realmSlug}/${characterName}/hunter-pets`
11
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/hunter-pets`
12
12
  };
13
13
  }
14
14
  export { characterHunterPetsSummary };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/character-hunter-pets/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterHunterPetsSummaryResponse } from './types';\n\n/**\n * If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the character's hunter pets.\n */\nexport function characterHunterPetsSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterHunterPetsSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName}/hunter-pets`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,2BACd,WACA,eAC8C;CAC9C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc;CAC7D;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/character-hunter-pets/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterHunterPetsSummaryResponse } from './types';\n\n/**\n * If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the character's hunter pets.\n */\nexport function characterHunterPetsSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterHunterPetsSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/hunter-pets`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,2BACd,WACA,eAC8C;CAC9C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACrG;AACF"}
@@ -7,7 +7,7 @@
7
7
  function characterMediaSummary(realmSlug, characterName) {
8
8
  return {
9
9
  namespace: "profile",
10
- path: `/profile/wow/character/${realmSlug}/${characterName}/character-media`
10
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/character-media`
11
11
  };
12
12
  }
13
13
  export { characterMediaSummary };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/character-media/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterMediaSummaryResponse } 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 media assets available for a character (such as an avatar render).\n */\nexport function characterMediaSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterMediaSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${realmSlug}/${characterName}/character-media`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,sBACd,WACA,eACyC;CACzC,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc;CAC7D;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/character-media/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterMediaSummaryResponse } 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 media assets available for a character (such as an avatar render).\n */\nexport function characterMediaSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterMediaSummaryResponse> {\n return {\n namespace: 'profile',\n path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/character-media`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,sBACd,WACA,eACyC;CACzC,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACrG;AACF"}
@@ -7,7 +7,7 @@
7
7
  function characterMythicKeystoneProfileIndex(realmSlug, characterName) {
8
8
  return {
9
9
  namespace: "profile",
10
- path: `/profile/wow/character/${realmSlug}/${characterName}/mythic-keystone-profile`
10
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/mythic-keystone-profile`
11
11
  };
12
12
  }
13
13
  /**
@@ -21,7 +21,7 @@ function characterMythicKeystoneProfileIndex(realmSlug, characterName) {
21
21
  function characterMythicKeystoneSeasonDetails(realmSlug, characterName, seasonId) {
22
22
  return {
23
23
  namespace: "profile",
24
- path: `/profile/wow/character/${realmSlug}/${characterName}/mythic-keystone-profile/season/${seasonId}`
24
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/mythic-keystone-profile/season/${encodeURIComponent(seasonId)}`
25
25
  };
26
26
  }
27
27
  export { characterMythicKeystoneProfileIndex, characterMythicKeystoneSeasonDetails };
@@ -1 +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;CAC7D;AACF;;;;;;;;;AAUA,SAAgB,qCACd,WACA,eACA,UACwD;CACxD,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,kCAAkC;CAC/F;AACF"}
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/${encodeURIComponent(realmSlug)}/${encodeURIComponent(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/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/mythic-keystone-profile/season/${encodeURIComponent(seasonId)}`,\n };\n}\n"],"mappings":";;;;;;AAWA,SAAgB,oCACd,WACA,eACuD;CACvD,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACrG;AACF;;;;;;;;;AAUA,SAAgB,qCACd,WACA,eACA,UACwD;CACxD,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE,kCAAkC,mBAAmB,QAAQ;CAClK;AACF"}
@@ -7,7 +7,7 @@
7
7
  function characterProfessionsSummary(realmSlug, characterName) {
8
8
  return {
9
9
  namespace: "profile",
10
- path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/professions`
10
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/professions`
11
11
  };
12
12
  }
13
13
  export { characterProfessionsSummary };
@@ -1 +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,YAAY,EAAE;CAC3E;AACF"}
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/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/professions`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,4BACd,WACA,eAC+C;CAC/C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC,EAAE;CACnH;AACF"}
@@ -18,7 +18,7 @@
18
18
  function characterProfileStatus(realmSlug, characterName) {
19
19
  return {
20
20
  namespace: "profile",
21
- path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/status`
21
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/status`
22
22
  };
23
23
  }
24
24
  /**
@@ -30,7 +30,7 @@ function characterProfileStatus(realmSlug, characterName) {
30
30
  function characterProfileSummary(realmSlug, characterName) {
31
31
  return {
32
32
  namespace: "profile",
33
- path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}`
33
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}`
34
34
  };
35
35
  }
36
36
  export { characterProfileStatus, characterProfileSummary };
@@ -1 +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,YAAY,EAAE;CAC3E;AACF;;;;;;;AAQA,SAAgB,wBACd,WACA,eAC2C;CAC3C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,YAAY;CACzE;AACF"}
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/${encodeURIComponent(realmSlug)}/${encodeURIComponent(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/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}`,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmBA,SAAgB,uBACd,WACA,eAC0C;CAC1C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC,EAAE;CACnH;AACF;;;;;;;AAQA,SAAgB,wBACd,WACA,eAC2C;CAC3C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC;CACjH;AACF"}
@@ -8,7 +8,7 @@
8
8
  function characterPvpBracketStatistics(realmSlug, characterName, bracketId) {
9
9
  return {
10
10
  namespace: "profile",
11
- path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/pvp-bracket/${bracketId}`
11
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/pvp-bracket/${encodeURIComponent(bracketId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -19,7 +19,7 @@ function characterPvpBracketStatistics(realmSlug, characterName, bracketId) {
19
19
  function characterPvpSummary(realmSlug, characterName) {
20
20
  return {
21
21
  namespace: "profile",
22
- path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/pvp-summary`
22
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/pvp-summary`
23
23
  };
24
24
  }
25
25
  export { characterPvpBracketStatistics, characterPvpSummary };
@@ -1 +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,YAAY,EAAE,eAAe;CAC1F;AACF;;;;;;AAOA,SAAgB,oBAAoB,WAAmB,eAA8D;CACnH,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,YAAY,EAAE;CAC3E;AACF"}
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/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/pvp-bracket/${encodeURIComponent(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/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/pvp-summary`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,8BACd,WACA,eACA,WACiD;CACjD,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC,EAAE,eAAe,mBAAmB,SAAS;CAC9J;AACF;;;;;;AAOA,SAAgB,oBAAoB,WAAmB,eAA8D;CACnH,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,cAAc,YAAY,CAAC,EAAE;CACnH;AACF"}
@@ -7,7 +7,7 @@
7
7
  function characterCompletedQuests(realmSlug, characterName) {
8
8
  return {
9
9
  namespace: "profile",
10
- path: `/profile/wow/character/${realmSlug}/${characterName}/quests/completed`
10
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/quests/completed`
11
11
  };
12
12
  }
13
13
  /**
@@ -18,7 +18,7 @@ function characterCompletedQuests(realmSlug, characterName) {
18
18
  function characterQuests(realmSlug, characterName) {
19
19
  return {
20
20
  namespace: "profile",
21
- path: `/profile/wow/character/${realmSlug}/${characterName}/quests`
21
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/quests`
22
22
  };
23
23
  }
24
24
  export { characterCompletedQuests, characterQuests };
@@ -1 +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;CAC7D;AACF;;;;;;AAOA,SAAgB,gBAAgB,WAAmB,eAA0D;CAC3G,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc;CAC7D;AACF"}
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/${encodeURIComponent(realmSlug)}/${encodeURIComponent(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/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/quests`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,yBACd,WACA,eAC4C;CAC5C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACrG;AACF;;;;;;AAOA,SAAgB,gBAAgB,WAAmB,eAA0D;CAC3G,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACrG;AACF"}
@@ -7,7 +7,7 @@
7
7
  function characterReputationsSummary(realmSlug, characterName) {
8
8
  return {
9
9
  namespace: "profile",
10
- path: `/profile/wow/character/${realmSlug}/${characterName}/reputations`
10
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/reputations`
11
11
  };
12
12
  }
13
13
  export { characterReputationsSummary };
@@ -1 +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;CAC7D;AACF"}
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/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName)}/reputations`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,4BACd,WACA,eAC+C;CAC/C,OAAO;EACL,WAAW;EACX,MAAM,0BAA0B,mBAAmB,SAAS,EAAE,GAAG,mBAAmB,aAAa,EAAE;CACrG;AACF"}
@@ -7,7 +7,7 @@
7
7
  function characterSoulbinds(realmSlug, characterName) {
8
8
  return {
9
9
  namespace: "profile",
10
- path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/soulbinds`
10
+ path: `/profile/wow/character/${encodeURIComponent(realmSlug)}/${encodeURIComponent(characterName.toLowerCase())}/soulbinds`
11
11
  };
12
12
  }
13
13
  export { characterSoulbinds };