lol-constants 0.10.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/{dist/Constants → assets}/StatRunes.d.ts +0 -0
- package/{dist/Constants → assets}/StatRunes.js +0 -0
- package/assets/champion.json +1 -0
- package/assets/index.d.ts +17216 -0
- package/assets/index.js +17 -0
- package/assets/item.json +1 -0
- package/assets/runesReforged.json +1 -0
- package/assets/scripts/Helpers/getExportStatement.d.ts +6 -0
- package/assets/scripts/Helpers/getExportStatement.js +10 -0
- package/assets/scripts/generate-all.d.ts +16 -0
- package/assets/scripts/generate-all.js +18 -0
- package/{dist/scripts/generate-all.d.ts → assets/scripts/generate-champion-ids-by-name.d.ts} +0 -0
- package/assets/scripts/generate-champion-ids-by-name.js +20 -0
- package/assets/scripts/generate-champion-ids.d.ts +1 -0
- package/assets/scripts/generate-champion-ids.js +20 -0
- package/assets/scripts/generate-champion-keys.d.ts +1 -0
- package/assets/scripts/generate-champion-keys.js +20 -0
- package/assets/scripts/generate-champion-names.d.ts +1 -0
- package/assets/scripts/generate-champion-names.js +20 -0
- package/assets/scripts/generate-item-keys.d.ts +1 -0
- package/assets/scripts/generate-item-keys.js +21 -0
- package/assets/scripts/generate-item-names.d.ts +1 -0
- package/assets/scripts/generate-item-names.js +21 -0
- package/assets/scripts/generate-rune-ids.d.ts +1 -0
- package/assets/scripts/generate-rune-ids.js +29 -0
- package/assets/scripts/generate-rune-names.d.ts +1 -0
- package/assets/scripts/generate-rune-names.js +29 -0
- package/assets/scripts/generate-spell-ids-by-name.d.ts +1 -0
- package/assets/scripts/generate-spell-ids-by-name.js +20 -0
- package/assets/scripts/generate-spell-ids.d.ts +1 -0
- package/assets/scripts/generate-spell-ids.js +20 -0
- package/assets/scripts/generate-spell-keys.d.ts +1 -0
- package/assets/scripts/generate-spell-keys.js +20 -0
- package/assets/scripts/generate-spell-names.d.ts +1 -0
- package/assets/scripts/generate-spell-names.js +20 -0
- package/assets/scripts/generate-stat-rune-ids.d.ts +1 -0
- package/assets/scripts/generate-stat-rune-ids.js +20 -0
- package/assets/scripts/generate-stat-rune-names.d.ts +1 -0
- package/assets/scripts/generate-stat-rune-names.js +20 -0
- package/assets/scripts/generate-tree-rune-ids.d.ts +1 -0
- package/{dist/Helpers/generateRunesById.js → assets/scripts/generate-tree-rune-ids.js} +8 -8
- package/assets/scripts/generate-tree-rune-names.d.ts +1 -0
- package/{dist/Helpers/generateRunesByName.js → assets/scripts/generate-tree-rune-names.js} +8 -8
- package/{dist/assets → assets}/summoner.json +1 -1
- package/dist/Constants/ChampionIds.d.ts +162 -0
- package/dist/Constants/ChampionIds.js +4 -0
- package/dist/Constants/ChampionIdsByName.d.ts +162 -0
- package/dist/Constants/ChampionIdsByName.js +4 -0
- package/dist/Constants/ChampionKeys.d.ts +162 -2
- package/dist/Constants/ChampionKeys.js +1 -5
- package/dist/Constants/ChampionNames.d.ts +162 -2
- package/dist/Constants/ChampionNames.js +1 -5
- package/dist/Constants/DDPaths.d.ts +24 -6
- package/dist/Constants/DDPaths.js +26 -8
- package/dist/Constants/ItemKeys.d.ts +250 -2
- package/dist/Constants/ItemKeys.js +1 -5
- package/dist/Constants/ItemNames.d.ts +256 -2
- package/dist/Constants/ItemNames.js +1 -5
- package/dist/Constants/RuneIds.d.ts +74 -2
- package/dist/Constants/RuneIds.js +1 -9
- package/dist/Constants/RuneNames.d.ts +74 -2
- package/dist/Constants/RuneNames.js +1 -5
- package/dist/Constants/RuneSets.d.ts +34 -0
- package/dist/Constants/RuneSets.js +15 -15
- package/dist/Constants/SpellIds.d.ts +18 -0
- package/dist/Constants/SpellIds.js +4 -0
- package/dist/Constants/SpellIdsByName.d.ts +17 -0
- package/dist/Constants/SpellIdsByName.js +4 -0
- package/dist/Constants/SpellKeys.d.ts +18 -0
- package/dist/Constants/SpellKeys.js +4 -0
- package/dist/Constants/SpellNames.d.ts +18 -0
- package/dist/Constants/SpellNames.js +4 -0
- package/dist/Constants/StatRuneIds.d.ts +11 -2
- package/dist/Constants/StatRuneIds.js +1 -2
- package/dist/Constants/StatRuneNames.d.ts +11 -2
- package/dist/Constants/StatRuneNames.js +1 -2
- package/dist/Constants/TreeRuneIds.d.ts +65 -2
- package/dist/Constants/TreeRuneIds.js +1 -5
- package/dist/Constants/TreeRuneNames.d.ts +65 -2
- package/dist/Constants/TreeRuneNames.js +1 -5
- package/dist/Helpers/getChampionIdByKey.d.ts +2 -0
- package/dist/Helpers/getChampionIdByKey.js +8 -0
- package/dist/Helpers/getChampionIdByName.d.ts +2 -0
- package/dist/Helpers/getChampionIdByName.js +8 -0
- package/dist/Helpers/getChampionKeyById.d.ts +2 -0
- package/dist/Helpers/getChampionKeyById.js +8 -0
- package/dist/Helpers/getChampionKeyByName.js +3 -5
- package/dist/Helpers/getChampionNameById.d.ts +2 -0
- package/dist/Helpers/getChampionNameById.js +9 -0
- package/dist/Helpers/getChampionNameByKey.js +2 -5
- package/dist/Helpers/getItemKeyByName.js +2 -5
- package/dist/Helpers/getItemNameByKey.js +2 -5
- package/dist/Helpers/getRuneIdByName.js +2 -17
- package/dist/Helpers/getRuneNameById.js +2 -9
- package/dist/Helpers/getSpellIdByKey.d.ts +2 -0
- package/dist/Helpers/getSpellIdByKey.js +8 -0
- package/dist/Helpers/getSpellIdByName.d.ts +2 -0
- package/dist/Helpers/getSpellIdByName.js +8 -0
- package/dist/Helpers/getSpellKeyById.d.ts +2 -0
- package/dist/Helpers/getSpellKeyById.js +8 -0
- package/dist/Helpers/getSpellKeyByName.d.ts +2 -0
- package/dist/Helpers/getSpellKeyByName.js +9 -0
- package/dist/Helpers/getSpellNameById.d.ts +2 -0
- package/dist/Helpers/getSpellNameById.js +9 -0
- package/dist/Helpers/getSpellNameByKey.d.ts +2 -0
- package/dist/Helpers/getSpellNameByKey.js +8 -0
- package/dist/Helpers/getStatRuneIdByName.d.ts +2 -0
- package/dist/Helpers/getStatRuneIdByName.js +8 -0
- package/dist/Helpers/getStatRuneNameById.d.ts +2 -0
- package/dist/Helpers/getStatRuneNameById.js +8 -0
- package/dist/Helpers/getTreeRuneIdByName.d.ts +2 -0
- package/dist/Helpers/getTreeRuneIdByName.js +8 -0
- package/dist/Helpers/getTreeRuneNameById.d.ts +2 -0
- package/dist/Helpers/getTreeRuneNameById.js +8 -0
- package/dist/Helpers/isChampionId.d.ts +2 -0
- package/dist/Helpers/isChampionId.js +8 -0
- package/dist/Helpers/isChampionKey.d.ts +1 -1
- package/dist/Helpers/isChampionKey.js +2 -4
- package/dist/Helpers/isChampionName.d.ts +1 -1
- package/dist/Helpers/isChampionName.js +2 -4
- package/dist/Helpers/isItemKey.d.ts +1 -1
- package/dist/Helpers/isItemKey.js +2 -4
- package/dist/Helpers/isItemName.d.ts +1 -1
- package/dist/Helpers/isItemName.js +2 -4
- package/dist/Helpers/isRuneId.d.ts +1 -1
- package/dist/Helpers/isRuneId.js +2 -4
- package/dist/Helpers/isRuneName.d.ts +1 -1
- package/dist/Helpers/isRuneName.js +2 -4
- package/dist/Helpers/isSpellId.d.ts +2 -0
- package/dist/Helpers/isSpellId.js +8 -0
- package/dist/Helpers/isSpellKey.d.ts +2 -0
- package/dist/Helpers/isSpellKey.js +8 -0
- package/dist/Helpers/isSpellName.d.ts +2 -0
- package/dist/Helpers/isSpellName.js +8 -0
- package/dist/Helpers/isStatRuneId.d.ts +1 -1
- package/dist/Helpers/isStatRuneId.js +2 -4
- package/dist/Helpers/isStatRuneName.d.ts +1 -1
- package/dist/Helpers/isStatRuneName.js +2 -4
- package/dist/Helpers/isTreeRuneId.d.ts +1 -1
- package/dist/Helpers/isTreeRuneId.js +2 -4
- package/dist/Helpers/isTreeRuneName.d.ts +1 -1
- package/dist/Helpers/isTreeRuneName.js +2 -4
- package/dist/index.d.ts +24 -43394
- package/dist/index.js +74 -48
- package/dist/types/index.d.ts +28 -23
- package/package.json +4 -3
- package/dist/Constants/SummonerIds.d.ts +0 -2
- package/dist/Constants/SummonerIds.js +0 -8
- package/dist/Constants/SummonerKeys.d.ts +0 -2
- package/dist/Constants/SummonerKeys.js +0 -8
- package/dist/Constants/SummonerNames.d.ts +0 -2
- package/dist/Constants/SummonerNames.js +0 -8
- package/dist/Constants/SummonerSpellIds.d.ts +0 -2
- package/dist/Constants/SummonerSpellIds.js +0 -8
- package/dist/Constants/SummonerSpellKeys.d.ts +0 -2
- package/dist/Constants/SummonerSpellKeys.js +0 -8
- package/dist/Constants/SummonerSpellNames.d.ts +0 -2
- package/dist/Constants/SummonerSpellNames.js +0 -8
- package/dist/Helpers/generateChampionsByKey.d.ts +0 -1
- package/dist/Helpers/generateChampionsByKey.js +0 -25
- package/dist/Helpers/generateChampionsByName.d.ts +0 -1
- package/dist/Helpers/generateChampionsByName.js +0 -25
- package/dist/Helpers/generateItemsByName.d.ts +0 -1
- package/dist/Helpers/generateItemsByName.js +0 -30
- package/dist/Helpers/generateRunesById.d.ts +0 -1
- package/dist/Helpers/generateRunesByName.d.ts +0 -1
- package/dist/Helpers/generateSummonerSpellsByKey.d.ts +0 -1
- package/dist/Helpers/generateSummonerSpellsByKey.js +0 -27
- package/dist/Helpers/generateSummonerSpellsByName.d.ts +0 -1
- package/dist/Helpers/generateSummonerSpellsByName.js +0 -27
- package/dist/Helpers/generateSummonersByKey.d.ts +0 -1
- package/dist/Helpers/generateSummonersByKey.js +0 -24
- package/dist/Helpers/generateSummonersByName.d.ts +0 -1
- package/dist/Helpers/generateSummonersByName.js +0 -24
- package/dist/Helpers/getSummonerSpellKeyByName.d.ts +0 -2
- package/dist/Helpers/getSummonerSpellKeyByName.js +0 -11
- package/dist/Helpers/getSummonerSpellNameByKey.d.ts +0 -2
- package/dist/Helpers/getSummonerSpellNameByKey.js +0 -11
- package/dist/Helpers/isSummonerId.d.ts +0 -2
- package/dist/Helpers/isSummonerId.js +0 -10
- package/dist/Helpers/isSummonerKey.d.ts +0 -2
- package/dist/Helpers/isSummonerKey.js +0 -10
- package/dist/Helpers/isSummonerName.d.ts +0 -2
- package/dist/Helpers/isSummonerName.js +0 -10
- package/dist/Helpers/isSummonerSpellId.d.ts +0 -2
- package/dist/Helpers/isSummonerSpellId.js +0 -10
- package/dist/Helpers/isSummonerSpellKey.d.ts +0 -2
- package/dist/Helpers/isSummonerSpellKey.js +0 -10
- package/dist/Helpers/isSummonerSpellName.d.ts +0 -2
- package/dist/Helpers/isSummonerSpellName.js +0 -10
- package/dist/assets/champion.json +0 -1
- package/dist/assets/item.json +0 -1
- package/dist/assets/runesReforged.json +0 -1
- package/dist/generated/championByKey.json +0 -1
- package/dist/generated/championByName.json +0 -1
- package/dist/generated/itemByKey.json +0 -1
- package/dist/generated/itemByName.json +0 -1
- package/dist/generated/runesById.json +0 -1
- package/dist/generated/runesByName.json +0 -1
- package/dist/generated/summonerByKey.json +0 -1
- package/dist/generated/summonerByName.json +0 -1
- package/dist/scripts/generate-all.js +0 -19
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isChampionName = void 0;
|
4
|
-
const
|
4
|
+
const ChampionIdsByName_1 = require("../Constants/ChampionIdsByName");
|
5
5
|
function isChampionName(name) {
|
6
|
-
|
7
|
-
return true;
|
8
|
-
return false;
|
6
|
+
return name in ChampionIdsByName_1.ChampionIdsByName;
|
9
7
|
}
|
10
8
|
exports.isChampionName = isChampionName;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ItemKey } from '../types';
|
2
|
-
export declare function isItemKey(key:
|
2
|
+
export declare function isItemKey(key: string): key is ItemKey;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isItemKey = void 0;
|
4
|
-
const
|
4
|
+
const ItemNames_1 = require("../Constants/ItemNames");
|
5
5
|
function isItemKey(key) {
|
6
|
-
|
7
|
-
return true;
|
8
|
-
return false;
|
6
|
+
return key in ItemNames_1.ItemNames;
|
9
7
|
}
|
10
8
|
exports.isItemKey = isItemKey;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ItemName } from '../types';
|
2
|
-
export declare function isItemName(name:
|
2
|
+
export declare function isItemName(name: string): name is ItemName;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isItemName = void 0;
|
4
|
-
const
|
4
|
+
const ItemKeys_1 = require("../Constants/ItemKeys");
|
5
5
|
function isItemName(name) {
|
6
|
-
|
7
|
-
return true;
|
8
|
-
return false;
|
6
|
+
return name in ItemKeys_1.ItemKeys;
|
9
7
|
}
|
10
8
|
exports.isItemName = isItemName;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { RuneId } from '../types';
|
2
|
-
export declare function isRuneId(id:
|
2
|
+
export declare function isRuneId(id: string): id is RuneId;
|
package/dist/Helpers/isRuneId.js
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isRuneId = void 0;
|
4
|
-
const
|
4
|
+
const RuneNames_1 = require("../Constants/RuneNames");
|
5
5
|
function isRuneId(id) {
|
6
|
-
|
7
|
-
return true;
|
8
|
-
return false;
|
6
|
+
return id in RuneNames_1.RuneNames;
|
9
7
|
}
|
10
8
|
exports.isRuneId = isRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { RuneName } from '../types';
|
2
|
-
export declare function isRuneName(name:
|
2
|
+
export declare function isRuneName(name: string): name is RuneName;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isRuneName = void 0;
|
4
|
-
const
|
4
|
+
const RuneIds_1 = require("../Constants/RuneIds");
|
5
5
|
function isRuneName(name) {
|
6
|
-
|
7
|
-
return true;
|
8
|
-
return false;
|
6
|
+
return name in RuneIds_1.RuneIds;
|
9
7
|
}
|
10
8
|
exports.isRuneName = isRuneName;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSpellId = void 0;
|
4
|
+
const SpellKeys_1 = require("../Constants/SpellKeys");
|
5
|
+
function isSpellId(id) {
|
6
|
+
return id in SpellKeys_1.SpellKeys;
|
7
|
+
}
|
8
|
+
exports.isSpellId = isSpellId;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSpellKey = void 0;
|
4
|
+
const SpellNames_1 = require("../Constants/SpellNames");
|
5
|
+
function isSpellKey(key) {
|
6
|
+
return key in SpellNames_1.SpellNames;
|
7
|
+
}
|
8
|
+
exports.isSpellKey = isSpellKey;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSpellName = void 0;
|
4
|
+
const SpellIdsByName_1 = require("../Constants/SpellIdsByName");
|
5
|
+
function isSpellName(name) {
|
6
|
+
return name in SpellIdsByName_1.SpellIdsByName;
|
7
|
+
}
|
8
|
+
exports.isSpellName = isSpellName;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { StatRuneId } from '../types';
|
2
|
-
export declare function isStatRuneId(id:
|
2
|
+
export declare function isStatRuneId(id: string): id is StatRuneId;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isStatRuneId = void 0;
|
4
|
-
const
|
4
|
+
const StatRuneNames_1 = require("../Constants/StatRuneNames");
|
5
5
|
function isStatRuneId(id) {
|
6
|
-
|
7
|
-
return true;
|
8
|
-
return false;
|
6
|
+
return id in StatRuneNames_1.StatRuneNames;
|
9
7
|
}
|
10
8
|
exports.isStatRuneId = isStatRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { StatRuneName } from '../types';
|
2
|
-
export declare function isStatRuneName(name:
|
2
|
+
export declare function isStatRuneName(name: string): name is StatRuneName;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isStatRuneName = void 0;
|
4
|
-
const
|
4
|
+
const StatRuneIds_1 = require("../Constants/StatRuneIds");
|
5
5
|
function isStatRuneName(name) {
|
6
|
-
|
7
|
-
return true;
|
8
|
-
return false;
|
6
|
+
return name in StatRuneIds_1.StatRuneIds;
|
9
7
|
}
|
10
8
|
exports.isStatRuneName = isStatRuneName;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { TreeRuneId } from '../types';
|
2
|
-
export declare function isTreeRuneId(id:
|
2
|
+
export declare function isTreeRuneId(id: string): id is TreeRuneId;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isTreeRuneId = void 0;
|
4
|
-
const
|
4
|
+
const TreeRuneNames_1 = require("../Constants/TreeRuneNames");
|
5
5
|
function isTreeRuneId(id) {
|
6
|
-
|
7
|
-
return true;
|
8
|
-
return false;
|
6
|
+
return id in TreeRuneNames_1.TreeRuneNames;
|
9
7
|
}
|
10
8
|
exports.isTreeRuneId = isTreeRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { TreeRuneName } from '../types';
|
2
|
-
export declare function isTreeRuneName(name:
|
2
|
+
export declare function isTreeRuneName(name: string): name is TreeRuneName;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isTreeRuneName = void 0;
|
4
|
-
const
|
4
|
+
const TreeRuneIds_1 = require("../Constants/TreeRuneIds");
|
5
5
|
function isTreeRuneName(name) {
|
6
|
-
|
7
|
-
return true;
|
8
|
-
return false;
|
6
|
+
return name in TreeRuneIds_1.TreeRuneIds;
|
9
7
|
}
|
10
8
|
exports.isTreeRuneName = isTreeRuneName;
|