lol-constants 1.0.1 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. package/assets/index.js +1 -1
  2. package/assets/scripts/Helpers/enableSpreadValues.d.ts +15 -0
  3. package/assets/scripts/Helpers/enableSpreadValues.js +38 -0
  4. package/assets/scripts/Helpers/getExportStatement.d.ts +1 -1
  5. package/assets/scripts/Helpers/getExportStatement.js +8 -2
  6. package/assets/scripts/Helpers/getFmtdComment.d.ts +5 -0
  7. package/assets/scripts/Helpers/getFmtdComment.js +15 -0
  8. package/assets/scripts/Helpers/writeToTmpFile.d.ts +8 -0
  9. package/assets/scripts/Helpers/writeToTmpFile.js +22 -0
  10. package/assets/scripts/generate-all.d.ts +1 -0
  11. package/assets/scripts/generate-all.js +1 -0
  12. package/{dist/scripts/generate-champion-ids-by-name.d.ts → assets/scripts/generate-rune-sets.d.ts} +0 -0
  13. package/assets/scripts/generate-rune-sets.js +94 -0
  14. package/dist/Constants/{ChampionIds.d.ts → Champions/ChampionIds.d.ts} +0 -0
  15. package/dist/Constants/{ChampionIds.js → Champions/ChampionIds.js} +0 -0
  16. package/dist/Constants/{ChampionIdsByName.d.ts → Champions/ChampionIdsByName.d.ts} +0 -0
  17. package/dist/Constants/{ChampionIdsByName.js → Champions/ChampionIdsByName.js} +0 -0
  18. package/dist/Constants/{ChampionKeys.d.ts → Champions/ChampionKeys.d.ts} +0 -0
  19. package/dist/Constants/{ChampionKeys.js → Champions/ChampionKeys.js} +0 -0
  20. package/dist/Constants/{ChampionNames.d.ts → Champions/ChampionNames.d.ts} +0 -0
  21. package/dist/Constants/{ChampionNames.js → Champions/ChampionNames.js} +0 -0
  22. package/dist/Constants/{ItemKeys.d.ts → Items/ItemKeys.d.ts} +0 -0
  23. package/dist/Constants/{ItemKeys.js → Items/ItemKeys.js} +0 -0
  24. package/dist/Constants/{ItemNames.d.ts → Items/ItemNames.d.ts} +0 -0
  25. package/dist/Constants/{ItemNames.js → Items/ItemNames.js} +0 -0
  26. package/dist/Constants/{RuneIds.d.ts → Runes/RuneIds.d.ts} +9 -9
  27. package/dist/Constants/Runes/RuneIds.js +9 -0
  28. package/dist/Constants/{RuneNames.d.ts → Runes/RuneNames.d.ts} +3 -3
  29. package/dist/Constants/Runes/RuneNames.js +9 -0
  30. package/dist/Constants/Runes/RuneSets.d.ts +479 -0
  31. package/dist/Constants/Runes/RuneSets.js +12 -0
  32. package/dist/Constants/{StatRuneIds.d.ts → Runes/StatRuneIds.d.ts} +0 -0
  33. package/dist/Constants/{StatRuneIds.js → Runes/StatRuneIds.js} +0 -0
  34. package/dist/Constants/{StatRuneNames.d.ts → Runes/StatRuneNames.d.ts} +0 -0
  35. package/dist/Constants/{StatRuneNames.js → Runes/StatRuneNames.js} +0 -0
  36. package/dist/Constants/{TreeRuneIds.d.ts → Runes/TreeRuneIds.d.ts} +0 -0
  37. package/dist/Constants/{TreeRuneIds.js → Runes/TreeRuneIds.js} +0 -0
  38. package/dist/Constants/{TreeRuneNames.d.ts → Runes/TreeRuneNames.d.ts} +0 -0
  39. package/dist/Constants/{TreeRuneNames.js → Runes/TreeRuneNames.js} +0 -0
  40. package/dist/Constants/{SpellIds.d.ts → Spells/SpellIds.d.ts} +0 -0
  41. package/dist/Constants/{SpellIds.js → Spells/SpellIds.js} +0 -0
  42. package/dist/Constants/{SpellIdsByName.d.ts → Spells/SpellIdsByName.d.ts} +0 -0
  43. package/dist/Constants/{SpellIdsByName.js → Spells/SpellIdsByName.js} +0 -0
  44. package/dist/Constants/{SpellKeys.d.ts → Spells/SpellKeys.d.ts} +0 -0
  45. package/dist/Constants/{SpellKeys.js → Spells/SpellKeys.js} +0 -0
  46. package/dist/Constants/{SpellNames.d.ts → Spells/SpellNames.d.ts} +0 -0
  47. package/dist/Constants/{SpellNames.js → Spells/SpellNames.js} +0 -0
  48. package/dist/Helpers/{getChampionIdByKey.d.ts → Champions/getChampionIdByKey.d.ts} +1 -1
  49. package/dist/Helpers/{getChampionIdByKey.js → Champions/getChampionIdByKey.js} +1 -1
  50. package/dist/Helpers/{getChampionIdByName.d.ts → Champions/getChampionIdByName.d.ts} +1 -1
  51. package/dist/Helpers/{getChampionIdByName.js → Champions/getChampionIdByName.js} +1 -1
  52. package/dist/Helpers/{getChampionKeyById.d.ts → Champions/getChampionKeyById.d.ts} +1 -1
  53. package/dist/Helpers/{getChampionKeyById.js → Champions/getChampionKeyById.js} +1 -1
  54. package/dist/Helpers/{getChampionKeyByName.d.ts → Champions/getChampionKeyByName.d.ts} +1 -1
  55. package/dist/Helpers/{getChampionKeyByName.js → Champions/getChampionKeyByName.js} +2 -2
  56. package/dist/Helpers/{getChampionNameById.d.ts → Champions/getChampionNameById.d.ts} +1 -1
  57. package/dist/Helpers/{getChampionNameById.js → Champions/getChampionNameById.js} +2 -2
  58. package/dist/Helpers/{getChampionNameByKey.d.ts → Champions/getChampionNameByKey.d.ts} +1 -1
  59. package/dist/Helpers/{getChampionNameByKey.js → Champions/getChampionNameByKey.js} +1 -1
  60. package/dist/Helpers/{isChampionId.d.ts → Champions/isChampionId.d.ts} +1 -1
  61. package/dist/Helpers/{isChampionId.js → Champions/isChampionId.js} +1 -1
  62. package/dist/Helpers/{isChampionKey.d.ts → Champions/isChampionKey.d.ts} +1 -1
  63. package/dist/Helpers/{isChampionKey.js → Champions/isChampionKey.js} +1 -1
  64. package/dist/Helpers/{isChampionName.d.ts → Champions/isChampionName.d.ts} +1 -1
  65. package/dist/Helpers/{isChampionName.js → Champions/isChampionName.js} +1 -1
  66. package/dist/Helpers/{getItemKeyByName.d.ts → Items/getItemKeyByName.d.ts} +1 -1
  67. package/dist/Helpers/{getItemKeyByName.js → Items/getItemKeyByName.js} +1 -1
  68. package/dist/Helpers/{getItemNameByKey.d.ts → Items/getItemNameByKey.d.ts} +1 -1
  69. package/dist/Helpers/{getItemNameByKey.js → Items/getItemNameByKey.js} +1 -1
  70. package/dist/Helpers/{isItemKey.d.ts → Items/isItemKey.d.ts} +1 -1
  71. package/dist/Helpers/{isItemKey.js → Items/isItemKey.js} +1 -1
  72. package/dist/Helpers/{isItemName.d.ts → Items/isItemName.d.ts} +1 -1
  73. package/dist/Helpers/{isItemName.js → Items/isItemName.js} +1 -1
  74. package/dist/Helpers/{getRuneIdByName.d.ts → Runes/getRuneIdByName.d.ts} +1 -1
  75. package/dist/Helpers/{getRuneIdByName.js → Runes/getRuneIdByName.js} +1 -1
  76. package/dist/Helpers/{getRuneNameById.d.ts → Runes/getRuneNameById.d.ts} +1 -1
  77. package/dist/Helpers/{getRuneNameById.js → Runes/getRuneNameById.js} +1 -1
  78. package/dist/Helpers/{getStatRuneIdByName.d.ts → Runes/getStatRuneIdByName.d.ts} +1 -1
  79. package/dist/Helpers/{getStatRuneIdByName.js → Runes/getStatRuneIdByName.js} +1 -1
  80. package/dist/Helpers/{getStatRuneNameById.d.ts → Runes/getStatRuneNameById.d.ts} +1 -1
  81. package/dist/Helpers/{getStatRuneNameById.js → Runes/getStatRuneNameById.js} +1 -1
  82. package/dist/Helpers/{getTreeRuneIdByName.d.ts → Runes/getTreeRuneIdByName.d.ts} +1 -1
  83. package/dist/Helpers/{getTreeRuneIdByName.js → Runes/getTreeRuneIdByName.js} +1 -1
  84. package/dist/Helpers/{getTreeRuneNameById.d.ts → Runes/getTreeRuneNameById.d.ts} +1 -1
  85. package/dist/Helpers/{getTreeRuneNameById.js → Runes/getTreeRuneNameById.js} +1 -1
  86. package/dist/Helpers/Runes/isDominationTreeRuneId.d.ts +2 -0
  87. package/dist/Helpers/Runes/isDominationTreeRuneId.js +8 -0
  88. package/dist/Helpers/Runes/isInspirationTreeRuneId.d.ts +2 -0
  89. package/dist/Helpers/Runes/isInspirationTreeRuneId.js +8 -0
  90. package/dist/Helpers/Runes/isKeystoneRuneId.d.ts +2 -0
  91. package/dist/Helpers/Runes/isKeystoneRuneId.js +8 -0
  92. package/dist/Helpers/Runes/isPrecisionTreeRuneId.d.ts +2 -0
  93. package/dist/Helpers/Runes/isPrecisionTreeRuneId.js +8 -0
  94. package/dist/Helpers/Runes/isResolveTreeRuneId.d.ts +2 -0
  95. package/dist/Helpers/Runes/isResolveTreeRuneId.js +8 -0
  96. package/dist/Helpers/{isRuneId.d.ts → Runes/isRuneId.d.ts} +1 -1
  97. package/dist/Helpers/{isRuneId.js → Runes/isRuneId.js} +1 -1
  98. package/dist/Helpers/{isRuneName.d.ts → Runes/isRuneName.d.ts} +1 -1
  99. package/dist/Helpers/{isRuneName.js → Runes/isRuneName.js} +1 -1
  100. package/dist/Helpers/Runes/isSorceryTreeRuneId.d.ts +2 -0
  101. package/dist/Helpers/Runes/isSorceryTreeRuneId.js +8 -0
  102. package/dist/Helpers/{isStatRuneId.d.ts → Runes/isStatRuneId.d.ts} +1 -1
  103. package/dist/Helpers/{isStatRuneId.js → Runes/isStatRuneId.js} +1 -1
  104. package/dist/Helpers/{isStatRuneName.d.ts → Runes/isStatRuneName.d.ts} +1 -1
  105. package/dist/Helpers/{isStatRuneName.js → Runes/isStatRuneName.js} +1 -1
  106. package/dist/Helpers/{isTreeRuneId.d.ts → Runes/isTreeRuneId.d.ts} +1 -1
  107. package/dist/Helpers/{isTreeRuneId.js → Runes/isTreeRuneId.js} +1 -1
  108. package/dist/Helpers/{isTreeRuneName.d.ts → Runes/isTreeRuneName.d.ts} +1 -1
  109. package/dist/Helpers/{isTreeRuneName.js → Runes/isTreeRuneName.js} +1 -1
  110. package/dist/Helpers/{getSpellIdByKey.d.ts → Spells/getSpellIdByKey.d.ts} +1 -1
  111. package/dist/Helpers/{getSpellIdByKey.js → Spells/getSpellIdByKey.js} +1 -1
  112. package/dist/Helpers/{getSpellIdByName.d.ts → Spells/getSpellIdByName.d.ts} +1 -1
  113. package/dist/Helpers/{getSpellIdByName.js → Spells/getSpellIdByName.js} +1 -1
  114. package/dist/Helpers/{getSpellKeyById.d.ts → Spells/getSpellKeyById.d.ts} +1 -1
  115. package/dist/Helpers/{getSpellKeyById.js → Spells/getSpellKeyById.js} +1 -1
  116. package/dist/Helpers/{getSpellKeyByName.d.ts → Spells/getSpellKeyByName.d.ts} +1 -1
  117. package/dist/Helpers/{getSpellKeyByName.js → Spells/getSpellKeyByName.js} +2 -2
  118. package/dist/Helpers/{getSpellNameById.d.ts → Spells/getSpellNameById.d.ts} +1 -1
  119. package/dist/Helpers/{getSpellNameById.js → Spells/getSpellNameById.js} +2 -2
  120. package/dist/Helpers/{getSpellNameByKey.d.ts → Spells/getSpellNameByKey.d.ts} +1 -1
  121. package/dist/Helpers/{getSpellNameByKey.js → Spells/getSpellNameByKey.js} +1 -1
  122. package/dist/Helpers/{isSpellId.d.ts → Spells/isSpellId.d.ts} +1 -1
  123. package/dist/Helpers/{isSpellId.js → Spells/isSpellId.js} +1 -1
  124. package/dist/Helpers/{isSpellKey.d.ts → Spells/isSpellKey.d.ts} +1 -1
  125. package/dist/Helpers/{isSpellKey.js → Spells/isSpellKey.js} +1 -1
  126. package/dist/Helpers/{isSpellName.d.ts → Spells/isSpellName.d.ts} +1 -1
  127. package/dist/Helpers/{isSpellName.js → Spells/isSpellName.js} +1 -1
  128. package/dist/index.d.ts +56 -50
  129. package/dist/index.js +92 -95
  130. package/dist/types/index.d.ts +21 -21
  131. package/package.json +3 -5
  132. package/dist/Constants/RuneIds.js +0 -4
  133. package/dist/Constants/RuneNames.js +0 -4
  134. package/dist/Constants/RuneSets.d.ts +0 -77
  135. package/dist/Constants/RuneSets.js +0 -210
  136. package/dist/assets/StatRunes.d.ts +0 -11
  137. package/dist/assets/StatRunes.js +0 -14
  138. package/dist/assets/champion.json +0 -1
  139. package/dist/assets/index.d.ts +0 -17216
  140. package/dist/assets/index.js +0 -17
  141. package/dist/assets/item.json +0 -1
  142. package/dist/assets/runesReforged.json +0 -1
  143. package/dist/assets/summoner.json +0 -1
  144. package/dist/scripts/Helpers/getExportStatement.d.ts +0 -6
  145. package/dist/scripts/Helpers/getExportStatement.js +0 -10
  146. package/dist/scripts/generate-all.d.ts +0 -16
  147. package/dist/scripts/generate-all.js +0 -18
  148. package/dist/scripts/generate-champion-ids-by-name.js +0 -20
  149. package/dist/scripts/generate-champion-ids.d.ts +0 -1
  150. package/dist/scripts/generate-champion-ids.js +0 -20
  151. package/dist/scripts/generate-champion-keys.d.ts +0 -1
  152. package/dist/scripts/generate-champion-keys.js +0 -20
  153. package/dist/scripts/generate-champion-names.d.ts +0 -1
  154. package/dist/scripts/generate-champion-names.js +0 -20
  155. package/dist/scripts/generate-item-keys.d.ts +0 -1
  156. package/dist/scripts/generate-item-keys.js +0 -21
  157. package/dist/scripts/generate-item-names.d.ts +0 -1
  158. package/dist/scripts/generate-item-names.js +0 -21
  159. package/dist/scripts/generate-rune-ids.d.ts +0 -1
  160. package/dist/scripts/generate-rune-ids.js +0 -29
  161. package/dist/scripts/generate-rune-names.d.ts +0 -1
  162. package/dist/scripts/generate-rune-names.js +0 -29
  163. package/dist/scripts/generate-spell-ids-by-name.d.ts +0 -1
  164. package/dist/scripts/generate-spell-ids-by-name.js +0 -20
  165. package/dist/scripts/generate-spell-ids.d.ts +0 -1
  166. package/dist/scripts/generate-spell-ids.js +0 -20
  167. package/dist/scripts/generate-spell-keys.d.ts +0 -1
  168. package/dist/scripts/generate-spell-keys.js +0 -20
  169. package/dist/scripts/generate-spell-names.d.ts +0 -1
  170. package/dist/scripts/generate-spell-names.js +0 -20
  171. package/dist/scripts/generate-stat-rune-ids.d.ts +0 -1
  172. package/dist/scripts/generate-stat-rune-ids.js +0 -20
  173. package/dist/scripts/generate-stat-rune-names.d.ts +0 -1
  174. package/dist/scripts/generate-stat-rune-names.js +0 -20
  175. package/dist/scripts/generate-tree-rune-ids.d.ts +0 -1
  176. package/dist/scripts/generate-tree-rune-ids.js +0 -22
  177. package/dist/scripts/generate-tree-rune-names.d.ts +0 -1
  178. package/dist/scripts/generate-tree-rune-names.js +0 -22
