lol-constants 0.10.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. package/{dist/Constants → assets}/StatRunes.d.ts +0 -0
  2. package/{dist/Constants → assets}/StatRunes.js +0 -0
  3. package/assets/champion.json +1 -0
  4. package/assets/index.d.ts +17216 -0
  5. package/assets/index.js +17 -0
  6. package/assets/item.json +1 -0
  7. package/assets/runesReforged.json +1 -0
  8. package/assets/scripts/Helpers/getExportStatement.d.ts +6 -0
  9. package/assets/scripts/Helpers/getExportStatement.js +10 -0
  10. package/assets/scripts/generate-all.d.ts +16 -0
  11. package/assets/scripts/generate-all.js +18 -0
  12. package/assets/scripts/generate-champion-ids-by-name.d.ts +1 -0
  13. package/assets/scripts/generate-champion-ids-by-name.js +20 -0
  14. package/assets/scripts/generate-champion-ids.d.ts +1 -0
  15. package/assets/scripts/generate-champion-ids.js +20 -0
  16. package/assets/scripts/generate-champion-keys.d.ts +1 -0
  17. package/assets/scripts/generate-champion-keys.js +20 -0
  18. package/assets/scripts/generate-champion-names.d.ts +1 -0
  19. package/assets/scripts/generate-champion-names.js +20 -0
  20. package/assets/scripts/generate-item-keys.d.ts +1 -0
  21. package/assets/scripts/generate-item-keys.js +21 -0
  22. package/assets/scripts/generate-item-names.d.ts +1 -0
  23. package/assets/scripts/generate-item-names.js +21 -0
  24. package/assets/scripts/generate-rune-ids.d.ts +1 -0
  25. package/assets/scripts/generate-rune-ids.js +29 -0
  26. package/assets/scripts/generate-rune-names.d.ts +1 -0
  27. package/assets/scripts/generate-rune-names.js +29 -0
  28. package/assets/scripts/generate-spell-ids-by-name.d.ts +1 -0
  29. package/assets/scripts/generate-spell-ids-by-name.js +20 -0
  30. package/assets/scripts/generate-spell-ids.d.ts +1 -0
  31. package/assets/scripts/generate-spell-ids.js +20 -0
  32. package/assets/scripts/generate-spell-keys.d.ts +1 -0
  33. package/assets/scripts/generate-spell-keys.js +20 -0
  34. package/assets/scripts/generate-spell-names.d.ts +1 -0
  35. package/assets/scripts/generate-spell-names.js +20 -0
  36. package/assets/scripts/generate-stat-rune-ids.d.ts +1 -0
  37. package/assets/scripts/generate-stat-rune-ids.js +20 -0
  38. package/assets/scripts/generate-stat-rune-names.d.ts +1 -0
  39. package/assets/scripts/generate-stat-rune-names.js +20 -0
  40. package/assets/scripts/generate-tree-rune-ids.d.ts +1 -0
  41. package/assets/scripts/generate-tree-rune-ids.js +22 -0
  42. package/assets/scripts/generate-tree-rune-names.d.ts +1 -0
  43. package/assets/scripts/generate-tree-rune-names.js +22 -0
  44. package/assets/summoner.json +1 -0
  45. package/dist/Constants/ChampionIds.d.ts +162 -0
  46. package/dist/Constants/ChampionIds.js +4 -0
  47. package/dist/Constants/ChampionIdsByName.d.ts +162 -0
  48. package/dist/Constants/ChampionIdsByName.js +4 -0
  49. package/dist/Constants/ChampionKeys.d.ts +162 -2
  50. package/dist/Constants/ChampionKeys.js +1 -5
  51. package/dist/Constants/ChampionNames.d.ts +162 -2
  52. package/dist/Constants/ChampionNames.js +1 -5
  53. package/dist/Constants/DDPaths.d.ts +27 -5
  54. package/dist/Constants/DDPaths.js +29 -7
  55. package/dist/Constants/ItemKeys.d.ts +250 -2
  56. package/dist/Constants/ItemKeys.js +1 -5
  57. package/dist/Constants/ItemNames.d.ts +256 -2
  58. package/dist/Constants/ItemNames.js +1 -5
  59. package/dist/Constants/RuneIds.d.ts +74 -2
  60. package/dist/Constants/RuneIds.js +1 -9
  61. package/dist/Constants/RuneNames.d.ts +74 -2
  62. package/dist/Constants/RuneNames.js +1 -5
  63. package/dist/Constants/RuneSets.d.ts +59 -0
  64. package/dist/Constants/RuneSets.js +188 -144
  65. package/dist/Constants/SpellIds.d.ts +18 -0
  66. package/dist/Constants/SpellIds.js +4 -0
  67. package/dist/Constants/SpellIdsByName.d.ts +17 -0
  68. package/dist/Constants/SpellIdsByName.js +4 -0
  69. package/dist/Constants/SpellKeys.d.ts +18 -0
  70. package/dist/Constants/SpellKeys.js +4 -0
  71. package/dist/Constants/SpellNames.d.ts +18 -0
  72. package/dist/Constants/SpellNames.js +4 -0
  73. package/dist/Constants/StatRuneIds.d.ts +11 -2
  74. package/dist/Constants/StatRuneIds.js +1 -2
  75. package/dist/Constants/StatRuneNames.d.ts +11 -2
  76. package/dist/Constants/StatRuneNames.js +1 -2
  77. package/dist/Constants/TreeRuneIds.d.ts +65 -2
  78. package/dist/Constants/TreeRuneIds.js +1 -5
  79. package/dist/Constants/TreeRuneNames.d.ts +65 -2
  80. package/dist/Constants/TreeRuneNames.js +1 -5
  81. package/dist/Helpers/getChampionIdByKey.d.ts +2 -0
  82. package/dist/Helpers/getChampionIdByKey.js +8 -0
  83. package/dist/Helpers/getChampionIdByName.d.ts +2 -0
  84. package/dist/Helpers/getChampionIdByName.js +8 -0
  85. package/dist/Helpers/getChampionKeyById.d.ts +2 -0
  86. package/dist/Helpers/getChampionKeyById.js +8 -0
  87. package/dist/Helpers/getChampionKeyByName.js +3 -5
  88. package/dist/Helpers/getChampionNameById.d.ts +2 -0
  89. package/dist/Helpers/getChampionNameById.js +9 -0
  90. package/dist/Helpers/getChampionNameByKey.js +2 -5
  91. package/dist/Helpers/getItemKeyByName.js +2 -5
  92. package/dist/Helpers/getItemNameByKey.js +2 -5
  93. package/dist/Helpers/getRuneIdByName.js +2 -15
  94. package/dist/Helpers/getRuneNameById.js +2 -9
  95. package/dist/Helpers/getSpellIdByKey.d.ts +2 -0
  96. package/dist/Helpers/getSpellIdByKey.js +8 -0
  97. package/dist/Helpers/getSpellIdByName.d.ts +2 -0
  98. package/dist/Helpers/getSpellIdByName.js +8 -0
  99. package/dist/Helpers/getSpellKeyById.d.ts +2 -0
  100. package/dist/Helpers/getSpellKeyById.js +8 -0
  101. package/dist/Helpers/getSpellKeyByName.d.ts +2 -0
  102. package/dist/Helpers/getSpellKeyByName.js +9 -0
  103. package/dist/Helpers/getSpellNameById.d.ts +2 -0
  104. package/dist/Helpers/getSpellNameById.js +9 -0
  105. package/dist/Helpers/getSpellNameByKey.d.ts +2 -0
  106. package/dist/Helpers/getSpellNameByKey.js +8 -0
  107. package/dist/Helpers/getStatRuneIdByName.d.ts +2 -0
  108. package/dist/Helpers/getStatRuneIdByName.js +8 -0
  109. package/dist/Helpers/getStatRuneNameById.d.ts +2 -0
  110. package/dist/Helpers/getStatRuneNameById.js +8 -0
  111. package/dist/Helpers/getTreeRuneIdByName.d.ts +2 -0
  112. package/dist/Helpers/getTreeRuneIdByName.js +8 -0
  113. package/dist/Helpers/getTreeRuneNameById.d.ts +2 -0
  114. package/dist/Helpers/getTreeRuneNameById.js +8 -0
  115. package/dist/Helpers/isChampionId.d.ts +2 -0
  116. package/dist/Helpers/isChampionId.js +8 -0
  117. package/dist/Helpers/isChampionKey.d.ts +1 -1
  118. package/dist/Helpers/isChampionKey.js +2 -4
  119. package/dist/Helpers/isChampionName.d.ts +1 -1
  120. package/dist/Helpers/isChampionName.js +2 -4
  121. package/dist/Helpers/isItemKey.d.ts +1 -1
  122. package/dist/Helpers/isItemKey.js +2 -4
  123. package/dist/Helpers/isItemName.d.ts +1 -1
  124. package/dist/Helpers/isItemName.js +2 -4
  125. package/dist/Helpers/isRuneId.d.ts +1 -1
  126. package/dist/Helpers/isRuneId.js +2 -4
  127. package/dist/Helpers/isRuneName.d.ts +1 -1
  128. package/dist/Helpers/isRuneName.js +2 -4
  129. package/dist/Helpers/isSpellId.d.ts +2 -0
  130. package/dist/Helpers/isSpellId.js +8 -0
  131. package/dist/Helpers/isSpellKey.d.ts +2 -0
  132. package/dist/Helpers/isSpellKey.js +8 -0
  133. package/dist/Helpers/isSpellName.d.ts +2 -0
  134. package/dist/Helpers/isSpellName.js +8 -0
  135. package/dist/Helpers/isStatRuneId.d.ts +1 -1
  136. package/dist/Helpers/isStatRuneId.js +2 -4
  137. package/dist/Helpers/isStatRuneName.d.ts +1 -1
  138. package/dist/Helpers/isStatRuneName.js +2 -4
  139. package/dist/Helpers/isTreeRuneId.d.ts +1 -1
  140. package/dist/Helpers/isTreeRuneId.js +2 -4
  141. package/dist/Helpers/isTreeRuneName.d.ts +1 -1
  142. package/dist/Helpers/isTreeRuneName.js +2 -4
  143. package/dist/assets/StatRunes.d.ts +11 -0
  144. package/dist/assets/StatRunes.js +14 -0
  145. package/dist/assets/champion.json +1 -1
  146. package/dist/assets/index.d.ts +17216 -0
  147. package/dist/assets/index.js +17 -0
  148. package/dist/assets/item.json +1 -1
  149. package/dist/assets/runesReforged.json +1 -1
  150. package/dist/assets/summoner.json +1 -1
  151. package/dist/index.d.ts +25 -43394
  152. package/dist/index.js +80 -46
  153. package/dist/scripts/Helpers/getExportStatement.d.ts +6 -0
  154. package/dist/scripts/Helpers/getExportStatement.js +10 -0
  155. package/dist/scripts/generate-all.d.ts +16 -1
  156. package/dist/scripts/generate-all.js +16 -17
  157. package/dist/scripts/generate-champion-ids-by-name.d.ts +1 -0
  158. package/dist/{Helpers/generateChampionsByKey.js → scripts/generate-champion-ids-by-name.js} +9 -11
  159. package/dist/scripts/generate-champion-ids.d.ts +1 -0
  160. package/dist/{Helpers/generateChampionsByName.js → scripts/generate-champion-ids.js} +9 -11
  161. package/dist/scripts/generate-champion-keys.d.ts +1 -0
  162. package/dist/scripts/generate-champion-keys.js +20 -0
  163. package/dist/scripts/generate-champion-names.d.ts +1 -0
  164. package/dist/scripts/generate-champion-names.js +20 -0
  165. package/dist/scripts/generate-item-keys.d.ts +1 -0
  166. package/dist/scripts/generate-item-keys.js +21 -0
  167. package/dist/scripts/generate-item-names.d.ts +1 -0
  168. package/dist/scripts/generate-item-names.js +21 -0
  169. package/dist/scripts/generate-rune-ids.d.ts +1 -0
  170. package/dist/scripts/generate-rune-ids.js +29 -0
  171. package/dist/scripts/generate-rune-names.d.ts +1 -0
  172. package/dist/scripts/generate-rune-names.js +29 -0
  173. package/dist/scripts/generate-spell-ids-by-name.d.ts +1 -0
  174. package/dist/scripts/generate-spell-ids-by-name.js +20 -0
  175. package/dist/scripts/generate-spell-ids.d.ts +1 -0
  176. package/dist/scripts/generate-spell-ids.js +20 -0
  177. package/dist/scripts/generate-spell-keys.d.ts +1 -0
  178. package/dist/scripts/generate-spell-keys.js +20 -0
  179. package/dist/scripts/generate-spell-names.d.ts +1 -0
  180. package/dist/scripts/generate-spell-names.js +20 -0
  181. package/dist/scripts/generate-stat-rune-ids.d.ts +1 -0
  182. package/dist/scripts/generate-stat-rune-ids.js +20 -0
  183. package/dist/scripts/generate-stat-rune-names.d.ts +1 -0
  184. package/dist/scripts/generate-stat-rune-names.js +20 -0
  185. package/dist/scripts/generate-tree-rune-ids.d.ts +1 -0
  186. package/dist/{Helpers/generateRunesById.js → scripts/generate-tree-rune-ids.js} +9 -7
  187. package/dist/scripts/generate-tree-rune-names.d.ts +1 -0
  188. package/dist/{Helpers/generateRunesByName.js → scripts/generate-tree-rune-names.js} +9 -7
  189. package/dist/types/Meta.d.ts +25 -0
  190. package/dist/types/index.d.ts +154 -23
  191. package/package.json +4 -3
  192. package/dist/Constants/SummonerIds.d.ts +0 -2
  193. package/dist/Constants/SummonerIds.js +0 -8
  194. package/dist/Constants/SummonerKeys.d.ts +0 -2
  195. package/dist/Constants/SummonerKeys.js +0 -8
  196. package/dist/Constants/SummonerNames.d.ts +0 -2
  197. package/dist/Constants/SummonerNames.js +0 -8
  198. package/dist/Constants/SummonerSpellIds.d.ts +0 -2
  199. package/dist/Constants/SummonerSpellIds.js +0 -8
  200. package/dist/Constants/SummonerSpellKeys.d.ts +0 -2
  201. package/dist/Constants/SummonerSpellKeys.js +0 -8
  202. package/dist/Constants/SummonerSpellNames.d.ts +0 -2
  203. package/dist/Constants/SummonerSpellNames.js +0 -8
  204. package/dist/Helpers/generateChampionsByKey.d.ts +0 -1
  205. package/dist/Helpers/generateChampionsByName.d.ts +0 -1
  206. package/dist/Helpers/generateItemsByName.d.ts +0 -1
  207. package/dist/Helpers/generateItemsByName.js +0 -25
  208. package/dist/Helpers/generateRunesById.d.ts +0 -1
  209. package/dist/Helpers/generateRunesByName.d.ts +0 -1
  210. package/dist/Helpers/generateSummonerSpellsByKey.d.ts +0 -1
  211. package/dist/Helpers/generateSummonerSpellsByKey.js +0 -24
  212. package/dist/Helpers/generateSummonerSpellsByName.d.ts +0 -1
  213. package/dist/Helpers/generateSummonerSpellsByName.js +0 -24
  214. package/dist/Helpers/generateSummonersByKey.d.ts +0 -1
  215. package/dist/Helpers/generateSummonersByKey.js +0 -24
  216. package/dist/Helpers/generateSummonersByName.d.ts +0 -1
  217. package/dist/Helpers/generateSummonersByName.js +0 -24
  218. package/dist/Helpers/getSummonerSpellKeyByName.d.ts +0 -2
  219. package/dist/Helpers/getSummonerSpellKeyByName.js +0 -11
  220. package/dist/Helpers/getSummonerSpellNameByKey.d.ts +0 -2
  221. package/dist/Helpers/getSummonerSpellNameByKey.js +0 -11
  222. package/dist/Helpers/isSummonerId.d.ts +0 -2
  223. package/dist/Helpers/isSummonerId.js +0 -10
  224. package/dist/Helpers/isSummonerKey.d.ts +0 -2
  225. package/dist/Helpers/isSummonerKey.js +0 -10
  226. package/dist/Helpers/isSummonerName.d.ts +0 -2
  227. package/dist/Helpers/isSummonerName.js +0 -10
  228. package/dist/Helpers/isSummonerSpellId.d.ts +0 -2
  229. package/dist/Helpers/isSummonerSpellId.js +0 -10
  230. package/dist/Helpers/isSummonerSpellKey.d.ts +0 -2
  231. package/dist/Helpers/isSummonerSpellKey.js +0 -10
  232. package/dist/Helpers/isSummonerSpellName.d.ts +0 -2
  233. package/dist/Helpers/isSummonerSpellName.js +0 -10
  234. package/dist/generated/championByKey.json +0 -1
  235. package/dist/generated/championByName.json +0 -1
  236. package/dist/generated/itemByKey.json +0 -1
  237. package/dist/generated/itemByName.json +0 -1
  238. package/dist/generated/runesById.json +0 -1
  239. package/dist/generated/runesByName.json +0 -1
  240. package/dist/generated/summonerByKey.json +0 -1
  241. package/dist/generated/summonerByName.json +0 -1
