@blizzard-api/wow 2.0.2 → 2.1.0-next.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 (442) hide show
  1. package/README.md +2 -2
  2. package/dist/account-profile/account-profile.d.ts +56 -0
  3. package/dist/account-profile/account-profile.js +3 -0
  4. package/dist/account-profile/account-profile.js.map +1 -0
  5. package/dist/account-profile/types.d.ts +138 -0
  6. package/dist/account-profile/types.js +3 -0
  7. package/dist/account-profile/types.js.map +1 -0
  8. package/dist/achievements/achievements.d.ts +34 -0
  9. package/dist/achievements/achievements.js +4 -0
  10. package/dist/achievements/achievements.js.map +1 -0
  11. package/dist/achievements/types.d.ts +70 -0
  12. package/dist/achievements/types.js +3 -0
  13. package/dist/achievements/types.js.map +1 -0
  14. package/dist/auction-house/auction-house.d.ts +17 -0
  15. package/dist/auction-house/auction-house.js +4 -0
  16. package/dist/auction-house/auction-house.js.map +1 -0
  17. package/dist/auction-house/types.d.ts +50 -0
  18. package/dist/auction-house/types.js +3 -0
  19. package/dist/auction-house/types.js.map +1 -0
  20. package/dist/azerite-essence/azerite-essence.d.ts +29 -0
  21. package/dist/azerite-essence/azerite-essence.js +4 -0
  22. package/dist/azerite-essence/azerite-essence.js.map +1 -0
  23. package/dist/azerite-essence/types.d.ts +57 -0
  24. package/dist/azerite-essence/types.js +3 -0
  25. package/dist/azerite-essence/types.js.map +1 -0
  26. package/dist/base.d.ts +115 -0
  27. package/dist/base.js +3 -0
  28. package/dist/base.js.map +1 -0
  29. package/dist/character-achievements/character-achievements.d.ts +18 -0
  30. package/dist/character-achievements/character-achievements.js +3 -0
  31. package/dist/character-achievements/character-achievements.js.map +1 -0
  32. package/dist/character-achievements/types.d.ts +56 -0
  33. package/dist/character-achievements/types.js +3 -0
  34. package/dist/character-achievements/types.js.map +1 -0
  35. package/dist/character-appearance/character-appearance.d.ts +12 -0
  36. package/dist/character-appearance/character-appearance.js +3 -0
  37. package/dist/character-appearance/character-appearance.js.map +1 -0
  38. package/dist/character-appearance/types.d.ts +53 -0
  39. package/dist/character-appearance/types.js +3 -0
  40. package/dist/character-appearance/types.js.map +1 -0
  41. package/dist/character-collections/character-collections.d.ts +42 -0
  42. package/dist/character-collections/character-collections.js +3 -0
  43. package/dist/character-collections/character-collections.js.map +1 -0
  44. package/dist/character-collections/types.d.ts +79 -0
  45. package/dist/character-collections/types.js +3 -0
  46. package/dist/character-collections/types.js.map +1 -0
  47. package/dist/character-encounters/character-encounters.d.ts +24 -0
  48. package/dist/character-encounters/character-encounters.js +3 -0
  49. package/dist/character-encounters/character-encounters.js.map +1 -0
  50. package/dist/character-encounters/types.d.ts +56 -0
  51. package/dist/character-encounters/types.js +3 -0
  52. package/dist/character-encounters/types.js.map +1 -0
  53. package/dist/character-equipment/character-equipment.d.ts +12 -0
  54. package/dist/character-equipment/character-equipment.js +3 -0
  55. package/dist/character-equipment/character-equipment.js.map +1 -0
  56. package/dist/character-equipment/types.d.ts +144 -0
  57. package/dist/character-equipment/types.js +3 -0
  58. package/dist/character-equipment/types.js.map +1 -0
  59. package/dist/character-hunter-pets/character-hunter-pets.d.ts +13 -0
  60. package/dist/character-hunter-pets/character-hunter-pets.js +3 -0
  61. package/dist/character-hunter-pets/character-hunter-pets.js.map +1 -0
  62. package/dist/character-hunter-pets/types.d.ts +19 -0
  63. package/dist/character-hunter-pets/types.js +3 -0
  64. package/dist/character-hunter-pets/types.js.map +1 -0
  65. package/dist/character-media/character-media.d.ts +12 -0
  66. package/dist/character-media/character-media.js +3 -0
  67. package/dist/character-media/character-media.js.map +1 -0
  68. package/dist/character-media/types.d.ts +12 -0
  69. package/dist/character-media/types.js +3 -0
  70. package/dist/character-media/types.js.map +1 -0
  71. package/dist/character-mythic-keystone-profile/character-mythic-keystone-profile.d.ts +21 -0
  72. package/dist/character-mythic-keystone-profile/character-mythic-keystone-profile.js +3 -0
  73. package/dist/character-mythic-keystone-profile/character-mythic-keystone-profile.js.map +1 -0
  74. package/dist/character-mythic-keystone-profile/types.d.ts +46 -0
  75. package/dist/character-mythic-keystone-profile/types.js +3 -0
  76. package/dist/character-mythic-keystone-profile/types.js.map +1 -0
  77. package/dist/character-professions/character-professions.d.ts +12 -0
  78. package/dist/character-professions/character-professions.js +3 -0
  79. package/dist/character-professions/character-professions.js.map +1 -0
  80. package/dist/character-professions/types.d.ts +25 -0
  81. package/dist/character-professions/types.js +3 -0
  82. package/dist/character-professions/types.js.map +1 -0
  83. package/dist/character-profile/character-profile.d.ts +30 -0
  84. package/dist/character-profile/character-profile.js +3 -0
  85. package/dist/character-profile/character-profile.js.map +1 -0
  86. package/dist/character-profile/types.d.ts +55 -0
  87. package/dist/character-profile/types.js +3 -0
  88. package/dist/character-profile/types.js.map +1 -0
  89. package/dist/character-pvp/character-pvp.d.ts +12 -0
  90. package/dist/character-pvp/character-pvp.js +3 -0
  91. package/dist/character-pvp/character-pvp.js.map +1 -0
  92. package/dist/character-pvp/types.d.ts +19 -0
  93. package/dist/character-pvp/types.js +3 -0
  94. package/dist/character-pvp/types.js.map +1 -0
  95. package/dist/character-quests/character-quests.d.ts +18 -0
  96. package/dist/character-quests/character-quests.js +3 -0
  97. package/dist/character-quests/character-quests.js.map +1 -0
  98. package/dist/character-quests/types.d.ts +13 -0
  99. package/dist/character-quests/types.js +3 -0
  100. package/dist/character-quests/types.js.map +1 -0
  101. package/dist/character-reputations/character-reputations.d.ts +12 -0
  102. package/dist/character-reputations/character-reputations.js +3 -0
  103. package/dist/character-reputations/character-reputations.js.map +1 -0
  104. package/dist/character-reputations/types.d.ts +25 -0
  105. package/dist/character-reputations/types.js +3 -0
  106. package/dist/character-reputations/types.js.map +1 -0
  107. package/dist/character-soulbinds/character-soulbinds.d.ts +12 -0
  108. package/dist/character-soulbinds/character-soulbinds.js +3 -0
  109. package/dist/character-soulbinds/character-soulbinds.js.map +1 -0
  110. package/dist/character-soulbinds/types.d.ts +33 -0
  111. package/dist/character-soulbinds/types.js +3 -0
  112. package/dist/character-soulbinds/types.js.map +1 -0
  113. package/dist/character-specializations/character-specializations.d.ts +12 -0
  114. package/dist/character-specializations/character-specializations.js +3 -0
  115. package/dist/character-specializations/character-specializations.js.map +1 -0
  116. package/dist/character-specializations/types.d.ts +46 -0
  117. package/dist/character-specializations/types.js +3 -0
  118. package/dist/character-specializations/types.js.map +1 -0
  119. package/dist/character-statistics/character-statistics.d.ts +12 -0
  120. package/dist/character-statistics/character-statistics.js +3 -0
  121. package/dist/character-statistics/character-statistics.js.map +1 -0
  122. package/dist/character-statistics/types.d.ts +59 -0
  123. package/dist/character-statistics/types.js +3 -0
  124. package/dist/character-statistics/types.js.map +1 -0
  125. package/dist/character-titles/character-titles.d.ts +12 -0
  126. package/dist/character-titles/character-titles.js +3 -0
  127. package/dist/character-titles/character-titles.js.map +1 -0
  128. package/dist/character-titles/types.d.ts +11 -0
  129. package/dist/character-titles/types.js +3 -0
  130. package/dist/character-titles/types.js.map +1 -0
  131. package/dist/chunk-24236PHF.js +25 -0
  132. package/dist/chunk-24236PHF.js.map +1 -0
  133. package/dist/chunk-26JOGQUD.js +11 -0
  134. package/dist/chunk-26JOGQUD.js.map +1 -0
  135. package/dist/chunk-2GRTSQL6.js +37 -0
  136. package/dist/chunk-2GRTSQL6.js.map +1 -0
  137. package/dist/chunk-36KZKLT6.js +25 -0
  138. package/dist/chunk-36KZKLT6.js.map +1 -0
  139. package/dist/chunk-3W2TUGVY.js +30 -0
  140. package/dist/chunk-3W2TUGVY.js.map +1 -0
  141. package/dist/chunk-3ZMQPXO2.js +25 -0
  142. package/dist/chunk-3ZMQPXO2.js.map +1 -0
  143. package/dist/chunk-42VH37MD.js +19 -0
  144. package/dist/chunk-42VH37MD.js.map +1 -0
  145. package/dist/chunk-4ECCICR5.js +13 -0
  146. package/dist/chunk-4ECCICR5.js.map +1 -0
  147. package/dist/chunk-5JEMELDR.js +11 -0
  148. package/dist/chunk-5JEMELDR.js.map +1 -0
  149. package/dist/chunk-6GBFNMK2.js +25 -0
  150. package/dist/chunk-6GBFNMK2.js.map +1 -0
  151. package/dist/chunk-7HVEQCDL.js +19 -0
  152. package/dist/chunk-7HVEQCDL.js.map +1 -0
  153. package/dist/chunk-ALS7FD7K.js +18 -0
  154. package/dist/chunk-ALS7FD7K.js.map +1 -0
  155. package/dist/chunk-CMQTS6M4.js +24 -0
  156. package/dist/chunk-CMQTS6M4.js.map +1 -0
  157. package/dist/chunk-D7O6VYRC.js +11 -0
  158. package/dist/chunk-D7O6VYRC.js.map +1 -0
  159. package/dist/chunk-DEHA3454.js +19 -0
  160. package/dist/chunk-DEHA3454.js.map +1 -0
  161. package/dist/chunk-DGHQJFYZ.js +43 -0
  162. package/dist/chunk-DGHQJFYZ.js.map +1 -0
  163. package/dist/chunk-DHX4ALS7.js +31 -0
  164. package/dist/chunk-DHX4ALS7.js.map +1 -0
  165. package/dist/chunk-EZKCAWKI.js +62 -0
  166. package/dist/chunk-EZKCAWKI.js.map +1 -0
  167. package/dist/chunk-FPLFZJUE.js +13 -0
  168. package/dist/chunk-FPLFZJUE.js.map +1 -0
  169. package/dist/chunk-G775CQBW.js +11 -0
  170. package/dist/chunk-G775CQBW.js.map +1 -0
  171. package/dist/chunk-GBIE4KXG.js +60 -0
  172. package/dist/chunk-GBIE4KXG.js.map +1 -0
  173. package/dist/chunk-GLXKCE6S.js +11 -0
  174. package/dist/chunk-GLXKCE6S.js.map +1 -0
  175. package/dist/chunk-GQWURIOG.js +30 -0
  176. package/dist/chunk-GQWURIOG.js.map +1 -0
  177. package/dist/chunk-GVZPDS6Q.js +49 -0
  178. package/dist/chunk-GVZPDS6Q.js.map +1 -0
  179. package/dist/chunk-HCIV2L64.js +49 -0
  180. package/dist/chunk-HCIV2L64.js.map +1 -0
  181. package/dist/chunk-JAJBQO52.js +11 -0
  182. package/dist/chunk-JAJBQO52.js.map +1 -0
  183. package/dist/chunk-JIJPTSGU.js +11 -0
  184. package/dist/chunk-JIJPTSGU.js.map +1 -0
  185. package/dist/chunk-JMTWNL23.js +11 -0
  186. package/dist/chunk-JMTWNL23.js.map +1 -0
  187. package/dist/chunk-JR5B6CK4.js +30 -0
  188. package/dist/chunk-JR5B6CK4.js.map +1 -0
  189. package/dist/chunk-JZUJDSZ4.js +19 -0
  190. package/dist/chunk-JZUJDSZ4.js.map +1 -0
  191. package/dist/chunk-LE4UHLYZ.js +17 -0
  192. package/dist/chunk-LE4UHLYZ.js.map +1 -0
  193. package/dist/chunk-LTJAQT2G.js +16 -0
  194. package/dist/chunk-LTJAQT2G.js.map +1 -0
  195. package/dist/chunk-LXEXXIEG.js +17 -0
  196. package/dist/chunk-LXEXXIEG.js.map +1 -0
  197. package/dist/chunk-MSX4CUNQ.js +31 -0
  198. package/dist/chunk-MSX4CUNQ.js.map +1 -0
  199. package/dist/chunk-ON72ACOS.js +37 -0
  200. package/dist/chunk-ON72ACOS.js.map +1 -0
  201. package/dist/chunk-OYEA5CMS.js +18 -0
  202. package/dist/chunk-OYEA5CMS.js.map +1 -0
  203. package/dist/chunk-QWKGL6OD.js +55 -0
  204. package/dist/chunk-QWKGL6OD.js.map +1 -0
  205. package/dist/chunk-QYEYBQGO.js +31 -0
  206. package/dist/chunk-QYEYBQGO.js.map +1 -0
  207. package/dist/chunk-RDKBICVU.js +17 -0
  208. package/dist/chunk-RDKBICVU.js.map +1 -0
  209. package/dist/chunk-RGGXKGN5.js +33 -0
  210. package/dist/chunk-RGGXKGN5.js.map +1 -0
  211. package/dist/chunk-RYBCDOQV.js +60 -0
  212. package/dist/chunk-RYBCDOQV.js.map +1 -0
  213. package/dist/chunk-SPTZICRM.js +19 -0
  214. package/dist/chunk-SPTZICRM.js.map +1 -0
  215. package/dist/chunk-U3H47BSV.js +11 -0
  216. package/dist/chunk-U3H47BSV.js.map +1 -0
  217. package/dist/chunk-U4WVCUZN.js +19 -0
  218. package/dist/chunk-U4WVCUZN.js.map +1 -0
  219. package/dist/chunk-ULWUM3DX.js +49 -0
  220. package/dist/chunk-ULWUM3DX.js.map +1 -0
  221. package/dist/chunk-V3MTDINM.js +19 -0
  222. package/dist/chunk-V3MTDINM.js.map +1 -0
  223. package/dist/chunk-VPH2NQRQ.js +30 -0
  224. package/dist/chunk-VPH2NQRQ.js.map +1 -0
  225. package/dist/chunk-VTEJNKYT.js +11 -0
  226. package/dist/chunk-VTEJNKYT.js.map +1 -0
  227. package/dist/chunk-WTFOGQ55.js +60 -0
  228. package/dist/chunk-WTFOGQ55.js.map +1 -0
  229. package/dist/chunk-WZGXR5WG.js +37 -0
  230. package/dist/chunk-WZGXR5WG.js.map +1 -0
  231. package/dist/chunk-X42TYTZZ.js +43 -0
  232. package/dist/chunk-X42TYTZZ.js.map +1 -0
  233. package/dist/chunk-XWV4O5Z4.js +19 -0
  234. package/dist/chunk-XWV4O5Z4.js.map +1 -0
  235. package/dist/chunk-YB62WBDV.js +42 -0
  236. package/dist/chunk-YB62WBDV.js.map +1 -0
  237. package/dist/chunk-YNXUFYX2.js +36 -0
  238. package/dist/chunk-YNXUFYX2.js.map +1 -0
  239. package/dist/chunk-Z6SN5O7U.js +11 -0
  240. package/dist/chunk-Z6SN5O7U.js.map +1 -0
  241. package/dist/connected-realm/connected-realm.d.ts +24 -0
  242. package/dist/connected-realm/connected-realm.js +4 -0
  243. package/dist/connected-realm/connected-realm.js.map +1 -0
  244. package/dist/connected-realm/types.d.ts +111 -0
  245. package/dist/connected-realm/types.js +3 -0
  246. package/dist/connected-realm/types.js.map +1 -0
  247. package/dist/covenant/covenant.d.ts +45 -0
  248. package/dist/covenant/covenant.js +4 -0
  249. package/dist/covenant/covenant.js.map +1 -0
  250. package/dist/covenant/types.d.ts +119 -0
  251. package/dist/covenant/types.js +3 -0
  252. package/dist/covenant/types.js.map +1 -0
  253. package/dist/creature/creature.d.ts +52 -0
  254. package/dist/creature/creature.js +4 -0
  255. package/dist/creature/creature.js.map +1 -0
  256. package/dist/creature/types.d.ts +107 -0
  257. package/dist/creature/types.js +3 -0
  258. package/dist/creature/types.js.map +1 -0
  259. package/dist/guild/guild.d.ts +30 -0
  260. package/dist/guild/guild.js +3 -0
  261. package/dist/guild/guild.js.map +1 -0
  262. package/dist/guild/types.d.ts +100 -0
  263. package/dist/guild/types.js +3 -0
  264. package/dist/guild/types.js.map +1 -0
  265. package/dist/guild-crest/guild-crest.d.ts +23 -0
  266. package/dist/guild-crest/guild-crest.js +4 -0
  267. package/dist/guild-crest/guild-crest.js.map +1 -0
  268. package/dist/guild-crest/types.d.ts +47 -0
  269. package/dist/guild-crest/types.js +3 -0
  270. package/dist/guild-crest/types.js.map +1 -0
  271. package/dist/heirloom/heirloom.d.ts +17 -0
  272. package/dist/heirloom/heirloom.js +4 -0
  273. package/dist/heirloom/heirloom.js.map +1 -0
  274. package/dist/heirloom/types.d.ts +87 -0
  275. package/dist/heirloom/types.js +3 -0
  276. package/dist/heirloom/types.js.map +1 -0
  277. package/dist/index.d.ts +113 -4415
  278. package/dist/index.js +111 -1248
  279. package/dist/index.js.map +1 -1
  280. package/dist/item/item.d.ts +53 -0
  281. package/dist/item/item.js +4 -0
  282. package/dist/item/item.js.map +1 -0
  283. package/dist/item/types.d.ts +244 -0
  284. package/dist/item/types.js +3 -0
  285. package/dist/item/types.js.map +1 -0
  286. package/dist/journal/journal.d.ts +51 -0
  287. package/dist/journal/journal.js +4 -0
  288. package/dist/journal/journal.js.map +1 -0
  289. package/dist/journal/types.d.ts +160 -0
  290. package/dist/journal/types.js +3 -0
  291. package/dist/journal/types.js.map +1 -0
  292. package/dist/media-search/media-search.d.ts +12 -0
  293. package/dist/media-search/media-search.js +4 -0
  294. package/dist/media-search/media-search.js.map +1 -0
  295. package/dist/media-search/types.d.ts +29 -0
  296. package/dist/media-search/types.js +3 -0
  297. package/dist/media-search/types.js.map +1 -0
  298. package/dist/modified-crafting/modified-crafting.d.ts +33 -0
  299. package/dist/modified-crafting/modified-crafting.js +4 -0
  300. package/dist/modified-crafting/modified-crafting.js.map +1 -0
  301. package/dist/modified-crafting/types.d.ts +49 -0
  302. package/dist/modified-crafting/types.js +3 -0
  303. package/dist/modified-crafting/types.js.map +1 -0
  304. package/dist/mount/mount.d.ts +23 -0
  305. package/dist/mount/mount.js +4 -0
  306. package/dist/mount/mount.js.map +1 -0
  307. package/dist/mount/types.d.ts +62 -0
  308. package/dist/mount/types.js +3 -0
  309. package/dist/mount/types.js.map +1 -0
  310. package/dist/mythic-keystone-affix/mythic-keystone-affix.d.ts +23 -0
  311. package/dist/mythic-keystone-affix/mythic-keystone-affix.js +4 -0
  312. package/dist/mythic-keystone-affix/mythic-keystone-affix.js.map +1 -0
  313. package/dist/mythic-keystone-affix/types.d.ts +30 -0
  314. package/dist/mythic-keystone-affix/types.js +3 -0
  315. package/dist/mythic-keystone-affix/types.js.map +1 -0
  316. package/dist/mythic-keystone-dungeon/mythic-keystone-dungeon.d.ts +44 -0
  317. package/dist/mythic-keystone-dungeon/mythic-keystone-dungeon.js +4 -0
  318. package/dist/mythic-keystone-dungeon/mythic-keystone-dungeon.js.map +1 -0
  319. package/dist/mythic-keystone-dungeon/types.d.ts +80 -0
  320. package/dist/mythic-keystone-dungeon/types.js +3 -0
  321. package/dist/mythic-keystone-dungeon/types.js.map +1 -0
  322. package/dist/mythic-keystone-leaderboard/mythic-keystone-leaderboard.d.ts +20 -0
  323. package/dist/mythic-keystone-leaderboard/mythic-keystone-leaderboard.js +4 -0
  324. package/dist/mythic-keystone-leaderboard/mythic-keystone-leaderboard.js.map +1 -0
  325. package/dist/mythic-keystone-leaderboard/types.d.ts +61 -0
  326. package/dist/mythic-keystone-leaderboard/types.js +3 -0
  327. package/dist/mythic-keystone-leaderboard/types.js.map +1 -0
  328. package/dist/mythic-raid-leaderboard/mythic-raid-leaderboard.d.ts +13 -0
  329. package/dist/mythic-raid-leaderboard/mythic-raid-leaderboard.js +4 -0
  330. package/dist/mythic-raid-leaderboard/mythic-raid-leaderboard.js.map +1 -0
  331. package/dist/mythic-raid-leaderboard/types.d.ts +36 -0
  332. package/dist/mythic-raid-leaderboard/types.js +3 -0
  333. package/dist/mythic-raid-leaderboard/types.js.map +1 -0
  334. package/dist/pet/pet.d.ts +40 -0
  335. package/dist/pet/pet.js +4 -0
  336. package/dist/pet/pet.js.map +1 -0
  337. package/dist/pet/types.d.ts +78 -0
  338. package/dist/pet/types.js +3 -0
  339. package/dist/pet/types.js.map +1 -0
  340. package/dist/playable-class/playable-class.d.ts +29 -0
  341. package/dist/playable-class/playable-class.js +4 -0
  342. package/dist/playable-class/playable-class.js.map +1 -0
  343. package/dist/playable-class/types.d.ts +47 -0
  344. package/dist/playable-class/types.js +3 -0
  345. package/dist/playable-class/types.js.map +1 -0
  346. package/dist/playable-race/playable-race.d.ts +17 -0
  347. package/dist/playable-race/playable-race.js +4 -0
  348. package/dist/playable-race/playable-race.js.map +1 -0
  349. package/dist/playable-race/types.d.ts +22 -0
  350. package/dist/playable-race/types.js +3 -0
  351. package/dist/playable-race/types.js.map +1 -0
  352. package/dist/playable-specialization/playable-specialization.d.ts +23 -0
  353. package/dist/playable-specialization/playable-specialization.js +4 -0
  354. package/dist/playable-specialization/playable-specialization.js.map +1 -0
  355. package/dist/playable-specialization/types.d.ts +55 -0
  356. package/dist/playable-specialization/types.js +3 -0
  357. package/dist/playable-specialization/types.js.map +1 -0
  358. package/dist/power-type/power-type.d.ts +17 -0
  359. package/dist/power-type/power-type.js +4 -0
  360. package/dist/power-type/power-type.js.map +1 -0
  361. package/dist/power-type/types.d.ts +17 -0
  362. package/dist/power-type/types.js +3 -0
  363. package/dist/power-type/types.js.map +1 -0
  364. package/dist/profession/profession.d.ts +42 -0
  365. package/dist/profession/profession.js +4 -0
  366. package/dist/profession/profession.js.map +1 -0
  367. package/dist/profession/types.d.ts +74 -0
  368. package/dist/profession/types.js +3 -0
  369. package/dist/profession/types.js.map +1 -0
  370. package/dist/pvp-season/pvp-season.d.ts +36 -0
  371. package/dist/pvp-season/pvp-season.js +4 -0
  372. package/dist/pvp-season/pvp-season.js.map +1 -0
  373. package/dist/pvp-season/types.d.ts +89 -0
  374. package/dist/pvp-season/types.js +3 -0
  375. package/dist/pvp-season/types.js.map +1 -0
  376. package/dist/pvp-tier/pvp-tier.d.ts +23 -0
  377. package/dist/pvp-tier/pvp-tier.js +4 -0
  378. package/dist/pvp-tier/pvp-tier.js.map +1 -0
  379. package/dist/pvp-tier/types.d.ts +37 -0
  380. package/dist/pvp-tier/types.js +3 -0
  381. package/dist/pvp-tier/types.js.map +1 -0
  382. package/dist/quest/quest.d.ts +50 -0
  383. package/dist/quest/quest.js +4 -0
  384. package/dist/quest/quest.js.map +1 -0
  385. package/dist/quest/types.d.ts +102 -0
  386. package/dist/quest/types.js +3 -0
  387. package/dist/quest/types.js.map +1 -0
  388. package/dist/realm/realm.d.ts +23 -0
  389. package/dist/realm/realm.js +4 -0
  390. package/dist/realm/realm.js.map +1 -0
  391. package/dist/realm/types.d.ts +81 -0
  392. package/dist/realm/types.js +3 -0
  393. package/dist/realm/types.js.map +1 -0
  394. package/dist/region/region.d.ts +17 -0
  395. package/dist/region/region.js +4 -0
  396. package/dist/region/region.js.map +1 -0
  397. package/dist/region/types.d.ts +21 -0
  398. package/dist/region/types.js +3 -0
  399. package/dist/region/types.js.map +1 -0
  400. package/dist/reputations/reputations.d.ts +28 -0
  401. package/dist/reputations/reputations.js +4 -0
  402. package/dist/reputations/reputations.js.map +1 -0
  403. package/dist/reputations/types.d.ts +51 -0
  404. package/dist/reputations/types.js +3 -0
  405. package/dist/reputations/types.js.map +1 -0
  406. package/dist/spell/spell.d.ts +24 -0
  407. package/dist/spell/spell.js +4 -0
  408. package/dist/spell/spell.js.map +1 -0
  409. package/dist/spell/types.d.ts +47 -0
  410. package/dist/spell/types.js +3 -0
  411. package/dist/spell/types.js.map +1 -0
  412. package/dist/talent/talent.d.ts +46 -0
  413. package/dist/talent/talent.js +4 -0
  414. package/dist/talent/talent.js.map +1 -0
  415. package/dist/talent/types.d.ts +161 -0
  416. package/dist/talent/types.js +3 -0
  417. package/dist/talent/types.js.map +1 -0
  418. package/dist/tech-talent/tech-talent.d.ts +34 -0
  419. package/dist/tech-talent/tech-talent.js +4 -0
  420. package/dist/tech-talent/tech-talent.js.map +1 -0
  421. package/dist/tech-talent/types.d.ts +52 -0
  422. package/dist/tech-talent/types.js +3 -0
  423. package/dist/tech-talent/types.js.map +1 -0
  424. package/dist/title/title.d.ts +17 -0
  425. package/dist/title/title.js +4 -0
  426. package/dist/title/title.js.map +1 -0
  427. package/dist/title/types.d.ts +18 -0
  428. package/dist/title/types.js +3 -0
  429. package/dist/title/types.js.map +1 -0
  430. package/dist/toy/toy.d.ts +17 -0
  431. package/dist/toy/toy.js +4 -0
  432. package/dist/toy/toy.js.map +1 -0
  433. package/dist/toy/types.d.ts +29 -0
  434. package/dist/toy/types.js +3 -0
  435. package/dist/toy/types.js.map +1 -0
  436. package/dist/wow-token/types.d.ts +12 -0
  437. package/dist/wow-token/types.js +3 -0
  438. package/dist/wow-token/types.js.map +1 -0
  439. package/dist/wow-token/wow-token.d.ts +11 -0
  440. package/dist/wow-token/wow-token.js +4 -0
  441. package/dist/wow-token/wow-token.js.map +1 -0
  442. package/package.json +14 -5
