@blizzard-api/wow 3.0.6 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-CMDZfaJk.d.ts +161 -0
  108. package/dist/index-CP1gTrDv.d.ts +312 -0
  109. package/dist/index-CQXTvcKu2.d.ts +72 -0
  110. package/dist/index-CS_QQdEk.d.ts +22 -0
  111. package/dist/index-CWFif_SP2.d.ts +31 -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,72 @@
1
+ import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
2
+ //#region src/profession/index.ts
3
+ /**
4
+ * Get a profession by ID.
5
+ * @param professionId The profession ID.
6
+ * @returns The profession. See {@link ProfessionResponse}.
7
+ */
8
+ function profession(professionId) {
9
+ return {
10
+ namespace: "static",
11
+ path: `${wowBasePath}/profession/${professionId}`
12
+ };
13
+ }
14
+ /**
15
+ * Get a profession index.
16
+ * @returns The profession index. See {@link ProfessionIndexResponse}.
17
+ */
18
+ function professionIndex() {
19
+ return {
20
+ namespace: "static",
21
+ path: `${wowBasePath}/profession/index`
22
+ };
23
+ }
24
+ /**
25
+ * Get profession media by ID.
26
+ * @param professionId The profession ID.
27
+ * @returns The profession media. See {@link ProfessionMediaResponse}.
28
+ */
29
+ function professionMedia(professionId) {
30
+ return {
31
+ namespace: "static",
32
+ path: `${wowMediaBasePath}/profession/${professionId}`
33
+ };
34
+ }
35
+ /**
36
+ * Get a profession's skill tier by ID.
37
+ * @param professionId The profession ID.
38
+ * @param skillTierId The skill tier ID.
39
+ * @returns The profession's skill tier. See {@link ProfessionSkillTierResponse}.
40
+ */
41
+ function professionSkillTier(professionId, skillTierId) {
42
+ return {
43
+ namespace: "static",
44
+ path: `${wowBasePath}/profession/${professionId}/skill-tier/${skillTierId}`
45
+ };
46
+ }
47
+ /**
48
+ * Get a recipe by ID.
49
+ * @param recipeId The recipe ID.
50
+ * @returns The recipe. See {@link RecipeResponse}.
51
+ */
52
+ function recipe(recipeId) {
53
+ return {
54
+ namespace: "static",
55
+ path: `${wowBasePath}/recipe/${recipeId}`
56
+ };
57
+ }
58
+ /**
59
+ * Get recipe media by ID.
60
+ * @param recipeId The recipe ID.
61
+ * @returns The recipe media. See {@link RecipeMediaResponse}.
62
+ */
63
+ function recipeMedia(recipeId) {
64
+ return {
65
+ namespace: "static",
66
+ path: `${wowMediaBasePath}/recipe/${recipeId}`
67
+ };
68
+ }
69
+ //#endregion
70
+ export { profession, professionIndex, professionMedia, professionSkillTier, recipe, recipeMedia };
71
+
72
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/profession/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n ProfessionIndexResponse,\n ProfessionMediaResponse,\n ProfessionResponse,\n ProfessionSkillTierResponse,\n RecipeMediaResponse,\n RecipeResponse,\n} from './types';\n\n/**\n * Get a profession by ID.\n * @param professionId The profession ID.\n * @returns The profession. See {@link ProfessionResponse}.\n */\nexport function profession(professionId: number): Resource<ProfessionResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/profession/${professionId}`,\n };\n}\n/**\n * Get a profession index.\n * @returns The profession index. See {@link ProfessionIndexResponse}.\n */\nexport function professionIndex(): Resource<ProfessionIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/profession/index`,\n };\n}\n/**\n * Get profession media by ID.\n * @param professionId The profession ID.\n * @returns The profession media. See {@link ProfessionMediaResponse}.\n */\nexport function professionMedia(professionId: number): Resource<ProfessionMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/profession/${professionId}`,\n };\n}\n/**\n * Get a profession's skill tier by ID.\n * @param professionId The profession ID.\n * @param skillTierId The skill tier ID.\n * @returns The profession's skill tier. See {@link ProfessionSkillTierResponse}.\n */\nexport function professionSkillTier(professionId: number, skillTierId: number): Resource<ProfessionSkillTierResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/profession/${professionId}/skill-tier/${skillTierId}`,\n };\n}\n/**\n * Get a recipe by ID.\n * @param recipeId The recipe ID.\n * @returns The recipe. See {@link RecipeResponse}.\n */\nexport function recipe(recipeId: number): Resource<RecipeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/recipe/${recipeId}`,\n };\n}\n/**\n * Get recipe media by ID.\n * @param recipeId The recipe ID.\n * @returns The recipe media. See {@link RecipeMediaResponse}.\n */\nexport function recipeMedia(recipeId: number): Resource<RecipeMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/recipe/${recipeId}`,\n };\n}\n"],"mappings":";;;;;;;AAgBA,SAAgB,WAAW,cAAoD;CAC7E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc;EACpC;;;;;;AAMH,SAAgB,kBAAqD;CACnE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,gBAAgB,cAAyD;CACvF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,cAAc;EACzC;;;;;;;;AAQH,SAAgB,oBAAoB,cAAsB,aAA4D;CACpH,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc,aAAa,cAAc;EAC/D;;;;;;;AAOH,SAAgB,OAAO,UAA4C;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,UAAU;EAChC;;;;;;;AAOH,SAAgB,YAAY,UAAiD;CAC3E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,UAAU;EACrC"}
@@ -0,0 +1,2 @@
1
+ import { a as pvpSeasonIndex, i as pvpSeason, n as pvpLeaderboardIndex, r as pvpRewardsIndex, t as pvpLeaderboard } from "../index-Cry2-cm82.js";
2
+ export { pvpLeaderboard, pvpLeaderboardIndex, pvpRewardsIndex, pvpSeason, pvpSeasonIndex };
@@ -0,0 +1,61 @@
1
+ import { wowBasePath } from "@blizzard-api/core";
2
+ //#region src/pvp-season/index.ts
3
+ /**
4
+ * Get a PvP leaderboard by PvP season ID and bracket.
5
+ * @param pvpSeasonId The PvP season ID.
6
+ * @param bracket The PvP bracket.
7
+ * @returns The PvP leaderboard. See {@link PvpLeaderboardResponse}.
8
+ */
9
+ function pvpLeaderboard(pvpSeasonId, bracket) {
10
+ return {
11
+ namespace: "dynamic",
12
+ path: `${wowBasePath}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${bracket}`
13
+ };
14
+ }
15
+ /**
16
+ * Get a PvP leaderboard index by PvP season ID.
17
+ * @param pvpSeasonId The PvP season ID.
18
+ * @returns The PvP leaderboard index. See {@link PvpLeaderboardIndexResponse}.
19
+ */
20
+ function pvpLeaderboardIndex(pvpSeasonId) {
21
+ return {
22
+ namespace: "dynamic",
23
+ path: `${wowBasePath}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`
24
+ };
25
+ }
26
+ /**
27
+ * Get a PvP reward index by PvP season ID.
28
+ * @param pvpSeasonId The PvP season ID.
29
+ * @returns The PvP reward index. See {@link PvpRewardsIndexResponse}.
30
+ */
31
+ function pvpRewardsIndex(pvpSeasonId) {
32
+ return {
33
+ namespace: "dynamic",
34
+ path: `${wowBasePath}/pvp-season/${pvpSeasonId}/pvp-reward/index`
35
+ };
36
+ }
37
+ /**
38
+ * Get a PvP season by ID.
39
+ * @param pvpSeasonId The PvP season ID.
40
+ * @returns The PvP season. See {@link PvpSeasonResponse}.
41
+ */
42
+ function pvpSeason(pvpSeasonId) {
43
+ return {
44
+ namespace: "dynamic",
45
+ path: `${wowBasePath}/pvp-season/${pvpSeasonId}`
46
+ };
47
+ }
48
+ /**
49
+ * Get a PvP season index.
50
+ * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.
51
+ */
52
+ function pvpSeasonIndex() {
53
+ return {
54
+ namespace: "dynamic",
55
+ path: `${wowBasePath}/pvp-season/index`
56
+ };
57
+ }
58
+ //#endregion
59
+ export { pvpLeaderboard, pvpLeaderboardIndex, pvpRewardsIndex, pvpSeason, pvpSeasonIndex };
60
+
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/pvp-season/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n PvpLeaderboardIndexResponse,\n PvpLeaderboardResponse,\n PvpRewardsIndexResponse,\n PvpSeasonIndexResponse,\n PvpSeasonResponse,\n} from './types';\n\n/**\n * Get a PvP leaderboard by PvP season ID and bracket.\n * @param pvpSeasonId The PvP season ID.\n * @param bracket The PvP bracket.\n * @returns The PvP leaderboard. See {@link PvpLeaderboardResponse}.\n */\nexport function pvpLeaderboard(pvpSeasonId: number, bracket: string): Resource<PvpLeaderboardResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${bracket}`,\n };\n}\n/**\n * Get a PvP leaderboard index by PvP season ID.\n * @param pvpSeasonId The PvP season ID.\n * @returns The PvP leaderboard index. See {@link PvpLeaderboardIndexResponse}.\n */\nexport function pvpLeaderboardIndex(pvpSeasonId: number): Resource<PvpLeaderboardIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,\n };\n}\n/**\n * Get a PvP reward index by PvP season ID.\n * @param pvpSeasonId The PvP season ID.\n * @returns The PvP reward index. See {@link PvpRewardsIndexResponse}.\n */\nexport function pvpRewardsIndex(pvpSeasonId: number): Resource<PvpRewardsIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/pvp-season/${pvpSeasonId}/pvp-reward/index`,\n };\n}\n/**\n * Get a PvP season by ID.\n * @param pvpSeasonId The PvP season ID.\n * @returns The PvP season. See {@link PvpSeasonResponse}.\n */\nexport function pvpSeason(pvpSeasonId: number): Resource<PvpSeasonResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/pvp-season/${pvpSeasonId}`,\n };\n}\n/**\n * Get a PvP season index.\n * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.\n */\nexport function pvpSeasonIndex(): Resource<PvpSeasonIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/pvp-season/index`,\n };\n}\n"],"mappings":";;;;;;;;AAgBA,SAAgB,eAAe,aAAqB,SAAmD;CACrG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc,YAAY,mBAAmB;EACnE;;;;;;;AAOH,SAAgB,oBAAoB,aAA4D;CAC9F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc,YAAY;EAChD;;;;;;;AAOH,SAAgB,gBAAgB,aAAwD;CACtF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc,YAAY;EAChD;;;;;;;AAOH,SAAgB,UAAU,aAAkD;CAC1E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc;EACpC;;;;;;AAMH,SAAgB,iBAAmD;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB"}
@@ -0,0 +1,2 @@
1
+ import { n as pvpTierIndex, r as pvpTierMedia, t as pvpTier } from "../index-BgkVcJkr2.js";
2
+ export { pvpTier, pvpTierIndex, pvpTierMedia };
@@ -0,0 +1,38 @@
1
+ import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
2
+ //#region src/pvp-tier/index.ts
3
+ /**
4
+ * Get a PvP tier by ID.
5
+ * @param pvpTierId The PvP tier ID.
6
+ * @returns The PvP tier. See {@link PvpTierResponse}.
7
+ */
8
+ function pvpTier(pvpTierId) {
9
+ return {
10
+ namespace: "static",
11
+ path: `${wowBasePath}/pvp-tier/${pvpTierId}`
12
+ };
13
+ }
14
+ /**
15
+ * Get a PvP tier index.
16
+ * @returns The PvP tier index. See {@link PvpTierIndexResponse}.
17
+ */
18
+ function pvpTierIndex() {
19
+ return {
20
+ namespace: "static",
21
+ path: `${wowBasePath}/pvp-tier/index`
22
+ };
23
+ }
24
+ /**
25
+ * Get PvP tier media by ID.
26
+ * @param pvpTierId The PvP tier ID.
27
+ * @returns The PvP tier media. See {@link PvpTierMediaResponse}.
28
+ */
29
+ function pvpTierMedia(pvpTierId) {
30
+ return {
31
+ namespace: "static",
32
+ path: `${wowMediaBasePath}/pvp-tier/${pvpTierId}`
33
+ };
34
+ }
35
+ //#endregion
36
+ export { pvpTier, pvpTierIndex, pvpTierMedia };
37
+
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/pvp-tier/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type { PvpTierIndexResponse, PvpTierMediaResponse, PvpTierResponse } from './types';\n\n/**\n * Get a PvP tier by ID.\n * @param pvpTierId The PvP tier ID.\n * @returns The PvP tier. See {@link PvpTierResponse}.\n */\nexport function pvpTier(pvpTierId: number): Resource<PvpTierResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pvp-tier/${pvpTierId}`,\n };\n}\n/**\n * Get a PvP tier index.\n * @returns The PvP tier index. See {@link PvpTierIndexResponse}.\n */\nexport function pvpTierIndex(): Resource<PvpTierIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pvp-tier/index`,\n };\n}\n/**\n * Get PvP tier media by ID.\n * @param pvpTierId The PvP tier ID.\n * @returns The PvP tier media. See {@link PvpTierMediaResponse}.\n */\nexport function pvpTierMedia(pvpTierId: number): Resource<PvpTierMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/pvp-tier/${pvpTierId}`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,QAAQ,WAA8C;CACpE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,YAAY;EAClC;;;;;;AAMH,SAAgB,eAA+C;CAC7D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,aAAa,WAAmD;CAC9E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,YAAY;EACvC"}
@@ -0,0 +1,2 @@
1
+ import { a as questCategoryIndex, c as questTypeIndex, i as questCategory, n as questArea, o as questIndex, r as questAreaIndex, s as questType, t as quest } from "../index-BXawY6VA2.js";
2
+ export { quest, questArea, questAreaIndex, questCategory, questCategoryIndex, questIndex, questType, questTypeIndex };
@@ -0,0 +1,90 @@
1
+ import { wowBasePath } from "@blizzard-api/core";
2
+ //#region src/quest/index.ts
3
+ /**
4
+ * Get a quest by ID.
5
+ * @param questId The quest ID.
6
+ * @returns The quest. See {@link QuestResponse}.
7
+ */
8
+ function quest(questId) {
9
+ return {
10
+ namespace: "static",
11
+ path: `${wowBasePath}/quest/${questId}`
12
+ };
13
+ }
14
+ /**
15
+ * Get a quest area by ID.
16
+ * @param questAreaId The quest area ID.
17
+ * @returns The quest area. See {@link QuestAreaResponse}.
18
+ */
19
+ function questArea(questAreaId) {
20
+ return {
21
+ namespace: "static",
22
+ path: `${wowBasePath}/quest/area/${questAreaId}`
23
+ };
24
+ }
25
+ /**
26
+ * Get a quest area index.
27
+ * @returns The quest area index. See {@link QuestAreaIndexResponse}.
28
+ */
29
+ function questAreaIndex() {
30
+ return {
31
+ namespace: "static",
32
+ path: `${wowBasePath}/quest/area/index`
33
+ };
34
+ }
35
+ /**
36
+ * Get a quest category by ID.
37
+ * @param questCategoryId The quest category ID.
38
+ * @returns The quest category. See {@link QuestCategoryResponse}.
39
+ */
40
+ function questCategory(questCategoryId) {
41
+ return {
42
+ namespace: "static",
43
+ path: `${wowBasePath}/quest/category/${questCategoryId}`
44
+ };
45
+ }
46
+ /**
47
+ * Get a quest category index.
48
+ * @returns The quest category index. See {@link QuestCategoryIndexResponse}.
49
+ */
50
+ function questCategoryIndex() {
51
+ return {
52
+ namespace: "static",
53
+ path: `${wowBasePath}/quest/category/index`
54
+ };
55
+ }
56
+ /**
57
+ * Get a quest index.
58
+ * @returns The quest index. See {@link QuestIndexResponse}.
59
+ */
60
+ function questIndex() {
61
+ return {
62
+ namespace: "static",
63
+ path: `${wowBasePath}/quest/index`
64
+ };
65
+ }
66
+ /**
67
+ * Get a quest type by ID.
68
+ * @param questTypeId The quest type ID.
69
+ * @returns The quest type. See {@link QuestTypeResponse}.
70
+ */
71
+ function questType(questTypeId) {
72
+ return {
73
+ namespace: "static",
74
+ path: `${wowBasePath}/quest/type/${questTypeId}`
75
+ };
76
+ }
77
+ /**
78
+ * Get a quest type index.
79
+ * @returns The quest type index. See {@link QuestTypeIndexResponse}.
80
+ */
81
+ function questTypeIndex() {
82
+ return {
83
+ namespace: "static",
84
+ path: `${wowBasePath}/quest/type/index`
85
+ };
86
+ }
87
+ //#endregion
88
+ export { quest, questArea, questAreaIndex, questCategory, questCategoryIndex, questIndex, questType, questTypeIndex };
89
+
90
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/quest/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n QuestAreaIndexResponse,\n QuestAreaResponse,\n QuestCategoryIndexResponse,\n QuestCategoryResponse,\n QuestIndexResponse,\n QuestResponse,\n QuestTypeIndexResponse,\n QuestTypeResponse,\n} from './types';\n\n/**\n * Get a quest by ID.\n * @param questId The quest ID.\n * @returns The quest. See {@link QuestResponse}.\n */\nexport function quest(questId: number): Resource<QuestResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/quest/${questId}`,\n };\n}\n/**\n * Get a quest area by ID.\n * @param questAreaId The quest area ID.\n * @returns The quest area. See {@link QuestAreaResponse}.\n */\nexport function questArea(questAreaId: number): Resource<QuestAreaResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/quest/area/${questAreaId}`,\n };\n}\n/**\n * Get a quest area index.\n * @returns The quest area index. See {@link QuestAreaIndexResponse}.\n */\nexport function questAreaIndex(): Resource<QuestAreaIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/quest/area/index`,\n };\n}\n/**\n * Get a quest category by ID.\n * @param questCategoryId The quest category ID.\n * @returns The quest category. See {@link QuestCategoryResponse}.\n */\nexport function questCategory(questCategoryId: number): Resource<QuestCategoryResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/quest/category/${questCategoryId}`,\n };\n}\n/**\n * Get a quest category index.\n * @returns The quest category index. See {@link QuestCategoryIndexResponse}.\n */\nexport function questCategoryIndex(): Resource<QuestCategoryIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/quest/category/index`,\n };\n}\n/**\n * Get a quest index.\n * @returns The quest index. See {@link QuestIndexResponse}.\n */\nexport function questIndex(): Resource<QuestIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/quest/index`,\n };\n}\n/**\n * Get a quest type by ID.\n * @param questTypeId The quest type ID.\n * @returns The quest type. See {@link QuestTypeResponse}.\n */\nexport function questType(questTypeId: number): Resource<QuestTypeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/quest/type/${questTypeId}`,\n };\n}\n/**\n * Get a quest type index.\n * @returns The quest type index. See {@link QuestTypeIndexResponse}.\n */\nexport function questTypeIndex(): Resource<QuestTypeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/quest/type/index`,\n };\n}\n"],"mappings":";;;;;;;AAkBA,SAAgB,MAAM,SAA0C;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS;EAC/B;;;;;;;AAOH,SAAgB,UAAU,aAAkD;CAC1E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc;EACpC;;;;;;AAMH,SAAgB,iBAAmD;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,cAAc,iBAA0D;CACtF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,kBAAkB;EACxC;;;;;;AAMH,SAAgB,qBAA2D;CACzE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;AAMH,SAAgB,aAA2C;CACzD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,UAAU,aAAkD;CAC1E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc;EACpC;;;;;;AAMH,SAAgB,iBAAmD;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB"}
@@ -0,0 +1,24 @@
1
+ import { a as RealmSearchParameters, i as RealmResponse, n as RealmIndexResponse, o as RealmSearchResponse } from "../types-Z0ZgMUXA.js";
2
+ import { Resource } from "@blizzard-api/core";
3
+
4
+ //#region src/realm/index.d.ts
5
+ /**
6
+ * Get a realm by slug.
7
+ * @param realmSlug The realm slug.
8
+ * @returns The realm. See {@link RealmResponse}.
9
+ */
10
+ declare function realm(realmSlug: string): Resource<RealmResponse>;
11
+ /**
12
+ * Get a realm index.
13
+ * @returns The realm index. See {@link RealmIndexResponse}.
14
+ */
15
+ declare function realmIndex(): Resource<RealmIndexResponse>;
16
+ /**
17
+ * Search for realms.
18
+ * @param options The search parameters. See {@link RealmSearchParameters}.
19
+ * @returns The search results. See {@link RealmSearchResponse}.
20
+ */
21
+ declare function realmSearch(options: RealmSearchParameters): Resource<RealmSearchResponse, RealmSearchParameters>;
22
+ //#endregion
23
+ export { realm, realmIndex, realmSearch };
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,43 @@
1
+ import { wowBasePath, wowSearchBasePath } from "@blizzard-api/core";
2
+ //#region src/realm/index.ts
3
+ /**
4
+ * Get a realm by slug.
5
+ * @param realmSlug The realm slug.
6
+ * @returns The realm. See {@link RealmResponse}.
7
+ */
8
+ function realm(realmSlug) {
9
+ return {
10
+ namespace: "dynamic",
11
+ path: `${wowBasePath}/realm/${realmSlug}`
12
+ };
13
+ }
14
+ /**
15
+ * Get a realm index.
16
+ * @returns The realm index. See {@link RealmIndexResponse}.
17
+ */
18
+ function realmIndex() {
19
+ return {
20
+ namespace: "dynamic",
21
+ path: `${wowBasePath}/realm/index`
22
+ };
23
+ }
24
+ /**
25
+ * Search for realms.
26
+ * @param options The search parameters. See {@link RealmSearchParameters}.
27
+ * @returns The search results. See {@link RealmSearchResponse}.
28
+ */
29
+ function realmSearch(options) {
30
+ return {
31
+ namespace: "dynamic",
32
+ parameters: {
33
+ _page: options._page,
34
+ orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
35
+ timezone: options.timezone
36
+ },
37
+ path: `${wowSearchBasePath}/realm`
38
+ };
39
+ }
40
+ //#endregion
41
+ export { realm, realmIndex, realmSearch };
42
+
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/realm/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { RealmIndexResponse, RealmResponse, RealmSearchParameters, RealmSearchResponse } from './types';\n\n/**\n * Get a realm by slug.\n * @param realmSlug The realm slug.\n * @returns The realm. See {@link RealmResponse}.\n */\nexport function realm(realmSlug: string): Resource<RealmResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/realm/${realmSlug}`,\n };\n}\n/**\n * Get a realm index.\n * @returns The realm index. See {@link RealmIndexResponse}.\n */\nexport function realmIndex(): Resource<RealmIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/realm/index`,\n };\n}\n/**\n * Search for realms.\n * @param options The search parameters. See {@link RealmSearchParameters}.\n * @returns The search results. See {@link RealmSearchResponse}.\n */\nexport function realmSearch(options: RealmSearchParameters): Resource<RealmSearchResponse, RealmSearchParameters> {\n return {\n namespace: 'dynamic',\n parameters: {\n _page: options._page,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n timezone: options.timezone,\n },\n path: `${wowSearchBasePath}/realm`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,MAAM,WAA4C;CAChE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS;EAC/B;;;;;;AAMH,SAAgB,aAA2C;CACzD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,YAAY,SAAsF;CAChH,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;GACf,SAAS,MAAM,QAAQ,QAAQ,QAAQ,GAAG,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ;GAC9E,UAAU,QAAQ;GACnB;EACD,MAAM,GAAG,kBAAkB;EAC5B"}
@@ -0,0 +1,2 @@
1
+ import { n as regionIndex, t as region } from "../index-2xjdPrIp.js";
2
+ export { region, regionIndex };
@@ -0,0 +1,27 @@
1
+ import { wowBasePath } from "@blizzard-api/core";
2
+ //#region src/region/index.ts
3
+ /**
4
+ * Get a region by ID.
5
+ * @param regionId The region ID.
6
+ * @returns The region. See {@link RegionResponse}.
7
+ */
8
+ function region(regionId) {
9
+ return {
10
+ namespace: "dynamic",
11
+ path: `${wowBasePath}/region/${regionId}`
12
+ };
13
+ }
14
+ /**
15
+ * Get a region index.
16
+ * @returns The region index. See {@link RegionIndexResponse}.
17
+ */
18
+ function regionIndex() {
19
+ return {
20
+ namespace: "dynamic",
21
+ path: `${wowBasePath}/region/index`
22
+ };
23
+ }
24
+ //#endregion
25
+ export { region, regionIndex };
26
+
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/region/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { RegionIndexResponse, RegionResponse } from './types';\n\n/**\n * Get a region by ID.\n * @param regionId The region ID.\n * @returns The region. See {@link RegionResponse}.\n */\nexport function region(regionId: number): Resource<RegionResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/region/${regionId}`,\n };\n}\n/**\n * Get a region index.\n * @returns The region index. See {@link RegionIndexResponse}.\n */\nexport function regionIndex(): Resource<RegionIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/region/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,OAAO,UAA4C;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,UAAU;EAChC;;;;;;AAMH,SAAgB,cAA6C;CAC3D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB"}
@@ -0,0 +1,2 @@
1
+ import { i as reputationTiersIndex, n as reputationFactionIndex, r as reputationTiers, t as reputationFaction } from "../index-SfMQ7bBi2.js";
2
+ export { reputationFaction, reputationFactionIndex, reputationTiers, reputationTiersIndex };
@@ -0,0 +1,48 @@
1
+ import { wowBasePath } from "@blizzard-api/core";
2
+ //#region src/reputations/index.ts
3
+ /**
4
+ * Get a reputation faction by ID.
5
+ * @param reputationFactionId The reputation faction ID.
6
+ * @returns The reputation faction. See {@link ReputationFactionResponse}.
7
+ */
8
+ function reputationFaction(reputationFactionId) {
9
+ return {
10
+ namespace: "static",
11
+ path: `${wowBasePath}/reputation-faction/${reputationFactionId}`
12
+ };
13
+ }
14
+ /**
15
+ * Get a reputation faction index.
16
+ * @returns The reputation faction index. See {@link ReputationFactionIndexResponse}.
17
+ */
18
+ function reputationFactionIndex() {
19
+ return {
20
+ namespace: "static",
21
+ path: `${wowBasePath}/reputation-faction/index`
22
+ };
23
+ }
24
+ /**
25
+ * Get a reputation tier by ID.
26
+ * @param reputationTiersId The reputation tier ID.
27
+ * @returns The reputation tier. See {@link ReputationTiersResponse}.
28
+ */
29
+ function reputationTiers(reputationTiersId) {
30
+ return {
31
+ namespace: "static",
32
+ path: `${wowBasePath}/reputation-tiers/${reputationTiersId}`
33
+ };
34
+ }
35
+ /**
36
+ * Get a reputation tier index.
37
+ * @returns The reputation tier index. See {@link ReputationTiersIndexResponse}.
38
+ */
39
+ function reputationTiersIndex() {
40
+ return {
41
+ namespace: "static",
42
+ path: `${wowBasePath}/reputation-tiers/index`
43
+ };
44
+ }
45
+ //#endregion
46
+ export { reputationFaction, reputationFactionIndex, reputationTiers, reputationTiersIndex };
47
+
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/reputations/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n ReputationFactionIndexResponse,\n ReputationFactionResponse,\n ReputationTiersIndexResponse,\n ReputationTiersResponse,\n} from './types';\n\n/**\n * Get a reputation faction by ID.\n * @param reputationFactionId The reputation faction ID.\n * @returns The reputation faction. See {@link ReputationFactionResponse}.\n */\nexport function reputationFaction(reputationFactionId: number): Resource<ReputationFactionResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/reputation-faction/${reputationFactionId}`,\n };\n}\n/**\n * Get a reputation faction index.\n * @returns The reputation faction index. See {@link ReputationFactionIndexResponse}.\n */\nexport function reputationFactionIndex(): Resource<ReputationFactionIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/reputation-faction/index`,\n };\n}\n/**\n * Get a reputation tier by ID.\n * @param reputationTiersId The reputation tier ID.\n * @returns The reputation tier. See {@link ReputationTiersResponse}.\n */\nexport function reputationTiers(reputationTiersId: number): Resource<ReputationTiersResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/reputation-tiers/${reputationTiersId}`,\n };\n}\n/**\n * Get a reputation tier index.\n * @returns The reputation tier index. See {@link ReputationTiersIndexResponse}.\n */\nexport function reputationTiersIndex(): Resource<ReputationTiersIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/reputation-tiers/index`,\n };\n}\n"],"mappings":";;;;;;;AAcA,SAAgB,kBAAkB,qBAAkE;CAClG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,sBAAsB;EAC5C;;;;;;AAMH,SAAgB,yBAAmE;CACjF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,gBAAgB,mBAA8D;CAC5F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,oBAAoB;EAC1C;;;;;;AAMH,SAAgB,uBAA+D;CAC7E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB"}
@@ -0,0 +1,2 @@
1
+ import { n as spellMedia, r as spellSearch, t as spell } from "../index-Cto5KQ-A2.js";
2
+ export { spell, spellMedia, spellSearch };
@@ -0,0 +1,44 @@
1
+ import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from "@blizzard-api/core";
2
+ //#region src/spell/index.ts
3
+ /**
4
+ * Get a spell by ID.
5
+ * @param spellId The spell ID.
6
+ * @returns The spell. See {@link SpellResponse}.
7
+ */
8
+ function spell(spellId) {
9
+ return {
10
+ namespace: "static",
11
+ path: `${wowBasePath}/spell/${spellId}`
12
+ };
13
+ }
14
+ /**
15
+ * Get spell media by ID.
16
+ * @param spellId The spell ID.
17
+ * @returns The spell media. See {@link SpellMediaResponse}.
18
+ */
19
+ function spellMedia(spellId) {
20
+ return {
21
+ namespace: "static",
22
+ path: `${wowMediaBasePath}/spell/${spellId}`
23
+ };
24
+ }
25
+ /**
26
+ * Get a spell search.
27
+ * @param options The spell search options. See {@link SpellSearchParameters}.
28
+ * @returns The spell search. See {@link SpellSearchResponse}.
29
+ */
30
+ function spellSearch(options) {
31
+ return {
32
+ namespace: "static",
33
+ parameters: {
34
+ _page: options._page,
35
+ [`name.${options.locale}`]: options.name,
36
+ orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
37
+ },
38
+ path: `${wowSearchBasePath}/spell`
39
+ };
40
+ }
41
+ //#endregion
42
+ export { spell, spellMedia, spellSearch };
43
+
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/spell/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { SpellMediaResponse, SpellResponse, SpellSearchParameters, SpellSearchResponse } from './types';\n\n/**\n * Get a spell by ID.\n * @param spellId The spell ID.\n * @returns The spell. See {@link SpellResponse}.\n */\nexport function spell(spellId: number): Resource<SpellResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/spell/${spellId}`,\n };\n}\n/**\n * Get spell media by ID.\n * @param spellId The spell ID.\n * @returns The spell media. See {@link SpellMediaResponse}.\n */\nexport function spellMedia(spellId: number): Resource<SpellMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/spell/${spellId}`,\n };\n}\n/**\n * Get a spell search.\n * @param options The spell search options. See {@link SpellSearchParameters}.\n * @returns The spell search. See {@link SpellSearchResponse}.\n */\nexport function spellSearch(\n options: SpellSearchParameters,\n): Resource<SpellSearchResponse, Omit<SpellSearchParameters, 'locale' | 'name'>> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n [`name.${options.locale}`]: options.name,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/spell`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,MAAM,SAA0C;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS;EAC/B;;;;;;;AAOH,SAAgB,WAAW,SAA+C;CACxE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,SAAS;EACpC;;;;;;;AAOH,SAAgB,YACd,SAC+E;CAC/E,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,QAAQ,GAAG,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ;GAC/E;EACD,MAAM,GAAG,kBAAkB;EAC5B"}
@@ -0,0 +1,2 @@
1
+ import { a as talentTree, i as talentIndex, n as pvpTalentIndex, o as talentTreeIndex, r as talent, s as talentTreeNodes, t as pvpTalent } from "../index-BOz0BCUN2.js";
2
+ export { pvpTalent, pvpTalentIndex, talent, talentIndex, talentTree, talentTreeIndex, talentTreeNodes };
@@ -0,0 +1,81 @@
1
+ import { wowBasePath } from "@blizzard-api/core";
2
+ //#region src/talent/index.ts
3
+ /**
4
+ * Get a PvP talent by ID.
5
+ * @param pvpTalentId The PvP talent ID.
6
+ * @returns The PvP talent. See {@link PvpTalentResponse}.
7
+ */
8
+ function pvpTalent(pvpTalentId) {
9
+ return {
10
+ namespace: "static",
11
+ path: `${wowBasePath}/pvp-talent/${pvpTalentId}`
12
+ };
13
+ }
14
+ /**
15
+ * Get a PvP talent index.
16
+ * @returns The PvP talent index. See {@link PvpTalentIndexResponse}.
17
+ */
18
+ function pvpTalentIndex() {
19
+ return {
20
+ namespace: "static",
21
+ path: `${wowBasePath}/pvp-talent/index`
22
+ };
23
+ }
24
+ /**
25
+ * Get a talent by ID.
26
+ * @param talentId The talent ID.
27
+ * @returns The talent. See {@link TalentResponse}.
28
+ */
29
+ function talent(talentId) {
30
+ return {
31
+ namespace: "static",
32
+ path: `${wowBasePath}/talent/${talentId}`
33
+ };
34
+ }
35
+ /**
36
+ * Get a talent index.
37
+ * @returns The talent index. See {@link TalentIndexResponse}.
38
+ */
39
+ function talentIndex() {
40
+ return {
41
+ namespace: "static",
42
+ path: `${wowBasePath}/talent/index`
43
+ };
44
+ }
45
+ /**
46
+ * Get a talent tree by ID.
47
+ * @param talentTreeId The talent tree ID.
48
+ * @param specId The playable specialization ID.
49
+ * @returns The talent tree. See {@link TalentTreeResponse}.
50
+ */
51
+ function talentTree(talentTreeId, specId) {
52
+ return {
53
+ namespace: "static",
54
+ path: `${wowBasePath}/talent-tree/${talentTreeId}/playable-specialization/${specId}`
55
+ };
56
+ }
57
+ /**
58
+ * Get a talent tree index.
59
+ * @returns The talent tree index. See {@link TalentTreeIndexResponse}.
60
+ */
61
+ function talentTreeIndex() {
62
+ return {
63
+ namespace: "static",
64
+ path: `${wowBasePath}/talent-tree/index`
65
+ };
66
+ }
67
+ /**
68
+ * Get talent tree nodes by talent tree ID.
69
+ * @param talentTreeId The talent tree ID.
70
+ * @returns The talent tree nodes. See {@link TalentTreeNodesResponse}.
71
+ */
72
+ function talentTreeNodes(talentTreeId) {
73
+ return {
74
+ namespace: "static",
75
+ path: `${wowBasePath}/talent-tree/${talentTreeId}`
76
+ };
77
+ }
78
+ //#endregion
79
+ export { pvpTalent, pvpTalentIndex, talent, talentIndex, talentTree, talentTreeIndex, talentTreeNodes };
80
+
81
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/talent/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n PvpTalentIndexResponse,\n PvpTalentResponse,\n TalentIndexResponse,\n TalentResponse,\n TalentTreeIndexResponse,\n TalentTreeNodesResponse,\n TalentTreeResponse,\n} from './types';\n\n/**\n * Get a PvP talent by ID.\n * @param pvpTalentId The PvP talent ID.\n * @returns The PvP talent. See {@link PvpTalentResponse}.\n */\nexport function pvpTalent(pvpTalentId: number): Resource<PvpTalentResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pvp-talent/${pvpTalentId}`,\n };\n}\n/**\n * Get a PvP talent index.\n * @returns The PvP talent index. See {@link PvpTalentIndexResponse}.\n */\nexport function pvpTalentIndex(): Resource<PvpTalentIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pvp-talent/index`,\n };\n}\n/**\n * Get a talent by ID.\n * @param talentId The talent ID.\n * @returns The talent. See {@link TalentResponse}.\n */\nexport function talent(talentId: number): Resource<TalentResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent/${talentId}`,\n };\n}\n/**\n * Get a talent index.\n * @returns The talent index. See {@link TalentIndexResponse}.\n */\nexport function talentIndex(): Resource<TalentIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent/index`,\n };\n}\n/**\n * Get a talent tree by ID.\n * @param talentTreeId The talent tree ID.\n * @param specId The playable specialization ID.\n * @returns The talent tree. See {@link TalentTreeResponse}.\n */\nexport function talentTree(talentTreeId: number, specId: number): Resource<TalentTreeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent-tree/${talentTreeId}/playable-specialization/${specId}`,\n };\n}\n/**\n * Get a talent tree index.\n * @returns The talent tree index. See {@link TalentTreeIndexResponse}.\n */\nexport function talentTreeIndex(): Resource<TalentTreeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent-tree/index`,\n };\n}\n/**\n * Get talent tree nodes by talent tree ID.\n * @param talentTreeId The talent tree ID.\n * @returns The talent tree nodes. See {@link TalentTreeNodesResponse}.\n */\nexport function talentTreeNodes(talentTreeId: number): Resource<TalentTreeNodesResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/talent-tree/${talentTreeId}`,\n };\n}\n"],"mappings":";;;;;;;AAiBA,SAAgB,UAAU,aAAkD;CAC1E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc;EACpC;;;;;;AAMH,SAAgB,iBAAmD;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,OAAO,UAA4C;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,UAAU;EAChC;;;;;;AAMH,SAAgB,cAA6C;CAC3D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;;AAQH,SAAgB,WAAW,cAAsB,QAA8C;CAC7F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,eAAe,aAAa,2BAA2B;EAC7E;;;;;;AAMH,SAAgB,kBAAqD;CACnE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,gBAAgB,cAAyD;CACvF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,eAAe;EACrC"}
@@ -0,0 +1,2 @@
1
+ import { a as techTalentTreeIndex, i as techTalentTree, n as techTalentIndex, r as techTalentMedia, t as techTalent } from "../index-B_OrLUY42.js";
2
+ export { techTalent, techTalentIndex, techTalentMedia, techTalentTree, techTalentTreeIndex };