package/dist/index.d.ts CHANGED
@@ -1,53 +1,59 @@
1
- export { ChampionIds } from './Constants/ChampionIds';
2
- export { ChampionIdsByName } from './Constants/ChampionIdsByName';
3
- export { ChampionKeys } from './Constants/ChampionKeys';
4
- export { ChampionNames } from './Constants/ChampionNames';
5
1
  export { DDPaths } from './Constants/DDPaths';
6
- export { ItemKeys } from './Constants/ItemKeys';
7
- export { ItemNames } from './Constants/ItemNames';
8
- export { RuneIds } from './Constants/RuneIds';
9
- export { RuneNames } from './Constants/RuneNames';
10
- export { RuneSets } from './Constants/RuneSets';
11
- export { SpellIds } from './Constants/SpellIds';
12
- export { SpellIdsByName } from './Constants/SpellIdsByName';
13
- export { SpellKeys } from './Constants/SpellKeys';
14
- export { SpellNames } from './Constants/SpellNames';
15
- export { StatRuneIds } from './Constants/StatRuneIds';
16
- export { StatRuneNames } from './Constants/StatRuneNames';
17
- export { TreeRuneIds } from './Constants/TreeRuneIds';
18
- export { TreeRuneNames } from './Constants/TreeRuneNames';
19
- export { getChampionIdByKey } from './Helpers/getChampionIdByKey';
20
- export { getChampionIdByName } from './Helpers/getChampionIdByName';
21
- export { getChampionKeyById } from './Helpers/getChampionKeyById';
22
- export { getChampionKeyByName } from './Helpers/getChampionKeyByName';
23
- export { getChampionNameById } from './Helpers/getChampionNameById';
24
- export { getItemKeyByName } from './Helpers/getItemKeyByName';
25
- export { getItemNameByKey } from './Helpers/getItemNameByKey';
26
- export { getRuneIdByName } from './Helpers/getRuneIdByName';
27
- export { getRuneNameById } from './Helpers/getRuneNameById';
28
- export { getSpellIdByKey } from './Helpers/getSpellIdByKey';
29
- export { getSpellIdByName } from './Helpers/getSpellIdByName';
30
- export { getSpellKeyById } from './Helpers/getSpellKeyById';
31
- export { getSpellKeyByName } from './Helpers/getSpellKeyByName';
32
- export { getSpellNameById } from './Helpers/getSpellNameById';
33
- export { getSpellNameByKey } from './Helpers/getSpellNameByKey';
34
- export { getStatRuneIdByName } from './Helpers/getStatRuneIdByName';
35
- export { getStatRuneNameById } from './Helpers/getStatRuneNameById';
36
- export { getTreeRuneIdByName } from './Helpers/getTreeRuneIdByName';
37
- export { getTreeRuneNameById } from './Helpers/getTreeRuneNameById';
38
- export { isChampionId } from './Helpers/isChampionId';
39
- export { isChampionKey } from './Helpers/isChampionKey';
40
- export { isChampionName } from './Helpers/isChampionName';
41
- export { isItemKey } from './Helpers/isItemKey';
42
- export { isItemName } from './Helpers/isItemName';
43
- export { isRuneId } from './Helpers/isRuneId';
44
- export { isRuneName } from './Helpers/isRuneName';
45
- export { isSpellId } from './Helpers/isSpellId';
46
- export { isSpellKey } from './Helpers/isSpellKey';
47
- export { isSpellName } from './Helpers/isSpellName';
48
- export { isStatRuneId } from './Helpers/isStatRuneId';
49
- export { isStatRuneName } from './Helpers/isStatRuneName';
50
- export { isTreeRuneId } from './Helpers/isTreeRuneId';
51
- export { isTreeRuneName } from './Helpers/isTreeRuneName';
2
+ export { ChampionIds } from './Constants/Champions/ChampionIds';
3
+ export { ChampionIdsByName } from './Constants/Champions/ChampionIdsByName';
4
+ export { ChampionKeys } from './Constants/Champions/ChampionKeys';
5
+ export { ChampionNames } from './Constants/Champions/ChampionNames';
6
+ export { ItemKeys } from './Constants/Items/ItemKeys';
7
+ export { ItemNames } from './Constants/Items/ItemNames';
8
+ export { RuneIds } from './Constants/Runes/RuneIds';
9
+ export { RuneNames } from './Constants/Runes/RuneNames';
10
+ export { RuneSets } from './Constants/Runes/RuneSets';
11
+ export { StatRuneIds } from './Constants/Runes/StatRuneIds';
12
+ export { StatRuneNames } from './Constants/Runes/StatRuneNames';
13
+ export { TreeRuneIds } from './Constants/Runes/TreeRuneIds';
14
+ export { TreeRuneNames } from './Constants/Runes/TreeRuneNames';
15
+ export { SpellIds } from './Constants/Spells/SpellIds';
16
+ export { SpellIdsByName } from './Constants/Spells/SpellIdsByName';
17
+ export { SpellKeys } from './Constants/Spells/SpellKeys';
18
+ export { SpellNames } from './Constants/Spells/SpellNames';
19
+ export { getChampionIdByKey } from './Helpers/Champions/getChampionIdByKey';
20
+ export { getChampionIdByName } from './Helpers/Champions/getChampionIdByName';
21
+ export { getChampionKeyById } from './Helpers/Champions/getChampionKeyById';
22
+ export { getChampionKeyByName } from './Helpers/Champions/getChampionKeyByName';
23
+ export { getChampionNameById } from './Helpers/Champions/getChampionNameById';
24
+ export { isChampionId } from './Helpers/Champions/isChampionId';
25
+ export { isChampionKey } from './Helpers/Champions/isChampionKey';
26
+ export { isChampionName } from './Helpers/Champions/isChampionName';
27
+ export { getItemKeyByName } from './Helpers/Items/getItemKeyByName';
28
+ export { getItemNameByKey } from './Helpers/Items/getItemNameByKey';
29
+ export { isItemKey } from './Helpers/Items/isItemKey';
30
+ export { isItemName } from './Helpers/Items/isItemName';
31
+ export { getRuneIdByName } from './Helpers/Runes/getRuneIdByName';
32
+ export { getRuneNameById } from './Helpers/Runes/getRuneNameById';
33
+ export { getStatRuneIdByName } from './Helpers/Runes/getStatRuneIdByName';
34
+ export { getStatRuneNameById } from './Helpers/Runes/getStatRuneNameById';
35
+ export { getTreeRuneIdByName } from './Helpers/Runes/getTreeRuneIdByName';
36
+ export { getTreeRuneNameById } from './Helpers/Runes/getTreeRuneNameById';
37
+ export { isDominationTreeRuneId } from './Helpers/Runes/isDominationTreeRuneId';
38
+ export { isInspirationTreeRuneId } from './Helpers/Runes/isInspirationTreeRuneId';
39
+ export { isKeystoneRuneId } from './Helpers/Runes/isKeystoneRuneId';
40
+ export { isPrecisionTreeRuneId } from './Helpers/Runes/isPrecisionTreeRuneId';
41
+ export { isResolveTreeRuneId } from './Helpers/Runes/isResolveTreeRuneId';
42
+ export { isRuneId } from './Helpers/Runes/isRuneId';
43
+ export { isRuneName } from './Helpers/Runes/isRuneName';
44
+ export { isSorceryTreeRuneId } from './Helpers/Runes/isSorceryTreeRuneId';
45
+ export { isStatRuneId } from './Helpers/Runes/isStatRuneId';
46
+ export { isStatRuneName } from './Helpers/Runes/isStatRuneName';
47
+ export { isTreeRuneId } from './Helpers/Runes/isTreeRuneId';
48
+ export { isTreeRuneName } from './Helpers/Runes/isTreeRuneName';
49
+ export { getSpellIdByKey } from './Helpers/Spells/getSpellIdByKey';
50
+ export { getSpellIdByName } from './Helpers/Spells/getSpellIdByName';
51
+ export { getSpellKeyById } from './Helpers/Spells/getSpellKeyById';
52
+ export { getSpellKeyByName } from './Helpers/Spells/getSpellKeyByName';
53
+ export { getSpellNameById } from './Helpers/Spells/getSpellNameById';
54
+ export { getSpellNameByKey } from './Helpers/Spells/getSpellNameByKey';
55
+ export { isSpellId } from './Helpers/Spells/isSpellId';
56
+ export { isSpellKey } from './Helpers/Spells/isSpellKey';
57
+ export { isSpellName } from './Helpers/Spells/isSpellName';
52
58
  export * from './types';
