lol-constants 2.3.1 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. package/README.md +17 -0
  2. package/assets/constants/BootsItemNames.d.ts +1 -1
  3. package/assets/constants/BootsItemNames.js +1 -1
  4. package/assets/constants/Champion.d.ts +164 -164
  5. package/assets/constants/Champion.js +1 -1
  6. package/assets/constants/Item.d.ts +1051 -647
  7. package/assets/constants/Item.js +1 -1
  8. package/assets/constants/LegendaryItemNames.d.ts +1 -1
  9. package/assets/constants/LegendaryItemNames.js +4 -4
  10. package/assets/constants/MythicItemNames.d.ts +1 -1
  11. package/assets/constants/MythicItemNames.js +34 -3
  12. package/assets/constants/RunesReforged.d.ts +1 -1
  13. package/assets/constants/RunesReforged.js +1 -1
  14. package/assets/constants/Summoner.d.ts +2 -2
  15. package/assets/constants/Summoner.js +1 -1
  16. package/assets/scripts/constants/RuneIdComment.d.ts +1 -1
  17. package/assets/scripts/constants/RuneIdComment.js +14 -6
  18. package/assets/scripts/generate-all.d.ts +3 -3
  19. package/assets/scripts/generate-all.js +3 -3
  20. package/assets/scripts/generate-non-stat-rune-ids-num.d.ts +1 -0
  21. package/assets/scripts/generate-non-stat-rune-ids-num.js +23 -0
  22. package/assets/scripts/generate-non-stat-rune-ids.d.ts +1 -0
  23. package/assets/scripts/generate-non-stat-rune-ids.js +24 -0
  24. package/assets/scripts/generate-non-stat-rune-names.d.ts +1 -0
  25. package/assets/scripts/generate-non-stat-rune-names.js +22 -0
  26. package/assets/scripts/generate-rune-sets-by-rune-names-num.js +16 -11
  27. package/assets/scripts/generate-rune-sets-by-rune-names.js +11 -11
  28. package/assets/scripts/generate-rune-sets.js +11 -11
  29. package/core/constants/Continents.d.ts +8 -0
  30. package/core/constants/Continents.js +13 -0
  31. package/core/constants/DataDragonUrls.d.ts +11 -0
  32. package/core/constants/DataDragonUrls.js +14 -2
  33. package/core/constants/Items/ItemKeys.d.ts +10 -0
  34. package/core/constants/Items/ItemKeys.js +1 -1
  35. package/core/constants/Items/ItemKeysNum.d.ts +10 -0
  36. package/core/constants/Items/ItemKeysNum.js +1 -1
  37. package/core/constants/Items/ItemNames.d.ts +10 -0
  38. package/core/constants/Items/ItemNames.js +1 -1
  39. package/core/constants/Items/LegendaryItemKeys.d.ts +4 -4
  40. package/core/constants/Items/LegendaryItemKeys.js +1 -1
  41. package/core/constants/Items/LegendaryItemKeysNum.d.ts +4 -4
  42. package/core/constants/Items/LegendaryItemKeysNum.js +1 -1
  43. package/core/constants/Items/LegendaryItemNames.d.ts +4 -4
  44. package/core/constants/Items/LegendaryItemNames.js +1 -1
  45. package/core/constants/Items/MythicItemKeys.d.ts +33 -3
  46. package/core/constants/Items/MythicItemKeys.js +1 -1
  47. package/core/constants/Items/MythicItemKeysNum.d.ts +33 -3
  48. package/core/constants/Items/MythicItemKeysNum.js +1 -1
  49. package/core/constants/Items/MythicItemNames.d.ts +33 -3
  50. package/core/constants/Items/MythicItemNames.js +1 -1
  51. package/core/constants/Locales.d.ts +29 -1
  52. package/core/constants/Locales.js +29 -1
  53. package/core/constants/MapIds.d.ts +17 -0
  54. package/core/constants/MapIds.js +22 -0
  55. package/core/constants/ParticipantIds.d.ts +14 -0
  56. package/core/constants/ParticipantIds.js +19 -0
  57. package/core/constants/PlatformApiUris.d.ts +20 -0
  58. package/core/constants/PlatformApiUris.js +25 -0
  59. package/core/constants/PlatformIds.d.ts +8 -0
  60. package/core/constants/PlatformIds.js +11 -1
  61. package/core/constants/QueueIds.d.ts +56 -0
  62. package/core/constants/QueueIds.js +61 -0
  63. package/core/constants/RegionalApiUris.d.ts +8 -0
  64. package/core/constants/RegionalApiUris.js +13 -0
  65. package/core/constants/Regions.d.ts +8 -0
  66. package/core/constants/Regions.js +11 -8
  67. package/core/constants/Runes/NonStatRuneIds.d.ts +88 -0
  68. package/core/constants/Runes/NonStatRuneIds.js +4 -0
  69. package/core/constants/Runes/NonStatRuneIdsNum.d.ts +66 -0
  70. package/core/constants/Runes/NonStatRuneIdsNum.js +4 -0
  71. package/core/constants/Runes/NonStatRuneNames.d.ts +66 -0
  72. package/core/constants/Runes/NonStatRuneNames.js +4 -0
  73. package/core/constants/Runes/RuneSets.d.ts +2 -2
  74. package/core/constants/Runes/RuneSets.js +3 -3
  75. package/core/constants/Runes/RuneSetsByRuneNames.d.ts +30 -14
  76. package/core/constants/Runes/RuneSetsByRuneNames.js +3 -3
  77. package/core/constants/Runes/RuneSetsByRuneNamesNum.d.ts +48 -2
  78. package/core/constants/Runes/RuneSetsByRuneNamesNum.js +3 -3
  79. package/core/constants/Runes/TreeRuneIds.d.ts +5 -5
  80. package/core/constants/SkillSlots.d.ts +1 -1
  81. package/core/constants/SkillSlots.js +1 -1
  82. package/core/constants/TeamIds.d.ts +6 -0
  83. package/core/constants/TeamIds.js +11 -0
  84. package/core/helpers/Champions/isChampionKeyNum.d.ts +2 -0
  85. package/core/helpers/Champions/isChampionKeyNum.js +8 -0
  86. package/core/helpers/Items/isItemKeyNum.d.ts +2 -0
  87. package/core/helpers/Items/isItemKeyNum.js +8 -0
  88. package/core/helpers/Runes/getNonStatRuneIdByName.d.ts +3 -0
  89. package/core/helpers/Runes/getNonStatRuneIdByName.js +8 -0
  90. package/core/helpers/Runes/getNonStatRuneNameById.d.ts +3 -0
  91. package/core/helpers/Runes/getNonStatRuneNameById.js +8 -0
  92. package/core/helpers/Runes/isDominationRuneId.d.ts +2 -0
  93. package/core/helpers/Runes/isDominationRuneId.js +8 -0
  94. package/core/helpers/Runes/isDominationRuneIdNum.d.ts +2 -0
  95. package/core/helpers/Runes/isDominationRuneIdNum.js +8 -0
  96. package/core/helpers/Runes/isDominationRuneName.d.ts +2 -0
  97. package/core/helpers/Runes/isDominationRuneName.js +8 -0
  98. package/core/helpers/Runes/isInspirationRuneId.d.ts +2 -0
  99. package/core/helpers/Runes/isInspirationRuneId.js +8 -0
  100. package/core/helpers/Runes/isInspirationRuneIdNum.d.ts +2 -0
  101. package/core/helpers/Runes/isInspirationRuneIdNum.js +8 -0
  102. package/core/helpers/Runes/isInspirationRuneName.d.ts +2 -0
  103. package/core/helpers/Runes/isInspirationRuneName.js +8 -0
  104. package/core/helpers/Runes/isKeystoneRuneIdNum.d.ts +2 -0
  105. package/core/helpers/Runes/isKeystoneRuneIdNum.js +8 -0
  106. package/core/helpers/Runes/isKeystoneRuneName.d.ts +2 -0
  107. package/core/helpers/Runes/isKeystoneRuneName.js +8 -0
  108. package/core/helpers/Runes/isNonStatRuneId.d.ts +2 -0
  109. package/core/helpers/Runes/isNonStatRuneId.js +8 -0
  110. package/core/helpers/Runes/isNonStatRuneIdNum.d.ts +2 -0
  111. package/core/helpers/Runes/isNonStatRuneIdNum.js +8 -0
  112. package/core/helpers/Runes/isNonStatRuneName.d.ts +2 -0
  113. package/core/helpers/Runes/isNonStatRuneName.js +8 -0
  114. package/core/helpers/Runes/isPrecisionRuneId.d.ts +2 -0
  115. package/core/helpers/Runes/isPrecisionRuneId.js +8 -0
  116. package/core/helpers/Runes/isPrecisionRuneIdNum.d.ts +2 -0
  117. package/core/helpers/Runes/isPrecisionRuneIdNum.js +8 -0
  118. package/core/helpers/Runes/isPrecisionRuneName.d.ts +2 -0
  119. package/core/helpers/Runes/isPrecisionRuneName.js +8 -0
  120. package/core/helpers/Runes/isResolveRuneId.d.ts +2 -0
  121. package/core/helpers/Runes/isResolveRuneId.js +8 -0
  122. package/core/helpers/Runes/isResolveRuneIdNum.d.ts +2 -0
  123. package/core/helpers/Runes/isResolveRuneIdNum.js +8 -0
  124. package/core/helpers/Runes/isResolveRuneName.d.ts +2 -0
  125. package/core/helpers/Runes/isResolveRuneName.js +8 -0
  126. package/core/helpers/Runes/isRuneIdNum.d.ts +2 -0
  127. package/core/helpers/Runes/isRuneIdNum.js +8 -0
  128. package/core/helpers/Runes/isSorceryRuneId.d.ts +2 -0
  129. package/core/helpers/Runes/isSorceryRuneId.js +8 -0
  130. package/core/helpers/Runes/isSorceryRuneIdNum.d.ts +2 -0
  131. package/core/helpers/Runes/isSorceryRuneIdNum.js +8 -0
  132. package/core/helpers/Runes/isSorceryRuneName.d.ts +2 -0
  133. package/core/helpers/Runes/isSorceryRuneName.js +8 -0
  134. package/core/helpers/Runes/isStatRuneIdNum.d.ts +2 -0
  135. package/core/helpers/Runes/isStatRuneIdNum.js +8 -0
  136. package/core/helpers/Spells/isSpellKeyNum.d.ts +2 -0
  137. package/core/helpers/Spells/isSpellKeyNum.js +8 -0
  138. package/core/index.d.ts +33 -12
  139. package/core/index.js +33 -12
  140. package/core/types/types.d.ts +199 -82
  141. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import { SorceryRuneIdNum } from '../../types/types';
