lol-constants 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
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.championByName = exports.championByKey = exports.DDPaths = exports.summoner = exports.runesReforged = exports.item = exports.champion = void 0;
20
+ exports.summonerByName = exports.summonerByKey = exports.runesByName = exports.runesById = exports.itemByKey = exports.championByName = exports.championByKey = exports.DDPaths = 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"));
@@ -30,7 +30,17 @@ var DDPaths_1 = require("./Constants/DDPaths");
30
30
  Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
31
31
  const championByKey_json_1 = __importDefault(require("./generated/championByKey.json"));
32
32
  const championByName_json_1 = __importDefault(require("./generated/championByName.json"));
33
+ const itemByKey_json_1 = __importDefault(require("./generated/itemByKey.json"));
34
+ const runesById_json_1 = __importDefault(require("./generated/runesById.json"));
35
+ const runesByName_json_1 = __importDefault(require("./generated/runesByName.json"));
36
+ const summonerByKey_json_1 = __importDefault(require("./generated/summonerByKey.json"));
37
+ const summonerByName_json_1 = __importDefault(require("./generated/summonerByName.json"));
33
38
  exports.championByKey = championByKey_json_1.default;
34
39
  exports.championByName = championByName_json_1.default;
40
+ exports.itemByKey = itemByKey_json_1.default;
41
+ exports.runesById = runesById_json_1.default;
42
+ exports.runesByName = runesByName_json_1.default;
43
+ exports.summonerByKey = summonerByKey_json_1.default;
44
+ exports.summonerByName = summonerByName_json_1.default;
35
45
  __exportStar(require("./types"), exports);
36
46
  __exportStar(require("./types/Meta"), exports);
@@ -3,9 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const generateChampionsByKey_1 = require("../Helpers/generateChampionsByKey");
4
4
  const generateChampionsByName_1 = require("../Helpers/generateChampionsByName");
5
5
  const generateItemsByName_1 = require("../Helpers/generateItemsByName");
6
+ const generateRunesById_1 = require("../Helpers/generateRunesById");
7
+ const generateRunesByName_1 = require("../Helpers/generateRunesByName");
8
+ const generateSummonersByKey_1 = require("../Helpers/generateSummonersByKey");
9
+ const generateSummonersByName_1 = require("../Helpers/generateSummonersByName");
6
10
  const generateJSONs = () => {
7
11
  (0, generateChampionsByKey_1.generateChampionsByKey)();
8
12
  (0, generateChampionsByName_1.generateChampionsByName)();
9
13
  (0, generateItemsByName_1.generateItemsByName)();
14
+ (0, generateRunesById_1.generateRunesById)();
15
+ (0, generateRunesByName_1.generateRunesByName)();
16
+ (0, generateSummonersByKey_1.generateSummonersByKey)();
17
+ (0, generateSummonersByName_1.generateSummonersByName)();
10
18
  };
11
19
  generateJSONs();
@@ -2,12 +2,25 @@ import championByKey from '../generated/championByKey.json';
2
2
  import championByName from '../generated/championByName.json';
3
3
  import item from '../assets/item.json';
4
4
  import itemByName from '../generated/itemByKey.json';
5
+ import summoner from '../assets/summoner.json';
6
+ import summonerByKey from '../generated/summonerByKey.json';
7
+ import summonerByName from '../generated/summonerByName.json';
8
+ import runesById from '../generated/runesById.json';
9
+ import { StatRunes } from '../Constants/StatRunes';
10
+ import runesByName from '../generated/runesByName.json';
5
11
  export declare type ChampionKey = keyof typeof championByKey.data;
6
12
  export declare type ChampionName = keyof typeof championByName.data;
7
13
  export declare type ItemKey = keyof typeof item.data;
8
14
  export declare type ItemName = keyof typeof itemByName.data;
15
+ export declare type SummonerId = keyof typeof summoner.data;
16
+ export declare type SummonerKey = keyof typeof summonerByKey.data;
17
+ export declare type SummonerName = keyof typeof summonerByName.data;
18
+ export declare type RuneId = keyof typeof runesById | keyof typeof StatRunes;
19
+ export declare type RuneName = keyof typeof runesByName;
9
20
  export declare type XP = number;
10
21
  export declare type Minute = number;
11
22
  export declare type TPosition = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM' | 'UTILITY';
12
23
  export declare type TLane = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM';
13
24
  export declare type TRole = 'NONE' | 'SOLO' | 'CARRY' | 'SUPPORT';
25
+ export declare type Level = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18;
26
+ export declare type Skill = 'Q' | 'W' | 'E' | 'R';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",