lol-constants 2.21.0 → 2.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/README.md +1 -1
  2. package/assets/constants/Champion.d.ts +175 -175
  3. package/assets/constants/Champion.js +1 -1
  4. package/assets/constants/Item.d.ts +4758 -7569
  5. package/assets/constants/Item.js +1 -1
  6. package/assets/constants/LegendaryItemNames.d.ts +1 -1
  7. package/assets/constants/LegendaryItemNames.js +0 -2
  8. package/assets/constants/RunesReforged.d.ts +2 -2
  9. package/assets/constants/RunesReforged.js +1 -1
  10. package/assets/constants/Summoner.d.ts +1 -1
  11. package/assets/constants/Summoner.js +1 -1
  12. package/assets/index.js +0 -1
  13. package/assets/scripts/asset-scripts/champion.d.ts +1 -0
  14. package/assets/scripts/asset-scripts/champion.js +11 -0
  15. package/assets/scripts/asset-scripts/generate-all.d.ts +4 -0
  16. package/assets/scripts/asset-scripts/generate-all.js +6 -0
  17. package/assets/scripts/asset-scripts/item.d.ts +1 -0
  18. package/assets/scripts/asset-scripts/item.js +11 -0
  19. package/assets/scripts/asset-scripts/runes-reforged.d.ts +1 -0
  20. package/assets/scripts/asset-scripts/runes-reforged.js +11 -0
  21. package/assets/scripts/asset-scripts/summoner.d.ts +1 -0
  22. package/assets/scripts/asset-scripts/summoner.js +11 -0
  23. package/assets/scripts/generate-categorized-item-keys-num.js +0 -20
  24. package/assets/scripts/generate-categorized-item-keys.js +0 -20
  25. package/assets/scripts/generate-categorized-item-names.js +0 -20
  26. package/core/constants/DataDragonUrls.d.ts +1 -0
  27. package/core/constants/DataDragonUrls.js +4 -4
  28. package/core/constants/Items/ItemKeys.d.ts +0 -34
  29. package/core/constants/Items/ItemKeys.js +1 -1
  30. package/core/constants/Items/ItemKeysNum.d.ts +0 -34
  31. package/core/constants/Items/ItemKeysNum.js +1 -1
  32. package/core/constants/Items/ItemNames.d.ts +0 -34
  33. package/core/constants/Items/ItemNames.js +1 -1
  34. package/core/constants/Items/LegendaryItemKeys.d.ts +0 -20
  35. package/core/constants/Items/LegendaryItemKeys.js +1 -1
  36. package/core/constants/Items/LegendaryItemKeysNum.d.ts +0 -20
  37. package/core/constants/Items/LegendaryItemKeysNum.js +1 -1
  38. package/core/constants/Items/LegendaryItemNames.d.ts +0 -20
  39. package/core/constants/Items/LegendaryItemNames.js +1 -1
  40. package/core/constants/QueueIds.d.ts +31 -0
  41. package/core/constants/QueueIds.js +57 -1
  42. package/core/index.d.ts +0 -7
  43. package/core/index.js +0 -7
  44. package/package.json +11 -9
  45. package/core/constants/QueueDescriptions.d.ts +0 -4
  46. package/core/constants/QueueDescriptions.js +0 -31
@@ -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';
@@ -45,9 +44,6 @@ export * from './constants/Items/ItemTypes';
45
44
  export * from './constants/Items/LegendaryItemKeys';
46
45
  export * from './constants/Items/LegendaryItemKeysNum';
47
46
  export * from './constants/Items/LegendaryItemNames';
48
- export * from './constants/Items/OrnnItemKeys';
49
- export * from './constants/Items/OrnnItemKeysNum';
50
- export * from './constants/Items/OrnnItemNames';
51
47
  export * from './constants/Runes/NonStatRuneIds';
52
48
  export * from './constants/Runes/NonStatRuneIdsNum';
53
49
  export * from './constants/Runes/NonStatRuneNames';
@@ -88,9 +84,6 @@ export * from './helpers/Items/isItemKeyNum';
88
84
  export * from './helpers/Items/isItemName';
89
85
  export * from './helpers/Items/isLegendaryItemKey';
90
86
  export * from './helpers/Items/isLegendaryItemName';
91
- export * from './helpers/Items/isOrnnItemKey';
92
- export * from './helpers/Items/isOrnnItemKeyNum';
93
- export * from './helpers/Items/isOrnnItemName';
94
87
  export * from './helpers/Runes/getNonStatRuneIdByName';
