lol-constants 2.26.0 → 3.0.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (430) hide show
  1. package/README.md +130 -28
  2. package/dist/Locale.d.ts +2 -0
  3. package/dist/Patch.d.ts +3 -0
  4. package/dist/Patch.js +3 -0
  5. package/{core/constants/Champions/ChampionClasses.d.ts → dist/constants/custom.d.ts} +1 -1
  6. package/{core/constants/Champions/ChampionClasses.js → dist/constants/custom.js} +2 -2
  7. package/dist/constants/events.d.ts +49 -0
  8. package/dist/constants/events.js +55 -0
  9. package/dist/constants/history.d.ts +26 -0
  10. package/dist/constants/history.js +29 -0
  11. package/{core/constants/RankedTiers.d.ts → dist/constants/leagues.d.ts} +9 -1
  12. package/{core/constants/RankedTiers.js → dist/constants/leagues.js} +11 -2
  13. package/{core/constants/Locales.d.ts → dist/constants/locales.d.ts} +1 -1
  14. package/{core/constants/Locales.js → dist/constants/locales.js} +2 -2
  15. package/dist/constants/participants.d.ts +38 -0
  16. package/dist/constants/participants.js +43 -0
  17. package/dist/enums/ItemSrTypes.d.ts +11 -0
  18. package/dist/enums/ItemSrTypes.js +10 -0
  19. package/dist/enums/StatRuneSlots.d.ts +6 -0
  20. package/dist/enums/StatRuneSlots.js +5 -0
  21. package/dist/helpers/champion.d.ts +678 -0
  22. package/dist/helpers/champion.js +18 -0
  23. package/dist/helpers/item.d.ts +39 -0
  24. package/dist/helpers/item.js +113 -0
  25. package/dist/helpers/riotId.d.ts +16 -0
  26. package/dist/helpers/riotId.js +33 -0
  27. package/dist/helpers/rune.d.ts +36 -0
  28. package/dist/helpers/rune.js +70 -0
  29. package/dist/helpers/spell.d.ts +6 -0
  30. package/dist/helpers/spell.js +18 -0
  31. package/dist/helpers/type.d.ts +3 -0
  32. package/dist/index.d.ts +30 -0
  33. package/dist/index.js +27 -0
  34. package/dist/lol.d.ts +4029 -0
  35. package/dist/lol.js +182 -0
  36. package/dist/objects/Maps.d.ts +113 -0
  37. package/dist/objects/Maps.js +69 -0
  38. package/dist/objects/Queues.d.ts +192 -0
  39. package/dist/objects/Queues.js +71 -0
  40. package/dist/objects/Regions.d.ts +132 -0
  41. package/dist/objects/Regions.js +55 -0
  42. package/dist/objects/generated/Champions.d.ts +1858 -0
  43. package/dist/objects/generated/Champions.js +4 -0
  44. package/dist/objects/generated/Items.d.ts +5108 -0
  45. package/dist/objects/generated/Items.js +4 -0
  46. package/dist/objects/generated/Runes.d.ts +1477 -0
  47. package/dist/objects/generated/Runes.js +13 -0
  48. package/dist/objects/generated/Spells.d.ts +208 -0
  49. package/dist/objects/generated/Spells.js +4 -0
  50. package/package.json +17 -15
  51. package/assets/constants/BootsItemNames.d.ts +0 -1
  52. package/assets/constants/BootsItemNames.js +0 -13
  53. package/assets/constants/LegendaryItemNames.d.ts +0 -4
  54. package/assets/constants/LegendaryItemNames.js +0 -125
  55. package/assets/constants/StatRunes.d.ts +0 -28
  56. package/assets/constants/StatRunes.js +0 -11
  57. package/assets/constants/StatRunesByRow.d.ts +0 -17
  58. package/assets/constants/StatRunesByRow.js +0 -17
  59. package/assets/constants/base/Champion.d.ts +0 -7903
  60. package/assets/constants/base/Champion.js +0 -1
  61. package/assets/constants/base/Item.d.ts +0 -21193
  62. package/assets/constants/base/Item.js +0 -1
  63. package/assets/constants/base/RunesReforged.d.ts +0 -491
  64. package/assets/constants/base/RunesReforged.js +0 -1
  65. package/assets/constants/base/Summoner.d.ts +0 -582
  66. package/assets/constants/base/Summoner.js +0 -1
  67. package/assets/index.d.ts +0 -4
  68. package/assets/index.js +0 -11
  69. package/assets/scripts/asset-scripts/champion.js +0 -10
  70. package/assets/scripts/asset-scripts/generate-all.d.ts +0 -4
  71. package/assets/scripts/asset-scripts/generate-all.js +0 -4
  72. package/assets/scripts/asset-scripts/item.d.ts +0 -1
  73. package/assets/scripts/asset-scripts/item.js +0 -10
  74. package/assets/scripts/asset-scripts/runes-reforged.d.ts +0 -1
  75. package/assets/scripts/asset-scripts/runes-reforged.js +0 -10
  76. package/assets/scripts/asset-scripts/summoner.d.ts +0 -1
  77. package/assets/scripts/asset-scripts/summoner.js +0 -10
  78. package/assets/scripts/constants/RuneIdComment.d.ts +0 -1
  79. package/assets/scripts/constants/RuneIdComment.js +0 -24
  80. package/assets/scripts/generate-all.d.ts +0 -23
  81. package/assets/scripts/generate-all.js +0 -27
  82. package/assets/scripts/generate-categorized-item-keys-num.d.ts +0 -1
  83. package/assets/scripts/generate-categorized-item-keys-num.js +0 -57
  84. package/assets/scripts/generate-categorized-item-keys.d.ts +0 -1
  85. package/assets/scripts/generate-categorized-item-keys.js +0 -59
  86. package/assets/scripts/generate-categorized-item-names.d.ts +0 -1
  87. package/assets/scripts/generate-categorized-item-names.js +0 -56
  88. package/assets/scripts/generate-champion-ids-by-name.d.ts +0 -1
  89. package/assets/scripts/generate-champion-ids-by-name.js +0 -17
  90. package/assets/scripts/generate-champion-ids.d.ts +0 -1
  91. package/assets/scripts/generate-champion-ids.js +0 -18
  92. package/assets/scripts/generate-champion-keys-num.d.ts +0 -1
  93. package/assets/scripts/generate-champion-keys-num.js +0 -20
  94. package/assets/scripts/generate-champion-keys.d.ts +0 -1
  95. package/assets/scripts/generate-champion-keys.js +0 -18
  96. package/assets/scripts/generate-champion-names.d.ts +0 -1
  97. package/assets/scripts/generate-champion-names.js +0 -18
  98. package/assets/scripts/generate-item-keys-num.d.ts +0 -1
  99. package/assets/scripts/generate-item-keys-num.js +0 -24
  100. package/assets/scripts/generate-item-keys.d.ts +0 -1
  101. package/assets/scripts/generate-item-keys.js +0 -22
  102. package/assets/scripts/generate-item-names.d.ts +0 -1
  103. package/assets/scripts/generate-item-names.js +0 -22
  104. package/assets/scripts/generate-non-stat-rune-ids-num.d.ts +0 -1
  105. package/assets/scripts/generate-non-stat-rune-ids-num.js +0 -21
  106. package/assets/scripts/generate-non-stat-rune-ids.d.ts +0 -1
  107. package/assets/scripts/generate-non-stat-rune-ids.js +0 -22
  108. package/assets/scripts/generate-non-stat-rune-names.d.ts +0 -1
  109. package/assets/scripts/generate-non-stat-rune-names.js +0 -20
  110. package/assets/scripts/generate-rune-ids.d.ts +0 -1
  111. package/assets/scripts/generate-rune-ids.js +0 -27
  112. package/assets/scripts/generate-rune-names.d.ts +0 -1
  113. package/assets/scripts/generate-rune-names.js +0 -25
  114. package/assets/scripts/generate-rune-picking-relationships.d.ts +0 -1
  115. package/assets/scripts/generate-rune-picking-relationships.js +0 -52
  116. package/assets/scripts/generate-rune-sets-by-rune-names-num.d.ts +0 -1
  117. package/assets/scripts/generate-rune-sets-by-rune-names-num.js +0 -121
  118. package/assets/scripts/generate-rune-sets-by-rune-names.d.ts +0 -1
  119. package/assets/scripts/generate-rune-sets-by-rune-names.js +0 -119
  120. package/assets/scripts/generate-rune-sets.d.ts +0 -1
  121. package/assets/scripts/generate-rune-sets.js +0 -116
  122. package/assets/scripts/generate-spell-ids-by-name.d.ts +0 -1
  123. package/assets/scripts/generate-spell-ids-by-name.js +0 -17
  124. package/assets/scripts/generate-spell-ids.d.ts +0 -1
  125. package/assets/scripts/generate-spell-ids.js +0 -18
  126. package/assets/scripts/generate-spell-keys-num.d.ts +0 -1
  127. package/assets/scripts/generate-spell-keys-num.js +0 -20
  128. package/assets/scripts/generate-spell-keys.d.ts +0 -1
  129. package/assets/scripts/generate-spell-keys.js +0 -18
  130. package/assets/scripts/generate-spell-names.d.ts +0 -1
  131. package/assets/scripts/generate-spell-names.js +0 -18
  132. package/assets/scripts/generate-stat-rune-ids.d.ts +0 -1
  133. package/assets/scripts/generate-stat-rune-ids.js +0 -18
  134. package/assets/scripts/generate-stat-rune-names.d.ts +0 -1
  135. package/assets/scripts/generate-stat-rune-names.js +0 -16
  136. package/assets/scripts/helpers/enableEscapedValues.d.ts +0 -15
  137. package/assets/scripts/helpers/enableEscapedValues.js +0 -34
  138. package/assets/scripts/helpers/generateIndexFile.d.ts +0 -1
  139. package/assets/scripts/helpers/generateIndexFile.js +0 -3
  140. package/assets/scripts/helpers/getExportStatement.d.ts +0 -6
  141. package/assets/scripts/helpers/getExportStatement.js +0 -37
  142. package/assets/scripts/helpers/getFmtdComment.d.ts +0 -5
  143. package/assets/scripts/helpers/getFmtdComment.js +0 -11
  144. package/assets/scripts/helpers/validateNumber.d.ts +0 -1
  145. package/assets/scripts/helpers/validateNumber.js +0 -6
  146. package/assets/scripts/helpers/writeToTmpFile.d.ts +0 -13
  147. package/assets/scripts/helpers/writeToTmpFile.js +0 -18
  148. package/assets/scripts/print-file-names.d.ts +0 -1
  149. package/assets/scripts/print-file-names.js +0 -89
  150. package/core/Locale.d.ts +0 -2
  151. package/core/PatchVersion.d.ts +0 -1
  152. package/core/PatchVersion.js +0 -1
  153. package/core/constants/Abilities.d.ts +0 -17
  154. package/core/constants/Abilities.js +0 -19
  155. package/core/constants/BuildingTypes.d.ts +0 -6
  156. package/core/constants/BuildingTypes.js +0 -7
  157. package/core/constants/Champions/ChampionIds.d.ts +0 -171
  158. package/core/constants/Champions/ChampionIds.js +0 -1
  159. package/core/constants/Champions/ChampionIdsByName.d.ts +0 -170
  160. package/core/constants/Champions/ChampionIdsByName.js +0 -1
  161. package/core/constants/Champions/ChampionKeys.d.ts +0 -171
  162. package/core/constants/Champions/ChampionKeys.js +0 -1
  163. package/core/constants/Champions/ChampionKeysNum.d.ts +0 -171
  164. package/core/constants/Champions/ChampionKeysNum.js +0 -1
  165. package/core/constants/Champions/ChampionNames.d.ts +0 -171
  166. package/core/constants/Champions/ChampionNames.js +0 -1
  167. package/core/constants/Continents.d.ts +0 -8
  168. package/core/constants/Continents.js +0 -9
  169. package/core/constants/DataDragonUrls.d.ts +0 -52
  170. package/core/constants/DataDragonUrls.js +0 -58
  171. package/core/constants/DragonTypes.d.ts +0 -11
  172. package/core/constants/DragonTypes.js +0 -12
  173. package/core/constants/GameModes.d.ts +0 -12
  174. package/core/constants/GameModes.js +0 -13
  175. package/core/constants/GameTypes.d.ts +0 -7
  176. package/core/constants/GameTypes.js +0 -8
  177. package/core/constants/Items/BootsItemKeys.d.ts +0 -14
  178. package/core/constants/Items/BootsItemKeys.js +0 -1
  179. package/core/constants/Items/BootsItemKeysNum.d.ts +0 -14
  180. package/core/constants/Items/BootsItemKeysNum.js +0 -1
  181. package/core/constants/Items/BootsItemNames.d.ts +0 -14
  182. package/core/constants/Items/BootsItemNames.js +0 -1
  183. package/core/constants/Items/ItemKeys.d.ts +0 -238
  184. package/core/constants/Items/ItemKeys.js +0 -1
  185. package/core/constants/Items/ItemKeysNum.d.ts +0 -238
  186. package/core/constants/Items/ItemKeysNum.js +0 -1
  187. package/core/constants/Items/ItemNames.d.ts +0 -244
  188. package/core/constants/Items/ItemNames.js +0 -1
  189. package/core/constants/Items/ItemTypes.d.ts +0 -7
  190. package/core/constants/Items/ItemTypes.js +0 -8
  191. package/core/constants/Items/LegendaryItemKeys.d.ts +0 -112
  192. package/core/constants/Items/LegendaryItemKeys.js +0 -1
  193. package/core/constants/Items/LegendaryItemKeysNum.d.ts +0 -112
  194. package/core/constants/Items/LegendaryItemKeysNum.js +0 -1
  195. package/core/constants/Items/LegendaryItemNames.d.ts +0 -112
  196. package/core/constants/Items/LegendaryItemNames.js +0 -1
  197. package/core/constants/KillTypes.d.ts +0 -7
  198. package/core/constants/KillTypes.js +0 -8
  199. package/core/constants/LaneTypes.d.ts +0 -7
  200. package/core/constants/LaneTypes.js +0 -8
  201. package/core/constants/Lanes.d.ts +0 -8
  202. package/core/constants/Lanes.js +0 -9
  203. package/core/constants/LeagueTexts.d.ts +0 -49
  204. package/core/constants/LeagueTexts.js +0 -54
  205. package/core/constants/Levels.d.ts +0 -22
  206. package/core/constants/Levels.js +0 -23
  207. package/core/constants/MapIds.d.ts +0 -17
  208. package/core/constants/MapIds.js +0 -18
  209. package/core/constants/MonsterTypes.d.ts +0 -8
  210. package/core/constants/MonsterTypes.js +0 -9
  211. package/core/constants/ParticipantIds.d.ts +0 -14
  212. package/core/constants/ParticipantIds.js +0 -15
  213. package/core/constants/PlatformApiUris.d.ts +0 -20
  214. package/core/constants/PlatformApiUris.js +0 -21
  215. package/core/constants/PlatformIds.d.ts +0 -23
  216. package/core/constants/PlatformIds.js +0 -26
  217. package/core/constants/Positions.d.ts +0 -9
  218. package/core/constants/Positions.js +0 -10
  219. package/core/constants/QueueIds.d.ts +0 -114
  220. package/core/constants/QueueIds.js +0 -140
  221. package/core/constants/QueueTypes.d.ts +0 -7
  222. package/core/constants/QueueTypes.js +0 -8
  223. package/core/constants/RankedRanks.d.ts +0 -8
  224. package/core/constants/RankedRanks.js +0 -9
  225. package/core/constants/RegionalApiUris.d.ts +0 -8
  226. package/core/constants/RegionalApiUris.js +0 -9
  227. package/core/constants/Regions.d.ts +0 -23
  228. package/core/constants/Regions.js +0 -26
  229. package/core/constants/RelativeTeams.d.ts +0 -6
  230. package/core/constants/RelativeTeams.js +0 -7
  231. package/core/constants/Roles.d.ts +0 -8
  232. package/core/constants/Roles.js +0 -9
  233. package/core/constants/Runes/NonStatRuneIds.d.ts +0 -85
  234. package/core/constants/Runes/NonStatRuneIds.js +0 -1
  235. package/core/constants/Runes/NonStatRuneIdsNum.d.ts +0 -63
  236. package/core/constants/Runes/NonStatRuneIdsNum.js +0 -1
  237. package/core/constants/Runes/NonStatRuneNames.d.ts +0 -63
  238. package/core/constants/Runes/NonStatRuneNames.js +0 -1
  239. package/core/constants/Runes/RuneIconFileNames.d.ts +0 -14
  240. package/core/constants/Runes/RuneIconFileNames.js +0 -97
  241. package/core/constants/Runes/RunePickingRelationships.d.ts +0 -74
  242. package/core/constants/Runes/RunePickingRelationships.js +0 -4
  243. package/core/constants/Runes/RuneSets.d.ts +0 -721
  244. package/core/constants/Runes/RuneSets.js +0 -11
  245. package/core/constants/Runes/RuneSetsByRuneNames.d.ts +0 -765
  246. package/core/constants/Runes/RuneSetsByRuneNames.js +0 -11
  247. package/core/constants/Runes/RuneSetsByRuneNamesNum.d.ts +0 -765
  248. package/core/constants/Runes/RuneSetsByRuneNamesNum.js +0 -11
  249. package/core/constants/Runes/RuneTreeIds.d.ts +0 -11
  250. package/core/constants/Runes/RuneTreeIds.js +0 -14
  251. package/core/constants/Runes/RuneTreeIdsNum.d.ts +0 -11
  252. package/core/constants/Runes/RuneTreeIdsNum.js +0 -14
  253. package/core/constants/Runes/RuneTreeNames.d.ts +0 -11
  254. package/core/constants/Runes/RuneTreeNames.js +0 -14
  255. package/core/constants/Runes/RuneTreeTypes.d.ts +0 -6
  256. package/core/constants/Runes/RuneTreeTypes.js +0 -7
  257. package/core/constants/SkillSlots.d.ts +0 -8
  258. package/core/constants/SkillSlots.js +0 -9
  259. package/core/constants/Skills.d.ts +0 -8
  260. package/core/constants/Skills.js +0 -9
  261. package/core/constants/Spells/SpellIds.d.ts +0 -21
  262. package/core/constants/Spells/SpellIds.js +0 -1
  263. package/core/constants/Spells/SpellIdsByName.d.ts +0 -18
  264. package/core/constants/Spells/SpellIdsByName.js +0 -1
  265. package/core/constants/Spells/SpellKeys.d.ts +0 -21
  266. package/core/constants/Spells/SpellKeys.js +0 -1
  267. package/core/constants/Spells/SpellKeysNum.d.ts +0 -21
  268. package/core/constants/Spells/SpellKeysNum.js +0 -1
  269. package/core/constants/Spells/SpellNames.d.ts +0 -21
  270. package/core/constants/Spells/SpellNames.js +0 -1
  271. package/core/constants/TeamIds.d.ts +0 -6
  272. package/core/constants/TeamIds.js +0 -7
  273. package/core/constants/TowerTypes.d.ts +0 -8
  274. package/core/constants/TowerTypes.js +0 -9
  275. package/core/constants/WardTypes.d.ts +0 -9
  276. package/core/constants/WardTypes.js +0 -10
  277. package/core/helpers/Champions/getChampionIdByKey.d.ts +0 -4
  278. package/core/helpers/Champions/getChampionIdByKey.js +0 -4
  279. package/core/helpers/Champions/getChampionIdByName.d.ts +0 -3
  280. package/core/helpers/Champions/getChampionIdByName.js +0 -4
  281. package/core/helpers/Champions/getChampionKeyById.d.ts +0 -3
  282. package/core/helpers/Champions/getChampionKeyById.js +0 -4
  283. package/core/helpers/Champions/getChampionKeyByName.d.ts +0 -3
  284. package/core/helpers/Champions/getChampionKeyByName.js +0 -5
  285. package/core/helpers/Champions/getChampionNameById.d.ts +0 -3
  286. package/core/helpers/Champions/getChampionNameById.js +0 -5
  287. package/core/helpers/Champions/getChampionNameByKey.d.ts +0 -4
  288. package/core/helpers/Champions/getChampionNameByKey.js +0 -4
  289. package/core/helpers/Champions/isChampionId.d.ts +0 -2
  290. package/core/helpers/Champions/isChampionId.js +0 -4
  291. package/core/helpers/Champions/isChampionKey.d.ts +0 -2
  292. package/core/helpers/Champions/isChampionKey.js +0 -4
  293. package/core/helpers/Champions/isChampionKeyNum.d.ts +0 -2
  294. package/core/helpers/Champions/isChampionKeyNum.js +0 -4
  295. package/core/helpers/Champions/isChampionName.d.ts +0 -2
  296. package/core/helpers/Champions/isChampionName.js +0 -4
  297. package/core/helpers/Items/getItemKeyByName.d.ts +0 -3
  298. package/core/helpers/Items/getItemKeyByName.js +0 -4
  299. package/core/helpers/Items/getItemKeyNumByName.d.ts +0 -3
  300. package/core/helpers/Items/getItemKeyNumByName.js +0 -4
  301. package/core/helpers/Items/getItemNameByKey.d.ts +0 -4
  302. package/core/helpers/Items/getItemNameByKey.js +0 -4
  303. package/core/helpers/Items/isBootsItemKey.d.ts +0 -2
  304. package/core/helpers/Items/isBootsItemKey.js +0 -4
  305. package/core/helpers/Items/isBootsItemKeyNum.d.ts +0 -2
  306. package/core/helpers/Items/isBootsItemKeyNum.js +0 -4
  307. package/core/helpers/Items/isBootsItemName.d.ts +0 -2
  308. package/core/helpers/Items/isBootsItemName.js +0 -4
  309. package/core/helpers/Items/isItemKey.d.ts +0 -2
  310. package/core/helpers/Items/isItemKey.js +0 -4
  311. package/core/helpers/Items/isItemKeyNum.d.ts +0 -2
  312. package/core/helpers/Items/isItemKeyNum.js +0 -4
  313. package/core/helpers/Items/isItemName.d.ts +0 -2
  314. package/core/helpers/Items/isItemName.js +0 -4
  315. package/core/helpers/Items/isLegendaryItemKey.d.ts +0 -2
  316. package/core/helpers/Items/isLegendaryItemKey.js +0 -4
  317. package/core/helpers/Items/isLegendaryItemKeyNum.d.ts +0 -2
  318. package/core/helpers/Items/isLegendaryItemKeyNum.js +0 -4
  319. package/core/helpers/Items/isLegendaryItemName.d.ts +0 -2
  320. package/core/helpers/Items/isLegendaryItemName.js +0 -4
  321. package/core/helpers/Items/isTier2Boots.d.ts +0 -3
  322. package/core/helpers/Items/isTier2Boots.js +0 -9
  323. package/core/helpers/Runes/getNonStatRuneIdByName.d.ts +0 -3
  324. package/core/helpers/Runes/getNonStatRuneIdByName.js +0 -4
  325. package/core/helpers/Runes/getNonStatRuneNameById.d.ts +0 -3
  326. package/core/helpers/Runes/getNonStatRuneNameById.js +0 -4
  327. package/core/helpers/Runes/getRuneCategoryName.d.ts +0 -4
  328. package/core/helpers/Runes/getRuneCategoryName.js +0 -16
  329. package/core/helpers/Runes/getRuneCdnUrl.d.ts +0 -3
  330. package/core/helpers/Runes/getRuneCdnUrl.js +0 -50
  331. package/core/helpers/Runes/getRuneIdByName.d.ts +0 -3
  332. package/core/helpers/Runes/getRuneIdByName.js +0 -4
  333. package/core/helpers/Runes/getRuneNameById.d.ts +0 -3
  334. package/core/helpers/Runes/getRuneNameById.js +0 -4
  335. package/core/helpers/Runes/getStatRuneIdByName.d.ts +0 -3
  336. package/core/helpers/Runes/getStatRuneIdByName.js +0 -4
  337. package/core/helpers/Runes/getStatRuneNameById.d.ts +0 -3
  338. package/core/helpers/Runes/getStatRuneNameById.js +0 -4
  339. package/core/helpers/Runes/isDominationRuneId.d.ts +0 -2
  340. package/core/helpers/Runes/isDominationRuneId.js +0 -4
  341. package/core/helpers/Runes/isDominationRuneIdNum.d.ts +0 -2
  342. package/core/helpers/Runes/isDominationRuneIdNum.js +0 -4
  343. package/core/helpers/Runes/isDominationRuneName.d.ts +0 -2
  344. package/core/helpers/Runes/isDominationRuneName.js +0 -4
  345. package/core/helpers/Runes/isInspirationRuneId.d.ts +0 -2
  346. package/core/helpers/Runes/isInspirationRuneId.js +0 -4
  347. package/core/helpers/Runes/isInspirationRuneIdNum.d.ts +0 -2
  348. package/core/helpers/Runes/isInspirationRuneIdNum.js +0 -4
  349. package/core/helpers/Runes/isInspirationRuneName.d.ts +0 -2
  350. package/core/helpers/Runes/isInspirationRuneName.js +0 -4
  351. package/core/helpers/Runes/isKeystoneRuneId.d.ts +0 -2
  352. package/core/helpers/Runes/isKeystoneRuneId.js +0 -4
  353. package/core/helpers/Runes/isKeystoneRuneIdNum.d.ts +0 -2
  354. package/core/helpers/Runes/isKeystoneRuneIdNum.js +0 -4
  355. package/core/helpers/Runes/isKeystoneRuneName.d.ts +0 -2
  356. package/core/helpers/Runes/isKeystoneRuneName.js +0 -4
  357. package/core/helpers/Runes/isNonStatRuneId.d.ts +0 -2
  358. package/core/helpers/Runes/isNonStatRuneId.js +0 -4
  359. package/core/helpers/Runes/isNonStatRuneIdNum.d.ts +0 -2
  360. package/core/helpers/Runes/isNonStatRuneIdNum.js +0 -4
  361. package/core/helpers/Runes/isNonStatRuneName.d.ts +0 -2
  362. package/core/helpers/Runes/isNonStatRuneName.js +0 -4
  363. package/core/helpers/Runes/isPrecisionRuneId.d.ts +0 -2
  364. package/core/helpers/Runes/isPrecisionRuneId.js +0 -4
  365. package/core/helpers/Runes/isPrecisionRuneIdNum.d.ts +0 -2
  366. package/core/helpers/Runes/isPrecisionRuneIdNum.js +0 -4
  367. package/core/helpers/Runes/isPrecisionRuneName.d.ts +0 -2
  368. package/core/helpers/Runes/isPrecisionRuneName.js +0 -4
  369. package/core/helpers/Runes/isResolveRuneId.d.ts +0 -2
  370. package/core/helpers/Runes/isResolveRuneId.js +0 -4
  371. package/core/helpers/Runes/isResolveRuneIdNum.d.ts +0 -2
  372. package/core/helpers/Runes/isResolveRuneIdNum.js +0 -4
  373. package/core/helpers/Runes/isResolveRuneName.d.ts +0 -2
  374. package/core/helpers/Runes/isResolveRuneName.js +0 -4
  375. package/core/helpers/Runes/isRuneId.d.ts +0 -2
  376. package/core/helpers/Runes/isRuneId.js +0 -4
  377. package/core/helpers/Runes/isRuneIdNum.d.ts +0 -2
  378. package/core/helpers/Runes/isRuneIdNum.js +0 -4
  379. package/core/helpers/Runes/isRuneName.d.ts +0 -2
  380. package/core/helpers/Runes/isRuneName.js +0 -4
  381. package/core/helpers/Runes/isSorceryRuneId.d.ts +0 -2
  382. package/core/helpers/Runes/isSorceryRuneId.js +0 -4
  383. package/core/helpers/Runes/isSorceryRuneIdNum.d.ts +0 -2
  384. package/core/helpers/Runes/isSorceryRuneIdNum.js +0 -4
  385. package/core/helpers/Runes/isSorceryRuneName.d.ts +0 -2
  386. package/core/helpers/Runes/isSorceryRuneName.js +0 -4
  387. package/core/helpers/Runes/isStatRuneId.d.ts +0 -2
  388. package/core/helpers/Runes/isStatRuneId.js +0 -4
  389. package/core/helpers/Runes/isStatRuneIdNum.d.ts +0 -2
  390. package/core/helpers/Runes/isStatRuneIdNum.js +0 -4
  391. package/core/helpers/Runes/isStatRuneName.d.ts +0 -2
  392. package/core/helpers/Runes/isStatRuneName.js +0 -4
  393. package/core/helpers/Spells/getSpellIdByKey.d.ts +0 -4
  394. package/core/helpers/Spells/getSpellIdByKey.js +0 -4
  395. package/core/helpers/Spells/getSpellIdByName.d.ts +0 -3
  396. package/core/helpers/Spells/getSpellIdByName.js +0 -4
  397. package/core/helpers/Spells/getSpellKeyById.d.ts +0 -3
  398. package/core/helpers/Spells/getSpellKeyById.js +0 -4
  399. package/core/helpers/Spells/getSpellKeyByName.d.ts +0 -3
  400. package/core/helpers/Spells/getSpellKeyByName.js +0 -5
  401. package/core/helpers/Spells/getSpellNameById.d.ts +0 -3
  402. package/core/helpers/Spells/getSpellNameById.js +0 -5
  403. package/core/helpers/Spells/getSpellNameByKey.d.ts +0 -4
  404. package/core/helpers/Spells/getSpellNameByKey.js +0 -4
  405. package/core/helpers/Spells/isSpellId.d.ts +0 -2
  406. package/core/helpers/Spells/isSpellId.js +0 -4
  407. package/core/helpers/Spells/isSpellKey.d.ts +0 -2
  408. package/core/helpers/Spells/isSpellKey.js +0 -4
  409. package/core/helpers/Spells/isSpellKeyNum.d.ts +0 -2
  410. package/core/helpers/Spells/isSpellKeyNum.js +0 -4
  411. package/core/helpers/Spells/isSpellName.d.ts +0 -2
  412. package/core/helpers/Spells/isSpellName.js +0 -4
  413. package/core/helpers/getPositionImageUrl.d.ts +0 -2
  414. package/core/helpers/getPositionImageUrl.js +0 -11
  415. package/core/helpers/isRiotId.d.ts +0 -5
  416. package/core/helpers/isRiotId.js +0 -15
  417. package/core/helpers/makeRiotId.d.ts +0 -4
  418. package/core/helpers/makeRiotId.js +0 -5
  419. package/core/helpers/splitRiotId.d.ts +0 -10
  420. package/core/helpers/splitRiotId.js +0 -16
  421. package/core/index.d.ts +0 -139
  422. package/core/index.js +0 -150
  423. package/core/types/championJson.d.ts +0 -85
  424. package/core/types/championJson.js +0 -1
  425. package/core/types/interfaces.d.ts +0 -22
  426. package/core/types/interfaces.js +0 -1
  427. package/core/types/types.d.ts +0 -268
  428. package/core/types/types.js +0 -1
  429. /package/{core → dist}/Locale.js +0 -0
  430. /package/{assets/scripts/asset-scripts/champion.d.ts → dist/helpers/type.js} +0 -0
