lol-constants 2.0.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) 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/PlatformIds.d.ts +9 -9
  68. package/core/constants/PlatformIds.js +11 -10
  69. package/core/constants/Regions.d.ts +9 -15
  70. package/core/constants/Regions.js +18 -16
  71. package/core/constants/Runes/RuneIconFileNames.d.ts +1 -1
  72. package/core/constants/Runes/RuneSets.d.ts +2 -0
  73. package/core/constants/Runes/RuneSetsByRuneNames.d.ts +30 -0
  74. package/core/constants/Runes/RuneSetsByRuneNamesNum.d.ts +743 -0
  75. package/core/constants/Runes/RuneSetsByRuneNamesNum.js +14 -0
  76. package/core/constants/Runes/RuneTreeIds.d.ts +1 -1
  77. package/core/constants/Runes/RuneTreeIds.js +1 -1
  78. package/core/constants/Runes/RuneTreeIdsNum.d.ts +11 -0
  79. package/core/constants/Runes/RuneTreeIdsNum.js +19 -0
  80. package/core/constants/Runes/TreeRuneIds.d.ts +15 -0
  81. package/core/constants/Runes/TreeRuneIdsNum.d.ts +66 -0
  82. package/core/constants/Runes/TreeRuneIdsNum.js +4 -0
  83. package/core/constants/Runes/TreeRuneNames.d.ts +1 -0
  84. package/core/constants/Spells/SpellIds.d.ts +1 -0
  85. package/core/constants/Spells/SpellKeys.d.ts +1 -0
  86. package/core/constants/Spells/SpellKeysNum.d.ts +19 -0
  87. package/core/constants/Spells/SpellKeysNum.js +4 -0
  88. package/core/constants/Spells/SpellNames.d.ts +1 -0
  89. package/core/helpers/Champions/getChampionIdByKey.d.ts +2 -1
  90. package/core/helpers/Champions/getChampionIdByName.d.ts +2 -1
  91. package/core/helpers/Champions/getChampionKeyById.d.ts +2 -1
  92. package/core/helpers/Champions/getChampionKeyByName.d.ts +2 -1
  93. package/core/helpers/Champions/getChampionNameById.d.ts +2 -1
  94. package/core/helpers/Champions/getChampionNameByKey.d.ts +2 -1
  95. package/core/helpers/Champions/isChampionId.d.ts +1 -1
  96. package/core/helpers/Champions/isChampionKey.d.ts +1 -1
  97. package/core/helpers/Champions/isChampionName.d.ts +1 -1
  98. package/core/helpers/Items/getItemKeyByName.d.ts +2 -1
  99. package/core/helpers/Items/getItemNameByKey.d.ts +2 -1
  100. package/core/helpers/Items/isBootsItemKey.d.ts +1 -1
  101. package/core/helpers/Items/isBootsItemName.d.ts +1 -1
  102. package/core/helpers/Items/isItemKey.d.ts +1 -1
  103. package/core/helpers/Items/isItemName.d.ts +1 -1
  104. package/core/helpers/Items/isLegendaryItemKey.d.ts +1 -1
  105. package/core/helpers/Items/isLegendaryItemName.d.ts +1 -1
  106. package/core/helpers/Items/isMythicItemKey.d.ts +1 -1
  107. package/core/helpers/Items/isMythicItemName.d.ts +1 -1
  108. package/core/helpers/Runes/getRuneCategoryName.d.ts +2 -1
  109. package/core/helpers/Runes/getRuneCdnUrl.d.ts +1 -1
  110. package/core/helpers/Runes/getRuneIdByName.d.ts +2 -1
  111. package/core/helpers/Runes/getRuneNameById.d.ts +2 -1
  112. package/core/helpers/Runes/getStatRuneIdByName.d.ts +2 -1
  113. package/core/helpers/Runes/getStatRuneNameById.d.ts +2 -1
  114. package/core/helpers/Runes/getTreeRuneIdByName.d.ts +2 -1
  115. package/core/helpers/Runes/getTreeRuneNameById.d.ts +2 -1
  116. package/core/helpers/Runes/isRuneId.d.ts +1 -1
  117. package/core/helpers/Runes/isRuneName.d.ts +1 -1
  118. package/core/helpers/Runes/isStatRuneId.d.ts +1 -1
  119. package/core/helpers/Runes/isStatRuneName.d.ts +1 -1
  120. package/core/helpers/Runes/isTreeRuneId.d.ts +1 -1
  121. package/core/helpers/Runes/isTreeRuneName.d.ts +1 -1
  122. package/core/helpers/Spells/getSpellIdByKey.d.ts +2 -1
  123. package/core/helpers/Spells/getSpellIdByName.d.ts +2 -1
  124. package/core/helpers/Spells/getSpellKeyById.d.ts +2 -1
  125. package/core/helpers/Spells/getSpellKeyByName.d.ts +2 -1
  126. package/core/helpers/Spells/getSpellNameById.d.ts +2 -1
  127. package/core/helpers/Spells/getSpellNameByKey.d.ts +2 -1
  128. package/core/helpers/Spells/isSpellId.d.ts +1 -1
  129. package/core/helpers/Spells/isSpellKey.d.ts +1 -1
  130. package/core/helpers/Spells/isSpellName.d.ts +1 -1
  131. package/core/index.d.ts +9 -0
  132. package/core/index.js +9 -12
  133. package/core/types/types.d.ts +27 -86
  134. package/package.json +1 -1
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const fs_1 = require("fs");
4
3
  const Summoner_1 = require("../constants/Summoner");
