lol-constants 0.10.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. package/{dist/Constants → assets}/StatRunes.d.ts +0 -0
  2. package/{dist/Constants → assets}/StatRunes.js +0 -0
  3. package/assets/champion.json +1 -0
  4. package/assets/index.d.ts +17216 -0
  5. package/assets/index.js +17 -0
  6. package/assets/item.json +1 -0
  7. package/assets/runesReforged.json +1 -0
  8. package/assets/scripts/Helpers/getExportStatement.d.ts +6 -0
  9. package/assets/scripts/Helpers/getExportStatement.js +10 -0
  10. package/assets/scripts/generate-all.d.ts +16 -0
  11. package/assets/scripts/generate-all.js +18 -0
  12. package/{dist/scripts/generate-all.d.ts → assets/scripts/generate-champion-ids-by-name.d.ts} +0 -0
  13. package/assets/scripts/generate-champion-ids-by-name.js +20 -0
  14. package/assets/scripts/generate-champion-ids.d.ts +1 -0
  15. package/assets/scripts/generate-champion-ids.js +20 -0
  16. package/assets/scripts/generate-champion-keys.d.ts +1 -0
  17. package/assets/scripts/generate-champion-keys.js +20 -0
  18. package/assets/scripts/generate-champion-names.d.ts +1 -0
  19. package/assets/scripts/generate-champion-names.js +20 -0
  20. package/assets/scripts/generate-item-keys.d.ts +1 -0
  21. package/assets/scripts/generate-item-keys.js +21 -0
  22. package/assets/scripts/generate-item-names.d.ts +1 -0
  23. package/assets/scripts/generate-item-names.js +21 -0
  24. package/assets/scripts/generate-rune-ids.d.ts +1 -0
  25. package/assets/scripts/generate-rune-ids.js +29 -0
  26. package/assets/scripts/generate-rune-names.d.ts +1 -0
  27. package/assets/scripts/generate-rune-names.js +29 -0
  28. package/assets/scripts/generate-spell-ids-by-name.d.ts +1 -0
  29. package/assets/scripts/generate-spell-ids-by-name.js +20 -0
  30. package/assets/scripts/generate-spell-ids.d.ts +1 -0
  31. package/assets/scripts/generate-spell-ids.js +20 -0
  32. package/assets/scripts/generate-spell-keys.d.ts +1 -0
  33. package/assets/scripts/generate-spell-keys.js +20 -0
  34. package/assets/scripts/generate-spell-names.d.ts +1 -0
  35. package/assets/scripts/generate-spell-names.js +20 -0
  36. package/assets/scripts/generate-stat-rune-ids.d.ts +1 -0
  37. package/assets/scripts/generate-stat-rune-ids.js +20 -0
  38. package/assets/scripts/generate-stat-rune-names.d.ts +1 -0
  39. package/assets/scripts/generate-stat-rune-names.js +20 -0
  40. package/assets/scripts/generate-tree-rune-ids.d.ts +1 -0
  41. package/{dist/Helpers/generateRunesById.js → assets/scripts/generate-tree-rune-ids.js} +8 -8
  42. package/assets/scripts/generate-tree-rune-names.d.ts +1 -0
  43. package/{dist/Helpers/generateRunesByName.js → assets/scripts/generate-tree-rune-names.js} +8 -8
  44. package/{dist/assets → assets}/summoner.json +1 -1
  45. package/dist/Constants/ChampionIds.d.ts +162 -0
  46. package/dist/Constants/ChampionIds.js +4 -0
  47. package/dist/Constants/ChampionIdsByName.d.ts +162 -0
  48. package/dist/Constants/ChampionIdsByName.js +4 -0
  49. package/dist/Constants/ChampionKeys.d.ts +162 -2
  50. package/dist/Constants/ChampionKeys.js +1 -5
  51. package/dist/Constants/ChampionNames.d.ts +162 -2
  52. package/dist/Constants/ChampionNames.js +1 -5
  53. package/dist/Constants/DDPaths.d.ts +24 -6
  54. package/dist/Constants/DDPaths.js +26 -8
  55. package/dist/Constants/ItemKeys.d.ts +250 -2
  56. package/dist/Constants/ItemKeys.js +1 -5
  57. package/dist/Constants/ItemNames.d.ts +256 -2
  58. package/dist/Constants/ItemNames.js +1 -5
  59. package/dist/Constants/RuneIds.d.ts +74 -2
  60. package/dist/Constants/RuneIds.js +1 -9
  61. package/dist/Constants/RuneNames.d.ts +74 -2
  62. package/dist/Constants/RuneNames.js +1 -5
  63. package/dist/Constants/RuneSets.d.ts +34 -0
  64. package/dist/Constants/RuneSets.js +15 -15
  65. package/dist/Constants/SpellIds.d.ts +18 -0
  66. package/dist/Constants/SpellIds.js +4 -0
  67. package/dist/Constants/SpellIdsByName.d.ts +17 -0
  68. package/dist/Constants/SpellIdsByName.js +4 -0
  69. package/dist/Constants/SpellKeys.d.ts +18 -0
  70. package/dist/Constants/SpellKeys.js +4 -0
  71. package/dist/Constants/SpellNames.d.ts +18 -0
  72. package/dist/Constants/SpellNames.js +4 -0
  73. package/dist/Constants/StatRuneIds.d.ts +11 -2
  74. package/dist/Constants/StatRuneIds.js +1 -2
  75. package/dist/Constants/StatRuneNames.d.ts +11 -2
  76. package/dist/Constants/StatRuneNames.js +1 -2
  77. package/dist/Constants/TreeRuneIds.d.ts +65 -2
  78. package/dist/Constants/TreeRuneIds.js +1 -5
  79. package/dist/Constants/TreeRuneNames.d.ts +65 -2
  80. package/dist/Constants/TreeRuneNames.js +1 -5
  81. package/dist/Helpers/getChampionIdByKey.d.ts +2 -0
  82. package/dist/Helpers/getChampionIdByKey.js +8 -0
  83. package/dist/Helpers/getChampionIdByName.d.ts +2 -0
  84. package/dist/Helpers/getChampionIdByName.js +8 -0
  85. package/dist/Helpers/getChampionKeyById.d.ts +2 -0
  86. package/dist/Helpers/getChampionKeyById.js +8 -0
  87. package/dist/Helpers/getChampionKeyByName.js +3 -5
  88. package/dist/Helpers/getChampionNameById.d.ts +2 -0
  89. package/dist/Helpers/getChampionNameById.js +9 -0
  90. package/dist/Helpers/getChampionNameByKey.js +2 -5
  91. package/dist/Helpers/getItemKeyByName.js +2 -5
  92. package/dist/Helpers/getItemNameByKey.js +2 -5
  93. package/dist/Helpers/getRuneIdByName.js +2 -17
  94. package/dist/Helpers/getRuneNameById.js +2 -9
  95. package/dist/Helpers/getSpellIdByKey.d.ts +2 -0
  96. package/dist/Helpers/getSpellIdByKey.js +8 -0
  97. package/dist/Helpers/getSpellIdByName.d.ts +2 -0
  98. package/dist/Helpers/getSpellIdByName.js +8 -0
  99. package/dist/Helpers/getSpellKeyById.d.ts +2 -0
  100. package/dist/Helpers/getSpellKeyById.js +8 -0
  101. package/dist/Helpers/getSpellKeyByName.d.ts +2 -0
  102. package/dist/Helpers/getSpellKeyByName.js +9 -0
  103. package/dist/Helpers/getSpellNameById.d.ts +2 -0
  104. package/dist/Helpers/getSpellNameById.js +9 -0
  105. package/dist/Helpers/getSpellNameByKey.d.ts +2 -0
  106. package/dist/Helpers/getSpellNameByKey.js +8 -0
  107. package/dist/Helpers/getStatRuneIdByName.d.ts +2 -0
  108. package/dist/Helpers/getStatRuneIdByName.js +8 -0
  109. package/dist/Helpers/getStatRuneNameById.d.ts +2 -0
  110. package/dist/Helpers/getStatRuneNameById.js +8 -0
  111. package/dist/Helpers/getTreeRuneIdByName.d.ts +2 -0
  112. package/dist/Helpers/getTreeRuneIdByName.js +8 -0
  113. package/dist/Helpers/getTreeRuneNameById.d.ts +2 -0
  114. package/dist/Helpers/getTreeRuneNameById.js +8 -0
  115. package/dist/Helpers/isChampionId.d.ts +2 -0
  116. package/dist/Helpers/isChampionId.js +8 -0
  117. package/dist/Helpers/isChampionKey.d.ts +1 -1
  118. package/dist/Helpers/isChampionKey.js +2 -4
  119. package/dist/Helpers/isChampionName.d.ts +1 -1
  120. package/dist/Helpers/isChampionName.js +2 -4
  121. package/dist/Helpers/isItemKey.d.ts +1 -1
  122. package/dist/Helpers/isItemKey.js +2 -4
  123. package/dist/Helpers/isItemName.d.ts +1 -1
  124. package/dist/Helpers/isItemName.js +2 -4
  125. package/dist/Helpers/isRuneId.d.ts +1 -1
  126. package/dist/Helpers/isRuneId.js +2 -4
  127. package/dist/Helpers/isRuneName.d.ts +1 -1
  128. package/dist/Helpers/isRuneName.js +2 -4
  129. package/dist/Helpers/isSpellId.d.ts +2 -0
  130. package/dist/Helpers/isSpellId.js +8 -0
  131. package/dist/Helpers/isSpellKey.d.ts +2 -0
  132. package/dist/Helpers/isSpellKey.js +8 -0
  133. package/dist/Helpers/isSpellName.d.ts +2 -0
  134. package/dist/Helpers/isSpellName.js +8 -0
  135. package/dist/Helpers/isStatRuneId.d.ts +1 -1
  136. package/dist/Helpers/isStatRuneId.js +2 -4
  137. package/dist/Helpers/isStatRuneName.d.ts +1 -1
  138. package/dist/Helpers/isStatRuneName.js +2 -4
  139. package/dist/Helpers/isTreeRuneId.d.ts +1 -1
  140. package/dist/Helpers/isTreeRuneId.js +2 -4
  141. package/dist/Helpers/isTreeRuneName.d.ts +1 -1
  142. package/dist/Helpers/isTreeRuneName.js +2 -4
  143. package/dist/index.d.ts +24 -43394
  144. package/dist/index.js +74 -48
  145. package/dist/types/index.d.ts +28 -23
  146. package/package.json +4 -3
  147. package/dist/Constants/SummonerIds.d.ts +0 -2
  148. package/dist/Constants/SummonerIds.js +0 -8
  149. package/dist/Constants/SummonerKeys.d.ts +0 -2
  150. package/dist/Constants/SummonerKeys.js +0 -8
  151. package/dist/Constants/SummonerNames.d.ts +0 -2
  152. package/dist/Constants/SummonerNames.js +0 -8
  153. package/dist/Constants/SummonerSpellIds.d.ts +0 -2
  154. package/dist/Constants/SummonerSpellIds.js +0 -8
  155. package/dist/Constants/SummonerSpellKeys.d.ts +0 -2
  156. package/dist/Constants/SummonerSpellKeys.js +0 -8
  157. package/dist/Constants/SummonerSpellNames.d.ts +0 -2
  158. package/dist/Constants/SummonerSpellNames.js +0 -8
  159. package/dist/Helpers/generateChampionsByKey.d.ts +0 -1
  160. package/dist/Helpers/generateChampionsByKey.js +0 -25
  161. package/dist/Helpers/generateChampionsByName.d.ts +0 -1
  162. package/dist/Helpers/generateChampionsByName.js +0 -25
  163. package/dist/Helpers/generateItemsByName.d.ts +0 -1
  164. package/dist/Helpers/generateItemsByName.js +0 -30
  165. package/dist/Helpers/generateRunesById.d.ts +0 -1
  166. package/dist/Helpers/generateRunesByName.d.ts +0 -1
  167. package/dist/Helpers/generateSummonerSpellsByKey.d.ts +0 -1
  168. package/dist/Helpers/generateSummonerSpellsByKey.js +0 -27
  169. package/dist/Helpers/generateSummonerSpellsByName.d.ts +0 -1
  170. package/dist/Helpers/generateSummonerSpellsByName.js +0 -27
  171. package/dist/Helpers/generateSummonersByKey.d.ts +0 -1
  172. package/dist/Helpers/generateSummonersByKey.js +0 -24
  173. package/dist/Helpers/generateSummonersByName.d.ts +0 -1
  174. package/dist/Helpers/generateSummonersByName.js +0 -24
  175. package/dist/Helpers/getSummonerSpellKeyByName.d.ts +0 -2
  176. package/dist/Helpers/getSummonerSpellKeyByName.js +0 -11
  177. package/dist/Helpers/getSummonerSpellNameByKey.d.ts +0 -2
  178. package/dist/Helpers/getSummonerSpellNameByKey.js +0 -11
  179. package/dist/Helpers/isSummonerId.d.ts +0 -2
  180. package/dist/Helpers/isSummonerId.js +0 -10
  181. package/dist/Helpers/isSummonerKey.d.ts +0 -2
  182. package/dist/Helpers/isSummonerKey.js +0 -10
  183. package/dist/Helpers/isSummonerName.d.ts +0 -2
  184. package/dist/Helpers/isSummonerName.js +0 -10
  185. package/dist/Helpers/isSummonerSpellId.d.ts +0 -2
  186. package/dist/Helpers/isSummonerSpellId.js +0 -10
  187. package/dist/Helpers/isSummonerSpellKey.d.ts +0 -2
  188. package/dist/Helpers/isSummonerSpellKey.js +0 -10
  189. package/dist/Helpers/isSummonerSpellName.d.ts +0 -2
  190. package/dist/Helpers/isSummonerSpellName.js +0 -10
  191. package/dist/assets/champion.json +0 -1
  192. package/dist/assets/item.json +0 -1
  193. package/dist/assets/runesReforged.json +0 -1
  194. package/dist/generated/championByKey.json +0 -1
  195. package/dist/generated/championByName.json +0 -1
  196. package/dist/generated/itemByKey.json +0 -1
  197. package/dist/generated/itemByName.json +0 -1
  198. package/dist/generated/runesById.json +0 -1
  199. package/dist/generated/runesByName.json +0 -1
  200. package/dist/generated/summonerByKey.json +0 -1
  201. package/dist/generated/summonerByName.json +0 -1
  202. package/dist/scripts/generate-all.js +0 -19