2
+ export declare function isSorceryRuneIdNum(id: number): id is SorceryRuneIdNum;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSorceryRuneIdNum = void 0;
4
+ const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
+ function isSorceryRuneIdNum(id) {
6
+ return id in RuneSets_1.PrimaryRuneTrees.Sorcery;
7
+ }
8
+ exports.isSorceryRuneIdNum = isSorceryRuneIdNum;
@@ -0,0 +1,2 @@
1
+ import { SorceryRuneName } from '../../types/types';
2
+ export declare function isSorceryRuneName(value: any): value is SorceryRuneName;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSorceryRuneName = void 0;
4
+ const RuneSetsByRuneNames_1 = require("../../constants/Runes/RuneSetsByRuneNames");
5
+ function isSorceryRuneName(value) {
6
+ return typeof value == 'string' && value in RuneSetsByRuneNames_1.RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Sorcery;
7
+ }
8
+ exports.isSorceryRuneName = isSorceryRuneName;
@@ -0,0 +1,2 @@
1
+ import { StatRuneIdNum } from '../../constants/Runes/RuneSetsByRuneNamesNum';
2
+ export declare function isStatRuneIdNum(id: number): id is StatRuneIdNum;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isStatRuneIdNum = void 0;
4
+ const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
+ function isStatRuneIdNum(id) {
6
+ return id in RuneSets_1.StatRuneNames;
7
+ }
8
+ exports.isStatRuneIdNum = isStatRuneIdNum;
@@ -0,0 +1,2 @@
1
+ import { SpellKeyNum } from '../../constants/Spells/SpellKeysNum';
2
+ export declare function isSpellKeyNum(key: number): key is SpellKeyNum;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSpellKeyNum = void 0;
4
+ const SpellNames_1 = require("../../constants/Spells/SpellNames");
5
+ function isSpellKeyNum(key) {
6
+ return key in SpellNames_1.SpellNames;
7
+ }
8
+ exports.isSpellKeyNum = isSpellKeyNum;
package/core/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './constants/BuildingTypes';
2
+ export * from './constants/Continents';
2
3
  export * from './constants/DataDragonUrls';