53
59
  export * from './types/Meta';
package/dist/index.js CHANGED
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- // # assets
3
- // TEMP
4
- // import _champion from './assets/champion.json'
5
- // import _item from './assets/item.json'
6
- // import _runesReforged from './assets/runesReforged.json'
7
- // import _summoner from './assets/summoner.json'
8
- // export const champion = _champion
9
- // export const item = _item
10
- // export const runesReforged = _runesReforged
11
- // export const summoner = _summoner
12
- // export { StatRunes } from './assets/StatRunes'
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -25,124 +14,132 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
25
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
26
15
  };
27
16
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.isTreeRuneId = exports.isStatRuneName = exports.isStatRuneId = exports.isSpellName = exports.isSpellKey = exports.isSpellId = exports.isRuneName = exports.isRuneId = exports.isItemName = exports.isItemKey = exports.isChampionName = exports.isChampionKey = exports.isChampionId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getSpellNameByKey = exports.getSpellNameById = exports.getSpellKeyByName = exports.getSpellKeyById = exports.getSpellIdByName = exports.getSpellIdByKey = exports.getRuneNameById = exports.getRuneIdByName = exports.getItemNameByKey = exports.getItemKeyByName = exports.getChampionNameById = exports.getChampionKeyByName = exports.getChampionKeyById = exports.getChampionIdByName = exports.getChampionIdByKey = exports.TreeRuneNames = exports.TreeRuneIds = exports.StatRuneNames = exports.StatRuneIds = exports.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.RuneSets = exports.RuneNames = exports.RuneIds = exports.ItemNames = exports.ItemKeys = exports.DDPaths = exports.ChampionNames = exports.ChampionKeys = exports.ChampionIdsByName = exports.ChampionIds = void 0;
29
- exports.isTreeRuneName = void 0;
17
+ exports.getSpellIdByName = exports.getSpellIdByKey = exports.isTreeRuneName = exports.isTreeRuneId = exports.isStatRuneName = exports.isStatRuneId = exports.isSorceryTreeRuneId = exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.isItemName = exports.isItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = exports.getChampionNameById = exports.getChampionKeyByName = exports.getChampionKeyById = exports.getChampionIdByName = exports.getChampionIdByKey = exports.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.TreeRuneNames = exports.TreeRuneIds = exports.StatRuneNames = exports.StatRuneIds = exports.RuneSets = exports.RuneNames = exports.RuneIds = exports.ItemNames = exports.ItemKeys = exports.ChampionNames = exports.ChampionKeys = exports.ChampionIdsByName = exports.ChampionIds = exports.DDPaths = void 0;
18
+ exports.isSpellName = exports.isSpellKey = exports.isSpellId = exports.getSpellNameByKey = exports.getSpellNameById = exports.getSpellKeyByName = exports.getSpellKeyById = void 0;
30
19
  // # Constants
