UNPKG

pokeapi-typescript

Version:

Typescript SDK for PokeAPI (https://pokeapi.co)

53 lines (52 loc) 2.96 kB
import { Endpoint } from "./lib/Endpoint.js"; import { NamedEndpoint } from "./lib/NamedEndpoint.js"; export class PokeAPI { static Berry = new NamedEndpoint("berry"); static BerryFirmness = new NamedEndpoint("berry-firmness"); static BerryFlavor = new NamedEndpoint("berry-flavor"); static ContestType = new NamedEndpoint("contest-type"); static ContestEffect = new Endpoint("contest-effect"); static SuperContestEffect = new Endpoint("super-contest-effect"); static EncounterMethod = new NamedEndpoint("encounter-method"); static EncounterCondition = new NamedEndpoint("encounter-condition"); static EncounterConditionValue = new NamedEndpoint("encounter-condition-value"); static EvolutionChain = new Endpoint("evolution-chain"); static EvolutionTrigger = new NamedEndpoint("evolution-trigger"); static Generation = new NamedEndpoint("generation"); static Pokedex = new NamedEndpoint("pokedex"); static Version = new NamedEndpoint("version"); static VerionGroup = new NamedEndpoint("version-group"); static Item = new NamedEndpoint("item"); static ItemAttribute = new NamedEndpoint("item-attribute"); static ItemCategory = new NamedEndpoint("item-category"); static ItemFlingEffect = new NamedEndpoint("item-fling-effect"); static ItemPocket = new NamedEndpoint("item-pocket"); static Location = new NamedEndpoint("location"); static LocationArea = new NamedEndpoint("location-area"); static PalParkArea = new NamedEndpoint("pal-park-area"); static Region = new NamedEndpoint("region"); static Machine = new Endpoint("machine"); static Move = new NamedEndpoint("move"); static MoveAilment = new NamedEndpoint("move-ailment"); static MoveBattleStyle = new NamedEndpoint("move-battle-style"); static MoveCategory = new NamedEndpoint("move-category"); static MoveDamageClass = new NamedEndpoint("move-damage-class"); static MoveLearnMethod = new NamedEndpoint("move-learn-method"); static MoveTarget = new NamedEndpoint("move-target"); static Ability = new NamedEndpoint("ability"); static Characteristic = new Endpoint("characteristic"); static EggGroup = new NamedEndpoint("egg-group"); static Gender = new NamedEndpoint("gender"); static GrowthRate = new NamedEndpoint("growth-rate"); static Nature = new NamedEndpoint("nature"); static PokeathlonStat = new NamedEndpoint("pokeathlon-stat"); static Pokemon = new NamedEndpoint("pokemon"); static PokemonColor = new NamedEndpoint("pokemon-color"); static PokemonForm = new NamedEndpoint("pokemon-form"); static PokemonHabitat = new NamedEndpoint("pokemon-habitat"); static PokemonShape = new NamedEndpoint("pokemon-shape"); static PokemonSpecies = new NamedEndpoint("pokemon-species"); static Stat = new NamedEndpoint("stat"); static Type = new NamedEndpoint("type"); static Language = new NamedEndpoint("language"); }