@@ -0,0 +1,2 @@
1
+ import { ChampionId, ChampionKey } from '../types';
2
+ export declare function getChampionIdByKey(key: ChampionKey): ChampionId;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getChampionIdByKey = void 0;
4
+ const ChampionIds_1 = require("../Constants/ChampionIds");
5
+ function getChampionIdByKey(key) {
6
+ return ChampionIds_1.ChampionIds[key];
7
+ }
8
+ exports.getChampionIdByKey = getChampionIdByKey;
@@ -0,0 +1,2 @@
1
+ import { ChampionId, ChampionName } from '../types';
2
+ export declare function getChampionIdByName(name: ChampionName): ChampionId;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getChampionIdByName = void 0;
4
+ const ChampionIdsByName_1 = require("../Constants/ChampionIdsByName");
5
+ function getChampionIdByName(name) {
6
+ return ChampionIdsByName_1.ChampionIdsByName[name];
7
+ }
8
+ exports.getChampionIdByName = getChampionIdByName;
@@ -0,0 +1,2 @@
1
+ import { ChampionId, ChampionKey } from '../types';
2
+ export declare function getChampionKeyById(id: ChampionId): ChampionKey;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getChampionKeyById = void 0;
4
+ const ChampionKeys_1 = require("../Constants/ChampionKeys");
5
+ function getChampionKeyById(id) {
6
+ return ChampionKeys_1.ChampionKeys[id];
7
+ }
8
+ exports.getChampionKeyById = getChampionKeyById;
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getChampionKeyByName = void 0;
7
- const championByName_json_1 = __importDefault(require("../generated/championByName.json"));
4
+ const ChampionIdsByName_1 = require("../Constants/ChampionIdsByName");
5
+ const ChampionKeys_1 = require("../Constants/ChampionKeys");
8
6
  function getChampionKeyByName(name) {
9
- return championByName_json_1.default.data[name].key;
7
+ return ChampionKeys_1.ChampionKeys[ChampionIdsByName_1.ChampionIdsByName[name]];
10
8
  }
