lol-constants 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/scripts/constants/RuneIdComment.d.ts +1 -0
- package/assets/scripts/constants/RuneIdComment.js +19 -0
- package/assets/scripts/generate-all.d.ts +6 -0
- package/assets/scripts/generate-all.js +10 -0
- package/assets/scripts/generate-categorized-item-keys-num.d.ts +1 -0
- package/assets/scripts/generate-categorized-item-keys-num.js +60 -0
- package/assets/scripts/generate-categorized-item-keys.js +7 -1
- package/assets/scripts/generate-categorized-item-names.js +3 -1
- package/assets/scripts/generate-champion-ids-by-name.js +5 -3
- package/assets/scripts/generate-champion-ids.js +6 -3
- package/assets/scripts/generate-champion-keys-num.d.ts +1 -0
- package/assets/scripts/generate-champion-keys-num.js +22 -0
- package/assets/scripts/generate-champion-keys.js +6 -3
- package/assets/scripts/generate-champion-names.js +6 -3
- package/assets/scripts/generate-item-keys-num.d.ts +1 -0
- package/assets/scripts/generate-item-keys-num.js +23 -0
- package/assets/scripts/generate-item-keys.js +6 -3
- package/assets/scripts/generate-item-names.js +6 -3
- package/assets/scripts/generate-rune-ids.js +8 -3
- package/assets/scripts/generate-rune-names.js +6 -3
- package/assets/scripts/generate-rune-sets-by-rune-names-num.d.ts +1 -0
- package/assets/scripts/generate-rune-sets-by-rune-names-num.js +118 -0
- package/assets/scripts/generate-rune-sets-by-rune-names.js +5 -0
- package/assets/scripts/generate-rune-sets.js +2 -0
- package/assets/scripts/generate-spell-ids-by-name.js +5 -3
- package/assets/scripts/generate-spell-ids.js +6 -3
- package/assets/scripts/generate-spell-keys-num.d.ts +1 -0
- package/assets/scripts/generate-spell-keys-num.js +22 -0
- package/assets/scripts/generate-spell-keys.js +6 -3
- package/assets/scripts/generate-spell-names.js +6 -3
- package/assets/scripts/generate-stat-rune-ids.js +8 -3
- package/assets/scripts/generate-stat-rune-names.js +8 -5
- package/assets/scripts/generate-tree-rune-ids-num.d.ts +1 -0
- package/assets/scripts/generate-tree-rune-ids-num.js +23 -0
- package/assets/scripts/generate-tree-rune-ids.js +8 -3
- package/assets/scripts/generate-tree-rune-names.js +8 -5
- package/assets/scripts/helpers/getComment.d.ts +1 -0
- package/assets/scripts/helpers/getComment.js +8 -0
- package/assets/scripts/helpers/getExportStatement.d.ts +1 -1
- package/assets/scripts/helpers/getExportStatement.js +28 -3
- package/assets/scripts/helpers/getFmtdComment.js +1 -1
- package/assets/scripts/helpers/validateNumber.d.ts +1 -0
- package/assets/scripts/helpers/validateNumber.js +10 -0
- package/assets/scripts/helpers/writeToTmpFile.d.ts +3 -0
- package/assets/scripts/helpers/writeToTmpFile.js +2 -2
- package/core/constants/Champions/ChampionIds.d.ts +1 -0
- package/core/constants/Champions/ChampionKeys.d.ts +1 -0
- package/core/constants/Champions/ChampionKeysNum.d.ts +166 -0
- package/core/constants/Champions/ChampionKeysNum.js +4 -0
- package/core/constants/Champions/ChampionNames.d.ts +1 -0
- package/core/constants/Items/BootsItemKeys.d.ts +1 -0
- package/core/constants/Items/BootsItemKeysNum.d.ts +12 -0
- package/core/constants/Items/BootsItemKeysNum.js +4 -0
- package/core/constants/Items/BootsItemNames.d.ts +1 -0
- package/core/constants/Items/ItemKeys.d.ts +1 -0
- package/core/constants/Items/ItemKeysNum.d.ts +264 -0
- package/core/constants/Items/ItemKeysNum.js +4 -0
- package/core/constants/Items/ItemNames.d.ts +1 -0
- package/core/constants/Items/LegendaryItemKeys.d.ts +1 -0
- package/core/constants/Items/LegendaryItemKeysNum.d.ts +77 -0
- package/core/constants/Items/LegendaryItemKeysNum.js +4 -0
- package/core/constants/Items/LegendaryItemNames.d.ts +1 -0
- package/core/constants/Items/MythicItemKeys.d.ts +1 -0
- package/core/constants/Items/MythicItemKeysNum.d.ts +31 -0
- package/core/constants/Items/MythicItemKeysNum.js +4 -0
- package/core/constants/Items/MythicItemNames.d.ts +1 -0
- package/core/constants/Runes/RuneIconFileNames.d.ts +1 -1
- package/core/constants/Runes/RuneSets.d.ts +2 -0
- package/core/constants/Runes/RuneSetsByRuneNames.d.ts +30 -0
- package/core/constants/Runes/RuneSetsByRuneNamesNum.d.ts +743 -0
- package/core/constants/Runes/RuneSetsByRuneNamesNum.js +14 -0
- package/core/constants/Runes/RuneTreeIds.d.ts +1 -1
- package/core/constants/Runes/RuneTreeIds.js +1 -1
- package/core/constants/Runes/RuneTreeIdsNum.d.ts +11 -0
- package/core/constants/Runes/RuneTreeIdsNum.js +19 -0
- package/core/constants/Runes/TreeRuneIds.d.ts +15 -0
- package/core/constants/Runes/TreeRuneIdsNum.d.ts +66 -0
- package/core/constants/Runes/TreeRuneIdsNum.js +4 -0
- package/core/constants/Runes/TreeRuneNames.d.ts +1 -0
- package/core/constants/Spells/SpellIds.d.ts +1 -0
- package/core/constants/Spells/SpellKeys.d.ts +1 -0
- package/core/constants/Spells/SpellKeysNum.d.ts +19 -0
- package/core/constants/Spells/SpellKeysNum.js +4 -0
- package/core/constants/Spells/SpellNames.d.ts +1 -0
- package/core/helpers/Champions/getChampionIdByKey.d.ts +2 -1
- package/core/helpers/Champions/getChampionIdByName.d.ts +2 -1
- package/core/helpers/Champions/getChampionKeyById.d.ts +2 -1
- package/core/helpers/Champions/getChampionKeyByName.d.ts +2 -1
- package/core/helpers/Champions/getChampionNameById.d.ts +2 -1
- package/core/helpers/Champions/getChampionNameByKey.d.ts +2 -1
- package/core/helpers/Champions/isChampionId.d.ts +1 -1
- package/core/helpers/Champions/isChampionKey.d.ts +1 -1
- package/core/helpers/Champions/isChampionName.d.ts +1 -1
- package/core/helpers/Items/getItemKeyByName.d.ts +2 -1
- package/core/helpers/Items/getItemNameByKey.d.ts +2 -1
- package/core/helpers/Items/isBootsItemKey.d.ts +1 -1
- package/core/helpers/Items/isBootsItemName.d.ts +1 -1
- package/core/helpers/Items/isItemKey.d.ts +1 -1
- package/core/helpers/Items/isItemName.d.ts +1 -1
- package/core/helpers/Items/isLegendaryItemKey.d.ts +1 -1
- package/core/helpers/Items/isLegendaryItemName.d.ts +1 -1
- package/core/helpers/Items/isMythicItemKey.d.ts +1 -1
- package/core/helpers/Items/isMythicItemName.d.ts +1 -1
- package/core/helpers/Runes/getRuneCategoryName.d.ts +2 -1
- package/core/helpers/Runes/getRuneCdnUrl.d.ts +1 -1
- package/core/helpers/Runes/getRuneIdByName.d.ts +2 -1
- package/core/helpers/Runes/getRuneNameById.d.ts +2 -1
- package/core/helpers/Runes/getStatRuneIdByName.d.ts +2 -1
- package/core/helpers/Runes/getStatRuneNameById.d.ts +2 -1
- package/core/helpers/Runes/getTreeRuneIdByName.d.ts +2 -1
- package/core/helpers/Runes/getTreeRuneNameById.d.ts +2 -1
- package/core/helpers/Runes/isRuneId.d.ts +1 -1
- package/core/helpers/Runes/isRuneName.d.ts +1 -1
- package/core/helpers/Runes/isStatRuneId.d.ts +1 -1
- package/core/helpers/Runes/isStatRuneName.d.ts +1 -1
- package/core/helpers/Runes/isTreeRuneId.d.ts +1 -1
- package/core/helpers/Runes/isTreeRuneName.d.ts +1 -1
- package/core/helpers/Spells/getSpellIdByKey.d.ts +2 -1
- package/core/helpers/Spells/getSpellIdByName.d.ts +2 -1
- package/core/helpers/Spells/getSpellKeyById.d.ts +2 -1
- package/core/helpers/Spells/getSpellKeyByName.d.ts +2 -1
- package/core/helpers/Spells/getSpellNameById.d.ts +2 -1
- package/core/helpers/Spells/getSpellNameByKey.d.ts +2 -1
- package/core/helpers/Spells/isSpellId.d.ts +1 -1
- package/core/helpers/Spells/isSpellKey.d.ts +1 -1
- package/core/helpers/Spells/isSpellName.d.ts +1 -1
- package/core/index.d.ts +9 -0
- package/core/index.js +9 -12
- package/core/types/types.d.ts +27 -86
- package/package.json +1 -1
package/core/types/types.d.ts
CHANGED
@@ -1,114 +1,55 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { ChampionNames } from '../constants/Champions/ChampionNames';
|
4
|
-
import { BootsItemKeys } from '../constants/Items/BootsItemKeys';
|
5
|
-
import { BootsItemNames } from '../constants/Items/BootsItemNames';
|
6
|
-
import { ItemKeys } from '../constants/Items/ItemKeys';
|
7
|
-
import { ItemNames } from '../constants/Items/ItemNames';
|
8
|
-
import { LegendaryItemKeys } from '../constants/Items/LegendaryItemKeys';
|
9
|
-
import { LegendaryItemNames } from '../constants/Items/LegendaryItemNames';
|
10
|
-
import { MythicItemKeys } from '../constants/Items/MythicItemKeys';
|
11
|
-
import { MythicItemNames } from '../constants/Items/MythicItemNames';
|
12
|
-
import { RuneNames, RuneSets, StatRuneNames } from '../constants/Runes/RuneSets';
|
13
|
-
import { RuneIds, RuneSetsByRuneNames, StatRuneIds } from '../constants/Runes/RuneSetsByRuneNames';
|
1
|
+
import { RuneSets } from '../constants/Runes/RuneSets';
|
2
|
+
import { RuneSetsByRuneNames } from '../constants/Runes/RuneSetsByRuneNames';
|
14
3
|
import { RuneTreeName } from '../constants/Runes/RuneTreeNames';
|
15
4
|
import { RuneTreeType } from '../constants/Runes/RuneTreeTypes';
|
16
|
-
import { TreeRuneIds } from '../constants/Runes/TreeRuneIds';
|
17
|
-
import { TreeRuneNames } from '../constants/Runes/TreeRuneNames';
|
18
|
-
import { SpellIds } from '../constants/Spells/SpellIds';
|
19
|
-
import { SpellKeys } from '../constants/Spells/SpellKeys';
|
20
|
-
import { SpellNames } from '../constants/Spells/SpellNames';
|
21
5
|
/**
|
22
6
|
* 0 — Custom games
|
7
|
+
*
|
23
8
|
* 400 — 5v5 Draft Pick games
|
9
|
+
*
|
24
10
|
* 420 — 5v5 Ranked Solo games
|
11
|
+
*
|
25
12
|
* 430 — 5v5 Blind Pick games
|
13
|
+
*
|
26
14
|
* 440 — 5v5 Ranked Flex games
|
15
|
+
*
|
27
16
|
* 450 — 5v5 ARAM games
|
17
|
+
*
|
28
18
|
* 700 — Clash games
|
19
|
+
*
|
29
20
|
* 900 — ARURF games
|
21
|
+
*
|
30
22
|
* 920 — Legend of the Poro King games
|
23
|
+
*
|
31
24
|
* 1020 — One for All games
|
25
|
+
*
|
32
26
|
* 1090 — Teamfight Tactics games
|
27
|
+
*
|
33
28
|
* 1100 — Ranked Teamfight Tactics games
|
29
|
+
*
|
34
30
|
* 1110 — Teamfight Tactics Tutorial games
|
31
|
+
*
|
35
32
|
* 1111 — Teamfight Tactics test games
|
33
|
+
*
|
36
34
|
* 1300 — Nexus Blitz games
|
35
|
+
*
|
37
36
|
* 1400 — Ultimate Spellbook games
|
37
|
+
*
|
38
38
|
* 1900 — Pick URF games
|
39
39
|
*/
|
40
40
|
export type QueueId = 0 | 400 | 420 | 430 | 440 | 450 | 700 | 900 | 920 | 1020 | 1090 | 1100 | 1110 | 1111 | 1300 | 1400 | 1900;
|
41
41
|
/**
|
42
42
|
* 11 — Summoner's Rift
|
43
|
+
*
|
43
44
|
* 12 — Howling Abyss
|
45
|
+
*
|
44
46
|
* 21 — Nexus Blitz
|
47
|
+
*
|
45
48
|
* 22 — Convergence
|
46
49
|
*/
|
47
50
|
export type MapId = 11 | 12 | 21 | 22;
|
48
51
|
export type TeamId = 100 | 200;
|
49
52
|
export type ParticipantId = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
50
|
-
export type ChampionId = typeof ChampionIds[keyof typeof ChampionIds];
|
51
|
-
export type ChampionKey = typeof ChampionKeys[keyof typeof ChampionKeys];
|
52
|
-
export type ChampionName = typeof ChampionNames[keyof typeof ChampionNames];
|
53
|
-
export type SpellId = typeof SpellIds[keyof typeof SpellIds];
|
54
|
-
export type SpellKey = typeof SpellKeys[keyof typeof SpellKeys];
|
55
|
-
export type SpellName = typeof SpellNames[keyof typeof SpellNames];
|
56
|
-
export type ItemKey = typeof ItemKeys[keyof typeof ItemKeys];
|
57
|
-
export type ItemName = typeof ItemNames[keyof typeof ItemNames];
|
58
|
-
export type MythicItemKey = keyof typeof MythicItemNames;
|
59
|
-
export type MythicItemName = keyof typeof MythicItemKeys;
|
60
|
-
export type LegendaryItemKey = keyof typeof LegendaryItemNames;
|
61
|
-
export type LegendaryItemName = keyof typeof LegendaryItemKeys;
|
62
|
-
export type BootsItemKey = keyof typeof BootsItemNames;
|
63
|
-
export type BootsItemName = keyof typeof BootsItemKeys;
|
64
|
-
/**
|
65
|
-
* There are 3 main Rune ID types:
|
66
|
-
* - `RuneId` (all),
|
67
|
-
* - `TreeRuneId` (all but stat runes),
|
68
|
-
* - `StatRuneId` (only stat runes).
|
69
|
-
*
|
70
|
-
* There are 6 more specific Rune ID types as well:
|
71
|
-
* - `KeystoneRuneId`,
|
72
|
-
* - `PrecisionTreeRuneId`,
|
73
|
-
* - `DominationTreeRuneId`,
|
74
|
-
* - `SorceryTreeRuneId`,
|
75
|
-
* - `ResolveTreeRuneId`,
|
76
|
-
* - `InspirationTreeRuneId`,
|
77
|
-
*/
|
78
|
-
export type RuneId = typeof RuneIds[keyof typeof RuneIds];
|
79
|
-
export type RuneName = typeof RuneNames[keyof typeof RuneNames];
|
80
|
-
/**
|
81
|
-
* There are 3 main Rune ID types:
|
82
|
-
* - `RuneId` (all),
|
83
|
-
* - `TreeRuneId` (all but stat runes),
|
84
|
-
* - `StatRuneId` (only stat runes).
|
85
|
-
*
|
86
|
-
* There are 6 more specific Rune ID types as well:
|
87
|
-
* - `KeystoneRuneId`,
|
88
|
-
* - `PrecisionTreeRuneId`,
|
89
|
-
* - `DominationTreeRuneId`,
|
90
|
-
* - `SorceryTreeRuneId`,
|
91
|
-
* - `ResolveTreeRuneId`,
|
92
|
-
* - `InspirationTreeRuneId`,
|
93
|
-
*/
|
94
|
-
export type TreeRuneId = typeof TreeRuneIds[keyof typeof TreeRuneIds];
|
95
|
-
export type TreeRuneName = typeof TreeRuneNames[keyof typeof TreeRuneNames];
|
96
|
-
/**
|
97
|
-
* There are 3 main Rune ID types:
|
98
|
-
* - `RuneId` (all),
|
99
|
-
* - `TreeRuneId` (all but stat runes),
|
100
|
-
* - `StatRuneId` (only stat runes).
|
101
|
-
*
|
102
|
-
* There are 6 more specific Rune ID types as well:
|
103
|
-
* - `KeystoneRuneId`,
|
104
|
-
* - `PrecisionTreeRuneId`,
|
105
|
-
* - `DominationTreeRuneId`,
|
106
|
-
* - `SorceryTreeRuneId`,
|
107
|
-
* - `ResolveTreeRuneId`,
|
108
|
-
* - `InspirationTreeRuneId`,
|
109
|
-
*/
|
110
|
-
export type StatRuneId = typeof StatRuneIds[keyof typeof StatRuneIds];
|
111
|
-
export type StatRuneName = typeof StatRuneNames[keyof typeof StatRuneNames];
|
112
53
|
/**
|
113
54
|
* There are 3 main Rune ID types:
|
114
55
|
* - `RuneId` (all),
|
@@ -121,7 +62,7 @@ export type StatRuneName = typeof StatRuneNames[keyof typeof StatRuneNames];
|
|
121
62
|
* - `DominationTreeRuneId`,
|
122
63
|
* - `SorceryTreeRuneId`,
|
123
64
|
* - `ResolveTreeRuneId`,
|
124
|
-
* - `InspirationTreeRuneId
|
65
|
+
* - `InspirationTreeRuneId`.
|
125
66
|
*/
|
126
67
|
export type KeystoneRuneId = keyof typeof RuneSets.KeystoneNames;
|
127
68
|
export type KeystoneRuneName = keyof typeof RuneSetsByRuneNames.KeystoneIds;
|
@@ -137,7 +78,7 @@ export type KeystoneRuneName = keyof typeof RuneSetsByRuneNames.KeystoneIds;
|
|
137
78
|
* - `DominationTreeRuneId`,
|
138
79
|
* - `SorceryTreeRuneId`,
|
139
80
|
* - `ResolveTreeRuneId`,
|
140
|
-
* - `InspirationTreeRuneId
|
81
|
+
* - `InspirationTreeRuneId`.
|
141
82
|
*/
|
142
83
|
export type PrecisionTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Precision;
|
143
84
|
export type PrecisionTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Precision;
|
@@ -153,7 +94,7 @@ export type PrecisionTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRune
|
|
153
94
|
* - `DominationTreeRuneId`,
|
154
95
|
* - `SorceryTreeRuneId`,
|
155
96
|
* - `ResolveTreeRuneId`,
|
156
|
-
* - `InspirationTreeRuneId
|
97
|
+
* - `InspirationTreeRuneId`.
|
157
98
|
*/
|
158
99
|
export type DominationTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Domination;
|
159
100
|
export type DominationTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Domination;
|
@@ -169,7 +110,7 @@ export type DominationTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRun
|
|
169
110
|
* - `DominationTreeRuneId`,
|
170
111
|
* - `SorceryTreeRuneId`,
|
171
112
|
* - `ResolveTreeRuneId`,
|
172
|
-
* - `InspirationTreeRuneId
|
113
|
+
* - `InspirationTreeRuneId`.
|
173
114
|
*/
|
174
115
|
export type SorceryTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Sorcery;
|
175
116
|
export type SorceryTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Sorcery;
|
@@ -185,7 +126,7 @@ export type SorceryTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTr
|
|
185
126
|
* - `DominationTreeRuneId`,
|
186
127
|
* - `SorceryTreeRuneId`,
|
187
128
|
* - `ResolveTreeRuneId`,
|
188
|
-
* - `InspirationTreeRuneId
|
129
|
+
* - `InspirationTreeRuneId`.
|
189
130
|
*/
|
190
131
|
export type ResolveTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Resolve;
|
191
132
|
export type ResolveTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Resolve;
|
@@ -201,7 +142,7 @@ export type ResolveTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTr
|
|
201
142
|
* - `DominationTreeRuneId`,
|
202
143
|
* - `SorceryTreeRuneId`,
|
203
144
|
* - `ResolveTreeRuneId`,
|
204
|
-
* - `InspirationTreeRuneId
|
145
|
+
* - `InspirationTreeRuneId`.
|
205
146
|
*/
|
206
147
|
export type InspirationTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Inspiration;
|
207
148
|
export type InspirationTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Inspiration;
|
package/package.json
CHANGED