3
4
  export * from './constants/DragonTypes';
4
5
  export * from './constants/GameModes';
@@ -9,11 +10,13 @@ export * from './constants/LaneTypes';
9
10
  export * from './constants/Levels';
10
11
  export * from './constants/Locales';
11
12
  export * from './constants/MonsterTypes';
13
+ export * from './constants/PlatformApiUris';
12
14
  export * from './constants/PlatformIds';
13
15
  export * from './constants/Positions';
14
16
  export * from './constants/Queues';
15
17
  export * from './constants/RankedRanks';
16
18
  export * from './constants/RankedTiers';
19
+ export * from './constants/RegionalApiUris';
17
20
  export * from './constants/Regions';
18
21
  export * from './constants/RelativeTeams';
19
22
  export * from './constants/Roles';
@@ -39,6 +42,9 @@ export * from './constants/Items/LegendaryItemNames';
39
42
  export * from './constants/Items/MythicItemKeys';
40
43
  export * from './constants/Items/MythicItemKeysNum';
41
44
  export * from './constants/Items/MythicItemNames';
45
+ export * from './constants/Runes/NonStatRuneIds';
46
+ export * from './constants/Runes/NonStatRuneIdsNum';
47
+ export * from './constants/Runes/NonStatRuneNames';
42
48
  export * from './constants/Runes/RuneIconFileNames';
43
49
  export * from './constants/Runes/RunePickingRelationships';
44
50
  export * from './constants/Runes/RuneSets';
@@ -46,9 +52,6 @@ export * from './constants/Runes/RuneSetsByRuneNames';
46
52
  export * from './constants/Runes/RuneSetsByRuneNamesNum';
47
53
  export * from './constants/Runes/RuneTreeIds';
48
54
  export * from './constants/Runes/RuneTreeNames';
49
- export * from './constants/Runes/TreeRuneIds';
50
- export * from './constants/Runes/TreeRuneIdsNum';
51
- export * from './constants/Runes/TreeRuneNames';
52
55
  export * from './constants/Spells/SpellIds';
53
56
  export * from './constants/Spells/SpellIdsByName';
54
57
  export * from './constants/Spells/SpellKeys';
@@ -63,37 +66,54 @@ export * from './helpers/Champions/getChampionNameById';
63
66
  export * from './helpers/Champions/getChampionNameByKey';
64
67
  export * from './helpers/Champions/isChampionId';
65
68
  export * from './helpers/Champions/isChampionKey';
69
+ export * from './helpers/Champions/isChampionKeyNum';
66
70
  export * from './helpers/Champions/isChampionName';
67
71
  export * from './helpers/Items/getItemKeyByName';
68
72
  export * from './helpers/Items/getItemNameByKey';
69
73
  export * from './helpers/Items/isBootsItemKey';
70
74
  export * from './helpers/Items/isBootsItemName';
71
75
  export * from './helpers/Items/isItemKey';
76
+ export * from './helpers/Items/isItemKeyNum';
72
77
  export * from './helpers/Items/isItemName';
73
78
  export * from './helpers/Items/isLegendaryItemKey';
74
79
  export * from './helpers/Items/isLegendaryItemName';
75
80
  export * from './helpers/Items/isMythicItemKey';
76
81
  export * from './helpers/Items/isMythicItemName';
82
+ export * from './helpers/Runes/getNonStatRuneIdByName';
83
+ export * from './helpers/Runes/getNonStatRuneNameById';
77
84
  export * from './helpers/Runes/getRuneCategoryName';
78
85
  export * from './helpers/Runes/getRuneCdnUrl';
79
86
  export * from './helpers/Runes/getRuneIdByName';
80
87
  export * from './helpers/Runes/getRuneNameById';
81
88
  export * from './helpers/Runes/getStatRuneIdByName';
82
89
  export * from './helpers/Runes/getStatRuneNameById';
83
- export * from './helpers/Runes/getTreeRuneIdByName';
84
- export * from './helpers/Runes/getTreeRuneNameById';
85
- export * from './helpers/Runes/isDominationTreeRuneId';
86
- export * from './helpers/Runes/isInspirationTreeRuneId';
90
+ export * from './helpers/Runes/isDominationRuneId';
91
+ export * from './helpers/Runes/isDominationRuneIdNum';
92
+ export * from './helpers/Runes/isDominationRuneName';
93
+ export * from './helpers/Runes/isInspirationRuneId';
94
+ export * from './helpers/Runes/isInspirationRuneIdNum';
95
+ export * from './helpers/Runes/isInspirationRuneName';
87
96
  export * from './helpers/Runes/isKeystoneRuneId';