11
9
  exports.getChampionKeyByName = getChampionKeyByName;
@@ -0,0 +1,2 @@
1
+ import { ChampionId, ChampionName } from '../types';
2
+ export declare function getChampionNameById(id: ChampionId): ChampionName;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getChampionNameById = void 0;
4
+ const ChampionKeys_1 = require("../Constants/ChampionKeys");
5
+ const ChampionNames_1 = require("../Constants/ChampionNames");
6
+ function getChampionNameById(id) {
7
+ return ChampionNames_1.ChampionNames[ChampionKeys_1.ChampionKeys[id]];
8
+ }
9
+ exports.getChampionNameById = getChampionNameById;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getChampionNameByKey = void 0;
7
- const championByKey_json_1 = __importDefault(require("../generated/championByKey.json"));
4
+ const ChampionNames_1 = require("../Constants/ChampionNames");
8
5
  function getChampionNameByKey(key) {
9
- return championByKey_json_1.default.data[key].name;
6
+ return ChampionNames_1.ChampionNames[key];
10
7
  }
11
8
  exports.getChampionNameByKey = getChampionNameByKey;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getItemKeyByName = void 0;
7
- const itemByName_json_1 = __importDefault(require("../generated/itemByName.json"));
4
+ const ItemKeys_1 = require("../Constants/ItemKeys");
8
5
  function getItemKeyByName(name) {
9
- return itemByName_json_1.default.data[name].key;
6
+ return ItemKeys_1.ItemKeys[name];
10
7
  }