5
- const getExportStatement_1 = require("./helpers/getExportStatement");
4
+ const writeToTmpFile_1 = require("./helpers/writeToTmpFile");
6
5
  (async () => {
7
6
  const spellKeys = {};
8
7
  // Add all summoners spell data to each corresponding key value
@@ -13,5 +12,9 @@ const getExportStatement_1 = require("./helpers/getExportStatement");
13
12
  }
14
13
  // Write to file
15
14
  const constName = 'SpellKeys';
16
- (0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, spellKeys));
15
+ (0, writeToTmpFile_1.writeToTmpFile)(constName, {
16
+ constName,
17
+ includeAutoTypeName: true,
18
+ json: spellKeys,
19
+ });
17
20
  })();
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const fs_1 = require("fs");
4
3
  const Summoner_1 = require("../constants/Summoner");
5
- const getExportStatement_1 = require("./helpers/getExportStatement");
4
+ const writeToTmpFile_1 = require("./helpers/writeToTmpFile");
6
5
  (async () => {
7
6
  const spellNames = {};
8
7
  // Add all summoners spell data to each corresponding key value
@@ -13,5 +12,9 @@ const getExportStatement_1 = require("./helpers/getExportStatement");
13
12
  }
14
13
  // Write to file
15
14
  const constName = 'SpellNames';
16
- (0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, spellNames));
15
+ (0, writeToTmpFile_1.writeToTmpFile)(constName, {
16
+ constName,
17
+ includeAutoTypeName: true,
18
+ json: spellNames,
19
+ });
17
20
  })();
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const fs_1 = require("fs");
4
3
  const StatRunes_1 = require("../constants/StatRunes");
5
- const getExportStatement_1 = require("./helpers/getExportStatement");
4
+ const writeToTmpFile_1 = require("./helpers/writeToTmpFile");
5
+ const RuneIdComment_1 = require("./constants/RuneIdComment");
6
6
  (async () => {
7
7
  const runeIds = {};
8
8
  // Add Stat Runes
@@ -13,5 +13,10 @@ const getExportStatement_1 = require("./helpers/getExportStatement");
13
13
  }
14
14
  // Write to file
15
15
  const constName = 'StatRuneIds';
16
- (0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
16
+ (0, writeToTmpFile_1.writeToTmpFile)(constName, {
17
+ constName,
18
+ includeAutoTypeName: true,
19
+ typeComment: RuneIdComment_1.RuneIdComment,
20
+ json: runeIds,
21
+ });
17
22
  })();
@@ -1,17 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const fs_1 = require("fs");
4
3
  const StatRunes_1 = require("../constants/StatRunes");
