lol-constants 0.10.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) 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/{dist/scripts/generate-all.d.ts → assets/scripts/generate-champion-ids-by-name.d.ts} +0 -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/{dist/Helpers/generateRunesById.js → assets/scripts/generate-tree-rune-ids.js} +8 -8
  42. package/assets/scripts/generate-tree-rune-names.d.ts +1 -0
  43. package/{dist/Helpers/generateRunesByName.js → assets/scripts/generate-tree-rune-names.js} +8 -8
  44. package/{dist/assets → assets}/summoner.json +1 -1
  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 +24 -6
  54. package/dist/Constants/DDPaths.js +26 -8
  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 +34 -0
  64. package/dist/Constants/RuneSets.js +15 -15
  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 -17
  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/index.d.ts +24 -43394
  144. package/dist/index.js +74 -48
  145. package/dist/types/index.d.ts +28 -23
  146. package/package.json +4 -3
  147. package/dist/Constants/SummonerIds.d.ts +0 -2
  148. package/dist/Constants/SummonerIds.js +0 -8
  149. package/dist/Constants/SummonerKeys.d.ts +0 -2
  150. package/dist/Constants/SummonerKeys.js +0 -8
  151. package/dist/Constants/SummonerNames.d.ts +0 -2
  152. package/dist/Constants/SummonerNames.js +0 -8
  153. package/dist/Constants/SummonerSpellIds.d.ts +0 -2
  154. package/dist/Constants/SummonerSpellIds.js +0 -8
  155. package/dist/Constants/SummonerSpellKeys.d.ts +0 -2
  156. package/dist/Constants/SummonerSpellKeys.js +0 -8
  157. package/dist/Constants/SummonerSpellNames.d.ts +0 -2
  158. package/dist/Constants/SummonerSpellNames.js +0 -8
  159. package/dist/Helpers/generateChampionsByKey.d.ts +0 -1
  160. package/dist/Helpers/generateChampionsByKey.js +0 -25
  161. package/dist/Helpers/generateChampionsByName.d.ts +0 -1
  162. package/dist/Helpers/generateChampionsByName.js +0 -25
  163. package/dist/Helpers/generateItemsByName.d.ts +0 -1
  164. package/dist/Helpers/generateItemsByName.js +0 -30
  165. package/dist/Helpers/generateRunesById.d.ts +0 -1
  166. package/dist/Helpers/generateRunesByName.d.ts +0 -1
  167. package/dist/Helpers/generateSummonerSpellsByKey.d.ts +0 -1
  168. package/dist/Helpers/generateSummonerSpellsByKey.js +0 -27
  169. package/dist/Helpers/generateSummonerSpellsByName.d.ts +0 -1
  170. package/dist/Helpers/generateSummonerSpellsByName.js +0 -27
  171. package/dist/Helpers/generateSummonersByKey.d.ts +0 -1
  172. package/dist/Helpers/generateSummonersByKey.js +0 -24
  173. package/dist/Helpers/generateSummonersByName.d.ts +0 -1
  174. package/dist/Helpers/generateSummonersByName.js +0 -24
  175. package/dist/Helpers/getSummonerSpellKeyByName.d.ts +0 -2
  176. package/dist/Helpers/getSummonerSpellKeyByName.js +0 -11
  177. package/dist/Helpers/getSummonerSpellNameByKey.d.ts +0 -2
  178. package/dist/Helpers/getSummonerSpellNameByKey.js +0 -11
  179. package/dist/Helpers/isSummonerId.d.ts +0 -2
  180. package/dist/Helpers/isSummonerId.js +0 -10
  181. package/dist/Helpers/isSummonerKey.d.ts +0 -2
  182. package/dist/Helpers/isSummonerKey.js +0 -10
  183. package/dist/Helpers/isSummonerName.d.ts +0 -2
  184. package/dist/Helpers/isSummonerName.js +0 -10
  185. package/dist/Helpers/isSummonerSpellId.d.ts +0 -2
  186. package/dist/Helpers/isSummonerSpellId.js +0 -10
  187. package/dist/Helpers/isSummonerSpellKey.d.ts +0 -2
  188. package/dist/Helpers/isSummonerSpellKey.js +0 -10
  189. package/dist/Helpers/isSummonerSpellName.d.ts +0 -2
  190. package/dist/Helpers/isSummonerSpellName.js +0 -10
  191. package/dist/assets/champion.json +0 -1
  192. package/dist/assets/item.json +0 -1
  193. package/dist/assets/runesReforged.json +0 -1
  194. package/dist/generated/championByKey.json +0 -1
  195. package/dist/generated/championByName.json +0 -1
  196. package/dist/generated/itemByKey.json +0 -1
  197. package/dist/generated/itemByName.json +0 -1
  198. package/dist/generated/runesById.json +0 -1
  199. package/dist/generated/runesByName.json +0 -1
  200. package/dist/generated/summonerByKey.json +0 -1
  201. package/dist/generated/summonerByName.json +0 -1
  202. package/dist/scripts/generate-all.js +0 -19
