lol-constants 1.1.2 → 1.2.1
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/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/isDominationTreeRuneId.d.ts +2 -0
- package/dist/Helpers/Runes/isDominationTreeRuneId.js +8 -0
- package/dist/Helpers/Runes/isInspirationTreeRuneId.d.ts +2 -0
- package/dist/Helpers/Runes/isInspirationTreeRuneId.js +8 -0
- package/dist/Helpers/Runes/isKeystoneRuneId.d.ts +2 -0
- package/dist/Helpers/Runes/isKeystoneRuneId.js +8 -0
- package/dist/Helpers/Runes/isPrecisionTreeRuneId.d.ts +2 -0
- package/dist/Helpers/Runes/isPrecisionTreeRuneId.js +8 -0
- package/dist/Helpers/Runes/isResolveTreeRuneId.d.ts +2 -0
- package/dist/Helpers/Runes/isResolveTreeRuneId.js +8 -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/Runes/isSorceryTreeRuneId.d.ts +2 -0
- package/dist/Helpers/Runes/isSorceryTreeRuneId.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/index.d.ts +25 -19
- package/dist/index.js +60 -52
- package/dist/types/Meta.d.ts +1 -0
- package/dist/types/index.d.ts +12 -5
- package/package.json +1 -1
@@ -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.isDominationTreeRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
|
+
function isDominationTreeRuneId(id) {
|
6
|
+
return id in RuneSets_1.PrimaryTrees.Domination;
|
7
|
+
}
|
8
|
+
exports.isDominationTreeRuneId = isDominationTreeRuneId;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isInspirationTreeRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
|
+
function isInspirationTreeRuneId(id) {
|
6
|
+
return id in RuneSets_1.PrimaryTrees.Inspiration;
|
7
|
+
}
|
8
|
+
exports.isInspirationTreeRuneId = isInspirationTreeRuneId;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isKeystoneRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
|
+
function isKeystoneRuneId(id) {
|
6
|
+
return id in RuneSets_1.Keystones;
|
7
|
+
}
|
8
|
+
exports.isKeystoneRuneId = isKeystoneRuneId;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isPrecisionTreeRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
|
+
function isPrecisionTreeRuneId(id) {
|
6
|
+
return id in RuneSets_1.PrimaryTrees.Precision;
|
7
|
+
}
|
8
|
+
exports.isPrecisionTreeRuneId = isPrecisionTreeRuneId;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isResolveTreeRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
|
+
function isResolveTreeRuneId(id) {
|
6
|
+
return id in RuneSets_1.PrimaryTrees.Resolve;
|
7
|
+
}
|
8
|
+
exports.isResolveTreeRuneId = isResolveTreeRuneId;
|
@@ -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.isSorceryTreeRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
|
+
function isSorceryTreeRuneId(id) {
|
6
|
+
return id in RuneSets_1.PrimaryTrees.Sorcery;
|
7
|
+
}
|
8
|
+
exports.isSorceryTreeRuneId = isSorceryTreeRuneId;
|
@@ -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/index.d.ts
CHANGED
@@ -1,53 +1,59 @@
|
|
1
|
+
export { DDPaths } from './Constants/DDPaths';
|
1
2
|
export { ChampionIds } from './Constants/Champions/ChampionIds';
|
2
3
|
export { ChampionIdsByName } from './Constants/Champions/ChampionIdsByName';
|
3
4
|
export { ChampionKeys } from './Constants/Champions/ChampionKeys';
|
4
5
|
export { ChampionNames } from './Constants/Champions/ChampionNames';
|
5
|
-
export { DDPaths } from './Constants/DDPaths';
|
6
6
|
export { ItemKeys } from './Constants/Items/ItemKeys';
|
7
7
|
export { ItemNames } from './Constants/Items/ItemNames';
|
8
8
|
export { RuneIds } from './Constants/Runes/RuneIds';
|
9
9
|
export { RuneNames } from './Constants/Runes/RuneNames';
|
10
10
|
export { RuneSets } from './Constants/Runes/RuneSets';
|
11
|
-
export { SpellIds } from './Constants/Spells/SpellIds';
|
12
|
-
export { SpellIdsByName } from './Constants/Spells/SpellIdsByName';
|
13
|
-
export { SpellKeys } from './Constants/Spells/SpellKeys';
|
14
|
-
export { SpellNames } from './Constants/Spells/SpellNames';
|
15
11
|
export { StatRuneIds } from './Constants/Runes/StatRuneIds';
|
16
12
|
export { StatRuneNames } from './Constants/Runes/StatRuneNames';
|
17
13
|
export { TreeRuneIds } from './Constants/Runes/TreeRuneIds';
|
18
14
|
export { TreeRuneNames } from './Constants/Runes/TreeRuneNames';
|
15
|
+
export { SpellIds } from './Constants/Spells/SpellIds';
|
16
|
+
export { SpellIdsByName } from './Constants/Spells/SpellIdsByName';
|
17
|
+
export { SpellKeys } from './Constants/Spells/SpellKeys';
|
18
|
+
export { SpellNames } from './Constants/Spells/SpellNames';
|
19
19
|
export { getChampionIdByKey } from './Helpers/Champions/getChampionIdByKey';
|
20
20
|
export { getChampionIdByName } from './Helpers/Champions/getChampionIdByName';
|
21
21
|
export { getChampionKeyById } from './Helpers/Champions/getChampionKeyById';
|
22
22
|
export { getChampionKeyByName } from './Helpers/Champions/getChampionKeyByName';
|
23
23
|
export { getChampionNameById } from './Helpers/Champions/getChampionNameById';
|
24
|
+
export { isChampionId } from './Helpers/Champions/isChampionId';
|
25
|
+
export { isChampionKey } from './Helpers/Champions/isChampionKey';
|
26
|
+
export { isChampionName } from './Helpers/Champions/isChampionName';
|
24
27
|
export { getItemKeyByName } from './Helpers/Items/getItemKeyByName';
|
25
28
|
export { getItemNameByKey } from './Helpers/Items/getItemNameByKey';
|
29
|
+
export { isItemKey } from './Helpers/Items/isItemKey';
|
30
|
+
export { isItemName } from './Helpers/Items/isItemName';
|
26
31
|
export { getRuneIdByName } from './Helpers/Runes/getRuneIdByName';
|
27
32
|
export { getRuneNameById } from './Helpers/Runes/getRuneNameById';
|
28
|
-
export { getSpellIdByKey } from './Helpers/Spells/getSpellIdByKey';
|
29
|
-
export { getSpellIdByName } from './Helpers/Spells/getSpellIdByName';
|
30
|
-
export { getSpellKeyById } from './Helpers/Spells/getSpellKeyById';
|
31
|
-
export { getSpellKeyByName } from './Helpers/Spells/getSpellKeyByName';
|
32
|
-
export { getSpellNameById } from './Helpers/Spells/getSpellNameById';
|
33
|
-
export { getSpellNameByKey } from './Helpers/Spells/getSpellNameByKey';
|
34
33
|
export { getStatRuneIdByName } from './Helpers/Runes/getStatRuneIdByName';
|
35
34
|
export { getStatRuneNameById } from './Helpers/Runes/getStatRuneNameById';
|
36
35
|
export { getTreeRuneIdByName } from './Helpers/Runes/getTreeRuneIdByName';
|
37
36
|
export { getTreeRuneNameById } from './Helpers/Runes/getTreeRuneNameById';
|
38
|
-
export {
|
39
|
-
export {
|
40
|
-
export {
|
41
|
-
export {
|
42
|
-
export {
|
37
|
+
export { isDominationTreeRuneId } from './Helpers/Runes/isDominationTreeRuneId';
|
38
|
+
export { isInspirationTreeRuneId } from './Helpers/Runes/isInspirationTreeRuneId';
|
39
|
+
export { isKeystoneRuneId } from './Helpers/Runes/isKeystoneRuneId';
|
40
|
+
export { isPrecisionTreeRuneId } from './Helpers/Runes/isPrecisionTreeRuneId';
|
41
|
+
export { isResolveTreeRuneId } from './Helpers/Runes/isResolveTreeRuneId';
|
43
42
|
export { isRuneId } from './Helpers/Runes/isRuneId';
|
44
43
|
export { isRuneName } from './Helpers/Runes/isRuneName';
|
45
|
-
export {
|
46
|
-
export { isSpellKey } from './Helpers/Spells/isSpellKey';
|
47
|
-
export { isSpellName } from './Helpers/Spells/isSpellName';
|
44
|
+
export { isSorceryTreeRuneId } from './Helpers/Runes/isSorceryTreeRuneId';
|
48
45
|
export { isStatRuneId } from './Helpers/Runes/isStatRuneId';
|
49
46
|
export { isStatRuneName } from './Helpers/Runes/isStatRuneName';
|
50
47
|
export { isTreeRuneId } from './Helpers/Runes/isTreeRuneId';
|
51
48
|
export { isTreeRuneName } from './Helpers/Runes/isTreeRuneName';
|
49
|
+
export { getSpellIdByKey } from './Helpers/Spells/getSpellIdByKey';
|
50
|
+
export { getSpellIdByName } from './Helpers/Spells/getSpellIdByName';
|
51
|
+
export { getSpellKeyById } from './Helpers/Spells/getSpellKeyById';
|
52
|
+
export { getSpellKeyByName } from './Helpers/Spells/getSpellKeyByName';
|
53
|
+
export { getSpellNameById } from './Helpers/Spells/getSpellNameById';
|
54
|
+
export { getSpellNameByKey } from './Helpers/Spells/getSpellNameByKey';
|
55
|
+
export { isSpellId } from './Helpers/Spells/isSpellId';
|
56
|
+
export { isSpellKey } from './Helpers/Spells/isSpellKey';
|
57
|
+
export { isSpellName } from './Helpers/Spells/isSpellName';
|
52
58
|
export * from './types';
|
53
59
|
export * from './types/Meta';
|
package/dist/index.js
CHANGED
@@ -14,9 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
exports.
|
18
|
-
exports.
|
17
|
+
exports.getSpellIdByName = exports.getSpellIdByKey = exports.isTreeRuneName = exports.isTreeRuneId = exports.isStatRuneName = exports.isStatRuneId = exports.isSorceryTreeRuneId = exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.isItemName = exports.isItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = exports.getChampionNameById = exports.getChampionKeyByName = exports.getChampionKeyById = exports.getChampionIdByName = exports.getChampionIdByKey = exports.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.TreeRuneNames = exports.TreeRuneIds = exports.StatRuneNames = exports.StatRuneIds = exports.RuneSets = exports.RuneNames = exports.RuneIds = exports.ItemNames = exports.ItemKeys = exports.ChampionNames = exports.ChampionKeys = exports.ChampionIdsByName = exports.ChampionIds = exports.DDPaths = void 0;
|
18
|
+
exports.isSpellName = exports.isSpellKey = exports.isSpellId = exports.getSpellNameByKey = exports.getSpellNameById = exports.getSpellKeyByName = exports.getSpellKeyById = void 0;
|
19
19
|
// # Constants
|
20
|
+
var DDPaths_1 = require("./Constants/DDPaths");
|
21
|
+
Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
|
22
|
+
// ## Champions
|
20
23
|
var ChampionIds_1 = require("./Constants/Champions/ChampionIds");
|
21
24
|
Object.defineProperty(exports, "ChampionIds", { enumerable: true, get: function () { return ChampionIds_1.ChampionIds; } });
|
22
25
|
var ChampionIdsByName_1 = require("./Constants/Champions/ChampionIdsByName");
|
@@ -25,26 +28,18 @@ var ChampionKeys_1 = require("./Constants/Champions/ChampionKeys");
|
|
25
28
|
Object.defineProperty(exports, "ChampionKeys", { enumerable: true, get: function () { return ChampionKeys_1.ChampionKeys; } });
|
26
29
|
var ChampionNames_1 = require("./Constants/Champions/ChampionNames");
|
27
30
|
Object.defineProperty(exports, "ChampionNames", { enumerable: true, get: function () { return ChampionNames_1.ChampionNames; } });
|
28
|
-
|
29
|
-
Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
|
31
|
+
// ## Items
|
30
32
|
var ItemKeys_1 = require("./Constants/Items/ItemKeys");
|
31
33
|
Object.defineProperty(exports, "ItemKeys", { enumerable: true, get: function () { return ItemKeys_1.ItemKeys; } });
|
32
34
|
var ItemNames_1 = require("./Constants/Items/ItemNames");
|
33
35
|
Object.defineProperty(exports, "ItemNames", { enumerable: true, get: function () { return ItemNames_1.ItemNames; } });
|
36
|
+
// ## Runes
|
34
37
|
var RuneIds_1 = require("./Constants/Runes/RuneIds");
|
35
38
|
Object.defineProperty(exports, "RuneIds", { enumerable: true, get: function () { return RuneIds_1.RuneIds; } });
|
36
39
|
var RuneNames_1 = require("./Constants/Runes/RuneNames");
|
37
40
|
Object.defineProperty(exports, "RuneNames", { enumerable: true, get: function () { return RuneNames_1.RuneNames; } });
|
38
41
|
var RuneSets_1 = require("./Constants/Runes/RuneSets");
|
39
42
|
Object.defineProperty(exports, "RuneSets", { enumerable: true, get: function () { return RuneSets_1.RuneSets; } });
|
40
|
-
var SpellIds_1 = require("./Constants/Spells/SpellIds");
|
41
|
-
Object.defineProperty(exports, "SpellIds", { enumerable: true, get: function () { return SpellIds_1.SpellIds; } });
|
42
|
-
var SpellIdsByName_1 = require("./Constants/Spells/SpellIdsByName");
|
43
|
-
Object.defineProperty(exports, "SpellIdsByName", { enumerable: true, get: function () { return SpellIdsByName_1.SpellIdsByName; } });
|
44
|
-
var SpellKeys_1 = require("./Constants/Spells/SpellKeys");
|
45
|
-
Object.defineProperty(exports, "SpellKeys", { enumerable: true, get: function () { return SpellKeys_1.SpellKeys; } });
|
46
|
-
var SpellNames_1 = require("./Constants/Spells/SpellNames");
|
47
|
-
Object.defineProperty(exports, "SpellNames", { enumerable: true, get: function () { return SpellNames_1.SpellNames; } });
|
48
43
|
var StatRuneIds_1 = require("./Constants/Runes/StatRuneIds");
|
49
44
|
Object.defineProperty(exports, "StatRuneIds", { enumerable: true, get: function () { return StatRuneIds_1.StatRuneIds; } });
|
50
45
|
var StatRuneNames_1 = require("./Constants/Runes/StatRuneNames");
|
@@ -53,8 +48,17 @@ var TreeRuneIds_1 = require("./Constants/Runes/TreeRuneIds");
|
|
53
48
|
Object.defineProperty(exports, "TreeRuneIds", { enumerable: true, get: function () { return TreeRuneIds_1.TreeRuneIds; } });
|
54
49
|
var TreeRuneNames_1 = require("./Constants/Runes/TreeRuneNames");
|
55
50
|
Object.defineProperty(exports, "TreeRuneNames", { enumerable: true, get: function () { return TreeRuneNames_1.TreeRuneNames; } });
|
51
|
+
// ## Spells
|
52
|
+
var SpellIds_1 = require("./Constants/Spells/SpellIds");
|
53
|
+
Object.defineProperty(exports, "SpellIds", { enumerable: true, get: function () { return SpellIds_1.SpellIds; } });
|
54
|
+
var SpellIdsByName_1 = require("./Constants/Spells/SpellIdsByName");
|
55
|
+
Object.defineProperty(exports, "SpellIdsByName", { enumerable: true, get: function () { return SpellIdsByName_1.SpellIdsByName; } });
|
56
|
+
var SpellKeys_1 = require("./Constants/Spells/SpellKeys");
|
57
|
+
Object.defineProperty(exports, "SpellKeys", { enumerable: true, get: function () { return SpellKeys_1.SpellKeys; } });
|
58
|
+
var SpellNames_1 = require("./Constants/Spells/SpellNames");
|
59
|
+
Object.defineProperty(exports, "SpellNames", { enumerable: true, get: function () { return SpellNames_1.SpellNames; } });
|
56
60
|
// # Helpers
|
57
|
-
// ##
|
61
|
+
// ## Champions
|
58
62
|
var getChampionIdByKey_1 = require("./Helpers/Champions/getChampionIdByKey");
|
59
63
|
Object.defineProperty(exports, "getChampionIdByKey", { enumerable: true, get: function () { return getChampionIdByKey_1.getChampionIdByKey; } });
|
60
64
|
var getChampionIdByName_1 = require("./Helpers/Champions/getChampionIdByName");
|
@@ -65,73 +69,77 @@ var getChampionKeyByName_1 = require("./Helpers/Champions/getChampionKeyByName")
|
|
65
69
|
Object.defineProperty(exports, "getChampionKeyByName", { enumerable: true, get: function () { return getChampionKeyByName_1.getChampionKeyByName; } });
|
66
70
|
var getChampionNameById_1 = require("./Helpers/Champions/getChampionNameById");
|
67
71
|
Object.defineProperty(exports, "getChampionNameById", { enumerable: true, get: function () { return getChampionNameById_1.getChampionNameById; } });
|
68
|
-
|
72
|
+
var isChampionId_1 = require("./Helpers/Champions/isChampionId");
|
73
|
+
Object.defineProperty(exports, "isChampionId", { enumerable: true, get: function () { return isChampionId_1.isChampionId; } });
|
74
|
+
var isChampionKey_1 = require("./Helpers/Champions/isChampionKey");
|
75
|
+
Object.defineProperty(exports, "isChampionKey", { enumerable: true, get: function () { return isChampionKey_1.isChampionKey; } });
|
76
|
+
var isChampionName_1 = require("./Helpers/Champions/isChampionName");
|
77
|
+
Object.defineProperty(exports, "isChampionName", { enumerable: true, get: function () { return isChampionName_1.isChampionName; } });
|
78
|
+
// ## Items
|
69
79
|
var getItemKeyByName_1 = require("./Helpers/Items/getItemKeyByName");
|
70
80
|
Object.defineProperty(exports, "getItemKeyByName", { enumerable: true, get: function () { return getItemKeyByName_1.getItemKeyByName; } });
|
71
81
|
var getItemNameByKey_1 = require("./Helpers/Items/getItemNameByKey");
|
72
82
|
Object.defineProperty(exports, "getItemNameByKey", { enumerable: true, get: function () { return getItemNameByKey_1.getItemNameByKey; } });
|
73
|
-
|
83
|
+
var isItemKey_1 = require("./Helpers/Items/isItemKey");
|
84
|
+
Object.defineProperty(exports, "isItemKey", { enumerable: true, get: function () { return isItemKey_1.isItemKey; } });
|
85
|
+
var isItemName_1 = require("./Helpers/Items/isItemName");
|
86
|
+
Object.defineProperty(exports, "isItemName", { enumerable: true, get: function () { return isItemName_1.isItemName; } });
|
87
|
+
// ## Runes
|
74
88
|
var getRuneIdByName_1 = require("./Helpers/Runes/getRuneIdByName");
|
75
89
|
Object.defineProperty(exports, "getRuneIdByName", { enumerable: true, get: function () { return getRuneIdByName_1.getRuneIdByName; } });
|
76
90
|
var getRuneNameById_1 = require("./Helpers/Runes/getRuneNameById");
|
77
91
|
Object.defineProperty(exports, "getRuneNameById", { enumerable: true, get: function () { return getRuneNameById_1.getRuneNameById; } });
|
78
|
-
// ##
|
79
|
-
var getSpellIdByKey_1 = require("./Helpers/Spells/getSpellIdByKey");
|
80
|
-
Object.defineProperty(exports, "getSpellIdByKey", { enumerable: true, get: function () { return getSpellIdByKey_1.getSpellIdByKey; } });
|
81
|
-
var getSpellIdByName_1 = require("./Helpers/Spells/getSpellIdByName");
|
82
|
-
Object.defineProperty(exports, "getSpellIdByName", { enumerable: true, get: function () { return getSpellIdByName_1.getSpellIdByName; } });
|
83
|
-
var getSpellKeyById_1 = require("./Helpers/Spells/getSpellKeyById");
|
84
|
-
Object.defineProperty(exports, "getSpellKeyById", { enumerable: true, get: function () { return getSpellKeyById_1.getSpellKeyById; } });
|
85
|
-
var getSpellKeyByName_1 = require("./Helpers/Spells/getSpellKeyByName");
|
86
|
-
Object.defineProperty(exports, "getSpellKeyByName", { enumerable: true, get: function () { return getSpellKeyByName_1.getSpellKeyByName; } });
|
87
|
-
var getSpellNameById_1 = require("./Helpers/Spells/getSpellNameById");
|
88
|
-
Object.defineProperty(exports, "getSpellNameById", { enumerable: true, get: function () { return getSpellNameById_1.getSpellNameById; } });
|
89
|
-
var getSpellNameByKey_1 = require("./Helpers/Spells/getSpellNameByKey");
|
90
|
-
Object.defineProperty(exports, "getSpellNameByKey", { enumerable: true, get: function () { return getSpellNameByKey_1.getSpellNameByKey; } });
|
91
|
-
// ##
|
92
92
|
var getStatRuneIdByName_1 = require("./Helpers/Runes/getStatRuneIdByName");
|
93
93
|
Object.defineProperty(exports, "getStatRuneIdByName", { enumerable: true, get: function () { return getStatRuneIdByName_1.getStatRuneIdByName; } });
|
94
94
|
var getStatRuneNameById_1 = require("./Helpers/Runes/getStatRuneNameById");
|
95
95
|
Object.defineProperty(exports, "getStatRuneNameById", { enumerable: true, get: function () { return getStatRuneNameById_1.getStatRuneNameById; } });
|
96
|
-
// ##
|
97
96
|
var getTreeRuneIdByName_1 = require("./Helpers/Runes/getTreeRuneIdByName");
|
98
97
|
Object.defineProperty(exports, "getTreeRuneIdByName", { enumerable: true, get: function () { return getTreeRuneIdByName_1.getTreeRuneIdByName; } });
|
99
98
|
var getTreeRuneNameById_1 = require("./Helpers/Runes/getTreeRuneNameById");
|
100
99
|
Object.defineProperty(exports, "getTreeRuneNameById", { enumerable: true, get: function () { return getTreeRuneNameById_1.getTreeRuneNameById; } });
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
var
|
110
|
-
Object.defineProperty(exports, "
|
111
|
-
var isItemName_1 = require("./Helpers/Items/isItemName");
|
112
|
-
Object.defineProperty(exports, "isItemName", { enumerable: true, get: function () { return isItemName_1.isItemName; } });
|
113
|
-
// ##
|
100
|
+
var isDominationTreeRuneId_1 = require("./Helpers/Runes/isDominationTreeRuneId");
|
101
|
+
Object.defineProperty(exports, "isDominationTreeRuneId", { enumerable: true, get: function () { return isDominationTreeRuneId_1.isDominationTreeRuneId; } });
|
102
|
+
var isInspirationTreeRuneId_1 = require("./Helpers/Runes/isInspirationTreeRuneId");
|
103
|
+
Object.defineProperty(exports, "isInspirationTreeRuneId", { enumerable: true, get: function () { return isInspirationTreeRuneId_1.isInspirationTreeRuneId; } });
|
104
|
+
var isKeystoneRuneId_1 = require("./Helpers/Runes/isKeystoneRuneId");
|
105
|
+
Object.defineProperty(exports, "isKeystoneRuneId", { enumerable: true, get: function () { return isKeystoneRuneId_1.isKeystoneRuneId; } });
|
106
|
+
var isPrecisionTreeRuneId_1 = require("./Helpers/Runes/isPrecisionTreeRuneId");
|
107
|
+
Object.defineProperty(exports, "isPrecisionTreeRuneId", { enumerable: true, get: function () { return isPrecisionTreeRuneId_1.isPrecisionTreeRuneId; } });
|
108
|
+
var isResolveTreeRuneId_1 = require("./Helpers/Runes/isResolveTreeRuneId");
|
109
|
+
Object.defineProperty(exports, "isResolveTreeRuneId", { enumerable: true, get: function () { return isResolveTreeRuneId_1.isResolveTreeRuneId; } });
|
114
110
|
var isRuneId_1 = require("./Helpers/Runes/isRuneId");
|
115
111
|
Object.defineProperty(exports, "isRuneId", { enumerable: true, get: function () { return isRuneId_1.isRuneId; } });
|
116
112
|
var isRuneName_1 = require("./Helpers/Runes/isRuneName");
|
117
113
|
Object.defineProperty(exports, "isRuneName", { enumerable: true, get: function () { return isRuneName_1.isRuneName; } });
|
118
|
-
|
119
|
-
|
120
|
-
Object.defineProperty(exports, "isSpellId", { enumerable: true, get: function () { return isSpellId_1.isSpellId; } });
|
121
|
-
var isSpellKey_1 = require("./Helpers/Spells/isSpellKey");
|
122
|
-
Object.defineProperty(exports, "isSpellKey", { enumerable: true, get: function () { return isSpellKey_1.isSpellKey; } });
|
123
|
-
var isSpellName_1 = require("./Helpers/Spells/isSpellName");
|
124
|
-
Object.defineProperty(exports, "isSpellName", { enumerable: true, get: function () { return isSpellName_1.isSpellName; } });
|
125
|
-
// ##
|
114
|
+
var isSorceryTreeRuneId_1 = require("./Helpers/Runes/isSorceryTreeRuneId");
|
115
|
+
Object.defineProperty(exports, "isSorceryTreeRuneId", { enumerable: true, get: function () { return isSorceryTreeRuneId_1.isSorceryTreeRuneId; } });
|
126
116
|
var isStatRuneId_1 = require("./Helpers/Runes/isStatRuneId");
|
127
117
|
Object.defineProperty(exports, "isStatRuneId", { enumerable: true, get: function () { return isStatRuneId_1.isStatRuneId; } });
|
128
118
|
var isStatRuneName_1 = require("./Helpers/Runes/isStatRuneName");
|
129
119
|
Object.defineProperty(exports, "isStatRuneName", { enumerable: true, get: function () { return isStatRuneName_1.isStatRuneName; } });
|
130
|
-
// ##
|
131
120
|
var isTreeRuneId_1 = require("./Helpers/Runes/isTreeRuneId");
|
132
121
|
Object.defineProperty(exports, "isTreeRuneId", { enumerable: true, get: function () { return isTreeRuneId_1.isTreeRuneId; } });
|
133
122
|
var isTreeRuneName_1 = require("./Helpers/Runes/isTreeRuneName");
|
134
123
|
Object.defineProperty(exports, "isTreeRuneName", { enumerable: true, get: function () { return isTreeRuneName_1.isTreeRuneName; } });
|
124
|
+
// ## Spells
|
125
|
+
var getSpellIdByKey_1 = require("./Helpers/Spells/getSpellIdByKey");
|
126
|
+
Object.defineProperty(exports, "getSpellIdByKey", { enumerable: true, get: function () { return getSpellIdByKey_1.getSpellIdByKey; } });
|
127
|
+
var getSpellIdByName_1 = require("./Helpers/Spells/getSpellIdByName");
|
128
|
+
Object.defineProperty(exports, "getSpellIdByName", { enumerable: true, get: function () { return getSpellIdByName_1.getSpellIdByName; } });
|
129
|
+
var getSpellKeyById_1 = require("./Helpers/Spells/getSpellKeyById");
|
130
|
+
Object.defineProperty(exports, "getSpellKeyById", { enumerable: true, get: function () { return getSpellKeyById_1.getSpellKeyById; } });
|
131
|
+
var getSpellKeyByName_1 = require("./Helpers/Spells/getSpellKeyByName");
|
132
|
+
Object.defineProperty(exports, "getSpellKeyByName", { enumerable: true, get: function () { return getSpellKeyByName_1.getSpellKeyByName; } });
|
133
|
+
var getSpellNameById_1 = require("./Helpers/Spells/getSpellNameById");
|
134
|
+
Object.defineProperty(exports, "getSpellNameById", { enumerable: true, get: function () { return getSpellNameById_1.getSpellNameById; } });
|
135
|
+
var getSpellNameByKey_1 = require("./Helpers/Spells/getSpellNameByKey");
|
136
|
+
Object.defineProperty(exports, "getSpellNameByKey", { enumerable: true, get: function () { return getSpellNameByKey_1.getSpellNameByKey; } });
|
137
|
+
var isSpellId_1 = require("./Helpers/Spells/isSpellId");
|
138
|
+
Object.defineProperty(exports, "isSpellId", { enumerable: true, get: function () { return isSpellId_1.isSpellId; } });
|
139
|
+
var isSpellKey_1 = require("./Helpers/Spells/isSpellKey");
|
140
|
+
Object.defineProperty(exports, "isSpellKey", { enumerable: true, get: function () { return isSpellKey_1.isSpellKey; } });
|
141
|
+
var isSpellName_1 = require("./Helpers/Spells/isSpellName");
|
142
|
+
Object.defineProperty(exports, "isSpellName", { enumerable: true, get: function () { return isSpellName_1.isSpellName; } });
|
135
143
|
// # scripts
|
136
144
|
// —
|
137
145
|
// # types
|
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