95
88
  export * from './helpers/Runes/getNonStatRuneNameById';
96
89
  export * from './helpers/Runes/getRuneCategoryName';
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);
@@ -64,9 +63,6 @@ __exportStar(require("./constants/Items/ItemTypes"), exports);
64
63
  __exportStar(require("./constants/Items/LegendaryItemKeys"), exports);
65
64
  __exportStar(require("./constants/Items/LegendaryItemKeysNum"), exports);
66
65
  __exportStar(require("./constants/Items/LegendaryItemNames"), exports);
67
- __exportStar(require("./constants/Items/OrnnItemKeys"), exports);
68
- __exportStar(require("./constants/Items/OrnnItemKeysNum"), exports);
69
- __exportStar(require("./constants/Items/OrnnItemNames"), exports);
70
66
  // ## Runes
71
67
  __exportStar(require("./constants/Runes/NonStatRuneIds"), exports);
72
68
  __exportStar(require("./constants/Runes/NonStatRuneIdsNum"), exports);
@@ -112,9 +108,6 @@ __exportStar(require("./helpers/Items/isItemKeyNum"), exports);
112
108
  __exportStar(require("./helpers/Items/isItemName"), exports);
113
109
  __exportStar(require("./helpers/Items/isLegendaryItemKey"), exports);
114
110
  __exportStar(require("./helpers/Items/isLegendaryItemName"), exports);
115
- __exportStar(require("./helpers/Items/isOrnnItemKey"), exports);
116
- __exportStar(require("./helpers/Items/isOrnnItemKeyNum"), exports);
117
- __exportStar(require("./helpers/Items/isOrnnItemName"), exports);
118
111
  // ## Runes
119
112
  __exportStar(require("./helpers/Runes/getNonStatRuneIdByName"), exports);
120
113
  __exportStar(require("./helpers/Runes/getNonStatRuneNameById"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "2.21.0",
3
+ "version": "2.23.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,14 +9,10 @@
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",
14
+ "@types/node-fetch": "^2.6.11",
15
+ "node-fetch": "2.6.7",
20
16
  "typescript": "^5.4.5",
21
17
  "vite": "^5.3.1"
22
18
  },
@@ -24,5 +20,11 @@
24
20
  "type": "git",
25
21
  "url": "git+https://github.com/kd0010/lol-constants.git"
26
22
  },
27
- "packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
28
- }
23
+ "scripts": {
24
+ "build:clean": "rmdir /s /q core && rmdir /s /q assets && tsc",
25
+ "assets:pull": "tsc && node assets/scripts/asset-scripts/generate-all",
26
+ "generate": "tsc && node assets/scripts/generate-all",
27
+ "print-file-names": "node assets/scripts/print-file-names",
28
+ "dev": "vite"
29
+ }
30
+ }
@@ -1,4 +0,0 @@
1
- import { QueueId } from './QueueIds';
2
- export declare const QueueDescriptions: {
3
- [queueId in QueueId]: string;
4
- };
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QueueDescriptions = void 0;
4
- exports.QueueDescriptions = {
5
- 0: 'Custom',
6
- 400: '5v5 Draft Pick',
7
- 420: '5v5 Ranked Solo',
8
- 430: '5v5 Blind Pick',
9
- 440: '5v5 Ranked Flex',
10
- 450: '5v5 ARAM',
11
- 700: 'Clash',
12
- 720: 'ARAM Clash',
13
- 830: 'Co-op vs. AI Intro Bots',
14
- 840: 'Co-op vs. AI Beginner Bots',
15
- 850: 'Co-op vs. AI Intermediate Bots',
16
- 900: 'ARURF',
17
- 920: 'Legend of the Poro King',
18
- 1010: 'Snow ARURF',
19
- 1020: 'One for All',
20
- 1090: 'Teamfight Tactics',
21
- 1100: 'Ranked Teamfight Tactics',
22
- 1110: 'Teamfight Tactics Tutorial',
23
- 1111: 'Teamfight Tactics test',
24
- 1300: 'Nexus Blitz',
25
- 1400: 'Ultimate Spellbook',
26
- 1700: 'Arena 2v2v2v2',
27
- 1900: 'URF',
28
- 2000: 'Tutorial 1',
29
- 2010: 'Tutorial 2',
30
- 2020: 'Tutorial 3',
31
- };