lol-constants 1.1.3 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Constants/DDPaths.js +1 -1
- package/dist/Constants/Lanes.d.ts +6 -0
- package/dist/Constants/Lanes.js +9 -0
- package/dist/Constants/Levels.d.ts +20 -0
- package/dist/Constants/Levels.js +23 -0
- package/dist/Constants/Positions.d.ts +7 -0
- package/dist/Constants/Positions.js +10 -0
- package/dist/Constants/Runes/RuneTreeNames.d.ts +7 -0
- package/dist/Constants/Runes/RuneTreeNames.js +10 -0
- package/dist/Constants/Runes/RuneTreeTypes.d.ts +4 -0
- package/dist/Constants/Runes/RuneTreeTypes.js +7 -0
- package/dist/Constants/Skills.d.ts +6 -0
- package/dist/Constants/Skills.js +9 -0
- package/dist/Helpers/Runes/isRuneTreeName.d.ts +2 -0
- package/dist/Helpers/Runes/isRuneTreeName.js +8 -0
- package/dist/Helpers/Runes/isRuneTreeType.d.ts +2 -0
- package/dist/Helpers/Runes/isRuneTreeType.js +8 -0
- package/dist/Helpers/isLane.d.ts +2 -0
- package/dist/Helpers/isLane.js +8 -0
- package/dist/Helpers/isLevel.d.ts +2 -0
- package/dist/Helpers/isLevel.js +8 -0
- package/dist/Helpers/isPosition.d.ts +2 -0
- package/dist/Helpers/isPosition.js +8 -0
- package/dist/Helpers/isSkill.d.ts +2 -0
- package/dist/Helpers/isSkill.js +8 -0
- package/dist/types/Meta.d.ts +1 -0
- package/dist/types/index.d.ts +12 -5
- package/package.json +1 -1
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.DDPaths = void 0;
|
4
4
|
const version = '12.12.1';
|
5
|
-
const base = `
|
5
|
+
const base = `https://ddragon.leagueoflegends.com/cdn/${version}`;
|
6
6
|
/**
|
7
7
|
* DataDragon CDN Paths.
|
8
8
|
*/
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export declare const Levels: {
|
2
|
+
readonly 1: 1;
|
3
|
+
readonly 2: 2;
|
4
|
+
readonly 3: 3;
|
5
|
+
readonly 4: 4;
|
6
|
+
readonly 5: 5;
|
7
|
+
readonly 6: 6;
|
8
|
+
readonly 7: 7;
|
9
|
+
readonly 8: 8;
|
10
|
+
readonly 9: 9;
|
11
|
+
readonly 10: 10;
|
12
|
+
readonly 11: 11;
|
13
|
+
readonly 12: 12;
|
14
|
+
readonly 13: 13;
|
15
|
+
readonly 14: 14;
|
16
|
+
readonly 15: 15;
|
17
|
+
readonly 16: 16;
|
18
|
+
readonly 17: 17;
|
19
|
+
readonly 18: 18;
|
20
|
+
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Levels = void 0;
|
4
|
+
exports.Levels = {
|
5
|
+
1: 1,
|
6
|
+
2: 2,
|
7
|
+
3: 3,
|
8
|
+
4: 4,
|
9
|
+
5: 5,
|
10
|
+
6: 6,
|
11
|
+
7: 7,
|
12
|
+
8: 8,
|
13
|
+
9: 9,
|
14
|
+
10: 10,
|
15
|
+
11: 11,
|
16
|
+
12: 12,
|
17
|
+
13: 13,
|
18
|
+
14: 14,
|
19
|
+
15: 15,
|
20
|
+
16: 16,
|
21
|
+
17: 17,
|
22
|
+
18: 18,
|
23
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RuneTreeNames = void 0;
|
4
|
+
exports.RuneTreeNames = {
|
5
|
+
'Precision': 'Precision',
|
6
|
+
'Domination': 'Domination',
|
7
|
+
'Sorcery': 'Sorcery',
|
8
|
+
'Resolve': 'Resolve',
|
9
|
+
'Inspiration': 'Inspiration',
|
10
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isRuneTreeName = void 0;
|
4
|
+
const RuneTreeNames_1 = require("../../Constants/Runes/RuneTreeNames");
|
5
|
+
function isRuneTreeName(name) {
|
6
|
+
return name in RuneTreeNames_1.RuneTreeNames;
|
7
|
+
}
|
8
|
+
exports.isRuneTreeName = isRuneTreeName;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isRuneTreeType = void 0;
|
4
|
+
const RuneTreeTypes_1 = require("../../Constants/Runes/RuneTreeTypes");
|
5
|
+
function isRuneTreeType(type) {
|
6
|
+
return type in RuneTreeTypes_1.RuneTreeTypes;
|
7
|
+
}
|
8
|
+
exports.isRuneTreeType = isRuneTreeType;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isPosition = void 0;
|
4
|
+
const Positions_1 = require("../Constants/Positions");
|
5
|
+
function isPosition(position) {
|
6
|
+
return position in Positions_1.Positions;
|
7
|
+
}
|
8
|
+
exports.isPosition = isPosition;
|
package/dist/types/Meta.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
export declare type ChampionRelationType = 'Ally' | 'Enemy';
|
1
2
|
export declare type Role = 'NONE' | 'SOLO' | 'CARRY' | 'SUPPORT';
|
2
3
|
export declare type Queue = 'RANKED_SOLO_5x5' | 'RANKED_FLEX_SR';
|
3
4
|
export declare type LeaguesTier = 'CHALLENGER' | 'GRANDMASTER' | 'MASTER' | 'DIAMOND' | 'PLATINUM' | 'GOLD' | 'SILVER' | 'BRONZE' | 'IRON';
|
package/dist/types/index.d.ts
CHANGED
@@ -13,6 +13,12 @@ import { StatRuneIds } from '../Constants/Runes/StatRuneIds';
|
|
13
13
|
import { StatRuneNames } from '../Constants/Runes/StatRuneNames';
|
14
14
|
import { TreeRuneIds } from '../Constants/Runes/TreeRuneIds';
|
15
15
|
import { TreeRuneNames } from '../Constants/Runes/TreeRuneNames';
|
16
|
+
import { Positions } from '../Constants/Positions';
|
17
|
+
import { Lanes } from '../Constants/Lanes';
|
18
|
+
import { RuneTreeNames } from '../Constants/Runes/RuneTreeNames';
|
19
|
+
import { RuneTreeTypes } from '../Constants/Runes/RuneTreeTypes';
|
20
|
+
import { Levels } from '../Constants/Levels';
|
21
|
+
import { Skills } from '../Constants/Skills';
|
16
22
|
export declare type ChampionId = typeof ChampionIds[keyof typeof ChampionIds];
|
17
23
|
export declare type ChampionKey = typeof ChampionKeys[keyof typeof ChampionKeys];
|
18
24
|
export declare type ChampionName = typeof ChampionNames[keyof typeof ChampionNames];
|
@@ -159,10 +165,11 @@ export declare type ResolveTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Resol
|
|
159
165
|
* - `InspirationTreeRuneId`,
|
160
166
|
*/
|
161
167
|
export declare type InspirationTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Inspiration;
|
168
|
+
export declare type RuneTreeName = keyof typeof RuneTreeNames;
|
169
|
+
export declare type RuneTreeType = keyof typeof RuneTreeTypes;
|
170
|
+
export declare type Position = keyof typeof Positions;
|
171
|
+
export declare type Lane = keyof typeof Lanes;
|
172
|
+
export declare type Level = keyof typeof Levels;
|
173
|
+
export declare type Skill = keyof typeof Skills;
|
162
174
|
export declare type XP = number;
|
163
175
|
export declare type Minute = number;
|
164
|
-
export declare type Position = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM' | 'UTILITY';
|
165
|
-
export declare type Lane = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM';
|
166
|
-
export declare type RuneTreeName = 'Precision' | 'Domination' | 'Sorcery' | 'Resolve' | 'Inspiration';
|
167
|
-
export declare type Level = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18;
|
168
|
-
export declare type Skill = 'Q' | 'W' | 'E' | 'R';
|
package/package.json
CHANGED