31
- var ChampionIds_1 = require("./Constants/ChampionIds");
20
+ var DDPaths_1 = require("./Constants/DDPaths");
21
+ Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
22
+ // ## Champions
23
+ var ChampionIds_1 = require("./Constants/Champions/ChampionIds");
32
24
  Object.defineProperty(exports, "ChampionIds", { enumerable: true, get: function () { return ChampionIds_1.ChampionIds; } });
33
- var ChampionIdsByName_1 = require("./Constants/ChampionIdsByName");
25
+ var ChampionIdsByName_1 = require("./Constants/Champions/ChampionIdsByName");
34
26
  Object.defineProperty(exports, "ChampionIdsByName", { enumerable: true, get: function () { return ChampionIdsByName_1.ChampionIdsByName; } });
35
- var ChampionKeys_1 = require("./Constants/ChampionKeys");
27
+ var ChampionKeys_1 = require("./Constants/Champions/ChampionKeys");
36
28
  Object.defineProperty(exports, "ChampionKeys", { enumerable: true, get: function () { return ChampionKeys_1.ChampionKeys; } });
37
- var ChampionNames_1 = require("./Constants/ChampionNames");
29
+ var ChampionNames_1 = require("./Constants/Champions/ChampionNames");
38
30
  Object.defineProperty(exports, "ChampionNames", { enumerable: true, get: function () { return ChampionNames_1.ChampionNames; } });
39
- var DDPaths_1 = require("./Constants/DDPaths");
40
- Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
41
- var ItemKeys_1 = require("./Constants/ItemKeys");
31
+ // ## Items
32
+ var ItemKeys_1 = require("./Constants/Items/ItemKeys");
42
33
  Object.defineProperty(exports, "ItemKeys", { enumerable: true, get: function () { return ItemKeys_1.ItemKeys; } });
43
- var ItemNames_1 = require("./Constants/ItemNames");
34
+ var ItemNames_1 = require("./Constants/Items/ItemNames");
44
35
  Object.defineProperty(exports, "ItemNames", { enumerable: true, get: function () { return ItemNames_1.ItemNames; } });
45
- var RuneIds_1 = require("./Constants/RuneIds");
36
+ // ## Runes
37
+ var RuneIds_1 = require("./Constants/Runes/RuneIds");
46
38
  Object.defineProperty(exports, "RuneIds", { enumerable: true, get: function () { return RuneIds_1.RuneIds; } });
47
- var RuneNames_1 = require("./Constants/RuneNames");
39
+ var RuneNames_1 = require("./Constants/Runes/RuneNames");
48
40
  Object.defineProperty(exports, "RuneNames", { enumerable: true, get: function () { return RuneNames_1.RuneNames; } });
49
- var RuneSets_1 = require("./Constants/RuneSets");
41
+ var RuneSets_1 = require("./Constants/Runes/RuneSets");
50
42
  Object.defineProperty(exports, "RuneSets", { enumerable: true, get: function () { return RuneSets_1.RuneSets; } });