package/README.md CHANGED
@@ -75,6 +75,6 @@ const client = await createBlizzardApiClient({
75
75
  //Response will automatically be typed with the appropriate values
76
76
  const response = await client.sendRequest(wow.commodities());
77
77
 
78
- console.log(response.data);
79
- ^ typeof AuctionHouseCommoditiesResponse
78
+ console.log(response);
79
+ ^ typeof AuctionHouseCommoditiesResponse
80
80
  ```
@@ -0,0 +1,56 @@
1
+ import { ProtectedResource } from '@blizzard-api/core';
2
+ import { AccountCollectionsIndexResponse, AccountHeirloomsCollectionSummaryResponse, AccountMountsCollectionSummaryResponse, AccountPetsCollectionSummaryResponse, AccountProfileSummaryResponse, AccountToysCollectionSummaryResponse, AccountTransmogsCollectionSummaryResponse, ProtectedCharacterProfileSummaryResponse } from './types.js';
3
+ import '../base.js';
4
+
5
+ /**
6
+ * 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}
7
+ * @param token The OAuth 2.0 access token to use for authentication.
8
+ * @returns an index of collection types for an account.
9
+ */
10
+ declare function accountCollectionsIndex(token: string): ProtectedResource<AccountCollectionsIndexResponse>;
11
+ /**
12
+ * 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}
13
+ * @param token The OAuth 2.0 access token to use for authentication.
14
+ * @returns a summary of the heirlooms an account has obtained.
15
+ */
16
+ declare function accountHeirloomsCollectionSummary(token: string): ProtectedResource<AccountHeirloomsCollectionSummaryResponse>;
17
+ /**
18
+ * 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}
19
+ * @param token The OAuth 2.0 access token to use for authentication.
20
+ * @returns a summary of the mounts an account has obtained.
21
+ */
22
+ declare function accountMountsCollectionSummary(token: string): ProtectedResource<AccountMountsCollectionSummaryResponse>;
23
+ /**
24
+ * 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}
25
+ * @param token The OAuth 2.0 access token to use for authentication.
26
+ * @returns a summary of the battle pets an account has obtained.
27
+ */
28
+ declare function accountPetsCollectionSummary(token: string): ProtectedResource<AccountPetsCollectionSummaryResponse>;
29
+ /**
30
+ * 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}
31
+ * @param token The OAuth 2.0 access token to use for authentication.
32
+ * @returns a profile summary for an account.
33
+ */
34
+ declare function accountProfileSummary(token: string): ProtectedResource<AccountProfileSummaryResponse>;
35
+ /**
36
+ * 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}
37
+ * @param token The OAuth 2.0 access token to use for authentication.
38
+ * @returns a summary of the toys an account has obtained.
39
+ */
40
+ declare function accountToysCollectionSummary(token: string): ProtectedResource<AccountToysCollectionSummaryResponse>;
41
+ /**
42
+ * 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}
43
+ * @param token The OAuth 2.0 access token to use for authentication.
44
+ * @returns a summary of the transmog unlocks an account has obtained.
45
+ */
46
+ declare function accountTransmogsCollectionSummary(token: string): ProtectedResource<AccountTransmogsCollectionSummaryResponse>;
47
+ /**
48
+ * 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}
49
+ * @param realmId The realm ID.
50
+ * @param characterId The character ID.
51
+ * @param token The OAuth 2.0 access token to use for authentication.
52
+ * @returns a protected profile summary for a character.
53
+ */
54
+ declare function protectedCharacterProfileSummary(realmId: number, characterId: number, token: string): ProtectedResource<ProtectedCharacterProfileSummaryResponse>;
55
+
56
+ export { accountCollectionsIndex, accountHeirloomsCollectionSummary, accountMountsCollectionSummary, accountPetsCollectionSummary, accountProfileSummary, accountToysCollectionSummary, accountTransmogsCollectionSummary, protectedCharacterProfileSummary };
@@ -0,0 +1,3 @@
1
+ export { accountCollectionsIndex, accountHeirloomsCollectionSummary, accountMountsCollectionSummary, accountPetsCollectionSummary, accountProfileSummary, accountToysCollectionSummary, accountTransmogsCollectionSummary, protectedCharacterProfileSummary } from '../chunk-EZKCAWKI.js';
2
+ //# sourceMappingURL=account-profile.js.map
3
+ //# sourceMappingURL=account-profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"account-profile.js"}
@@ -0,0 +1,138 @@
1
+ import { Href, NameIdKey, Realm, KeyBase, NameId, Faction, Gender } from '../base.js';
2
+
3
+ interface AccountCollectionsIndexResponse {
4
+ _links: Links;
5
+ heirlooms: Href;
6
+ mounts: Href;
7
+ pets: Href;
8
+ toys: Href;
9
+ transmogs: Href;
10
+ }
11
+ interface AccountHeirloomsCollectionSummaryResponse {
12
+ _links: Links;
13
+ heirlooms: Array<Heirloom>;
14
+ }
15
+ interface AccountMountsCollectionSummaryResponse {
16
+ _links: Links;
17
+ mounts: Array<Mount>;
18
+ }
19
+ interface AccountPetsCollectionSummaryResponse {
20
+ _links: Links;
21
+ pets: Array<Pet>;
22
+ unlocked_battle_pet_slots: number;
23
+ }
24
+ interface AccountProfileSummaryResponse {
25
+ _links: Links;
26
+ collections: Href;
27
+ id: number;
28
+ wow_accounts?: Array<WowAccount>;
29
+ }
30
+ interface AccountToysCollectionSummaryResponse {
31
+ _links: Links;
32
+ toys: Array<Toy>;
33
+ }
34
+ interface AccountTransmogsCollectionSummaryResponse {
35
+ _links: Links;
36
+ appearance_sets: Array<NameIdKey>;
37
+ slots: Array<Slot>;
38
+ }
39
+ interface ProtectedCharacterProfileSummaryResponse {
40
+ _links: Links;
41
+ bind_position: Position;
42
+ character: NameIdKey & Realm;
43
+ id: number;
44
+ money: number;
45
+ name: string;
46
+ position: Position;
47
+ protected_stats: ProtectedStats;
48
+ wow_account: number;
49
+ }
50
+ interface Character {
51
+ character: Href;
52
+ faction: Faction;
53
+ gender: Gender;
54
+ id: number;
55
+ level: number;
56
+ name: string;
57
+ playable_class: NameIdKey;
58
+ playable_race: NameIdKey;
59
+ protected_character: Href;
60
+ realm: Realm;
61
+ }
62
+ interface Heirloom {
63
+ heirloom: NameIdKey;
64
+ upgrade: {
65
+ level: number;
66
+ };
67
+ }
68
+ interface Links {
69
+ profile: Href;
70
+ self: Href;
71
+ user: Href;
72
+ }
73
+ interface Mount {
74
+ is_favorite?: boolean;
75
+ mount: NameIdKey;
76
+ }
77
+ interface Pet {
78
+ active_slot?: number;
79
+ creature_display?: KeyBase & {
80
+ id: number;
81
+ };
82
+ id: number;
83
+ is_active?: boolean;
84
+ is_favorite?: boolean;
85
+ level: number;
86
+ name?: string;
87
+ quality: Quality;
88
+ species: NameIdKey;
89
+ stats: Stats;
90
+ }
91
+ interface Position {
92
+ facing: number;
93
+ map: NameId;
94
+ x: number;
95
+ y: number;
96
+ z: number;
97
+ zone: NameId;
98
+ }
99
+ interface ProtectedStats {
100
+ level_gold_gained: number;
101
+ level_gold_lost: number;
102
+ level_item_value_gained: number;
103
+ level_number_deaths: number;
104
+ total_gold_gained: number;
105
+ total_gold_lost: number;
106
+ total_item_value_gained: number;
107
+ total_number_deaths: number;
108
+ }
109
+ interface Quality {
110
+ name: 'Common' | 'Poor' | 'Rare' | 'Uncommon';
111
+ type: 'COMMON' | 'POOR' | 'RARE' | 'UNCOMMON';
112
+ }
113
+ interface Slot {
114
+ appearances: Array<KeyBase & {
115
+ id: number;
116
+ }>;
117
+ slot: Slot;
118
+ }
119
+ interface Slot {
120
+ name: string;
121
+ type: string;
122
+ }
123
+ interface Stats {
124
+ breed_id: number;
125
+ health: number;
126
+ power: number;
127
+ speed: number;
128
+ }
129
+ interface Toy {
130
+ is_favorite?: boolean;
131
+ toy: NameIdKey;
132
+ }
133
+ interface WowAccount {
134
+ characters: Array<Character>;
135
+ id: number;
136
+ }
137
+
138
+ export type { AccountCollectionsIndexResponse, AccountHeirloomsCollectionSummaryResponse, AccountMountsCollectionSummaryResponse, AccountPetsCollectionSummaryResponse, AccountProfileSummaryResponse, AccountToysCollectionSummaryResponse, AccountTransmogsCollectionSummaryResponse, ProtectedCharacterProfileSummaryResponse };
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=types.js.map
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"types.js"}
@@ -0,0 +1,34 @@
1
+ import { Resource } from '@blizzard-api/core';
2
+ import { AchievementResponse, AchievementCategoryResponse, AchievementCategoryIndexResponse, AchievementIndexResponse, AchievementMediaResponse } from './types.js';
3
+ import '../base.js';
4
+
5
+ /**
6
+ * Get an achievement by ID.
7
+ * @param achievementId The achievement ID.
8
+ * @returns The achievement. See {@link AchievementResponse}.
9
+ */
10
+ declare function achievement(achievementId: number): Resource<AchievementResponse>;
11
+ /**
12
+ * Get an achievement category by ID.
13
+ * @param achievementCategoryId The achievement category ID.
14
+ * @returns The achievement category. See {@link AchievementCategoryResponse}.
15
+ */
16
+ declare function achievementCategory(achievementCategoryId: number): Resource<AchievementCategoryResponse>;
17
+ /**
18
+ * Get an achievement category index.
19
+ * @returns The achievement category index. See {@link AchievementCategoryIndexResponse}.
20
+ */
21
+ declare function achievementCategoryIndex(): Resource<AchievementCategoryIndexResponse>;
22
+ /**
23
+ * Get an achievement index.
24
+ * @returns The achievement index. See {@link AchievementIndexResponse}.
25
+ */
26
+ declare function achievementIndex(): Resource<AchievementIndexResponse>;
27
+ /**
28
+ * Get achievement media by ID.
29
+ * @param achievementId The achievement ID.
30
+ * @returns The achievement media. See {@link AchievementMediaResponse}.
31
+ */
32
+ declare function achievementMedia(achievementId: number): Resource<AchievementMediaResponse>;
33
+
34
+ export { achievement, achievementCategory, achievementCategoryIndex, achievementIndex, achievementMedia };
@@ -0,0 +1,4 @@
1
+ export { achievement, achievementCategory, achievementCategoryIndex, achievementIndex, achievementMedia } from '../chunk-YNXUFYX2.js';
2
+ import '../chunk-LTJAQT2G.js';
3
+ //# sourceMappingURL=achievements.js.map
4
+ //# sourceMappingURL=achievements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"achievements.js"}
@@ -0,0 +1,70 @@
1
+ import { ResponseBase, NameIdKey, NameId, KeyBase } from '../base.js';
2
+
3
+ /**
4
+ * Interface for a response from the achievement category index endpoint.
5
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
6
+ */
7
+ interface AchievementCategoryIndexResponse extends ResponseBase {
8
+ categories: Array<NameIdKey>;
9
+ guild_categories: Array<NameIdKey>;
10
+ root_categories: Array<NameIdKey>;
11
+ }
12
+ /**
13
+ * Interface for a response from the achievement category endpoint.
14
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
15
+ */
16
+ interface AchievementCategoryResponse extends NameId, ResponseBase {
17
+ achievements: Array<NameIdKey>;
18
+ aggregates_by_faction: {
19
+ alliance: {
20
+ points: number;
21
+ quantity: number;
22
+ };
23
+ horde: {
24
+ points: number;
25
+ quantity: number;
26
+ };
27
+ };
28
+ display_order: number;
29
+ isGuildCategory: boolean;
30
+ parent_category: NameIdKey;
31
+ }
32
+ /**
33
+ * Interface for a response from the achievement index endpoint.
34
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
35
+ */
36
+ interface AchievementIndexResponse extends ResponseBase {
37
+ achievements: Array<NameIdKey>;
38
+ }
39
+ /**
40
+ * Interface for a response from the achievement media endpoint.
41
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
42
+ */
43
+ interface AchievementMediaResponse extends ResponseBase {
44
+ assets: Array<AchievementMediaItem>;
45
+ id: number;
46
+ }
47
+ /**
48
+ * Interface for a response from the achievement endpoint.
49
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
50
+ */
51
+ interface AchievementResponse extends NameId, ResponseBase {
52
+ category: NameIdKey;
53
+ criteria: {
54
+ amount: number;
55
+ description: string;
56
+ id: number;
57
+ };
58
+ description: string;
59
+ display_order: number;
60
+ is_account_wide: boolean;
61
+ media: KeyBase;
62
+ points: number;
63
+ }
64
+ interface AchievementMediaItem {
65
+ file_data_id: number;
66
+ key: string;
67
+ value: string;
68
+ }
69
+
70
+ export type { AchievementCategoryIndexResponse, AchievementCategoryResponse, AchievementIndexResponse, AchievementMediaResponse, AchievementResponse };
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=types.js.map
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"types.js"}
@@ -0,0 +1,17 @@
1
+ import { Resource } from '@blizzard-api/core';
2
+ import { AuctionHouseResponse, AuctionHouseCommoditiesResponse } from './types.js';
3
+ import '../base.js';
4
+
5
+ /**
6
+ * Get auction house data for a connected realm.
7
+ * @param connectedRealmId The ID of the connected realm.
8
+ * @returns The auction house data. See {@link AuctionHouseResponse}.
9
+ */
10
+ declare function auctions(connectedRealmId: number): Resource<AuctionHouseResponse>;
11
+ /**
12
+ * Get auction house data for all connected realms.
13
+ * @returns The auction house data. See {@link AuctionHouseResponse}.
14
+ */
15
+ declare function commodities(): Resource<AuctionHouseCommoditiesResponse>;
16
+
17
+ export { auctions, commodities };
@@ -0,0 +1,4 @@
1
+ export { auctions, commodities } from '../chunk-JZUJDSZ4.js';
2
+ import '../chunk-LTJAQT2G.js';
3
+ //# sourceMappingURL=auction-house.js.map
4
+ //# sourceMappingURL=auction-house.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"auction-house.js"}
@@ -0,0 +1,50 @@
1
+ import { ResponseBase } from '../base.js';
2
+
3
+ /**
4
+ * Interface for a response from the auction house commodities endpoint.
5
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
6
+ */
7
+ interface AuctionHouseCommoditiesResponse extends ResponseBase {
8
+ auctions: Array<AuctionHouseCommodity>;
9
+ }
10
+ /**
11
+ * Interface for a response from the auction house endpoint.
12
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
13
+ */
14
+ interface AuctionHouseResponse extends ResponseBase {
15
+ auctions: Array<AuctionHousePosting>;
16
+ commodities: {
17
+ href: string;
18
+ };
19
+ connected_realm: {
20
+ href: string;
21
+ };
22
+ }
23
+ interface AuctionHouseCommodity {
24
+ id: number;
25
+ item: {
26
+ id: number;
27
+ };
28
+ quantity: number;
29
+ time_left: AuctionHouseTimeLeft;
30
+ unit_price: number;
31
+ }
32
+ interface AuctionHousePosting {
33
+ bid: number;
34
+ buyout: number;
35
+ id: number;
36
+ item: {
37
+ bonus_lists: Array<number>;
38
+ context: number;
39
+ id: number;
40
+ modifiers: Array<{
41
+ type: number;
42
+ value: number;
43
+ }>;
44
+ };
45
+ quantity: number;
46
+ time_left: AuctionHouseTimeLeft;
47
+ }
48
+ type AuctionHouseTimeLeft = 'LONG' | 'MEDIUM' | 'SHORT' | 'VERY_LONG';
49
+
50
+ export type { AuctionHouseCommoditiesResponse, AuctionHouseResponse };
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=types.js.map
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"types.js"}
@@ -0,0 +1,29 @@
1
+ import { Resource, SearchResponse } from '@blizzard-api/core';
2
+ import { AzeriteEssenceResponse, AzeriteEssenceIndexResponse, AzeriteEssenceMediaResponse, AzeriteEssenceSearchParameters, AzeriteEssenceSearchResponseItem } from './types.js';
3
+ import '../base.js';
4
+
5
+ /**
6
+ * Get an azerite essence by ID.
7
+ * @param azeriteEssenceId The azerite essence ID.
8
+ * @returns The azerite essence. See {@link AzeriteEssenceResponse}.
9
+ */
10
+ declare function azeriteEssence(azeriteEssenceId: number): Resource<AzeriteEssenceResponse>;
11
+ /**
12
+ * Get an azerite essence index.
13
+ * @returns The azerite essence index. See {@link AzeriteEssenceIndexResponse}.
14
+ */
15
+ declare function azeriteEssenceIndex(): Resource<AzeriteEssenceIndexResponse>;
16
+ /**
17
+ * Get azerite essence media by ID.
18
+ * @param azeriteEssenceId The azerite essence ID.
19
+ * @returns The azerite essence media. See {@link AzeriteEssenceMediaResponse}.
20
+ */
21
+ declare function azeriteEssenceMedia(azeriteEssenceId: number): Resource<AzeriteEssenceMediaResponse>;
22
+ /**
23
+ * Search for azerite essences.
24
+ * @param options The search parameters. See {@link AzeriteEssenceSearchParameters}.
25
+ * @returns The search results. See {@link SearchResponse}.
26
+ */
27
+ declare function azeriteEssenceSearch(options: AzeriteEssenceSearchParameters): Resource<SearchResponse<AzeriteEssenceSearchResponseItem>, AzeriteEssenceSearchParameters>;
28
+
29
+ export { azeriteEssence, azeriteEssenceIndex, azeriteEssenceMedia, azeriteEssenceSearch };
@@ -0,0 +1,4 @@
1
+ export { azeriteEssence, azeriteEssenceIndex, azeriteEssenceMedia, azeriteEssenceSearch } from '../chunk-RGGXKGN5.js';
2
+ import '../chunk-LTJAQT2G.js';
3
+ //# sourceMappingURL=azerite-essence.js.map
4
+ //# sourceMappingURL=azerite-essence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"azerite-essence.js"}
@@ -0,0 +1,57 @@
1
+ import { BaseSearchParameters, Locales } from '@blizzard-api/core';
2
+ import { ResponseBase, NameIdKey, MediaAsset, NameId, KeyBase } from '../base.js';
3
+
4
+ /**
5
+ * Interface for a response from the azerite essence index endpoint.
6
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
7
+ */
8
+ interface AzeriteEssenceIndexResponse extends ResponseBase {
9
+ azerite_essences: Array<NameIdKey>;
10
+ }
11
+ /**
12
+ * Interface for a response from the azerite essence media endpoint.
13
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
14
+ */
15
+ interface AzeriteEssenceMediaResponse extends ResponseBase {
16
+ assets: Array<MediaAsset>;
17
+ id: number;
18
+ }
19
+ /**
20
+ * Interface for a response from the azerite essence endpoint.
21
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
22
+ */
23
+ interface AzeriteEssenceResponse extends NameId, ResponseBase {
24
+ allowed_specializations: Array<NameIdKey>;
25
+ media: Media;
26
+ powers: Array<Power>;
27
+ }
28
+ /**
29
+ * Interface for search parameters for azerite essences.
30
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
31
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
32
+ */
33
+ interface AzeriteEssenceSearchParameters extends BaseSearchParameters {
34
+ 'allowed_specializations.id'?: number;
35
+ }
36
+ /**
37
+ * Interface for a response item from the azerite essence search endpoint.
38
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
39
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
40
+ */
41
+ interface AzeriteEssenceSearchResponseItem extends KeyBase {
42
+ data: {
43
+ allowed_specializations: Array<NameId>;
44
+ name: Record<Locales, string>;
45
+ };
46
+ }
47
+ interface Media extends KeyBase {
48
+ id: number;
49
+ }
50
+ interface Power {
51
+ id: number;
52
+ main_power_spell: NameIdKey;
53
+ passive_power_spell: NameIdKey;
54
+ rank: number;
55
+ }
56
+
57
+ export type { AzeriteEssenceIndexResponse, AzeriteEssenceMediaResponse, AzeriteEssenceResponse, AzeriteEssenceSearchParameters, AzeriteEssenceSearchResponseItem };
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=types.js.map
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"types.js"}
package/dist/base.d.ts ADDED
@@ -0,0 +1,115 @@
1
+ /**
2
+ * @file base.ts
3
+ * @module base
4
+ * @description Contains base constants and interfaces for the Blizzard API.
5
+ */
6
+ /**
7
+ * The base request path for the Blizzard API for world of warcraft.
8
+ */
9
+ declare const base = "/data/wow";
10
+ /**
11
+ * The base request path for media in the Blizzard API for world of warcraft.
12
+ */
13
+ declare const mediaBase: "/data/wow/media";
14
+ /**
15
+ * The base request path for search in the Blizzard API for world of warcraft.
16
+ */
17
+ declare const searchBase: "/data/wow/search";
18
+ /**
19
+ *
20
+ */
21
+ /**
22
+ * A record containing the RGBA values of a color.
23
+ */
24
+ interface Color {
25
+ a: number;
26
+ b: number;
27
+ g: number;
28
+ r: number;
29
+ }
30
+ /**
31
+ * The playable gender names/descriptions in World of Warcraft.
32
+ */
33
+ interface GenderName {
34
+ female: string;
35
+ male: string;
36
+ }
37
+ interface Href {
38
+ href: string;
39
+ }
40
+ /**
41
+ * Base record interface containing key.href property that often appear in Blizzard API responses.
42
+ */
43
+ interface KeyBase {
44
+ key: Href;
45
+ }
46
+ /**
47
+ * The media asset associated with a character or entity in World of Warcraft.
48
+ */
49
+ interface MediaAsset {
50
+ file_data_id: number;
51
+ key: string;
52
+ value: string;
53
+ }
54
+ /**
55
+ * Base record interface containing name and id properties that often appear together in Blizzard API responses.
56
+ */
57
+ interface NameId {
58
+ id: number;
59
+ name: string;
60
+ }
61
+ /**
62
+ * Base record containing both {@link KeyBase} and {@link NameId} interfaces.
63
+ */
64
+ interface NameIdKey extends KeyBase, NameId {
65
+ }
66
+ /**
67
+ * Base interface for Blizzard API responses.
68
+ */
69
+ interface ResponseBase {
70
+ _links: {
71
+ self: Href;
72
+ };
73
+ }
74
+ /**
75
+ * The playable genders in World of Warcraft.
76
+ */
77
+ declare const Genders: {
78
+ readonly FEMALE: "FEMALE";
79
+ readonly MALE: "MALE";
80
+ };
81
+ /**
82
+ * The gender associated with a character or entity in World of Warcraft.
83
+ */
84
+ interface Gender {
85
+ name: Capitalize<Lowercase<keyof typeof Genders>>;
86
+ type: keyof typeof Genders;
87
+ }
88
+ /**
89
+ * The playable factions in World of Warcraft.
90
+ */
91
+ declare const Factions: {
92
+ readonly ALLIANCE: "ALLIANCE";
93
+ readonly HORDE: "HORDE";
94
+ };
95
+ /**
96
+ * The standard structure to represent a World of Warcraft Character.
97
+ */
98
+ interface Character extends NameIdKey {
99
+ realm: Realm;
100
+ }
101
+ /**
102
+ * The faction associated with a character or entity in World of Warcraft.
103
+ */
104
+ interface Faction {
105
+ name: Capitalize<Lowercase<keyof typeof Factions>>;
106
+ type: keyof typeof Factions;
107
+ }
108
+ /**
109
+ * The standard structure to represent a World of Warcraft Realm.
110
+ */
111
+ interface Realm extends NameIdKey {
112
+ slug: string;
113
+ }
114
+
115
+ export { type Character, type Color, type Faction, Factions, type Gender, type GenderName, Genders, type Href, type KeyBase, type MediaAsset, type NameId, type NameIdKey, type Realm, type ResponseBase, base, mediaBase, searchBase };
package/dist/base.js ADDED
@@ -0,0 +1,3 @@
1
+ export { Factions, Genders, base, mediaBase, searchBase } from './chunk-LTJAQT2G.js';
2
+ //# sourceMappingURL=base.js.map
3
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"base.js"}