@blizzard-api/wow 4.2.1 → 4.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/account-profile/index.d.ts +1 -1
  2. package/dist/account-profile/index.js +9 -9
  3. package/dist/account-profile/index.js.map +1 -1
  4. package/dist/achievements/index.js +3 -3
  5. package/dist/achievements/index.js.map +1 -1
  6. package/dist/auction-house/index.js +1 -1
  7. package/dist/auction-house/index.js.map +1 -1
  8. package/dist/azerite-essence/index.js +2 -2
  9. package/dist/azerite-essence/index.js.map +1 -1
  10. package/dist/character-achievements/index.js +2 -2
  11. package/dist/character-achievements/index.js.map +1 -1
  12. package/dist/character-appearance/index.js +1 -1
  13. package/dist/character-appearance/index.js.map +1 -1
  14. package/dist/character-collections/index.js +7 -7
  15. package/dist/character-collections/index.js.map +1 -1
  16. package/dist/character-encounters/index.js +3 -3
  17. package/dist/character-encounters/index.js.map +1 -1
  18. package/dist/character-equipment/index.js +1 -1
  19. package/dist/character-equipment/index.js.map +1 -1
  20. package/dist/character-house/index.js +1 -1
  21. package/dist/character-house/index.js.map +1 -1
  22. package/dist/character-hunter-pets/index.js +1 -1
  23. package/dist/character-hunter-pets/index.js.map +1 -1
  24. package/dist/character-media/index.js +1 -1
  25. package/dist/character-media/index.js.map +1 -1
  26. package/dist/character-mythic-keystone-profile/index.js +2 -2
  27. package/dist/character-mythic-keystone-profile/index.js.map +1 -1
  28. package/dist/character-professions/index.js +1 -1
  29. package/dist/character-professions/index.js.map +1 -1
  30. package/dist/character-profile/index.js +2 -2
  31. package/dist/character-profile/index.js.map +1 -1
  32. package/dist/character-pvp/index.js +2 -2
  33. package/dist/character-pvp/index.js.map +1 -1
  34. package/dist/character-quests/index.js +2 -2
  35. package/dist/character-quests/index.js.map +1 -1
  36. package/dist/character-reputations/index.js +1 -1
  37. package/dist/character-reputations/index.js.map +1 -1
  38. package/dist/character-soulbinds/index.js +1 -1
  39. package/dist/character-soulbinds/index.js.map +1 -1
  40. package/dist/character-specializations/index.js +1 -1
  41. package/dist/character-specializations/index.js.map +1 -1
  42. package/dist/character-statistics/index.js +1 -1
  43. package/dist/character-statistics/index.js.map +1 -1
  44. package/dist/character-titles/index.js +1 -1
  45. package/dist/character-titles/index.js.map +1 -1
  46. package/dist/connected-realm/index.js +1 -1
  47. package/dist/connected-realm/index.js.map +1 -1
  48. package/dist/covenant/index.js +4 -4
  49. package/dist/covenant/index.js.map +1 -1
  50. package/dist/creature/index.js +5 -5
  51. package/dist/creature/index.js.map +1 -1
  52. package/dist/guild/index.js +4 -4
  53. package/dist/guild/index.js.map +1 -1
  54. package/dist/guild-crest/index.js +2 -2
  55. package/dist/guild-crest/index.js.map +1 -1
  56. package/dist/heirloom/index.js +1 -1
  57. package/dist/heirloom/index.js.map +1 -1
  58. package/dist/housing-decor/index.js +4 -4
  59. package/dist/housing-decor/index.js.map +1 -1
  60. package/dist/{index-DyhS61bj.d.ts → index-Cqlff6vd.d.ts} +3 -3
  61. package/dist/{index-FuJJlGI3.d.ts → index-V1Na_uH5.d.ts} +17 -17
  62. package/dist/index.d.ts +2 -2
  63. package/dist/item/index.js +5 -5
  64. package/dist/item/index.js.map +1 -1
  65. package/dist/item-appearance/index.js +3 -3
  66. package/dist/item-appearance/index.js.map +1 -1
  67. package/dist/journal/index.js +4 -4
  68. package/dist/journal/index.js.map +1 -1
  69. package/dist/modified-crafting/index.js +2 -2
  70. package/dist/modified-crafting/index.js.map +1 -1
  71. package/dist/mount/index.js +1 -1
  72. package/dist/mount/index.js.map +1 -1
  73. package/dist/mythic-keystone-affix/index.js +2 -2
  74. package/dist/mythic-keystone-affix/index.js.map +1 -1
  75. package/dist/mythic-keystone-dungeon/index.js +3 -3
  76. package/dist/mythic-keystone-dungeon/index.js.map +1 -1
  77. package/dist/mythic-keystone-leaderboard/index.js +2 -2
  78. package/dist/mythic-keystone-leaderboard/index.js.map +1 -1
  79. package/dist/mythic-raid-leaderboard/index.js +1 -1
  80. package/dist/mythic-raid-leaderboard/index.js.map +1 -1
  81. package/dist/neighborhood-map/index.js +2 -2
  82. package/dist/neighborhood-map/index.js.map +1 -1
  83. package/dist/pet/index.js +4 -4
  84. package/dist/pet/index.js.map +1 -1
  85. package/dist/playable-class/index.js +3 -3
  86. package/dist/playable-class/index.js.map +1 -1
  87. package/dist/playable-race/index.js +1 -1
  88. package/dist/playable-race/index.js.map +1 -1
  89. package/dist/playable-specialization/index.js +2 -2
  90. package/dist/playable-specialization/index.js.map +1 -1
  91. package/dist/power-type/index.js +1 -1
  92. package/dist/power-type/index.js.map +1 -1
  93. package/dist/profession/index.js +5 -5
  94. package/dist/profession/index.js.map +1 -1
  95. package/dist/pvp-season/index.js +4 -4
  96. package/dist/pvp-season/index.js.map +1 -1
  97. package/dist/pvp-tier/index.js +2 -2
  98. package/dist/pvp-tier/index.js.map +1 -1
  99. package/dist/quest/index.d.ts +1 -1
  100. package/dist/quest/index.js +4 -4
  101. package/dist/quest/index.js.map +1 -1
  102. package/dist/realm/index.js +1 -1
  103. package/dist/realm/index.js.map +1 -1
  104. package/dist/region/index.js +1 -1
  105. package/dist/region/index.js.map +1 -1
  106. package/dist/reputations/index.js +2 -2
  107. package/dist/reputations/index.js.map +1 -1
  108. package/dist/spell/index.js +2 -2
  109. package/dist/spell/index.js.map +1 -1
  110. package/dist/talent/index.js +4 -4
  111. package/dist/talent/index.js.map +1 -1
  112. package/dist/tech-talent/index.js +3 -3
  113. package/dist/tech-talent/index.js.map +1 -1
  114. package/dist/title/index.js +1 -1
  115. package/dist/title/index.js.map +1 -1
  116. package/dist/toy/index.js +1 -1
  117. package/dist/toy/index.js.map +1 -1
  118. package/package.json +3 -3