51
- var SpellIds_1 = require("./Constants/SpellIds");
52
- Object.defineProperty(exports, "SpellIds", { enumerable: true, get: function () { return SpellIds_1.SpellIds; } });
53
- var SpellIdsByName_1 = require("./Constants/SpellIdsByName");
54
- Object.defineProperty(exports, "SpellIdsByName", { enumerable: true, get: function () { return SpellIdsByName_1.SpellIdsByName; } });
55
- var SpellKeys_1 = require("./Constants/SpellKeys");
56
- Object.defineProperty(exports, "SpellKeys", { enumerable: true, get: function () { return SpellKeys_1.SpellKeys; } });
57
- var SpellNames_1 = require("./Constants/SpellNames");
58
- Object.defineProperty(exports, "SpellNames", { enumerable: true, get: function () { return SpellNames_1.SpellNames; } });
59
- var StatRuneIds_1 = require("./Constants/StatRuneIds");
43
+ var StatRuneIds_1 = require("./Constants/Runes/StatRuneIds");
60
44
  Object.defineProperty(exports, "StatRuneIds", { enumerable: true, get: function () { return StatRuneIds_1.StatRuneIds; } });
61
- var StatRuneNames_1 = require("./Constants/StatRuneNames");
45
+ var StatRuneNames_1 = require("./Constants/Runes/StatRuneNames");
62
46
  Object.defineProperty(exports, "StatRuneNames", { enumerable: true, get: function () { return StatRuneNames_1.StatRuneNames; } });
63
- var TreeRuneIds_1 = require("./Constants/TreeRuneIds");
47
+ var TreeRuneIds_1 = require("./Constants/Runes/TreeRuneIds");
64
48
  Object.defineProperty(exports, "TreeRuneIds", { enumerable: true, get: function () { return TreeRuneIds_1.TreeRuneIds; } });
65
- var TreeRuneNames_1 = require("./Constants/TreeRuneNames");
49
+ var TreeRuneNames_1 = require("./Constants/Runes/TreeRuneNames");
66
50
  Object.defineProperty(exports, "TreeRuneNames", { enumerable: true, get: function () { return TreeRuneNames_1.TreeRuneNames; } });
51
+ // ## Spells
52
+ var SpellIds_1 = require("./Constants/Spells/SpellIds");
53
+ Object.defineProperty(exports, "SpellIds", { enumerable: true, get: function () { return SpellIds_1.SpellIds; } });
54
+ var SpellIdsByName_1 = require("./Constants/Spells/SpellIdsByName");
55
+ Object.defineProperty(exports, "SpellIdsByName", { enumerable: true, get: function () { return SpellIdsByName_1.SpellIdsByName; } });
56
+ var SpellKeys_1 = require("./Constants/Spells/SpellKeys");
57
+ Object.defineProperty(exports, "SpellKeys", { enumerable: true, get: function () { return SpellKeys_1.SpellKeys; } });
58
+ var SpellNames_1 = require("./Constants/Spells/SpellNames");
59
+ Object.defineProperty(exports, "SpellNames", { enumerable: true, get: function () { return SpellNames_1.SpellNames; } });
67
60
  // # Helpers
68
- // ##
69
- var getChampionIdByKey_1 = require("./Helpers/getChampionIdByKey");
61
+ // ## Champions
62
+ var getChampionIdByKey_1 = require("./Helpers/Champions/getChampionIdByKey");
70
63
  Object.defineProperty(exports, "getChampionIdByKey", { enumerable: true, get: function () { return getChampionIdByKey_1.getChampionIdByKey; } });
71
- var getChampionIdByName_1 = require("./Helpers/getChampionIdByName");
64
+ var getChampionIdByName_1 = require("./Helpers/Champions/getChampionIdByName");
72
65
  Object.defineProperty(exports, "getChampionIdByName", { enumerable: true, get: function () { return getChampionIdByName_1.getChampionIdByName; } });
73
- var getChampionKeyById_1 = require("./Helpers/getChampionKeyById");
66
+ var getChampionKeyById_1 = require("./Helpers/Champions/getChampionKeyById");
74
67
  Object.defineProperty(exports, "getChampionKeyById", { enumerable: true, get: function () { return getChampionKeyById_1.getChampionKeyById; } });
75
- var getChampionKeyByName_1 = require("./Helpers/getChampionKeyByName");
68
+ var getChampionKeyByName_1 = require("./Helpers/Champions/getChampionKeyByName");
76
69
  Object.defineProperty(exports, "getChampionKeyByName", { enumerable: true, get: function () { return getChampionKeyByName_1.getChampionKeyByName; } });
77
- var getChampionNameById_1 = require("./Helpers/getChampionNameById");
70
+ var getChampionNameById_1 = require("./Helpers/Champions/getChampionNameById");
78
71
  Object.defineProperty(exports, "getChampionNameById", { enumerable: true, get: function () { return getChampionNameById_1.getChampionNameById; } });
79
- // ##
80
- var getItemKeyByName_1 = require("./Helpers/getItemKeyByName");
72
+ var isChampionId_1 = require("./Helpers/Champions/isChampionId");
73
+ Object.defineProperty(exports, "isChampionId", { enumerable: true, get: function () { return isChampionId_1.isChampionId; } });
74
+ var isChampionKey_1 = require("./Helpers/Champions/isChampionKey");
75
+ Object.defineProperty(exports, "isChampionKey", { enumerable: true, get: function () { return isChampionKey_1.isChampionKey; } });
76
+ var isChampionName_1 = require("./Helpers/Champions/isChampionName");
77
+ Object.defineProperty(exports, "isChampionName", { enumerable: true, get: function () { return isChampionName_1.isChampionName; } });
78
+ // ## Items
79
+ var getItemKeyByName_1 = require("./Helpers/Items/getItemKeyByName");
81
80
  Object.defineProperty(exports, "getItemKeyByName", { enumerable: true, get: function () { return getItemKeyByName_1.getItemKeyByName; } });
82
- var getItemNameByKey_1 = require("./Helpers/getItemNameByKey");
81
+ var getItemNameByKey_1 = require("./Helpers/Items/getItemNameByKey");
83
82
  Object.defineProperty(exports, "getItemNameByKey", { enumerable: true, get: function () { return getItemNameByKey_1.getItemNameByKey; } });
84
- // ##
85
- var getRuneIdByName_1 = require("./Helpers/getRuneIdByName");
83
+ var isItemKey_1 = require("./Helpers/Items/isItemKey");
84
+ Object.defineProperty(exports, "isItemKey", { enumerable: true, get: function () { return isItemKey_1.isItemKey; } });
85
+ var isItemName_1 = require("./Helpers/Items/isItemName");
86
+ Object.defineProperty(exports, "isItemName", { enumerable: true, get: function () { return isItemName_1.isItemName; } });
87
+ // ## Runes
88
+ var getRuneIdByName_1 = require("./Helpers/Runes/getRuneIdByName");
86
89
  Object.defineProperty(exports, "getRuneIdByName", { enumerable: true, get: function () { return getRuneIdByName_1.getRuneIdByName; } });
87
- var getRuneNameById_1 = require("./Helpers/getRuneNameById");
90
+ var getRuneNameById_1 = require("./Helpers/Runes/getRuneNameById");
88
91
  Object.defineProperty(exports, "getRuneNameById", { enumerable: true, get: function () { return getRuneNameById_1.getRuneNameById; } });
