lol-constants 1.6.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/assets/BootsItemNames.d.ts +1 -0
  2. package/assets/BootsItemNames.js +14 -0
  3. package/assets/LegendaryItemNames.d.ts +1 -0
  4. package/assets/LegendaryItemNames.js +77 -0
  5. package/assets/MythicItemNames.d.ts +1 -0
  6. package/assets/MythicItemNames.js +30 -0
  7. package/assets/index.d.ts +4 -17216
  8. package/assets/index.js +9 -11
  9. package/assets/scripts/generate-all.d.ts +2 -0
  10. package/assets/scripts/generate-all.js +2 -0
  11. package/assets/scripts/generate-categorized-item-keys.d.ts +1 -0
  12. package/assets/scripts/generate-categorized-item-keys.js +60 -0
  13. package/assets/scripts/generate-categorized-item-names.d.ts +1 -0
  14. package/assets/scripts/generate-categorized-item-names.js +60 -0
  15. package/dist/Constants/Items/BootsItemKeys.d.ts +11 -0
  16. package/dist/Constants/Items/BootsItemKeys.js +4 -0
  17. package/dist/Constants/Items/BootsItemNames.d.ts +11 -0
  18. package/dist/Constants/Items/BootsItemNames.js +4 -0
  19. package/dist/Constants/Items/LegendaryItemKeys.d.ts +74 -0
  20. package/dist/Constants/Items/LegendaryItemKeys.js +4 -0
  21. package/dist/Constants/Items/LegendaryItemNames.d.ts +74 -0
  22. package/dist/Constants/Items/LegendaryItemNames.js +4 -0
  23. package/dist/Constants/Items/MythicItemKeys.d.ts +27 -0
  24. package/dist/Constants/Items/MythicItemKeys.js +4 -0
  25. package/dist/Constants/Items/MythicItemNames.d.ts +27 -0
  26. package/dist/Constants/Items/MythicItemNames.js +4 -0
  27. package/dist/Helpers/Items/isBootsItemKey.d.ts +2 -0
  28. package/dist/Helpers/Items/isBootsItemKey.js +8 -0
  29. package/dist/Helpers/Items/isBootsItemName.d.ts +2 -0
  30. package/dist/Helpers/Items/isBootsItemName.js +8 -0
  31. package/dist/Helpers/Items/isLegendaryItemKey.d.ts +2 -0
  32. package/dist/Helpers/Items/isLegendaryItemKey.js +8 -0
  33. package/dist/Helpers/Items/isLegendaryItemName.d.ts +2 -0
  34. package/dist/Helpers/Items/isLegendaryItemName.js +8 -0
  35. package/dist/Helpers/Items/isMythicItemKey.d.ts +2 -0
  36. package/dist/Helpers/Items/isMythicItemKey.js +8 -0
  37. package/dist/Helpers/Items/isMythicItemName.d.ts +2 -0
  38. package/dist/Helpers/Items/isMythicItemName.js +8 -0
  39. package/dist/index.d.ts +12 -0
  40. package/dist/index.js +26 -2
  41. package/dist/types/index.d.ts +14 -2
  42. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.isItemName = exports.isItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = exports.getChampionNameByKey = exports.getChampionNameById = exports.getChampionKeyByName = exports.getChampionKeyById = exports.getChampionIdByName = exports.getChampionIdByKey = exports.isSkill = exports.isPosition = exports.isLevel = exports.isLane = exports.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.TreeRuneNames = exports.TreeRuneIds = exports.RuneTreeNames = exports.RuneTreeIds = exports.RuneSetsByRuneNames = exports.StatRuneHSetsByRuneNames = exports.RuneTreeHSetsByRuneNames = exports.RuneIds = exports.StatRuneIds = exports.KeystoneIds = exports.SecondaryRuneTreesByRuneNames = exports.PrimaryRuneTreesByRuneNames = exports.RuneSets = exports.StatRuneHSets = exports.RuneTreeHSets = exports.RuneNames = exports.StatRuneNames = exports.KeystoneNames = exports.SecondaryRuneTrees = exports.PrimaryRuneTrees = exports.RunePickingRelationships = exports.RuneIconFileNames = 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 = exports.getSpellIdByName = exports.getSpellIdByKey = exports.isTreeRuneName = exports.isTreeRuneId = exports.isStatRuneName = exports.isStatRuneId = exports.isSorceryTreeRuneId = exports.isRuneTreeName = exports.isRuneTreeId = exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneTreeNameById = exports.getRuneTreeIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getRuneCDNURL = exports.getRuneCategoryByRuneName = void 0;