@@ -8,7 +8,7 @@ import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from "@blizzard-api/
8
8
  function item(itemId) {
9
9
  return {
10
10
  namespace: "static",
11
- path: `${wowBasePath}/item/${itemId}`
11
+ path: `${wowBasePath}/item/${encodeURIComponent(itemId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -19,7 +19,7 @@ function item(itemId) {
19
19
  function itemClass(itemClassId) {
20
20
  return {
21
21
  namespace: "static",
22
- path: `${wowBasePath}/item-class/${itemClassId}`
22
+ path: `${wowBasePath}/item-class/${encodeURIComponent(itemClassId)}`
23
23
  };
24
24
  }
25
25
  /**
@@ -40,7 +40,7 @@ function itemClassIndex() {
40
40
  function itemMedia(itemId) {
41
41
  return {
42
42
  namespace: "static",
43
- path: `${wowMediaBasePath}/item/${itemId}`
43
+ path: `${wowMediaBasePath}/item/${encodeURIComponent(itemId)}`
44
44
  };
45
45
  }
46
46
  /**
@@ -67,7 +67,7 @@ function itemSearch(options) {
67
67
  function itemSet(itemSetId) {
68
68
  return {
69
69
  namespace: "static",
70
- path: `${wowBasePath}/item-set/${itemSetId}`
70
+ path: `${wowBasePath}/item-set/${encodeURIComponent(itemSetId)}`
71
71
  };
72
72
  }
73
73
  /**
@@ -89,7 +89,7 @@ function itemSetIndex() {
89
89
  function itemSubclass(itemClassId, itemSubclassId) {
90
90
  return {
91
91
  namespace: "static",
92
- path: `${wowBasePath}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`
92
+ path: `${wowBasePath}/item-class/${encodeURIComponent(itemClassId)}/item-subclass/${encodeURIComponent(itemSubclassId)}`
93
93
  };
94
94
  }
95
95
  export { item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSet, itemSetIndex, itemSubclass };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/item/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type {\n ItemClassIndexResponse,\n ItemClassResponse,\n ItemMediaResponse,\n ItemResponse,\n ItemSearchParameters,\n ItemSearchResponse,\n ItemSetIndexResponse,\n ItemSetResponse,\n ItemSubclassResponse,\n} from './types';\n\n/**\n * Get an item by ID.\n * @param itemId The item ID.\n * @returns The item. See {@link ItemResponse}.\n */\nexport function item(itemId: number): Resource<ItemResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item/${itemId}`,\n };\n}\n/**\n * Get an item class by ID.\n * @param itemClassId The item class ID.\n * @returns The item class. See {@link ItemClassResponse}.\n */\nexport function itemClass(itemClassId: number): Resource<ItemClassResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-class/${itemClassId}`,\n };\n}\n/**\n * Get an item class index.\n * @returns The item class index. See {@link ItemClassIndexResponse}.\n */\nexport function itemClassIndex(): Resource<ItemClassIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-class/index`,\n };\n}\n/**\n * Get item media by ID.\n * @param itemId The item ID.\n * @returns The item media. See {@link ItemMediaResponse}.\n */\nexport function itemMedia(itemId: number): Resource<ItemMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/item/${itemId}`,\n };\n}\n/**\n * Search for items.\n * @param options The search parameters. See {@link ItemSearchParameters}.\n * @returns The search results. See {@link ItemSearchResponse}.\n */\nexport function itemSearch(\n options: ItemSearchParameters,\n): Resource<ItemSearchResponse, Omit<ItemSearchParameters, '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}/item`,\n };\n}\n/**\n * Get an item set by ID.\n * @param itemSetId The item set ID.\n * @returns The item set. See {@link ItemSetResponse}.\n */\nexport function itemSet(itemSetId: number): Resource<ItemSetResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-set/${itemSetId}`,\n };\n}\n/**\n * Get an item set index.\n * @returns The item set index. See {@link ItemSetIndexResponse}.\n */\nexport function itemSetIndex(): Resource<ItemSetIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-set/index`,\n };\n}\n/**\n * Get an item subclass by ID.\n * @param itemClassId The item class ID.\n * @param itemSubclassId The item subclass ID.\n * @returns The item subclass. See {@link ItemSubclassResponse}.\n */\nexport function itemSubclass(itemClassId: number, itemSubclassId: number): Resource<ItemSubclassResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`,\n };\n}\n"],"mappings":";;;;;;;AAmBA,SAAgB,KAAK,QAAwC;CAC3D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,QAAQ;CAC/B;AACF;;;;;;AAMA,SAAgB,UAAU,aAAkD;CAC1E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc;CACrC;AACF;;;;;AAKA,SAAgB,iBAAmD;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,UAAU,QAA6C;CACrE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,QAAQ;CACpC;AACF;;;;;;AAMA,SAAgB,WACd,SAC6E;CAC7E,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF;;;;;;AAMA,SAAgB,QAAQ,WAA8C;CACpE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,YAAY;CACnC;AACF;;;;;AAKA,SAAgB,eAA+C;CAC7D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;;AAOA,SAAgB,aAAa,aAAqB,gBAAwD;CACxG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc,YAAY,iBAAiB;CAClE;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/item/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type {\n ItemClassIndexResponse,\n ItemClassResponse,\n ItemMediaResponse,\n ItemResponse,\n ItemSearchParameters,\n ItemSearchResponse,\n ItemSetIndexResponse,\n ItemSetResponse,\n ItemSubclassResponse,\n} from './types';\n\n/**\n * Get an item by ID.\n * @param itemId The item ID.\n * @returns The item. See {@link ItemResponse}.\n */\nexport function item(itemId: number): Resource<ItemResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item/${encodeURIComponent(itemId)}`,\n };\n}\n/**\n * Get an item class by ID.\n * @param itemClassId The item class ID.\n * @returns The item class. See {@link ItemClassResponse}.\n */\nexport function itemClass(itemClassId: number): Resource<ItemClassResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-class/${encodeURIComponent(itemClassId)}`,\n };\n}\n/**\n * Get an item class index.\n * @returns The item class index. See {@link ItemClassIndexResponse}.\n */\nexport function itemClassIndex(): Resource<ItemClassIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-class/index`,\n };\n}\n/**\n * Get item media by ID.\n * @param itemId The item ID.\n * @returns The item media. See {@link ItemMediaResponse}.\n */\nexport function itemMedia(itemId: number): Resource<ItemMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/item/${encodeURIComponent(itemId)}`,\n };\n}\n/**\n * Search for items.\n * @param options The search parameters. See {@link ItemSearchParameters}.\n * @returns The search results. See {@link ItemSearchResponse}.\n */\nexport function itemSearch(\n options: ItemSearchParameters,\n): Resource<ItemSearchResponse, Omit<ItemSearchParameters, '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}/item`,\n };\n}\n/**\n * Get an item set by ID.\n * @param itemSetId The item set ID.\n * @returns The item set. See {@link ItemSetResponse}.\n */\nexport function itemSet(itemSetId: number): Resource<ItemSetResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-set/${encodeURIComponent(itemSetId)}`,\n };\n}\n/**\n * Get an item set index.\n * @returns The item set index. See {@link ItemSetIndexResponse}.\n */\nexport function itemSetIndex(): Resource<ItemSetIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-set/index`,\n };\n}\n/**\n * Get an item subclass by ID.\n * @param itemClassId The item class ID.\n * @param itemSubclassId The item subclass ID.\n * @returns The item subclass. See {@link ItemSubclassResponse}.\n */\nexport function itemSubclass(itemClassId: number, itemSubclassId: number): Resource<ItemSubclassResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-class/${encodeURIComponent(itemClassId)}/item-subclass/${encodeURIComponent(itemSubclassId)}`,\n };\n}\n"],"mappings":";;;;;;;AAmBA,SAAgB,KAAK,QAAwC;CAC3D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,QAAQ,mBAAmB,MAAM;CACxD;AACF;;;;;;AAMA,SAAgB,UAAU,aAAkD;CAC1E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc,mBAAmB,WAAW;CACnE;AACF;;;;;AAKA,SAAgB,iBAAmD;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,UAAU,QAA6C;CACrE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,QAAQ,mBAAmB,MAAM;CAC7D;AACF;;;;;;AAMA,SAAgB,WACd,SAC6E;CAC7E,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF;;;;;;AAMA,SAAgB,QAAQ,WAA8C;CACpE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,YAAY,mBAAmB,SAAS;CAC/D;AACF;;;;;AAKA,SAAgB,eAA+C;CAC7D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;;AAOA,SAAgB,aAAa,aAAqB,gBAAwD;CACxG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc,mBAAmB,WAAW,EAAE,iBAAiB,mBAAmB,cAAc;CACvH;AACF"}
@@ -8,7 +8,7 @@ import { wowBasePath, wowSearchBasePath } from "@blizzard-api/core";
8
8
  function itemAppearance(appearanceId) {
9
9
  return {
10
10
  namespace: "static",
11
- path: `${wowBasePath}/item-appearance/${appearanceId}`
11
+ path: `${wowBasePath}/item-appearance/${encodeURIComponent(appearanceId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -35,7 +35,7 @@ function itemAppearanceSearch(options) {
35
35
  function itemAppearanceSet(appearanceSetId) {
36
36
  return {
37
37
  namespace: "static",
38
- path: `${wowBasePath}/item-appearance/set/${appearanceSetId}`
38
+ path: `${wowBasePath}/item-appearance/set/${encodeURIComponent(appearanceSetId)}`
39
39
  };
40
40
  }
41
41
  /**
@@ -56,7 +56,7 @@ function itemAppearanceSetIndex() {
56
56
  function itemAppearanceSlot(slotType) {
57
57
  return {
58
58
  namespace: "static",
59
- path: `${wowBasePath}/item-appearance/slot/${slotType}`
59
+ path: `${wowBasePath}/item-appearance/slot/${encodeURIComponent(slotType)}`
60
60
  };
61
61
  }
62
62
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/item-appearance/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type {\n ItemAppearanceResponse,\n ItemAppearanceSearchParameters,\n ItemAppearanceSearchResponse,\n ItemAppearanceSetIndexResponse,\n ItemAppearanceSetResponse,\n ItemAppearanceSlotIndexResponse,\n ItemAppearanceSlotResponse,\n ItemAppearanceSlotType,\n} from './types';\n\n/**\n * Get an item appearance by ID.\n * @param appearanceId The item appearance ID.\n * @returns The item appearance. See {@link ItemAppearanceResponse}.\n */\nexport function itemAppearance(appearanceId: number): Resource<ItemAppearanceResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/${appearanceId}`,\n };\n}\n/**\n * Search for item appearances.\n * @param options The search parameters. See {@link ItemAppearanceSearchParameters}.\n * @returns The search results. See {@link ItemAppearanceSearchResponse}.\n */\nexport function itemAppearanceSearch(\n options: ItemAppearanceSearchParameters,\n): Resource<ItemAppearanceSearchResponse, ItemAppearanceSearchParameters> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n id: options.id,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/item-appearance`,\n };\n}\n/**\n * Get an item appearance set by ID.\n * @param appearanceSetId The item appearance set ID.\n * @returns The item appearance set. See {@link ItemAppearanceSetResponse}.\n */\nexport function itemAppearanceSet(appearanceSetId: number): Resource<ItemAppearanceSetResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/set/${appearanceSetId}`,\n };\n}\n/**\n * Get an item appearance set index.\n * @returns The item appearance set index. See {@link ItemAppearanceSetIndexResponse}.\n */\nexport function itemAppearanceSetIndex(): Resource<ItemAppearanceSetIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/set/index`,\n };\n}\n/**\n * Get an item appearance slot by slot type.\n * @param slotType The item appearance slot type.\n * @returns The item appearance slot. See {@link ItemAppearanceSlotResponse}.\n */\nexport function itemAppearanceSlot(slotType: ItemAppearanceSlotType): Resource<ItemAppearanceSlotResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/slot/${slotType}`,\n };\n}\n/**\n * Get an item appearance slot index.\n * @returns The item appearance slot index. See {@link ItemAppearanceSlotIndexResponse}.\n */\nexport function itemAppearanceSlotIndex(): Resource<ItemAppearanceSlotIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/slot/index`,\n };\n}\n"],"mappings":";;;;;;;AAkBA,SAAgB,eAAe,cAAwD;CACrF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB;CAC1C;AACF;;;;;;AAMA,SAAgB,qBACd,SACwE;CACxE,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;GACf,IAAI,QAAQ;GACZ,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF;;;;;;AAMA,SAAgB,kBAAkB,iBAA8D;CAC9F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,uBAAuB;CAC9C;AACF;;;;;AAKA,SAAgB,yBAAmE;CACjF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,mBAAmB,UAAwE;CACzG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,wBAAwB;CAC/C;AACF;;;;;AAKA,SAAgB,0BAAqE;CACnF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/item-appearance/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type {\n ItemAppearanceResponse,\n ItemAppearanceSearchParameters,\n ItemAppearanceSearchResponse,\n ItemAppearanceSetIndexResponse,\n ItemAppearanceSetResponse,\n ItemAppearanceSlotIndexResponse,\n ItemAppearanceSlotResponse,\n ItemAppearanceSlotType,\n} from './types';\n\n/**\n * Get an item appearance by ID.\n * @param appearanceId The item appearance ID.\n * @returns The item appearance. See {@link ItemAppearanceResponse}.\n */\nexport function itemAppearance(appearanceId: number): Resource<ItemAppearanceResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/${encodeURIComponent(appearanceId)}`,\n };\n}\n/**\n * Search for item appearances.\n * @param options The search parameters. See {@link ItemAppearanceSearchParameters}.\n * @returns The search results. See {@link ItemAppearanceSearchResponse}.\n */\nexport function itemAppearanceSearch(\n options: ItemAppearanceSearchParameters,\n): Resource<ItemAppearanceSearchResponse, ItemAppearanceSearchParameters> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n id: options.id,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/item-appearance`,\n };\n}\n/**\n * Get an item appearance set by ID.\n * @param appearanceSetId The item appearance set ID.\n * @returns The item appearance set. See {@link ItemAppearanceSetResponse}.\n */\nexport function itemAppearanceSet(appearanceSetId: number): Resource<ItemAppearanceSetResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/set/${encodeURIComponent(appearanceSetId)}`,\n };\n}\n/**\n * Get an item appearance set index.\n * @returns The item appearance set index. See {@link ItemAppearanceSetIndexResponse}.\n */\nexport function itemAppearanceSetIndex(): Resource<ItemAppearanceSetIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/set/index`,\n };\n}\n/**\n * Get an item appearance slot by slot type.\n * @param slotType The item appearance slot type.\n * @returns The item appearance slot. See {@link ItemAppearanceSlotResponse}.\n */\nexport function itemAppearanceSlot(slotType: ItemAppearanceSlotType): Resource<ItemAppearanceSlotResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/slot/${encodeURIComponent(slotType)}`,\n };\n}\n/**\n * Get an item appearance slot index.\n * @returns The item appearance slot index. See {@link ItemAppearanceSlotIndexResponse}.\n */\nexport function itemAppearanceSlotIndex(): Resource<ItemAppearanceSlotIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/slot/index`,\n };\n}\n"],"mappings":";;;;;;;AAkBA,SAAgB,eAAe,cAAwD;CACrF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB,mBAAmB,YAAY;CACzE;AACF;;;;;;AAMA,SAAgB,qBACd,SACwE;CACxE,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;GACf,IAAI,QAAQ;GACZ,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF;;;;;;AAMA,SAAgB,kBAAkB,iBAA8D;CAC9F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,uBAAuB,mBAAmB,eAAe;CAChF;AACF;;;;;AAKA,SAAgB,yBAAmE;CACjF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,mBAAmB,UAAwE;CACzG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,wBAAwB,mBAAmB,QAAQ;CAC1E;AACF;;;;;AAKA,SAAgB,0BAAqE;CACnF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
@@ -8,7 +8,7 @@ import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from "@blizzard-api/
8
8
  function journalEncounter(journalEncounterId) {
9
9
  return {
10
10
  namespace: "static",
11
- path: `${wowBasePath}/journal-encounter/${journalEncounterId}`
11
+ path: `${wowBasePath}/journal-encounter/${encodeURIComponent(journalEncounterId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -45,7 +45,7 @@ function journalEncounterSearch(options) {
45
45
  function journalExpansion(journalExpansionId) {
46
46
  return {
47
47
  namespace: "static",
48
- path: `${wowBasePath}/journal-expansion/${journalExpansionId}`
48
+ path: `${wowBasePath}/journal-expansion/${encodeURIComponent(journalExpansionId)}`
49
49
  };
50
50
  }
51
51
  /**
@@ -66,7 +66,7 @@ function journalExpansionIndex() {
66
66
  function journalInstance(journalInstanceId) {
67
67
  return {
68
68
  namespace: "static",
69
- path: `${wowBasePath}/journal-instance/${journalInstanceId}`
69
+ path: `${wowBasePath}/journal-instance/${encodeURIComponent(journalInstanceId)}`
70
70
  };
71
71
  }
72
72
  /**
@@ -87,7 +87,7 @@ function journalInstanceIndex() {
87
87
  function journalInstanceMedia(journalInstanceId) {
88
88
  return {
89
89
  namespace: "static",
90
- path: `${wowMediaBasePath}/journal-instance/${journalInstanceId}`
90
+ path: `${wowMediaBasePath}/journal-instance/${encodeURIComponent(journalInstanceId)}`
91
91
  };
92
92
  }
93
93
  export { journalEncounter, journalEncounterIndex, journalEncounterSearch, journalExpansion, journalExpansionIndex, journalInstance, journalInstanceIndex, journalInstanceMedia };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/journal/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type {\n JournalEncounterIndexResponse,\n JournalEncounterResponse,\n JournalEncounterSearchParameters,\n JournalEncounterSearchResponse,\n JournalExpansionIndexResponse,\n JournalExpansionResponse,\n JournalInstanceIndexResponse,\n JournalInstanceMediaResponse,\n JournalInstanceResponse,\n} from './types';\n\n/**\n * Get a journal encounter by ID.\n * @param journalEncounterId The journal encounter ID.\n * @returns The journal encounter. See {@link JournalEncounterResponse}.\n */\nexport function journalEncounter(journalEncounterId: number): Resource<JournalEncounterResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/journal-encounter/${journalEncounterId}`,\n };\n}\n/**\n * Get the journal encounter index.\n * @returns The journal encounter index. See {@link JournalEncounterIndexResponse}.\n */\nexport function journalEncounterIndex(): Resource<JournalEncounterIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/journal-encounter/index`,\n };\n}\n/**\n * Search for journal encounters.\n * @param options The search parameters. See {@link JournalEncounterSearchParameters}.\n * @returns The search results. See {@link JournalEncounterSearchResponse}.\n */\nexport function journalEncounterSearch(\n options: JournalEncounterSearchParameters,\n): Resource<JournalEncounterSearchResponse, Omit<JournalEncounterSearchParameters, 'instanceName' | 'locale'>> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n [`instance.name.${options.locale}`]: options.instanceName,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/journal-encounter`,\n };\n}\n/**\n * Get a journal expansion by ID.\n * @param journalExpansionId The journal expansion ID.\n * @returns The journal expansion. See {@link JournalExpansionResponse}.\n */\nexport function journalExpansion(journalExpansionId: number): Resource<JournalExpansionResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/journal-expansion/${journalExpansionId}`,\n };\n}\n/**\n * Get the journal expansion index.\n * @returns The journal expansion index. See {@link JournalExpansionIndexResponse}.\n */\nexport function journalExpansionIndex(): Resource<JournalExpansionIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/journal-expansion/index`,\n };\n}\n/**\n * Get a journal instance by ID.\n * @param journalInstanceId The journal instance ID.\n * @returns The journal instance. See {@link JournalInstanceResponse}.\n */\nexport function journalInstance(journalInstanceId: number): Resource<JournalInstanceResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/journal-instance/${journalInstanceId}`,\n };\n}\n/**\n * Get the journal instance index.\n * @returns The journal instance index. See {@link JournalInstanceIndexResponse}.\n */\nexport function journalInstanceIndex(): Resource<JournalInstanceIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/journal-instance/index`,\n };\n}\n/**\n * Get journal instance media by ID.\n * @param journalInstanceId The journal instance ID.\n * @returns The journal instance media. See {@link JournalInstanceMediaResponse}.\n */\nexport function journalInstanceMedia(journalInstanceId: number): Resource<JournalInstanceMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/journal-instance/${journalInstanceId}`,\n };\n}\n"],"mappings":";;;;;;;AAmBA,SAAgB,iBAAiB,oBAAgE;CAC/F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,qBAAqB;CAC5C;AACF;;;;;AAKA,SAAgB,wBAAiE;CAC/E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,uBACd,SAC6G;CAC7G,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,iBAAiB,QAAQ,WAAW,QAAQ;GAC7C,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF;;;;;;AAMA,SAAgB,iBAAiB,oBAAgE;CAC/F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,qBAAqB;CAC5C;AACF;;;;;AAKA,SAAgB,wBAAiE;CAC/E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,gBAAgB,mBAA8D;CAC5F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,oBAAoB;CAC3C;AACF;;;;;AAKA,SAAgB,uBAA+D;CAC7E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,qBAAqB,mBAAmE;CACtG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,oBAAoB;CAChD;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/journal/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type {\n JournalEncounterIndexResponse,\n JournalEncounterResponse,\n JournalEncounterSearchParameters,\n JournalEncounterSearchResponse,\n JournalExpansionIndexResponse,\n JournalExpansionResponse,\n JournalInstanceIndexResponse,\n JournalInstanceMediaResponse,\n JournalInstanceResponse,\n} from './types';\n\n/**\n * Get a journal encounter by ID.\n * @param journalEncounterId The journal encounter ID.\n * @returns The journal encounter. See {@link JournalEncounterResponse}.\n */\nexport function journalEncounter(journalEncounterId: number): Resource<JournalEncounterResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/journal-encounter/${encodeURIComponent(journalEncounterId)}`,\n };\n}\n/**\n * Get the journal encounter index.\n * @returns The journal encounter index. See {@link JournalEncounterIndexResponse}.\n */\nexport function journalEncounterIndex(): Resource<JournalEncounterIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/journal-encounter/index`,\n };\n}\n/**\n * Search for journal encounters.\n * @param options The search parameters. See {@link JournalEncounterSearchParameters}.\n * @returns The search results. See {@link JournalEncounterSearchResponse}.\n */\nexport function journalEncounterSearch(\n options: JournalEncounterSearchParameters,\n): Resource<JournalEncounterSearchResponse, Omit<JournalEncounterSearchParameters, 'instanceName' | 'locale'>> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n [`instance.name.${options.locale}`]: options.instanceName,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/journal-encounter`,\n };\n}\n/**\n * Get a journal expansion by ID.\n * @param journalExpansionId The journal expansion ID.\n * @returns The journal expansion. See {@link JournalExpansionResponse}.\n */\nexport function journalExpansion(journalExpansionId: number): Resource<JournalExpansionResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/journal-expansion/${encodeURIComponent(journalExpansionId)}`,\n };\n}\n/**\n * Get the journal expansion index.\n * @returns The journal expansion index. See {@link JournalExpansionIndexResponse}.\n */\nexport function journalExpansionIndex(): Resource<JournalExpansionIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/journal-expansion/index`,\n };\n}\n/**\n * Get a journal instance by ID.\n * @param journalInstanceId The journal instance ID.\n * @returns The journal instance. See {@link JournalInstanceResponse}.\n */\nexport function journalInstance(journalInstanceId: number): Resource<JournalInstanceResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/journal-instance/${encodeURIComponent(journalInstanceId)}`,\n };\n}\n/**\n * Get the journal instance index.\n * @returns The journal instance index. See {@link JournalInstanceIndexResponse}.\n */\nexport function journalInstanceIndex(): Resource<JournalInstanceIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/journal-instance/index`,\n };\n}\n/**\n * Get journal instance media by ID.\n * @param journalInstanceId The journal instance ID.\n * @returns The journal instance media. See {@link JournalInstanceMediaResponse}.\n */\nexport function journalInstanceMedia(journalInstanceId: number): Resource<JournalInstanceMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/journal-instance/${encodeURIComponent(journalInstanceId)}`,\n };\n}\n"],"mappings":";;;;;;;AAmBA,SAAgB,iBAAiB,oBAAgE;CAC/F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,qBAAqB,mBAAmB,kBAAkB;CACjF;AACF;;;;;AAKA,SAAgB,wBAAiE;CAC/E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,uBACd,SAC6G;CAC7G,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,iBAAiB,QAAQ,WAAW,QAAQ;GAC7C,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF;;;;;;AAMA,SAAgB,iBAAiB,oBAAgE;CAC/F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,qBAAqB,mBAAmB,kBAAkB;CACjF;AACF;;;;;AAKA,SAAgB,wBAAiE;CAC/E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,gBAAgB,mBAA8D;CAC5F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,oBAAoB,mBAAmB,iBAAiB;CAC/E;AACF;;;;;AAKA,SAAgB,uBAA+D;CAC7E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,qBAAqB,mBAAmE;CACtG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,oBAAoB,mBAAmB,iBAAiB;CACpF;AACF"}
@@ -8,7 +8,7 @@ import { wowBasePath } from "@blizzard-api/core";
8
8
  function modifiedCraftingCategory(modifiedCraftingCategoryId) {
9
9
  return {
10
10
  namespace: "static",
11
- path: `${wowBasePath}/modified-crafting/category/${modifiedCraftingCategoryId}`
11
+ path: `${wowBasePath}/modified-crafting/category/${encodeURIComponent(modifiedCraftingCategoryId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -39,7 +39,7 @@ function modifiedCraftingIndex() {
39
39
  function modifiedCraftingReagentSlotType(modifiedCraftingReagentSlotTypeId) {
40
40
  return {
41
41
  namespace: "static",
42
- path: `${wowBasePath}/modified-crafting/reagent-slot-type/${modifiedCraftingReagentSlotTypeId}`
42
+ path: `${wowBasePath}/modified-crafting/reagent-slot-type/${encodeURIComponent(modifiedCraftingReagentSlotTypeId)}`
43
43
  };
44
44
  }
45
45
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/modified-crafting/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n ModifiedCraftingCategoryIndexResponse,\n ModifiedCraftingCategoryResponse,\n ModifiedCraftingIndexResponse,\n ModifiedCraftingReagentSlotTypeIndexResponse,\n ModifiedCraftingReagentSlotTypeResponse,\n} from './types';\n\n/**\n * Get a modified crafting category by ID.\n * @param modifiedCraftingCategoryId The modified crafting category ID.\n * @returns The modified crafting category. See {@link ModifiedCraftingCategoryResponse}.\n */\nexport function modifiedCraftingCategory(\n modifiedCraftingCategoryId: number,\n): Resource<ModifiedCraftingCategoryResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/category/${modifiedCraftingCategoryId}`,\n };\n}\n/**\n * Get a modified crafting category index.\n * @returns The modified crafting category index. See {@link ModifiedCraftingCategoryIndexResponse}.\n */\nexport function modifiedCraftingCategoryIndex(): Resource<ModifiedCraftingCategoryIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/category/index`,\n };\n}\n/**\n * Get a modified crafting index.\n * @returns The modified crafting index. See {@link ModifiedCraftingIndexResponse}.\n */\nexport function modifiedCraftingIndex(): Resource<ModifiedCraftingIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/index`,\n };\n}\n/**\n * Get a modified crafting reagent slot type by ID.\n * @param modifiedCraftingReagentSlotTypeId The modified crafting reagent slot type ID.\n * @returns The modified crafting reagent slot type. See {@link ModifiedCraftingReagentSlotTypeResponse}.\n */\nexport function modifiedCraftingReagentSlotType(\n modifiedCraftingReagentSlotTypeId: number,\n): Resource<ModifiedCraftingReagentSlotTypeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/reagent-slot-type/${modifiedCraftingReagentSlotTypeId}`,\n };\n}\n/**\n * Get a modified crafting reagent slot type index.\n * @returns The modified crafting reagent slot type index. See {@link ModifiedCraftingReagentSlotTypeIndexResponse}.\n */\nexport function modifiedCraftingReagentSlotTypeIndex(): Resource<ModifiedCraftingReagentSlotTypeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/reagent-slot-type/index`,\n };\n}\n"],"mappings":";;;;;;;AAeA,SAAgB,yBACd,4BAC4C;CAC5C,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,8BAA8B;CACrD;AACF;;;;;AAKA,SAAgB,gCAAiF;CAC/F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;AAKA,SAAgB,wBAAiE;CAC/E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,gCACd,mCACmD;CACnD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,uCAAuC;CAC9D;AACF;;;;;AAKA,SAAgB,uCAA+F;CAC7G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/modified-crafting/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n ModifiedCraftingCategoryIndexResponse,\n ModifiedCraftingCategoryResponse,\n ModifiedCraftingIndexResponse,\n ModifiedCraftingReagentSlotTypeIndexResponse,\n ModifiedCraftingReagentSlotTypeResponse,\n} from './types';\n\n/**\n * Get a modified crafting category by ID.\n * @param modifiedCraftingCategoryId The modified crafting category ID.\n * @returns The modified crafting category. See {@link ModifiedCraftingCategoryResponse}.\n */\nexport function modifiedCraftingCategory(\n modifiedCraftingCategoryId: number,\n): Resource<ModifiedCraftingCategoryResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/category/${encodeURIComponent(modifiedCraftingCategoryId)}`,\n };\n}\n/**\n * Get a modified crafting category index.\n * @returns The modified crafting category index. See {@link ModifiedCraftingCategoryIndexResponse}.\n */\nexport function modifiedCraftingCategoryIndex(): Resource<ModifiedCraftingCategoryIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/category/index`,\n };\n}\n/**\n * Get a modified crafting index.\n * @returns The modified crafting index. See {@link ModifiedCraftingIndexResponse}.\n */\nexport function modifiedCraftingIndex(): Resource<ModifiedCraftingIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/index`,\n };\n}\n/**\n * Get a modified crafting reagent slot type by ID.\n * @param modifiedCraftingReagentSlotTypeId The modified crafting reagent slot type ID.\n * @returns The modified crafting reagent slot type. See {@link ModifiedCraftingReagentSlotTypeResponse}.\n */\nexport function modifiedCraftingReagentSlotType(\n modifiedCraftingReagentSlotTypeId: number,\n): Resource<ModifiedCraftingReagentSlotTypeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/reagent-slot-type/${encodeURIComponent(modifiedCraftingReagentSlotTypeId)}`,\n };\n}\n/**\n * Get a modified crafting reagent slot type index.\n * @returns The modified crafting reagent slot type index. See {@link ModifiedCraftingReagentSlotTypeIndexResponse}.\n */\nexport function modifiedCraftingReagentSlotTypeIndex(): Resource<ModifiedCraftingReagentSlotTypeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/reagent-slot-type/index`,\n };\n}\n"],"mappings":";;;;;;;AAeA,SAAgB,yBACd,4BAC4C;CAC5C,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,8BAA8B,mBAAmB,0BAA0B;CAClG;AACF;;;;;AAKA,SAAgB,gCAAiF;CAC/F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;AAKA,SAAgB,wBAAiE;CAC/E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,gCACd,mCACmD;CACnD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,uCAAuC,mBAAmB,iCAAiC;CAClH;AACF;;;;;AAKA,SAAgB,uCAA+F;CAC7G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
@@ -8,7 +8,7 @@ import { wowBasePath, wowSearchBasePath } from "@blizzard-api/core";
8
8
  function mount(mountId) {
9
9
  return {
10
10
  namespace: "static",
11
- path: `${wowBasePath}/mount/${mountId}`
11
+ path: `${wowBasePath}/mount/${encodeURIComponent(mountId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/mount/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { MountIndexResponse, MountResponse, MountSearchParameters, MountSearchResponse } from './types';\n\n/**\n * Get a mount by ID.\n * @param mountId The mount ID.\n * @returns The mount. See {@link MountResponse}.\n */\nexport function mount(mountId: number): Resource<MountResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/mount/${mountId}`,\n };\n}\n/**\n * Get a mount index.\n * @returns The mount index. See {@link MountIndexResponse}.\n */\nexport function mountIndex(): Resource<MountIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/mount/index`,\n };\n}\n/**\n * Get a mount search.\n * @param options The search parameters. See {@link MountSearchParameters}.\n * @returns The search results. See {@link MountSearchResponse}.\n */\nexport function mountSearch(\n options: MountSearchParameters,\n): Resource<MountSearchResponse, Omit<MountSearchParameters, '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}/mount`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,MAAM,SAA0C;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS;CAChC;AACF;;;;;AAKA,SAAgB,aAA2C;CACzD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,YACd,SAC+E;CAC/E,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/mount/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { MountIndexResponse, MountResponse, MountSearchParameters, MountSearchResponse } from './types';\n\n/**\n * Get a mount by ID.\n * @param mountId The mount ID.\n * @returns The mount. See {@link MountResponse}.\n */\nexport function mount(mountId: number): Resource<MountResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/mount/${encodeURIComponent(mountId)}`,\n };\n}\n/**\n * Get a mount index.\n * @returns The mount index. See {@link MountIndexResponse}.\n */\nexport function mountIndex(): Resource<MountIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/mount/index`,\n };\n}\n/**\n * Get a mount search.\n * @param options The search parameters. See {@link MountSearchParameters}.\n * @returns The search results. See {@link MountSearchResponse}.\n */\nexport function mountSearch(\n options: MountSearchParameters,\n): Resource<MountSearchResponse, Omit<MountSearchParameters, '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}/mount`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,MAAM,SAA0C;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS,mBAAmB,OAAO;CAC1D;AACF;;;;;AAKA,SAAgB,aAA2C;CACzD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,YACd,SAC+E;CAC/E,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF"}
@@ -8,7 +8,7 @@ import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
8
8
  function mythicKeystoneAffix(mythicKeystoneAffixId) {
9
9
  return {
10
10
  namespace: "static",
11
- path: `${wowBasePath}/keystone-affix/${mythicKeystoneAffixId}`
11
+ path: `${wowBasePath}/keystone-affix/${encodeURIComponent(mythicKeystoneAffixId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -29,7 +29,7 @@ function mythicKeystoneAffixIndex() {
29
29
  function mythicKeystoneAffixMedia(mythicKeystoneAffixId) {
30
30
  return {
31
31
  namespace: "static",
32
- path: `${wowMediaBasePath}/keystone-affix/${mythicKeystoneAffixId}`
32
+ path: `${wowMediaBasePath}/keystone-affix/${encodeURIComponent(mythicKeystoneAffixId)}`
33
33
  };
34
34
  }
35
35
  export { mythicKeystoneAffix, mythicKeystoneAffixIndex, mythicKeystoneAffixMedia };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/mythic-keystone-affix/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n MythicKeystoneAffixIndexResponse,\n MythicKeystoneAffixMediaResponse,\n MythicKeystoneAffixResponse,\n} from './types';\n\n/**\n * Get a list of all Mythic Keystone affixes.\n * @param mythicKeystoneAffixId The ID of the Mythic Keystone affix.\n * @returns A list of all Mythic Keystone affixes. See {@link MythicKeystoneAffixIndexResponse}\n */\nexport function mythicKeystoneAffix(mythicKeystoneAffixId: number): Resource<MythicKeystoneAffixResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/keystone-affix/${mythicKeystoneAffixId}`,\n };\n}\n/**\n * Get a list of all Mythic Keystone affixes.\n * @returns A list of all Mythic Keystone affixes. See {@link MythicKeystoneAffixIndexResponse}\n */\nexport function mythicKeystoneAffixIndex(): Resource<MythicKeystoneAffixIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/keystone-affix/index`,\n };\n}\n/**\n * Get a list of all Mythic Keystone affix media.\n * @param mythicKeystoneAffixId The ID of the Mythic Keystone affix.\n * @returns A list of all Mythic Keystone affix media. See {@link MythicKeystoneAffixMediaResponse}\n */\nexport function mythicKeystoneAffixMedia(mythicKeystoneAffixId: number): Resource<MythicKeystoneAffixMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/keystone-affix/${mythicKeystoneAffixId}`,\n };\n}\n"],"mappings":";;;;;;;AAaA,SAAgB,oBAAoB,uBAAsE;CACxG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,kBAAkB;CACzC;AACF;;;;;AAKA,SAAgB,2BAAuE;CACrF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,yBAAyB,uBAA2E;CAClH,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,kBAAkB;CAC9C;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/mythic-keystone-affix/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n MythicKeystoneAffixIndexResponse,\n MythicKeystoneAffixMediaResponse,\n MythicKeystoneAffixResponse,\n} from './types';\n\n/**\n * Get a list of all Mythic Keystone affixes.\n * @param mythicKeystoneAffixId The ID of the Mythic Keystone affix.\n * @returns A list of all Mythic Keystone affixes. See {@link MythicKeystoneAffixIndexResponse}\n */\nexport function mythicKeystoneAffix(mythicKeystoneAffixId: number): Resource<MythicKeystoneAffixResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/keystone-affix/${encodeURIComponent(mythicKeystoneAffixId)}`,\n };\n}\n/**\n * Get a list of all Mythic Keystone affixes.\n * @returns A list of all Mythic Keystone affixes. See {@link MythicKeystoneAffixIndexResponse}\n */\nexport function mythicKeystoneAffixIndex(): Resource<MythicKeystoneAffixIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/keystone-affix/index`,\n };\n}\n/**\n * Get a list of all Mythic Keystone affix media.\n * @param mythicKeystoneAffixId The ID of the Mythic Keystone affix.\n * @returns A list of all Mythic Keystone affix media. See {@link MythicKeystoneAffixMediaResponse}\n */\nexport function mythicKeystoneAffixMedia(mythicKeystoneAffixId: number): Resource<MythicKeystoneAffixMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/keystone-affix/${encodeURIComponent(mythicKeystoneAffixId)}`,\n };\n}\n"],"mappings":";;;;;;;AAaA,SAAgB,oBAAoB,uBAAsE;CACxG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,kBAAkB,mBAAmB,qBAAqB;CACjF;AACF;;;;;AAKA,SAAgB,2BAAuE;CACrF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,yBAAyB,uBAA2E;CAClH,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,kBAAkB,mBAAmB,qBAAqB;CACtF;AACF"}
@@ -8,7 +8,7 @@ import { wowBasePath } from "@blizzard-api/core";
8
8
  function mythicKeystoneDungeon(mythicKeystoneDungeonId) {
9
9
  return {
10
10
  namespace: "dynamic",
11
- path: `${wowBasePath}/mythic-keystone/dungeon/${mythicKeystoneDungeonId}`
11
+ path: `${wowBasePath}/mythic-keystone/dungeon/${encodeURIComponent(mythicKeystoneDungeonId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -39,7 +39,7 @@ function mythicKeystoneIndex() {
39
39
  function mythicKeystonePeriod(mythicKeystonePeriodId) {
40
40
  return {
41
41
  namespace: "dynamic",
42
- path: `${wowBasePath}/mythic-keystone/period/${mythicKeystonePeriodId}`
42
+ path: `${wowBasePath}/mythic-keystone/period/${encodeURIComponent(mythicKeystonePeriodId)}`
43
43
  };
44
44
  }
45
45
  /**
@@ -60,7 +60,7 @@ function mythicKeystonePeriodIndex() {
60
60
  function mythicKeystoneSeason(mythicKeystoneSeasonId) {
61
61
  return {
62
62
  namespace: "dynamic",
63
- path: `${wowBasePath}/mythic-keystone/season/${mythicKeystoneSeasonId}`
63
+ path: `${wowBasePath}/mythic-keystone/season/${encodeURIComponent(mythicKeystoneSeasonId)}`
64
64
  };
65
65
  }
66
66
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/mythic-keystone-dungeon/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n MythicKeystoneDungeonIndexResponse,\n MythicKeystoneDungeonResponse,\n MythicKeystoneIndexResponse,\n MythicKeystonePeriodIndexResponse,\n MythicKeystonePeriodResponse,\n MythicKeystoneSeasonIndexResponse,\n MythicKeystoneSeasonResponse,\n} from './types';\n\n/**\n * Get a Mythic Keystone dungeon by ID.\n * @param mythicKeystoneDungeonId The Mythic Keystone dungeon ID.\n * @returns The Mythic Keystone dungeon. See {@link MythicKeystoneDungeonResponse}.\n */\nexport function mythicKeystoneDungeon(mythicKeystoneDungeonId: number): Resource<MythicKeystoneDungeonResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/dungeon/${mythicKeystoneDungeonId}`,\n };\n}\n/**\n * Get a Mythic Keystone dungeon index.\n * @returns The Mythic Keystone dungeon index. See {@link MythicKeystoneDungeonIndexResponse}.\n */\nexport function mythicKeystoneDungeonIndex(): Resource<MythicKeystoneDungeonIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/dungeon/index`,\n };\n}\n/**\n * Get a Mythic Keystone index.\n * @returns The Mythic Keystone index. See {@link MythicKeystoneIndexResponse}.\n */\nexport function mythicKeystoneIndex(): Resource<MythicKeystoneIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/index`,\n };\n}\n/**\n * Get a Mythic Keystone period by ID.\n * @param mythicKeystonePeriodId The Mythic Keystone period ID.\n * @returns The Mythic Keystone period. See {@link MythicKeystonePeriodResponse}.\n */\nexport function mythicKeystonePeriod(mythicKeystonePeriodId: number): Resource<MythicKeystonePeriodResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/period/${mythicKeystonePeriodId}`,\n };\n}\n/**\n * Get a Mythic Keystone period index.\n * @returns The Mythic Keystone period index. See {@link MythicKeystonePeriodIndexResponse}.\n */\nexport function mythicKeystonePeriodIndex(): Resource<MythicKeystonePeriodIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/period/index`,\n };\n}\n/**\n * Get a Mythic Keystone season by ID.\n * @param mythicKeystoneSeasonId The Mythic Keystone season ID.\n * @returns The Mythic Keystone season. See {@link MythicKeystoneSeasonResponse}.\n */\nexport function mythicKeystoneSeason(mythicKeystoneSeasonId: number): Resource<MythicKeystoneSeasonResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/season/${mythicKeystoneSeasonId}`,\n };\n}\n/**\n * Get a Mythic Keystone season index.\n * @returns The Mythic Keystone season index. See {@link MythicKeystoneSeasonIndexResponse}.\n */\nexport function mythicKeystoneSeasonIndex(): Resource<MythicKeystoneSeasonIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/season/index`,\n };\n}\n"],"mappings":";;;;;;;AAiBA,SAAgB,sBAAsB,yBAA0E;CAC9G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,2BAA2B;CAClD;AACF;;;;;AAKA,SAAgB,6BAA2E;CACzF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;AAKA,SAAgB,sBAA6D;CAC3E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,qBAAqB,wBAAwE;CAC3G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,0BAA0B;CACjD;AACF;;;;;AAKA,SAAgB,4BAAyE;CACvF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,qBAAqB,wBAAwE;CAC3G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,0BAA0B;CACjD;AACF;;;;;AAKA,SAAgB,4BAAyE;CACvF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/mythic-keystone-dungeon/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n MythicKeystoneDungeonIndexResponse,\n MythicKeystoneDungeonResponse,\n MythicKeystoneIndexResponse,\n MythicKeystonePeriodIndexResponse,\n MythicKeystonePeriodResponse,\n MythicKeystoneSeasonIndexResponse,\n MythicKeystoneSeasonResponse,\n} from './types';\n\n/**\n * Get a Mythic Keystone dungeon by ID.\n * @param mythicKeystoneDungeonId The Mythic Keystone dungeon ID.\n * @returns The Mythic Keystone dungeon. See {@link MythicKeystoneDungeonResponse}.\n */\nexport function mythicKeystoneDungeon(mythicKeystoneDungeonId: number): Resource<MythicKeystoneDungeonResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/dungeon/${encodeURIComponent(mythicKeystoneDungeonId)}`,\n };\n}\n/**\n * Get a Mythic Keystone dungeon index.\n * @returns The Mythic Keystone dungeon index. See {@link MythicKeystoneDungeonIndexResponse}.\n */\nexport function mythicKeystoneDungeonIndex(): Resource<MythicKeystoneDungeonIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/dungeon/index`,\n };\n}\n/**\n * Get a Mythic Keystone index.\n * @returns The Mythic Keystone index. See {@link MythicKeystoneIndexResponse}.\n */\nexport function mythicKeystoneIndex(): Resource<MythicKeystoneIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/index`,\n };\n}\n/**\n * Get a Mythic Keystone period by ID.\n * @param mythicKeystonePeriodId The Mythic Keystone period ID.\n * @returns The Mythic Keystone period. See {@link MythicKeystonePeriodResponse}.\n */\nexport function mythicKeystonePeriod(mythicKeystonePeriodId: number): Resource<MythicKeystonePeriodResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/period/${encodeURIComponent(mythicKeystonePeriodId)}`,\n };\n}\n/**\n * Get a Mythic Keystone period index.\n * @returns The Mythic Keystone period index. See {@link MythicKeystonePeriodIndexResponse}.\n */\nexport function mythicKeystonePeriodIndex(): Resource<MythicKeystonePeriodIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/period/index`,\n };\n}\n/**\n * Get a Mythic Keystone season by ID.\n * @param mythicKeystoneSeasonId The Mythic Keystone season ID.\n * @returns The Mythic Keystone season. See {@link MythicKeystoneSeasonResponse}.\n */\nexport function mythicKeystoneSeason(mythicKeystoneSeasonId: number): Resource<MythicKeystoneSeasonResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/season/${encodeURIComponent(mythicKeystoneSeasonId)}`,\n };\n}\n/**\n * Get a Mythic Keystone season index.\n * @returns The Mythic Keystone season index. See {@link MythicKeystoneSeasonIndexResponse}.\n */\nexport function mythicKeystoneSeasonIndex(): Resource<MythicKeystoneSeasonIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/season/index`,\n };\n}\n"],"mappings":";;;;;;;AAiBA,SAAgB,sBAAsB,yBAA0E;CAC9G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,2BAA2B,mBAAmB,uBAAuB;CAC5F;AACF;;;;;AAKA,SAAgB,6BAA2E;CACzF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;AAKA,SAAgB,sBAA6D;CAC3E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,qBAAqB,wBAAwE;CAC3G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,0BAA0B,mBAAmB,sBAAsB;CAC1F;AACF;;;;;AAKA,SAAgB,4BAAyE;CACvF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,qBAAqB,wBAAwE;CAC3G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,0BAA0B,mBAAmB,sBAAsB;CAC1F;AACF;;;;;AAKA,SAAgB,4BAAyE;CACvF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
@@ -10,7 +10,7 @@ import { wowBasePath } from "@blizzard-api/core";
10
10
  function mythicKeystoneLeaderboard(connectedRealmId, dungeonId, period) {
11
11
  return {
12
12
  namespace: "dynamic",
13
- path: `${wowBasePath}/connected-realm/${connectedRealmId}/mythic-leaderboard/${dungeonId}/period/${period}`
13
+ path: `${wowBasePath}/connected-realm/${encodeURIComponent(connectedRealmId)}/mythic-leaderboard/${encodeURIComponent(dungeonId)}/period/${encodeURIComponent(period)}`
14
14
  };
15
15
  }