11
8
  exports.getItemKeyByName = getItemKeyByName;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getItemNameByKey = void 0;
7
- const item_json_1 = __importDefault(require("../assets/item.json"));
4
+ const ItemNames_1 = require("../Constants/ItemNames");
8
5
  function getItemNameByKey(key) {
9
- return item_json_1.default.data[key].name;
6
+ return ItemNames_1.ItemNames[key];
10
7
  }
11
8
  exports.getItemNameByKey = getItemNameByKey;
@@ -1,21 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getRuneIdByName = void 0;
7
- const runesByName_json_1 = __importDefault(require("../generated/runesByName.json"));
8
- const StatRunes_1 = require("../Constants/StatRunes");
9
- const isStatRuneName_1 = require("./isStatRuneName");
4
+ const RuneIds_1 = require("../Constants/RuneIds");
10
5
  function getRuneIdByName(name) {
11
- if ((0, isStatRuneName_1.isStatRuneName)(name)) {
12
- let statRuneId;
13
- for (statRuneId in StatRunes_1.StatRunes) {
14
- if (StatRunes_1.StatRunes[statRuneId] == name)
15
- return statRuneId;
16
- }
17
- return '5001';
18
- }
19
- return runesByName_json_1.default[name].id;
6
+ return RuneIds_1.RuneIds[name];
20
7
  }