17
+ exports.isChampionId = exports.getChampionNameByKey = exports.getChampionNameById = exports.getChampionKeyByName = exports.getChampionKeyById = exports.getChampionIdByName = exports.getChampionIdByKey = exports.isSkill = exports.isPosition = exports.isLevel = exports.isLane = exports.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.TreeRuneNames = exports.TreeRuneIds = exports.RuneTreeNames = exports.RuneTreeIds = exports.RuneSetsByRuneNames = exports.StatRuneHSetsByRuneNames = exports.RuneTreeHSetsByRuneNames = exports.RuneIds = exports.StatRuneIds = exports.KeystoneIds = exports.SecondaryRuneTreesByRuneNames = exports.PrimaryRuneTreesByRuneNames = exports.RuneSets = exports.StatRuneHSets = exports.RuneTreeHSets = exports.RuneNames = exports.StatRuneNames = exports.KeystoneNames = exports.SecondaryRuneTrees = exports.PrimaryRuneTrees = exports.RunePickingRelationships = exports.RuneIconFileNames = exports.MythicItemNames = exports.MythicItemKeys = exports.LegendaryItemNames = exports.LegendaryItemKeys = exports.ItemNames = exports.ItemKeys = exports.BootsItemNames = exports.BootsItemKeys = 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 = exports.getSpellIdByName = exports.getSpellIdByKey = exports.isTreeRuneName = exports.isTreeRuneId = exports.isStatRuneName = exports.isStatRuneId = exports.isSorceryTreeRuneId = exports.isRuneTreeName = exports.isRuneTreeId = exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneTreeNameById = exports.getRuneTreeIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getRuneCDNURL = exports.getRuneCategoryByRuneName = exports.isMythicItemName = exports.isMythicItemKey = exports.isLegendaryItemName = exports.isLegendaryItemKey = exports.isItemName = exports.isItemKey = exports.isBootsItemName = exports.isBootsItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = void 0;
19
19
  // # Constants
20
20
  var DDPaths_1 = require("./Constants/DDPaths");
21
21
  Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