16
16
  /**
@@ -21,7 +21,7 @@ function mythicKeystoneLeaderboard(connectedRealmId, dungeonId, period) {
21
21
  function mythicKeystoneLeaderboardIndex(connectedRealmId) {
22
22
  return {
23
23
  namespace: "dynamic",
24
- path: `${wowBasePath}/connected-realm/${connectedRealmId}/mythic-leaderboard/index`
24
+ path: `${wowBasePath}/connected-realm/${encodeURIComponent(connectedRealmId)}/mythic-leaderboard/index`
25
25
  };
26
26
  }
27
27
  export { mythicKeystoneLeaderboard, mythicKeystoneLeaderboardIndex };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/mythic-keystone-leaderboard/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { MythicKeystoneLeaderboardIndexResponse, MythicKeystoneLeaderboardResponse } from './types';\n\n/**\n * Get a Mythic Keystone leaderboard by connected realm ID, dungeon ID, and period.\n * @param connectedRealmId The connected realm ID.\n * @param dungeonId The dungeon ID.\n * @param period The period ID.\n * @returns The Mythic Keystone leaderboard. See {@link MythicKeystoneLeaderboardResponse}.\n */\nexport function mythicKeystoneLeaderboard(\n connectedRealmId: number,\n dungeonId: number,\n period: number,\n): Resource<MythicKeystoneLeaderboardResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/connected-realm/${connectedRealmId}/mythic-leaderboard/${dungeonId}/period/${period}`,\n };\n}\n/**\n * Get a Mythic Keystone leaderboard index by connected realm ID.\n * @param connectedRealmId The connected realm ID.\n * @returns The Mythic Keystone leaderboard index. See {@link MythicKeystoneLeaderboardIndexResponse}.\n */\nexport function mythicKeystoneLeaderboardIndex(\n connectedRealmId: number,\n): Resource<MythicKeystoneLeaderboardIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/connected-realm/${connectedRealmId}/mythic-leaderboard/index`,\n };\n}\n"],"mappings":";;;;;;;;;AAWA,SAAgB,0BACd,kBACA,WACA,QAC6C;CAC7C,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB,iBAAiB,sBAAsB,UAAU,UAAU;CACrG;AACF;;;;;;AAMA,SAAgB,+BACd,kBACkD;CAClD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB,iBAAiB;CAC3D;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/mythic-keystone-leaderboard/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { MythicKeystoneLeaderboardIndexResponse, MythicKeystoneLeaderboardResponse } from './types';\n\n/**\n * Get a Mythic Keystone leaderboard by connected realm ID, dungeon ID, and period.\n * @param connectedRealmId The connected realm ID.\n * @param dungeonId The dungeon ID.\n * @param period The period ID.\n * @returns The Mythic Keystone leaderboard. See {@link MythicKeystoneLeaderboardResponse}.\n */\nexport function mythicKeystoneLeaderboard(\n connectedRealmId: number,\n dungeonId: number,\n period: number,\n): Resource<MythicKeystoneLeaderboardResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/connected-realm/${encodeURIComponent(connectedRealmId)}/mythic-leaderboard/${encodeURIComponent(dungeonId)}/period/${encodeURIComponent(period)}`,\n };\n}\n/**\n * Get a Mythic Keystone leaderboard index by connected realm ID.\n * @param connectedRealmId The connected realm ID.\n * @returns The Mythic Keystone leaderboard index. See {@link MythicKeystoneLeaderboardIndexResponse}.\n */\nexport function mythicKeystoneLeaderboardIndex(\n connectedRealmId: number,\n): Resource<MythicKeystoneLeaderboardIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/connected-realm/${encodeURIComponent(connectedRealmId)}/mythic-leaderboard/index`,\n };\n}\n"],"mappings":";;;;;;;;;AAWA,SAAgB,0BACd,kBACA,WACA,QAC6C;CAC7C,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB,mBAAmB,gBAAgB,EAAE,sBAAsB,mBAAmB,SAAS,EAAE,UAAU,mBAAmB,MAAM;CACtK;AACF;;;;;;AAMA,SAAgB,+BACd,kBACkD;CAClD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB,mBAAmB,gBAAgB,EAAE;CAC/E;AACF"}