@@ -1,9 +0,0 @@
1
- import { getItemKeyNumByName } from './getItemKeyNumByName';
2
- const tier1Boots = {
3
- [getItemKeyNumByName('Boots')]: true,
4
- [getItemKeyNumByName('Slightly Magical Footwear')]: true,
5
- [getItemKeyNumByName('Symbiotic Soles')]: true,
6
- };
7
- export function isTier2Boots(itemKey) {
8
- return !(itemKey in tier1Boots);
9
- }
@@ -1,3 +0,0 @@
1
- import { NonStatRuneId } from '../../constants/Runes/NonStatRuneIds';
2
- import { NonStatRuneName } from '../../constants/Runes/NonStatRuneNames';
3
- export declare function getNonStatRuneIdByName(name: NonStatRuneName): NonStatRuneId;
@@ -1,4 +0,0 @@
1
- import { NonStatRuneIds } from '../../constants/Runes/NonStatRuneIds';
2
- export function getNonStatRuneIdByName(name) {
3
- return NonStatRuneIds[name];
4
- }
@@ -1,3 +0,0 @@
1
- import { NonStatRuneId } from '../../constants/Runes/NonStatRuneIds';
2
- import { NonStatRuneName } from '../../constants/Runes/NonStatRuneNames';
3
- export declare function getNonStatRuneNameById(id: NonStatRuneId): NonStatRuneName;
@@ -1,4 +0,0 @@
1
- import { NonStatRuneNames } from '../../constants/Runes/NonStatRuneNames';
2
- export function getNonStatRuneNameById(id) {
3
- return NonStatRuneNames[id];
4
- }
@@ -1,4 +0,0 @@
1
- import { RuneName } from '../../constants/Runes/RuneSets';
2
- import { RuneTreeName } from '../../constants/Runes/RuneTreeNames';
3
- import { StatRunesCategory } from '../../types/types';
4
- export declare function getRuneCategoryName(name: RuneName): RuneTreeName | StatRunesCategory;
@@ -1,16 +0,0 @@
1
- import { PrimaryRuneTreesByRuneNames, StatRuneIds } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export function getRuneCategoryName(name) {
3
- if (name in StatRuneIds)
4
- return 'StatRunes';
5
- if (name in PrimaryRuneTreesByRuneNames.Precision)
6
- return 'Precision';
7
- if (name in PrimaryRuneTreesByRuneNames.Domination)
8
- return 'Domination';
9
- if (name in PrimaryRuneTreesByRuneNames.Sorcery)
10
- return 'Sorcery';
11
- if (name in PrimaryRuneTreesByRuneNames.Resolve)
12
- return 'Resolve';
13
- if (name in PrimaryRuneTreesByRuneNames.Inspiration)
14
- return 'Inspiration';
15
- throw 'impossible code reached';
16
- }
@@ -1,3 +0,0 @@
1
- import { RuneName } from '../../constants/Runes/RuneSets';
2
- import { RuneTreeName } from '../../constants/Runes/RuneTreeNames';
3
- export declare function getRuneCdnUrl(name: (RuneName | RuneTreeName | 'runesicon')): string;
@@ -1,50 +0,0 @@
1
- import { DataDragonUrls } from '../../constants/DataDragonUrls';
2
- import { RuneIconFileNames } from '../../constants/Runes/RuneIconFileNames';
3
- import { isRuneTreeName } from '../../constants/Runes/RuneTreeNames';
4
- import { getRuneCategoryName } from './getRuneCategoryName';
5
- import { isStatRuneName } from './isStatRuneName';
6
- export function getRuneCdnUrl(name) {
7
- if (name == 'runesicon')
8
- return `${DataDragonUrls.TREE_RUNE_ICON_BASE}/${RuneIconFileNames[name]}.png`;
9
- // Choose the appropriate base path
10
- const base = isStatRuneName(name)
11
- ? DataDragonUrls.STAT_RUNE_ICON_BASE
12
- : DataDragonUrls.TREE_RUNE_ICON_BASE;
13
- // Already sufficient enough response for a rune tree name
14
- if (isRuneTreeName(name))
15
- return `${base}/${RuneIconFileNames[name]}.png`;
16
- // And stat runes
17
- if (isStatRuneName(name))
18
- return `${base}/${RuneIconFileNames[name]}.png`;
19
- // Finish for tree rune names
20
- let category = getRuneCategoryName(name);
21
- // Remove spaces, colons, apostrophes and make lowercase
22
- let runeTreeFolder = category.replaceAll(' ', '').toLowerCase();
23
- let runeFolder = name.replaceAll(/[:' ]/g, '').toLowerCase();
24
- // Some runes, for whatever reason, are displaced and badly organized.
25
- // Therefore we are going to add special cases to these runes.
26
- switch (name) {
27
- case 'Triumph':
28
- runeFolder = '';
29
- break;
30
- case 'Last Stand':
31
- runeTreeFolder = 'sorcery';
32
- break;
33
- case 'Aftershock':
34
- runeFolder = 'veteranaftershock';
35
- break;
36
- case 'Shield Bash':
37
- runeFolder = 'mirrorshell';
38
- break;
39
- case 'Unflinching':
40
- runeTreeFolder = 'sorcery';
41
- break;
42
- case 'Approach Velocity':
43
- runeTreeFolder = 'resolve';
44
- break;
45
- case 'Triple Tonic':
46
- runeFolder = 'perfecttiming';
47
- break;
48
- }
49
- return `${base}/${runeTreeFolder}/${runeFolder}/${RuneIconFileNames[name]}.png`;
50
- }
@@ -1,3 +0,0 @@
1
- import { RuneName } from '../../constants/Runes/RuneSets';
2
- import { RuneId } from '../../constants/Runes/RuneSetsByRuneNames';
3
- export declare function getRuneIdByName(name: RuneName): RuneId;
@@ -1,4 +0,0 @@
1
- import { RuneIds } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export function getRuneIdByName(name) {
3
- return RuneIds[name];
4
- }
@@ -1,3 +0,0 @@
1
- import { RuneName } from '../../constants/Runes/RuneSets';
2
- import { RuneId } from '../../constants/Runes/RuneSetsByRuneNames';
3
- export declare function getRuneNameById(id: RuneId): RuneName;
@@ -1,4 +0,0 @@
1
- import { RuneNames } from '../../constants/Runes/RuneSets';
2
- export function getRuneNameById(id) {
3
- return RuneNames[id];
4
- }
@@ -1,3 +0,0 @@
1
- import { StatRuneName } from '../../constants/Runes/RuneSets';
2
- import { StatRuneId } from '../../constants/Runes/RuneSetsByRuneNames';
3
- export declare function getStatRuneIdByName(name: StatRuneName): StatRuneId;
@@ -1,4 +0,0 @@
1
- import { StatRuneIds } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export function getStatRuneIdByName(name) {
3
- return StatRuneIds[name];
4
- }
@@ -1,3 +0,0 @@
1
- import { StatRuneName } from '../../constants/Runes/RuneSets';
2
- import { StatRuneId } from '../../constants/Runes/RuneSetsByRuneNames';
3
- export declare function getStatRuneNameById(id: StatRuneId): StatRuneName;
@@ -1,4 +0,0 @@
1
- import { StatRuneNames } from '../../constants/Runes/RuneSets';
2
- export function getStatRuneNameById(id) {
3
- return StatRuneNames[id];
4
- }
@@ -1,2 +0,0 @@
1
- import { DominationRuneId } from '../../types/types';
2
- export declare function isDominationRuneId(id: string): id is DominationRuneId;
@@ -1,4 +0,0 @@
1
- import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
- export function isDominationRuneId(id) {
3
- return id in PrimaryRuneTrees.Domination;
4
- }
@@ -1,2 +0,0 @@
1
- import { DominationRuneIdNum } from '../../types/types';
2
- export declare function isDominationRuneIdNum(id: number): id is DominationRuneIdNum;
@@ -1,4 +0,0 @@
1
- import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
- export function isDominationRuneIdNum(id) {
3
- return id in PrimaryRuneTrees.Domination;
4
- }
@@ -1,2 +0,0 @@
1
- import { DominationRuneName } from '../../types/types';
2
- export declare function isDominationRuneName(value: any): value is DominationRuneName;
@@ -1,4 +0,0 @@
1
- import { RuneSetsByRuneNames } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export function isDominationRuneName(value) {
3
- return typeof value == 'string' && value in RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Domination;
4
- }
@@ -1,2 +0,0 @@
1
- import { InspirationRuneId } from '../../types/types';
2
- export declare function isInspirationRuneId(id: string): id is InspirationRuneId;
@@ -1,4 +0,0 @@
1
- import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
- export function isInspirationRuneId(id) {
3
- return id in PrimaryRuneTrees.Inspiration;
4
- }
@@ -1,2 +0,0 @@
1
- import { InspirationRuneIdNum } from '../../types/types';
2
- export declare function isInspirationRuneIdNum(id: number): id is InspirationRuneIdNum;
@@ -1,4 +0,0 @@
1
- import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
- export function isInspirationRuneIdNum(id) {
3
- return id in PrimaryRuneTrees.Inspiration;
4
- }
@@ -1,2 +0,0 @@
1
- import { InspirationRuneName } from '../../types/types';
2
- export declare function isInspirationRuneName(value: any): value is InspirationRuneName;
@@ -1,4 +0,0 @@
1
- import { RuneSetsByRuneNames } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export function isInspirationRuneName(value) {
3
- return typeof value == 'string' && value in RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Inspiration;
4
- }
@@ -1,2 +0,0 @@
1
- import { KeystoneRuneId } from '../../types/types';
2
- export declare function isKeystoneRuneId(id: string): id is KeystoneRuneId;
@@ -1,4 +0,0 @@
1
- import { KeystoneNames } from '../../constants/Runes/RuneSets';
2
- export function isKeystoneRuneId(id) {
3
- return id in KeystoneNames;
4
- }
@@ -1,2 +0,0 @@
1
- import { KeystoneRuneIdNum } from '../../types/types';
2
- export declare function isKeystoneRuneIdNum(id: number): id is KeystoneRuneIdNum;
@@ -1,4 +0,0 @@
1
- import { KeystoneNames } from '../../constants/Runes/RuneSets';
2
- export function isKeystoneRuneIdNum(id) {
3
- return id in KeystoneNames;
4
- }
@@ -1,2 +0,0 @@
1
- import { KeystoneRuneName } from '../../types/types';
2
- export declare function isKeystoneRuneName(value: any): value is KeystoneRuneName;
@@ -1,4 +0,0 @@
1
- import { KeystoneIds } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export function isKeystoneRuneName(value) {
3
- return typeof value == 'string' && value in KeystoneIds;
4
- }
@@ -1,2 +0,0 @@
1
- import { NonStatRuneId } from '../../constants/Runes/NonStatRuneIds';
2
- export declare function isNonStatRuneId(id: string): id is NonStatRuneId;
@@ -1,4 +0,0 @@
1
- import { NonStatRuneNames } from '../../constants/Runes/NonStatRuneNames';
2
- export function isNonStatRuneId(id) {
3
- return id in NonStatRuneNames;
4
- }
@@ -1,2 +0,0 @@
1
- import { NonStatRuneIdNum } from '../../constants/Runes/NonStatRuneIdsNum';
2
- export declare function isNonStatRuneIdNum(id: number): id is NonStatRuneIdNum;
@@ -1,4 +0,0 @@
1
- import { NonStatRuneNames } from '../../constants/Runes/NonStatRuneNames';
2
- export function isNonStatRuneIdNum(id) {
3
- return id in NonStatRuneNames;
4
- }
@@ -1,2 +0,0 @@
1
- import { NonStatRuneName } from '../../constants/Runes/NonStatRuneNames';
2
- export declare function isNonStatRuneName(name: any): name is NonStatRuneName;
@@ -1,4 +0,0 @@
1
- import { NonStatRuneIds } from '../../constants/Runes/NonStatRuneIds';
2
- export function isNonStatRuneName(name) {
3
- return typeof name == 'string' && name in NonStatRuneIds;
4
- }
@@ -1,2 +0,0 @@
1
- import { PrecisionRuneId } from '../../types/types';
2
- export declare function isPrecisionRuneId(id: string): id is PrecisionRuneId;
@@ -1,4 +0,0 @@
1
- import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
- export function isPrecisionRuneId(id) {
3
- return id in PrimaryRuneTrees.Precision;
4
- }
@@ -1,2 +0,0 @@
1
- import { PrecisionRuneIdNum } from '../../types/types';
2
- export declare function isPrecisionRuneIdNum(id: number): id is PrecisionRuneIdNum;
@@ -1,4 +0,0 @@
1
- import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
- export function isPrecisionRuneIdNum(id) {
3
- return id in PrimaryRuneTrees.Precision;
4
- }
@@ -1,2 +0,0 @@
1
- import { PrecisionRuneName } from '../../types/types';
2
- export declare function isPrecisionRuneName(value: any): value is PrecisionRuneName;
@@ -1,4 +0,0 @@
1
- import { RuneSetsByRuneNames } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export function isPrecisionRuneName(value) {
3
- return typeof value == 'string' && value in RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Precision;
4
- }
@@ -1,2 +0,0 @@
1
- import { ResolveRuneId } from '../../types/types';
2
- export declare function isResolveRuneId(id: string): id is ResolveRuneId;
@@ -1,4 +0,0 @@
1
- import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
- export function isResolveRuneId(id) {
3
- return id in PrimaryRuneTrees.Resolve;
4
- }
@@ -1,2 +0,0 @@
1
- import { ResolveRuneIdNum } from '../../types/types';
2
- export declare function isResolveRuneIdNum(id: number): id is ResolveRuneIdNum;
@@ -1,4 +0,0 @@
1
- import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
- export function isResolveRuneIdNum(id) {
3
- return id in PrimaryRuneTrees.Resolve;
4
- }
@@ -1,2 +0,0 @@
1
- import { ResolveRuneName } from '../../types/types';
2
- export declare function isResolveRuneName(value: any): value is ResolveRuneName;
@@ -1,4 +0,0 @@
1
- import { RuneSetsByRuneNames } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export function isResolveRuneName(value) {
3
- return typeof value == 'string' && value in RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Resolve;
4
- }
@@ -1,2 +0,0 @@
1
- import { RuneId } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export declare function isRuneId(id: string): id is RuneId;
@@ -1,4 +0,0 @@
1
- import { RuneNames } from '../../constants/Runes/RuneSets';
2
- export function isRuneId(id) {
3
- return id in RuneNames;
4
- }
@@ -1,2 +0,0 @@
1
- import { RuneIdNum } from '../../constants/Runes/RuneSetsByRuneNamesNum';
2
- export declare function isRuneIdNum(id: number): id is RuneIdNum;
@@ -1,4 +0,0 @@
1
- import { RuneNames } from '../../constants/Runes/RuneSets';
2
- export function isRuneIdNum(id) {
3
- return id in RuneNames;
4
- }
@@ -1,2 +0,0 @@
1
- import { RuneName } from '../../constants/Runes/RuneSets';
2
- export declare function isRuneName(name: any): name is RuneName;
@@ -1,4 +0,0 @@
1
- import { RuneIds } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export function isRuneName(name) {
3
- return typeof name == 'string' && name in RuneIds;
4
- }
@@ -1,2 +0,0 @@
1
- import { SorceryRuneId } from '../../types/types';
2
- export declare function isSorceryRuneId(id: string): id is SorceryRuneId;
@@ -1,4 +0,0 @@
1
- import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
- export function isSorceryRuneId(id) {
3
- return id in PrimaryRuneTrees.Sorcery;
4
- }
@@ -1,2 +0,0 @@
1
- import { SorceryRuneIdNum } from '../../types/types';
2
- export declare function isSorceryRuneIdNum(id: number): id is SorceryRuneIdNum;
@@ -1,4 +0,0 @@
1
- import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
- export function isSorceryRuneIdNum(id) {
3
- return id in PrimaryRuneTrees.Sorcery;
4
- }
@@ -1,2 +0,0 @@
1
- import { SorceryRuneName } from '../../types/types';
2
- export declare function isSorceryRuneName(value: any): value is SorceryRuneName;
@@ -1,4 +0,0 @@
1
- import { RuneSetsByRuneNames } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export function isSorceryRuneName(value) {
3
- return typeof value == 'string' && value in RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Sorcery;
4
- }
@@ -1,2 +0,0 @@
1
- import { StatRuneId } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export declare function isStatRuneId(id: string): id is StatRuneId;
@@ -1,4 +0,0 @@
1
- import { StatRuneNames } from '../../constants/Runes/RuneSets';
2
- export function isStatRuneId(id) {
3
- return id in StatRuneNames;
4
- }
@@ -1,2 +0,0 @@
1
- import { StatRuneIdNum } from '../../constants/Runes/RuneSetsByRuneNamesNum';
2
- export declare function isStatRuneIdNum(id: number): id is StatRuneIdNum;
@@ -1,4 +0,0 @@
1
- import { StatRuneNames } from '../../constants/Runes/RuneSets';
2
- export function isStatRuneIdNum(id) {
3
- return id in StatRuneNames;
4
- }
@@ -1,2 +0,0 @@
1
- import { StatRuneName } from '../../constants/Runes/RuneSets';
2
- export declare function isStatRuneName(name: any): name is StatRuneName;
@@ -1,4 +0,0 @@
1
- import { StatRuneIds } from '../../constants/Runes/RuneSetsByRuneNames';
2
- export function isStatRuneName(name) {
3
- return typeof name == 'string' && name in StatRuneIds;
4
- }
@@ -1,4 +0,0 @@
1
- import { SpellId } from '../../constants/Spells/SpellIds';
2
- import { SpellKey } from '../../constants/Spells/SpellKeys';
3
- import { SpellKeyNum } from '../../constants/Spells/SpellKeysNum';
4
- export declare function getSpellIdByKey(key: SpellKey | SpellKeyNum): SpellId;
@@ -1,4 +0,0 @@
1
- import { SpellIds } from '../../constants/Spells/SpellIds';
2
- export function getSpellIdByKey(key) {
3
- return SpellIds[key];
4
- }
@@ -1,3 +0,0 @@
1
- import { SpellId } from '../../constants/Spells/SpellIds';
2
- import { SpellName } from '../../constants/Spells/SpellNames';
3
- export declare function getSpellIdByName(name: SpellName): SpellId;
@@ -1,4 +0,0 @@
1
- import { SpellIdsByName } from '../../constants/Spells/SpellIdsByName';
2
- export function getSpellIdByName(name) {
3
- return SpellIdsByName[name];
4
- }
@@ -1,3 +0,0 @@
1
- import { SpellId } from '../../constants/Spells/SpellIds';
2
- import { SpellKey } from '../../constants/Spells/SpellKeys';
3
- export declare function getSpellKeyById(id: SpellId): SpellKey;
@@ -1,4 +0,0 @@
1
- import { SpellKeys } from '../../constants/Spells/SpellKeys';
2
- export function getSpellKeyById(id) {
3
- return SpellKeys[id];
4
- }
@@ -1,3 +0,0 @@
1
- import { SpellKey } from '../../constants/Spells/SpellKeys';
2
- import { SpellName } from '../../constants/Spells/SpellNames';
3
- export declare function getSpellKeyByName(name: SpellName): SpellKey;
@@ -1,5 +0,0 @@
1
- import { SpellIdsByName } from '../../constants/Spells/SpellIdsByName';
2
- import { SpellKeys } from '../../constants/Spells/SpellKeys';
3
- export function getSpellKeyByName(name) {
4
- return SpellKeys[SpellIdsByName[name]];
5
- }
@@ -1,3 +0,0 @@
1
- import { SpellId } from '../../constants/Spells/SpellIds';
2
- import { SpellName } from '../../constants/Spells/SpellNames';
3
- export declare function getSpellNameById(id: SpellId): SpellName;
@@ -1,5 +0,0 @@
1
- import { SpellKeys } from '../../constants/Spells/SpellKeys';
2
- import { SpellNames } from '../../constants/Spells/SpellNames';
3
- export function getSpellNameById(id) {
4
- return SpellNames[SpellKeys[id]];
5
- }
@@ -1,4 +0,0 @@
1
- import { SpellKey } from '../../constants/Spells/SpellKeys';
2
- import { SpellKeyNum } from '../../constants/Spells/SpellKeysNum';
3
- import { SpellName } from '../../constants/Spells/SpellNames';
4
- export declare function getSpellNameByKey(key: SpellKey | SpellKeyNum): SpellName;
@@ -1,4 +0,0 @@
1
- import { SpellNames } from '../../constants/Spells/SpellNames';
2
- export function getSpellNameByKey(key) {
3
- return SpellNames[key];
4
- }
@@ -1,2 +0,0 @@
1
- import { SpellId } from '../../constants/Spells/SpellIds';
2
- export declare function isSpellId(id: any): id is SpellId;
@@ -1,4 +0,0 @@
1
- import { SpellKeys } from '../../constants/Spells/SpellKeys';
2
- export function isSpellId(id) {
3
- return typeof id == 'string' && id in SpellKeys;
4
- }
@@ -1,2 +0,0 @@
1
- import { SpellKey } from '../../constants/Spells/SpellKeys';
2
- export declare function isSpellKey(key: string): key is SpellKey;
@@ -1,4 +0,0 @@
1
- import { SpellNames } from '../../constants/Spells/SpellNames';
2
- export function isSpellKey(key) {
3
- return key in SpellNames;
4
- }
@@ -1,2 +0,0 @@
1
- import { SpellKeyNum } from '../../constants/Spells/SpellKeysNum';
2
- export declare function isSpellKeyNum(key: number): key is SpellKeyNum;
@@ -1,4 +0,0 @@
1
- import { SpellNames } from '../../constants/Spells/SpellNames';
2
- export function isSpellKeyNum(key) {
3
- return key in SpellNames;
4
- }
@@ -1,2 +0,0 @@
1
- import { SpellName } from '../../constants/Spells/SpellNames';
2
- export declare function isSpellName(name: any): name is SpellName;
@@ -1,4 +0,0 @@
1
- import { SpellIdsByName } from '../../constants/Spells/SpellIdsByName';
2
- export function isSpellName(name) {
3
- return typeof name == 'string' && name in SpellIdsByName;
4
- }
@@ -1,2 +0,0 @@
1
- import { Position } from '../constants/Positions';
2
- export declare function getPositionImageUrl(position: Position): string;
@@ -1,11 +0,0 @@
1
- import { DataDragonUrls } from '../constants/DataDragonUrls';
2
- export function getPositionImageUrl(position) {
3
- return `${DataDragonUrls.POSITION_ICON_BASE}/${PositionUrlPaths[position]}.svg`;
4
- }
5
- const PositionUrlPaths = {
6
- TOP: 'position-top',
7
- JUNGLE: 'position-jungle',
8
- MIDDLE: 'position-middle',
9
- BOTTOM: 'position-bottom',
10
- UTILITY: 'position-utility',
11
- };
@@ -1,5 +0,0 @@
1
- export declare function isRiotId(riotId: any,
2
- /** @default '#' */
3
- splitChar?: string): riotId is string;
4
- export declare const maxRiotIdNameCharCount: 16;
5
- export declare const maxRiotIdTagCharCount: 5;
@@ -1,15 +0,0 @@
1
- import { splitRiotId } from './splitRiotId';
2
- export function isRiotId(riotId,
3
- /** @default '#' */
4
- splitChar = '#') {
5
- if (typeof riotId != 'string')
6
- return false;
7
- const id = splitRiotId(riotId, splitChar);
8
- if (id.name == '' || id.name.length > maxRiotIdNameCharCount)
9
- return false;
10
- if (id.tag == '' || id.tag.length > maxRiotIdTagCharCount)
11
- return false;
12
- return true;
13
- }
14
- export const maxRiotIdNameCharCount = 16;
15
- export const maxRiotIdTagCharCount = 5;