5
- const getExportStatement_1 = require("./helpers/getExportStatement");
4
+ const writeToTmpFile_1 = require("./helpers/writeToTmpFile");
6
5
  (async () => {
7
- const runeIds = {};
6
+ const runeNames = {};
8
7
  // Add Stat Runes
9
8
  let statRuneId;
10
9
  for (statRuneId in StatRunes_1.StatRunes) {
11
10
  const statRuneName = StatRunes_1.StatRunes[statRuneId];
12
- runeIds[statRuneId] = statRuneName;
11
+ runeNames[statRuneId] = statRuneName;
13
12
  }
14
13
  // Write to file
15
14
  const constName = 'StatRuneNames';
16
- (0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
15
+ (0, writeToTmpFile_1.writeToTmpFile)(constName, {
16
+ constName,
17
+ includeAutoTypeName: true,
18
+ json: runeNames,
19
+ });
17
20
  })();
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const RunesReforged_1 = require("../constants/RunesReforged");
4
+ const writeToTmpFile_1 = require("./helpers/writeToTmpFile");
5
+ (async () => {
6
+ const runeIds = {};
7
+ // Construct the new data and assign it to product object
8
+ for (const runeTree of RunesReforged_1.RunesReforged) {
9
+ for (const { runes } of runeTree.slots) {
10
+ for (const rune of runes) {
11
+ runeIds[rune.name] = rune.id;
12
+ }
13
+ }
14
+ }
15
+ // Write to file
16
+ const constName = 'TreeRuneIdsNum';
17
+ const typeName = 'TreeRuneIdNum';
18
+ (0, writeToTmpFile_1.writeToTmpFile)(constName, {
19
+ constName,
20
+ typeName,
21
+ json: runeIds,
22
+ });
23
+ })();
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const fs_1 = require("fs");
4
3
  const RunesReforged_1 = require("../constants/RunesReforged");
5
- const getExportStatement_1 = require("./helpers/getExportStatement");
4
+ const writeToTmpFile_1 = require("./helpers/writeToTmpFile");
5
+ const RuneIdComment_1 = require("./constants/RuneIdComment");
6
6
  (async () => {
7
7
  const runeIds = {};
8
8
  // Construct the new data and assign it to product object
@@ -15,5 +15,10 @@ const getExportStatement_1 = require("./helpers/getExportStatement");
15
15
  }
16
16
  // Write to file
17
17
  const constName = 'TreeRuneIds';
18
- (0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
18
+ (0, writeToTmpFile_1.writeToTmpFile)(constName, {
19
+ constName,
20
+ includeAutoTypeName: true,
21
+ typeComment: RuneIdComment_1.RuneIdComment,
22
+ json: runeIds,
23
+ });
19
24
  })();
@@ -1,19 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const fs_1 = require("fs");
4
3
  const RunesReforged_1 = require("../constants/RunesReforged");
5
- const getExportStatement_1 = require("./helpers/getExportStatement");
4
+ const writeToTmpFile_1 = require("./helpers/writeToTmpFile");
6
5
  (async () => {
7
- const runeIds = {};
6
+ const runeNames = {};
8
7
  // Construct the new data and assign it to product object
9
8
  for (const runeTree of RunesReforged_1.RunesReforged) {
10
9
  for (const { runes } of runeTree.slots) {
11
10
  for (const rune of runes) {
12
- runeIds[rune.id] = rune.name;
11
+ runeNames[rune.id] = rune.name;
13
12
  }
14
13
  }
15
14
  }
16
15
  // Write to file
17
16
  const constName = 'TreeRuneNames';
18
- (0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
17
+ (0, writeToTmpFile_1.writeToTmpFile)(constName, {
18
+ constName,
19
+ includeAutoTypeName: true,
20
+ json: runeNames,
21
+ });
19
22
  })();
@@ -0,0 +1 @@
1
+ export declare function getComment(commentConstName: string): Promise<string>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getComment = void 0;
4
+ const promises_1 = require("fs/promises");
5
+ async function getComment(commentConstName) {
6
+ return await (0, promises_1.readFile)(`${__dirname}/../constants/${commentConstName}`, { encoding: 'utf-8' });
7
+ }
8
+ exports.getComment = getComment;
@@ -3,4 +3,4 @@
3
3
  */
4
4
  export declare function getExportStatement(constName: string, json: {
5
5
  [k: string]: any;
6
- }, keysToEscape?: (string | number)[], comment?: string): string;
6
+ }, keysToEscape?: (string | number)[], comment?: string, typeName?: string, typeComment?: string, includeAutoTypeName?: boolean): string;
@@ -6,11 +6,36 @@ const getFmtdComment_1 = require("./getFmtdComment");
6
6
  /**
7
7
  * Wraps the provided JSON in a TS export-as-const statement.
8
8
  */