21
8
  exports.getRuneIdByName = getRuneIdByName;
@@ -1,15 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getRuneNameById = void 0;
7
- const runesById_json_1 = __importDefault(require("../generated/runesById.json"));
8
- const StatRunes_1 = require("../Constants/StatRunes");
9
- const isStatRuneId_1 = require("./isStatRuneId");
4
+ const RuneNames_1 = require("../Constants/RuneNames");
10
5
  function getRuneNameById(id) {
11
- if ((0, isStatRuneId_1.isStatRuneId)(id))
12
- return StatRunes_1.StatRunes[id];
13
- return runesById_json_1.default[id].name;
6
+ return RuneNames_1.RuneNames[id];
14
7
  }
15
8
  exports.getRuneNameById = getRuneNameById;
@@ -0,0 +1,2 @@
1
+ import { SpellId, SpellKey } from '../types';
2
+ export declare function getSpellIdByKey(key: SpellKey): SpellId;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSpellIdByKey = void 0;
4
+ const SpellIds_1 = require("../Constants/SpellIds");
5
+ function getSpellIdByKey(key) {
6
+ return SpellIds_1.SpellIds[key];
7
+ }
8
+ exports.getSpellIdByKey = getSpellIdByKey;
@@ -0,0 +1,2 @@
1
+ import { SpellId, SpellName } from '../types';
2
+ export declare function getSpellIdByName(name: SpellName): SpellId;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSpellIdByName = void 0;
4
+ const SpellIdsByName_1 = require("../Constants/SpellIdsByName");
5
+ function getSpellIdByName(name) {
6
+ return SpellIdsByName_1.SpellIdsByName[name];
7
+ }
8
+ exports.getSpellIdByName = getSpellIdByName;
@@ -0,0 +1,2 @@
1
+ import { SpellId, SpellKey } from '../types';
2
+ export declare function getSpellKeyById(id: SpellId): SpellKey;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSpellKeyById = void 0;
4
+ const SpellKeys_1 = require("../Constants/SpellKeys");
5
+ function getSpellKeyById(id) {
6
+ return SpellKeys_1.SpellKeys[id];
7
+ }
8
+ exports.getSpellKeyById = getSpellKeyById;
@@ -0,0 +1,2 @@
1
+ import { SpellKey, SpellName } from '../types';
2
+ export declare function getSpellKeyByName(name: SpellName): SpellKey;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSpellKeyByName = void 0;
4
+ const SpellIdsByName_1 = require("../Constants/SpellIdsByName");
5
+ const SpellKeys_1 = require("../Constants/SpellKeys");
6
+ function getSpellKeyByName(name) {
7
+ return SpellKeys_1.SpellKeys[SpellIdsByName_1.SpellIdsByName[name]];
8
+ }
9
+ exports.getSpellKeyByName = getSpellKeyByName;
@@ -0,0 +1,2 @@
1
+ import { SpellId, SpellName } from '../types';
2
+ export declare function getSpellNameById(id: SpellId): SpellName;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSpellNameById = void 0;
4
+ const SpellKeys_1 = require("../Constants/SpellKeys");
5
+ const SpellNames_1 = require("../Constants/SpellNames");
6
+ function getSpellNameById(id) {
7
+ return SpellNames_1.SpellNames[SpellKeys_1.SpellKeys[id]];
8
+ }
9
+ exports.getSpellNameById = getSpellNameById;
@@ -0,0 +1,2 @@
1
+ import { SpellKey, SpellName } from '../types';
2
+ export declare function getSpellNameByKey(key: SpellKey): SpellName;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSpellNameByKey = void 0;
4
+ const SpellNames_1 = require("../Constants/SpellNames");
5
+ function getSpellNameByKey(key) {
6
+ return SpellNames_1.SpellNames[key];
7
+ }
8
+ exports.getSpellNameByKey = getSpellNameByKey;
@@ -0,0 +1,2 @@
1
+ import { StatRuneId, StatRuneName } from '../types';
2
+ export declare function getStatRuneIdByName(name: StatRuneName): StatRuneId;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getStatRuneIdByName = void 0;
4
+ const StatRuneIds_1 = require("../Constants/StatRuneIds");
5
+ function getStatRuneIdByName(name) {
6
+ return StatRuneIds_1.StatRuneIds[name];
7
+ }
8
+ exports.getStatRuneIdByName = getStatRuneIdByName;
@@ -0,0 +1,2 @@
1
+ import { StatRuneId, StatRuneName } from '../types';
2
+ export declare function getStatRuneNameById(id: StatRuneId): StatRuneName;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getStatRuneNameById = void 0;
4
+ const StatRuneNames_1 = require("../Constants/StatRuneNames");
5
+ function getStatRuneNameById(id) {
6
+ return StatRuneNames_1.StatRuneNames[id];
7
+ }
8
+ exports.getStatRuneNameById = getStatRuneNameById;
@@ -0,0 +1,2 @@
1
+ import { TreeRuneId, TreeRuneName } from '../types';
2
+ export declare function getTreeRuneIdByName(name: TreeRuneName): TreeRuneId;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTreeRuneIdByName = void 0;
4
+ const TreeRuneIds_1 = require("../Constants/TreeRuneIds");
5
+ function getTreeRuneIdByName(name) {
6
+ return TreeRuneIds_1.TreeRuneIds[name];
7
+ }
8
+ exports.getTreeRuneIdByName = getTreeRuneIdByName;
@@ -0,0 +1,2 @@
1
+ import { TreeRuneId, TreeRuneName } from '../types';
2
+ export declare function getTreeRuneNameById(id: TreeRuneId): TreeRuneName;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTreeRuneNameById = void 0;
4
+ const TreeRuneNames_1 = require("../Constants/TreeRuneNames");
5
+ function getTreeRuneNameById(id) {
6
+ return TreeRuneNames_1.TreeRuneNames[id];
7
+ }
8
+ exports.getTreeRuneNameById = getTreeRuneNameById;
@@ -0,0 +1,2 @@
1
+ import { ChampionId } from '../types';
2
+ export declare function isChampionId(id: string): id is ChampionId;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isChampionId = void 0;
4
+ const ChampionKeys_1 = require("../Constants/ChampionKeys");
5
+ function isChampionId(id) {
6
+ return id in ChampionKeys_1.ChampionKeys;
7
+ }
8
+ exports.isChampionId = isChampionId;
@@ -1,2 +1,2 @@
1
1
  import { ChampionKey } from '../types';
