lol-constants 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Constants/Meta/ChampionRelationTypes.d.ts +4 -0
- package/dist/Constants/Meta/ChampionRelationTypes.js +7 -0
- package/dist/Helpers/Meta/isChampionRelationType.d.ts +2 -0
- package/dist/Helpers/Meta/isChampionRelationType.js +8 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -2
- package/dist/types/Meta.d.ts +2 -1
- package/package.json +1 -1
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isChampionRelationType = void 0;
|
4
|
+
const ChampionRelationTypes_1 = require("../../Constants/Meta/ChampionRelationTypes");
|
5
|
+
function isChampionRelationType(type) {
|
6
|
+
return type in ChampionRelationTypes_1.ChampionRelationTypes;
|
7
|
+
}
|
8
|
+
exports.isChampionRelationType = isChampionRelationType;
|
package/dist/index.d.ts
CHANGED
@@ -12,6 +12,7 @@ export { LegendaryItemKeys } from './Constants/Items/LegendaryItemKeys';
|
|
12
12
|
export { LegendaryItemNames } from './Constants/Items/LegendaryItemNames';
|
13
13
|
export { MythicItemKeys } from './Constants/Items/MythicItemKeys';
|
14
14
|
export { MythicItemNames } from './Constants/Items/MythicItemNames';
|
15
|
+
export { ChampionRelationTypes } from './Constants/Meta/ChampionRelationTypes';
|
15
16
|
export { RuneIconFileNames } from './Constants/Runes/RuneIconFileNames';
|
16
17
|
export { RunePickingRelationships } from './Constants/Runes/RunePickingRelationships';
|
17
18
|
export { PrimaryRuneTrees, SecondaryRuneTrees, KeystoneNames, StatRuneNames, RuneNames, RuneTreeHSets, StatRuneHSets, RuneSets, } from './Constants/Runes/RuneSets';
|
@@ -48,6 +49,7 @@ export { isLegendaryItemKey } from './Helpers/Items/isLegendaryItemKey';
|
|
48
49
|
export { isLegendaryItemName } from './Helpers/Items/isLegendaryItemName';
|
49
50
|
export { isMythicItemKey } from './Helpers/Items/isMythicItemKey';
|
50
51
|
export { isMythicItemName } from './Helpers/Items/isMythicItemName';
|
52
|
+
export { isChampionRelationType } from './Helpers/Meta/isChampionRelationType';
|
51
53
|
export { getRuneCategoryByRuneName } from './Helpers/Runes/getRuneCategoryByRuneName';
|
52
54
|
export { getRuneCDNURL } from './Helpers/Runes/getRuneCDNURL';
|
53
55
|
export { getRuneIdByName } from './Helpers/Runes/getRuneIdByName';
|
package/dist/index.js
CHANGED
@@ -14,8 +14,8 @@ 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.isSpellName = exports.isSpellKey = exports.isSpellId = exports.getSpellNameByKey = exports.getSpellNameById = exports.getSpellKeyByName = exports.getSpellKeyById = exports.getSpellIdByName = exports.getSpellIdByKey = exports.isTreeRuneName = exports.isTreeRuneId = exports.isStatRuneName = exports.isStatRuneId = exports.isSorceryTreeRuneId = exports.isRuneTreeName = exports.isRuneTreeId = exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneTreeNameById = exports.getRuneTreeIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getRuneCDNURL = exports.getRuneCategoryByRuneName = exports.isMythicItemName = exports.isMythicItemKey = exports.isLegendaryItemName = exports.isLegendaryItemKey = exports.isItemType = exports.isItemName = exports.isItemKey = exports.isBootsItemName = exports.isBootsItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = void 0;
|
17
|
+
exports.getChampionNameById = exports.getChampionKeyByName = exports.getChampionKeyById = exports.getChampionIdByName = exports.getChampionIdByKey = exports.isSkill = exports.isPosition = exports.isLevel = exports.isLane = exports.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.TreeRuneNames = exports.TreeRuneIds = exports.RuneTreeNames = exports.RuneTreeIds = exports.RuneSetsByRuneNames = exports.StatRuneHSetsByRuneNames = exports.RuneTreeHSetsByRuneNames = exports.RuneIds = exports.StatRuneIds = exports.KeystoneIds = exports.SecondaryRuneTreesByRuneNames = exports.PrimaryRuneTreesByRuneNames = exports.RuneSets = exports.StatRuneHSets = exports.RuneTreeHSets = exports.RuneNames = exports.StatRuneNames = exports.KeystoneNames = exports.SecondaryRuneTrees = exports.PrimaryRuneTrees = exports.RunePickingRelationships = exports.RuneIconFileNames = exports.ChampionRelationTypes = exports.MythicItemNames = exports.MythicItemKeys = exports.LegendaryItemNames = exports.LegendaryItemKeys = exports.ItemTypes = exports.ItemNames = exports.ItemKeys = exports.BootsItemNames = exports.BootsItemKeys = 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 = exports.getSpellIdByName = exports.getSpellIdByKey = exports.isTreeRuneName = exports.isTreeRuneId = exports.isStatRuneName = exports.isStatRuneId = exports.isSorceryTreeRuneId = exports.isRuneTreeName = exports.isRuneTreeId = exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneTreeNameById = exports.getRuneTreeIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getRuneCDNURL = exports.getRuneCategoryByRuneName = exports.isChampionRelationType = exports.isMythicItemName = exports.isMythicItemKey = exports.isLegendaryItemName = exports.isLegendaryItemKey = exports.isItemType = exports.isItemName = exports.isItemKey = exports.isBootsItemName = exports.isBootsItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = exports.getChampionNameByKey = void 0;
|
19
19
|
// # Constants
|
20
20
|
var DDPaths_1 = require("./Constants/DDPaths");
|
21
21
|
Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
|
@@ -47,6 +47,9 @@ var MythicItemKeys_1 = require("./Constants/Items/MythicItemKeys");
|
|
47
47
|
Object.defineProperty(exports, "MythicItemKeys", { enumerable: true, get: function () { return MythicItemKeys_1.MythicItemKeys; } });
|
48
48
|
var MythicItemNames_1 = require("./Constants/Items/MythicItemNames");
|
49
49
|
Object.defineProperty(exports, "MythicItemNames", { enumerable: true, get: function () { return MythicItemNames_1.MythicItemNames; } });
|
50
|
+
// ## Meta
|
51
|
+
var ChampionRelationTypes_1 = require("./Constants/Meta/ChampionRelationTypes");
|
52
|
+
Object.defineProperty(exports, "ChampionRelationTypes", { enumerable: true, get: function () { return ChampionRelationTypes_1.ChampionRelationTypes; } });
|
50
53
|
// ## Runes
|
51
54
|
var RuneIconFileNames_1 = require("./Constants/Runes/RuneIconFileNames");
|
52
55
|
Object.defineProperty(exports, "RuneIconFileNames", { enumerable: true, get: function () { return RuneIconFileNames_1.RuneIconFileNames; } });
|
@@ -138,6 +141,9 @@ var isMythicItemKey_1 = require("./Helpers/Items/isMythicItemKey");
|
|
138
141
|
Object.defineProperty(exports, "isMythicItemKey", { enumerable: true, get: function () { return isMythicItemKey_1.isMythicItemKey; } });
|
139
142
|
var isMythicItemName_1 = require("./Helpers/Items/isMythicItemName");
|
140
143
|
Object.defineProperty(exports, "isMythicItemName", { enumerable: true, get: function () { return isMythicItemName_1.isMythicItemName; } });
|
144
|
+
// ## Meta
|
145
|
+
var isChampionRelationType_1 = require("./Helpers/Meta/isChampionRelationType");
|
146
|
+
Object.defineProperty(exports, "isChampionRelationType", { enumerable: true, get: function () { return isChampionRelationType_1.isChampionRelationType; } });
|
141
147
|
// ## Runes
|
142
148
|
var getRuneCategoryByRuneName_1 = require("./Helpers/Runes/getRuneCategoryByRuneName");
|
143
149
|
Object.defineProperty(exports, "getRuneCategoryByRuneName", { enumerable: true, get: function () { return getRuneCategoryByRuneName_1.getRuneCategoryByRuneName; } });
|
package/dist/types/Meta.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { ChampionRelationTypes } from '../Constants/Meta/ChampionRelationTypes';
|
2
|
+
export declare type ChampionRelationType = keyof typeof ChampionRelationTypes;
|
2
3
|
export declare type Role = 'NONE' | 'SOLO' | 'CARRY' | 'SUPPORT';
|
3
4
|
export declare type Queue = 'RANKED_SOLO_5x5' | 'RANKED_FLEX_SR';
|
4
5
|
export declare type LeaguesTier = 'CHALLENGER' | 'GRANDMASTER' | 'MASTER' | 'DIAMOND' | 'PLATINUM' | 'GOLD' | 'SILVER' | 'BRONZE' | 'IRON';
|
package/package.json
CHANGED