@@ -9,7 +9,7 @@ import { wowBasePath } from "@blizzard-api/core";
9
9
  function mythicRaidLeaderboard(raid, faction) {
10
10
  return {
11
11
  namespace: "dynamic",
12
- path: `${wowBasePath}/leaderboard/hall-of-fame/${raid}/${faction}`
12
+ path: `${wowBasePath}/leaderboard/hall-of-fame/${encodeURIComponent(raid)}/${encodeURIComponent(faction)}`
13
13
  };
14
14
  }
15
15
  export { mythicRaidLeaderboard };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/mythic-raid-leaderboard/index.ts"],"sourcesContent":["import type { NonNeutralFactions, Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { KnownRaidSlugs, MythicRaidLeaderboardResponse } from './types';\n\n/**\n * Get a Mythic Raid leaderboard by raid and faction.\n * @param raid The slug of the raid.\n * @param faction The faction. Either 'alliance' or 'horde'.\n * @returns The Mythic Raid leaderboard. See {@link MythicRaidLeaderboardResponse}.\n */\nexport function mythicRaidLeaderboard(\n raid: KnownRaidSlugs,\n faction: Lowercase<NonNeutralFactions>,\n): Resource<MythicRaidLeaderboardResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/leaderboard/hall-of-fame/${raid}/${faction}`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,sBACd,MACA,SACyC;CACzC,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,4BAA4B,KAAK,GAAG;CAC3D;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/mythic-raid-leaderboard/index.ts"],"sourcesContent":["import type { NonNeutralFactions, Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { KnownRaidSlugs, MythicRaidLeaderboardResponse } from './types';\n\n/**\n * Get a Mythic Raid leaderboard by raid and faction.\n * @param raid The slug of the raid.\n * @param faction The faction. Either 'alliance' or 'horde'.\n * @returns The Mythic Raid leaderboard. See {@link MythicRaidLeaderboardResponse}.\n */\nexport function mythicRaidLeaderboard(\n raid: KnownRaidSlugs,\n faction: Lowercase<NonNeutralFactions>,\n): Resource<MythicRaidLeaderboardResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/leaderboard/hall-of-fame/${encodeURIComponent(raid)}/${encodeURIComponent(faction)}`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,sBACd,MACA,SACyC;CACzC,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,4BAA4B,mBAAmB,IAAI,EAAE,GAAG,mBAAmB,OAAO;CACzG;AACF"}
@@ -18,7 +18,7 @@ function neighborhoodMaps() {
18
18
  function neighborhoodMap(neighborhoodMapId) {
19
19
  return {
20
20
  namespace: "dynamic",
21
- path: `${wowBasePath}/neighborhood-map/${neighborhoodMapId}`
21
+ path: `${wowBasePath}/neighborhood-map/${encodeURIComponent(neighborhoodMapId)}`
22
22
  };
23
23
  }
24
24
  /**
@@ -30,7 +30,7 @@ function neighborhoodMap(neighborhoodMapId) {
30
30
  function neighborhood(neighborhoodMapId, neighborhoodId) {
31
31
  return {
32
32
  namespace: "dynamic",
33
- path: `${wowBasePath}/neighborhood-map/${neighborhoodMapId}/neighborhood/${neighborhoodId}`
33
+ path: `${wowBasePath}/neighborhood-map/${encodeURIComponent(neighborhoodMapId)}/neighborhood/${encodeURIComponent(neighborhoodId)}`
34
34
  };
35
35
  }
36
36
  export { neighborhood, neighborhoodMap, neighborhoodMaps };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/neighborhood-map/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { NeighborhoodMapIndexResponse, NeighborhoodMapResponse, NeighborhoodResponse } from './types';\n\n/**\n * Get an index of neighborhood maps.\n * @returns The neighborhood map index. See {@link NeighborhoodMapIndexResponse}.\n */\nexport function neighborhoodMaps(): Resource<NeighborhoodMapIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/neighborhood-map/index`,\n };\n}\n\n/**\n * Get a neighborhood map by ID.\n * @param neighborhoodMapId The neighborhood map ID.\n * @returns The neighborhood map. See {@link NeighborhoodMapResponse}.\n */\nexport function neighborhoodMap(neighborhoodMapId: number): Resource<NeighborhoodMapResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/neighborhood-map/${neighborhoodMapId}`,\n };\n}\n\n/**\n * Get a neighborhood within a neighborhood map by ID.\n * @param neighborhoodMapId The neighborhood map ID.\n * @param neighborhoodId The neighborhood ID.\n * @returns The neighborhood. See {@link NeighborhoodResponse}.\n */\nexport function neighborhood(neighborhoodMapId: number, neighborhoodId: number): Resource<NeighborhoodResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/neighborhood-map/${neighborhoodMapId}/neighborhood/${neighborhoodId}`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,mBAA2D;CACzE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAOA,SAAgB,gBAAgB,mBAA8D;CAC5F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,oBAAoB;CAC3C;AACF;;;;;;;AAQA,SAAgB,aAAa,mBAA2B,gBAAwD;CAC9G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,oBAAoB,kBAAkB,gBAAgB;CAC7E;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/neighborhood-map/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { NeighborhoodMapIndexResponse, NeighborhoodMapResponse, NeighborhoodResponse } from './types';\n\n/**\n * Get an index of neighborhood maps.\n * @returns The neighborhood map index. See {@link NeighborhoodMapIndexResponse}.\n */\nexport function neighborhoodMaps(): Resource<NeighborhoodMapIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/neighborhood-map/index`,\n };\n}\n\n/**\n * Get a neighborhood map by ID.\n * @param neighborhoodMapId The neighborhood map ID.\n * @returns The neighborhood map. See {@link NeighborhoodMapResponse}.\n */\nexport function neighborhoodMap(neighborhoodMapId: number): Resource<NeighborhoodMapResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/neighborhood-map/${encodeURIComponent(neighborhoodMapId)}`,\n };\n}\n\n/**\n * Get a neighborhood within a neighborhood map by ID.\n * @param neighborhoodMapId The neighborhood map ID.\n * @param neighborhoodId The neighborhood ID.\n * @returns The neighborhood. See {@link NeighborhoodResponse}.\n */\nexport function neighborhood(neighborhoodMapId: number, neighborhoodId: number): Resource<NeighborhoodResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/neighborhood-map/${encodeURIComponent(neighborhoodMapId)}/neighborhood/${encodeURIComponent(neighborhoodId)}`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,mBAA2D;CACzE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAOA,SAAgB,gBAAgB,mBAA8D;CAC5F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,oBAAoB,mBAAmB,iBAAiB;CAC/E;AACF;;;;;;;AAQA,SAAgB,aAAa,mBAA2B,gBAAwD;CAC9G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,oBAAoB,mBAAmB,iBAAiB,EAAE,gBAAgB,mBAAmB,cAAc;CAClI;AACF"}