2
- export declare function isChampionKey(key: any): key is ChampionKey;
2
+ export declare function isChampionKey(key: string): key is ChampionKey;
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isChampionKey = void 0;
4
- const ChampionKeys_1 = require("../Constants/ChampionKeys");
4
+ const ChampionNames_1 = require("../Constants/ChampionNames");
5
5
  function isChampionKey(key) {
6
- if (ChampionKeys_1.ChampionKeys.includes(key))
7
- return true;
8
- return false;
6
+ return key in ChampionNames_1.ChampionNames;
9
7
  }
10
8
  exports.isChampionKey = isChampionKey;
@@ -1,2 +1,2 @@
1
1
  import { ChampionName } from '../types';
2
- export declare function isChampionName(name: any): name is ChampionName;
2
+ export declare function isChampionName(name: string): name is ChampionName;
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isChampionName = void 0;
4
- const ChampionNames_1 = require("../Constants/ChampionNames");
4
+ const ChampionIdsByName_1 = require("../Constants/ChampionIdsByName");
5
5
  function isChampionName(name) {
6
- if (ChampionNames_1.ChampionNames.includes(name))
7
- return true;
8
- return false;
6
+ return name in ChampionIdsByName_1.ChampionIdsByName;
9
7
  }
10
8
  exports.isChampionName = isChampionName;