9
- function getExportStatement(constName, json, keysToEscape, comment) {
9
+ function getExportStatement(constName, json, keysToEscape, comment, typeName, typeComment, includeAutoTypeName) {
10
+ let contents = '';
11
+ const auditNewLineChar = (endingSt, startingSt) => {
12
+ if (endingSt.at(-1) != '\n' &&
13
+ startingSt.at(0) != '\n') {
14
+ endingSt += '\n';
15
+ }
16
+ return endingSt;
17
+ };
10
18
  const stringifiedJson = keysToEscape
11
19
  ? (0, enableEscapedValues_1.enableEscapedValues)(json, keysToEscape)
12
20
  : JSON.stringify(json);
13
- const fmtdComment = comment ? (0, getFmtdComment_1.getFmtdComment)(comment) : '';
14
- return fmtdComment + `export const ${constName} = ${stringifiedJson} as const`;
21
+ if (comment) {
22
+ contents += (0, getFmtdComment_1.getFmtdComment)(comment);
23
+ contents += '\n';
24
+ }
25
+ contents += `export const ${constName} = ${stringifiedJson} as const`;
26
+ if (typeComment) {
27
+ contents = auditNewLineChar(contents, typeComment);
28
+ if (typeComment.includes('/**'))
29
+ contents += typeComment;
30
+ else
31
+ contents += (0, getFmtdComment_1.getFmtdComment)(typeComment);
32
+ }
33
+ if (typeName || includeAutoTypeName) {
34
+ contents = auditNewLineChar(contents, '');
35
+ if (includeAutoTypeName)
36
+ typeName = constName.slice(0, -1);
37
+ contents += `export type ${typeName} = typeof ${constName}[keyof typeof ${constName}]`;
38
+ }
39
+ return contents;
15
40
  }
16
41
  exports.getExportStatement = getExportStatement;
@@ -9,7 +9,7 @@ function getFmtdComment(comment) {
9
9
  let st = '';
10
10
  st += '/**\n';
11
11
  st += ' * ' + comment + '\n';
12
- st += ' */\n';
12
+ st += ' */';
13
13
  return st;
14
14
  }
15
15
  exports.getFmtdComment = getFmtdComment;
@@ -0,0 +1 @@
1
+ export declare function validateNumber(value: any, debugVariableLabel: string): number;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateNumber = void 0;
4
+ function validateNumber(value, debugVariableLabel) {
5
+ let num = parseInt(value);
6
+ if (Number.isNaN(num))
7
+ throw `${debugVariableLabel} was NaN`;
8
+ return num;
9
+ }
10
+ exports.validateNumber = validateNumber;
@@ -4,5 +4,8 @@ export declare function writeToTmpFile(mainConstName: string, ...constants: {
4
4
  json: {
5
5
  [k: string]: any;
6
6
  };
7
+ typeName?: string;
8
+ typeComment?: string;
9
+ includeAutoTypeName?: boolean;
7
10
  keysToEscape?: (string | number)[];
8
11
  }[]): Promise<void>;
@@ -5,8 +5,8 @@ const fs_1 = require("fs");
5
5
  const getExportStatement_1 = require("./getExportStatement");
6
6
  function writeToTmpFile(mainConstName, ...constants) {
7
7
  return new Promise((res, rej) => {
8
- const exportStatements = constants.reduce((finalSt, { constName, comment, json, keysToEscape, }, i) => {
9
- let exportStatement = (0, getExportStatement_1.getExportStatement)(constName, json, keysToEscape, comment);
8
+ const exportStatements = constants.reduce((finalSt, { constName, comment, json, keysToEscape, typeName, typeComment, includeAutoTypeName, }, i) => {
9
+ let exportStatement = (0, getExportStatement_1.getExportStatement)(constName, json, keysToEscape, comment, typeName, typeComment, includeAutoTypeName);
10
10
  return (finalSt
11
11
  + exportStatement
12
12
  // On last statement, provide only a single empty ending line
@@ -163,3 +163,4 @@ export declare const ChampionIds: {
163
163
  readonly "897": "KSante";
164
164
  readonly "902": "Milio";
165
165
  };
166
+ export type ChampionId = typeof ChampionIds[keyof typeof ChampionIds];
@@ -163,3 +163,4 @@ export declare const ChampionKeys: {
163
163
  readonly Zoe: "142";
164
164
  readonly Zyra: "143";
165
165
  };
166
+ export type ChampionKey = typeof ChampionKeys[keyof typeof ChampionKeys];
@@ -0,0 +1,166 @@
1
+ export declare const ChampionKeysNum: {
2
+ readonly Aatrox: 266;
3
+ readonly Ahri: 103;
4
+ readonly Akali: 84;
5
+ readonly Akshan: 166;
6
+ readonly Alistar: 12;
7
+ readonly Amumu: 32;
8
+ readonly Anivia: 34;
9
+ readonly Annie: 1;
10
+ readonly Aphelios: 523;
11
+ readonly Ashe: 22;
12
+ readonly AurelionSol: 136;
13
+ readonly Azir: 268;
14
+ readonly Bard: 432;
15
+ readonly Belveth: 200;
16
+ readonly Blitzcrank: 53;
17
+ readonly Brand: 63;
18
+ readonly Braum: 201;
19
+ readonly Caitlyn: 51;
20
+ readonly Camille: 164;
21
+ readonly Cassiopeia: 69;
22
+ readonly Chogath: 31;
23
+ readonly Corki: 42;
24
+ readonly Darius: 122;
25
+ readonly Diana: 131;
26
+ readonly Draven: 119;
27
+ readonly DrMundo: 36;
28
+ readonly Ekko: 245;
29
+ readonly Elise: 60;
30
+ readonly Evelynn: 28;
31
+ readonly Ezreal: 81;
32
+ readonly Fiddlesticks: 9;
33
+ readonly Fiora: 114;
34
+ readonly Fizz: 105;
35
+ readonly Galio: 3;
36
+ readonly Gangplank: 41;
37
+ readonly Garen: 86;
38
+ readonly Gnar: 150;
39
+ readonly Gragas: 79;
40
+ readonly Graves: 104;
41
+ readonly Gwen: 887;
42
+ readonly Hecarim: 120;
43
+ readonly Heimerdinger: 74;
44
+ readonly Illaoi: 420;
45
+ readonly Irelia: 39;
46
+ readonly Ivern: 427;
47
+ readonly Janna: 40;
48
+ readonly JarvanIV: 59;
49
+ readonly Jax: 24;
50
+ readonly Jayce: 126;
51
+ readonly Jhin: 202;
52
+ readonly Jinx: 222;
53
+ readonly Kaisa: 145;
54
+ readonly Kalista: 429;
55
+ readonly Karma: 43;
56
+ readonly Karthus: 30;
57
+ readonly Kassadin: 38;
58
+ readonly Katarina: 55;
59
+ readonly Kayle: 10;
60
+ readonly Kayn: 141;
61
+ readonly Kennen: 85;
62
+ readonly Khazix: 121;
63
+ readonly Kindred: 203;
64
+ readonly Kled: 240;
65
+ readonly KogMaw: 96;
66
+ readonly KSante: 897;
67
+ readonly Leblanc: 7;
68
+ readonly LeeSin: 64;
69
+ readonly Leona: 89;
70
+ readonly Lillia: 876;
71
+ readonly Lissandra: 127;
72
+ readonly Lucian: 236;
73
+ readonly Lulu: 117;
74
+ readonly Lux: 99;
75
+ readonly Malphite: 54;
76
+ readonly Malzahar: 90;
77
+ readonly Maokai: 57;
78
+ readonly MasterYi: 11;
79
+ readonly Milio: 902;
80
+ readonly MissFortune: 21;
81
+ readonly MonkeyKing: 62;
82
+ readonly Mordekaiser: 82;
83
+ readonly Morgana: 25;
84
+ readonly Nami: 267;
85
+ readonly Nasus: 75;
86
+ readonly Nautilus: 111;
87
+ readonly Neeko: 518;
88
+ readonly Nidalee: 76;
89
+ readonly Nilah: 895;
90
+ readonly Nocturne: 56;
91
+ readonly Nunu: 20;
92
+ readonly Olaf: 2;
93
+ readonly Orianna: 61;
94
+ readonly Ornn: 516;
95
+ readonly Pantheon: 80;
96
+ readonly Poppy: 78;
97
+ readonly Pyke: 555;
98
+ readonly Qiyana: 246;
99
+ readonly Quinn: 133;
100
+ readonly Rakan: 497;
101
+ readonly Rammus: 33;
102
+ readonly RekSai: 421;
103
+ readonly Rell: 526;
104
+ readonly Renata: 888;
105
+ readonly Renekton: 58;
106
+ readonly Rengar: 107;
107
+ readonly Riven: 92;
108
+ readonly Rumble: 68;
109
+ readonly Ryze: 13;
110
+ readonly Samira: 360;
111
+ readonly Sejuani: 113;
112
+ readonly Senna: 235;
113
+ readonly Seraphine: 147;
114
+ readonly Sett: 875;
115
+ readonly Shaco: 35;
116
+ readonly Shen: 98;
117
+ readonly Shyvana: 102;
118
+ readonly Singed: 27;
119
+ readonly Sion: 14;
120
+ readonly Sivir: 15;
121
+ readonly Skarner: 72;
122
+ readonly Sona: 37;
123
+ readonly Soraka: 16;
124
+ readonly Swain: 50;
125
+ readonly Sylas: 517;
126
+ readonly Syndra: 134;
127
+ readonly TahmKench: 223;
128
+ readonly Taliyah: 163;
129
+ readonly Talon: 91;
130
+ readonly Taric: 44;
131
+ readonly Teemo: 17;
132
+ readonly Thresh: 412;
133
+ readonly Tristana: 18;
134
+ readonly Trundle: 48;
135
+ readonly Tryndamere: 23;
136
+ readonly TwistedFate: 4;
137
+ readonly Twitch: 29;
138
+ readonly Udyr: 77;
139
+ readonly Urgot: 6;
140
+ readonly Varus: 110;
141
+ readonly Vayne: 67;
142
+ readonly Veigar: 45;
143
+ readonly Velkoz: 161;
144
+ readonly Vex: 711;
145
+ readonly Vi: 254;
146
+ readonly Viego: 234;
147
+ readonly Viktor: 112;
148
+ readonly Vladimir: 8;
149
+ readonly Volibear: 106;
150
+ readonly Warwick: 19;
151
+ readonly Xayah: 498;
152
+ readonly Xerath: 101;
153
+ readonly XinZhao: 5;
154
+ readonly Yasuo: 157;
155
+ readonly Yone: 777;
156
+ readonly Yorick: 83;
157
+ readonly Yuumi: 350;
158
+ readonly Zac: 154;
159
+ readonly Zed: 238;
160
+ readonly Zeri: 221;
161
+ readonly Ziggs: 115;
162
+ readonly Zilean: 26;
163
+ readonly Zoe: 142;
164
+ readonly Zyra: 143;
165
+ };
166
+ export type ChampionKeyNum = typeof ChampionKeysNum[keyof typeof ChampionKeysNum];
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChampionKeysNum = void 0;
4
+ exports.ChampionKeysNum = { "Aatrox": 266, "Ahri": 103, "Akali": 84, "Akshan": 166, "Alistar": 12, "Amumu": 32, "Anivia": 34, "Annie": 1, "Aphelios": 523, "Ashe": 22, "AurelionSol": 136, "Azir": 268, "Bard": 432, "Belveth": 200, "Blitzcrank": 53, "Brand": 63, "Braum": 201, "Caitlyn": 51, "Camille": 164, "Cassiopeia": 69, "Chogath": 31, "Corki": 42, "Darius": 122, "Diana": 131, "Draven": 119, "DrMundo": 36, "Ekko": 245, "Elise": 60, "Evelynn": 28, "Ezreal": 81, "Fiddlesticks": 9, "Fiora": 114, "Fizz": 105, "Galio": 3, "Gangplank": 41, "Garen": 86, "Gnar": 150, "Gragas": 79, "Graves": 104, "Gwen": 887, "Hecarim": 120, "Heimerdinger": 74, "Illaoi": 420, "Irelia": 39, "Ivern": 427, "Janna": 40, "JarvanIV": 59, "Jax": 24, "Jayce": 126, "Jhin": 202, "Jinx": 222, "Kaisa": 145, "Kalista": 429, "Karma": 43, "Karthus": 30, "Kassadin": 38, "Katarina": 55, "Kayle": 10, "Kayn": 141, "Kennen": 85, "Khazix": 121, "Kindred": 203, "Kled": 240, "KogMaw": 96, "KSante": 897, "Leblanc": 7, "LeeSin": 64, "Leona": 89, "Lillia": 876, "Lissandra": 127, "Lucian": 236, "Lulu": 117, "Lux": 99, "Malphite": 54, "Malzahar": 90, "Maokai": 57, "MasterYi": 11, "Milio": 902, "MissFortune": 21, "MonkeyKing": 62, "Mordekaiser": 82, "Morgana": 25, "Nami": 267, "Nasus": 75, "Nautilus": 111, "Neeko": 518, "Nidalee": 76, "Nilah": 895, "Nocturne": 56, "Nunu": 20, "Olaf": 2, "Orianna": 61, "Ornn": 516, "Pantheon": 80, "Poppy": 78, "Pyke": 555, "Qiyana": 246, "Quinn": 133, "Rakan": 497, "Rammus": 33, "RekSai": 421, "Rell": 526, "Renata": 888, "Renekton": 58, "Rengar": 107, "Riven": 92, "Rumble": 68, "Ryze": 13, "Samira": 360, "Sejuani": 113, "Senna": 235, "Seraphine": 147, "Sett": 875, "Shaco": 35, "Shen": 98, "Shyvana": 102, "Singed": 27, "Sion": 14, "Sivir": 15, "Skarner": 72, "Sona": 37, "Soraka": 16, "Swain": 50, "Sylas": 517, "Syndra": 134, "TahmKench": 223, "Taliyah": 163, "Talon": 91, "Taric": 44, "Teemo": 17, "Thresh": 412, "Tristana": 18, "Trundle": 48, "Tryndamere": 23, "TwistedFate": 4, "Twitch": 29, "Udyr": 77, "Urgot": 6, "Varus": 110, "Vayne": 67, "Veigar": 45, "Velkoz": 161, "Vex": 711, "Vi": 254, "Viego": 234, "Viktor": 112, "Vladimir": 8, "Volibear": 106, "Warwick": 19, "Xayah": 498, "Xerath": 101, "XinZhao": 5, "Yasuo": 157, "Yone": 777, "Yorick": 83, "Yuumi": 350, "Zac": 154, "Zed": 238, "Zeri": 221, "Ziggs": 115, "Zilean": 26, "Zoe": 142, "Zyra": 143 };
@@ -163,3 +163,4 @@ export declare const ChampionNames: {
163
163
  readonly "897": "K'Sante";
164
164
  readonly "902": "Milio";
165
165
  };
166
+ export type ChampionName = typeof ChampionNames[keyof typeof ChampionNames];
@@ -9,3 +9,4 @@ export declare const BootsItemKeys: {
9
9
  readonly "Sorcerer's Shoes": "3020";
10
10
  readonly "Slightly Magical Footwear": "2422";
11
11
  };
12
+ export type BootsItemKey = typeof BootsItemKeys[keyof typeof BootsItemKeys];
@@ -0,0 +1,12 @@
1
+ export declare const BootsItemKeysNum: {
2
+ readonly Boots: 1001;
3
+ readonly "Berserker's Greaves": 3006;
4
+ readonly "Boots of Swiftness": 3009;
5
+ readonly "Ionian Boots of Lucidity": 3158;
6
+ readonly "Mercury's Treads": 3111;
7
+ readonly "Mobility Boots": 3117;
8
+ readonly "Plated Steelcaps": 3047;
9
+ readonly "Sorcerer's Shoes": 3020;
10
+ readonly "Slightly Magical Footwear": 2422;
11
+ };
12
+ export type BootsItemKeyNum = typeof BootsItemKeysNum[keyof typeof BootsItemKeysNum];
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BootsItemKeysNum = void 0;
4
+ exports.BootsItemKeysNum = { "Boots": 1001, "Berserker's Greaves": 3006, "Boots of Swiftness": 3009, "Ionian Boots of Lucidity": 3158, "Mercury's Treads": 3111, "Mobility Boots": 3117, "Plated Steelcaps": 3047, "Sorcerer's Shoes": 3020, "Slightly Magical Footwear": 2422 };
@@ -9,3 +9,4 @@ export declare const BootsItemNames: {
9
9
  readonly "3117": "Mobility Boots";
10
10
  readonly "3158": "Ionian Boots of Lucidity";
11
11
  };
12
+ export type BootsItemName = typeof BootsItemNames[keyof typeof BootsItemNames];
@@ -261,3 +261,4 @@ export declare const ItemKeys: {
261
261
  readonly "Anathema's Chains": "8001";
262
262
  readonly "Abyssal Mask": "8020";
263
263
  };
264
+ export type ItemKey = typeof ItemKeys[keyof typeof ItemKeys];