package/dist/pet/index.js CHANGED
@@ -8,7 +8,7 @@ import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
8
8
  function pet(petId) {
9
9
  return {
10
10
  namespace: "static",
11
- path: `${wowBasePath}/pet/${petId}`
11
+ path: `${wowBasePath}/pet/${encodeURIComponent(petId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -19,7 +19,7 @@ function pet(petId) {
19
19
  function petAbility(petAbilityId) {
20
20
  return {
21
21
  namespace: "static",
22
- path: `${wowBasePath}/pet-ability/${petAbilityId}`
22
+ path: `${wowBasePath}/pet-ability/${encodeURIComponent(petAbilityId)}`
23
23
  };
24
24
  }
25
25
  /**
@@ -40,7 +40,7 @@ function petAbilityIndex() {
40
40
  function petAbilityMedia(petAbilityId) {
41
41
  return {
42
42
  namespace: "static",
43
- path: `${wowMediaBasePath}/pet-ability/${petAbilityId}`
43
+ path: `${wowMediaBasePath}/pet-ability/${encodeURIComponent(petAbilityId)}`
44
44
  };
45
45
  }
46
46
  /**
@@ -61,7 +61,7 @@ function petIndex() {
61
61
  function petMedia(petId) {
62
62
  return {
63
63
  namespace: "static",
64
- path: `${wowMediaBasePath}/pet/${petId}`
64
+ path: `${wowMediaBasePath}/pet/${encodeURIComponent(petId)}`
65
65
  };
66
66
  }
67
67
  export { pet, petAbility, petAbilityIndex, petAbilityMedia, petIndex, petMedia };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/pet/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n PetAbilityIndexResponse,\n PetAbilityMediaResponse,\n PetAbilityResponse,\n PetIndexResponse,\n PetMediaResponse,\n PetResponse,\n} from './types';\n\n/**\n * Get a pet by ID.\n * @param petId The pet ID.\n * @returns The pet. See {@link PetResponse}.\n */\nexport function pet(petId: number): Resource<PetResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pet/${petId}`,\n };\n}\n/**\n * Get a pet ability by ID.\n * @param petAbilityId The pet ability ID.\n * @returns The pet ability. See {@link PetAbilityResponse}.\n */\nexport function petAbility(petAbilityId: number): Resource<PetAbilityResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pet-ability/${petAbilityId}`,\n };\n}\n/**\n * Get a pet ability index.\n * @returns The pet ability index. See {@link PetAbilityIndexResponse}.\n */\nexport function petAbilityIndex(): Resource<PetAbilityIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pet-ability/index`,\n };\n}\n/**\n * Get a pet ability media by ID.\n * @param petAbilityId The pet ability ID.\n * @returns The pet ability media. See {@link PetAbilityMediaResponse}.\n */\nexport function petAbilityMedia(petAbilityId: number): Resource<PetAbilityMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/pet-ability/${petAbilityId}`,\n };\n}\n/**\n * Get a pet index.\n * @returns The pet index. See {@link PetIndexResponse}.\n */\nexport function petIndex(): Resource<PetIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pet/index`,\n };\n}\n/**\n * Get a pet media by ID.\n * @param petId The pet ID.\n * @returns The pet media. See {@link PetMediaResponse}.\n */\nexport function petMedia(petId: number): Resource<PetMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/pet/${petId}`,\n };\n}\n"],"mappings":";;;;;;;AAgBA,SAAgB,IAAI,OAAsC;CACxD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,OAAO;CAC9B;AACF;;;;;;AAMA,SAAgB,WAAW,cAAoD;CAC7E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,eAAe;CACtC;AACF;;;;;AAKA,SAAgB,kBAAqD;CACnE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,gBAAgB,cAAyD;CACvF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,eAAe;CAC3C;AACF;;;;;AAKA,SAAgB,WAAuC;CACrD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,SAAS,OAA2C;CAClE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,OAAO;CACnC;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/pet/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n PetAbilityIndexResponse,\n PetAbilityMediaResponse,\n PetAbilityResponse,\n PetIndexResponse,\n PetMediaResponse,\n PetResponse,\n} from './types';\n\n/**\n * Get a pet by ID.\n * @param petId The pet ID.\n * @returns The pet. See {@link PetResponse}.\n */\nexport function pet(petId: number): Resource<PetResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pet/${encodeURIComponent(petId)}`,\n };\n}\n/**\n * Get a pet ability by ID.\n * @param petAbilityId The pet ability ID.\n * @returns The pet ability. See {@link PetAbilityResponse}.\n */\nexport function petAbility(petAbilityId: number): Resource<PetAbilityResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pet-ability/${encodeURIComponent(petAbilityId)}`,\n };\n}\n/**\n * Get a pet ability index.\n * @returns The pet ability index. See {@link PetAbilityIndexResponse}.\n */\nexport function petAbilityIndex(): Resource<PetAbilityIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pet-ability/index`,\n };\n}\n/**\n * Get a pet ability media by ID.\n * @param petAbilityId The pet ability ID.\n * @returns The pet ability media. See {@link PetAbilityMediaResponse}.\n */\nexport function petAbilityMedia(petAbilityId: number): Resource<PetAbilityMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/pet-ability/${encodeURIComponent(petAbilityId)}`,\n };\n}\n/**\n * Get a pet index.\n * @returns The pet index. See {@link PetIndexResponse}.\n */\nexport function petIndex(): Resource<PetIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pet/index`,\n };\n}\n/**\n * Get a pet media by ID.\n * @param petId The pet ID.\n * @returns The pet media. See {@link PetMediaResponse}.\n */\nexport function petMedia(petId: number): Resource<PetMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/pet/${encodeURIComponent(petId)}`,\n };\n}\n"],"mappings":";;;;;;;AAgBA,SAAgB,IAAI,OAAsC;CACxD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,OAAO,mBAAmB,KAAK;CACtD;AACF;;;;;;AAMA,SAAgB,WAAW,cAAoD;CAC7E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,eAAe,mBAAmB,YAAY;CACrE;AACF;;;;;AAKA,SAAgB,kBAAqD;CACnE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,gBAAgB,cAAyD;CACvF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,eAAe,mBAAmB,YAAY;CAC1E;AACF;;;;;AAKA,SAAgB,WAAuC;CACrD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,SAAS,OAA2C;CAClE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,OAAO,mBAAmB,KAAK;CAC3D;AACF"}
@@ -8,7 +8,7 @@ import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
8
8
  function playableClass(playableClassId) {
9
9
  return {
10
10
  namespace: "static",
11
- path: `${wowBasePath}/playable-class/${playableClassId}`
11
+ path: `${wowBasePath}/playable-class/${encodeURIComponent(playableClassId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -29,7 +29,7 @@ function playableClassIndex() {
29
29
  function playableClassMedia(playableClassId) {
30
30
  return {
31
31
  namespace: "static",
32
- path: `${wowMediaBasePath}/playable-class/${playableClassId}`
32
+ path: `${wowMediaBasePath}/playable-class/${encodeURIComponent(playableClassId)}`
33
33
  };
34
34
  }
35
35
  /**
@@ -40,7 +40,7 @@ function playableClassMedia(playableClassId) {
40
40
  function pvpTalentSlots(playableClassId) {
41
41
  return {
42
42
  namespace: "static",
43
- path: `${wowBasePath}/playable-class/${playableClassId}/pvp-talent-slots`
43
+ path: `${wowBasePath}/playable-class/${encodeURIComponent(playableClassId)}/pvp-talent-slots`
44
44
  };
45
45
  }
46
46
  export { playableClass, playableClassIndex, playableClassMedia, pvpTalentSlots };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/playable-class/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n PlayableClassIndexResponse,\n PlayableClassMediaResponse,\n PlayableClassResponse,\n PvpTalentSlotsResponse,\n} from './types';\n\n/**\n * Get a playable class by ID.\n * @param playableClassId The playable class ID.\n * @returns The playable class. See {@link PlayableClassResponse}.\n */\nexport function playableClass(playableClassId: number): Resource<PlayableClassResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-class/${playableClassId}`,\n };\n}\n/**\n * Get a playable class index.\n * @returns The playable class index. See {@link PlayableClassIndexResponse}.\n */\nexport function playableClassIndex(): Resource<PlayableClassIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-class/index`,\n };\n}\n/**\n * Get playable class media by ID.\n * @param playableClassId The playable class ID.\n * @returns The playable class media. See {@link PlayableClassMediaResponse}.\n */\nexport function playableClassMedia(playableClassId: number): Resource<PlayableClassMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/playable-class/${playableClassId}`,\n };\n}\n/**\n * Get a playable class's PvP talent slots by ID.\n * @param playableClassId The playable class ID.\n * @returns The playable class's PvP talent slots. See {@link PvpTalentSlotsResponse}.\n */\nexport function pvpTalentSlots(playableClassId: number): Resource<PvpTalentSlotsResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-class/${playableClassId}/pvp-talent-slots`,\n };\n}\n"],"mappings":";;;;;;;AAcA,SAAgB,cAAc,iBAA0D;CACtF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,kBAAkB;CACzC;AACF;;;;;AAKA,SAAgB,qBAA2D;CACzE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,mBAAmB,iBAA+D;CAChG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,kBAAkB;CAC9C;AACF;;;;;;AAMA,SAAgB,eAAe,iBAA2D;CACxF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,kBAAkB,gBAAgB;CACzD;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/playable-class/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n PlayableClassIndexResponse,\n PlayableClassMediaResponse,\n PlayableClassResponse,\n PvpTalentSlotsResponse,\n} from './types';\n\n/**\n * Get a playable class by ID.\n * @param playableClassId The playable class ID.\n * @returns The playable class. See {@link PlayableClassResponse}.\n */\nexport function playableClass(playableClassId: number): Resource<PlayableClassResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-class/${encodeURIComponent(playableClassId)}`,\n };\n}\n/**\n * Get a playable class index.\n * @returns The playable class index. See {@link PlayableClassIndexResponse}.\n */\nexport function playableClassIndex(): Resource<PlayableClassIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-class/index`,\n };\n}\n/**\n * Get playable class media by ID.\n * @param playableClassId The playable class ID.\n * @returns The playable class media. See {@link PlayableClassMediaResponse}.\n */\nexport function playableClassMedia(playableClassId: number): Resource<PlayableClassMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/playable-class/${encodeURIComponent(playableClassId)}`,\n };\n}\n/**\n * Get a playable class's PvP talent slots by ID.\n * @param playableClassId The playable class ID.\n * @returns The playable class's PvP talent slots. See {@link PvpTalentSlotsResponse}.\n */\nexport function pvpTalentSlots(playableClassId: number): Resource<PvpTalentSlotsResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-class/${encodeURIComponent(playableClassId)}/pvp-talent-slots`,\n };\n}\n"],"mappings":";;;;;;;AAcA,SAAgB,cAAc,iBAA0D;CACtF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,kBAAkB,mBAAmB,eAAe;CAC3E;AACF;;;;;AAKA,SAAgB,qBAA2D;CACzE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,mBAAmB,iBAA+D;CAChG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,kBAAkB,mBAAmB,eAAe;CAChF;AACF;;;;;;AAMA,SAAgB,eAAe,iBAA2D;CACxF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,kBAAkB,mBAAmB,eAAe,EAAE;CAC7E;AACF"}