@@ -1,2 +1,2 @@
1
1
  import { ItemKey } from '../types';
2
- export declare function isItemKey(key: any): key is ItemKey;
2
+ export declare function isItemKey(key: string): key is ItemKey;
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isItemKey = void 0;
4
- const ItemKeys_1 = require("../Constants/ItemKeys");
4
+ const ItemNames_1 = require("../Constants/ItemNames");
5
5
  function isItemKey(key) {
6
- if (ItemKeys_1.ItemKeys.includes(key))
7
- return true;
8
- return false;
6
+ return key in ItemNames_1.ItemNames;
9
7
  }
10
8
  exports.isItemKey = isItemKey;
@@ -1,2 +1,2 @@
1
1
  import { ItemName } from '../types';
2
- export declare function isItemName(name: any): name is ItemName;
2
+ export declare function isItemName(name: string): name is ItemName;
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isItemName = void 0;
4
- const ItemNames_1 = require("../Constants/ItemNames");
4
+ const ItemKeys_1 = require("../Constants/ItemKeys");
5
5
  function isItemName(name) {
6
- if (ItemNames_1.ItemNames.includes(name))
7
- return true;
8
- return false;
6
+ return name in ItemKeys_1.ItemKeys;
9
7
  }
10
8
  exports.isItemName = isItemName;
@@ -1,2 +1,2 @@
1
1
  import { RuneId } from '../types';
2
- export declare function isRuneId(id: any): id is RuneId;
2
+ export declare function isRuneId(id: string): id is RuneId;
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isRuneId = void 0;
4
- const RuneIds_1 = require("../Constants/RuneIds");
4
+ const RuneNames_1 = require("../Constants/RuneNames");
5
5
  function isRuneId(id) {
6
- if (RuneIds_1.RuneIds.includes(id))
7
- return true;
8
- return false;
6
+ return id in RuneNames_1.RuneNames;
9
7
  }
10
8
  exports.isRuneId = isRuneId;
@@ -1,2 +1,2 @@
1
1
  import { RuneName } from '../types';
2
- export declare function isRuneName(name: any): name is RuneName;
2
+ export declare function isRuneName(name: string): name is RuneName;
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isRuneName = void 0;
4
- const RuneNames_1 = require("../Constants/RuneNames");
4
+ const RuneIds_1 = require("../Constants/RuneIds");
5
5
  function isRuneName(name) {
6
- if (RuneNames_1.RuneNames.includes(name))
7
- return true;
8
- return false;
6
+ return name in RuneIds_1.RuneIds;
9
7
  }
10
8
  exports.isRuneName = isRuneName;
