@blizzard-api/wow 3.0.6 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/dist/account-profile/index.d.ts +2 -0
  2. package/dist/account-profile/index.js +104 -0
  3. package/dist/account-profile/index.js.map +1 -0
  4. package/dist/achievements/index.d.ts +2 -0
  5. package/dist/achievements/index.js +61 -0
  6. package/dist/achievements/index.js.map +1 -0
  7. package/dist/auction-house/index.d.ts +2 -0
  8. package/dist/auction-house/index.js +27 -0
  9. package/dist/auction-house/index.js.map +1 -0
  10. package/dist/azerite-essence/index.d.ts +2 -0
  11. package/dist/azerite-essence/index.js +54 -0
  12. package/dist/azerite-essence/index.js.map +1 -0
  13. package/dist/character-achievements/index.d.ts +2 -0
  14. package/dist/character-achievements/index.js +28 -0
  15. package/dist/character-achievements/index.js.map +1 -0
  16. package/dist/character-appearance/index.d.ts +2 -0
  17. package/dist/character-appearance/index.js +16 -0
  18. package/dist/character-appearance/index.js.map +1 -0
  19. package/dist/character-collections/index.d.ts +2 -0
  20. package/dist/character-collections/index.js +72 -0
  21. package/dist/character-collections/index.js.map +1 -0
  22. package/dist/character-encounters/index.d.ts +2 -0
  23. package/dist/character-encounters/index.js +39 -0
  24. package/dist/character-encounters/index.js.map +1 -0
  25. package/dist/character-equipment/index.d.ts +2 -0
  26. package/dist/character-equipment/index.js +16 -0
  27. package/dist/character-equipment/index.js.map +1 -0
  28. package/dist/character-hunter-pets/index.d.ts +2 -0
  29. package/dist/character-hunter-pets/index.js +17 -0
  30. package/dist/character-hunter-pets/index.js.map +1 -0
  31. package/dist/character-media/index.d.ts +2 -0
  32. package/dist/character-media/index.js +16 -0
  33. package/dist/character-media/index.js.map +1 -0
  34. package/dist/character-mythic-keystone-profile/index.d.ts +2 -0
  35. package/dist/character-mythic-keystone-profile/index.js +30 -0
  36. package/dist/character-mythic-keystone-profile/index.js.map +1 -0
  37. package/dist/character-professions/index.d.ts +2 -0
  38. package/dist/character-professions/index.js +16 -0
  39. package/dist/character-professions/index.js.map +1 -0
  40. package/dist/character-profile/index.d.ts +2 -0
  41. package/dist/character-profile/index.js +39 -0
  42. package/dist/character-profile/index.js.map +1 -0
  43. package/dist/character-pvp/index.d.ts +2 -0
  44. package/dist/character-pvp/index.js +28 -0
  45. package/dist/character-pvp/index.js.map +1 -0
  46. package/dist/character-quests/index.d.ts +2 -0
  47. package/dist/character-quests/index.js +27 -0
  48. package/dist/character-quests/index.js.map +1 -0
  49. package/dist/character-reputations/index.d.ts +2 -0
  50. package/dist/character-reputations/index.js +16 -0
  51. package/dist/character-reputations/index.js.map +1 -0
  52. package/dist/character-soulbinds/index.d.ts +2 -0
  53. package/dist/character-soulbinds/index.js +16 -0
  54. package/dist/character-soulbinds/index.js.map +1 -0
  55. package/dist/character-specializations/index.d.ts +2 -0
  56. package/dist/character-specializations/index.js +16 -0
  57. package/dist/character-specializations/index.js.map +1 -0
  58. package/dist/character-statistics/index.d.ts +2 -0
  59. package/dist/character-statistics/index.js +16 -0
  60. package/dist/character-statistics/index.js.map +1 -0
  61. package/dist/character-titles/index.d.ts +2 -0
  62. package/dist/character-titles/index.js +16 -0
  63. package/dist/character-titles/index.js.map +1 -0
  64. package/dist/connected-realm/index.d.ts +2 -0
  65. package/dist/connected-realm/index.js +44 -0
  66. package/dist/connected-realm/index.js.map +1 -0
  67. package/dist/covenant/index.d.ts +2 -0
  68. package/dist/covenant/index.js +80 -0
  69. package/dist/covenant/index.js.map +1 -0
  70. package/dist/creature/index.d.ts +2 -0
  71. package/dist/creature/index.js +97 -0
  72. package/dist/creature/index.js.map +1 -0
  73. package/dist/guild/index.d.ts +2 -0
  74. package/dist/guild/index.js +50 -0
  75. package/dist/guild/index.js.map +1 -0
  76. package/dist/guild-crest/index.d.ts +2 -0
  77. package/dist/guild-crest/index.js +38 -0
  78. package/dist/guild-crest/index.js.map +1 -0
  79. package/dist/heirloom/index.d.ts +2 -0
  80. package/dist/heirloom/index.js +27 -0
  81. package/dist/heirloom/index.js.map +1 -0
  82. package/dist/housing-decor/index.d.ts +2 -0
  83. package/dist/housing-decor/index.js +155 -0
  84. package/dist/housing-decor/index.js.map +1 -0
  85. package/dist/index--WL1Ol2r.d.ts +192 -0
  86. package/dist/index-0hpJYoWw.d.ts +86 -0
  87. package/dist/index-2xjdPrIp.d.ts +34 -0
  88. package/dist/index-8go905Or2.d.ts +46 -0
  89. package/dist/index-B-v4jmT8.d.ts +120 -0
  90. package/dist/index-BAx6xlRe.d.ts +43 -0
  91. package/dist/index-BJYdOuJB2.d.ts +21 -0
  92. package/dist/index-BM5t9AbX2.d.ts +72 -0
  93. package/dist/index-BOz0BCUN2.d.ts +233 -0
  94. package/dist/index-BUSzkCHP2.d.ts +38 -0
  95. package/dist/index-BWGWNZX7.d.ts +62 -0
  96. package/dist/index-BXawY6VA2.d.ts +150 -0
  97. package/dist/index-B_OrLUY42.d.ts +102 -0
  98. package/dist/index-BcKDDvwF.d.ts +85 -0
  99. package/dist/index-Bd_PavJU.d.ts +56 -0
  100. package/dist/index-BgkVcJkr2.d.ts +60 -0
  101. package/dist/index-BuORTLmA.d.ts +29 -0
  102. package/dist/index-C2BXkcO8.d.ts +36 -0
  103. package/dist/index-C9JT3jCN2.d.ts +77 -0
  104. package/dist/index-CE4iGLJf2.d.ts +128 -0
  105. package/dist/index-CH3CudPP.d.ts +91 -0
  106. package/dist/index-CJSqSpru.d.ts +145 -0
  107. package/dist/index-CP1gTrDv.d.ts +312 -0
  108. package/dist/index-CQXTvcKu2.d.ts +72 -0
  109. package/dist/index-CS_QQdEk.d.ts +22 -0
  110. package/dist/index-CWFif_SP2.d.ts +31 -0
  111. package/dist/index-CZy1t3WK.d.ts +160 -0
  112. package/dist/index-ChVDi11Z.d.ts +54 -0
  113. package/dist/index-CmJhDVVk.d.ts +157 -0
  114. package/dist/index-Cry2-cm82.d.ts +123 -0
  115. package/dist/index-Cto5KQ-A2.d.ts +71 -0
  116. package/dist/index-D9u-Oxk6.d.ts +69 -0
  117. package/dist/index-DDHIN-u0.d.ts +36 -0
  118. package/dist/index-DJZZaqMF.d.ts +66 -0
  119. package/dist/index-DLD2tbdk.d.ts +68 -0
  120. package/dist/index-DScltfEW.d.ts +89 -0
  121. package/dist/index-DZqv9GTd.d.ts +125 -0
  122. package/dist/index-DiU4f1cd2.d.ts +45 -0
  123. package/dist/index-DlkM3Nrw2.d.ts +45 -0
  124. package/dist/index-Do1l3j1C.d.ts +283 -0
  125. package/dist/index-DpfeUoRy.d.ts +149 -0
  126. package/dist/index-DvzdYkdL.d.ts +89 -0
  127. package/dist/index-DwuFoDTp.d.ts +159 -0
  128. package/dist/index-DxEXkR_n.d.ts +81 -0
  129. package/dist/index-Dzfv2QaX.d.ts +65 -0
  130. package/dist/index-J46u_PSy2.d.ts +117 -0
  131. package/dist/index-LhUh1Lk5.d.ts +30 -0
  132. package/dist/index-SfMQ7bBi2.d.ts +86 -0
  133. package/dist/index-Xyv-CG_n.d.ts +160 -0
  134. package/dist/index-ZAJGdEvm.d.ts +102 -0
  135. package/dist/index-fbBIJXcV.d.ts +69 -0
  136. package/dist/index-fn_f7xiC.d.ts +21 -0
  137. package/dist/index-h17WWDmt.d.ts +118 -0
  138. package/dist/index-m4fmIRKg.d.ts +35 -0
  139. package/dist/index.d.ts +69 -4738
  140. package/dist/index.js +68 -2137
  141. package/dist/index.js.map +1 -1
  142. package/dist/item/index.d.ts +2 -0
  143. package/dist/item/index.js +98 -0
  144. package/dist/item/index.js.map +1 -0
  145. package/dist/journal/index.d.ts +2 -0
  146. package/dist/journal/index.js +96 -0
  147. package/dist/journal/index.js.map +1 -0
  148. package/dist/media-search/index.d.ts +2 -0
  149. package/dist/media-search/index.js +22 -0
  150. package/dist/media-search/index.js.map +1 -0
  151. package/dist/modified-crafting/index.d.ts +2 -0
  152. package/dist/modified-crafting/index.js +58 -0
  153. package/dist/modified-crafting/index.js.map +1 -0
  154. package/dist/mount/index.d.ts +2 -0
  155. package/dist/mount/index.js +43 -0
  156. package/dist/mount/index.js.map +1 -0
  157. package/dist/mythic-keystone-affix/index.d.ts +2 -0
  158. package/dist/mythic-keystone-affix/index.js +38 -0
  159. package/dist/mythic-keystone-affix/index.js.map +1 -0
  160. package/dist/mythic-keystone-dungeon/index.d.ts +2 -0
  161. package/dist/mythic-keystone-dungeon/index.js +79 -0
  162. package/dist/mythic-keystone-dungeon/index.js.map +1 -0
  163. package/dist/mythic-keystone-leaderboard/index.d.ts +2 -0
  164. package/dist/mythic-keystone-leaderboard/index.js +30 -0
  165. package/dist/mythic-keystone-leaderboard/index.js.map +1 -0
  166. package/dist/mythic-raid-leaderboard/index.d.ts +2 -0
  167. package/dist/mythic-raid-leaderboard/index.js +18 -0
  168. package/dist/mythic-raid-leaderboard/index.js.map +1 -0
  169. package/dist/pet/index.d.ts +2 -0
  170. package/dist/pet/index.js +70 -0
  171. package/dist/pet/index.js.map +1 -0
  172. package/dist/playable-class/index.d.ts +2 -0
  173. package/dist/playable-class/index.js +49 -0
  174. package/dist/playable-class/index.js.map +1 -0
  175. package/dist/playable-race/index.d.ts +2 -0
  176. package/dist/playable-race/index.js +27 -0
  177. package/dist/playable-race/index.js.map +1 -0
  178. package/dist/playable-specialization/index.d.ts +2 -0
  179. package/dist/playable-specialization/index.js +38 -0
  180. package/dist/playable-specialization/index.js.map +1 -0
  181. package/dist/power-type/index.d.ts +2 -0
  182. package/dist/power-type/index.js +27 -0
  183. package/dist/power-type/index.js.map +1 -0
  184. package/dist/profession/index.d.ts +2 -0
  185. package/dist/profession/index.js +72 -0
  186. package/dist/profession/index.js.map +1 -0
  187. package/dist/pvp-season/index.d.ts +2 -0
  188. package/dist/pvp-season/index.js +61 -0
  189. package/dist/pvp-season/index.js.map +1 -0
  190. package/dist/pvp-tier/index.d.ts +2 -0
  191. package/dist/pvp-tier/index.js +38 -0
  192. package/dist/pvp-tier/index.js.map +1 -0
  193. package/dist/quest/index.d.ts +2 -0
  194. package/dist/quest/index.js +90 -0
  195. package/dist/quest/index.js.map +1 -0
  196. package/dist/realm/index.d.ts +24 -0
  197. package/dist/realm/index.js +43 -0
  198. package/dist/realm/index.js.map +1 -0
  199. package/dist/region/index.d.ts +2 -0
  200. package/dist/region/index.js +27 -0
  201. package/dist/region/index.js.map +1 -0
  202. package/dist/reputations/index.d.ts +2 -0
  203. package/dist/reputations/index.js +48 -0
  204. package/dist/reputations/index.js.map +1 -0
  205. package/dist/spell/index.d.ts +2 -0
  206. package/dist/spell/index.js +44 -0
  207. package/dist/spell/index.js.map +1 -0
  208. package/dist/talent/index.d.ts +2 -0
  209. package/dist/talent/index.js +81 -0
  210. package/dist/talent/index.js.map +1 -0
  211. package/dist/tech-talent/index.d.ts +2 -0
  212. package/dist/tech-talent/index.js +59 -0
  213. package/dist/tech-talent/index.js.map +1 -0
  214. package/dist/title/index.d.ts +2 -0
  215. package/dist/title/index.js +27 -0
  216. package/dist/title/index.js.map +1 -0
  217. package/dist/toy/index.d.ts +2 -0
  218. package/dist/toy/index.js +27 -0
  219. package/dist/toy/index.js.map +1 -0
  220. package/dist/types-Z0ZgMUXA.d.ts +79 -0
  221. package/dist/wow-token/index.d.ts +2 -0
  222. package/dist/wow-token/index.js +16 -0
  223. package/dist/wow-token/index.js.map +1 -0
  224. package/package.json +16 -7