@@ -29,10 +29,22 @@ Object.defineProperty(exports, "ChampionKeys", { enumerable: true, get: function
29
29
  var ChampionNames_1 = require("./Constants/Champions/ChampionNames");
30
30
  Object.defineProperty(exports, "ChampionNames", { enumerable: true, get: function () { return ChampionNames_1.ChampionNames; } });
31
31
  // ## Items
32
+ var BootsItemKeys_1 = require("./Constants/Items/BootsItemKeys");
33
+ Object.defineProperty(exports, "BootsItemKeys", { enumerable: true, get: function () { return BootsItemKeys_1.BootsItemKeys; } });
34
+ var BootsItemNames_1 = require("./Constants/Items/BootsItemNames");
35
+ Object.defineProperty(exports, "BootsItemNames", { enumerable: true, get: function () { return BootsItemNames_1.BootsItemNames; } });
32
36
  var ItemKeys_1 = require("./Constants/Items/ItemKeys");
33
37
  Object.defineProperty(exports, "ItemKeys", { enumerable: true, get: function () { return ItemKeys_1.ItemKeys; } });
34
38
  var ItemNames_1 = require("./Constants/Items/ItemNames");
35
39
  Object.defineProperty(exports, "ItemNames", { enumerable: true, get: function () { return ItemNames_1.ItemNames; } });
40
+ var LegendaryItemKeys_1 = require("./Constants/Items/LegendaryItemKeys");
41
+ Object.defineProperty(exports, "LegendaryItemKeys", { enumerable: true, get: function () { return LegendaryItemKeys_1.LegendaryItemKeys; } });
42
+ var LegendaryItemNames_1 = require("./Constants/Items/LegendaryItemNames");
43
+ Object.defineProperty(exports, "LegendaryItemNames", { enumerable: true, get: function () { return LegendaryItemNames_1.LegendaryItemNames; } });
44
+ var MythicItemKeys_1 = require("./Constants/Items/MythicItemKeys");
45
+ Object.defineProperty(exports, "MythicItemKeys", { enumerable: true, get: function () { return MythicItemKeys_1.MythicItemKeys; } });
46
+ var MythicItemNames_1 = require("./Constants/Items/MythicItemNames");
47
+ Object.defineProperty(exports, "MythicItemNames", { enumerable: true, get: function () { return MythicItemNames_1.MythicItemNames; } });
36
48
  // ## Runes
37
49
  var RuneIconFileNames_1 = require("./Constants/Runes/RuneIconFileNames");
38
50
  Object.defineProperty(exports, "RuneIconFileNames", { enumerable: true, get: function () { return RuneIconFileNames_1.RuneIconFileNames; } });
@@ -106,10 +118,22 @@ var getItemKeyByName_1 = require("./Helpers/Items/getItemKeyByName");
106
118
  Object.defineProperty(exports, "getItemKeyByName", { enumerable: true, get: function () { return getItemKeyByName_1.getItemKeyByName; } });
107
119
  var getItemNameByKey_1 = require("./Helpers/Items/getItemNameByKey");
108
120
  Object.defineProperty(exports, "getItemNameByKey", { enumerable: true, get: function () { return getItemNameByKey_1.getItemNameByKey; } });
121
+ var isBootsItemKey_1 = require("./Helpers/Items/isBootsItemKey");
122
+ Object.defineProperty(exports, "isBootsItemKey", { enumerable: true, get: function () { return isBootsItemKey_1.isBootsItemKey; } });
123
+ var isBootsItemName_1 = require("./Helpers/Items/isBootsItemName");
124
+ Object.defineProperty(exports, "isBootsItemName", { enumerable: true, get: function () { return isBootsItemName_1.isBootsItemName; } });
109
125
  var isItemKey_1 = require("./Helpers/Items/isItemKey");
110
126
  Object.defineProperty(exports, "isItemKey", { enumerable: true, get: function () { return isItemKey_1.isItemKey; } });
111
127
  var isItemName_1 = require("./Helpers/Items/isItemName");
112
128
  Object.defineProperty(exports, "isItemName", { enumerable: true, get: function () { return isItemName_1.isItemName; } });
129
+ var isLegendaryItemKey_1 = require("./Helpers/Items/isLegendaryItemKey");
130
+ Object.defineProperty(exports, "isLegendaryItemKey", { enumerable: true, get: function () { return isLegendaryItemKey_1.isLegendaryItemKey; } });
131
+ var isLegendaryItemName_1 = require("./Helpers/Items/isLegendaryItemName");
132
+ Object.defineProperty(exports, "isLegendaryItemName", { enumerable: true, get: function () { return isLegendaryItemName_1.isLegendaryItemName; } });
133
+ var isMythicItemKey_1 = require("./Helpers/Items/isMythicItemKey");
134
+ Object.defineProperty(exports, "isMythicItemKey", { enumerable: true, get: function () { return isMythicItemKey_1.isMythicItemKey; } });
135
+ var isMythicItemName_1 = require("./Helpers/Items/isMythicItemName");
136
+ Object.defineProperty(exports, "isMythicItemName", { enumerable: true, get: function () { return isMythicItemName_1.isMythicItemName; } });
113
137
  // ## Runes
114
138
  var getRuneCategoryByRuneName_1 = require("./Helpers/Runes/getRuneCategoryByRuneName");
115
139
  Object.defineProperty(exports, "getRuneCategoryByRuneName", { enumerable: true, get: function () { return getRuneCategoryByRuneName_1.getRuneCategoryByRuneName; } });
@@ -17,14 +17,26 @@ import { Levels } from '../Constants/Levels';
17
17
  import { Skills } from '../Constants/Skills';
18
18
  import { RuneTreeIds } from '../Constants/Runes/RuneTreeIds';
19
19
  import { RuneIds, RuneSetsByRuneNames, StatRuneIds } from '../Constants/Runes/RuneSetsByRuneNames';
20
+ import { MythicItemNames } from '../Constants/Items/MythicItemNames';
21
+ import { MythicItemKeys } from '../Constants/Items/MythicItemKeys';
22
+ import { LegendaryItemNames } from '../Constants/Items/LegendaryItemNames';
23
+ import { LegendaryItemKeys } from '../Constants/Items/LegendaryItemKeys';
24
+ import { BootsItemNames } from '../Constants/Items/BootsItemNames';
25
+ import { BootsItemKeys } from '../Constants/Items/BootsItemKeys';
20
26
  export declare type ChampionId = typeof ChampionIds[keyof typeof ChampionIds];
21
27
  export declare type ChampionKey = typeof ChampionKeys[keyof typeof ChampionKeys];
22
28
  export declare type ChampionName = typeof ChampionNames[keyof typeof ChampionNames];
23
- export declare type ItemKey = typeof ItemKeys[keyof typeof ItemKeys];
24
- export declare type ItemName = typeof ItemNames[keyof typeof ItemNames];
25
29
  export declare type SpellId = typeof SpellIds[keyof typeof SpellIds];
26
30
  export declare type SpellKey = typeof SpellKeys[keyof typeof SpellKeys];
27
31
  export declare type SpellName = typeof SpellNames[keyof typeof SpellNames];
32
+ export declare type ItemKey = typeof ItemKeys[keyof typeof ItemKeys];
33
+ export declare type ItemName = typeof ItemNames[keyof typeof ItemNames];
34
+ export declare type MythicItemKey = keyof typeof MythicItemNames;
35
+ export declare type MythicItemName = keyof typeof MythicItemKeys;
36
+ export declare type LegendaryItemKey = keyof typeof LegendaryItemNames;
37
+ export declare type LegendaryItemName = keyof typeof LegendaryItemKeys;
38
+ export declare type BootsItemKey = keyof typeof BootsItemNames;
39
+ export declare type BootsItemName = keyof typeof BootsItemKeys;
28
40
  /**
29
41
  * There are 3 main Rune ID types:
30
42
  * - `RuneId` (all),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "1.6.1",
3
+ "version": "1.8.0",
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",