88
- export * from './helpers/Runes/isPrecisionTreeRuneId';
89
- export * from './helpers/Runes/isResolveTreeRuneId';
97
+ export * from './helpers/Runes/isKeystoneRuneIdNum';
98
+ export * from './helpers/Runes/isKeystoneRuneName';
99
+ export * from './helpers/Runes/isNonStatRuneId';
100
+ export * from './helpers/Runes/isNonStatRuneIdNum';
101
+ export * from './helpers/Runes/isNonStatRuneName';
102
+ export * from './helpers/Runes/isPrecisionRuneId';
103
+ export * from './helpers/Runes/isPrecisionRuneIdNum';
104
+ export * from './helpers/Runes/isPrecisionRuneName';
105
+ export * from './helpers/Runes/isResolveRuneId';
106
+ export * from './helpers/Runes/isResolveRuneIdNum';
107
+ export * from './helpers/Runes/isResolveRuneName';
90
108
  export * from './helpers/Runes/isRuneId';
109
+ export * from './helpers/Runes/isRuneIdNum';
91
110
  export * from './helpers/Runes/isRuneName';
92
- export * from './helpers/Runes/isSorceryTreeRuneId';
111
+ export * from './helpers/Runes/isSorceryRuneId';
112
+ export * from './helpers/Runes/isSorceryRuneIdNum';
113
+ export * from './helpers/Runes/isSorceryRuneName';
93
114
  export * from './helpers/Runes/isStatRuneId';
115
+ export * from './helpers/Runes/isStatRuneIdNum';
94
116
  export * from './helpers/Runes/isStatRuneName';
95
- export * from './helpers/Runes/isTreeRuneId';
96
- export * from './helpers/Runes/isTreeRuneName';
97
117
  export * from './helpers/Spells/getSpellIdByKey';
98
118
  export * from './helpers/Spells/getSpellIdByName';
99
119
  export * from './helpers/Spells/getSpellKeyById';
@@ -102,5 +122,6 @@ export * from './helpers/Spells/getSpellNameById';
102
122
  export * from './helpers/Spells/getSpellNameByKey';
103
123
  export * from './helpers/Spells/isSpellId';
104
124
  export * from './helpers/Spells/isSpellKey';
125
+ export * from './helpers/Spells/isSpellKeyNum';
105
126
  export * from './helpers/Spells/isSpellName';
106
127
  export * from './types/types';
package/core/index.js CHANGED
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // # constants
18
18
  __exportStar(require("./constants/BuildingTypes"), exports);
19
+ __exportStar(require("./constants/Continents"), exports);
19
20
  __exportStar(require("./constants/DataDragonUrls"), exports);
20
21
  __exportStar(require("./constants/DragonTypes"), exports);
21
22
  __exportStar(require("./constants/GameModes"), exports);
@@ -26,11 +27,13 @@ __exportStar(require("./constants/LaneTypes"), exports);
26
27
  __exportStar(require("./constants/Levels"), exports);
27
28
  __exportStar(require("./constants/Locales"), exports);
28
29
  __exportStar(require("./constants/MonsterTypes"), exports);
30
+ __exportStar(require("./constants/PlatformApiUris"), exports);
29
31
  __exportStar(require("./constants/PlatformIds"), exports);
30
32
  __exportStar(require("./constants/Positions"), exports);
31
33
  __exportStar(require("./constants/Queues"), exports);
32
34
  __exportStar(require("./constants/RankedRanks"), exports);
33
35
  __exportStar(require("./constants/RankedTiers"), exports);
36
+ __exportStar(require("./constants/RegionalApiUris"), exports);
34
37
  __exportStar(require("./constants/Regions"), exports);
35
38
  __exportStar(require("./constants/RelativeTeams"), exports);
36
39
  __exportStar(require("./constants/Roles"), exports);
@@ -59,6 +62,9 @@ __exportStar(require("./constants/Items/MythicItemKeys"), exports);
59
62
  __exportStar(require("./constants/Items/MythicItemKeysNum"), exports);
60
63
  __exportStar(require("./constants/Items/MythicItemNames"), exports);
61
64
  // ## Runes
65
+ __exportStar(require("./constants/Runes/NonStatRuneIds"), exports);
66
+ __exportStar(require("./constants/Runes/NonStatRuneIdsNum"), exports);
67
+ __exportStar(require("./constants/Runes/NonStatRuneNames"), exports);
62
68
  __exportStar(require("./constants/Runes/RuneIconFileNames"), exports);
63
69
  __exportStar(require("./constants/Runes/RunePickingRelationships"), exports);
64
70
  __exportStar(require("./constants/Runes/RuneSets"), exports);
@@ -66,9 +72,6 @@ __exportStar(require("./constants/Runes/RuneSetsByRuneNames"), exports);
66
72
  __exportStar(require("./constants/Runes/RuneSetsByRuneNamesNum"), exports);
67
73
  __exportStar(require("./constants/Runes/RuneTreeIds"), exports);
68
74
  __exportStar(require("./constants/Runes/RuneTreeNames"), exports);
69
- __exportStar(require("./constants/Runes/TreeRuneIds"), exports);
70
- __exportStar(require("./constants/Runes/TreeRuneIdsNum"), exports);
71
- __exportStar(require("./constants/Runes/TreeRuneNames"), exports);
72
75
  // ## Spells
73
76
  __exportStar(require("./constants/Spells/SpellIds"), exports);
74
77
  __exportStar(require("./constants/Spells/SpellIdsByName"), exports);
@@ -86,6 +89,7 @@ __exportStar(require("./helpers/Champions/getChampionNameById"), exports);
86
89
  __exportStar(require("./helpers/Champions/getChampionNameByKey"), exports);
87
90
  __exportStar(require("./helpers/Champions/isChampionId"), exports);
88
91
  __exportStar(require("./helpers/Champions/isChampionKey"), exports);
92
+ __exportStar(require("./helpers/Champions/isChampionKeyNum"), exports);
89
93
  __exportStar(require("./helpers/Champions/isChampionName"), exports);
90
94
  // ## Items