@@ -1,11 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getSummonerSpellNameByKey = void 0;
7
- const summonerByKey_json_1 = __importDefault(require("../generated/summonerByKey.json"));
8
- function getSummonerSpellNameByKey(key) {
9
- return summonerByKey_json_1.default.data[key].name;
10
- }
11
- exports.getSummonerSpellNameByKey = getSummonerSpellNameByKey;
@@ -1,2 +0,0 @@
1
- import { SummonerId } from '../types';
2
- export declare function isSummonerId(id: any): id is SummonerId;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSummonerId = void 0;
4
- const SummonerIds_1 = require("../Constants/SummonerIds");
5
- function isSummonerId(id) {
6
- if (SummonerIds_1.SummonerIds.includes(id))
7
- return true;
8
- return false;
9
- }
10
- exports.isSummonerId = isSummonerId;
@@ -1,2 +0,0 @@
1
- import { SummonerKey } from '../types';
2
- export declare function isSummonerKey(key: any): key is SummonerKey;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSummonerKey = void 0;
4
- const SummonerKeys_1 = require("../Constants/SummonerKeys");
5
- function isSummonerKey(key) {
6
- if (SummonerKeys_1.SummonerKeys.includes(key))
7
- return true;
8
- return false;
9
- }
10
- exports.isSummonerKey = isSummonerKey;
@@ -1,2 +0,0 @@
1
- import { SummonerName } from '../types';
2
- export declare function isSummonerName(name: any): name is SummonerName;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSummonerName = void 0;
4
- const SummonerNames_1 = require("../Constants/SummonerNames");
5
- function isSummonerName(name) {
6
- if (SummonerNames_1.SummonerNames.includes(name))
7
- return true;
8
- return false;
9
- }
10
- exports.isSummonerName = isSummonerName;
@@ -1,2 +0,0 @@
1
- import { SummonerSpellId } from '../types';
2
- export declare function isSummonerSpellId(id: any): id is SummonerSpellId;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSummonerSpellId = void 0;
4
- const SummonerSpellIds_1 = require("../Constants/SummonerSpellIds");
5
- function isSummonerSpellId(id) {
6
- if (SummonerSpellIds_1.SummonerSpellIds.includes(id))
7
- return true;
8
- return false;
9
- }
10
- exports.isSummonerSpellId = isSummonerSpellId;
@@ -1,2 +0,0 @@
1
- import { SummonerSpellKey } from '../types';
2
- export declare function isSummonerSpellKey(key: any): key is SummonerSpellKey;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSummonerSpellKey = void 0;
4
- const SummonerSpellKeys_1 = require("../Constants/SummonerSpellKeys");
5
- function isSummonerSpellKey(key) {
6
- if (SummonerSpellKeys_1.SummonerSpellKeys.includes(key))
7
- return true;
8
- return false;
9
- }
10
- exports.isSummonerSpellKey = isSummonerSpellKey;
@@ -1,2 +0,0 @@
1
- import { SummonerSpellName } from '../types';
2
- export declare function isSummonerSpellName(name: any): name is SummonerSpellName;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSummonerSpellName = void 0;
4
- const SummonerSpellNames_1 = require("../Constants/SummonerSpellNames");
5
- function isSummonerSpellName(name) {
6
- if (SummonerSpellNames_1.SummonerSpellNames.includes(name))
7
- return true;
8
- return false;
9
- }
10
- exports.isSummonerSpellName = isSummonerSpellName;