lol-constants 0.9.2 → 0.10.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.
- package/dist/Constants/RuneSets.d.ts +18 -0
- package/dist/Constants/RuneSets.js +166 -0
- package/dist/types/Meta.d.ts +7 -6
- package/dist/types/index.d.ts +10 -3
- package/package.json +1 -1
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare const RuneSets: {
|
2
|
+
readonly PrimaryTrees: {
|
3
|
+
readonly Precision: readonly ["8005", "8008", "8021", "8010", "9101", "9111", "8009", "9104", "9105", "9103", "8014", "8017", "8299"];
|
4
|
+
readonly Domination: readonly ["8112", "8124", "8128", "9923", "8126", "8139", "8143", "8136", "8138", "8135", "8134", "8105", "8106"];
|
5
|
+
readonly Sorcery: readonly ["8214", "8229", "8230", "8224", "8226", "8275", "8210", "8234", "8233", "8237", "8232", "8236"];
|
6
|
+
readonly Resolve: readonly ["8437", "8439", "8465", "8446", "8463", "8401", "8429", "8444", "8473", "8451", "8453", "8242"];
|
7
|
+
readonly Inspiration: readonly ["8351", "8360", "8369", "8306", "8304", "8313", "8321", "8316", "8345", "8347", "8410", "8352"];
|
8
|
+
};
|
9
|
+
readonly SecondaryTrees: {
|
10
|
+
readonly Precision: readonly ["9101", "9111", "8009", "9104", "9105", "9103", "8014", "8017", "8299"];
|
11
|
+
readonly Domination: readonly ["8126", "8139", "8143", "8136", "8138", "8135", "8134", "8105", "8106"];
|
12
|
+
readonly Sorcery: readonly ["8224", "8226", "8275", "8210", "8234", "8233", "8237", "8232", "8236"];
|
13
|
+
readonly Resolve: readonly ["8446", "8463", "8401", "8429", "8444", "8473", "8451", "8453", "8242"];
|
14
|
+
readonly Inspiration: readonly ["8306", "8304", "8313", "8321", "8316", "8345", "8347", "8410", "8352"];
|
15
|
+
};
|
16
|
+
readonly Keystones: readonly ["8005", "8008", "8021", "8010", "8112", "8124", "8128", "9923", "8214", "8229", "8230", "8437", "8439", "8465", "8351", "8360", "8369"];
|
17
|
+
readonly StatRunes: readonly ["5001", "5002", "5002f", "5003", "5003f", "5005", "5007", "5008", "5008f"];
|
18
|
+
};
|
@@ -0,0 +1,166 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RuneSets = void 0;
|
4
|
+
exports.RuneSets = {
|
5
|
+
PrimaryTrees: {
|
6
|
+
'Precision': [
|
7
|
+
'8005',
|
8
|
+
'8008',
|
9
|
+
'8021',
|
10
|
+
'8010',
|
11
|
+
'9101',
|
12
|
+
'9111',
|
13
|
+
'8009',
|
14
|
+
'9104',
|
15
|
+
'9105',
|
16
|
+
'9103',
|
17
|
+
'8014',
|
18
|
+
'8017',
|
19
|
+
'8299',
|
20
|
+
],
|
21
|
+
'Domination': [
|
22
|
+
'8112',
|
23
|
+
'8124',
|
24
|
+
'8128',
|
25
|
+
'9923',
|
26
|
+
'8126',
|
27
|
+
'8139',
|
28
|
+
'8143',
|
29
|
+
'8136',
|
30
|
+
'8138',
|
31
|
+
'8135',
|
32
|
+
'8134',
|
33
|
+
'8105',
|
34
|
+
'8106',
|
35
|
+
],
|
36
|
+
'Sorcery': [
|
37
|
+
'8214',
|
38
|
+
'8229',
|
39
|
+
'8230',
|
40
|
+
'8224',
|
41
|
+
'8226',
|
42
|
+
'8275',
|
43
|
+
'8210',
|
44
|
+
'8234',
|
45
|
+
'8233',
|
46
|
+
'8237',
|
47
|
+
'8232',
|
48
|
+
'8236',
|
49
|
+
],
|
50
|
+
'Resolve': [
|
51
|
+
'8437',
|
52
|
+
'8439',
|
53
|
+
'8465',
|
54
|
+
'8446',
|
55
|
+
'8463',
|
56
|
+
'8401',
|
57
|
+
'8429',
|
58
|
+
'8444',
|
59
|
+
'8473',
|
60
|
+
'8451',
|
61
|
+
'8453',
|
62
|
+
'8242',
|
63
|
+
],
|
64
|
+
'Inspiration': [
|
65
|
+
'8351',
|
66
|
+
'8360',
|
67
|
+
'8369',
|
68
|
+
'8306',
|
69
|
+
'8304',
|
70
|
+
'8313',
|
71
|
+
'8321',
|
72
|
+
'8316',
|
73
|
+
'8345',
|
74
|
+
'8347',
|
75
|
+
'8410',
|
76
|
+
'8352',
|
77
|
+
],
|
78
|
+
},
|
79
|
+
SecondaryTrees: {
|
80
|
+
'Precision': [
|
81
|
+
'9101',
|
82
|
+
'9111',
|
83
|
+
'8009',
|
84
|
+
'9104',
|
85
|
+
'9105',
|
86
|
+
'9103',
|
87
|
+
'8014',
|
88
|
+
'8017',
|
89
|
+
'8299',
|
90
|
+
],
|
91
|
+
'Domination': [
|
92
|
+
'8126',
|
93
|
+
'8139',
|
94
|
+
'8143',
|
95
|
+
'8136',
|
96
|
+
'8138',
|
97
|
+
'8135',
|
98
|
+
'8134',
|
99
|
+
'8105',
|
100
|
+
'8106',
|
101
|
+
],
|
102
|
+
'Sorcery': [
|
103
|
+
'8224',
|
104
|
+
'8226',
|
105
|
+
'8275',
|
106
|
+
'8210',
|
107
|
+
'8234',
|
108
|
+
'8233',
|
109
|
+
'8237',
|
110
|
+
'8232',
|
111
|
+
'8236',
|
112
|
+
],
|
113
|
+
'Resolve': [
|
114
|
+
'8446',
|
115
|
+
'8463',
|
116
|
+
'8401',
|
117
|
+
'8429',
|
118
|
+
'8444',
|
119
|
+
'8473',
|
120
|
+
'8451',
|
121
|
+
'8453',
|
122
|
+
'8242',
|
123
|
+
],
|
124
|
+
'Inspiration': [
|
125
|
+
'8306',
|
126
|
+
'8304',
|
127
|
+
'8313',
|
128
|
+
'8321',
|
129
|
+
'8316',
|
130
|
+
'8345',
|
131
|
+
'8347',
|
132
|
+
'8410',
|
133
|
+
'8352',
|
134
|
+
],
|
135
|
+
},
|
136
|
+
Keystones: [
|
137
|
+
'8005',
|
138
|
+
'8008',
|
139
|
+
'8021',
|
140
|
+
'8010',
|
141
|
+
'8112',
|
142
|
+
'8124',
|
143
|
+
'8128',
|
144
|
+
'9923',
|
145
|
+
'8214',
|
146
|
+
'8229',
|
147
|
+
'8230',
|
148
|
+
'8437',
|
149
|
+
'8439',
|
150
|
+
'8465',
|
151
|
+
'8351',
|
152
|
+
'8360',
|
153
|
+
'8369',
|
154
|
+
],
|
155
|
+
StatRunes: [
|
156
|
+
'5001',
|
157
|
+
'5002',
|
158
|
+
'5002f',
|
159
|
+
'5003',
|
160
|
+
'5003f',
|
161
|
+
'5005',
|
162
|
+
'5007',
|
163
|
+
'5008',
|
164
|
+
'5008f',
|
165
|
+
],
|
166
|
+
};
|
package/dist/types/Meta.d.ts
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
export declare type
|
2
|
-
export declare type
|
3
|
-
export declare type
|
4
|
-
export declare type
|
5
|
-
export declare type
|
1
|
+
export declare type Role = 'NONE' | 'SOLO' | 'CARRY' | 'SUPPORT';
|
2
|
+
export declare type Queue = 'RANKED_SOLO_5x5' | 'RANKED_FLEX_SR';
|
3
|
+
export declare type LeaguesTier = 'CHALLENGER' | 'GRANDMASTER' | 'MASTER' | 'DIAMOND' | 'PLATINUM' | 'GOLD' | 'SILVER' | 'BRONZE' | 'IRON';
|
4
|
+
export declare type LeaguesRank = 'I' | 'II' | 'III' | 'IV';
|
5
|
+
export declare type GameType = 'CUSTOM_GAME' | 'TUTORIAL_GAME' | 'MATCHED_GAME';
|
6
|
+
export declare type GameMode = 'CLASSIC' | 'ARAM' | 'TUTORIAL' | 'URF' | 'ONEFORALL' | 'KINGPORO' | 'GAMEMODEX' | 'ULTBOOK';
|
6
7
|
export declare type PlatformId = 'BR1' | 'EUN1' | 'EUW1' | 'JP1' | 'KR' | 'LA1' | 'LA2' | 'NA1' | 'OC1' | 'TR1' | 'RU';
|
7
8
|
export declare type Region = 'EUW' | 'EUNE' | 'NA' | 'KR' | 'JP' | 'OCE' | 'LAN' | 'LAS' | 'TR' | 'RU' | 'BR';
|
8
9
|
export declare type QueueId = 0 | 400 | 420 | 430 | 440 | 450 | 700 | 900 | 920 | 1020 | 1090 | 1100 | 1110 | 1111 | 1300 | 1400 | 1900;
|
9
10
|
export declare type MapId = 11 | 12 | 21 | 22;
|
10
11
|
export declare type TeamId = 100 | 200;
|
11
12
|
export declare type ParticipantId = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
12
|
-
export declare type
|
13
|
+
export declare type WardType = 'UNDEFINED' | 'YELLOW_TRINKET' | 'CONTROL_WARD';
|
package/dist/types/index.d.ts
CHANGED
@@ -8,6 +8,7 @@ import summonerByName from '../generated/summonerByName.json';
|
|
8
8
|
import runesById from '../generated/runesById.json';
|
9
9
|
import { StatRunes } from '../Constants/StatRunes';
|
10
10
|
import runesByName from '../generated/runesByName.json';
|
11
|
+
import { RuneSets } from '../Constants/RuneSets';
|
11
12
|
export declare type ChampionKey = keyof typeof championByKey.data;
|
12
13
|
export declare type ChampionName = keyof typeof championByName.data;
|
13
14
|
export declare type ItemKey = keyof typeof item.data;
|
@@ -21,10 +22,16 @@ export declare type TreeRuneId = keyof typeof runesById;
|
|
21
22
|
export declare type TreeRuneName = keyof typeof runesByName;
|
22
23
|
export declare type StatRuneId = keyof typeof StatRunes;
|
23
24
|
export declare type StatRuneName = typeof StatRunes[keyof typeof StatRunes];
|
25
|
+
export declare type KeystoneRuneId = Extract<typeof RuneSets.Keystones[keyof typeof RuneSets.Keystones], string>;
|
26
|
+
export declare type PrecisionTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Precision[keyof typeof RuneSets.PrimaryTrees.Precision], string>;
|
27
|
+
export declare type DominationTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Domination[keyof typeof RuneSets.PrimaryTrees.Domination], string>;
|
28
|
+
export declare type SorceryTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Sorcery[keyof typeof RuneSets.PrimaryTrees.Sorcery], string>;
|
29
|
+
export declare type ResolveTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Resolve[keyof typeof RuneSets.PrimaryTrees.Resolve], string>;
|
30
|
+
export declare type InspirationTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Inspiration[keyof typeof RuneSets.PrimaryTrees.Inspiration], string>;
|
24
31
|
export declare type XP = number;
|
25
32
|
export declare type Minute = number;
|
26
|
-
export declare type
|
27
|
-
export declare type
|
28
|
-
export declare type
|
33
|
+
export declare type Position = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM' | 'UTILITY';
|
34
|
+
export declare type Lane = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM';
|
35
|
+
export declare type RuneTreeName = 'Precision' | 'Domination' | 'Sorcery' | 'Resolve' | 'Inspiration';
|
29
36
|
export declare type Level = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18;
|
30
37
|
export declare type Skill = 'Q' | 'W' | 'E' | 'R';
|
package/package.json
CHANGED