91
95
  __exportStar(require("./helpers/Items/getItemKeyByName"), exports);
@@ -93,32 +97,48 @@ __exportStar(require("./helpers/Items/getItemNameByKey"), exports);
93
97
  __exportStar(require("./helpers/Items/isBootsItemKey"), exports);
94
98
  __exportStar(require("./helpers/Items/isBootsItemName"), exports);
95
99
  __exportStar(require("./helpers/Items/isItemKey"), exports);
100
+ __exportStar(require("./helpers/Items/isItemKeyNum"), exports);
96
101
  __exportStar(require("./helpers/Items/isItemName"), exports);
97
102
  __exportStar(require("./helpers/Items/isLegendaryItemKey"), exports);
98
103
  __exportStar(require("./helpers/Items/isLegendaryItemName"), exports);
99
104
  __exportStar(require("./helpers/Items/isMythicItemKey"), exports);
100
105
  __exportStar(require("./helpers/Items/isMythicItemName"), exports);
101
106
  // ## Runes
107
+ __exportStar(require("./helpers/Runes/getNonStatRuneIdByName"), exports);
108
+ __exportStar(require("./helpers/Runes/getNonStatRuneNameById"), exports);
102
109
  __exportStar(require("./helpers/Runes/getRuneCategoryName"), exports);
103
110
  __exportStar(require("./helpers/Runes/getRuneCdnUrl"), exports);
104
111
  __exportStar(require("./helpers/Runes/getRuneIdByName"), exports);
105
112
  __exportStar(require("./helpers/Runes/getRuneNameById"), exports);
106
113
  __exportStar(require("./helpers/Runes/getStatRuneIdByName"), exports);
107
114
  __exportStar(require("./helpers/Runes/getStatRuneNameById"), exports);
108
- __exportStar(require("./helpers/Runes/getTreeRuneIdByName"), exports);
109
- __exportStar(require("./helpers/Runes/getTreeRuneNameById"), exports);
110
- __exportStar(require("./helpers/Runes/isDominationTreeRuneId"), exports);
111
- __exportStar(require("./helpers/Runes/isInspirationTreeRuneId"), exports);
115
+ __exportStar(require("./helpers/Runes/isDominationRuneId"), exports);
116
+ __exportStar(require("./helpers/Runes/isDominationRuneIdNum"), exports);
117
+ __exportStar(require("./helpers/Runes/isDominationRuneName"), exports);
118
+ __exportStar(require("./helpers/Runes/isInspirationRuneId"), exports);
119
+ __exportStar(require("./helpers/Runes/isInspirationRuneIdNum"), exports);
120
+ __exportStar(require("./helpers/Runes/isInspirationRuneName"), exports);
112
121
  __exportStar(require("./helpers/Runes/isKeystoneRuneId"), exports);
113
- __exportStar(require("./helpers/Runes/isPrecisionTreeRuneId"), exports);
114
- __exportStar(require("./helpers/Runes/isResolveTreeRuneId"), exports);
122
+ __exportStar(require("./helpers/Runes/isKeystoneRuneIdNum"), exports);
123
+ __exportStar(require("./helpers/Runes/isKeystoneRuneName"), exports);
124
+ __exportStar(require("./helpers/Runes/isNonStatRuneId"), exports);
125
+ __exportStar(require("./helpers/Runes/isNonStatRuneIdNum"), exports);
126
+ __exportStar(require("./helpers/Runes/isNonStatRuneName"), exports);
127
+ __exportStar(require("./helpers/Runes/isPrecisionRuneId"), exports);
128
+ __exportStar(require("./helpers/Runes/isPrecisionRuneIdNum"), exports);
129
+ __exportStar(require("./helpers/Runes/isPrecisionRuneName"), exports);
130
+ __exportStar(require("./helpers/Runes/isResolveRuneId"), exports);
131
+ __exportStar(require("./helpers/Runes/isResolveRuneIdNum"), exports);
132
+ __exportStar(require("./helpers/Runes/isResolveRuneName"), exports);
115
133
  __exportStar(require("./helpers/Runes/isRuneId"), exports);
134
+ __exportStar(require("./helpers/Runes/isRuneIdNum"), exports);
116
135
  __exportStar(require("./helpers/Runes/isRuneName"), exports);
117
- __exportStar(require("./helpers/Runes/isSorceryTreeRuneId"), exports);
136
+ __exportStar(require("./helpers/Runes/isSorceryRuneId"), exports);
137
+ __exportStar(require("./helpers/Runes/isSorceryRuneIdNum"), exports);
138
+ __exportStar(require("./helpers/Runes/isSorceryRuneName"), exports);
118
139
  __exportStar(require("./helpers/Runes/isStatRuneId"), exports);
140
+ __exportStar(require("./helpers/Runes/isStatRuneIdNum"), exports);
119
141
  __exportStar(require("./helpers/Runes/isStatRuneName"), exports);
120
- __exportStar(require("./helpers/Runes/isTreeRuneId"), exports);
121
- __exportStar(require("./helpers/Runes/isTreeRuneName"), exports);
122
142
  // ## Spells
123
143
  __exportStar(require("./helpers/Spells/getSpellIdByKey"), exports);
124
144
  __exportStar(require("./helpers/Spells/getSpellIdByName"), exports);
@@ -128,6 +148,7 @@ __exportStar(require("./helpers/Spells/getSpellNameById"), exports);
128
148
  __exportStar(require("./helpers/Spells/getSpellNameByKey"), exports);
129
149
  __exportStar(require("./helpers/Spells/isSpellId"), exports);
130
150
  __exportStar(require("./helpers/Spells/isSpellKey"), exports);
151
+ __exportStar(require("./helpers/Spells/isSpellKeyNum"), exports);
131
152
  __exportStar(require("./helpers/Spells/isSpellName"), exports);
132
153
  // # types
133
154
  __exportStar(require("./types/types"), exports);
@@ -1,151 +1,268 @@
1
1
  import { RuneSets } from '../constants/Runes/RuneSets';