@@ -0,0 +1,2 @@
1
+ import { SpellId } from '../types';
2
+ export declare function isSpellId(id: string): id is SpellId;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSpellId = void 0;
4
+ const SpellKeys_1 = require("../Constants/SpellKeys");
5
+ function isSpellId(id) {
6
+ return id in SpellKeys_1.SpellKeys;
7
+ }
8
+ exports.isSpellId = isSpellId;
@@ -0,0 +1,2 @@
1
+ import { SpellKey } from '../types';
2
+ export declare function isSpellKey(key: string): key is SpellKey;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSpellKey = void 0;
4
+ const SpellNames_1 = require("../Constants/SpellNames");
5
+ function isSpellKey(key) {
6
+ return key in SpellNames_1.SpellNames;
7
+ }
8
+ exports.isSpellKey = isSpellKey;
@@ -0,0 +1,2 @@
1
+ import { SpellName } from '../types';
2
+ export declare function isSpellName(name: string): name is SpellName;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSpellName = void 0;
4
+ const SpellIdsByName_1 = require("../Constants/SpellIdsByName");
5
+ function isSpellName(name) {
6
+ return name in SpellIdsByName_1.SpellIdsByName;
7
+ }
8
+ exports.isSpellName = isSpellName;
@@ -1,2 +1,2 @@
1
1
  import { StatRuneId } from '../types';
2
- export declare function isStatRuneId(id: any): id is StatRuneId;
2
+ export declare function isStatRuneId(id: string): id is StatRuneId;
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isStatRuneId = void 0;
4
- const StatRuneIds_1 = require("../Constants/StatRuneIds");
4
+ const StatRuneNames_1 = require("../Constants/StatRuneNames");
5
5
  function isStatRuneId(id) {
6
- if (StatRuneIds_1.StatRuneIds.includes(id))
7
- return true;
8
- return false;
6
+ return id in StatRuneNames_1.StatRuneNames;
9
7
  }
10
8
  exports.isStatRuneId = isStatRuneId;
@@ -1,2 +1,2 @@
1
1
  import { StatRuneName } from '../types';
2
- export declare function isStatRuneName(name: any): name is StatRuneName;
2
+ export declare function isStatRuneName(name: string): name is StatRuneName;
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isStatRuneName = void 0;
4
- const StatRuneNames_1 = require("../Constants/StatRuneNames");
4
+ const StatRuneIds_1 = require("../Constants/StatRuneIds");
5
5
  function isStatRuneName(name) {
6
- if (StatRuneNames_1.StatRuneNames.includes(name))
7
- return true;
8
- return false;
6
+ return name in StatRuneIds_1.StatRuneIds;
9
7
  }
10
8
  exports.isStatRuneName = isStatRuneName;
@@ -1,2 +1,2 @@
1
1
  import { TreeRuneId } from '../types';
2
- export declare function isTreeRuneId(id: any): id is TreeRuneId;
2
+ export declare function isTreeRuneId(id: string): id is TreeRuneId;
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isTreeRuneId = void 0;
4
- const TreeRuneIds_1 = require("../Constants/TreeRuneIds");
4
+ const TreeRuneNames_1 = require("../Constants/TreeRuneNames");
5
5
  function isTreeRuneId(id) {
6
- if (TreeRuneIds_1.TreeRuneIds.includes(id))
7
- return true;
8
- return false;
6
+ return id in TreeRuneNames_1.TreeRuneNames;
9
7
  }
10
8
  exports.isTreeRuneId = isTreeRuneId;
@@ -1,2 +1,2 @@
1
1
  import { TreeRuneName } from '../types';
2
- export declare function isTreeRuneName(name: any): name is TreeRuneName;
2
+ export declare function isTreeRuneName(name: string): name is TreeRuneName;
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isTreeRuneName = void 0;
4
- const TreeRuneNames_1 = require("../Constants/TreeRuneNames");
4
+ const TreeRuneIds_1 = require("../Constants/TreeRuneIds");
5
5
  function isTreeRuneName(name) {
6
- if (TreeRuneNames_1.TreeRuneNames.includes(name))
7
- return true;
8
- return false;
6
+ return name in TreeRuneIds_1.TreeRuneIds;
9
7
  }
10
8
  exports.isTreeRuneName = isTreeRuneName;
@@ -0,0 +1,11 @@
1
+ export declare const StatRunes: {
2
+ readonly '5001': "Defense (HP)";
3
+ readonly '5002': "Defense (AR)";
4
+ readonly '5003': "Defense (MR)";
5
+ readonly '5002f': "Flex (AR)";
6
+ readonly '5003f': "Flex (MR)";
7
+ readonly '5008f': "Flex (AF)";
8
+ readonly '5005': "Offense (AS)";
9
+ readonly '5007': "Offense (AH)";
10
+ readonly '5008': "Offense (AF)";
11
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StatRunes = void 0;
4
+ exports.StatRunes = {
5
+ '5001': 'Defense (HP)',
6
+ '5002': 'Defense (AR)',
7
+ '5003': 'Defense (MR)',
8
+ '5002f': 'Flex (AR)',
9
+ '5003f': 'Flex (MR)',
10
+ '5008f': 'Flex (AF)',
11
+ '5005': 'Offense (AS)',
12
+ '5007': 'Offense (AH)',
13
+ '5008': 'Offense (AF)',
14
+ };