lol-constants 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -0
- package/dist/types/Meta.d.ts +12 -0
- package/dist/types/Meta.js +2 -0
- package/dist/types/index.d.ts +5 -0
- package/package.json +25 -25
package/dist/index.d.ts
CHANGED
@@ -32135,4 +32135,4 @@ export declare const championByName: {
|
|
32135
32135
|
};
|
32136
32136
|
version: string;
|
32137
32137
|
};
|
32138
|
-
export
|
32138
|
+
export * from './types';
|
package/dist/index.js
CHANGED
@@ -1,4 +1,18 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
2
16
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
18
|
};
|
@@ -18,3 +32,4 @@ const championByKey_json_1 = __importDefault(require("./generated/championByKey.
|
|
18
32
|
const championByName_json_1 = __importDefault(require("./generated/championByName.json"));
|
19
33
|
exports.championByKey = championByKey_json_1.default;
|
20
34
|
exports.championByName = championByName_json_1.default;
|
35
|
+
__exportStar(require("./types"), exports);
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare type TQueue = 'RANKED_SOLO_5x5' | 'RANKED_FLEX_SR';
|
2
|
+
export declare type TLeaguesTier = 'CHALLENGER' | 'GRANDMASTER' | 'MASTER' | 'DIAMOND' | 'PLATINUM' | 'GOLD' | 'SILVER' | 'BRONZE' | 'IRON';
|
3
|
+
export declare type TLeaguesRank = 'I' | 'II' | 'III' | 'IV';
|
4
|
+
export declare type TGameType = 'CUSTOM_GAME' | 'TUTORIAL_GAME' | 'MATCHED_GAME';
|
5
|
+
export declare type TGameMode = 'CLASSIC' | 'ARAM' | 'TUTORIAL' | 'URF' | 'ONEFORALL' | 'KINGPORO' | 'GAMEMODEX' | 'ULTBOOK';
|
6
|
+
export declare type PlatformId = 'BR1' | 'EUN1' | 'EUW1' | 'JP1' | 'KR' | 'LA1' | 'LA2' | 'NA1' | 'OC1' | 'TR1' | 'RU';
|
7
|
+
export declare type Region = 'EUW';
|
8
|
+
export declare type QueueId = 0 | 400 | 420 | 430 | 440 | 450 | 700 | 900 | 920 | 1020 | 1090 | 1100 | 1110 | 1111 | 1300 | 1400 | 1900;
|
9
|
+
export declare type MapId = 11 | 12 | 21 | 22;
|
10
|
+
export declare type TeamId = 100 | 200;
|
11
|
+
export declare type ParticipantId = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
12
|
+
export declare type TWardType = 'UNDEFINED' | 'YELLOW_TRINKET' | 'CONTROL_WARD';
|
package/dist/types/index.d.ts
CHANGED
@@ -2,3 +2,8 @@ import championByKey from '../generated/championByKey.json';
|
|
2
2
|
import championByName from '../generated/championByName.json';
|
3
3
|
export declare type ChampionName = keyof typeof championByName.data;
|
4
4
|
export declare type ChampionKey = keyof typeof championByKey.data;
|
5
|
+
export declare type XP = number;
|
6
|
+
export declare type Minute = number;
|
7
|
+
export declare type TPosition = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM' | 'UTILITY';
|
8
|
+
export declare type TLane = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM';
|
9
|
+
export declare type TRole = 'NONE' | 'SOLO' | 'CARRY' | 'SUPPORT';
|
package/package.json
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
{
|
2
|
-
"name": "lol-constants",
|
3
|
-
"version": "0.
|
4
|
-
"description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner.",
|
5
|
-
"main": "dist/index.js",
|
6
|
-
"types": "dist/index.d.ts",
|
7
|
-
"license": "MIT",
|
8
|
-
"files": [
|
9
|
-
"/dist"
|
10
|
-
],
|
11
|
-
"scripts": {
|
12
|
-
"build": "rmdir /s /q dist && tsc",
|
13
|
-
"publish-new-major": "npm run build && npm version major && npm publish",
|
14
|
-
"publish-new-minor": "npm run build && npm version minor && npm publish",
|
15
|
-
"publish-new-patch": "npm run build && npm version patch && npm publish",
|
16
|
-
"generate": "node dist/scripts/generate-all"
|
17
|
-
},
|
18
|
-
"devDependencies": {
|
19
|
-
"@types/node": "^17.0.42"
|
20
|
-
},
|
21
|
-
"repository": {
|
22
|
-
"type": "git",
|
23
|
-
"url": "git+https://github.com/kd0010/lol-constants.git"
|
24
|
-
}
|
25
|
-
}
|
1
|
+
{
|
2
|
+
"name": "lol-constants",
|
3
|
+
"version": "0.2.0",
|
4
|
+
"description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner.",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"types": "dist/index.d.ts",
|
7
|
+
"license": "MIT",
|
8
|
+
"files": [
|
9
|
+
"/dist"
|
10
|
+
],
|
11
|
+
"scripts": {
|
12
|
+
"build": "rmdir /s /q dist && tsc",
|
13
|
+
"publish-new-major": "npm run build && npm version major && npm publish",
|
14
|
+
"publish-new-minor": "npm run build && npm version minor && npm publish",
|
15
|
+
"publish-new-patch": "npm run build && npm version patch && npm publish",
|
16
|
+
"generate": "node dist/scripts/generate-all"
|
17
|
+
},
|
18
|
+
"devDependencies": {
|
19
|
+
"@types/node": "^17.0.42"
|
20
|
+
},
|
21
|
+
"repository": {
|
22
|
+
"type": "git",
|
23
|
+
"url": "git+https://github.com/kd0010/lol-constants.git"
|
24
|
+
}
|
25
|
+
}
|