lol-constants 2.21.0 → 2.22.0
Sign up to get free protection for your applications and to get access to all the features.
- package/core/constants/QueueIds.d.ts +31 -0
- package/core/constants/QueueIds.js +57 -1
- package/core/index.d.ts +0 -1
- package/core/index.js +0 -1
- package/package.json +8 -9
@@ -81,3 +81,34 @@ export declare const QueueIds: {
|
|
81
81
|
};
|
82
82
|
export type QueueId = typeof QueueIds[keyof typeof QueueIds];
|
83
83
|
export declare function isQueueId(value: number): value is QueueId;
|
84
|
+
export declare const QueueDescriptions: {
|
85
|
+
[queueId in QueueId]: string;
|
86
|
+
};
|
87
|
+
export declare const QueueDescriptionsToIds: {
|
88
|
+
readonly Custom: 0;
|
89
|
+
readonly '5v5 Draft Pick': 400;
|
90
|
+
readonly '5v5 Ranked Solo': 420;
|
91
|
+
readonly '5v5 Blind Pick': 430;
|
92
|
+
readonly '5v5 Ranked Flex': 440;
|
93
|
+
readonly '5v5 ARAM': 450;
|
94
|
+
readonly Clash: 700;
|
95
|
+
readonly 'ARAM Clash': 720;
|
96
|
+
readonly 'Co-op vs. AI Intro Bots': 830;
|
97
|
+
readonly 'Co-op vs. AI Beginner Bots': 840;
|
98
|
+
readonly 'Co-op vs. AI Intermediate Bots': 850;
|
99
|
+
readonly ARURF: 900;
|
100
|
+
readonly 'Legend of the Poro King': 920;
|
101
|
+
readonly 'Snow ARURF': 1010;
|
102
|
+
readonly 'One for All': 1020;
|
103
|
+
readonly 'Teamfight Tactics': 1090;
|
104
|
+
readonly 'Ranked Teamfight Tactics': 1100;
|
105
|
+
readonly 'Teamfight Tactics Tutorial': 1110;
|
106
|
+
readonly 'Teamfight Tactics test': 1111;
|
107
|
+
readonly 'Nexus Blitz': 1300;
|
108
|
+
readonly 'Ultimate Spellbook': 1400;
|
109
|
+
readonly 'Arena 2v2v2v2': 1700;
|
110
|
+
readonly URF: 1900;
|
111
|
+
readonly 'Tutorial 1': 2000;
|
112
|
+
readonly 'Tutorial 2': 2010;
|
113
|
+
readonly 'Tutorial 3': 2020;
|
114
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isQueueId = exports.QueueIds = void 0;
|
3
|
+
exports.QueueDescriptionsToIds = exports.QueueDescriptions = exports.isQueueId = exports.QueueIds = void 0;
|
4
4
|
/**
|
5
5
|
* 0 — Custom games
|
6
6
|
*
|
@@ -86,3 +86,59 @@ function isQueueId(value) {
|
|
86
86
|
return value in exports.QueueIds;
|
87
87
|
}
|
88
88
|
exports.isQueueId = isQueueId;
|
89
|
+
exports.QueueDescriptions = {
|
90
|
+
0: 'Custom',
|
91
|
+
400: '5v5 Draft Pick',
|
92
|
+
420: '5v5 Ranked Solo',
|
93
|
+
430: '5v5 Blind Pick',
|
94
|
+
440: '5v5 Ranked Flex',
|
95
|
+
450: '5v5 ARAM',
|
96
|
+
700: 'Clash',
|
97
|
+
720: 'ARAM Clash',
|
98
|
+
830: 'Co-op vs. AI Intro Bots',
|
99
|
+
840: 'Co-op vs. AI Beginner Bots',
|
100
|
+
850: 'Co-op vs. AI Intermediate Bots',
|
101
|
+
900: 'ARURF',
|
102
|
+
920: 'Legend of the Poro King',
|
103
|
+
1010: 'Snow ARURF',
|
104
|
+
1020: 'One for All',
|
105
|
+
1090: 'Teamfight Tactics',
|
106
|
+
1100: 'Ranked Teamfight Tactics',
|
107
|
+
1110: 'Teamfight Tactics Tutorial',
|
108
|
+
1111: 'Teamfight Tactics test',
|
109
|
+
1300: 'Nexus Blitz',
|
110
|
+
1400: 'Ultimate Spellbook',
|
111
|
+
1700: 'Arena 2v2v2v2',
|
112
|
+
1900: 'URF',
|
113
|
+
2000: 'Tutorial 1',
|
114
|
+
2010: 'Tutorial 2',
|
115
|
+
2020: 'Tutorial 3',
|
116
|
+
};
|
117
|
+
exports.QueueDescriptionsToIds = {
|
118
|
+
'Custom': 0,
|
119
|
+
'5v5 Draft Pick': 400,
|
120
|
+
'5v5 Ranked Solo': 420,
|
121
|
+
'5v5 Blind Pick': 430,
|
122
|
+
'5v5 Ranked Flex': 440,
|
123
|
+
'5v5 ARAM': 450,
|
124
|
+
'Clash': 700,
|
125
|
+
'ARAM Clash': 720,
|
126
|
+
'Co-op vs. AI Intro Bots': 830,
|
127
|
+
'Co-op vs. AI Beginner Bots': 840,
|
128
|
+
'Co-op vs. AI Intermediate Bots': 850,
|
129
|
+
'ARURF': 900,
|
130
|
+
'Legend of the Poro King': 920,
|
131
|
+
'Snow ARURF': 1010,
|
132
|
+
'One for All': 1020,
|
133
|
+
'Teamfight Tactics': 1090,
|
134
|
+
'Ranked Teamfight Tactics': 1100,
|
135
|
+
'Teamfight Tactics Tutorial': 1110,
|
136
|
+
'Teamfight Tactics test': 1111,
|
137
|
+
'Nexus Blitz': 1300,
|
138
|
+
'Ultimate Spellbook': 1400,
|
139
|
+
'Arena 2v2v2v2': 1700,
|
140
|
+
'URF': 1900,
|
141
|
+
'Tutorial 1': 2000,
|
142
|
+
'Tutorial 2': 2010,
|
143
|
+
'Tutorial 3': 2020,
|
144
|
+
};
|
package/core/index.d.ts
CHANGED
@@ -16,7 +16,6 @@ export * from './constants/ParticipantIds';
|
|
16
16
|
export * from './constants/PlatformApiUris';
|
17
17
|
export * from './constants/PlatformIds';
|
18
18
|
export * from './constants/Positions';
|
19
|
-
export * from './constants/QueueDescriptions';
|
20
19
|
export * from './constants/QueueIds';
|
21
20
|
export * from './constants/QueueTypes';
|
22
21
|
export * from './constants/RankedRanks';
|
package/core/index.js
CHANGED
@@ -33,7 +33,6 @@ __exportStar(require("./constants/ParticipantIds"), exports);
|
|
33
33
|
__exportStar(require("./constants/PlatformApiUris"), exports);
|
34
34
|
__exportStar(require("./constants/PlatformIds"), exports);
|
35
35
|
__exportStar(require("./constants/Positions"), exports);
|
36
|
-
__exportStar(require("./constants/QueueDescriptions"), exports);
|
37
36
|
__exportStar(require("./constants/QueueIds"), exports);
|
38
37
|
__exportStar(require("./constants/QueueTypes"), exports);
|
39
38
|
__exportStar(require("./constants/RankedRanks"), exports);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "lol-constants",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.22.0",
|
4
4
|
"description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
|
5
5
|
"main": "core/index.js",
|
6
6
|
"types": "core/index.d.ts",
|
@@ -9,12 +9,6 @@
|
|
9
9
|
"/core",
|
10
10
|
"/assets"
|
11
11
|
],
|
12
|
-
"scripts": {
|
13
|
-
"build:clean": "rmdir /s /q core && rmdir /s /q assets && tsc",
|
14
|
-
"generate": "tsc && node assets/scripts/generate-all",
|
15
|
-
"print-file-names": "node assets/scripts/print-file-names",
|
16
|
-
"dev": "vite"
|
17
|
-
},
|
18
12
|
"devDependencies": {
|
19
13
|
"@types/node": "^20.14.6",
|
20
14
|
"typescript": "^5.4.5",
|
@@ -24,5 +18,10 @@
|
|
24
18
|
"type": "git",
|
25
19
|
"url": "git+https://github.com/kd0010/lol-constants.git"
|
26
20
|
},
|
27
|
-
"
|
28
|
-
|
21
|
+
"scripts": {
|
22
|
+
"build:clean": "rmdir /s /q core && rmdir /s /q assets && tsc",
|
23
|
+
"generate": "tsc && node assets/scripts/generate-all",
|
24
|
+
"print-file-names": "node assets/scripts/print-file-names",
|
25
|
+
"dev": "vite"
|
26
|
+
}
|
27
|
+
}
|