2
2
  import { RuneSetsByRuneNames } from '../constants/Runes/RuneSetsByRuneNames';
3
+ import { RuneSetsByRuneNamesNum } from '../constants/Runes/RuneSetsByRuneNamesNum';
3
4
  import { RuneTreeName } from '../constants/Runes/RuneTreeNames';
4
5
  import { RuneTreeType } from '../constants/Runes/RuneTreeTypes';
5
6
  /**
6
- * 0 Custom games
7
- *
8
- * 400 5v5 Draft Pick games
9
- *
10
- * 420 — 5v5 Ranked Solo games
11
- *
12
- * 430 — 5v5 Blind Pick games
13
- *
14
- * 440 — 5v5 Ranked Flex games
15
- *
16
- * 450 — 5v5 ARAM games
17
- *
18
- * 700 — Clash games
19
- *
20
- * 900 — ARURF games
21
- *
22
- * 920 — Legend of the Poro King games
7
+ * There are 3 main Rune ID types:
8
+ * - `RuneId` (all),
9
+ * - `NonStatRuneId` (all but stat runes),
10
+ * - `StatRuneId` (only stat runes).
23
11
  *
24
- * 1020 One for All games
12
+ * There are 6 more specific Rune ID types as well:
13
+ * - `KeystoneRuneId`,
14
+ * - `PrecisionRuneId`,
15
+ * - `DominationRuneId`,
16
+ * - `SorceryRuneId`,
17
+ * - `ResolveRuneId`,
18
+ * - `InspirationRuneId`.
25
19
  *
26
- * 1090 Teamfight Tactics games
20
+ * There are 6 numerical Rune ID types:
21
+ * - `KeystoneRuneIdNum`,
22
+ * - `PrecisionRuneIdNum`,
23
+ * - `DominationRuneIdNum`,
24
+ * - `SorceryRuneIdNum`,
25
+ * - `ResolveRuneIdNum`,
26
+ * - `InspirationRuneIdNum`.
27
+ */
28
+ export type KeystoneRuneId = keyof typeof RuneSets.KeystoneNames;
29
+ /**
30
+ * There are 3 main Rune ID types:
31
+ * - `RuneId` (all),
32
+ * - `NonStatRuneId` (all but stat runes),
33
+ * - `StatRuneId` (only stat runes).
27
34
  *
28
- * 1100 Ranked Teamfight Tactics games
35
+ * There are 6 more specific Rune ID types as well:
36
+ * - `KeystoneRuneId`,
37
+ * - `PrecisionRuneId`,
38
+ * - `DominationRuneId`,
39
+ * - `SorceryRuneId`,
40
+ * - `ResolveRuneId`,
41
+ * - `InspirationRuneId`.
29
42
  *
30
- * 1110 Teamfight Tactics Tutorial games
43
+ * There are 6 numerical Rune ID types:
44
+ * - `KeystoneRuneIdNum`,
45
+ * - `PrecisionRuneIdNum`,
46
+ * - `DominationRuneIdNum`,
47
+ * - `SorceryRuneIdNum`,
48
+ * - `ResolveRuneIdNum`,
49
+ * - `InspirationRuneIdNum`.
50
+ */
51
+ export type KeystoneRuneIdNum = typeof RuneSetsByRuneNamesNum.KeystoneIdsNum[keyof typeof RuneSetsByRuneNamesNum.KeystoneIdsNum];
52
+ export type KeystoneRuneName = keyof typeof RuneSetsByRuneNames.KeystoneIds;
53
+ /**
54
+ * There are 3 main Rune ID types:
55
+ * - `RuneId` (all),
56
+ * - `NonStatRuneId` (all but stat runes),
57
+ * - `StatRuneId` (only stat runes).
31
58
  *
32
- * 1111 Teamfight Tactics test games
59
+ * There are 6 more specific Rune ID types as well:
60
+ * - `KeystoneRuneId`,
61
+ * - `PrecisionRuneId`,
62
+ * - `DominationRuneId`,
63
+ * - `SorceryRuneId`,
64
+ * - `ResolveRuneId`,
65
+ * - `InspirationRuneId`.
33
66
  *
34
- * 1300 Nexus Blitz games
67
+ * There are 6 numerical Rune ID types:
68
+ * - `KeystoneRuneIdNum`,
69
+ * - `PrecisionRuneIdNum`,
70
+ * - `DominationRuneIdNum`,
71
+ * - `SorceryRuneIdNum`,
72
+ * - `ResolveRuneIdNum`,
73
+ * - `InspirationRuneIdNum`.
74
+ */
75
+ export type PrecisionRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Precision;
76
+ /**
77
+ * There are 3 main Rune ID types:
78
+ * - `RuneId` (all),
79
+ * - `NonStatRuneId` (all but stat runes),
80
+ * - `StatRuneId` (only stat runes).
35
81
  *
36
- * 1400 Ultimate Spellbook games
82
+ * There are 6 more specific Rune ID types as well:
83
+ * - `KeystoneRuneId`,
84
+ * - `PrecisionRuneId`,
85
+ * - `DominationRuneId`,
86
+ * - `SorceryRuneId`,
87
+ * - `ResolveRuneId`,
88
+ * - `InspirationRuneId`.
37
89
  *
38
- * 1900 Pick URF games
90
+ * There are 6 numerical Rune ID types:
91
+ * - `KeystoneRuneIdNum`,
92
+ * - `PrecisionRuneIdNum`,
93
+ * - `DominationRuneIdNum`,
94
+ * - `SorceryRuneIdNum`,
95
+ * - `ResolveRuneIdNum`,
96
+ * - `InspirationRuneIdNum`.
39
97
  */