89
- // ##
90
- var getSpellIdByKey_1 = require("./Helpers/getSpellIdByKey");
91
- Object.defineProperty(exports, "getSpellIdByKey", { enumerable: true, get: function () { return getSpellIdByKey_1.getSpellIdByKey; } });
92
- var getSpellIdByName_1 = require("./Helpers/getSpellIdByName");
93
- Object.defineProperty(exports, "getSpellIdByName", { enumerable: true, get: function () { return getSpellIdByName_1.getSpellIdByName; } });
94
- var getSpellKeyById_1 = require("./Helpers/getSpellKeyById");
95
- Object.defineProperty(exports, "getSpellKeyById", { enumerable: true, get: function () { return getSpellKeyById_1.getSpellKeyById; } });
96
- var getSpellKeyByName_1 = require("./Helpers/getSpellKeyByName");
97
- Object.defineProperty(exports, "getSpellKeyByName", { enumerable: true, get: function () { return getSpellKeyByName_1.getSpellKeyByName; } });
98
- var getSpellNameById_1 = require("./Helpers/getSpellNameById");
99
- Object.defineProperty(exports, "getSpellNameById", { enumerable: true, get: function () { return getSpellNameById_1.getSpellNameById; } });
100
- var getSpellNameByKey_1 = require("./Helpers/getSpellNameByKey");
101
- Object.defineProperty(exports, "getSpellNameByKey", { enumerable: true, get: function () { return getSpellNameByKey_1.getSpellNameByKey; } });
102
- // ##
103
- var getStatRuneIdByName_1 = require("./Helpers/getStatRuneIdByName");
92
+ var getStatRuneIdByName_1 = require("./Helpers/Runes/getStatRuneIdByName");
104
93
  Object.defineProperty(exports, "getStatRuneIdByName", { enumerable: true, get: function () { return getStatRuneIdByName_1.getStatRuneIdByName; } });
105
- var getStatRuneNameById_1 = require("./Helpers/getStatRuneNameById");
94
+ var getStatRuneNameById_1 = require("./Helpers/Runes/getStatRuneNameById");
106
95
  Object.defineProperty(exports, "getStatRuneNameById", { enumerable: true, get: function () { return getStatRuneNameById_1.getStatRuneNameById; } });
107
- // ##
108
- var getTreeRuneIdByName_1 = require("./Helpers/getTreeRuneIdByName");
96
+ var getTreeRuneIdByName_1 = require("./Helpers/Runes/getTreeRuneIdByName");
109
97
  Object.defineProperty(exports, "getTreeRuneIdByName", { enumerable: true, get: function () { return getTreeRuneIdByName_1.getTreeRuneIdByName; } });
110
- var getTreeRuneNameById_1 = require("./Helpers/getTreeRuneNameById");
98
+ var getTreeRuneNameById_1 = require("./Helpers/Runes/getTreeRuneNameById");
111
99
  Object.defineProperty(exports, "getTreeRuneNameById", { enumerable: true, get: function () { return getTreeRuneNameById_1.getTreeRuneNameById; } });
112
- // ##
113
- var isChampionId_1 = require("./Helpers/isChampionId");
114
- Object.defineProperty(exports, "isChampionId", { enumerable: true, get: function () { return isChampionId_1.isChampionId; } });
115
- var isChampionKey_1 = require("./Helpers/isChampionKey");
116
- Object.defineProperty(exports, "isChampionKey", { enumerable: true, get: function () { return isChampionKey_1.isChampionKey; } });
117
- var isChampionName_1 = require("./Helpers/isChampionName");
118
- Object.defineProperty(exports, "isChampionName", { enumerable: true, get: function () { return isChampionName_1.isChampionName; } });
119
- // ##
120
- var isItemKey_1 = require("./Helpers/isItemKey");
121
- Object.defineProperty(exports, "isItemKey", { enumerable: true, get: function () { return isItemKey_1.isItemKey; } });
122
- var isItemName_1 = require("./Helpers/isItemName");
123
- Object.defineProperty(exports, "isItemName", { enumerable: true, get: function () { return isItemName_1.isItemName; } });
124
- // ##
125
- var isRuneId_1 = require("./Helpers/isRuneId");
100
+ var isDominationTreeRuneId_1 = require("./Helpers/Runes/isDominationTreeRuneId");
101
+ Object.defineProperty(exports, "isDominationTreeRuneId", { enumerable: true, get: function () { return isDominationTreeRuneId_1.isDominationTreeRuneId; } });
102
+ var isInspirationTreeRuneId_1 = require("./Helpers/Runes/isInspirationTreeRuneId");
103
+ Object.defineProperty(exports, "isInspirationTreeRuneId", { enumerable: true, get: function () { return isInspirationTreeRuneId_1.isInspirationTreeRuneId; } });
104
+ var isKeystoneRuneId_1 = require("./Helpers/Runes/isKeystoneRuneId");
105
+ Object.defineProperty(exports, "isKeystoneRuneId", { enumerable: true, get: function () { return isKeystoneRuneId_1.isKeystoneRuneId; } });
106
+ var isPrecisionTreeRuneId_1 = require("./Helpers/Runes/isPrecisionTreeRuneId");
107
+ Object.defineProperty(exports, "isPrecisionTreeRuneId", { enumerable: true, get: function () { return isPrecisionTreeRuneId_1.isPrecisionTreeRuneId; } });
108
+ var isResolveTreeRuneId_1 = require("./Helpers/Runes/isResolveTreeRuneId");
109
+ Object.defineProperty(exports, "isResolveTreeRuneId", { enumerable: true, get: function () { return isResolveTreeRuneId_1.isResolveTreeRuneId; } });
110
+ var isRuneId_1 = require("./Helpers/Runes/isRuneId");
126
111
  Object.defineProperty(exports, "isRuneId", { enumerable: true, get: function () { return isRuneId_1.isRuneId; } });
127
- var isRuneName_1 = require("./Helpers/isRuneName");
112
+ var isRuneName_1 = require("./Helpers/Runes/isRuneName");
128
113
  Object.defineProperty(exports, "isRuneName", { enumerable: true, get: function () { return isRuneName_1.isRuneName; } });
129
- // ##
130
- var isSpellId_1 = require("./Helpers/isSpellId");
131
- Object.defineProperty(exports, "isSpellId", { enumerable: true, get: function () { return isSpellId_1.isSpellId; } });
132
- var isSpellKey_1 = require("./Helpers/isSpellKey");
133
- Object.defineProperty(exports, "isSpellKey", { enumerable: true, get: function () { return isSpellKey_1.isSpellKey; } });
134
- var isSpellName_1 = require("./Helpers/isSpellName");
135
- Object.defineProperty(exports, "isSpellName", { enumerable: true, get: function () { return isSpellName_1.isSpellName; } });
136
- // ##
137
- var isStatRuneId_1 = require("./Helpers/isStatRuneId");
114
+ var isSorceryTreeRuneId_1 = require("./Helpers/Runes/isSorceryTreeRuneId");
115
+ Object.defineProperty(exports, "isSorceryTreeRuneId", { enumerable: true, get: function () { return isSorceryTreeRuneId_1.isSorceryTreeRuneId; } });
116
+ var isStatRuneId_1 = require("./Helpers/Runes/isStatRuneId");
138
117
  Object.defineProperty(exports, "isStatRuneId", { enumerable: true, get: function () { return isStatRuneId_1.isStatRuneId; } });
139
- var isStatRuneName_1 = require("./Helpers/isStatRuneName");
118
+ var isStatRuneName_1 = require("./Helpers/Runes/isStatRuneName");
140
119
  Object.defineProperty(exports, "isStatRuneName", { enumerable: true, get: function () { return isStatRuneName_1.isStatRuneName; } });
141
- // ##
142
- var isTreeRuneId_1 = require("./Helpers/isTreeRuneId");
120
+ var isTreeRuneId_1 = require("./Helpers/Runes/isTreeRuneId");
143
121
  Object.defineProperty(exports, "isTreeRuneId", { enumerable: true, get: function () { return isTreeRuneId_1.isTreeRuneId; } });
144
- var isTreeRuneName_1 = require("./Helpers/isTreeRuneName");
122
+ var isTreeRuneName_1 = require("./Helpers/Runes/isTreeRuneName");
145
123
  Object.defineProperty(exports, "isTreeRuneName", { enumerable: true, get: function () { return isTreeRuneName_1.isTreeRuneName; } });
