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.
- package/README.md +130 -28
- package/dist/Locale.d.ts +2 -0
- package/dist/Patch.d.ts +3 -0
- package/dist/Patch.js +3 -0
- package/{core/constants/Champions/ChampionClasses.d.ts → dist/constants/custom.d.ts} +1 -1
- package/{core/constants/Champions/ChampionClasses.js → dist/constants/custom.js} +2 -2
- package/dist/constants/events.d.ts +49 -0
- package/dist/constants/events.js +55 -0
- package/dist/constants/history.d.ts +26 -0
- package/dist/constants/history.js +29 -0
- package/{core/constants/RankedTiers.d.ts → dist/constants/leagues.d.ts} +9 -1
- package/{core/constants/RankedTiers.js → dist/constants/leagues.js} +11 -2
- package/{core/constants/Locales.d.ts → dist/constants/locales.d.ts} +1 -1
- package/{core/constants/Locales.js → dist/constants/locales.js} +2 -2
- package/dist/constants/participants.d.ts +38 -0
- package/dist/constants/participants.js +43 -0
- package/dist/enums/ItemSrTypes.d.ts +11 -0
- package/dist/enums/ItemSrTypes.js +10 -0
- package/dist/enums/StatRuneSlots.d.ts +6 -0
- package/dist/enums/StatRuneSlots.js +5 -0
- package/dist/helpers/champion.d.ts +678 -0
- package/dist/helpers/champion.js +18 -0
- package/dist/helpers/item.d.ts +39 -0
- package/dist/helpers/item.js +113 -0
- package/dist/helpers/riotId.d.ts +16 -0
- package/dist/helpers/riotId.js +33 -0
- package/dist/helpers/rune.d.ts +36 -0
- package/dist/helpers/rune.js +70 -0
- package/dist/helpers/spell.d.ts +6 -0
- package/dist/helpers/spell.js +18 -0
- package/dist/helpers/type.d.ts +3 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +27 -0
- package/dist/lol.d.ts +4029 -0
- package/dist/lol.js +182 -0
- package/dist/objects/Maps.d.ts +113 -0
- package/dist/objects/Maps.js +69 -0
- package/dist/objects/Queues.d.ts +192 -0
- package/dist/objects/Queues.js +71 -0
- package/dist/objects/Regions.d.ts +132 -0
- package/dist/objects/Regions.js +55 -0
- package/dist/objects/generated/Champions.d.ts +1858 -0
- package/dist/objects/generated/Champions.js +4 -0
- package/dist/objects/generated/Items.d.ts +5108 -0
- package/dist/objects/generated/Items.js +4 -0
- package/dist/objects/generated/Runes.d.ts +1477 -0
- package/dist/objects/generated/Runes.js +13 -0
- package/dist/objects/generated/Spells.d.ts +208 -0
- package/dist/objects/generated/Spells.js +4 -0
- package/package.json +17 -15
- package/assets/constants/BootsItemNames.d.ts +0 -1
- package/assets/constants/BootsItemNames.js +0 -13
- package/assets/constants/LegendaryItemNames.d.ts +0 -4
- package/assets/constants/LegendaryItemNames.js +0 -125
- package/assets/constants/StatRunes.d.ts +0 -28
- package/assets/constants/StatRunes.js +0 -11
- package/assets/constants/StatRunesByRow.d.ts +0 -17
- package/assets/constants/StatRunesByRow.js +0 -17
- package/assets/constants/base/Champion.d.ts +0 -7903
- package/assets/constants/base/Champion.js +0 -1
- package/assets/constants/base/Item.d.ts +0 -21193
- package/assets/constants/base/Item.js +0 -1
- package/assets/constants/base/RunesReforged.d.ts +0 -491
- package/assets/constants/base/RunesReforged.js +0 -1
- package/assets/constants/base/Summoner.d.ts +0 -582
- package/assets/constants/base/Summoner.js +0 -1
- package/assets/index.d.ts +0 -4
- package/assets/index.js +0 -11
- package/assets/scripts/asset-scripts/champion.js +0 -10
- package/assets/scripts/asset-scripts/generate-all.d.ts +0 -4
- package/assets/scripts/asset-scripts/generate-all.js +0 -4
- package/assets/scripts/asset-scripts/item.d.ts +0 -1
- package/assets/scripts/asset-scripts/item.js +0 -10
- package/assets/scripts/asset-scripts/runes-reforged.d.ts +0 -1
- package/assets/scripts/asset-scripts/runes-reforged.js +0 -10
- package/assets/scripts/asset-scripts/summoner.d.ts +0 -1
- package/assets/scripts/asset-scripts/summoner.js +0 -10
- package/assets/scripts/constants/RuneIdComment.d.ts +0 -1
- package/assets/scripts/constants/RuneIdComment.js +0 -24
- package/assets/scripts/generate-all.d.ts +0 -23
- package/assets/scripts/generate-all.js +0 -27
- package/assets/scripts/generate-categorized-item-keys-num.d.ts +0 -1
- package/assets/scripts/generate-categorized-item-keys-num.js +0 -57
- package/assets/scripts/generate-categorized-item-keys.d.ts +0 -1
- package/assets/scripts/generate-categorized-item-keys.js +0 -59
- package/assets/scripts/generate-categorized-item-names.d.ts +0 -1
- package/assets/scripts/generate-categorized-item-names.js +0 -56
- package/assets/scripts/generate-champion-ids-by-name.d.ts +0 -1
- package/assets/scripts/generate-champion-ids-by-name.js +0 -17
- package/assets/scripts/generate-champion-ids.d.ts +0 -1
- package/assets/scripts/generate-champion-ids.js +0 -18
- package/assets/scripts/generate-champion-keys-num.d.ts +0 -1
- package/assets/scripts/generate-champion-keys-num.js +0 -20
- package/assets/scripts/generate-champion-keys.d.ts +0 -1
- package/assets/scripts/generate-champion-keys.js +0 -18
- package/assets/scripts/generate-champion-names.d.ts +0 -1
- package/assets/scripts/generate-champion-names.js +0 -18
- package/assets/scripts/generate-item-keys-num.d.ts +0 -1
- package/assets/scripts/generate-item-keys-num.js +0 -24
- package/assets/scripts/generate-item-keys.d.ts +0 -1
- package/assets/scripts/generate-item-keys.js +0 -22
- package/assets/scripts/generate-item-names.d.ts +0 -1
- package/assets/scripts/generate-item-names.js +0 -22
- package/assets/scripts/generate-non-stat-rune-ids-num.d.ts +0 -1
- package/assets/scripts/generate-non-stat-rune-ids-num.js +0 -21
- package/assets/scripts/generate-non-stat-rune-ids.d.ts +0 -1
- package/assets/scripts/generate-non-stat-rune-ids.js +0 -22
- package/assets/scripts/generate-non-stat-rune-names.d.ts +0 -1
- package/assets/scripts/generate-non-stat-rune-names.js +0 -20
- package/assets/scripts/generate-rune-ids.d.ts +0 -1
- package/assets/scripts/generate-rune-ids.js +0 -27
- package/assets/scripts/generate-rune-names.d.ts +0 -1
- package/assets/scripts/generate-rune-names.js +0 -25
- package/assets/scripts/generate-rune-picking-relationships.d.ts +0 -1
- package/assets/scripts/generate-rune-picking-relationships.js +0 -52
- package/assets/scripts/generate-rune-sets-by-rune-names-num.d.ts +0 -1
- package/assets/scripts/generate-rune-sets-by-rune-names-num.js +0 -121
- package/assets/scripts/generate-rune-sets-by-rune-names.d.ts +0 -1
- package/assets/scripts/generate-rune-sets-by-rune-names.js +0 -119
- package/assets/scripts/generate-rune-sets.d.ts +0 -1
- package/assets/scripts/generate-rune-sets.js +0 -116
- package/assets/scripts/generate-spell-ids-by-name.d.ts +0 -1
- package/assets/scripts/generate-spell-ids-by-name.js +0 -17
- package/assets/scripts/generate-spell-ids.d.ts +0 -1
- package/assets/scripts/generate-spell-ids.js +0 -18
- package/assets/scripts/generate-spell-keys-num.d.ts +0 -1
- package/assets/scripts/generate-spell-keys-num.js +0 -20
- package/assets/scripts/generate-spell-keys.d.ts +0 -1
- package/assets/scripts/generate-spell-keys.js +0 -18
- package/assets/scripts/generate-spell-names.d.ts +0 -1
- package/assets/scripts/generate-spell-names.js +0 -18
- package/assets/scripts/generate-stat-rune-ids.d.ts +0 -1
- package/assets/scripts/generate-stat-rune-ids.js +0 -18
- package/assets/scripts/generate-stat-rune-names.d.ts +0 -1
- package/assets/scripts/generate-stat-rune-names.js +0 -16
- package/assets/scripts/helpers/enableEscapedValues.d.ts +0 -15
- package/assets/scripts/helpers/enableEscapedValues.js +0 -34
- package/assets/scripts/helpers/generateIndexFile.d.ts +0 -1
- package/assets/scripts/helpers/generateIndexFile.js +0 -3
- package/assets/scripts/helpers/getExportStatement.d.ts +0 -6
- package/assets/scripts/helpers/getExportStatement.js +0 -37
- package/assets/scripts/helpers/getFmtdComment.d.ts +0 -5
- package/assets/scripts/helpers/getFmtdComment.js +0 -11
- package/assets/scripts/helpers/validateNumber.d.ts +0 -1
- package/assets/scripts/helpers/validateNumber.js +0 -6
- package/assets/scripts/helpers/writeToTmpFile.d.ts +0 -13
- package/assets/scripts/helpers/writeToTmpFile.js +0 -18
- package/assets/scripts/print-file-names.d.ts +0 -1
- package/assets/scripts/print-file-names.js +0 -89
- package/core/Locale.d.ts +0 -2
- package/core/PatchVersion.d.ts +0 -1
- package/core/PatchVersion.js +0 -1
- package/core/constants/Abilities.d.ts +0 -17
- package/core/constants/Abilities.js +0 -19
- package/core/constants/BuildingTypes.d.ts +0 -6
- package/core/constants/BuildingTypes.js +0 -7
- package/core/constants/Champions/ChampionIds.d.ts +0 -171
- package/core/constants/Champions/ChampionIds.js +0 -1
- package/core/constants/Champions/ChampionIdsByName.d.ts +0 -170
- package/core/constants/Champions/ChampionIdsByName.js +0 -1
- package/core/constants/Champions/ChampionKeys.d.ts +0 -171
- package/core/constants/Champions/ChampionKeys.js +0 -1
- package/core/constants/Champions/ChampionKeysNum.d.ts +0 -171
- package/core/constants/Champions/ChampionKeysNum.js +0 -1
- package/core/constants/Champions/ChampionNames.d.ts +0 -171
- package/core/constants/Champions/ChampionNames.js +0 -1
- package/core/constants/Continents.d.ts +0 -8
- package/core/constants/Continents.js +0 -9
- package/core/constants/DataDragonUrls.d.ts +0 -52
- package/core/constants/DataDragonUrls.js +0 -58
- package/core/constants/DragonTypes.d.ts +0 -11
- package/core/constants/DragonTypes.js +0 -12
- package/core/constants/GameModes.d.ts +0 -12
- package/core/constants/GameModes.js +0 -13
- package/core/constants/GameTypes.d.ts +0 -7
- package/core/constants/GameTypes.js +0 -8
- package/core/constants/Items/BootsItemKeys.d.ts +0 -14
- package/core/constants/Items/BootsItemKeys.js +0 -1
- package/core/constants/Items/BootsItemKeysNum.d.ts +0 -14
- package/core/constants/Items/BootsItemKeysNum.js +0 -1
- package/core/constants/Items/BootsItemNames.d.ts +0 -14
- package/core/constants/Items/BootsItemNames.js +0 -1
- package/core/constants/Items/ItemKeys.d.ts +0 -238
- package/core/constants/Items/ItemKeys.js +0 -1
- package/core/constants/Items/ItemKeysNum.d.ts +0 -238
- package/core/constants/Items/ItemKeysNum.js +0 -1
- package/core/constants/Items/ItemNames.d.ts +0 -244
- package/core/constants/Items/ItemNames.js +0 -1
- package/core/constants/Items/ItemTypes.d.ts +0 -7
- package/core/constants/Items/ItemTypes.js +0 -8
- package/core/constants/Items/LegendaryItemKeys.d.ts +0 -112
- package/core/constants/Items/LegendaryItemKeys.js +0 -1
- package/core/constants/Items/LegendaryItemKeysNum.d.ts +0 -112
- package/core/constants/Items/LegendaryItemKeysNum.js +0 -1
- package/core/constants/Items/LegendaryItemNames.d.ts +0 -112
- package/core/constants/Items/LegendaryItemNames.js +0 -1
- package/core/constants/KillTypes.d.ts +0 -7
- package/core/constants/KillTypes.js +0 -8
- package/core/constants/LaneTypes.d.ts +0 -7
- package/core/constants/LaneTypes.js +0 -8
- package/core/constants/Lanes.d.ts +0 -8
- package/core/constants/Lanes.js +0 -9
- package/core/constants/LeagueTexts.d.ts +0 -49
- package/core/constants/LeagueTexts.js +0 -54
- package/core/constants/Levels.d.ts +0 -22
- package/core/constants/Levels.js +0 -23
- package/core/constants/MapIds.d.ts +0 -17
- package/core/constants/MapIds.js +0 -18
- package/core/constants/MonsterTypes.d.ts +0 -8
- package/core/constants/MonsterTypes.js +0 -9
- package/core/constants/ParticipantIds.d.ts +0 -14
- package/core/constants/ParticipantIds.js +0 -15
- package/core/constants/PlatformApiUris.d.ts +0 -20
- package/core/constants/PlatformApiUris.js +0 -21
- package/core/constants/PlatformIds.d.ts +0 -23
- package/core/constants/PlatformIds.js +0 -26
- package/core/constants/Positions.d.ts +0 -9
- package/core/constants/Positions.js +0 -10
- package/core/constants/QueueIds.d.ts +0 -114
- package/core/constants/QueueIds.js +0 -140
- package/core/constants/QueueTypes.d.ts +0 -7
- package/core/constants/QueueTypes.js +0 -8
- package/core/constants/RankedRanks.d.ts +0 -8
- package/core/constants/RankedRanks.js +0 -9
- package/core/constants/RegionalApiUris.d.ts +0 -8
- package/core/constants/RegionalApiUris.js +0 -9
- package/core/constants/Regions.d.ts +0 -23
- package/core/constants/Regions.js +0 -26
- package/core/constants/RelativeTeams.d.ts +0 -6
- package/core/constants/RelativeTeams.js +0 -7
- package/core/constants/Roles.d.ts +0 -8
- package/core/constants/Roles.js +0 -9
- package/core/constants/Runes/NonStatRuneIds.d.ts +0 -85
- package/core/constants/Runes/NonStatRuneIds.js +0 -1
- package/core/constants/Runes/NonStatRuneIdsNum.d.ts +0 -63
- package/core/constants/Runes/NonStatRuneIdsNum.js +0 -1
- package/core/constants/Runes/NonStatRuneNames.d.ts +0 -63
- package/core/constants/Runes/NonStatRuneNames.js +0 -1
- package/core/constants/Runes/RuneIconFileNames.d.ts +0 -14
- package/core/constants/Runes/RuneIconFileNames.js +0 -97
- package/core/constants/Runes/RunePickingRelationships.d.ts +0 -74
- package/core/constants/Runes/RunePickingRelationships.js +0 -4
- package/core/constants/Runes/RuneSets.d.ts +0 -721
- package/core/constants/Runes/RuneSets.js +0 -11
- package/core/constants/Runes/RuneSetsByRuneNames.d.ts +0 -765
- package/core/constants/Runes/RuneSetsByRuneNames.js +0 -11
- package/core/constants/Runes/RuneSetsByRuneNamesNum.d.ts +0 -765
- package/core/constants/Runes/RuneSetsByRuneNamesNum.js +0 -11
- package/core/constants/Runes/RuneTreeIds.d.ts +0 -11
- package/core/constants/Runes/RuneTreeIds.js +0 -14
- package/core/constants/Runes/RuneTreeIdsNum.d.ts +0 -11
- package/core/constants/Runes/RuneTreeIdsNum.js +0 -14
- package/core/constants/Runes/RuneTreeNames.d.ts +0 -11
- package/core/constants/Runes/RuneTreeNames.js +0 -14
- package/core/constants/Runes/RuneTreeTypes.d.ts +0 -6
- package/core/constants/Runes/RuneTreeTypes.js +0 -7
- package/core/constants/SkillSlots.d.ts +0 -8
- package/core/constants/SkillSlots.js +0 -9
- package/core/constants/Skills.d.ts +0 -8
- package/core/constants/Skills.js +0 -9
- package/core/constants/Spells/SpellIds.d.ts +0 -21
- package/core/constants/Spells/SpellIds.js +0 -1
- package/core/constants/Spells/SpellIdsByName.d.ts +0 -18
- package/core/constants/Spells/SpellIdsByName.js +0 -1
- package/core/constants/Spells/SpellKeys.d.ts +0 -21
- package/core/constants/Spells/SpellKeys.js +0 -1
- package/core/constants/Spells/SpellKeysNum.d.ts +0 -21
- package/core/constants/Spells/SpellKeysNum.js +0 -1
- package/core/constants/Spells/SpellNames.d.ts +0 -21
- package/core/constants/Spells/SpellNames.js +0 -1
- package/core/constants/TeamIds.d.ts +0 -6
- package/core/constants/TeamIds.js +0 -7
- package/core/constants/TowerTypes.d.ts +0 -8
- package/core/constants/TowerTypes.js +0 -9
- package/core/constants/WardTypes.d.ts +0 -9
- package/core/constants/WardTypes.js +0 -10
- package/core/helpers/Champions/getChampionIdByKey.d.ts +0 -4
- package/core/helpers/Champions/getChampionIdByKey.js +0 -4
- package/core/helpers/Champions/getChampionIdByName.d.ts +0 -3
- package/core/helpers/Champions/getChampionIdByName.js +0 -4
- package/core/helpers/Champions/getChampionKeyById.d.ts +0 -3
- package/core/helpers/Champions/getChampionKeyById.js +0 -4
- package/core/helpers/Champions/getChampionKeyByName.d.ts +0 -3
- package/core/helpers/Champions/getChampionKeyByName.js +0 -5
- package/core/helpers/Champions/getChampionNameById.d.ts +0 -3
- package/core/helpers/Champions/getChampionNameById.js +0 -5
- package/core/helpers/Champions/getChampionNameByKey.d.ts +0 -4
- package/core/helpers/Champions/getChampionNameByKey.js +0 -4
- package/core/helpers/Champions/isChampionId.d.ts +0 -2
- package/core/helpers/Champions/isChampionId.js +0 -4
- package/core/helpers/Champions/isChampionKey.d.ts +0 -2
- package/core/helpers/Champions/isChampionKey.js +0 -4
- package/core/helpers/Champions/isChampionKeyNum.d.ts +0 -2
- package/core/helpers/Champions/isChampionKeyNum.js +0 -4
- package/core/helpers/Champions/isChampionName.d.ts +0 -2
- package/core/helpers/Champions/isChampionName.js +0 -4
- package/core/helpers/Items/getItemKeyByName.d.ts +0 -3
- package/core/helpers/Items/getItemKeyByName.js +0 -4
- package/core/helpers/Items/getItemKeyNumByName.d.ts +0 -3
- package/core/helpers/Items/getItemKeyNumByName.js +0 -4
- package/core/helpers/Items/getItemNameByKey.d.ts +0 -4
- package/core/helpers/Items/getItemNameByKey.js +0 -4
- package/core/helpers/Items/isBootsItemKey.d.ts +0 -2
- package/core/helpers/Items/isBootsItemKey.js +0 -4
- package/core/helpers/Items/isBootsItemKeyNum.d.ts +0 -2
- package/core/helpers/Items/isBootsItemKeyNum.js +0 -4
- package/core/helpers/Items/isBootsItemName.d.ts +0 -2
- package/core/helpers/Items/isBootsItemName.js +0 -4
- package/core/helpers/Items/isItemKey.d.ts +0 -2
- package/core/helpers/Items/isItemKey.js +0 -4
- package/core/helpers/Items/isItemKeyNum.d.ts +0 -2
- package/core/helpers/Items/isItemKeyNum.js +0 -4
- package/core/helpers/Items/isItemName.d.ts +0 -2
- package/core/helpers/Items/isItemName.js +0 -4
- package/core/helpers/Items/isLegendaryItemKey.d.ts +0 -2
- package/core/helpers/Items/isLegendaryItemKey.js +0 -4
- package/core/helpers/Items/isLegendaryItemKeyNum.d.ts +0 -2
- package/core/helpers/Items/isLegendaryItemKeyNum.js +0 -4
- package/core/helpers/Items/isLegendaryItemName.d.ts +0 -2
- package/core/helpers/Items/isLegendaryItemName.js +0 -4
- package/core/helpers/Items/isTier2Boots.d.ts +0 -3
- package/core/helpers/Items/isTier2Boots.js +0 -9
- package/core/helpers/Runes/getNonStatRuneIdByName.d.ts +0 -3
- package/core/helpers/Runes/getNonStatRuneIdByName.js +0 -4
- package/core/helpers/Runes/getNonStatRuneNameById.d.ts +0 -3
- package/core/helpers/Runes/getNonStatRuneNameById.js +0 -4
- package/core/helpers/Runes/getRuneCategoryName.d.ts +0 -4
- package/core/helpers/Runes/getRuneCategoryName.js +0 -16
- package/core/helpers/Runes/getRuneCdnUrl.d.ts +0 -3
- package/core/helpers/Runes/getRuneCdnUrl.js +0 -50
- package/core/helpers/Runes/getRuneIdByName.d.ts +0 -3
- package/core/helpers/Runes/getRuneIdByName.js +0 -4
- package/core/helpers/Runes/getRuneNameById.d.ts +0 -3
- package/core/helpers/Runes/getRuneNameById.js +0 -4
- package/core/helpers/Runes/getStatRuneIdByName.d.ts +0 -3
- package/core/helpers/Runes/getStatRuneIdByName.js +0 -4
- package/core/helpers/Runes/getStatRuneNameById.d.ts +0 -3
- package/core/helpers/Runes/getStatRuneNameById.js +0 -4
- package/core/helpers/Runes/isDominationRuneId.d.ts +0 -2
- package/core/helpers/Runes/isDominationRuneId.js +0 -4
- package/core/helpers/Runes/isDominationRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isDominationRuneIdNum.js +0 -4
- package/core/helpers/Runes/isDominationRuneName.d.ts +0 -2
- package/core/helpers/Runes/isDominationRuneName.js +0 -4
- package/core/helpers/Runes/isInspirationRuneId.d.ts +0 -2
- package/core/helpers/Runes/isInspirationRuneId.js +0 -4
- package/core/helpers/Runes/isInspirationRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isInspirationRuneIdNum.js +0 -4
- package/core/helpers/Runes/isInspirationRuneName.d.ts +0 -2
- package/core/helpers/Runes/isInspirationRuneName.js +0 -4
- package/core/helpers/Runes/isKeystoneRuneId.d.ts +0 -2
- package/core/helpers/Runes/isKeystoneRuneId.js +0 -4
- package/core/helpers/Runes/isKeystoneRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isKeystoneRuneIdNum.js +0 -4
- package/core/helpers/Runes/isKeystoneRuneName.d.ts +0 -2
- package/core/helpers/Runes/isKeystoneRuneName.js +0 -4
- package/core/helpers/Runes/isNonStatRuneId.d.ts +0 -2
- package/core/helpers/Runes/isNonStatRuneId.js +0 -4
- package/core/helpers/Runes/isNonStatRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isNonStatRuneIdNum.js +0 -4
- package/core/helpers/Runes/isNonStatRuneName.d.ts +0 -2
- package/core/helpers/Runes/isNonStatRuneName.js +0 -4
- package/core/helpers/Runes/isPrecisionRuneId.d.ts +0 -2
- package/core/helpers/Runes/isPrecisionRuneId.js +0 -4
- package/core/helpers/Runes/isPrecisionRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isPrecisionRuneIdNum.js +0 -4
- package/core/helpers/Runes/isPrecisionRuneName.d.ts +0 -2
- package/core/helpers/Runes/isPrecisionRuneName.js +0 -4
- package/core/helpers/Runes/isResolveRuneId.d.ts +0 -2
- package/core/helpers/Runes/isResolveRuneId.js +0 -4
- package/core/helpers/Runes/isResolveRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isResolveRuneIdNum.js +0 -4
- package/core/helpers/Runes/isResolveRuneName.d.ts +0 -2
- package/core/helpers/Runes/isResolveRuneName.js +0 -4
- package/core/helpers/Runes/isRuneId.d.ts +0 -2
- package/core/helpers/Runes/isRuneId.js +0 -4
- package/core/helpers/Runes/isRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isRuneIdNum.js +0 -4
- package/core/helpers/Runes/isRuneName.d.ts +0 -2
- package/core/helpers/Runes/isRuneName.js +0 -4
- package/core/helpers/Runes/isSorceryRuneId.d.ts +0 -2
- package/core/helpers/Runes/isSorceryRuneId.js +0 -4
- package/core/helpers/Runes/isSorceryRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isSorceryRuneIdNum.js +0 -4
- package/core/helpers/Runes/isSorceryRuneName.d.ts +0 -2
- package/core/helpers/Runes/isSorceryRuneName.js +0 -4
- package/core/helpers/Runes/isStatRuneId.d.ts +0 -2
- package/core/helpers/Runes/isStatRuneId.js +0 -4
- package/core/helpers/Runes/isStatRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isStatRuneIdNum.js +0 -4
- package/core/helpers/Runes/isStatRuneName.d.ts +0 -2
- package/core/helpers/Runes/isStatRuneName.js +0 -4
- package/core/helpers/Spells/getSpellIdByKey.d.ts +0 -4
- package/core/helpers/Spells/getSpellIdByKey.js +0 -4
- package/core/helpers/Spells/getSpellIdByName.d.ts +0 -3
- package/core/helpers/Spells/getSpellIdByName.js +0 -4
- package/core/helpers/Spells/getSpellKeyById.d.ts +0 -3
- package/core/helpers/Spells/getSpellKeyById.js +0 -4
- package/core/helpers/Spells/getSpellKeyByName.d.ts +0 -3
- package/core/helpers/Spells/getSpellKeyByName.js +0 -5
- package/core/helpers/Spells/getSpellNameById.d.ts +0 -3
- package/core/helpers/Spells/getSpellNameById.js +0 -5
- package/core/helpers/Spells/getSpellNameByKey.d.ts +0 -4
- package/core/helpers/Spells/getSpellNameByKey.js +0 -4
- package/core/helpers/Spells/isSpellId.d.ts +0 -2
- package/core/helpers/Spells/isSpellId.js +0 -4
- package/core/helpers/Spells/isSpellKey.d.ts +0 -2
- package/core/helpers/Spells/isSpellKey.js +0 -4
- package/core/helpers/Spells/isSpellKeyNum.d.ts +0 -2
- package/core/helpers/Spells/isSpellKeyNum.js +0 -4
- package/core/helpers/Spells/isSpellName.d.ts +0 -2
- package/core/helpers/Spells/isSpellName.js +0 -4
- package/core/helpers/getPositionImageUrl.d.ts +0 -2
- package/core/helpers/getPositionImageUrl.js +0 -11
- package/core/helpers/isRiotId.d.ts +0 -5
- package/core/helpers/isRiotId.js +0 -15
- package/core/helpers/makeRiotId.d.ts +0 -4
- package/core/helpers/makeRiotId.js +0 -5
- package/core/helpers/splitRiotId.d.ts +0 -10
- package/core/helpers/splitRiotId.js +0 -16
- package/core/index.d.ts +0 -139
- package/core/index.js +0 -150
- package/core/types/championJson.d.ts +0 -85
- package/core/types/championJson.js +0 -1
- package/core/types/interfaces.d.ts +0 -22
- package/core/types/interfaces.js +0 -1
- package/core/types/types.d.ts +0 -268
- package/core/types/types.js +0 -1
- /package/{core → dist}/Locale.js +0 -0
- /package/{assets/scripts/asset-scripts/champion.d.ts → dist/helpers/type.js} +0 -0
package/dist/lol.js
ADDED
@@ -0,0 +1,182 @@
|
|
1
|
+
import { Patch } from './Patch';
|
2
|
+
import { ChampionClasses, isChampionClass } from './constants/custom';
|
3
|
+
import { BuildingTypes, DragonTypes, isBuildingType, isDragonType, isKillType, isMonsterType, isTowerType, isWardType, KillTypes, MonsterTypes, TowerTypes, WardTypes, } from './constants/events';
|
4
|
+
import { GameModes, GameTypes, isGameMode, isGameType, isQueueType, QueueTypes, } from './constants/history';
|
5
|
+
import { isRankedRank, isRankedTier, RankedRanks, RankedTiers } from './constants/leagues';
|
6
|
+
import { isLocale, Locales } from './constants/locales';
|
7
|
+
import { isLane, isLaneType, isPosition, isRole, isTeamId, Lanes, LaneTypes, Positions, Roles, TeamIds, } from './constants/participants';
|
8
|
+
import { ItemSrTypes } from './enums/ItemSrTypes';
|
9
|
+
import { StatRuneSlots } from './enums/StatRuneSlots';
|
10
|
+
import { getChampion, isChampionId, isChampionKey, isChampionName, } from './helpers/champion';
|
11
|
+
import { getItem, isBasicItem, isBootsItem, isConsumableItem, isEpicItem, isItemAvailableForMap, isItemId, isItemName, isLegendaryItem, isStarterItem, isTrinketItem, } from './helpers/item';
|
12
|
+
import { makeRiotId, splitRiotId, validateRiotId } from './helpers/riotId';
|
13
|
+
import { getRune, getRuneTree, getStatRune, isRuneId, isRuneKey, isRuneName, isRuneTreeId, isRuneTreeKey, isRuneTreeName, isStatRuneId, isStatRuneName, } from './helpers/rune';
|
14
|
+
import { getSpell, isSpellId, isSpellKey, isSpellName, } from './helpers/spell';
|
15
|
+
import { getMap, isMapId, isMapTitle, MapsArr } from './objects/Maps';
|
16
|
+
import { getQueue, isQueueId, isQueueTitle, QueuesArr, } from './objects/Queues';
|
17
|
+
import { getRegion, isPlatform, isRegion, RegionsArr, } from './objects/Regions';
|
18
|
+
import { ChampionsArr } from './objects/generated/Champions';
|
19
|
+
import { ItemsArr } from './objects/generated/Items';
|
20
|
+
import { RunesArr, RuneTreesArr, StatRunesArr } from './objects/generated/Runes';
|
21
|
+
import { SpellsArr } from './objects/generated/Spells';
|
22
|
+
export const lol = {
|
23
|
+
/**
|
24
|
+
* ## Current patch version
|
25
|
+
* What patch the library is currently on. *(read-only)*
|
26
|
+
*/
|
27
|
+
version: Patch.version,
|
28
|
+
/**
|
29
|
+
* ## Constants
|
30
|
+
* Riot API defined constants.
|
31
|
+
*/
|
32
|
+
const: {
|
33
|
+
ChampionClasses,
|
34
|
+
MonsterTypes,
|
35
|
+
DragonTypes,
|
36
|
+
KillTypes,
|
37
|
+
BuildingTypes,
|
38
|
+
TowerTypes,
|
39
|
+
WardTypes,
|
40
|
+
QueueTypes,
|
41
|
+
GameModes,
|
42
|
+
GameTypes,
|
43
|
+
RankedTiers,
|
44
|
+
RankedRanks,
|
45
|
+
Locales,
|
46
|
+
Positions,
|
47
|
+
Roles,
|
48
|
+
Lanes,
|
49
|
+
LaneTypes,
|
50
|
+
TeamIds,
|
51
|
+
},
|
52
|
+
/**
|
53
|
+
* ## Enums
|
54
|
+
* Library specific enums.
|
55
|
+
*/
|
56
|
+
enum: {
|
57
|
+
/**
|
58
|
+
* ### Item (Summoner's Rift) Types
|
59
|
+
* Enumerates `lol-constants`-specific item category types,
|
60
|
+
* tailored for Summoner's Rift.
|
61
|
+
*/
|
62
|
+
ItemSrTypes: ItemSrTypes,
|
63
|
+
/**
|
64
|
+
* ### Stat Rune Slots
|
65
|
+
* Enumerates the three types of stat runes.
|
66
|
+
* Generally, should be used together with `lol.rune.stat.get`/`getStatRune`.
|
67
|
+
*/
|
68
|
+
StatRuneSlots: StatRuneSlots,
|
69
|
+
},
|
70
|
+
/** ## Champions */
|
71
|
+
champion: {
|
72
|
+
/** Array of champion objects, containing information about all champions. */
|
73
|
+
list: ChampionsArr,
|
74
|
+
get: getChampion,
|
75
|
+
},
|
76
|
+
/** ## Items */
|
77
|
+
item: {
|
78
|
+
/** Array of item objects, containing information about all items. */
|
79
|
+
list: ItemsArr,
|
80
|
+
get: getItem,
|
81
|
+
isStarter: isStarterItem,
|
82
|
+
isBasic: isBasicItem,
|
83
|
+
isEpic: isEpicItem,
|
84
|
+
isLegendary: isLegendaryItem,
|
85
|
+
isTrinket: isTrinketItem,
|
86
|
+
isBoots: isBootsItem,
|
87
|
+
isConsumable: isConsumableItem,
|
88
|
+
isAvailable: isItemAvailableForMap,
|
89
|
+
},
|
90
|
+
/** ## Runes, Stat Runes, and Rune Trees */
|
91
|
+
rune: {
|
92
|
+
/** Array of rune objects, containing information about runes (excl. stat runes). */
|
93
|
+
list: RunesArr,
|
94
|
+
get: getRune,
|
95
|
+
stat: {
|
96
|
+
/** Array of stat rune objects, containing information about little stat runes. */
|
97
|
+
list: StatRunesArr,
|
98
|
+
get: getStatRune,
|
99
|
+
},
|
100
|
+
tree: {
|
101
|
+
/** Array of rune tree objects, containing information about rune trees. */
|
102
|
+
list: RuneTreesArr,
|
103
|
+
get: getRuneTree,
|
104
|
+
},
|
105
|
+
},
|
106
|
+
/** ## Summoner Spells */
|
107
|
+
spell: {
|
108
|
+
/** Array of spell objects, containing information about summoner spells. */
|
109
|
+
list: SpellsArr,
|
110
|
+
get: getSpell,
|
111
|
+
},
|
112
|
+
/** ## Maps */
|
113
|
+
map: {
|
114
|
+
/** Array of map objects, containing information about maps. */
|
115
|
+
list: MapsArr,
|
116
|
+
get: getMap,
|
117
|
+
},
|
118
|
+
/** ## Queues */
|
119
|
+
queue: {
|
120
|
+
/** Array of queue objects, containing information about queues. */
|
121
|
+
list: QueuesArr,
|
122
|
+
get: getQueue,
|
123
|
+
},
|
124
|
+
/** ## Regions, Platforms, Locales, and Riot ID */
|
125
|
+
region: {
|
126
|
+
/** Array of region objects, containing information about regions/platforms. */
|
127
|
+
list: RegionsArr,
|
128
|
+
get: getRegion,
|
129
|
+
/**
|
130
|
+
* ### Riot ID
|
131
|
+
* Helper functions for processing Riot ID.
|
132
|
+
*/
|
133
|
+
riotId: {
|
134
|
+
make: makeRiotId,
|
135
|
+
split: splitRiotId,
|
136
|
+
validate: validateRiotId,
|
137
|
+
},
|
138
|
+
},
|
139
|
+
/** ## Type validators */
|
140
|
+
type: {
|
141
|
+
isChampionClass,
|
142
|
+
isKillType,
|
143
|
+
isMapId,
|
144
|
+
isMapTitle,
|
145
|
+
isDragonType,
|
146
|
+
isMonsterType,
|
147
|
+
isLane,
|
148
|
+
isLaneType,
|
149
|
+
isPosition,
|
150
|
+
isRole,
|
151
|
+
isTeamId,
|
152
|
+
isGameMode,
|
153
|
+
isGameType,
|
154
|
+
isQueueId,
|
155
|
+
isQueueTitle,
|
156
|
+
isQueueType,
|
157
|
+
isRankedRank,
|
158
|
+
isRankedTier,
|
159
|
+
isLocale,
|
160
|
+
isPlatform,
|
161
|
+
isRegion,
|
162
|
+
isBuildingType,
|
163
|
+
isTowerType,
|
164
|
+
isWardType,
|
165
|
+
isChampionId,
|
166
|
+
isChampionKey,
|
167
|
+
isChampionName,
|
168
|
+
isItemId,
|
169
|
+
isItemName,
|
170
|
+
isRuneId,
|
171
|
+
isRuneKey,
|
172
|
+
isRuneName,
|
173
|
+
isStatRuneId,
|
174
|
+
isStatRuneName,
|
175
|
+
isRuneTreeId,
|
176
|
+
isRuneTreeKey,
|
177
|
+
isRuneTreeName,
|
178
|
+
isSpellId,
|
179
|
+
isSpellKey,
|
180
|
+
isSpellName,
|
181
|
+
},
|
182
|
+
};
|
@@ -0,0 +1,113 @@
|
|
1
|
+
export declare const Maps: {
|
2
|
+
/** Tutorial map */
|
3
|
+
readonly 3: {
|
4
|
+
readonly id: 3;
|
5
|
+
readonly title: "The Proving Grounds";
|
6
|
+
};
|
7
|
+
/** Last TT map */
|
8
|
+
readonly 10: {
|
9
|
+
readonly id: 10;
|
10
|
+
readonly title: "Twisted Treeline";
|
11
|
+
};
|
12
|
+
/** Current version */
|
13
|
+
readonly 11: {
|
14
|
+
readonly id: 11;
|
15
|
+
readonly title: "Summoner's Rift";
|
16
|
+
};
|
17
|
+
/** ARAM map */
|
18
|
+
readonly 12: {
|
19
|
+
readonly id: 12;
|
20
|
+
readonly title: "Howling Abyss";
|
21
|
+
};
|
22
|
+
/** Alternate ARAM map */
|
23
|
+
readonly 14: {
|
24
|
+
readonly id: 14;
|
25
|
+
readonly title: "Butcher's Bridge";
|
26
|
+
};
|
27
|
+
/** Dark Star: Singularity map */
|
28
|
+
readonly 16: {
|
29
|
+
readonly id: 16;
|
30
|
+
readonly title: "Cosmic Ruins";
|
31
|
+
};
|
32
|
+
/** Star Guardian Invasion map */
|
33
|
+
readonly 18: {
|
34
|
+
readonly id: 18;
|
35
|
+
readonly title: "Valoran City Park";
|
36
|
+
};
|
37
|
+
/** PROJECT: Hunters map */
|
38
|
+
readonly 19: {
|
39
|
+
readonly id: 19;
|
40
|
+
readonly title: "Substructure 43";
|
41
|
+
};
|
42
|
+
/** Odyssey: Extraction map */
|
43
|
+
readonly 20: {
|
44
|
+
readonly id: 20;
|
45
|
+
readonly title: "Crash Site";
|
46
|
+
};
|
47
|
+
/** Nexus Blitz map */
|
48
|
+
readonly 21: {
|
49
|
+
readonly id: 21;
|
50
|
+
readonly title: "Nexus Blitz";
|
51
|
+
};
|
52
|
+
/** Teamfight Tactics map */
|
53
|
+
readonly 22: {
|
54
|
+
readonly id: 22;
|
55
|
+
readonly title: "Convergence";
|
56
|
+
};
|
57
|
+
/** Arena map */
|
58
|
+
readonly 30: {
|
59
|
+
readonly id: 30;
|
60
|
+
readonly title: "Rings of Wrath";
|
61
|
+
};
|
62
|
+
/** 2024 Swarm event map */
|
63
|
+
readonly 33: {
|
64
|
+
readonly id: 33;
|
65
|
+
readonly title: "Swarm";
|
66
|
+
};
|
67
|
+
};
|
68
|
+
export declare const MapsArr: ({
|
69
|
+
readonly id: 3;
|
70
|
+
readonly title: "The Proving Grounds";
|
71
|
+
} | {
|
72
|
+
readonly id: 10;
|
73
|
+
readonly title: "Twisted Treeline";
|
74
|
+
} | {
|
75
|
+
readonly id: 11;
|
76
|
+
readonly title: "Summoner's Rift";
|
77
|
+
} | {
|
78
|
+
readonly id: 12;
|
79
|
+
readonly title: "Howling Abyss";
|
80
|
+
} | {
|
81
|
+
readonly id: 14;
|
82
|
+
readonly title: "Butcher's Bridge";
|
83
|
+
} | {
|
84
|
+
readonly id: 16;
|
85
|
+
readonly title: "Cosmic Ruins";
|
86
|
+
} | {
|
87
|
+
readonly id: 18;
|
88
|
+
readonly title: "Valoran City Park";
|
89
|
+
} | {
|
90
|
+
readonly id: 19;
|
91
|
+
readonly title: "Substructure 43";
|
92
|
+
} | {
|
93
|
+
readonly id: 20;
|
94
|
+
readonly title: "Crash Site";
|
95
|
+
} | {
|
96
|
+
readonly id: 21;
|
97
|
+
readonly title: "Nexus Blitz";
|
98
|
+
} | {
|
99
|
+
readonly id: 22;
|
100
|
+
readonly title: "Convergence";
|
101
|
+
} | {
|
102
|
+
readonly id: 30;
|
103
|
+
readonly title: "Rings of Wrath";
|
104
|
+
} | {
|
105
|
+
readonly id: 33;
|
106
|
+
readonly title: "Swarm";
|
107
|
+
})[];
|
108
|
+
export type MapId = typeof MapsArr[number]['id'];
|
109
|
+
export type MapTitle = typeof MapsArr[number]['title'];
|
110
|
+
export declare function isMapId(id: number | null | undefined): id is MapId;
|
111
|
+
export declare function isMapTitle(title: string | null | undefined): title is MapTitle;
|
112
|
+
/** Get map by its **id** or **title**. */
|
113
|
+
export declare function getMap(id_title: MapId | MapTitle): typeof Maps[keyof typeof Maps];
|
@@ -0,0 +1,69 @@
|
|
1
|
+
export const Maps = {
|
2
|
+
/** Tutorial map */
|
3
|
+
3: { id: 3, title: "The Proving Grounds" },
|
4
|
+
/** Last TT map */
|
5
|
+
10: { id: 10, title: "Twisted Treeline" },
|
6
|
+
/** Current version */
|
7
|
+
11: { id: 11, title: "Summoner's Rift" },
|
8
|
+
/** ARAM map */
|
9
|
+
12: { id: 12, title: "Howling Abyss" },
|
10
|
+
/** Alternate ARAM map */
|
11
|
+
14: { id: 14, title: "Butcher's Bridge" },
|
12
|
+
/** Dark Star: Singularity map */
|
13
|
+
16: { id: 16, title: "Cosmic Ruins" },
|
14
|
+
/** Star Guardian Invasion map */
|
15
|
+
18: { id: 18, title: "Valoran City Park" },
|
16
|
+
/** PROJECT: Hunters map */
|
17
|
+
19: { id: 19, title: "Substructure 43" },
|
18
|
+
/** Odyssey: Extraction map */
|
19
|
+
20: { id: 20, title: "Crash Site" },
|
20
|
+
/** Nexus Blitz map */
|
21
|
+
21: { id: 21, title: "Nexus Blitz" },
|
22
|
+
/** Teamfight Tactics map */
|
23
|
+
22: { id: 22, title: "Convergence" },
|
24
|
+
/** Arena map */
|
25
|
+
30: { id: 30, title: "Rings of Wrath" },
|
26
|
+
/** 2024 Swarm event map */
|
27
|
+
33: { id: 33, title: "Swarm" },
|
28
|
+
};
|
29
|
+
export const MapsArr = Object.values(Maps);
|
30
|
+
const mapTitles = {
|
31
|
+
/** Tutorial map */
|
32
|
+
'The Proving Grounds': 3,
|
33
|
+
/** Last TT map */
|
34
|
+
'Twisted Treeline': 10,
|
35
|
+
/** Current version */
|
36
|
+
"Summoner's Rift": 11,
|
37
|
+
/** ARAM map */
|
38
|
+
'Howling Abyss': 12,
|
39
|
+
/** Alternate ARAM map */
|
40
|
+
"Butcher's Bridge": 14,
|
41
|
+
/** Dark Star: Singularity map */
|
42
|
+
'Cosmic Ruins': 16,
|
43
|
+
/** Star Guardian Invasion map */
|
44
|
+
'Valoran City Park': 18,
|
45
|
+
/** PROJECT: Hunters map */
|
46
|
+
'Substructure 43': 19,
|
47
|
+
/** Odyssey: Extraction map */
|
48
|
+
'Crash Site': 20,
|
49
|
+
/** Nexus Blitz map */
|
50
|
+
'Nexus Blitz': 21,
|
51
|
+
/** Teamfight Tactics map */
|
52
|
+
'Convergence': 22,
|
53
|
+
/** Arena map */
|
54
|
+
'Rings of Wrath': 30,
|
55
|
+
/** 2024 Swarm event map */
|
56
|
+
'Swarm': 33,
|
57
|
+
};
|
58
|
+
export function isMapId(id) {
|
59
|
+
return typeof id == 'number' && id in Maps;
|
60
|
+
}
|
61
|
+
export function isMapTitle(title) {
|
62
|
+
return typeof title == 'string' && title in mapTitles;
|
63
|
+
}
|
64
|
+
/** Get map by its **id** or **title**. */
|
65
|
+
export function getMap(id_title) {
|
66
|
+
if (typeof id_title == 'number')
|
67
|
+
return Maps[id_title];
|
68
|
+
return Maps[mapTitles[id_title]];
|
69
|
+
}
|
@@ -0,0 +1,192 @@
|
|
1
|
+
export declare const Queues: {
|
2
|
+
readonly 0: {
|
3
|
+
readonly id: 0;
|
4
|
+
readonly title: "Custom";
|
5
|
+
};
|
6
|
+
readonly 400: {
|
7
|
+
readonly id: 400;
|
8
|
+
readonly title: "5v5 Draft Pick";
|
9
|
+
};
|
10
|
+
readonly 420: {
|
11
|
+
readonly id: 420;
|
12
|
+
readonly title: "5v5 Ranked Solo";
|
13
|
+
};
|
14
|
+
readonly 430: {
|
15
|
+
readonly id: 430;
|
16
|
+
readonly title: "5v5 Blind Pick";
|
17
|
+
};
|
18
|
+
readonly 440: {
|
19
|
+
readonly id: 440;
|
20
|
+
readonly title: "5v5 Ranked Flex";
|
21
|
+
};
|
22
|
+
readonly 450: {
|
23
|
+
readonly id: 450;
|
24
|
+
readonly title: "5v5 ARAM";
|
25
|
+
};
|
26
|
+
readonly 700: {
|
27
|
+
readonly id: 700;
|
28
|
+
readonly title: "Clash";
|
29
|
+
};
|
30
|
+
readonly 720: {
|
31
|
+
readonly id: 720;
|
32
|
+
readonly title: "ARAM Clash";
|
33
|
+
};
|
34
|
+
readonly 830: {
|
35
|
+
readonly id: 830;
|
36
|
+
readonly title: "Co-op vs. AI: Intro";
|
37
|
+
};
|
38
|
+
readonly 840: {
|
39
|
+
readonly id: 840;
|
40
|
+
readonly title: "Co-op vs. AI: Beginner";
|
41
|
+
};
|
42
|
+
readonly 850: {
|
43
|
+
readonly id: 850;
|
44
|
+
readonly title: "Co-op vs. AI: Intermediate";
|
45
|
+
};
|
46
|
+
readonly 900: {
|
47
|
+
readonly id: 900;
|
48
|
+
readonly title: "ARURF";
|
49
|
+
};
|
50
|
+
readonly 920: {
|
51
|
+
readonly id: 920;
|
52
|
+
readonly title: "Legend of the Poro King";
|
53
|
+
};
|
54
|
+
readonly 1010: {
|
55
|
+
readonly id: 1010;
|
56
|
+
readonly title: "Snow ARURF";
|
57
|
+
};
|
58
|
+
readonly 1020: {
|
59
|
+
readonly id: 1020;
|
60
|
+
readonly title: "One for All";
|
61
|
+
};
|
62
|
+
readonly 1090: {
|
63
|
+
readonly id: 1090;
|
64
|
+
readonly title: "Teamfight Tactics";
|
65
|
+
};
|
66
|
+
readonly 1100: {
|
67
|
+
readonly id: 1100;
|
68
|
+
readonly title: "Teamfight Tactics (Ranked)";
|
69
|
+
};
|
70
|
+
readonly 1110: {
|
71
|
+
readonly id: 1110;
|
72
|
+
readonly title: "Teamfight Tactics (Tutorial)";
|
73
|
+
};
|
74
|
+
readonly 1111: {
|
75
|
+
readonly id: 1111;
|
76
|
+
readonly title: "Teamfight Tactics (Test)";
|
77
|
+
};
|
78
|
+
readonly 1300: {
|
79
|
+
readonly id: 1300;
|
80
|
+
readonly title: "Nexus Blitz";
|
81
|
+
};
|
82
|
+
readonly 1400: {
|
83
|
+
readonly id: 1400;
|
84
|
+
readonly title: "Ultimate Spellbook";
|
85
|
+
};
|
86
|
+
readonly 1700: {
|
87
|
+
readonly id: 1700;
|
88
|
+
readonly title: "Arena";
|
89
|
+
};
|
90
|
+
/** ‘Pick’ URF games */
|
91
|
+
readonly 1900: {
|
92
|
+
readonly id: 1900;
|
93
|
+
readonly title: "URF";
|
94
|
+
};
|
95
|
+
readonly 2000: {
|
96
|
+
readonly id: 2000;
|
97
|
+
readonly title: "Tutorial 1";
|
98
|
+
};
|
99
|
+
readonly 2010: {
|
100
|
+
readonly id: 2010;
|
101
|
+
readonly title: "Tutorial 2";
|
102
|
+
};
|
103
|
+
readonly 2020: {
|
104
|
+
readonly id: 2020;
|
105
|
+
readonly title: "Tutorial 3";
|
106
|
+
};
|
107
|
+
};
|
108
|
+
export declare const QueuesArr: ({
|
109
|
+
readonly id: 0;
|
110
|
+
readonly title: "Custom";
|
111
|
+
} | {
|
112
|
+
readonly id: 400;
|
113
|
+
readonly title: "5v5 Draft Pick";
|
114
|
+
} | {
|
115
|
+
readonly id: 420;
|
116
|
+
readonly title: "5v5 Ranked Solo";
|
117
|
+
} | {
|
118
|
+
readonly id: 430;
|
119
|
+
readonly title: "5v5 Blind Pick";
|
120
|
+
} | {
|
121
|
+
readonly id: 440;
|
122
|
+
readonly title: "5v5 Ranked Flex";
|
123
|
+
} | {
|
124
|
+
readonly id: 450;
|
125
|
+
readonly title: "5v5 ARAM";
|
126
|
+
} | {
|
127
|
+
readonly id: 700;
|
128
|
+
readonly title: "Clash";
|
129
|
+
} | {
|
130
|
+
readonly id: 720;
|
131
|
+
readonly title: "ARAM Clash";
|
132
|
+
} | {
|
133
|
+
readonly id: 830;
|
134
|
+
readonly title: "Co-op vs. AI: Intro";
|
135
|
+
} | {
|
136
|
+
readonly id: 840;
|
137
|
+
readonly title: "Co-op vs. AI: Beginner";
|
138
|
+
} | {
|
139
|
+
readonly id: 850;
|
140
|
+
readonly title: "Co-op vs. AI: Intermediate";
|
141
|
+
} | {
|
142
|
+
readonly id: 900;
|
143
|
+
readonly title: "ARURF";
|
144
|
+
} | {
|
145
|
+
readonly id: 920;
|
146
|
+
readonly title: "Legend of the Poro King";
|
147
|
+
} | {
|
148
|
+
readonly id: 1010;
|
149
|
+
readonly title: "Snow ARURF";
|
150
|
+
} | {
|
151
|
+
readonly id: 1020;
|
152
|
+
readonly title: "One for All";
|
153
|
+
} | {
|
154
|
+
readonly id: 1090;
|
155
|
+
readonly title: "Teamfight Tactics";
|
156
|
+
} | {
|
157
|
+
readonly id: 1100;
|
158
|
+
readonly title: "Teamfight Tactics (Ranked)";
|
159
|
+
} | {
|
160
|
+
readonly id: 1110;
|
161
|
+
readonly title: "Teamfight Tactics (Tutorial)";
|
162
|
+
} | {
|
163
|
+
readonly id: 1111;
|
164
|
+
readonly title: "Teamfight Tactics (Test)";
|
165
|
+
} | {
|
166
|
+
readonly id: 1300;
|
167
|
+
readonly title: "Nexus Blitz";
|
168
|
+
} | {
|
169
|
+
readonly id: 1400;
|
170
|
+
readonly title: "Ultimate Spellbook";
|
171
|
+
} | {
|
172
|
+
readonly id: 1700;
|
173
|
+
readonly title: "Arena";
|
174
|
+
} | {
|
175
|
+
readonly id: 1900;
|
176
|
+
readonly title: "URF";
|
177
|
+
} | {
|
178
|
+
readonly id: 2000;
|
179
|
+
readonly title: "Tutorial 1";
|
180
|
+
} | {
|
181
|
+
readonly id: 2010;
|
182
|
+
readonly title: "Tutorial 2";
|
183
|
+
} | {
|
184
|
+
readonly id: 2020;
|
185
|
+
readonly title: "Tutorial 3";
|
186
|
+
})[];
|
187
|
+
export type QueueId = typeof QueuesArr[number]['id'];
|
188
|
+
export type QueueTitle = typeof QueuesArr[number]['title'];
|
189
|
+
export declare function isQueueId(id: number | null | undefined): id is QueueId;
|
190
|
+
export declare function isQueueTitle(title: string | null | undefined): title is QueueTitle;
|
191
|
+
/** Get queue by its **id** or **title**. */
|
192
|
+
export declare function getQueue(id_title: QueueId | QueueTitle): typeof Queues[keyof typeof Queues];
|
@@ -0,0 +1,71 @@
|
|
1
|
+
export const Queues = {
|
2
|
+
0: { id: 0, title: 'Custom' },
|
3
|
+
400: { id: 400, title: '5v5 Draft Pick' },
|
4
|
+
420: { id: 420, title: '5v5 Ranked Solo' },
|
5
|
+
430: { id: 430, title: '5v5 Blind Pick' },
|
6
|
+
440: { id: 440, title: '5v5 Ranked Flex' },
|
7
|
+
450: { id: 450, title: '5v5 ARAM' },
|
8
|
+
700: { id: 700, title: 'Clash' },
|
9
|
+
720: { id: 720, title: 'ARAM Clash' },
|
10
|
+
830: { id: 830, title: 'Co-op vs. AI: Intro' },
|
11
|
+
840: { id: 840, title: 'Co-op vs. AI: Beginner' },
|
12
|
+
850: { id: 850, title: 'Co-op vs. AI: Intermediate' },
|
13
|
+
900: { id: 900, title: 'ARURF' },
|
14
|
+
920: { id: 920, title: 'Legend of the Poro King' },
|
15
|
+
1010: { id: 1010, title: 'Snow ARURF' },
|
16
|
+
1020: { id: 1020, title: 'One for All' },
|
17
|
+
1090: { id: 1090, title: 'Teamfight Tactics' },
|
18
|
+
1100: { id: 1100, title: 'Teamfight Tactics (Ranked)' },
|
19
|
+
1110: { id: 1110, title: 'Teamfight Tactics (Tutorial)' },
|
20
|
+
1111: { id: 1111, title: 'Teamfight Tactics (Test)' },
|
21
|
+
1300: { id: 1300, title: 'Nexus Blitz' },
|
22
|
+
1400: { id: 1400, title: 'Ultimate Spellbook' },
|
23
|
+
1700: { id: 1700, title: 'Arena' },
|
24
|
+
/** ‘Pick’ URF games */
|
25
|
+
1900: { id: 1900, title: 'URF' },
|
26
|
+
2000: { id: 2000, title: 'Tutorial 1' },
|
27
|
+
2010: { id: 2010, title: 'Tutorial 2' },
|
28
|
+
2020: { id: 2020, title: 'Tutorial 3' },
|
29
|
+
};
|
30
|
+
export const QueuesArr = Object.values(Queues);
|
31
|
+
const queueTitles = {
|
32
|
+
'Custom': 0,
|
33
|
+
'5v5 Draft Pick': 400,
|
34
|
+
'5v5 Ranked Solo': 420,
|
35
|
+
'5v5 Blind Pick': 430,
|
36
|
+
'5v5 Ranked Flex': 440,
|
37
|
+
'5v5 ARAM': 450,
|
38
|
+
'Clash': 700,
|
39
|
+
'ARAM Clash': 720,
|
40
|
+
'Co-op vs. AI: Intro': 830,
|
41
|
+
'Co-op vs. AI: Beginner': 840,
|
42
|
+
'Co-op vs. AI: Intermediate': 850,
|
43
|
+
'ARURF': 900,
|
44
|
+
'Legend of the Poro King': 920,
|
45
|
+
'Snow ARURF': 1010,
|
46
|
+
'One for All': 1020,
|
47
|
+
'Teamfight Tactics': 1090,
|
48
|
+
'Teamfight Tactics (Ranked)': 1100,
|
49
|
+
'Teamfight Tactics (Tutorial)': 1110,
|
50
|
+
'Teamfight Tactics (Test)': 1111,
|
51
|
+
'Nexus Blitz': 1300,
|
52
|
+
'Ultimate Spellbook': 1400,
|
53
|
+
'Arena': 1700,
|
54
|
+
/** ‘Pick’ URF games */
|
55
|
+
'URF': 1900,
|
56
|
+
'Tutorial 1': 2000,
|
57
|
+
'Tutorial 2': 2010,
|
58
|
+
'Tutorial 3': 2020,
|
59
|
+
};
|
60
|
+
export function isQueueId(id) {
|
61
|
+
return typeof id == 'number' && id in Queues;
|
62
|
+
}
|
63
|
+
export function isQueueTitle(title) {
|
64
|
+
return typeof title == 'string' && title in queueTitles;
|
65
|
+
}
|
66
|
+
/** Get queue by its **id** or **title**. */
|
67
|
+
export function getQueue(id_title) {
|
68
|
+
if (typeof id_title == 'number')
|
69
|
+
return Queues[id_title];
|
70
|
+
return Queues[queueTitles[id_title]];
|
71
|
+
}
|