40
- export type QueueId = 0 | 400 | 420 | 430 | 440 | 450 | 700 | 900 | 920 | 1020 | 1090 | 1100 | 1110 | 1111 | 1300 | 1400 | 1900;
98
+ export type PrecisionRuneIdNum = typeof RuneSetsByRuneNamesNum.PrimaryRuneTreesByRuneNamesNum.Precision[keyof typeof RuneSetsByRuneNamesNum.PrimaryRuneTreesByRuneNamesNum.Precision];
99
+ export type PrecisionRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Precision;
41
100
  /**
42
- * 11 Summoner's Rift
43
- *
44
- * 12 Howling Abyss
101
+ * There are 3 main Rune ID types:
102
+ * - `RuneId` (all),
103
+ * - `NonStatRuneId` (all but stat runes),
104
+ * - `StatRuneId` (only stat runes).
45
105
  *
46
- * 21 Nexus Blitz
106
+ * There are 6 more specific Rune ID types as well:
107
+ * - `KeystoneRuneId`,
108
+ * - `PrecisionRuneId`,
109
+ * - `DominationRuneId`,
110
+ * - `SorceryRuneId`,
111
+ * - `ResolveRuneId`,
112
+ * - `InspirationRuneId`.
47
113
  *
48
- * 22 Convergence
114
+ * There are 6 numerical Rune ID types:
115
+ * - `KeystoneRuneIdNum`,
116
+ * - `PrecisionRuneIdNum`,
117
+ * - `DominationRuneIdNum`,
118
+ * - `SorceryRuneIdNum`,
119
+ * - `ResolveRuneIdNum`,
120
+ * - `InspirationRuneIdNum`.
49
121
  */
50
- export type MapId = 11 | 12 | 21 | 22;
51
- export type TeamId = 100 | 200;
52
- export type ParticipantId = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
122
+ export type DominationRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Domination;
53
123
  /**
54
124
  * There are 3 main Rune ID types:
55
125
  * - `RuneId` (all),
56
- * - `TreeRuneId` (all but stat runes),
126
+ * - `NonStatRuneId` (all but stat runes),
57
127
  * - `StatRuneId` (only stat runes).
58
128
  *
59
129
  * There are 6 more specific Rune ID types as well:
60
130
  * - `KeystoneRuneId`,
61
- * - `PrecisionTreeRuneId`,
62
- * - `DominationTreeRuneId`,
63
- * - `SorceryTreeRuneId`,
64
- * - `ResolveTreeRuneId`,
65
- * - `InspirationTreeRuneId`.
131
+ * - `PrecisionRuneId`,
132
+ * - `DominationRuneId`,
133
+ * - `SorceryRuneId`,
134
+ * - `ResolveRuneId`,
135
+ * - `InspirationRuneId`.
136
+ *
137
+ * There are 6 numerical Rune ID types:
138
+ * - `KeystoneRuneIdNum`,
139
+ * - `PrecisionRuneIdNum`,
140
+ * - `DominationRuneIdNum`,
141
+ * - `SorceryRuneIdNum`,
142
+ * - `ResolveRuneIdNum`,
143
+ * - `InspirationRuneIdNum`.
66
144
  */
67
- export type KeystoneRuneId = keyof typeof RuneSets.KeystoneNames;
68
- export type KeystoneRuneName = keyof typeof RuneSetsByRuneNames.KeystoneIds;
145
+ export type DominationRuneIdNum = typeof RuneSetsByRuneNamesNum.PrimaryRuneTreesByRuneNamesNum.Domination[keyof typeof RuneSetsByRuneNamesNum.PrimaryRuneTreesByRuneNamesNum.Domination];
146
+ export type DominationRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Domination;
69
147
  /**
70
148
  * There are 3 main Rune ID types:
71
149
  * - `RuneId` (all),
72
- * - `TreeRuneId` (all but stat runes),
150
+ * - `NonStatRuneId` (all but stat runes),
73
151
  * - `StatRuneId` (only stat runes).
74
152
  *
75
153
  * There are 6 more specific Rune ID types as well:
76
154
  * - `KeystoneRuneId`,
77
- * - `PrecisionTreeRuneId`,
78
- * - `DominationTreeRuneId`,
79
- * - `SorceryTreeRuneId`,
80
- * - `ResolveTreeRuneId`,
81
- * - `InspirationTreeRuneId`.
155
+ * - `PrecisionRuneId`,
156
+ * - `DominationRuneId`,
157
+ * - `SorceryRuneId`,
158
+ * - `ResolveRuneId`,
159
+ * - `InspirationRuneId`.
160
+ *
161
+ * There are 6 numerical Rune ID types:
162
+ * - `KeystoneRuneIdNum`,
163
+ * - `PrecisionRuneIdNum`,
164
+ * - `DominationRuneIdNum`,
165
+ * - `SorceryRuneIdNum`,
166
+ * - `ResolveRuneIdNum`,
167
+ * - `InspirationRuneIdNum`.
82
168
  */
83
- export type PrecisionTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Precision;
84
- export type PrecisionTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Precision;
169
+ export type SorceryRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Sorcery;
170
+ export type SorceryRuneIdNum = typeof RuneSetsByRuneNamesNum.PrimaryRuneTreesByRuneNamesNum.Sorcery[keyof typeof RuneSetsByRuneNamesNum.PrimaryRuneTreesByRuneNamesNum.Sorcery];
171
+ export type SorceryRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Sorcery;
85
172
  /**
86
173
  * There are 3 main Rune ID types:
87
174
  * - `RuneId` (all),
88
- * - `TreeRuneId` (all but stat runes),
175
+ * - `NonStatRuneId` (all but stat runes),
89
176
  * - `StatRuneId` (only stat runes).
90
177
  *
91
178
  * There are 6 more specific Rune ID types as well:
92
179
  * - `KeystoneRuneId`,
93
- * - `PrecisionTreeRuneId`,
94
- * - `DominationTreeRuneId`,
95
- * - `SorceryTreeRuneId`,
96
- * - `ResolveTreeRuneId`,
97
- * - `InspirationTreeRuneId`.
180
+ * - `PrecisionRuneId`,
181
+ * - `DominationRuneId`,
182
+ * - `SorceryRuneId`,
183
+ * - `ResolveRuneId`,
184
+ * - `InspirationRuneId`.
185
+ *
186
+ * There are 6 numerical Rune ID types:
187
+ * - `KeystoneRuneIdNum`,
188
+ * - `PrecisionRuneIdNum`,
189
+ * - `DominationRuneIdNum`,
190
+ * - `SorceryRuneIdNum`,
191
+ * - `ResolveRuneIdNum`,
192
+ * - `InspirationRuneIdNum`.
98
193
  */