124
+ // ## Spells
125
+ var getSpellIdByKey_1 = require("./Helpers/Spells/getSpellIdByKey");
126
+ Object.defineProperty(exports, "getSpellIdByKey", { enumerable: true, get: function () { return getSpellIdByKey_1.getSpellIdByKey; } });
127
+ var getSpellIdByName_1 = require("./Helpers/Spells/getSpellIdByName");
128
+ Object.defineProperty(exports, "getSpellIdByName", { enumerable: true, get: function () { return getSpellIdByName_1.getSpellIdByName; } });
129
+ var getSpellKeyById_1 = require("./Helpers/Spells/getSpellKeyById");
130
+ Object.defineProperty(exports, "getSpellKeyById", { enumerable: true, get: function () { return getSpellKeyById_1.getSpellKeyById; } });
131
+ var getSpellKeyByName_1 = require("./Helpers/Spells/getSpellKeyByName");
132
+ Object.defineProperty(exports, "getSpellKeyByName", { enumerable: true, get: function () { return getSpellKeyByName_1.getSpellKeyByName; } });
133
+ var getSpellNameById_1 = require("./Helpers/Spells/getSpellNameById");
134
+ Object.defineProperty(exports, "getSpellNameById", { enumerable: true, get: function () { return getSpellNameById_1.getSpellNameById; } });
135
+ var getSpellNameByKey_1 = require("./Helpers/Spells/getSpellNameByKey");
136
+ Object.defineProperty(exports, "getSpellNameByKey", { enumerable: true, get: function () { return getSpellNameByKey_1.getSpellNameByKey; } });
137
+ var isSpellId_1 = require("./Helpers/Spells/isSpellId");
138
+ Object.defineProperty(exports, "isSpellId", { enumerable: true, get: function () { return isSpellId_1.isSpellId; } });
139
+ var isSpellKey_1 = require("./Helpers/Spells/isSpellKey");
140
+ Object.defineProperty(exports, "isSpellKey", { enumerable: true, get: function () { return isSpellKey_1.isSpellKey; } });
141
+ var isSpellName_1 = require("./Helpers/Spells/isSpellName");
142
+ Object.defineProperty(exports, "isSpellName", { enumerable: true, get: function () { return isSpellName_1.isSpellName; } });
146
143
  // # scripts
147
144
  // —
148
145
  // # types
@@ -1,18 +1,18 @@
1
- import { RuneSets } from '../Constants/RuneSets';
2
- import { ChampionIds } from '../Constants/ChampionIds';
3
- import { ChampionKeys } from '../Constants/ChampionKeys';
4
- import { ChampionNames } from '../Constants/ChampionNames';
5
- import { ItemKeys } from '../Constants/ItemKeys';
6
- import { ItemNames } from '../Constants/ItemNames';
7
- import { SpellIds } from '../Constants/SpellIds';
8
- import { SpellKeys } from '../Constants/SpellKeys';
9
- import { SpellNames } from '../Constants/SpellNames';
10
- import { RuneIds } from '../Constants/RuneIds';
11
- import { RuneNames } from '../Constants/RuneNames';
12
- import { StatRuneIds } from '../Constants/StatRuneIds';
13
- import { StatRuneNames } from '../Constants/StatRuneNames';
14
- import { TreeRuneIds } from '../Constants/TreeRuneIds';
15
- import { TreeRuneNames } from '../Constants/TreeRuneNames';
1
+ import { RuneSets } from '../Constants/Runes/RuneSets';
2
+ import { ChampionIds } from '../Constants/Champions/ChampionIds';
3
+ import { ChampionKeys } from '../Constants/Champions/ChampionKeys';
4
+ import { ChampionNames } from '../Constants/Champions/ChampionNames';
5
+ import { ItemKeys } from '../Constants/Items/ItemKeys';
6
+ import { ItemNames } from '../Constants/Items/ItemNames';
7
+ import { SpellIds } from '../Constants/Spells/SpellIds';
8
+ import { SpellKeys } from '../Constants/Spells/SpellKeys';
9
+ import { SpellNames } from '../Constants/Spells/SpellNames';
10
+ import { RuneIds } from '../Constants/Runes/RuneIds';
11
+ import { RuneNames } from '../Constants/Runes/RuneNames';
12
+ import { StatRuneIds } from '../Constants/Runes/StatRuneIds';
13
+ import { StatRuneNames } from '../Constants/Runes/StatRuneNames';
14
+ import { TreeRuneIds } from '../Constants/Runes/TreeRuneIds';
15
+ import { TreeRuneNames } from '../Constants/Runes/TreeRuneNames';
16
16
  export declare type ChampionId = typeof ChampionIds[keyof typeof ChampionIds];
17
17
  export declare type ChampionKey = typeof ChampionKeys[keyof typeof ChampionKeys];
18
18
  export declare type ChampionName = typeof ChampionNames[keyof typeof ChampionNames];
@@ -83,7 +83,7 @@ export declare type StatRuneName = typeof StatRuneNames[keyof typeof StatRuneNam
83
83
  * - `ResolveTreeRuneId`,
84
84
  * - `InspirationTreeRuneId`,
85
85
  */
86
- export declare type KeystoneRuneId = Extract<typeof RuneSets.Keystones[keyof typeof RuneSets.Keystones], string>;
86
+ export declare type KeystoneRuneId = keyof typeof RuneSets.Keystones;
87
87
  /**
88
88
  * There are 3 main Rune ID types:
89
89
  * - `RuneId` (all),
@@ -98,7 +98,7 @@ export declare type KeystoneRuneId = Extract<typeof RuneSets.Keystones[keyof typ
98
98
  * - `ResolveTreeRuneId`,
99
99
  * - `InspirationTreeRuneId`,
100
100
  */
101
- export declare type PrecisionTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Precision[keyof typeof RuneSets.PrimaryTrees.Precision], string>;
101
+ export declare type PrecisionTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Precision;
102
102
  /**
103
103
  * There are 3 main Rune ID types:
104
104
  * - `RuneId` (all),
@@ -113,7 +113,7 @@ export declare type PrecisionTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.P
113
113
  * - `ResolveTreeRuneId`,
114
114
  * - `InspirationTreeRuneId`,
115
115
  */
116
- export declare type DominationTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Domination[keyof typeof RuneSets.PrimaryTrees.Domination], string>;
116
+ export declare type DominationTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Domination;
117
117
  /**
118
118
  * There are 3 main Rune ID types:
119
119
  * - `RuneId` (all),
@@ -128,7 +128,7 @@ export declare type DominationTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.
128
128
  * - `ResolveTreeRuneId`,
129
129
  * - `InspirationTreeRuneId`,
130
130
  */
131
- export declare type SorceryTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Sorcery[keyof typeof RuneSets.PrimaryTrees.Sorcery], string>;
131
+ export declare type SorceryTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Sorcery;
132
132
  /**
133
133
  * There are 3 main Rune ID types:
134
134
  * - `RuneId` (all),
@@ -143,7 +143,7 @@ export declare type SorceryTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Sor
143
143
  * - `ResolveTreeRuneId`,
144
144
  * - `InspirationTreeRuneId`,
145
145
  */
146
- export declare type ResolveTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Resolve[keyof typeof RuneSets.PrimaryTrees.Resolve], string>;
146
+ export declare type ResolveTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Resolve;
147
147
  /**
148
148
  * There are 3 main Rune ID types:
149
149
  * - `RuneId` (all),
@@ -158,7 +158,7 @@ export declare type ResolveTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Res
158
158
  * - `ResolveTreeRuneId`,
159
159
  * - `InspirationTreeRuneId`,
160
160
  */
161
- export declare type InspirationTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Inspiration[keyof typeof RuneSets.PrimaryTrees.Inspiration], string>;
161
+ export declare type InspirationTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Inspiration;
162
162
  export declare type XP = number;
163
163
  export declare type Minute = number;
164
164
  export declare type Position = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM' | 'UTILITY';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "1.0.1",
3
+ "version": "1.1.3",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,10 +11,8 @@
11
11
  ],