@@ -0,0 +1,2 @@
1
+ import { a as accountProfileSummary, c as protectedCharacterProfileSummary, i as accountPetsCollectionSummary, n as accountHeirloomsCollectionSummary, o as accountToysCollectionSummary, r as accountMountsCollectionSummary, s as accountTransmogsCollectionSummary, t as accountCollectionsIndex } from "../index--WL1Ol2r.js";
2
+ export { accountCollectionsIndex, accountHeirloomsCollectionSummary, accountMountsCollectionSummary, accountPetsCollectionSummary, accountProfileSummary, accountToysCollectionSummary, accountTransmogsCollectionSummary, protectedCharacterProfileSummary };
@@ -0,0 +1,104 @@
1
+ //#region src/account-profile/index.ts
2
+ const accountProfileBase = "/profile/user/wow";
3
+ /**
4
+ * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
5
+ * @param token The OAuth 2.0 access token to use for authentication.
6
+ * @returns an index of collection types for an account.
7
+ */
8
+ function accountCollectionsIndex(token) {
9
+ return {
10
+ namespace: "profile",
11
+ path: `${accountProfileBase}/collections`,
12
+ token
13
+ };
14
+ }
15
+ /**
16
+ * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
17
+ * @param token The OAuth 2.0 access token to use for authentication.
18
+ * @returns a summary of the heirlooms an account has obtained.
19
+ */
20
+ function accountHeirloomsCollectionSummary(token) {
21
+ return {
22
+ namespace: "profile",
23
+ path: `${accountProfileBase}/collections/heirlooms`,
24
+ token
25
+ };
26
+ }
27
+ /**
28
+ * 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}
29
+ * @param token The OAuth 2.0 access token to use for authentication.
30
+ * @returns a summary of the mounts an account has obtained.
31
+ */
32
+ function accountMountsCollectionSummary(token) {
33
+ return {
34
+ namespace: "profile",
35
+ path: `${accountProfileBase}/collections/mounts`,
36
+ token
37
+ };
38
+ }
39
+ /**
40
+ * 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}
41
+ * @param token The OAuth 2.0 access token to use for authentication.
42
+ * @returns a summary of the battle pets an account has obtained.
43
+ */
44
+ function accountPetsCollectionSummary(token) {
45
+ return {
46
+ namespace: "profile",
47
+ path: `${accountProfileBase}/collections/pets`,
48
+ token
49
+ };
50
+ }
51
+ /**
52
+ * 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}
53
+ * @param token The OAuth 2.0 access token to use for authentication.
54
+ * @returns a profile summary for an account.
55
+ */
56
+ function accountProfileSummary(token) {
57
+ return {
58
+ namespace: "profile",
59
+ path: `${accountProfileBase}`,
60
+ token
61
+ };
62
+ }
63
+ /**
64
+ * 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}
65
+ * @param token The OAuth 2.0 access token to use for authentication.
66
+ * @returns a summary of the toys an account has obtained.
67
+ */
68
+ function accountToysCollectionSummary(token) {
69
+ return {
70
+ namespace: "profile",
71
+ path: `${accountProfileBase}/collections/toys`,
72
+ token
73
+ };
74
+ }
75
+ /**
76
+ * 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}
77
+ * @param token The OAuth 2.0 access token to use for authentication.
78
+ * @returns a summary of the transmog unlocks an account has obtained.
79
+ */
80
+ function accountTransmogsCollectionSummary(token) {
81
+ return {
82
+ namespace: "profile",
83
+ path: `${accountProfileBase}/collections/transmogs`,
84
+ token
85
+ };
86
+ }
87
+ /**
88
+ * 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}
89
+ * @param realmId The realm ID.
90
+ * @param characterId The character ID.
91
+ * @param token The OAuth 2.0 access token to use for authentication.
92
+ * @returns a protected profile summary for a character.
93
+ */
94
+ function protectedCharacterProfileSummary(realmId, characterId, token) {
95
+ return {
96
+ namespace: "profile",
97
+ path: `${accountProfileBase}/protected-character/${realmId}-${characterId}`,
98
+ token
99
+ };
100
+ }
101
+ //#endregion
102
+ export { accountCollectionsIndex, accountHeirloomsCollectionSummary, accountMountsCollectionSummary, accountPetsCollectionSummary, accountProfileSummary, accountToysCollectionSummary, accountTransmogsCollectionSummary, protectedCharacterProfileSummary };
103
+
104
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/account-profile/index.ts"],"sourcesContent":["import type { ProtectedResource } from '@blizzard-api/core';\nimport type {\n AccountCollectionsIndexResponse,\n AccountHeirloomsCollectionSummaryResponse,\n AccountMountsCollectionSummaryResponse,\n AccountPetsCollectionSummaryResponse,\n AccountProfileSummaryResponse,\n AccountToysCollectionSummaryResponse,\n AccountTransmogsCollectionSummaryResponse,\n ProtectedCharacterProfileSummaryResponse,\n} from './types';\n\nconst accountProfileBase = '/profile/user/wow';\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns an index of collection types for an account.\n */\nexport function accountCollectionsIndex(token: string): ProtectedResource<AccountCollectionsIndexResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/collections`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the heirlooms an account has obtained.\n */\nexport function accountHeirloomsCollectionSummary(\n token: string,\n): ProtectedResource<AccountHeirloomsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/collections/heirlooms`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the mounts an account has obtained.\n */\nexport function accountMountsCollectionSummary(\n token: string,\n): ProtectedResource<AccountMountsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/collections/mounts`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the battle pets an account has obtained.\n */\nexport function accountPetsCollectionSummary(token: string): ProtectedResource<AccountPetsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/collections/pets`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a profile summary for an account.\n */\nexport function accountProfileSummary(token: string): ProtectedResource<AccountProfileSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the toys an account has obtained.\n */\nexport function accountToysCollectionSummary(token: string): ProtectedResource<AccountToysCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/collections/toys`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a summary of the transmog unlocks an account has obtained.\n */\nexport function accountTransmogsCollectionSummary(\n token: string,\n): ProtectedResource<AccountTransmogsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/collections/transmogs`,\n token,\n };\n}\n\n/**\n * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}\n * @param realmId The realm ID.\n * @param characterId The character ID.\n * @param token The OAuth 2.0 access token to use for authentication.\n * @returns a protected profile summary for a character.\n */\nexport function protectedCharacterProfileSummary(\n realmId: number,\n characterId: number,\n token: string,\n): ProtectedResource<ProtectedCharacterProfileSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${accountProfileBase}/protected-character/${realmId}-${characterId}`,\n token,\n };\n}\n"],"mappings":";AAYA,MAAM,qBAAqB;;;;;;AAO3B,SAAgB,wBAAwB,OAAmE;AACzG,QAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB;EAC5B;EACD;;;;;;;AAQH,SAAgB,kCACd,OAC8D;AAC9D,QAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB;EAC5B;EACD;;;;;;;AAQH,SAAgB,+BACd,OAC2D;AAC3D,QAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB;EAC5B;EACD;;;;;;;AAQH,SAAgB,6BAA6B,OAAwE;AACnH,QAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB;EAC5B;EACD;;;;;;;AAQH,SAAgB,sBAAsB,OAAiE;AACrG,QAAO;EACL,WAAW;EACX,MAAM,GAAG;EACT;EACD;;;;;;;AAQH,SAAgB,6BAA6B,OAAwE;AACnH,QAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB;EAC5B;EACD;;;;;;;AAQH,SAAgB,kCACd,OAC8D;AAC9D,QAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB;EAC5B;EACD;;;;;;;;;AAUH,SAAgB,iCACd,SACA,aACA,OAC6D;AAC7D,QAAO;EACL,WAAW;EACX,MAAM,GAAG,mBAAmB,uBAAuB,QAAQ,GAAG;EAC9D;EACD"}
@@ -0,0 +1,2 @@
1
+ import { a as achievementMedia, i as achievementIndex, n as achievementCategory, r as achievementCategoryIndex, t as achievement } from "../index-DpfeUoRy.js";
2
+ export { achievement, achievementCategory, achievementCategoryIndex, achievementIndex, achievementMedia };
@@ -0,0 +1,61 @@
1
+ import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
2
+ //#region src/achievements/index.ts
3
+ const achievementBase = `${wowBasePath}/achievement`;
4
+ const achievementCategoryBase = `${wowBasePath}/achievement-category`;
5
+ /**
6
+ * Get an achievement by ID.
7
+ * @param achievementId The achievement ID.
8
+ * @returns The achievement. See {@link AchievementResponse}.
9
+ */
10
+ function achievement(achievementId) {
11
+ return {
12
+ namespace: "static",
13
+ path: `${achievementBase}/${achievementId}`
14
+ };
15
+ }
16
+ /**
17
+ * Get an achievement category by ID.
18
+ * @param achievementCategoryId The achievement category ID.
19
+ * @returns The achievement category. See {@link AchievementCategoryResponse}.
20
+ */
21
+ function achievementCategory(achievementCategoryId) {
22
+ return {
23
+ namespace: "static",
24
+ path: `${achievementCategoryBase}/${achievementCategoryId}`
25
+ };
26
+ }
27
+ /**
28
+ * Get an achievement category index.
29
+ * @returns The achievement category index. See {@link AchievementCategoryIndexResponse}.
30
+ */
31
+ function achievementCategoryIndex() {
32
+ return {
33
+ namespace: "static",
34
+ path: `${achievementCategoryBase}/index`
35
+ };
36
+ }
37
+ /**
38
+ * Get an achievement index.
39
+ * @returns The achievement index. See {@link AchievementIndexResponse}.
40
+ */
41
+ function achievementIndex() {
42
+ return {
43
+ namespace: "static",
44
+ path: `${achievementBase}/index`
45
+ };
46
+ }
47
+ /**
48
+ * Get achievement media by ID.
49
+ * @param achievementId The achievement ID.
50
+ * @returns The achievement media. See {@link AchievementMediaResponse}.
51
+ */
52
+ function achievementMedia(achievementId) {
53
+ return {
54
+ namespace: "static",
55
+ path: `${wowMediaBasePath}/achievement/${achievementId}`
56
+ };
57
+ }
58
+ //#endregion
59
+ export { achievement, achievementCategory, achievementCategoryIndex, achievementIndex, achievementMedia };
60
+
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;AAChF,QAAO;EACL,WAAW;EACX,MAAM,GAAG,gBAAgB,GAAG;EAC7B;;;;;;;AAOH,SAAgB,oBAAoB,uBAAsE;AACxG,QAAO;EACL,WAAW;EACX,MAAM,GAAG,wBAAwB,GAAG;EACrC;;;;;;AAMH,SAAgB,2BAAuE;AACrF,QAAO;EACL,WAAW;EACX,MAAM,GAAG,wBAAwB;EAClC;;;;;;AAMH,SAAgB,mBAAuD;AACrE,QAAO;EACL,WAAW;EACX,MAAM,GAAG,gBAAgB;EAC1B;;;;;;;AAOH,SAAgB,iBAAiB,eAA2D;AAC1F,QAAO;EAAE,WAAW;EAAU,MAAM,GAAG,iBAAiB,eAAe;EAAiB"}
@@ -0,0 +1,2 @@
1
+ import { n as commodities, t as auctions } from "../index-D9u-Oxk6.js";
2
+ export { auctions, commodities };
@@ -0,0 +1,27 @@
1
+ import { wowBasePath } from "@blizzard-api/core";
2
+ //#region src/auction-house/index.ts
3
+ /**
4
+ * Get auction house data for a connected realm.
5
+ * @param connectedRealmId The ID of the connected realm.
6
+ * @returns The auction house data. See {@link AuctionHouseResponse}.
7
+ */
8
+ function auctions(connectedRealmId) {
9
+ return {
10
+ namespace: "dynamic",
11
+ path: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions`
12
+ };
13
+ }
14
+ /**
15
+ * Get auction house data for all connected realms.
16
+ * @returns The auction house data. See {@link AuctionHouseResponse}.
17
+ */
18
+ function commodities() {
19
+ return {
20
+ namespace: "dynamic",
21
+ path: `${wowBasePath}/auctions/commodities`
22
+ };
23
+ }
24
+ //#endregion
25
+ export { auctions, commodities };
26
+
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;AACjF,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB,iBAAiB;EAC1D;;;;;;AAMH,SAAgB,cAAyD;AACvE,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB"}
@@ -0,0 +1,2 @@
1
+ import { i as azeriteEssenceSearch, n as azeriteEssenceIndex, r as azeriteEssenceMedia, t as azeriteEssence } from "../index-DvzdYkdL.js";
2
+ export { azeriteEssence, azeriteEssenceIndex, azeriteEssenceMedia, azeriteEssenceSearch };
@@ -0,0 +1,54 @@
1
+ import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from "@blizzard-api/core";
2
+ //#region src/azerite-essence/index.ts
3
+ /**
4
+ * Get an azerite essence by ID.
5
+ * @param azeriteEssenceId The azerite essence ID.
6
+ * @returns The azerite essence. See {@link AzeriteEssenceResponse}.
7
+ */
8
+ function azeriteEssence(azeriteEssenceId) {
9
+ return {
10
+ namespace: "static",
11
+ path: `${wowBasePath}/azerite-essence/${azeriteEssenceId}`
12
+ };
13
+ }
14
+ /**
15
+ * Get an azerite essence index.
16
+ * @returns The azerite essence index. See {@link AzeriteEssenceIndexResponse}.
17
+ */
18
+ function azeriteEssenceIndex() {
19
+ return {
20
+ namespace: "static",
21
+ path: `${wowBasePath}/azerite-essence/index`
22
+ };
23
+ }
24
+ /**
25
+ * Get azerite essence media by ID.
26
+ * @param azeriteEssenceId The azerite essence ID.
27
+ * @returns The azerite essence media. See {@link AzeriteEssenceMediaResponse}.
28
+ */
29
+ function azeriteEssenceMedia(azeriteEssenceId) {
30
+ return {
31
+ namespace: "static",
32
+ path: `${wowMediaBasePath}/azerite-essence/${azeriteEssenceId}`
33
+ };
34
+ }
35
+ /**
36
+ * Search for azerite essences.
37
+ * @param options The search parameters. See {@link AzeriteEssenceSearchParameters}.
38
+ * @returns The search results. See {@link AzeriteEssenceSearchResponse}.
39
+ */
40
+ function azeriteEssenceSearch(options) {
41
+ return {
42
+ namespace: "static",
43
+ parameters: {
44
+ _page: options._page,
45
+ "allowed_specializations.id": options["allowed_specializations.id"],
46
+ orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
47
+ },
48
+ path: `${wowSearchBasePath}/azerite-essence`
49
+ };
50
+ }
51
+ //#endregion
52
+ export { azeriteEssence, azeriteEssenceIndex, azeriteEssenceMedia, azeriteEssenceSearch };
53
+
54
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;AACzF,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB;EACzC;;;;;;AAMH,SAAgB,sBAA6D;AAC3E,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,oBAAoB,kBAAiE;AACnG,QAAO;EAAE,WAAW;EAAU,MAAM,GAAG,iBAAiB,mBAAmB;EAAoB;;;;;;;AAOjG,SAAgB,qBACd,SACwE;AACxE,QAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;GACf,8BAA8B,QAAQ;GACtC,SAAS,MAAM,QAAQ,QAAQ,QAAQ,GAAG,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ;GAC/E;EACD,MAAM,GAAG,kBAAkB;EAC5B"}
@@ -0,0 +1,2 @@
1
+ import { n as characterAchievementsSummary, t as characterAchievementStatistics } from "../index-DScltfEW.js";
2
+ export { characterAchievementStatistics, characterAchievementsSummary };
@@ -0,0 +1,28 @@
1
+ //#region src/character-achievements/index.ts
2
+ const basePath = "/profile/wow/character";
3
+ /**
4
+ * @param realmSlug The slug of the realm.
5
+ * @param characterName The lowercase name of the character.
6
+ * @returns a summary of the achievements a character has completed.
7
+ */
8
+ function characterAchievementsSummary(realmSlug, characterName) {
9
+ return {
10
+ namespace: "profile",
11
+ path: `${basePath}/${realmSlug}/${characterName.toLowerCase()}/achievements`
12
+ };
13
+ }
14
+ /**
15
+ * @param realmSlug The slug of the realm.
16
+ * @param characterName The lowercase name of the character.
17
+ * @returns a character's statistics as they pertain to achievements.
18
+ */
19
+ function characterAchievementStatistics(realmSlug, characterName) {
20
+ return {
21
+ namespace: "profile",
22
+ path: `${basePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`
23
+ };
24
+ }
25
+ //#endregion
26
+ export { characterAchievementStatistics, characterAchievementsSummary };
27
+
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/character-achievements/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterAchievementsSummaryResponse, CharacterAchievementStatisticsResponse } from './types';\n\nconst basePath = '/profile/wow/character';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the achievements a character has completed.\n */\nexport function characterAchievementsSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterAchievementsSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName.toLowerCase()}/achievements`,\n };\n}\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a character's statistics as they pertain to achievements.\n */\nexport function characterAchievementStatistics(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterAchievementStatisticsResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`,\n };\n}\n"],"mappings":";AAGA,MAAM,WAAW;;;;;;AAOjB,SAAgB,6BACd,WACA,eACgD;AAChD,QAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,aAAa,CAAC;EAC/D;;;;;;;AAQH,SAAgB,+BACd,WACA,eACkD;AAClD,QAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,aAAa,CAAC;EAC/D"}
@@ -0,0 +1,2 @@
1
+ import { t as characterAppearanceSummary } from "../index-DJZZaqMF.js";
2
+ export { characterAppearanceSummary };
@@ -0,0 +1,16 @@
1
+ //#region src/character-appearance/index.ts
2
+ /**
3
+ * @param realmSlug The slug of the realm.
4
+ * @param characterName The lowercase name of the character.
5
+ * @returns a summary of a character's appearance settings.
6
+ */
7
+ function characterAppearanceSummary(realmSlug, characterName) {
8
+ return {
9
+ namespace: "profile",
10
+ path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/appearance`
11
+ };
12
+ }
13
+ //#endregion
14
+ export { characterAppearanceSummary };
15
+
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;AACvC,QAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,aAAa,CAAC;EAC1E"}
@@ -0,0 +1,2 @@
1
+ import { a as characterToysCollectionSummary, i as characterPetsCollectionSummary, n as characterHeirloomsCollectionSummary, o as characterTransmogCollectionSummary, r as characterMountsCollectionSummary, t as characterCollectionsIndex } from "../index-B-v4jmT8.js";
2
+ export { characterCollectionsIndex, characterHeirloomsCollectionSummary, characterMountsCollectionSummary, characterPetsCollectionSummary, characterToysCollectionSummary, characterTransmogCollectionSummary };
@@ -0,0 +1,72 @@
1
+ //#region src/character-collections/index.ts
2
+ const basePath = "/profile/wow/character";
3
+ /**
4
+ * @param realmSlug The slug of the realm.
5
+ * @param characterName The lowercase name of the character.
6
+ * @returns an index of collection types for a character.
7
+ */
8
+ function characterCollectionsIndex(realmSlug, characterName) {
9
+ return {
10
+ namespace: "profile",
11
+ path: `${basePath}/${realmSlug}/${characterName}/collections`
12
+ };
13
+ }
14
+ /**
15
+ * @param realmSlug The slug of the realm.
16
+ * @param characterName The lowercase name of the character.
17
+ * @returns a summary of the heirlooms a character has obtained.
18
+ */
19
+ function characterHeirloomsCollectionSummary(realmSlug, characterName) {
20
+ return {
21
+ namespace: "profile",
22
+ path: `${basePath}/${realmSlug}/${characterName}/collections/heirlooms`
23
+ };
24
+ }
25
+ /**
26
+ * @param realmSlug The slug of the realm.
27
+ * @param characterName The lowercase name of the character.
28
+ * @returns a summary of the mounts a character has obtained.
29
+ */
30
+ function characterMountsCollectionSummary(realmSlug, characterName) {
31
+ return {
32
+ namespace: "profile",
33
+ path: `${basePath}/${realmSlug}/${characterName}/collections/mounts`
34
+ };
35
+ }
36
+ /**
37
+ * @param realmSlug The slug of the realm.
38
+ * @param characterName The lowercase name of the character.
39
+ * @returns a summary of the battle pets a character has obtained.
40
+ */
41
+ function characterPetsCollectionSummary(realmSlug, characterName) {
42
+ return {
43
+ namespace: "profile",
44
+ path: `${basePath}/${realmSlug}/${characterName}/collections/pets`
45
+ };
46
+ }
47
+ /**
48
+ * @param realmSlug The slug of the realm.
49
+ * @param characterName The lowercase name of the character.
50
+ * @returns a summary of the toys a character has obtained.
51
+ */
52
+ function characterToysCollectionSummary(realmSlug, characterName) {
53
+ return {
54
+ namespace: "profile",
55
+ path: `${basePath}/${realmSlug}/${characterName}/collections/toys`
56
+ };
57
+ }
58
+ /**
59
+ * @param realmSlug The slug of the realm.
60
+ * @param characterName The lowercase name of the character.
61
+ * @returns a summary of the transmog unlocks a character has obtained.
62
+ */
63
+ function characterTransmogCollectionSummary(realmSlug, characterName) {
64
+ return {
65
+ namespace: "profile",
66
+ path: `${basePath}/${realmSlug}/${characterName}/collections/transmogs`
67
+ };
68
+ }
69
+ //#endregion
70
+ export { characterCollectionsIndex, characterHeirloomsCollectionSummary, characterMountsCollectionSummary, characterPetsCollectionSummary, characterToysCollectionSummary, characterTransmogCollectionSummary };
71
+
72
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/character-collections/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type {\n CharacterCollectionsIndexResponse,\n CharacterHeirloomsCollectionSummaryResponse,\n CharacterMountsCollectionSummaryResponse,\n CharacterPetsCollectionSummaryResponse,\n CharacterToysCollectionSummaryResponse,\n CharacterTransmogCollectionSummaryResponse,\n} from './types';\n\nconst basePath = '/profile/wow/character';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns an index of collection types for a character.\n */\nexport function characterCollectionsIndex(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterCollectionsIndexResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName}/collections`,\n };\n}\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the heirlooms a character has obtained.\n */\nexport function characterHeirloomsCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterHeirloomsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName}/collections/heirlooms`,\n };\n}\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the mounts a character has obtained.\n */\nexport function characterMountsCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterMountsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName}/collections/mounts`,\n };\n}\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the battle pets a character has obtained.\n */\nexport function characterPetsCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterPetsCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName}/collections/pets`,\n };\n}\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the toys a character has obtained.\n */\nexport function characterToysCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterToysCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName}/collections/toys`,\n };\n}\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the transmog unlocks a character has obtained.\n */\nexport function characterTransmogCollectionSummary(\n realmSlug: string,\n characterName: string,\n): Resource<CharacterTransmogCollectionSummaryResponse> {\n return {\n namespace: 'profile',\n path: `${basePath}/${realmSlug}/${characterName}/collections/transmogs`,\n };\n}\n"],"mappings":";AAUA,MAAM,WAAW;;;;;;AAOjB,SAAgB,0BACd,WACA,eAC6C;AAC7C,QAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc;EACjD;;;;;;;AAQH,SAAgB,oCACd,WACA,eACuD;AACvD,QAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc;EACjD;;;;;;;AAQH,SAAgB,iCACd,WACA,eACoD;AACpD,QAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc;EACjD;;;;;;;AAQH,SAAgB,+BACd,WACA,eACkD;AAClD,QAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc;EACjD;;;;;;;AAQH,SAAgB,+BACd,WACA,eACkD;AAClD,QAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc;EACjD;;;;;;;AAQH,SAAgB,mCACd,WACA,eACsD;AACtD,QAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc;EACjD"}
@@ -0,0 +1,2 @@
1
+ import { n as characterEncountersSummary, r as characterRaids, t as characterDungeons } from "../index-0hpJYoWw.js";
2
+ export { characterDungeons, characterEncountersSummary, characterRaids };
@@ -0,0 +1,39 @@
1
+ //#region src/character-encounters/index.ts
2
+ const bathPase = "profile/wow/character";
3
+ /**
4
+ * @param realmSlug The slug of the realm.
5
+ * @param characterName The lowercase name of the character.
6
+ * @returns a summary of a character's completed dungeons.
7
+ */
8
+ function characterDungeons(realmSlug, characterName) {
9
+ return {
10
+ namespace: "profile",
11
+ path: `${bathPase}/${realmSlug}/${characterName.toLowerCase()}/encounters/dungeons`
12
+ };
13
+ }
14
+ /**
15
+ * @param realmSlug The slug of the realm.
16
+ * @param characterName The lowercase name of the character.
17
+ * @returns a summary of a character's encounters.
18
+ */
19
+ function characterEncountersSummary(realmSlug, characterName) {
20
+ return {
21
+ namespace: "profile",
22
+ path: `${bathPase}/${realmSlug}/${characterName.toLowerCase()}/encounters`
23
+ };
24
+ }
25
+ /**
26
+ * @param realmSlug The slug of the realm.
27
+ * @param characterName The lowercase name of the character.
28
+ * @returns a summary of a character's completed raids.
29
+ */
30
+ function characterRaids(realmSlug, characterName) {
31
+ return {
32
+ namespace: "profile",
33
+ path: `${bathPase}/${realmSlug}/${characterName.toLowerCase()}/encounters/raids`
34
+ };
35
+ }
36
+ //#endregion
37
+ export { characterDungeons, characterEncountersSummary, characterRaids };
38
+
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/character-encounters/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { CharacterDungeonsResponse, CharacterEncountersSummaryResponse, CharacterRaidsResponse } from './types';\n\nconst bathPase = 'profile/wow/character';\n\n/**\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of a character's completed dungeons.\n */\nexport function characterDungeons(realmSlug: string, characterName: string): Resource<CharacterDungeonsResponse> {\n return {\n namespace: 'profile',\n path: `${bathPase}/${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: `${bathPase}/${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: `${bathPase}/${realmSlug}/${characterName.toLowerCase()}/encounters/raids`,\n };\n}\n"],"mappings":";AAGA,MAAM,WAAW;;;;;;AAOjB,SAAgB,kBAAkB,WAAmB,eAA4D;AAC/G,QAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,aAAa,CAAC;EAC/D;;;;;;;AAQH,SAAgB,2BACd,WACA,eAC8C;AAC9C,QAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,aAAa,CAAC;EAC/D;;;;;;;AAQH,SAAgB,eAAe,WAAmB,eAAyD;AACzG,QAAO;EACL,WAAW;EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,aAAa,CAAC;EAC/D"}
@@ -0,0 +1,2 @@
1
+ import { t as characterEquipmentSummary } from "../index-Xyv-CG_n.js";
2
+ export { characterEquipmentSummary };
@@ -0,0 +1,16 @@
1
+ //#region src/character-equipment/index.ts
2
+ /**
3
+ * @param realmSlug The slug of the realm.
4
+ * @param characterName The lowercase name of the character.
5
+ * @returns a summary of the items equipped by a character.
6
+ */
7
+ function characterEquipmentSummary(realmSlug, characterName) {
8
+ return {
9
+ namespace: "profile",
10
+ path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/equipment`
11
+ };
12
+ }
13
+ //#endregion
14
+ export { characterEquipmentSummary };
15
+
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;AAC7C,QAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc,aAAa,CAAC;EAC1E"}
@@ -0,0 +1,2 @@
1
+ import { t as characterHunterPetsSummary } from "../index-LhUh1Lk5.js";
2
+ export { characterHunterPetsSummary };
@@ -0,0 +1,17 @@
1
+ //#region src/character-hunter-pets/index.ts
2
+ /**
3
+ * If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.
4
+ * @param realmSlug The slug of the realm.
5
+ * @param characterName The lowercase name of the character.
6
+ * @returns a summary of the character's hunter pets.
7
+ */
8
+ function characterHunterPetsSummary(realmSlug, characterName) {
9
+ return {
10
+ namespace: "profile",
11
+ path: `/profile/wow/character/${realmSlug}/${characterName}/hunter-pets`
12
+ };
13
+ }
14
+ //#endregion
15
+ export { characterHunterPetsSummary };
16
+
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;AAC9C,QAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc;EAC5D"}
@@ -0,0 +1,2 @@
1
+ import { t as characterMediaSummary } from "../index-CS_QQdEk.js";
2
+ export { characterMediaSummary };
@@ -0,0 +1,16 @@
1
+ //#region src/character-media/index.ts
2
+ /**
3
+ * @param realmSlug The slug of the realm.
4
+ * @param characterName The lowercase name of the character.
5
+ * @returns a summary of the media assets available for a character (such as an avatar render).
6
+ */
7
+ function characterMediaSummary(realmSlug, characterName) {
8
+ return {
9
+ namespace: "profile",
10
+ path: `/profile/wow/character/${realmSlug}/${characterName}/character-media`
11
+ };
12
+ }
13
+ //#endregion
14
+ export { characterMediaSummary };
15
+
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;AACzC,QAAO;EACL,WAAW;EACX,MAAM,0BAA0B,UAAU,GAAG,cAAc;EAC5D"}
@@ -0,0 +1,2 @@
1
+ import { n as characterMythicKeystoneSeasonDetails, t as characterMythicKeystoneProfileIndex } from "../index-Dzfv2QaX.js";
2
+ export { characterMythicKeystoneProfileIndex, characterMythicKeystoneSeasonDetails };
@@ -0,0 +1,30 @@
1
+ //#region src/character-mythic-keystone-profile/index.ts
2
+ /**
3
+ * @param realmSlug The slug of the realm.
4
+ * @param characterName The lowercase name of the character.
5
+ * @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.
6
+ */
7
+ function characterMythicKeystoneProfileIndex(realmSlug, characterName) {
8
+ return {
9
+ namespace: "profile",
10
+ path: `/profile/wow/character/${realmSlug}/${characterName}/mythic-keystone-profile`
11
+ };
12
+ }
13
+ /**
14
+ * Returns the Mythic Keystone season details for a character.
15
+ * Returns a 404 Not Found for characters that have not yet completed a Mythic Keystone dungeon for the specified season.
16
+ * @param realmSlug The slug of the realm.
17
+ * @param characterName The lowercase name of the character.
18
+ * @param seasonId The ID of the season.
19
+ * @returns the Mythic Keystone season details for a character.
20
+ */
21
+ function characterMythicKeystoneSeasonDetails(realmSlug, characterName, seasonId) {
22
+ return {
23
+ namespace: "profile",
24
+ path: `/profile/wow/character/${realmSlug}/${characterName}/mythic-keystone-profile/season/${seasonId}`
25
+ };
26
+ }
27
+ //#endregion
28
+ export { characterMythicKeystoneProfileIndex, characterMythicKeystoneSeasonDetails };
29
+
30
+ //# sourceMappingURL=index.js.map