@@ -8,7 +8,7 @@ import { wowBasePath } from "@blizzard-api/core";
8
8
  function playableRace(playableRaceId) {
9
9
  return {
10
10
  namespace: "static",
11
- path: `${wowBasePath}/playable-race/${playableRaceId}`
11
+ path: `${wowBasePath}/playable-race/${encodeURIComponent(playableRaceId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/playable-race/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { PlayableRaceIndexResponse, PlayableRaceResponse } from './types';\n\n/**\n * Get a playable race by ID.\n * @param playableRaceId The playable race ID.\n * @returns The playable race. See {@link PlayableRaceResponse}.\n */\nexport function playableRace(playableRaceId: number): Resource<PlayableRaceResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-race/${playableRaceId}`,\n };\n}\n/**\n * Get a playable race index.\n * @returns The playable race index. See {@link PlayableRaceIndexResponse}.\n */\nexport function playableRaceIndex(): Resource<PlayableRaceIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-race/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,aAAa,gBAAwD;CACnF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,iBAAiB;CACxC;AACF;;;;;AAKA,SAAgB,oBAAyD;CACvE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/playable-race/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { PlayableRaceIndexResponse, PlayableRaceResponse } from './types';\n\n/**\n * Get a playable race by ID.\n * @param playableRaceId The playable race ID.\n * @returns The playable race. See {@link PlayableRaceResponse}.\n */\nexport function playableRace(playableRaceId: number): Resource<PlayableRaceResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-race/${encodeURIComponent(playableRaceId)}`,\n };\n}\n/**\n * Get a playable race index.\n * @returns The playable race index. See {@link PlayableRaceIndexResponse}.\n */\nexport function playableRaceIndex(): Resource<PlayableRaceIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-race/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,aAAa,gBAAwD;CACnF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,iBAAiB,mBAAmB,cAAc;CACzE;AACF;;;;;AAKA,SAAgB,oBAAyD;CACvE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
@@ -8,7 +8,7 @@ import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
8
8
  function playableSpecialization(specializationId) {
9
9
  return {
10
10
  namespace: "static",
11
- path: `${wowBasePath}/playable-specialization/${specializationId}`
11
+ path: `${wowBasePath}/playable-specialization/${encodeURIComponent(specializationId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -29,7 +29,7 @@ function playableSpecializationIndex() {
29
29
  function playableSpecializationMedia(specializationId) {
30
30
  return {
31
31
  namespace: "static",
32
- path: `${wowMediaBasePath}/playable-specialization/${specializationId}`
32
+ path: `${wowMediaBasePath}/playable-specialization/${encodeURIComponent(specializationId)}`
33
33
  };
34
34
  }
35
35
  export { playableSpecialization, playableSpecializationIndex, playableSpecializationMedia };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/playable-specialization/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n PlayableSpecializationIndexResponse,\n PlayableSpecializationMediaResponse,\n PlayableSpecializationResponse,\n} from './types';\n\n/**\n * Get a playable specialization by ID.\n * @param specializationId The playable specialization ID.\n * @returns The playable specialization. See {@link PlayableSpecializationResponse}.\n */\nexport function playableSpecialization(specializationId: number): Resource<PlayableSpecializationResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-specialization/${specializationId}`,\n };\n}\n/**\n * Get a playable specialization index.\n * @returns The playable specialization index. See {@link PlayableSpecializationIndexResponse}.\n */\nexport function playableSpecializationIndex(): Resource<PlayableSpecializationIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-specialization/index`,\n };\n}\n/**\n * Get a playable specialization media by ID.\n * @param specializationId The playable specialization ID.\n * @returns The playable specialization media. See {@link PlayableSpecializationMediaResponse}.\n */\nexport function playableSpecializationMedia(specializationId: number): Resource<PlayableSpecializationMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/playable-specialization/${specializationId}`,\n };\n}\n"],"mappings":";;;;;;;AAaA,SAAgB,uBAAuB,kBAAoE;CACzG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,2BAA2B;CAClD;AACF;;;;;AAKA,SAAgB,8BAA6E;CAC3F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,4BAA4B,kBAAyE;CACnH,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,2BAA2B;CACvD;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/playable-specialization/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n PlayableSpecializationIndexResponse,\n PlayableSpecializationMediaResponse,\n PlayableSpecializationResponse,\n} from './types';\n\n/**\n * Get a playable specialization by ID.\n * @param specializationId The playable specialization ID.\n * @returns The playable specialization. See {@link PlayableSpecializationResponse}.\n */\nexport function playableSpecialization(specializationId: number): Resource<PlayableSpecializationResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-specialization/${encodeURIComponent(specializationId)}`,\n };\n}\n/**\n * Get a playable specialization index.\n * @returns The playable specialization index. See {@link PlayableSpecializationIndexResponse}.\n */\nexport function playableSpecializationIndex(): Resource<PlayableSpecializationIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-specialization/index`,\n };\n}\n/**\n * Get a playable specialization media by ID.\n * @param specializationId The playable specialization ID.\n * @returns The playable specialization media. See {@link PlayableSpecializationMediaResponse}.\n */\nexport function playableSpecializationMedia(specializationId: number): Resource<PlayableSpecializationMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/playable-specialization/${encodeURIComponent(specializationId)}`,\n };\n}\n"],"mappings":";;;;;;;AAaA,SAAgB,uBAAuB,kBAAoE;CACzG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,2BAA2B,mBAAmB,gBAAgB;CACrF;AACF;;;;;AAKA,SAAgB,8BAA6E;CAC3F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,4BAA4B,kBAAyE;CACnH,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,2BAA2B,mBAAmB,gBAAgB;CAC1F;AACF"}
