lol-constants 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. package/assets/scripts/constants/RuneIdComment.d.ts +1 -0
  2. package/assets/scripts/constants/RuneIdComment.js +19 -0
  3. package/assets/scripts/generate-all.d.ts +6 -0
  4. package/assets/scripts/generate-all.js +10 -0
  5. package/assets/scripts/generate-categorized-item-keys-num.d.ts +1 -0
  6. package/assets/scripts/generate-categorized-item-keys-num.js +60 -0
  7. package/assets/scripts/generate-categorized-item-keys.js +7 -1
  8. package/assets/scripts/generate-categorized-item-names.js +3 -1
  9. package/assets/scripts/generate-champion-ids-by-name.js +5 -3
  10. package/assets/scripts/generate-champion-ids.js +6 -3
  11. package/assets/scripts/generate-champion-keys-num.d.ts +1 -0
  12. package/assets/scripts/generate-champion-keys-num.js +22 -0
  13. package/assets/scripts/generate-champion-keys.js +6 -3
  14. package/assets/scripts/generate-champion-names.js +6 -3
  15. package/assets/scripts/generate-item-keys-num.d.ts +1 -0
  16. package/assets/scripts/generate-item-keys-num.js +23 -0
  17. package/assets/scripts/generate-item-keys.js +6 -3
  18. package/assets/scripts/generate-item-names.js +6 -3
  19. package/assets/scripts/generate-rune-ids.js +8 -3
  20. package/assets/scripts/generate-rune-names.js +6 -3
  21. package/assets/scripts/generate-rune-sets-by-rune-names-num.d.ts +1 -0
  22. package/assets/scripts/generate-rune-sets-by-rune-names-num.js +118 -0
  23. package/assets/scripts/generate-rune-sets-by-rune-names.js +5 -0
  24. package/assets/scripts/generate-rune-sets.js +2 -0
  25. package/assets/scripts/generate-spell-ids-by-name.js +5 -3
  26. package/assets/scripts/generate-spell-ids.js +6 -3
  27. package/assets/scripts/generate-spell-keys-num.d.ts +1 -0
  28. package/assets/scripts/generate-spell-keys-num.js +22 -0
  29. package/assets/scripts/generate-spell-keys.js +6 -3
  30. package/assets/scripts/generate-spell-names.js +6 -3
  31. package/assets/scripts/generate-stat-rune-ids.js +8 -3
  32. package/assets/scripts/generate-stat-rune-names.js +8 -5
  33. package/assets/scripts/generate-tree-rune-ids-num.d.ts +1 -0
  34. package/assets/scripts/generate-tree-rune-ids-num.js +23 -0
  35. package/assets/scripts/generate-tree-rune-ids.js +8 -3
  36. package/assets/scripts/generate-tree-rune-names.js +8 -5
  37. package/assets/scripts/helpers/getComment.d.ts +1 -0
  38. package/assets/scripts/helpers/getComment.js +8 -0
  39. package/assets/scripts/helpers/getExportStatement.d.ts +1 -1
  40. package/assets/scripts/helpers/getExportStatement.js +28 -3
  41. package/assets/scripts/helpers/getFmtdComment.js +1 -1
  42. package/assets/scripts/helpers/validateNumber.d.ts +1 -0
  43. package/assets/scripts/helpers/validateNumber.js +10 -0
  44. package/assets/scripts/helpers/writeToTmpFile.d.ts +3 -0
  45. package/assets/scripts/helpers/writeToTmpFile.js +2 -2
  46. package/core/constants/Champions/ChampionIds.d.ts +1 -0
  47. package/core/constants/Champions/ChampionKeys.d.ts +1 -0
  48. package/core/constants/Champions/ChampionKeysNum.d.ts +166 -0
  49. package/core/constants/Champions/ChampionKeysNum.js +4 -0
  50. package/core/constants/Champions/ChampionNames.d.ts +1 -0
  51. package/core/constants/Items/BootsItemKeys.d.ts +1 -0
  52. package/core/constants/Items/BootsItemKeysNum.d.ts +12 -0
  53. package/core/constants/Items/BootsItemKeysNum.js +4 -0
  54. package/core/constants/Items/BootsItemNames.d.ts +1 -0
  55. package/core/constants/Items/ItemKeys.d.ts +1 -0
  56. package/core/constants/Items/ItemKeysNum.d.ts +264 -0
  57. package/core/constants/Items/ItemKeysNum.js +4 -0
  58. package/core/constants/Items/ItemNames.d.ts +1 -0
  59. package/core/constants/Items/LegendaryItemKeys.d.ts +1 -0
  60. package/core/constants/Items/LegendaryItemKeysNum.d.ts +77 -0
  61. package/core/constants/Items/LegendaryItemKeysNum.js +4 -0
  62. package/core/constants/Items/LegendaryItemNames.d.ts +1 -0
  63. package/core/constants/Items/MythicItemKeys.d.ts +1 -0
  64. package/core/constants/Items/MythicItemKeysNum.d.ts +31 -0
  65. package/core/constants/Items/MythicItemKeysNum.js +4 -0
  66. package/core/constants/Items/MythicItemNames.d.ts +1 -0
  67. package/core/constants/Runes/RuneIconFileNames.d.ts +1 -1
  68. package/core/constants/Runes/RuneSets.d.ts +2 -0
  69. package/core/constants/Runes/RuneSetsByRuneNames.d.ts +30 -0
  70. package/core/constants/Runes/RuneSetsByRuneNamesNum.d.ts +743 -0
  71. package/core/constants/Runes/RuneSetsByRuneNamesNum.js +14 -0
  72. package/core/constants/Runes/RuneTreeIds.d.ts +1 -1
  73. package/core/constants/Runes/RuneTreeIds.js +1 -1
  74. package/core/constants/Runes/RuneTreeIdsNum.d.ts +11 -0
  75. package/core/constants/Runes/RuneTreeIdsNum.js +19 -0
  76. package/core/constants/Runes/TreeRuneIds.d.ts +15 -0
  77. package/core/constants/Runes/TreeRuneIdsNum.d.ts +66 -0
  78. package/core/constants/Runes/TreeRuneIdsNum.js +4 -0
  79. package/core/constants/Runes/TreeRuneNames.d.ts +1 -0
  80. package/core/constants/Spells/SpellIds.d.ts +1 -0
  81. package/core/constants/Spells/SpellKeys.d.ts +1 -0
  82. package/core/constants/Spells/SpellKeysNum.d.ts +19 -0
  83. package/core/constants/Spells/SpellKeysNum.js +4 -0
  84. package/core/constants/Spells/SpellNames.d.ts +1 -0
  85. package/core/helpers/Champions/getChampionIdByKey.d.ts +2 -1
  86. package/core/helpers/Champions/getChampionIdByName.d.ts +2 -1
  87. package/core/helpers/Champions/getChampionKeyById.d.ts +2 -1
  88. package/core/helpers/Champions/getChampionKeyByName.d.ts +2 -1
  89. package/core/helpers/Champions/getChampionNameById.d.ts +2 -1
  90. package/core/helpers/Champions/getChampionNameByKey.d.ts +2 -1
  91. package/core/helpers/Champions/isChampionId.d.ts +1 -1
  92. package/core/helpers/Champions/isChampionKey.d.ts +1 -1
  93. package/core/helpers/Champions/isChampionName.d.ts +1 -1
  94. package/core/helpers/Items/getItemKeyByName.d.ts +2 -1
  95. package/core/helpers/Items/getItemNameByKey.d.ts +2 -1
  96. package/core/helpers/Items/isBootsItemKey.d.ts +1 -1
  97. package/core/helpers/Items/isBootsItemName.d.ts +1 -1
  98. package/core/helpers/Items/isItemKey.d.ts +1 -1
  99. package/core/helpers/Items/isItemName.d.ts +1 -1
  100. package/core/helpers/Items/isLegendaryItemKey.d.ts +1 -1
  101. package/core/helpers/Items/isLegendaryItemName.d.ts +1 -1
  102. package/core/helpers/Items/isMythicItemKey.d.ts +1 -1
  103. package/core/helpers/Items/isMythicItemName.d.ts +1 -1
  104. package/core/helpers/Runes/getRuneCategoryName.d.ts +2 -1
  105. package/core/helpers/Runes/getRuneCdnUrl.d.ts +1 -1
  106. package/core/helpers/Runes/getRuneIdByName.d.ts +2 -1
  107. package/core/helpers/Runes/getRuneNameById.d.ts +2 -1
  108. package/core/helpers/Runes/getStatRuneIdByName.d.ts +2 -1
  109. package/core/helpers/Runes/getStatRuneNameById.d.ts +2 -1
  110. package/core/helpers/Runes/getTreeRuneIdByName.d.ts +2 -1
  111. package/core/helpers/Runes/getTreeRuneNameById.d.ts +2 -1
  112. package/core/helpers/Runes/isRuneId.d.ts +1 -1
  113. package/core/helpers/Runes/isRuneName.d.ts +1 -1
  114. package/core/helpers/Runes/isStatRuneId.d.ts +1 -1
  115. package/core/helpers/Runes/isStatRuneName.d.ts +1 -1
  116. package/core/helpers/Runes/isTreeRuneId.d.ts +1 -1
  117. package/core/helpers/Runes/isTreeRuneName.d.ts +1 -1
  118. package/core/helpers/Spells/getSpellIdByKey.d.ts +2 -1
  119. package/core/helpers/Spells/getSpellIdByName.d.ts +2 -1
  120. package/core/helpers/Spells/getSpellKeyById.d.ts +2 -1
  121. package/core/helpers/Spells/getSpellKeyByName.d.ts +2 -1
  122. package/core/helpers/Spells/getSpellNameById.d.ts +2 -1
  123. package/core/helpers/Spells/getSpellNameByKey.d.ts +2 -1
  124. package/core/helpers/Spells/isSpellId.d.ts +1 -1
  125. package/core/helpers/Spells/isSpellKey.d.ts +1 -1
  126. package/core/helpers/Spells/isSpellName.d.ts +1 -1
  127. package/core/index.d.ts +9 -0
  128. package/core/index.js +9 -12
  129. package/core/types/types.d.ts +27 -86
  130. package/package.json +1 -1
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RuneSetsByRuneNamesNum = exports.StatRuneHSetsByRuneNamesNum = exports.RuneTreeHSetsByRuneNamesNum = exports.RuneIdsNum = exports.StatRuneIdsNum = exports.KeystoneIdsNum = exports.SecondaryRuneTreesByRuneNamesNum = exports.PrimaryRuneTreesByRuneNamesNum = void 0;
4
+ exports.PrimaryRuneTreesByRuneNamesNum = { "Domination": { "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 }, "Inspiration": { "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 }, "Precision": { "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 }, "Resolve": { "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 }, "Sorcery": { "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 } };
5
+ exports.SecondaryRuneTreesByRuneNamesNum = { "Domination": { "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 }, "Inspiration": { "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 }, "Precision": { "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 }, "Resolve": { "Demolish": 8446, "Font of Life": 8463, "Shield Bash": 8401, "Conditioning": 8429, "Second Wind": 8444, "Bone Plating": 8473, "Overgrowth": 8451, "Revitalize": 8453, "Unflinching": 8242 }, "Sorcery": { "Nullifying Orb": 8224, "Manaflow Band": 8226, "Nimbus Cloak": 8275, "Transcendence": 8210, "Celerity": 8234, "Absolute Focus": 8233, "Scorch": 8237, "Waterwalking": 8232, "Gathering Storm": 8236 } };
6
+ exports.KeystoneIdsNum = { "Electrocute": 8112, "Predator": 8124, "Dark Harvest": 8128, "Hail of Blades": 9923, "Glacial Augment": 8351, "Unsealed Spellbook": 8360, "First Strike": 8369, "Press the Attack": 8005, "Lethal Tempo": 8008, "Fleet Footwork": 8021, "Conqueror": 8010, "Grasp of the Undying": 8437, "Aftershock": 8439, "Guardian": 8465, "Summon Aery": 8214, "Arcane Comet": 8229, "Phase Rush": 8230 };
7
+ exports.StatRuneIdsNum = { "Offense (AS)": 5005, "Offense (AH)": 5007, "Offense (AF)": 5008, "Flex (AR)": 5002, "Flex (MR)": 5003, "Flex (AF)": 5008, "Defense (HP)": 5001, "Defense (AR)": 5002, "Defense (MR)": 5003 };
8
+ exports.RuneIdsNum = { ...exports.PrimaryRuneTreesByRuneNamesNum.Precision, ...exports.PrimaryRuneTreesByRuneNamesNum.Domination, ...exports.PrimaryRuneTreesByRuneNamesNum.Sorcery, ...exports.PrimaryRuneTreesByRuneNamesNum.Resolve, ...exports.PrimaryRuneTreesByRuneNamesNum.Inspiration, ...exports.StatRuneIdsNum };
9
+ exports.RuneTreeHSetsByRuneNamesNum = { "Domination": { "0": { "Electrocute": 8112, "Predator": 8124, "Dark Harvest": 8128, "Hail of Blades": 9923 }, "1": { "Cheap Shot": 8126, "Taste of Blood": 8139, "Sudden Impact": 8143 }, "2": { "Zombie Ward": 8136, "Ghost Poro": 8120, "Eyeball Collection": 8138 }, "3": { "Treasure Hunter": 8135, "Ingenious Hunter": 8134, "Relentless Hunter": 8105, "Ultimate Hunter": 8106 } }, "Inspiration": { "0": { "Glacial Augment": 8351, "Unsealed Spellbook": 8360, "First Strike": 8369 }, "1": { "Hextech Flashtraption": 8306, "Magical Footwear": 8304, "Perfect Timing": 8313 }, "2": { "Future's Market": 8321, "Minion Dematerializer": 8316, "Biscuit Delivery": 8345 }, "3": { "Cosmic Insight": 8347, "Approach Velocity": 8410, "Time Warp Tonic": 8352 } }, "Precision": { "0": { "Press the Attack": 8005, "Lethal Tempo": 8008, "Fleet Footwork": 8021, "Conqueror": 8010 }, "1": { "Overheal": 9101, "Triumph": 9111, "Presence of Mind": 8009 }, "2": { "Legend: Alacrity": 9104, "Legend: Tenacity": 9105, "Legend: Bloodline": 9103 }, "3": { "Coup de Grace": 8014, "Cut Down": 8017, "Last Stand": 8299 } }, "Resolve": { "0": { "Grasp of the Undying": 8437, "Aftershock": 8439, "Guardian": 8465 }, "1": { "Demolish": 8446, "Font of Life": 8463, "Shield Bash": 8401 }, "2": { "Conditioning": 8429, "Second Wind": 8444, "Bone Plating": 8473 }, "3": { "Overgrowth": 8451, "Revitalize": 8453, "Unflinching": 8242 } }, "Sorcery": { "0": { "Summon Aery": 8214, "Arcane Comet": 8229, "Phase Rush": 8230 }, "1": { "Nullifying Orb": 8224, "Manaflow Band": 8226, "Nimbus Cloak": 8275 }, "2": { "Transcendence": 8210, "Celerity": 8234, "Absolute Focus": 8233 }, "3": { "Scorch": 8237, "Waterwalking": 8232, "Gathering Storm": 8236 } } };
10
+ exports.StatRuneHSetsByRuneNamesNum = { "0": { "Offense (AS)": 5005, "Offense (AH)": 5007, "Offense (AF)": 5008 }, "1": { "Flex (AR)": 5002, "Flex (MR)": 5003, "Flex (AF)": 5008 }, "2": { "Defense (HP)": 5001, "Defense (AR)": 5002, "Defense (MR)": 5003 } };
11
+ /**
12
+ * Contains all Rune IDs that are known to man in the game of League of Legends. Sorted by various useful categories. There are a total of 72 runes in the game.
13
+ */
14
+ exports.RuneSetsByRuneNamesNum = { PrimaryRuneTreesByRuneNamesNum: exports.PrimaryRuneTreesByRuneNamesNum, SecondaryRuneTreesByRuneNamesNum: exports.SecondaryRuneTreesByRuneNamesNum, KeystoneIdsNum: exports.KeystoneIdsNum, StatRuneIdsNum: exports.StatRuneIdsNum, RuneIdsNum: exports.RuneIdsNum, RuneTreeHSetsByRuneNamesNum: exports.RuneTreeHSetsByRuneNamesNum, StatRuneHSetsByRuneNamesNum: exports.StatRuneHSetsByRuneNamesNum };
@@ -7,5 +7,5 @@ export declare const RuneTreeIds: {
7
7
  readonly Inspiration: "8300";
8
8
  };
9
9
  export type RuneTreeId = typeof RuneTreeIds[keyof typeof RuneTreeIds];
10
- export declare function isRuneTreeId(id: string): id is RuneTreeId;
10
+ export declare function isRuneTreeId(id: any): id is RuneTreeId;
11
11
  export declare function getRuneTreeIdByName(name: RuneTreeName): RuneTreeId;
@@ -10,7 +10,7 @@ exports.RuneTreeIds = {
10
10
  'Inspiration': '8300',
11
11
  };
12
12
  function isRuneTreeId(id) {
13
- return id in RuneTreeNames_1.RuneTreeNames;
13
+ return typeof id == 'string' && id in RuneTreeNames_1.RuneTreeNames;
14
14
  }
15
15
  exports.isRuneTreeId = isRuneTreeId;
16
16
  function getRuneTreeIdByName(name) {
@@ -0,0 +1,11 @@
1
+ import { RuneTreeName } from './RuneTreeNames';
2
+ export declare const RuneTreeIdsNum: {
3
+ readonly Precision: 8000;
4
+ readonly Domination: 8100;
5
+ readonly Sorcery: 8200;
6
+ readonly Resolve: 8400;
7
+ readonly Inspiration: 8300;
8
+ };
9
+ export type RuneTreeIdNum = typeof RuneTreeIdsNum[keyof typeof RuneTreeIdsNum];
10
+ export declare function isRuneTreeIdNum(id: any): id is RuneTreeIdNum;
11
+ export declare function getRuneTreeIdByName(name: RuneTreeName): RuneTreeIdNum;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuneTreeIdByName = exports.isRuneTreeIdNum = exports.RuneTreeIdsNum = void 0;
4
+ const RuneTreeNames_1 = require("./RuneTreeNames");
5
+ exports.RuneTreeIdsNum = {
6
+ Precision: 8000,
7
+ Domination: 8100,
8
+ Sorcery: 8200,
9
+ Resolve: 8400,
10
+ Inspiration: 8300,
11
+ };
12
+ function isRuneTreeIdNum(id) {
13
+ return typeof id == 'number' && id in RuneTreeNames_1.RuneTreeNames;
14
+ }
15
+ exports.isRuneTreeIdNum = isRuneTreeIdNum;
16
+ function getRuneTreeIdByName(name) {
17
+ return exports.RuneTreeIdsNum[name];
18
+ }
19
+ exports.getRuneTreeIdByName = getRuneTreeIdByName;
@@ -63,3 +63,18 @@ export declare const TreeRuneIds: {
63
63
  readonly Waterwalking: "8232";
64
64
  readonly "Gathering Storm": "8236";
65
65
  };
66
+ /**
67
+ * There are 3 main Rune ID types:
68
+ * - `RuneId` (all),
69
+ * - `TreeRuneId` (all but stat runes),
70
+ * - `StatRuneId` (only stat runes).
71
+ *
72
+ * There are 6 more specific Rune ID types as well:
73
+ * - `KeystoneRuneId`,
74
+ * - `PrecisionTreeRuneId`,
75
+ * - `DominationTreeRuneId`,
76
+ * - `SorceryTreeRuneId`,
77
+ * - `ResolveTreeRuneId`,
78
+ * - `InspirationTreeRuneId`.
79
+ */
80
+ export type TreeRuneId = typeof TreeRuneIds[keyof typeof TreeRuneIds];
@@ -0,0 +1,66 @@
1
+ export declare const TreeRuneIdsNum: {
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
+ };
66
+ export type TreeRuneIdNum = typeof TreeRuneIdsNum[keyof typeof TreeRuneIdsNum];
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TreeRuneIdsNum = void 0;
4
+ exports.TreeRuneIdsNum = { "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 };
@@ -63,3 +63,4 @@ export declare const TreeRuneNames: {
63
63
  readonly "9111": "Triumph";
64
64
  readonly "9923": "Hail of Blades";
65
65
  };
66
+ export type TreeRuneName = typeof TreeRuneNames[keyof typeof TreeRuneNames];
@@ -16,3 +16,4 @@ export declare const SpellIds: {
16
16
  readonly "54": "Summoner_UltBookPlaceholder";
17
17
  readonly "55": "Summoner_UltBookSmitePlaceholder";
18
18
  };
19
+ export type SpellId = typeof SpellIds[keyof typeof SpellIds];
@@ -16,3 +16,4 @@ export declare const SpellKeys: {
16
16
  readonly Summoner_UltBookPlaceholder: "54";
17
17
  readonly Summoner_UltBookSmitePlaceholder: "55";
18
18
  };
19
+ export type SpellKey = typeof SpellKeys[keyof typeof SpellKeys];
@@ -0,0 +1,19 @@
1
+ export declare const SpellKeysNum: {
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
+ };
19
+ export type SpellKeyNum = typeof SpellKeysNum[keyof typeof SpellKeysNum];
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpellKeysNum = void 0;
4
+ exports.SpellKeysNum = { "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 };
@@ -16,3 +16,4 @@ export declare const SpellNames: {
16
16
  readonly "54": "Placeholder";
17
17
  readonly "55": "Placeholder and Attack-Smite";
18
18
  };
19
+ export type SpellName = typeof SpellNames[keyof typeof SpellNames];
@@ -1,2 +1,3 @@
1
- import { ChampionId, ChampionKey } from '../../types/types';
1
+ import { ChampionId } from '../../constants/Champions/ChampionIds';
2
+ import { ChampionKey } from '../../constants/Champions/ChampionKeys';
2
3
  export declare function getChampionIdByKey(key: ChampionKey): ChampionId;
@@ -1,2 +1,3 @@
1
- import { ChampionId, ChampionName } from '../../types/types';
1
+ import { ChampionId } from '../../constants/Champions/ChampionIds';
2
+ import { ChampionName } from '../../constants/Champions/ChampionNames';
2
3
  export declare function getChampionIdByName(name: ChampionName): ChampionId;
@@ -1,2 +1,3 @@
1
- import { ChampionId, ChampionKey } from '../../types/types';
1
+ import { ChampionId } from '../../constants/Champions/ChampionIds';
2
+ import { ChampionKey } from '../../constants/Champions/ChampionKeys';
2
3
  export declare function getChampionKeyById(id: ChampionId): ChampionKey;
@@ -1,2 +1,3 @@
1
- import { ChampionKey, ChampionName } from '../../types/types';
1
+ import { ChampionKey } from '../../constants/Champions/ChampionKeys';
2
+ import { ChampionName } from '../../constants/Champions/ChampionNames';
2
3
  export declare function getChampionKeyByName(name: ChampionName): ChampionKey;
@@ -1,2 +1,3 @@
1
- import { ChampionId, ChampionName } from '../../types/types';
1
+ import { ChampionId } from '../../constants/Champions/ChampionIds';
2
+ import { ChampionName } from '../../constants/Champions/ChampionNames';
2
3
  export declare function getChampionNameById(id: ChampionId): ChampionName;
@@ -1,2 +1,3 @@
1
- import { ChampionKey, ChampionName } from '../../types/types';
1
+ import { ChampionKey } from '../../constants/Champions/ChampionKeys';
2
+ import { ChampionName } from '../../constants/Champions/ChampionNames';
2
3
  export declare function getChampionNameByKey(key: ChampionKey): ChampionName;
@@ -1,2 +1,2 @@
1
- import { ChampionId } from '../../types/types';
1
+ import { ChampionId } from '../../constants/Champions/ChampionIds';
2
2
  export declare function isChampionId(id: any): id is ChampionId;
@@ -1,2 +1,2 @@
1
- import { ChampionKey } from '../../types/types';
1
+ import { ChampionKey } from '../../constants/Champions/ChampionKeys';
2
2
  export declare function isChampionKey(key: string): key is ChampionKey;
@@ -1,2 +1,2 @@
1
- import { ChampionName } from '../../types/types';
1
+ import { ChampionName } from '../../constants/Champions/ChampionNames';
2
2
  export declare function isChampionName(name: any): name is ChampionName;
@@ -1,2 +1,3 @@
1
- import { ItemKey, ItemName } from '../../types/types';
1
+ import { ItemKey } from '../../constants/Items/ItemKeys';
2
+ import { ItemName } from '../../constants/Items/ItemNames';
2
3
  export declare function getItemKeyByName(name: ItemName): ItemKey;
@@ -1,2 +1,3 @@
1
- import { ItemKey, ItemName } from '../../types/types';
1
+ import { ItemKey } from '../../constants/Items/ItemKeys';
2
+ import { ItemName } from '../../constants/Items/ItemNames';
2
3
  export declare function getItemNameByKey(key: ItemKey): ItemName;
@@ -1,2 +1,2 @@
1
- import { BootsItemKey } from '../../types/types';
1
+ import { BootsItemKey } from '../../constants/Items/BootsItemKeys';
2
2
  export declare function isBootsItemKey(key: string): key is BootsItemKey;
@@ -1,2 +1,2 @@
1
- import { BootsItemName } from '../../types/types';
1
+ import { BootsItemName } from '../../../assets';
2
2
  export declare function isBootsItemName(name: any): name is BootsItemName;
@@ -1,2 +1,2 @@
1
- import { ItemKey } from '../../types/types';
1
+ import { ItemKey } from '../../constants/Items/ItemKeys';
2
2
  export declare function isItemKey(key: string): key is ItemKey;
@@ -1,2 +1,2 @@
1
- import { ItemName } from '../../types/types';
1
+ import { ItemName } from '../../constants/Items/ItemNames';
2
2
  export declare function isItemName(name: any): name is ItemName;
@@ -1,2 +1,2 @@
1
- import { LegendaryItemKey } from '../../types/types';
1
+ import { LegendaryItemKey } from '../../constants/Items/LegendaryItemKeys';
2
2
  export declare function isLegendaryItemKey(key: string): key is LegendaryItemKey;
@@ -1,2 +1,2 @@
1
- import { LegendaryItemName } from '../../types/types';
1
+ import { LegendaryItemName } from '../../../assets';
2
2
  export declare function isLegendaryItemName(name: any): name is LegendaryItemName;
@@ -1,2 +1,2 @@
1
- import { MythicItemKey } from '../../types/types';
1
+ import { MythicItemKey } from '../../constants/Items/MythicItemKeys';
2
2
  export declare function isMythicItemKey(key: string): key is MythicItemKey;
@@ -1,2 +1,2 @@
1
- import { MythicItemName } from '../../types/types';
1
+ import { MythicItemName } from '../../../assets';
2
2
  export declare function isMythicItemName(name: any): name is MythicItemName;
@@ -1,3 +1,4 @@
1
+ import { RuneName } from '../../constants/Runes/RuneSets';
1
2
  import { RuneTreeName } from '../../constants/Runes/RuneTreeNames';
2
- import { RuneName, StatRunesCategory } from '../../types/types';
3
+ import { StatRunesCategory } from '../../types/types';
3
4
  export declare function getRuneCategoryName(name: RuneName): RuneTreeName | StatRunesCategory;
@@ -1,3 +1,3 @@
1
+ import { RuneName } from '../../constants/Runes/RuneSets';
1
2
  import { RuneTreeName } from '../../constants/Runes/RuneTreeNames';
2
- import { RuneName } from '../../types/types';
3
3
  export declare function getRuneCdnUrl(name: RuneName | RuneTreeName): string;
@@ -1,2 +1,3 @@
1
- import { RuneId, RuneName } from '../../types/types';
1
+ import { RuneName } from '../../constants/Runes/RuneSets';
2
+ import { RuneId } from '../../constants/Runes/RuneSetsByRuneNames';
2
3
  export declare function getRuneIdByName(name: RuneName): RuneId;
@@ -1,2 +1,3 @@
1
- import { RuneId, RuneName } from '../../types/types';
1
+ import { RuneName } from '../../constants/Runes/RuneSets';
2
+ import { RuneId } from '../../constants/Runes/RuneSetsByRuneNames';
2
3
  export declare function getRuneNameById(id: RuneId): RuneName;
@@ -1,2 +1,3 @@
1
- import { StatRuneId, StatRuneName } from '../../types/types';
1
+ import { StatRuneName } from '../../../assets';
2
+ import { StatRuneId } from '../../constants/Runes/RuneSetsByRuneNames';
2
3
  export declare function getStatRuneIdByName(name: StatRuneName): StatRuneId;
@@ -1,2 +1,3 @@
1
- import { StatRuneId, StatRuneName } from '../../types/types';
1
+ import { StatRuneName } from '../../../assets';
2
+ import { StatRuneId } from '../../constants/Runes/RuneSetsByRuneNames';
2
3
  export declare function getStatRuneNameById(id: StatRuneId): StatRuneName;
@@ -1,2 +1,3 @@
1
- import { TreeRuneId, TreeRuneName } from '../../types/types';
1
+ import { TreeRuneId } from '../../constants/Runes/TreeRuneIds';
2
+ import { TreeRuneName } from '../../constants/Runes/TreeRuneNames';
2
3
  export declare function getTreeRuneIdByName(name: TreeRuneName): TreeRuneId;
@@ -1,2 +1,3 @@
1
- import { TreeRuneId, TreeRuneName } from '../../types/types';
1
+ import { TreeRuneId } from '../../constants/Runes/TreeRuneIds';
2
+ import { TreeRuneName } from '../../constants/Runes/TreeRuneNames';
2
3
  export declare function getTreeRuneNameById(id: TreeRuneId): TreeRuneName;
@@ -1,2 +1,2 @@
1
- import { RuneId } from '../../types/types';
1
+ import { RuneId } from '../../constants/Runes/RuneSetsByRuneNames';
2
2
  export declare function isRuneId(id: string): id is RuneId;
@@ -1,2 +1,2 @@
1
- import { RuneName } from '../../types/types';
1
+ import { RuneName } from '../../constants/Runes/RuneSets';
2
2
  export declare function isRuneName(name: any): name is RuneName;
@@ -1,2 +1,2 @@
1
- import { StatRuneId } from '../../types/types';
1
+ import { StatRuneId } from '../../constants/Runes/RuneSetsByRuneNames';
2
2
  export declare function isStatRuneId(id: string): id is StatRuneId;
@@ -1,2 +1,2 @@
1
- import { StatRuneName } from '../../types/types';
1
+ import { StatRuneName } from '../../../assets';
2
2
  export declare function isStatRuneName(name: any): name is StatRuneName;
@@ -1,2 +1,2 @@
1
- import { TreeRuneId } from '../../types/types';
1
+ import { TreeRuneId } from '../../constants/Runes/TreeRuneIds';
2
2
  export declare function isTreeRuneId(id: string): id is TreeRuneId;
@@ -1,2 +1,2 @@
1
- import { TreeRuneName } from '../../types/types';
1
+ import { TreeRuneName } from '../../constants/Runes/TreeRuneNames';
2
2
  export declare function isTreeRuneName(name: any): name is TreeRuneName;
@@ -1,2 +1,3 @@
1
- import { SpellId, SpellKey } from '../../types/types';
1
+ import { SpellId } from '../../constants/Spells/SpellIds';
2
+ import { SpellKey } from '../../constants/Spells/SpellKeys';
2
3
  export declare function getSpellIdByKey(key: SpellKey): SpellId;
@@ -1,2 +1,3 @@
1
- import { SpellId, SpellName } from '../../types/types';
1
+ import { SpellId } from '../../constants/Spells/SpellIds';
2
+ import { SpellName } from '../../constants/Spells/SpellNames';
2
3
  export declare function getSpellIdByName(name: SpellName): SpellId;
@@ -1,2 +1,3 @@
1
- import { SpellId, SpellKey } from '../../types/types';
1
+ import { SpellId } from '../../constants/Spells/SpellIds';
2
+ import { SpellKey } from '../../constants/Spells/SpellKeys';
2
3
  export declare function getSpellKeyById(id: SpellId): SpellKey;
@@ -1,2 +1,3 @@
1
- import { SpellKey, SpellName } from '../../types/types';
1
+ import { SpellKey } from '../../constants/Spells/SpellKeys';
2
+ import { SpellName } from '../../constants/Spells/SpellNames';
2
3
  export declare function getSpellKeyByName(name: SpellName): SpellKey;
@@ -1,2 +1,3 @@
1
- import { SpellId, SpellName } from '../../types/types';
1
+ import { SpellId } from '../../constants/Spells/SpellIds';
2
+ import { SpellName } from '../../constants/Spells/SpellNames';
2
3
  export declare function getSpellNameById(id: SpellId): SpellName;
@@ -1,2 +1,3 @@
1
- import { SpellKey, SpellName } from '../../types/types';
1
+ import { SpellKey } from '../../constants/Spells/SpellKeys';
2
+ import { SpellName } from '../../constants/Spells/SpellNames';
2
3
  export declare function getSpellNameByKey(key: SpellKey): SpellName;
@@ -1,2 +1,2 @@
1
- import { SpellId } from '../../types/types';
1
+ import { SpellId } from '../../constants/Spells/SpellIds';
2
2
  export declare function isSpellId(id: any): id is SpellId;
@@ -1,2 +1,2 @@
1
- import { SpellKey } from '../../types/types';
1
+ import { SpellKey } from '../../constants/Spells/SpellKeys';
2
2
  export declare function isSpellKey(key: string): key is SpellKey;
@@ -1,2 +1,2 @@
1
- import { SpellName } from '../../types/types';
1
+ import { SpellName } from '../../constants/Spells/SpellNames';
2
2
  export declare function isSpellName(name: any): name is SpellName;
package/core/index.d.ts CHANGED
@@ -17,26 +17,35 @@ export * from './constants/WardTypes';
17
17
  export * from './constants/Champions/ChampionIds';
18
18
  export * from './constants/Champions/ChampionIdsByName';
19
19
  export * from './constants/Champions/ChampionKeys';
20
+ export * from './constants/Champions/ChampionKeysNum';
20
21
  export * from './constants/Champions/ChampionNames';
21
22
  export * from './constants/Items/BootsItemKeys';
23
+ export * from './constants/Items/BootsItemKeysNum';
22
24
  export * from './constants/Items/BootsItemNames';
23
25
  export * from './constants/Items/ItemKeys';
26
+ export * from './constants/Items/ItemKeysNum';
24
27
  export * from './constants/Items/ItemNames';
25
28
  export * from './constants/Items/ItemTypes';
26
29
  export * from './constants/Items/LegendaryItemKeys';
30
+ export * from './constants/Items/LegendaryItemKeysNum';
27
31
  export * from './constants/Items/LegendaryItemNames';
28
32
  export * from './constants/Items/MythicItemKeys';
33
+ export * from './constants/Items/MythicItemKeysNum';
29
34
  export * from './constants/Items/MythicItemNames';
30
35
  export * from './constants/Runes/RuneIconFileNames';
31
36
  export * from './constants/Runes/RunePickingRelationships';
32
37
  export * from './constants/Runes/RuneSets';
38
+ export * from './constants/Runes/RuneSetsByRuneNames';
39
+ export * from './constants/Runes/RuneSetsByRuneNamesNum';
33
40
  export * from './constants/Runes/RuneTreeIds';
34
41
  export * from './constants/Runes/RuneTreeNames';
35
42
  export * from './constants/Runes/TreeRuneIds';
43
+ export * from './constants/Runes/TreeRuneIdsNum';
36
44
  export * from './constants/Runes/TreeRuneNames';
37
45
  export * from './constants/Spells/SpellIds';
38
46
  export * from './constants/Spells/SpellIdsByName';
39
47
  export * from './constants/Spells/SpellKeys';
48
+ export * from './constants/Spells/SpellKeysNum';
40
49
  export * from './constants/Spells/SpellNames';
41
50
  export * from './helpers/getPositionImageUrl';
42
51
  export * from './helpers/Champions/getChampionIdByKey';
package/core/index.js CHANGED
@@ -35,41 +35,38 @@ __exportStar(require("./constants/WardTypes"), exports);
35
35
  __exportStar(require("./constants/Champions/ChampionIds"), exports);
36
36
  __exportStar(require("./constants/Champions/ChampionIdsByName"), exports);
37
37
  __exportStar(require("./constants/Champions/ChampionKeys"), exports);
38
+ __exportStar(require("./constants/Champions/ChampionKeysNum"), exports);
38
39
  __exportStar(require("./constants/Champions/ChampionNames"), exports);
39
40
  // ## Items
40
41
  __exportStar(require("./constants/Items/BootsItemKeys"), exports);
42
+ __exportStar(require("./constants/Items/BootsItemKeysNum"), exports);
41
43
  __exportStar(require("./constants/Items/BootsItemNames"), exports);
42
44
  __exportStar(require("./constants/Items/ItemKeys"), exports);
45
+ __exportStar(require("./constants/Items/ItemKeysNum"), exports);
43
46
  __exportStar(require("./constants/Items/ItemNames"), exports);
44
47
  __exportStar(require("./constants/Items/ItemTypes"), exports);
45
48
  __exportStar(require("./constants/Items/LegendaryItemKeys"), exports);
49
+ __exportStar(require("./constants/Items/LegendaryItemKeysNum"), exports);
46
50
  __exportStar(require("./constants/Items/LegendaryItemNames"), exports);
47
51
  __exportStar(require("./constants/Items/MythicItemKeys"), exports);
52
+ __exportStar(require("./constants/Items/MythicItemKeysNum"), exports);
48
53
  __exportStar(require("./constants/Items/MythicItemNames"), exports);
49
54
  // ## Runes
50
55
  __exportStar(require("./constants/Runes/RuneIconFileNames"), exports);
51
56
  __exportStar(require("./constants/Runes/RunePickingRelationships"), exports);
52
57
  __exportStar(require("./constants/Runes/RuneSets"), exports);
53
- // TEMP
54
- // export {
55
- // PrimaryRuneTrees as PrimaryRuneTreesByRuneNames,
56
- // SecondaryRuneTrees as SecondaryRuneTreesByRuneNames,
57
- // KeystoneIds,
58
- // StatRuneIds,
59
- // RuneIds,
60
- // RuneTreeHSets as RuneTreeHSetsByRuneNames,
61
- // StatRuneHSets as StatRuneHSetsByRuneNames,
62
- // RuneSetsByRuneNames,
63
- // } from './constants/Runes/RuneSetsByRuneNames'
64
- // export * from './constants/Runes/RuneSetsByRuneNames'
58
+ __exportStar(require("./constants/Runes/RuneSetsByRuneNames"), exports);
59
+ __exportStar(require("./constants/Runes/RuneSetsByRuneNamesNum"), exports);
65
60
  __exportStar(require("./constants/Runes/RuneTreeIds"), exports);
66
61
  __exportStar(require("./constants/Runes/RuneTreeNames"), exports);
67
62
  __exportStar(require("./constants/Runes/TreeRuneIds"), exports);
63
+ __exportStar(require("./constants/Runes/TreeRuneIdsNum"), exports);
68
64
  __exportStar(require("./constants/Runes/TreeRuneNames"), exports);
69
65
  // ## Spells
70
66
  __exportStar(require("./constants/Spells/SpellIds"), exports);
71
67
  __exportStar(require("./constants/Spells/SpellIdsByName"), exports);
72
68
  __exportStar(require("./constants/Spells/SpellKeys"), exports);
69
+ __exportStar(require("./constants/Spells/SpellKeysNum"), exports);
73
70
  __exportStar(require("./constants/Spells/SpellNames"), exports);
74
71
  // # helpers
75
72
  __exportStar(require("./helpers/getPositionImageUrl"), exports);