lol-constants 0.7.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Constants/RuneSets.d.ts +18 -0
- package/dist/Constants/RuneSets.js +166 -0
- package/dist/Constants/StatRuneIds.d.ts +2 -0
- package/dist/Constants/StatRuneIds.js +5 -0
- package/dist/Constants/StatRuneNames.d.ts +2 -0
- package/dist/Constants/StatRuneNames.js +5 -0
- package/dist/Constants/StatRunes.d.ts +9 -9
- package/dist/Constants/StatRunes.js +9 -9
- package/dist/Constants/SummonerSpellIds.d.ts +2 -0
- package/dist/Constants/SummonerSpellIds.js +8 -0
- package/dist/Constants/SummonerSpellKeys.d.ts +2 -0
- package/dist/Constants/SummonerSpellKeys.js +8 -0
- package/dist/Constants/SummonerSpellNames.d.ts +2 -0
- package/dist/Constants/SummonerSpellNames.js +8 -0
- package/dist/Constants/TreeRuneIds.d.ts +2 -0
- package/dist/Constants/TreeRuneIds.js +8 -0
- package/dist/Constants/TreeRuneNames.d.ts +2 -0
- package/dist/Constants/TreeRuneNames.js +8 -0
- package/dist/Helpers/generateSummonerSpellsByKey.d.ts +1 -0
- package/dist/Helpers/generateSummonerSpellsByKey.js +24 -0
- package/dist/Helpers/generateSummonerSpellsByName.d.ts +1 -0
- package/dist/Helpers/generateSummonerSpellsByName.js +24 -0
- package/dist/Helpers/getChampionKeyByName.d.ts +2 -0
- package/dist/Helpers/getChampionKeyByName.js +11 -0
- package/dist/Helpers/getChampionNameByKey.d.ts +2 -0
- package/dist/Helpers/getChampionNameByKey.js +11 -0
- package/dist/Helpers/getItemKeyByName.d.ts +2 -0
- package/dist/Helpers/getItemKeyByName.js +11 -0
- package/dist/Helpers/getItemNameByKey.d.ts +2 -0
- package/dist/Helpers/getItemNameByKey.js +11 -0
- package/dist/Helpers/getRuneIdByName.d.ts +2 -0
- package/dist/Helpers/getRuneIdByName.js +21 -0
- package/dist/Helpers/getRuneNameById.d.ts +2 -0
- package/dist/Helpers/getRuneNameById.js +15 -0
- package/dist/Helpers/getSummonerSpellKeyByName.d.ts +2 -0
- package/dist/Helpers/getSummonerSpellKeyByName.js +11 -0
- package/dist/Helpers/getSummonerSpellNameByKey.d.ts +2 -0
- package/dist/Helpers/getSummonerSpellNameByKey.js +11 -0
- package/dist/Helpers/isStatRuneId.d.ts +2 -0
- package/dist/Helpers/isStatRuneId.js +10 -0
- package/dist/Helpers/isStatRuneName.d.ts +2 -0
- package/dist/Helpers/isStatRuneName.js +10 -0
- package/dist/Helpers/isSummonerSpellId.d.ts +2 -0
- package/dist/Helpers/isSummonerSpellId.js +10 -0
- package/dist/Helpers/isSummonerSpellKey.d.ts +2 -0
- package/dist/Helpers/isSummonerSpellKey.js +10 -0
- package/dist/Helpers/isSummonerSpellName.d.ts +2 -0
- package/dist/Helpers/isSummonerSpellName.js +10 -0
- package/dist/Helpers/isTreeRuneId.d.ts +2 -0
- package/dist/Helpers/isTreeRuneId.js +10 -0
- package/dist/Helpers/isTreeRuneName.d.ts +2 -0
- package/dist/Helpers/isTreeRuneName.js +10 -0
- package/dist/index.d.ts +22 -6
- package/dist/index.js +45 -13
- package/dist/scripts/generate-all.js +4 -4
- package/dist/types/Meta.d.ts +7 -6
- package/dist/types/index.d.ts +19 -8
- package/package.json +2 -2
@@ -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
|
+
};
|
@@ -1,11 +1,11 @@
|
|
1
1
|
export declare const StatRunes: {
|
2
|
-
readonly '5001': "
|
3
|
-
readonly '5002': "
|
4
|
-
readonly '5003': "
|
5
|
-
readonly '5002f': "
|
6
|
-
readonly '5003f': "
|
7
|
-
readonly '5008f': "
|
8
|
-
readonly '5005': "
|
9
|
-
readonly '5007': "
|
10
|
-
readonly '5008': "
|
2
|
+
readonly '5001': "Defense (HP)";
|
3
|
+
readonly '5002': "Defense (AR)";
|
4
|
+
readonly '5003': "Defense (MR)";
|
5
|
+
readonly '5002f': "Flex (AR)";
|
6
|
+
readonly '5003f': "Flex (MR)";
|
7
|
+
readonly '5008f': "Flex (AF)";
|
8
|
+
readonly '5005': "Offense (AS)";
|
9
|
+
readonly '5007': "Offense (AH)";
|
10
|
+
readonly '5008': "Offense (AF)";
|
11
11
|
};
|
@@ -2,13 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.StatRunes = void 0;
|
4
4
|
exports.StatRunes = {
|
5
|
-
'5001': '
|
6
|
-
'5002': '
|
7
|
-
'5003': '
|
8
|
-
'5002f': '
|
9
|
-
'5003f': '
|
10
|
-
'5008f': '
|
11
|
-
'5005': '
|
12
|
-
'5007': '
|
13
|
-
'5008': '
|
5
|
+
'5001': 'Defense (HP)',
|
6
|
+
'5002': 'Defense (AR)',
|
7
|
+
'5003': 'Defense (MR)',
|
8
|
+
'5002f': 'Flex (AR)',
|
9
|
+
'5003f': 'Flex (MR)',
|
10
|
+
'5008f': 'Flex (AF)',
|
11
|
+
'5005': 'Offense (AS)',
|
12
|
+
'5007': 'Offense (AH)',
|
13
|
+
'5008': 'Offense (AF)',
|
14
14
|
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.SummonerSpellIds = void 0;
|
7
|
+
const summoner_json_1 = __importDefault(require("../assets/summoner.json"));
|
8
|
+
exports.SummonerSpellIds = (Object.keys(summoner_json_1.default.data).map(id => id));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.SummonerSpellKeys = void 0;
|
7
|
+
const summonerByKey_json_1 = __importDefault(require("../generated/summonerByKey.json"));
|
8
|
+
exports.SummonerSpellKeys = (Object.keys(summonerByKey_json_1.default.data).map(key => key));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.SummonerSpellNames = void 0;
|
7
|
+
const summonerByName_json_1 = __importDefault(require("../generated/summonerByName.json"));
|
8
|
+
exports.SummonerSpellNames = (Object.keys(summonerByName_json_1.default.data).map(name => name));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.TreeRuneIds = void 0;
|
7
|
+
const runesById_json_1 = __importDefault(require("../generated/runesById.json"));
|
8
|
+
exports.TreeRuneIds = (Object.keys(runesById_json_1.default).map(id => id));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.TreeRuneNames = void 0;
|
7
|
+
const runesByName_json_1 = __importDefault(require("../generated/runesByName.json"));
|
8
|
+
exports.TreeRuneNames = (Object.keys(runesByName_json_1.default).map(name => name));
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function generateSummonerSpellsByKey(): void;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.generateSummonerSpellsByKey = void 0;
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
8
|
+
const summoner_json_1 = __importDefault(require("../assets/summoner.json"));
|
9
|
+
function generateSummonerSpellsByKey() {
|
10
|
+
const summonersByKey = {
|
11
|
+
data: {},
|
12
|
+
version: '',
|
13
|
+
};
|
14
|
+
let summonerId;
|
15
|
+
for (summonerId in summoner_json_1.default.data) {
|
16
|
+
const summonerData = summoner_json_1.default.data[summonerId];
|
17
|
+
summonersByKey.data[summonerData.key] = {
|
18
|
+
...summonerData,
|
19
|
+
};
|
20
|
+
}
|
21
|
+
summonersByKey.version = summoner_json_1.default.version;
|
22
|
+
fs_1.default.writeFileSync(`src/generated/summonerByKey.json`, JSON.stringify(summonersByKey));
|
23
|
+
}
|
24
|
+
exports.generateSummonerSpellsByKey = generateSummonerSpellsByKey;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function generateSummonerSpellsByName(): void;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.generateSummonerSpellsByName = void 0;
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
8
|
+
const summoner_json_1 = __importDefault(require("../assets/summoner.json"));
|
9
|
+
function generateSummonerSpellsByName() {
|
10
|
+
const summonersByName = {
|
11
|
+
data: {},
|
12
|
+
version: '',
|
13
|
+
};
|
14
|
+
let summonerId;
|
15
|
+
for (summonerId in summoner_json_1.default.data) {
|
16
|
+
const summonerData = summoner_json_1.default.data[summonerId];
|
17
|
+
summonersByName.data[summonerData.name] = {
|
18
|
+
...summonerData,
|
19
|
+
};
|
20
|
+
}
|
21
|
+
summonersByName.version = summoner_json_1.default.version;
|
22
|
+
fs_1.default.writeFileSync(`src/generated/summonerByName.json`, JSON.stringify(summonersByName));
|
23
|
+
}
|
24
|
+
exports.generateSummonerSpellsByName = generateSummonerSpellsByName;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getChampionKeyByName = void 0;
|
7
|
+
const championByName_json_1 = __importDefault(require("../generated/championByName.json"));
|
8
|
+
function getChampionKeyByName(name) {
|
9
|
+
return championByName_json_1.default.data[name].key;
|
10
|
+
}
|
11
|
+
exports.getChampionKeyByName = getChampionKeyByName;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getChampionNameByKey = void 0;
|
7
|
+
const championByKey_json_1 = __importDefault(require("../generated/championByKey.json"));
|
8
|
+
function getChampionNameByKey(key) {
|
9
|
+
return championByKey_json_1.default.data[key].name;
|
10
|
+
}
|
11
|
+
exports.getChampionNameByKey = getChampionNameByKey;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getItemKeyByName = void 0;
|
7
|
+
const itemByName_json_1 = __importDefault(require("../generated/itemByName.json"));
|
8
|
+
function getItemKeyByName(name) {
|
9
|
+
return itemByName_json_1.default.data[name].key;
|
10
|
+
}
|
11
|
+
exports.getItemKeyByName = getItemKeyByName;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getItemNameByKey = void 0;
|
7
|
+
const item_json_1 = __importDefault(require("../assets/item.json"));
|
8
|
+
function getItemNameByKey(key) {
|
9
|
+
return item_json_1.default.data[key].name;
|
10
|
+
}
|
11
|
+
exports.getItemNameByKey = getItemNameByKey;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getRuneIdByName = void 0;
|
7
|
+
const runesByName_json_1 = __importDefault(require("../generated/runesByName.json"));
|
8
|
+
const StatRunes_1 = require("../Constants/StatRunes");
|
9
|
+
const isStatRuneName_1 = require("./isStatRuneName");
|
10
|
+
function getRuneIdByName(name) {
|
11
|
+
if ((0, isStatRuneName_1.isStatRuneName)(name)) {
|
12
|
+
let statRuneId;
|
13
|
+
for (statRuneId in StatRunes_1.StatRunes) {
|
14
|
+
if (StatRunes_1.StatRunes[statRuneId] == name)
|
15
|
+
return statRuneId;
|
16
|
+
}
|
17
|
+
return '5001';
|
18
|
+
}
|
19
|
+
return runesByName_json_1.default[name].id;
|
20
|
+
}
|
21
|
+
exports.getRuneIdByName = getRuneIdByName;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getRuneNameById = void 0;
|
7
|
+
const runesById_json_1 = __importDefault(require("../generated/runesById.json"));
|
8
|
+
const StatRunes_1 = require("../Constants/StatRunes");
|
9
|
+
const isStatRuneId_1 = require("./isStatRuneId");
|
10
|
+
function getRuneNameById(id) {
|
11
|
+
if ((0, isStatRuneId_1.isStatRuneId)(id))
|
12
|
+
return StatRunes_1.StatRunes[id];
|
13
|
+
return runesById_json_1.default[id].name;
|
14
|
+
}
|
15
|
+
exports.getRuneNameById = getRuneNameById;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getSummonerSpellKeyByName = void 0;
|
7
|
+
const summonerByName_json_1 = __importDefault(require("../generated/summonerByName.json"));
|
8
|
+
function getSummonerSpellKeyByName(name) {
|
9
|
+
return summonerByName_json_1.default.data[name].key;
|
10
|
+
}
|
11
|
+
exports.getSummonerSpellKeyByName = getSummonerSpellKeyByName;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getSummonerSpellNameByKey = void 0;
|
7
|
+
const summonerByKey_json_1 = __importDefault(require("../generated/summonerByKey.json"));
|
8
|
+
function getSummonerSpellNameByKey(key) {
|
9
|
+
return summonerByKey_json_1.default.data[key].name;
|
10
|
+
}
|
11
|
+
exports.getSummonerSpellNameByKey = getSummonerSpellNameByKey;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isStatRuneId = void 0;
|
4
|
+
const StatRuneIds_1 = require("../Constants/StatRuneIds");
|
5
|
+
function isStatRuneId(id) {
|
6
|
+
if (StatRuneIds_1.StatRuneIds.includes(id))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isStatRuneId = isStatRuneId;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isStatRuneName = void 0;
|
4
|
+
const StatRuneNames_1 = require("../Constants/StatRuneNames");
|
5
|
+
function isStatRuneName(name) {
|
6
|
+
if (StatRuneNames_1.StatRuneNames.includes(name))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isStatRuneName = isStatRuneName;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSummonerSpellId = void 0;
|
4
|
+
const SummonerSpellIds_1 = require("../Constants/SummonerSpellIds");
|
5
|
+
function isSummonerSpellId(id) {
|
6
|
+
if (SummonerSpellIds_1.SummonerSpellIds.includes(id))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isSummonerSpellId = isSummonerSpellId;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSummonerSpellKey = void 0;
|
4
|
+
const SummonerSpellKeys_1 = require("../Constants/SummonerSpellKeys");
|
5
|
+
function isSummonerSpellKey(key) {
|
6
|
+
if (SummonerSpellKeys_1.SummonerSpellKeys.includes(key))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isSummonerSpellKey = isSummonerSpellKey;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSummonerSpellName = void 0;
|
4
|
+
const SummonerSpellNames_1 = require("../Constants/SummonerSpellNames");
|
5
|
+
function isSummonerSpellName(name) {
|
6
|
+
if (SummonerSpellNames_1.SummonerSpellNames.includes(name))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isSummonerSpellName = isSummonerSpellName;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isTreeRuneId = void 0;
|
4
|
+
const TreeRuneIds_1 = require("../Constants/TreeRuneIds");
|
5
|
+
function isTreeRuneId(id) {
|
6
|
+
if (TreeRuneIds_1.TreeRuneIds.includes(id))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isTreeRuneId = isTreeRuneId;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isTreeRuneName = void 0;
|
4
|
+
const TreeRuneNames_1 = require("../Constants/TreeRuneNames");
|
5
|
+
function isTreeRuneName(name) {
|
6
|
+
if (TreeRuneNames_1.TreeRuneNames.includes(name))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isTreeRuneName = isTreeRuneName;
|
package/dist/index.d.ts
CHANGED
@@ -17232,10 +17232,14 @@ export { ItemKeys } from './Constants/ItemKeys';
|
|
17232
17232
|
export { ItemNames } from './Constants/ItemNames';
|
17233
17233
|
export { RuneIds } from './Constants/RuneIds';
|
17234
17234
|
export { RuneNames } from './Constants/RuneNames';
|
17235
|
+
export { StatRuneIds } from './Constants/StatRuneIds';
|
17236
|
+
export { StatRuneNames } from './Constants/StatRuneNames';
|
17235
17237
|
export { StatRunes } from './Constants/StatRunes';
|
17236
|
-
export {
|
17237
|
-
export {
|
17238
|
-
export {
|
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';
|
17239
17243
|
export declare const championByKey: {
|
17240
17244
|
data: {
|
17241
17245
|
"1": {
|
@@ -43393,14 +43397,26 @@ export declare const summonerByName: {
|
|
43393
43397
|
};
|
43394
43398
|
version: string;
|
43395
43399
|
};
|
43400
|
+
export { getChampionKeyByName } from './Helpers/getChampionKeyByName';
|
43401
|
+
export { getChampionNameByKey } from './Helpers/getChampionNameByKey';
|
43402
|
+
export { getItemKeyByName } from './Helpers/getItemKeyByName';
|
43403
|
+
export { getItemNameByKey } from './Helpers/getItemNameByKey';
|
43404
|
+
export { getRuneIdByName } from './Helpers/getRuneIdByName';
|
43405
|
+
export { getRuneNameById } from './Helpers/getRuneNameById';
|
43406
|
+
export { getSummonerSpellKeyByName } from './Helpers/getSummonerSpellKeyByName';
|
43407
|
+
export { getSummonerSpellNameByKey } from './Helpers/getSummonerSpellNameByKey';
|
43396
43408
|
export { isChampionKey } from './Helpers/isChampionKey';
|
43397
43409
|
export { isChampionName } from './Helpers/isChampionName';
|
43398
43410
|
export { isItemKey } from './Helpers/isItemKey';
|
43399
43411
|
export { isItemName } from './Helpers/isItemName';
|
43400
43412
|
export { isRuneId } from './Helpers/isRuneId';
|
43401
43413
|
export { isRuneName } from './Helpers/isRuneName';
|
43402
|
-
export {
|
43403
|
-
export {
|
43404
|
-
export {
|
43414
|
+
export { isStatRuneId } from './Helpers/isStatRuneId';
|
43415
|
+
export { isStatRuneName } from './Helpers/isStatRuneName';
|
43416
|
+
export { isSummonerSpellId } from './Helpers/isSummonerSpellId';
|
43417
|
+
export { isSummonerSpellKey } from './Helpers/isSummonerSpellKey';
|
43418
|
+
export { isSummonerSpellName } from './Helpers/isSummonerSpellName';
|
43419
|
+
export { isTreeRuneId } from './Helpers/isTreeRuneId';
|
43420
|
+
export { isTreeRuneName } from './Helpers/isTreeRuneName';
|
43405
43421
|
export * from './types';
|
43406
43422
|
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.
|
20
|
+
exports.isTreeRuneName = exports.isTreeRuneId = exports.isSummonerSpellName = exports.isSummonerSpellKey = exports.isSummonerSpellId = exports.isStatRuneName = exports.isStatRuneId = exports.isRuneName = exports.isRuneId = exports.isItemName = exports.isItemKey = exports.isChampionName = exports.isChampionKey = exports.getSummonerSpellNameByKey = exports.getSummonerSpellKeyByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getItemNameByKey = exports.getItemKeyByName = exports.getChampionNameByKey = exports.getChampionKeyByName = 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"));
|
@@ -40,14 +40,22 @@ var RuneIds_1 = require("./Constants/RuneIds");
|
|
40
40
|
Object.defineProperty(exports, "RuneIds", { enumerable: true, get: function () { return RuneIds_1.RuneIds; } });
|
41
41
|
var RuneNames_1 = require("./Constants/RuneNames");
|
42
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; } });
|
43
47
|
var StatRunes_1 = require("./Constants/StatRunes");
|
44
48
|
Object.defineProperty(exports, "StatRunes", { enumerable: true, get: function () { return StatRunes_1.StatRunes; } });
|
45
|
-
var
|
46
|
-
Object.defineProperty(exports, "
|
47
|
-
var
|
48
|
-
Object.defineProperty(exports, "
|
49
|
-
var
|
50
|
-
Object.defineProperty(exports, "
|
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; } });
|
51
59
|
const championByKey_json_1 = __importDefault(require("./generated/championByKey.json"));
|
52
60
|
const championByName_json_1 = __importDefault(require("./generated/championByName.json"));
|
53
61
|
const itemByName_json_1 = __importDefault(require("./generated/itemByName.json"));
|
@@ -62,6 +70,22 @@ exports.runesById = runesById_json_1.default;
|
|
62
70
|
exports.runesByName = runesByName_json_1.default;
|
63
71
|
exports.summonerByKey = summonerByKey_json_1.default;
|
64
72
|
exports.summonerByName = summonerByName_json_1.default;
|
73
|
+
var getChampionKeyByName_1 = require("./Helpers/getChampionKeyByName");
|
74
|
+
Object.defineProperty(exports, "getChampionKeyByName", { enumerable: true, get: function () { return getChampionKeyByName_1.getChampionKeyByName; } });
|
75
|
+
var getChampionNameByKey_1 = require("./Helpers/getChampionNameByKey");
|
76
|
+
Object.defineProperty(exports, "getChampionNameByKey", { enumerable: true, get: function () { return getChampionNameByKey_1.getChampionNameByKey; } });
|
77
|
+
var getItemKeyByName_1 = require("./Helpers/getItemKeyByName");
|
78
|
+
Object.defineProperty(exports, "getItemKeyByName", { enumerable: true, get: function () { return getItemKeyByName_1.getItemKeyByName; } });
|
79
|
+
var getItemNameByKey_1 = require("./Helpers/getItemNameByKey");
|
80
|
+
Object.defineProperty(exports, "getItemNameByKey", { enumerable: true, get: function () { return getItemNameByKey_1.getItemNameByKey; } });
|
81
|
+
var getRuneIdByName_1 = require("./Helpers/getRuneIdByName");
|
82
|
+
Object.defineProperty(exports, "getRuneIdByName", { enumerable: true, get: function () { return getRuneIdByName_1.getRuneIdByName; } });
|
83
|
+
var getRuneNameById_1 = require("./Helpers/getRuneNameById");
|
84
|
+
Object.defineProperty(exports, "getRuneNameById", { enumerable: true, get: function () { return getRuneNameById_1.getRuneNameById; } });
|
85
|
+
var getSummonerSpellKeyByName_1 = require("./Helpers/getSummonerSpellKeyByName");
|
86
|
+
Object.defineProperty(exports, "getSummonerSpellKeyByName", { enumerable: true, get: function () { return getSummonerSpellKeyByName_1.getSummonerSpellKeyByName; } });
|
87
|
+
var getSummonerSpellNameByKey_1 = require("./Helpers/getSummonerSpellNameByKey");
|
88
|
+
Object.defineProperty(exports, "getSummonerSpellNameByKey", { enumerable: true, get: function () { return getSummonerSpellNameByKey_1.getSummonerSpellNameByKey; } });
|
65
89
|
var isChampionKey_1 = require("./Helpers/isChampionKey");
|
66
90
|
Object.defineProperty(exports, "isChampionKey", { enumerable: true, get: function () { return isChampionKey_1.isChampionKey; } });
|
67
91
|
var isChampionName_1 = require("./Helpers/isChampionName");
|
@@ -74,11 +98,19 @@ var isRuneId_1 = require("./Helpers/isRuneId");
|
|
74
98
|
Object.defineProperty(exports, "isRuneId", { enumerable: true, get: function () { return isRuneId_1.isRuneId; } });
|
75
99
|
var isRuneName_1 = require("./Helpers/isRuneName");
|
76
100
|
Object.defineProperty(exports, "isRuneName", { enumerable: true, get: function () { return isRuneName_1.isRuneName; } });
|
77
|
-
var
|
78
|
-
Object.defineProperty(exports, "
|
79
|
-
var
|
80
|
-
Object.defineProperty(exports, "
|
81
|
-
var
|
82
|
-
Object.defineProperty(exports, "
|
101
|
+
var isStatRuneId_1 = require("./Helpers/isStatRuneId");
|
102
|
+
Object.defineProperty(exports, "isStatRuneId", { enumerable: true, get: function () { return isStatRuneId_1.isStatRuneId; } });
|
103
|
+
var isStatRuneName_1 = require("./Helpers/isStatRuneName");
|
104
|
+
Object.defineProperty(exports, "isStatRuneName", { enumerable: true, get: function () { return isStatRuneName_1.isStatRuneName; } });
|
105
|
+
var isSummonerSpellId_1 = require("./Helpers/isSummonerSpellId");
|
106
|
+
Object.defineProperty(exports, "isSummonerSpellId", { enumerable: true, get: function () { return isSummonerSpellId_1.isSummonerSpellId; } });
|
107
|
+
var isSummonerSpellKey_1 = require("./Helpers/isSummonerSpellKey");
|
108
|
+
Object.defineProperty(exports, "isSummonerSpellKey", { enumerable: true, get: function () { return isSummonerSpellKey_1.isSummonerSpellKey; } });
|
109
|
+
var isSummonerSpellName_1 = require("./Helpers/isSummonerSpellName");
|
110
|
+
Object.defineProperty(exports, "isSummonerSpellName", { enumerable: true, get: function () { return isSummonerSpellName_1.isSummonerSpellName; } });
|
111
|
+
var isTreeRuneId_1 = require("./Helpers/isTreeRuneId");
|
112
|
+
Object.defineProperty(exports, "isTreeRuneId", { enumerable: true, get: function () { return isTreeRuneId_1.isTreeRuneId; } });
|
113
|
+
var isTreeRuneName_1 = require("./Helpers/isTreeRuneName");
|
114
|
+
Object.defineProperty(exports, "isTreeRuneName", { enumerable: true, get: function () { return isTreeRuneName_1.isTreeRuneName; } });
|
83
115
|
__exportStar(require("./types"), exports);
|
84
116
|
__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
|
9
|
-
const
|
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,
|
17
|
-
(0,
|
16
|
+
(0, generateSummonerSpellsByKey_1.generateSummonerSpellsByKey)();
|
17
|
+
(0, generateSummonerSpellsByName_1.generateSummonerSpellsByName)();
|
18
18
|
};
|
19
19
|
generateJSONs();
|
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,19 +8,30 @@ 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;
|
14
15
|
export declare type ItemName = keyof typeof itemByName.data;
|
15
|
-
export declare type
|
16
|
-
export declare type
|
17
|
-
export declare type
|
18
|
-
export declare type RuneId =
|
19
|
-
export declare type RuneName =
|
16
|
+
export declare type SummonerSpellId = keyof typeof summoner.data;
|
17
|
+
export declare type SummonerSpellKey = keyof typeof summonerByKey.data;
|
18
|
+
export declare type SummonerSpellName = keyof typeof summonerByName.data;
|
19
|
+
export declare type RuneId = TreeRuneId | StatRuneId;
|
20
|
+
export declare type RuneName = TreeRuneName | StatRuneName;
|
21
|
+
export declare type TreeRuneId = keyof typeof runesById;
|
22
|
+
export declare type TreeRuneName = keyof typeof runesByName;
|
23
|
+
export declare type StatRuneId = keyof typeof StatRunes;
|
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>;
|
20
31
|
export declare type XP = number;
|
21
32
|
export declare type Minute = number;
|
22
|
-
export declare type
|
23
|
-
export declare type
|
24
|
-
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';
|
25
36
|
export declare type Level = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18;
|
26
37
|
export declare type Skill = 'Q' | 'W' | 'E' | 'R';
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "lol-constants",
|
3
|
-
"version": "0.
|
4
|
-
"description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner.",
|
3
|
+
"version": "0.10.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",
|