99
- export type DominationTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Domination;
100
- export type DominationTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Domination;
194
+ export type ResolveRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Resolve;
101
195
  /**
102
196
  * There are 3 main Rune ID types:
103
197
  * - `RuneId` (all),
104
- * - `TreeRuneId` (all but stat runes),
198
+ * - `NonStatRuneId` (all but stat runes),
105
199
  * - `StatRuneId` (only stat runes).
106
200
  *
107
201
  * There are 6 more specific Rune ID types as well:
108
202
  * - `KeystoneRuneId`,
109
- * - `PrecisionTreeRuneId`,
110
- * - `DominationTreeRuneId`,
111
- * - `SorceryTreeRuneId`,
112
- * - `ResolveTreeRuneId`,
113
- * - `InspirationTreeRuneId`.
203
+ * - `PrecisionRuneId`,
204
+ * - `DominationRuneId`,
205
+ * - `SorceryRuneId`,
206
+ * - `ResolveRuneId`,
207
+ * - `InspirationRuneId`.
208
+ *
209
+ * There are 6 numerical Rune ID types:
210
+ * - `KeystoneRuneIdNum`,
211
+ * - `PrecisionRuneIdNum`,
212
+ * - `DominationRuneIdNum`,
213
+ * - `SorceryRuneIdNum`,
214
+ * - `ResolveRuneIdNum`,
215
+ * - `InspirationRuneIdNum`.
114
216
  */
115
- export type SorceryTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Sorcery;
116
- export type SorceryTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Sorcery;
217
+ export type ResolveRuneIdNum = typeof RuneSetsByRuneNamesNum.PrimaryRuneTreesByRuneNamesNum.Resolve[keyof typeof RuneSetsByRuneNamesNum.PrimaryRuneTreesByRuneNamesNum.Resolve];
218
+ export type ResolveRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Resolve;
117
219
  /**
118
220
  * There are 3 main Rune ID types:
119
221
  * - `RuneId` (all),
120
- * - `TreeRuneId` (all but stat runes),
222
+ * - `NonStatRuneId` (all but stat runes),
121
223
  * - `StatRuneId` (only stat runes).
122
224
  *
123
225
  * There are 6 more specific Rune ID types as well:
124
226
  * - `KeystoneRuneId`,
125
- * - `PrecisionTreeRuneId`,
126
- * - `DominationTreeRuneId`,
127
- * - `SorceryTreeRuneId`,
128
- * - `ResolveTreeRuneId`,
129
- * - `InspirationTreeRuneId`.
227
+ * - `PrecisionRuneId`,
228
+ * - `DominationRuneId`,
229
+ * - `SorceryRuneId`,
230
+ * - `ResolveRuneId`,
231
+ * - `InspirationRuneId`.
232
+ *
233
+ * There are 6 numerical Rune ID types:
234
+ * - `KeystoneRuneIdNum`,
235
+ * - `PrecisionRuneIdNum`,
236
+ * - `DominationRuneIdNum`,
237
+ * - `SorceryRuneIdNum`,
238
+ * - `ResolveRuneIdNum`,
239
+ * - `InspirationRuneIdNum`.
130
240
  */
131
- export type ResolveTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Resolve;
132
- export type ResolveTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Resolve;
241
+ export type InspirationRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Inspiration;
133
242
  /**
134
243
  * There are 3 main Rune ID types:
135
244
  * - `RuneId` (all),
136
- * - `TreeRuneId` (all but stat runes),
245
+ * - `NonStatRuneId` (all but stat runes),
137
246
  * - `StatRuneId` (only stat runes).
138
247
  *
139
248
  * There are 6 more specific Rune ID types as well:
140
249
  * - `KeystoneRuneId`,
141
- * - `PrecisionTreeRuneId`,
142
- * - `DominationTreeRuneId`,
143
- * - `SorceryTreeRuneId`,
144
- * - `ResolveTreeRuneId`,
145
- * - `InspirationTreeRuneId`.
250
+ * - `PrecisionRuneId`,
251
+ * - `DominationRuneId`,
252
+ * - `SorceryRuneId`,
253
+ * - `ResolveRuneId`,
254
+ * - `InspirationRuneId`.
255
+ *
256
+ * There are 6 numerical Rune ID types:
257
+ * - `KeystoneRuneIdNum`,
258
+ * - `PrecisionRuneIdNum`,
259
+ * - `DominationRuneIdNum`,
260
+ * - `SorceryRuneIdNum`,
261
+ * - `ResolveRuneIdNum`,
262
+ * - `InspirationRuneIdNum`.
146
263
  */
147
- export type InspirationTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Inspiration;
148
- export type InspirationTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Inspiration;
264
+ export type InspirationRuneIdNum = typeof RuneSetsByRuneNamesNum.PrimaryRuneTreesByRuneNamesNum.Inspiration[keyof typeof RuneSetsByRuneNamesNum.PrimaryRuneTreesByRuneNamesNum.Inspiration];
265
+ export type InspirationRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Inspiration;
149
266
  export type StatRunesCategory = 'StatRunes';
150
267
  export type RuneSection = RuneTreeType | StatRunesCategory;
151
268
  export type RuneCategory = RuneTreeName | StatRunesCategory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "2.3.1",
3
+ "version": "2.5.0",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
5
5
  "main": "core/index.js",
6
6
  "types": "core/index.d.ts",