@@ -0,0 +1,18 @@
1
+ export declare const SpellKeys: {
2
+ readonly SummonerBarrier: "21";
3
+ readonly SummonerBoost: "1";
4
+ readonly SummonerDot: "14";
5
+ readonly SummonerExhaust: "3";
6
+ readonly SummonerFlash: "4";
7
+ readonly SummonerHaste: "6";
8
+ readonly SummonerHeal: "7";
9
+ readonly SummonerMana: "13";
10
+ readonly SummonerPoroRecall: "30";
11
+ readonly SummonerPoroThrow: "31";
12
+ readonly SummonerSmite: "11";
13
+ readonly SummonerSnowURFSnowball_Mark: "39";
14
+ readonly SummonerSnowball: "32";
15
+ readonly SummonerTeleport: "12";
16
+ readonly Summoner_UltBookPlaceholder: "54";
17
+ readonly Summoner_UltBookSmitePlaceholder: "55";
18
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpellKeys = void 0;
4
+ exports.SpellKeys = { "SummonerBarrier": "21", "SummonerBoost": "1", "SummonerDot": "14", "SummonerExhaust": "3", "SummonerFlash": "4", "SummonerHaste": "6", "SummonerHeal": "7", "SummonerMana": "13", "SummonerPoroRecall": "30", "SummonerPoroThrow": "31", "SummonerSmite": "11", "SummonerSnowURFSnowball_Mark": "39", "SummonerSnowball": "32", "SummonerTeleport": "12", "Summoner_UltBookPlaceholder": "54", "Summoner_UltBookSmitePlaceholder": "55" };
@@ -0,0 +1,18 @@
1
+ export declare const SpellNames: {
2
+ readonly "1": "Cleanse";
3
+ readonly "3": "Exhaust";
4
+ readonly "4": "Flash";
5
+ readonly "6": "Ghost";
6
+ readonly "7": "Heal";
7
+ readonly "11": "Smite";
8
+ readonly "12": "Teleport";
9
+ readonly "13": "Clarity";
10
+ readonly "14": "Ignite";
11
+ readonly "21": "Barrier";
12
+ readonly "30": "To the King!";
13
+ readonly "31": "Poro Toss";
14
+ readonly "32": "Mark";
15
+ readonly "39": "Mark";
16
+ readonly "54": "Placeholder";
17
+ readonly "55": "Placeholder and Attack-Smite";
18
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpellNames = void 0;
4
+ exports.SpellNames = { "1": "Cleanse", "3": "Exhaust", "4": "Flash", "6": "Ghost", "7": "Heal", "11": "Smite", "12": "Teleport", "13": "Clarity", "14": "Ignite", "21": "Barrier", "30": "To the King!", "31": "Poro Toss", "32": "Mark", "39": "Mark", "54": "Placeholder", "55": "Placeholder and Attack-Smite" };
@@ -1,2 +1,11 @@
1
- import { StatRuneId } from '../types';
2
- export declare const StatRuneIds: StatRuneId[];
1
+ export declare const StatRuneIds: {
2
+ readonly "Defense (HP)": "5001";
3
+ readonly "Defense (AR)": "5002";
4
+ readonly "Defense (MR)": "5003";
5
+ readonly "Offense (AS)": "5005";
6
+ readonly "Offense (AH)": "5007";
7
+ readonly "Offense (AF)": "5008";
8
+ readonly "Flex (AR)": "5002f";
9
+ readonly "Flex (MR)": "5003f";
10
+ readonly "Flex (AF)": "5008f";
11
+ };
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StatRuneIds = void 0;
4
- const StatRunes_1 = require("./StatRunes");
5
- exports.StatRuneIds = (Object.keys(StatRunes_1.StatRunes).map(id => id));
4
+ exports.StatRuneIds = { "Defense (HP)": "5001", "Defense (AR)": "5002", "Defense (MR)": "5003", "Offense (AS)": "5005", "Offense (AH)": "5007", "Offense (AF)": "5008", "Flex (AR)": "5002f", "Flex (MR)": "5003f", "Flex (AF)": "5008f" };
@@ -1,2 +1,11 @@
1
- import { StatRuneName } from '../types';
2
- export declare const StatRuneNames: StatRuneName[];
1
+ export declare const StatRuneNames: {
2
+ readonly "5001": "Defense (HP)";
3
+ readonly "5002": "Defense (AR)";
4
+ readonly "5003": "Defense (MR)";
5
+ readonly "5005": "Offense (AS)";
6
+ readonly "5007": "Offense (AH)";
7
+ readonly "5008": "Offense (AF)";
8
+ readonly "5002f": "Flex (AR)";
9
+ readonly "5003f": "Flex (MR)";
10
+ readonly "5008f": "Flex (AF)";
11
+ };
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StatRuneNames = void 0;
4
- const StatRunes_1 = require("./StatRunes");
5
- exports.StatRuneNames = Object.values(StatRunes_1.StatRunes);
4
+ exports.StatRuneNames = { "5001": "Defense (HP)", "5002": "Defense (AR)", "5003": "Defense (MR)", "5005": "Offense (AS)", "5007": "Offense (AH)", "5008": "Offense (AF)", "5002f": "Flex (AR)", "5003f": "Flex (MR)", "5008f": "Flex (AF)" };
@@ -1,2 +1,65 @@
1
- import { TreeRuneId } from '../types';
2
- export declare const TreeRuneIds: TreeRuneId[];
1
+ export declare const TreeRuneIds: {
2
+ readonly Electrocute: "8112";
3
+ readonly Predator: "8124";
4
+ readonly "Dark Harvest": "8128";
5
+ readonly "Hail of Blades": "9923";
6
+ readonly "Cheap Shot": "8126";
7
+ readonly "Taste of Blood": "8139";
8
+ readonly "Sudden Impact": "8143";
9
+ readonly "Zombie Ward": "8136";
10
+ readonly "Ghost Poro": "8120";
11
+ readonly "Eyeball Collection": "8138";
12
+ readonly "Treasure Hunter": "8135";
13
+ readonly "Ingenious Hunter": "8134";
14
+ readonly "Relentless Hunter": "8105";
15
+ readonly "Ultimate Hunter": "8106";
16
+ readonly "Glacial Augment": "8351";
17
+ readonly "Unsealed Spellbook": "8360";
18
+ readonly "First Strike": "8369";
19
+ readonly "Hextech Flashtraption": "8306";
20
+ readonly "Magical Footwear": "8304";
21
+ readonly "Perfect Timing": "8313";
22
+ readonly "Future's Market": "8321";
23
+ readonly "Minion Dematerializer": "8316";
24
+ readonly "Biscuit Delivery": "8345";
25
+ readonly "Cosmic Insight": "8347";
26
+ readonly "Approach Velocity": "8410";
27
+ readonly "Time Warp Tonic": "8352";
28
+ readonly "Press the Attack": "8005";
29
+ readonly "Lethal Tempo": "8008";
30
+ readonly "Fleet Footwork": "8021";
31
+ readonly Conqueror: "8010";
32
+ readonly Overheal: "9101";
33
+ readonly Triumph: "9111";
34
+ readonly "Presence of Mind": "8009";
35
+ readonly "Legend: Alacrity": "9104";
36
+ readonly "Legend: Tenacity": "9105";
37
+ readonly "Legend: Bloodline": "9103";
38
+ readonly "Coup de Grace": "8014";
39
+ readonly "Cut Down": "8017";
40
+ readonly "Last Stand": "8299";
41
+ readonly "Grasp of the Undying": "8437";
42
+ readonly Aftershock: "8439";
43
+ readonly Guardian: "8465";
44
+ readonly Demolish: "8446";
45
+ readonly "Font of Life": "8463";
46
+ readonly "Shield Bash": "8401";
47
+ readonly Conditioning: "8429";
48
+ readonly "Second Wind": "8444";
49
+ readonly "Bone Plating": "8473";
50
+ readonly Overgrowth: "8451";
51
+ readonly Revitalize: "8453";
52
+ readonly Unflinching: "8242";
53
+ readonly "Summon Aery": "8214";
54
+ readonly "Arcane Comet": "8229";
55
+ readonly "Phase Rush": "8230";
56
+ readonly "Nullifying Orb": "8224";
57
+ readonly "Manaflow Band": "8226";
58
+ readonly "Nimbus Cloak": "8275";
59
+ readonly Transcendence: "8210";
60
+ readonly Celerity: "8234";
61
+ readonly "Absolute Focus": "8233";
62
+ readonly Scorch: "8237";
63
+ readonly Waterwalking: "8232";
64
+ readonly "Gathering Storm": "8236";
65
+ };
@@ -1,8 +1,4 @@
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.TreeRuneIds = void 0;
7
- const runesById_json_1 = __importDefault(require("../generated/runesById.json"));
8
- exports.TreeRuneIds = (Object.keys(runesById_json_1.default).map(id => id));
4
+ exports.TreeRuneIds = { "Electrocute": "8112", "Predator": "8124", "Dark Harvest": "8128", "Hail of Blades": "9923", "Cheap Shot": "8126", "Taste of Blood": "8139", "Sudden Impact": "8143", "Zombie Ward": "8136", "Ghost Poro": "8120", "Eyeball Collection": "8138", "Treasure Hunter": "8135", "Ingenious Hunter": "8134", "Relentless Hunter": "8105", "Ultimate Hunter": "8106", "Glacial Augment": "8351", "Unsealed Spellbook": "8360", "First Strike": "8369", "Hextech Flashtraption": "8306", "Magical Footwear": "8304", "Perfect Timing": "8313", "Future's Market": "8321", "Minion Dematerializer": "8316", "Biscuit Delivery": "8345", "Cosmic Insight": "8347", "Approach Velocity": "8410", "Time Warp Tonic": "8352", "Press the Attack": "8005", "Lethal Tempo": "8008", "Fleet Footwork": "8021", "Conqueror": "8010", "Overheal": "9101", "Triumph": "9111", "Presence of Mind": "8009", "Legend: Alacrity": "9104", "Legend: Tenacity": "9105", "Legend: Bloodline": "9103", "Coup de Grace": "8014", "Cut Down": "8017", "Last Stand": "8299", "Grasp of the Undying": "8437", "Aftershock": "8439", "Guardian": "8465", "Demolish": "8446", "Font of Life": "8463", "Shield Bash": "8401", "Conditioning": "8429", "Second Wind": "8444", "Bone Plating": "8473", "Overgrowth": "8451", "Revitalize": "8453", "Unflinching": "8242", "Summon Aery": "8214", "Arcane Comet": "8229", "Phase Rush": "8230", "Nullifying Orb": "8224", "Manaflow Band": "8226", "Nimbus Cloak": "8275", "Transcendence": "8210", "Celerity": "8234", "Absolute Focus": "8233", "Scorch": "8237", "Waterwalking": "8232", "Gathering Storm": "8236" };
@@ -1,2 +1,65 @@
1
- import { TreeRuneName } from '../types';
2
- export declare const TreeRuneNames: TreeRuneName[];
1
+ export declare const TreeRuneNames: {
2
+ readonly "8005": "Press the Attack";
3
+ readonly "8008": "Lethal Tempo";
4
+ readonly "8009": "Presence of Mind";
5
+ readonly "8010": "Conqueror";
6
+ readonly "8014": "Coup de Grace";
7
+ readonly "8017": "Cut Down";
8
+ readonly "8021": "Fleet Footwork";
9
+ readonly "8105": "Relentless Hunter";
10
+ readonly "8106": "Ultimate Hunter";
11
+ readonly "8112": "Electrocute";
12
+ readonly "8120": "Ghost Poro";
13
+ readonly "8124": "Predator";
14
+ readonly "8126": "Cheap Shot";
15
+ readonly "8128": "Dark Harvest";
16
+ readonly "8134": "Ingenious Hunter";
17
+ readonly "8135": "Treasure Hunter";
18
+ readonly "8136": "Zombie Ward";
19
+ readonly "8138": "Eyeball Collection";
20
+ readonly "8139": "Taste of Blood";
21
+ readonly "8143": "Sudden Impact";
22
+ readonly "8210": "Transcendence";
23
+ readonly "8214": "Summon Aery";
24
+ readonly "8224": "Nullifying Orb";
25
+ readonly "8226": "Manaflow Band";
26
+ readonly "8229": "Arcane Comet";
27
+ readonly "8230": "Phase Rush";
28
+ readonly "8232": "Waterwalking";
29
+ readonly "8233": "Absolute Focus";
30
+ readonly "8234": "Celerity";
31
+ readonly "8236": "Gathering Storm";
32
+ readonly "8237": "Scorch";
33
+ readonly "8242": "Unflinching";
34
+ readonly "8275": "Nimbus Cloak";
35
+ readonly "8299": "Last Stand";
36
+ readonly "8304": "Magical Footwear";
37
+ readonly "8306": "Hextech Flashtraption";
38
+ readonly "8313": "Perfect Timing";
39
+ readonly "8316": "Minion Dematerializer";
40
+ readonly "8321": "Future's Market";
41
+ readonly "8345": "Biscuit Delivery";
42
+ readonly "8347": "Cosmic Insight";
43
+ readonly "8351": "Glacial Augment";
44
+ readonly "8352": "Time Warp Tonic";
45
+ readonly "8360": "Unsealed Spellbook";
46
+ readonly "8369": "First Strike";
47
+ readonly "8401": "Shield Bash";
48
+ readonly "8410": "Approach Velocity";
49
+ readonly "8429": "Conditioning";
50
+ readonly "8437": "Grasp of the Undying";
51
+ readonly "8439": "Aftershock";
52
+ readonly "8444": "Second Wind";
53
+ readonly "8446": "Demolish";
54
+ readonly "8451": "Overgrowth";
55
+ readonly "8453": "Revitalize";
56
+ readonly "8463": "Font of Life";
57
+ readonly "8465": "Guardian";
58
+ readonly "8473": "Bone Plating";
59
+ readonly "9101": "Overheal";
60
+ readonly "9103": "Legend: Bloodline";
61
+ readonly "9104": "Legend: Alacrity";
62
+ readonly "9105": "Legend: Tenacity";
63
+ readonly "9111": "Triumph";
64
+ readonly "9923": "Hail of Blades";
65
+ };
@@ -1,8 +1,4 @@
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.TreeRuneNames = void 0;
7
- const runesByName_json_1 = __importDefault(require("../generated/runesByName.json"));
8
- exports.TreeRuneNames = (Object.keys(runesByName_json_1.default).map(name => name));
4
+ exports.TreeRuneNames = { "8005": "Press the Attack", "8008": "Lethal Tempo", "8009": "Presence of Mind", "8010": "Conqueror", "8014": "Coup de Grace", "8017": "Cut Down", "8021": "Fleet Footwork", "8105": "Relentless Hunter", "8106": "Ultimate Hunter", "8112": "Electrocute", "8120": "Ghost Poro", "8124": "Predator", "8126": "Cheap Shot", "8128": "Dark Harvest", "8134": "Ingenious Hunter", "8135": "Treasure Hunter", "8136": "Zombie Ward", "8138": "Eyeball Collection", "8139": "Taste of Blood", "8143": "Sudden Impact", "8210": "Transcendence", "8214": "Summon Aery", "8224": "Nullifying Orb", "8226": "Manaflow Band", "8229": "Arcane Comet", "8230": "Phase Rush", "8232": "Waterwalking", "8233": "Absolute Focus", "8234": "Celerity", "8236": "Gathering Storm", "8237": "Scorch", "8242": "Unflinching", "8275": "Nimbus Cloak", "8299": "Last Stand", "8304": "Magical Footwear", "8306": "Hextech Flashtraption", "8313": "Perfect Timing", "8316": "Minion Dematerializer", "8321": "Future's Market", "8345": "Biscuit Delivery", "8347": "Cosmic Insight", "8351": "Glacial Augment", "8352": "Time Warp Tonic", "8360": "Unsealed Spellbook", "8369": "First Strike", "8401": "Shield Bash", "8410": "Approach Velocity", "8429": "Conditioning", "8437": "Grasp of the Undying", "8439": "Aftershock", "8444": "Second Wind", "8446": "Demolish", "8451": "Overgrowth", "8453": "Revitalize", "8463": "Font of Life", "8465": "Guardian", "8473": "Bone Plating", "9101": "Overheal", "9103": "Legend: Bloodline", "9104": "Legend: Alacrity", "9105": "Legend: Tenacity", "9111": "Triumph", "9923": "Hail of Blades" };
@@ -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,23 +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
- // Code will never run this far
18
- // but this to satisfy TypeScript and not put `statRuneName` in tree runes.
19
- return '5001';
20
- }
21
- return runesByName_json_1.default[name].id;
6
+ return RuneIds_1.RuneIds[name];
22
7
  }
23
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;