12
12
  "scripts": {
13
13
  "clean-build": "rmdir /s /q dist && tsc",
14
- "publish-new-major": "tsc && npm version major && npm publish",
15
- "publish-new-minor": "tsc && npm version minor && npm publish",
16
- "publish-new-patch": "tsc && npm version patch && npm publish",
17
- "generate": "node dist/scripts/generate-all"
14
+ "clean-build-assets": "rmdir /s /q assets && cd srcAssets && tsc",
15
+ "generate": "node assets/scripts/generate-all"
18
16
  },
19
17
  "devDependencies": {
20
18
  "@types/node": "^17.0.42"
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RuneIds = void 0;
4
- exports.RuneIds = { "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", "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,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RuneNames = void 0;
4
- exports.RuneNames = { "5001": "Defense (HP)", "5002": "Defense (AR)", "5003": "Defense (MR)", "5005": "Offense (AS)", "5007": "Offense (AH)", "5008": "Offense (AF)", "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", "5002f": "Flex (AR)", "5003f": "Flex (MR)", "5008f": "Flex (AF)" };
@@ -1,77 +0,0 @@
1
- export declare const PrimaryTrees: {
2
- /**
3
- * There are 13 Precision Runes in the game.
4
- */
5
- readonly Precision: readonly ["8005", "8008", "8021", "8010", "9101", "9111", "8009", "9104", "9105", "9103", "8014", "8017", "8299"];
6
- /**
7
- * There are 13 Domination Runes in the game.
8
- */
9
- readonly Domination: readonly ["8112", "8124", "8128", "9923", "8126", "8139", "8143", "8136", "8138", "8135", "8134", "8105", "8106"];
10
- /**
11
- * There are 12 Sorcery Runes in the game.
12
- */
13
- readonly Sorcery: readonly ["8214", "8229", "8230", "8224", "8226", "8275", "8210", "8234", "8233", "8237", "8232", "8236"];
14
- /**
15
- * There are 11 Resolve Runes in the game.
16
- */
17
- readonly Resolve: readonly ["8437", "8439", "8465", "8446", "8463", "8401", "8429", "8444", "8473", "8451", "8453", "8242"];
18
- /**
19
- * There are 12 Inspiration Runes in the game.
20
- */
21
- readonly Inspiration: readonly ["8351", "8360", "8369", "8306", "8304", "8313", "8321", "8316", "8345", "8347", "8410", "8352"];
22
- };
23
- export declare const SecondaryTrees: {
24
- readonly Precision: readonly ["9101", "9111", "8009", "9104", "9105", "9103", "8014", "8017", "8299"];
25
- readonly Domination: readonly ["8126", "8139", "8143", "8136", "8138", "8135", "8134", "8105", "8106"];
26
- readonly Sorcery: readonly ["8224", "8226", "8275", "8210", "8234", "8233", "8237", "8232", "8236"];
27
- readonly Resolve: readonly ["8446", "8463", "8401", "8429", "8444", "8473", "8451", "8453", "8242"];
28
- readonly Inspiration: readonly ["8306", "8304", "8313", "8321", "8316", "8345", "8347", "8410", "8352"];
29
- };
30
- /**
31
- * There are 17 Keystone Runes in the game.
32
- */
33
- export declare const Keystones: readonly ["8005", "8008", "8021", "8010", "8112", "8124", "8128", "9923", "8214", "8229", "8230", "8437", "8439", "8465", "8351", "8360", "8369"];
34
- /**
35
- * There are 9 Stat Runes in the game.
36
- */
37
- export declare const StatRunes: readonly ["5001", "5002", "5002f", "5003", "5003f", "5005", "5007", "5008", "5008f"];
38
- export declare const All: readonly ["8005", "8008", "8021", "8010", "9101", "9111", "8009", "9104", "9105", "9103", "8014", "8017", "8299", "8112", "8124", "8128", "9923", "8126", "8139", "8143", "8136", "8138", "8135", "8134", "8105", "8106", "8214", "8229", "8230", "8224", "8226", "8275", "8210", "8234", "8233", "8237", "8232", "8236", "8437", "8439", "8465", "8446", "8463", "8401", "8429", "8444", "8473", "8451", "8453", "8242", "8351", "8360", "8369", "8306", "8304", "8313", "8321", "8316", "8345", "8347", "8410", "8352", "5001", "5002", "5002f", "5003", "5003f", "5005", "5007", "5008", "5008f"];
39
- /**
40
- * Contains all Rune IDs
41
- * that are known to man in the game of League of Legends.
42
- * Sorted by various useful categories.
43
- */
44
- export declare const RuneSets: {
45
- readonly PrimaryTrees: {
46
- /**
47
- * There are 13 Precision Runes in the game.
48
- */
49
- readonly Precision: readonly ["8005", "8008", "8021", "8010", "9101", "9111", "8009", "9104", "9105", "9103", "8014", "8017", "8299"];
50
- /**
51
- * There are 13 Domination Runes in the game.
52
- */
53
- readonly Domination: readonly ["8112", "8124", "8128", "9923", "8126", "8139", "8143", "8136", "8138", "8135", "8134", "8105", "8106"];
54
- /**
55
- * There are 12 Sorcery Runes in the game.
56
- */
57
- readonly Sorcery: readonly ["8214", "8229", "8230", "8224", "8226", "8275", "8210", "8234", "8233", "8237", "8232", "8236"];
58
- /**
59
- * There are 11 Resolve Runes in the game.
60
- */
61
- readonly Resolve: readonly ["8437", "8439", "8465", "8446", "8463", "8401", "8429", "8444", "8473", "8451", "8453", "8242"];
62
- /**
63
- * There are 12 Inspiration Runes in the game.
64
- */
65
- readonly Inspiration: readonly ["8351", "8360", "8369", "8306", "8304", "8313", "8321", "8316", "8345", "8347", "8410", "8352"];
66
- };
67
- readonly SecondaryTrees: {
68
- readonly Precision: readonly ["9101", "9111", "8009", "9104", "9105", "9103", "8014", "8017", "8299"];
69
- readonly Domination: readonly ["8126", "8139", "8143", "8136", "8138", "8135", "8134", "8105", "8106"];
70
- readonly Sorcery: readonly ["8224", "8226", "8275", "8210", "8234", "8233", "8237", "8232", "8236"];
71
- readonly Resolve: readonly ["8446", "8463", "8401", "8429", "8444", "8473", "8451", "8453", "8242"];
72
- readonly Inspiration: readonly ["8306", "8304", "8313", "8321", "8316", "8345", "8347", "8410", "8352"];
73
- };
74
- readonly Keystones: readonly ["8005", "8008", "8021", "8010", "8112", "8124", "8128", "9923", "8214", "8229", "8230", "8437", "8439", "8465", "8351", "8360", "8369"];
75
- readonly StatRunes: readonly ["5001", "5002", "5002f", "5003", "5003f", "5005", "5007", "5008", "5008f"];
76
- readonly All: readonly ["8005", "8008", "8021", "8010", "9101", "9111", "8009", "9104", "9105", "9103", "8014", "8017", "8299", "8112", "8124", "8128", "9923", "8126", "8139", "8143", "8136", "8138", "8135", "8134", "8105", "8106", "8214", "8229", "8230", "8224", "8226", "8275", "8210", "8234", "8233", "8237", "8232", "8236", "8437", "8439", "8465", "8446", "8463", "8401", "8429", "8444", "8473", "8451", "8453", "8242", "8351", "8360", "8369", "8306", "8304", "8313", "8321", "8316", "8345", "8347", "8410", "8352", "5001", "5002", "5002f", "5003", "5003f", "5005", "5007", "5008", "5008f"];
77
- };