lol-constants 0.6.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. package/dist/Constants/ChampionKeys.d.ts +2 -0
  2. package/dist/Constants/ChampionKeys.js +8 -0
  3. package/dist/Constants/ChampionNames.d.ts +2 -0
  4. package/dist/Constants/ChampionNames.js +8 -0
  5. package/dist/Constants/ItemKeys.d.ts +2 -0
  6. package/dist/Constants/ItemKeys.js +8 -0
  7. package/dist/Constants/ItemNames.d.ts +2 -0
  8. package/dist/Constants/ItemNames.js +8 -0
  9. package/dist/Constants/RuneIds.d.ts +2 -0
  10. package/dist/Constants/RuneIds.js +12 -0
  11. package/dist/Constants/RuneNames.d.ts +2 -0
  12. package/dist/Constants/RuneNames.js +8 -0
  13. package/dist/Constants/StatRuneIds.d.ts +2 -0
  14. package/dist/Constants/StatRuneIds.js +5 -0
  15. package/dist/Constants/StatRuneNames.d.ts +2 -0
  16. package/dist/Constants/StatRuneNames.js +5 -0
  17. package/dist/Constants/StatRunes.d.ts +9 -9
  18. package/dist/Constants/StatRunes.js +9 -9
  19. package/dist/Constants/SummonerIds.d.ts +2 -0
  20. package/dist/Constants/SummonerIds.js +8 -0
  21. package/dist/Constants/SummonerKeys.d.ts +2 -0
  22. package/dist/Constants/SummonerKeys.js +8 -0
  23. package/dist/Constants/SummonerNames.d.ts +2 -0
  24. package/dist/Constants/SummonerNames.js +8 -0
  25. package/dist/Constants/SummonerSpellIds.d.ts +2 -0
  26. package/dist/Constants/SummonerSpellIds.js +8 -0
  27. package/dist/Constants/SummonerSpellKeys.d.ts +2 -0
  28. package/dist/Constants/SummonerSpellKeys.js +8 -0
  29. package/dist/Constants/SummonerSpellNames.d.ts +2 -0
  30. package/dist/Constants/SummonerSpellNames.js +8 -0
  31. package/dist/Constants/TreeRuneIds.d.ts +2 -0
  32. package/dist/Constants/TreeRuneIds.js +8 -0
  33. package/dist/Constants/TreeRuneNames.d.ts +2 -0
  34. package/dist/Constants/TreeRuneNames.js +8 -0
  35. package/dist/Helpers/generateItemsByName.js +4 -4
  36. package/dist/Helpers/generateSummonerSpellsByKey.d.ts +1 -0
  37. package/dist/Helpers/generateSummonerSpellsByKey.js +24 -0
  38. package/dist/Helpers/generateSummonerSpellsByName.d.ts +1 -0
  39. package/dist/Helpers/generateSummonerSpellsByName.js +24 -0
  40. package/dist/Helpers/isChampionKey.d.ts +2 -0
  41. package/dist/Helpers/isChampionKey.js +10 -0
  42. package/dist/Helpers/isChampionName.d.ts +2 -0
  43. package/dist/Helpers/isChampionName.js +10 -0
  44. package/dist/Helpers/isItemKey.d.ts +2 -0
  45. package/dist/Helpers/isItemKey.js +10 -0
  46. package/dist/Helpers/isItemName.d.ts +2 -0
  47. package/dist/Helpers/isItemName.js +10 -0
  48. package/dist/Helpers/isRuneId.d.ts +2 -0
  49. package/dist/Helpers/isRuneId.js +10 -0
  50. package/dist/Helpers/isRuneName.d.ts +2 -0
  51. package/dist/Helpers/isRuneName.js +10 -0
  52. package/dist/Helpers/isSummonerId.d.ts +2 -0
  53. package/dist/Helpers/isSummonerId.js +10 -0
  54. package/dist/Helpers/isSummonerKey.d.ts +2 -0
  55. package/dist/Helpers/isSummonerKey.js +10 -0
  56. package/dist/Helpers/isSummonerName.d.ts +2 -0
  57. package/dist/Helpers/isSummonerName.js +10 -0
  58. package/dist/Helpers/isSummonerSpellId.d.ts +2 -0
  59. package/dist/Helpers/isSummonerSpellId.js +10 -0
  60. package/dist/Helpers/isSummonerSpellKey.d.ts +2 -0
  61. package/dist/Helpers/isSummonerSpellKey.js +10 -0
  62. package/dist/Helpers/isSummonerSpellName.d.ts +2 -0
  63. package/dist/Helpers/isSummonerSpellName.js +10 -0
  64. package/dist/generated/itemByName.json +1 -0
  65. package/dist/index.d.ts +24 -1
  66. package/dist/index.js +49 -3
  67. package/dist/scripts/generate-all.js +4 -4
  68. package/dist/types/index.d.ts +10 -6
  69. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -17225,7 +17225,21 @@ export declare const summoner: {
17225
17225
  };