@@ -8,7 +8,7 @@ import { wowBasePath } from "@blizzard-api/core";
8
8
  function powerType(powerTypeId) {
9
9
  return {
10
10
  namespace: "static",
11
- path: `${wowBasePath}/power-type/${powerTypeId}`
11
+ path: `${wowBasePath}/power-type/${encodeURIComponent(powerTypeId)}`
12
12
  };
13
13
  }
14
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/power-type/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { PowerTypeIndexResponse, PowerTypeResponse } from './types';\n\n/**\n * Get a power type by ID.\n * @param powerTypeId The power type ID.\n * @returns The power type. See {@link PowerTypeResponse}.\n */\nexport function powerType(powerTypeId: number): Resource<PowerTypeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/power-type/${powerTypeId}`,\n };\n}\n/**\n * Get a power type index.\n * @returns The power type index. See {@link PowerTypeIndexResponse}.\n */\nexport function powerTypeIndex(): Resource<PowerTypeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/power-type/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,UAAU,aAAkD;CAC1E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc;CACrC;AACF;;;;;AAKA,SAAgB,iBAAmD;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/power-type/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { PowerTypeIndexResponse, PowerTypeResponse } from './types';\n\n/**\n * Get a power type by ID.\n * @param powerTypeId The power type ID.\n * @returns The power type. See {@link PowerTypeResponse}.\n */\nexport function powerType(powerTypeId: number): Resource<PowerTypeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/power-type/${encodeURIComponent(powerTypeId)}`,\n };\n}\n/**\n * Get a power type index.\n * @returns The power type index. See {@link PowerTypeIndexResponse}.\n */\nexport function powerTypeIndex(): Resource<PowerTypeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/power-type/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,UAAU,aAAkD;CAC1E,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc,mBAAmB,WAAW;CACnE;AACF;;;;;AAKA,SAAgB,iBAAmD;CACjE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}