17226
17226
  };
17227
17227
  };
17228
+ export { ChampionKeys } from './Constants/ChampionKeys';
17229
+ export { ChampionNames } from './Constants/ChampionNames';
17228
17230
  export { DDPaths } from './Constants/DDPaths';
17231
+ export { ItemKeys } from './Constants/ItemKeys';
17232
+ export { ItemNames } from './Constants/ItemNames';
17233
+ export { RuneIds } from './Constants/RuneIds';
17234
+ export { RuneNames } from './Constants/RuneNames';
17235
+ export { StatRuneIds } from './Constants/StatRuneIds';
17236
+ export { StatRuneNames } from './Constants/StatRuneNames';
17237
+ export { StatRunes } from './Constants/StatRunes';
17238
+ export { SummonerSpellIds } from './Constants/SummonerSpellIds';
17239
+ export { SummonerSpellKeys } from './Constants/SummonerSpellKeys';
17240
+ export { SummonerSpellNames } from './Constants/SummonerSpellNames';
17241
+ export { TreeRuneIds } from './Constants/TreeRuneIds';
17242
+ export { TreeRuneNames } from './Constants/TreeRuneNames';
17229
17243
  export declare const championByKey: {
17230
17244
  data: {
17231
17245
  "1": {
@@ -32276,7 +32290,7 @@ export declare const championByName: {
32276
32290
  };
32277
32291
  version: string;
32278
32292
  };
32279
- export declare const itemByKey: {
32293
+ export declare const itemByName: {
32280
32294
  data: {
32281
32295
  Boots: {
32282
32296
  name: string;
@@ -43383,5 +43397,14 @@ export declare const summonerByName: {
43383
43397
  };
43384
43398
  version: string;
43385
43399
  };
43400
+ export { isChampionKey } from './Helpers/isChampionKey';
43401
+ export { isChampionName } from './Helpers/isChampionName';
43402
+ export { isItemKey } from './Helpers/isItemKey';
43403
+ export { isItemName } from './Helpers/isItemName';
43404
+ export { isRuneId } from './Helpers/isRuneId';
43405
+ export { isRuneName } from './Helpers/isRuneName';
43406
+ export { isSummonerSpellId } from './Helpers/isSummonerSpellId';
43407
+ export { isSummonerSpellKey } from './Helpers/isSummonerSpellKey';
43408
+ export { isSummonerSpellName } from './Helpers/isSummonerSpellName';
43386
43409
  export * from './types';
43387
43410
  export * from './types/Meta';
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.summonerByName = exports.summonerByKey = exports.runesByName = exports.runesById = exports.itemByKey = exports.championByName = exports.championByKey = exports.DDPaths = exports.summoner = exports.runesReforged = exports.item = exports.champion = void 0;
20
+ exports.isSummonerSpellName = exports.isSummonerSpellKey = exports.isSummonerSpellId = exports.isRuneName = exports.isRuneId = exports.isItemName = exports.isItemKey = exports.isChampionName = exports.isChampionKey = exports.summonerByName = exports.summonerByKey = exports.runesByName = exports.runesById = exports.itemByName = exports.championByName = exports.championByKey = exports.TreeRuneNames = exports.TreeRuneIds = exports.SummonerSpellNames = exports.SummonerSpellKeys = exports.SummonerSpellIds = exports.StatRunes = exports.StatRuneNames = exports.StatRuneIds = exports.RuneNames = exports.RuneIds = exports.ItemNames = exports.ItemKeys = exports.DDPaths = exports.ChampionNames = exports.ChampionKeys = exports.summoner = exports.runesReforged = exports.item = exports.champion = void 0;
21
21
  const champion_json_1 = __importDefault(require("./assets/champion.json"));
22
22
  const item_json_1 = __importDefault(require("./assets/item.json"));
23
23
  const runesReforged_json_1 = __importDefault(require("./assets/runesReforged.json"));
@@ -26,21 +26,67 @@ exports.champion = champion_json_1.default;
26
26
  exports.item = item_json_1.default;
27
27
  exports.runesReforged = runesReforged_json_1.default;
28
28
  exports.summoner = summoner_json_1.default;
29
+ var ChampionKeys_1 = require("./Constants/ChampionKeys");
30
+ Object.defineProperty(exports, "ChampionKeys", { enumerable: true, get: function () { return ChampionKeys_1.ChampionKeys; } });
31
+ var ChampionNames_1 = require("./Constants/ChampionNames");
32
+ Object.defineProperty(exports, "ChampionNames", { enumerable: true, get: function () { return ChampionNames_1.ChampionNames; } });
29
33
  var DDPaths_1 = require("./Constants/DDPaths");
30
34
  Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
35
+ var ItemKeys_1 = require("./Constants/ItemKeys");
36
+ Object.defineProperty(exports, "ItemKeys", { enumerable: true, get: function () { return ItemKeys_1.ItemKeys; } });
37
+ var ItemNames_1 = require("./Constants/ItemNames");
38
+ Object.defineProperty(exports, "ItemNames", { enumerable: true, get: function () { return ItemNames_1.ItemNames; } });
39
+ var RuneIds_1 = require("./Constants/RuneIds");
40
+ Object.defineProperty(exports, "RuneIds", { enumerable: true, get: function () { return RuneIds_1.RuneIds; } });
41
+ var RuneNames_1 = require("./Constants/RuneNames");
42
+ Object.defineProperty(exports, "RuneNames", { enumerable: true, get: function () { return RuneNames_1.RuneNames; } });
43
+ var StatRuneIds_1 = require("./Constants/StatRuneIds");
44
+ Object.defineProperty(exports, "StatRuneIds", { enumerable: true, get: function () { return StatRuneIds_1.StatRuneIds; } });
45
+ var StatRuneNames_1 = require("./Constants/StatRuneNames");
46
+ Object.defineProperty(exports, "StatRuneNames", { enumerable: true, get: function () { return StatRuneNames_1.StatRuneNames; } });
47
+ var StatRunes_1 = require("./Constants/StatRunes");
48
+ Object.defineProperty(exports, "StatRunes", { enumerable: true, get: function () { return StatRunes_1.StatRunes; } });
49
+ var SummonerSpellIds_1 = require("./Constants/SummonerSpellIds");
50
+ Object.defineProperty(exports, "SummonerSpellIds", { enumerable: true, get: function () { return SummonerSpellIds_1.SummonerSpellIds; } });
51
+ var SummonerSpellKeys_1 = require("./Constants/SummonerSpellKeys");
52
+ Object.defineProperty(exports, "SummonerSpellKeys", { enumerable: true, get: function () { return SummonerSpellKeys_1.SummonerSpellKeys; } });
53
+ var SummonerSpellNames_1 = require("./Constants/SummonerSpellNames");
54
+ Object.defineProperty(exports, "SummonerSpellNames", { enumerable: true, get: function () { return SummonerSpellNames_1.SummonerSpellNames; } });
55
+ var TreeRuneIds_1 = require("./Constants/TreeRuneIds");
56
+ Object.defineProperty(exports, "TreeRuneIds", { enumerable: true, get: function () { return TreeRuneIds_1.TreeRuneIds; } });
57
+ var TreeRuneNames_1 = require("./Constants/TreeRuneNames");
58
+ Object.defineProperty(exports, "TreeRuneNames", { enumerable: true, get: function () { return TreeRuneNames_1.TreeRuneNames; } });
31
59
  const championByKey_json_1 = __importDefault(require("./generated/championByKey.json"));
32
60
  const championByName_json_1 = __importDefault(require("./generated/championByName.json"));
33
- const itemByKey_json_1 = __importDefault(require("./generated/itemByKey.json"));
61
+ const itemByName_json_1 = __importDefault(require("./generated/itemByName.json"));
34
62
  const runesById_json_1 = __importDefault(require("./generated/runesById.json"));
35
63
  const runesByName_json_1 = __importDefault(require("./generated/runesByName.json"));
36
64
  const summonerByKey_json_1 = __importDefault(require("./generated/summonerByKey.json"));
37
65
  const summonerByName_json_1 = __importDefault(require("./generated/summonerByName.json"));
38
66
  exports.championByKey = championByKey_json_1.default;
39
67
  exports.championByName = championByName_json_1.default;
40
- exports.itemByKey = itemByKey_json_1.default;
68
+ exports.itemByName = itemByName_json_1.default;
41
69
  exports.runesById = runesById_json_1.default;
42
70
  exports.runesByName = runesByName_json_1.default;
43
71
  exports.summonerByKey = summonerByKey_json_1.default;
44
72
  exports.summonerByName = summonerByName_json_1.default;
73
+ var isChampionKey_1 = require("./Helpers/isChampionKey");
74
+ Object.defineProperty(exports, "isChampionKey", { enumerable: true, get: function () { return isChampionKey_1.isChampionKey; } });
75
+ var isChampionName_1 = require("./Helpers/isChampionName");
76
+ Object.defineProperty(exports, "isChampionName", { enumerable: true, get: function () { return isChampionName_1.isChampionName; } });
77
+ var isItemKey_1 = require("./Helpers/isItemKey");
78
+ Object.defineProperty(exports, "isItemKey", { enumerable: true, get: function () { return isItemKey_1.isItemKey; } });
79
+ var isItemName_1 = require("./Helpers/isItemName");
80
+ Object.defineProperty(exports, "isItemName", { enumerable: true, get: function () { return isItemName_1.isItemName; } });
81
+ var isRuneId_1 = require("./Helpers/isRuneId");
82
+ Object.defineProperty(exports, "isRuneId", { enumerable: true, get: function () { return isRuneId_1.isRuneId; } });
83
+ var isRuneName_1 = require("./Helpers/isRuneName");
84
+ Object.defineProperty(exports, "isRuneName", { enumerable: true, get: function () { return isRuneName_1.isRuneName; } });
85
+ var isSummonerSpellId_1 = require("./Helpers/isSummonerSpellId");
86
+ Object.defineProperty(exports, "isSummonerSpellId", { enumerable: true, get: function () { return isSummonerSpellId_1.isSummonerSpellId; } });
87
+ var isSummonerSpellKey_1 = require("./Helpers/isSummonerSpellKey");
88
+ Object.defineProperty(exports, "isSummonerSpellKey", { enumerable: true, get: function () { return isSummonerSpellKey_1.isSummonerSpellKey; } });
89
+ var isSummonerSpellName_1 = require("./Helpers/isSummonerSpellName");
90
+ Object.defineProperty(exports, "isSummonerSpellName", { enumerable: true, get: function () { return isSummonerSpellName_1.isSummonerSpellName; } });
45
91
  __exportStar(require("./types"), exports);
46
92
  __exportStar(require("./types/Meta"), exports);
@@ -5,15 +5,15 @@ const generateChampionsByName_1 = require("../Helpers/generateChampionsByName");
5
5
  const generateItemsByName_1 = require("../Helpers/generateItemsByName");
6
6
  const generateRunesById_1 = require("../Helpers/generateRunesById");
7
7
  const generateRunesByName_1 = require("../Helpers/generateRunesByName");
8
- const generateSummonersByKey_1 = require("../Helpers/generateSummonersByKey");
9
- const generateSummonersByName_1 = require("../Helpers/generateSummonersByName");
8
+ const generateSummonerSpellsByKey_1 = require("../Helpers/generateSummonerSpellsByKey");
9
+ const generateSummonerSpellsByName_1 = require("../Helpers/generateSummonerSpellsByName");
10
10
  const generateJSONs = () => {
11
11
  (0, generateChampionsByKey_1.generateChampionsByKey)();
12
12
  (0, generateChampionsByName_1.generateChampionsByName)();
13
13
  (0, generateItemsByName_1.generateItemsByName)();
14
14
  (0, generateRunesById_1.generateRunesById)();
15
15
  (0, generateRunesByName_1.generateRunesByName)();
16
- (0, generateSummonersByKey_1.generateSummonersByKey)();
17
- (0, generateSummonersByName_1.generateSummonersByName)();
16
+ (0, generateSummonerSpellsByKey_1.generateSummonerSpellsByKey)();
17
+ (0, generateSummonerSpellsByName_1.generateSummonerSpellsByName)();
18
18
  };
19
19
  generateJSONs();
@@ -1,7 +1,7 @@
1
1
  import championByKey from '../generated/championByKey.json';
2
2
  import championByName from '../generated/championByName.json';
3
3
  import item from '../assets/item.json';
4
- import itemByName from '../generated/itemByKey.json';
4
+ import itemByName from '../generated/itemByName.json';
5
5
  import summoner from '../assets/summoner.json';
6
6
  import summonerByKey from '../generated/summonerByKey.json';
7
7
  import summonerByName from '../generated/summonerByName.json';
@@ -12,11 +12,15 @@ export declare type ChampionKey = keyof typeof championByKey.data;
12
12
  export declare type ChampionName = keyof typeof championByName.data;
13
13
  export declare type ItemKey = keyof typeof item.data;
14
14
  export declare type ItemName = keyof typeof itemByName.data;
15
- export declare type SummonerId = keyof typeof summoner.data;
16
- export declare type SummonerKey = keyof typeof summonerByKey.data;
17
- export declare type SummonerName = keyof typeof summonerByName.data;
18
- export declare type RuneId = keyof typeof runesById | keyof typeof StatRunes;
19
- export declare type RuneName = keyof typeof runesByName;
15
+ export declare type SummonerSpellId = keyof typeof summoner.data;
16
+ export declare type SummonerSpellKey = keyof typeof summonerByKey.data;
17
+ export declare type SummonerSpellName = keyof typeof summonerByName.data;
18
+ export declare type RuneId = TreeRuneId | StatRuneId;
19
+ export declare type RuneName = TreeRuneName | StatRuneName;
20
+ export declare type TreeRuneId = keyof typeof runesById;
21
+ export declare type TreeRuneName = keyof typeof runesByName;
22
+ export declare type StatRuneId = keyof typeof StatRunes;
23
+ export declare type StatRuneName = typeof StatRunes[keyof typeof StatRunes];
20
24
  export declare type XP = number;
21
25
  export declare type Minute = number;
22
26
  export declare type TPosition = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM' | 'UTILITY';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "0.6.0",
4
- "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner.",
3
+ "version": "0.9.0",
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",
7
7
  "license": "MIT",