|
| 1 | +export interface PokemonSpritesResponse { |
| 2 | + pokemonsprites: PokemonSpriteEntry[]; |
| 3 | +} |
| 4 | + |
| 5 | +export interface PokemonSpriteEntry { |
| 6 | + __typename: "pokemonsprites"; |
| 7 | + pokemon: { |
| 8 | + __typename: "pokemon"; |
| 9 | + id: number; |
| 10 | + name: string; |
| 11 | + order: number; |
| 12 | + }; |
| 13 | + sprites: PokemonSprites; |
| 14 | +} |
| 15 | + |
| 16 | +export interface PokemonSprites { |
| 17 | + back_default: string | null; |
| 18 | + back_female: string | null; |
| 19 | + back_shiny: string | null; |
| 20 | + back_shiny_female: string | null; |
| 21 | + front_default: string | null; |
| 22 | + front_female: string | null; |
| 23 | + front_shiny: string | null; |
| 24 | + front_shiny_female: string | null; |
| 25 | + other: { |
| 26 | + home: SpriteVariants; |
| 27 | + showdown: SpriteVariants; |
| 28 | + dream_world: Partial< |
| 29 | + Record<"front_default" | "front_female", string | null> |
| 30 | + >; |
| 31 | + "official-artwork": Partial< |
| 32 | + Record<"front_default" | "front_shiny", string | null> |
| 33 | + >; |
| 34 | + }; |
| 35 | + versions: { |
| 36 | + "generation-i": { |
| 37 | + yellow: GenerationISprites; |
| 38 | + "red-blue": GenerationISprites; |
| 39 | + }; |
| 40 | + "generation-ii": { |
| 41 | + gold: GenerationIISprites; |
| 42 | + silver: GenerationIISprites; |
| 43 | + crystal: GenerationIICrystalSprites; |
| 44 | + }; |
| 45 | + "generation-iii": { |
| 46 | + emerald: SimpleFrontSprites; |
| 47 | + "ruby-sapphire": SimpleBackFrontSprites; |
| 48 | + "firered-leafgreen": SimpleBackFrontSprites; |
| 49 | + }; |
| 50 | + "generation-iv": { |
| 51 | + platinum: GenderedSprites; |
| 52 | + "diamond-pearl": GenderedSprites; |
| 53 | + "heartgold-soulsilver": GenderedSprites; |
| 54 | + }; |
| 55 | + "generation-v": { |
| 56 | + "black-white": GenerationVBlackWhiteSprites; |
| 57 | + }; |
| 58 | + "generation-vi": { |
| 59 | + "x-y": SimpleFrontSpritesWithGender; |
| 60 | + "omegaruby-alphasapphire": SimpleFrontSpritesWithGender; |
| 61 | + }; |
| 62 | + "generation-vii": { |
| 63 | + icons: SimpleFrontSpritesWithGender; |
| 64 | + "ultra-sun-ultra-moon": SimpleFrontSpritesWithGender; |
| 65 | + }; |
| 66 | + "generation-viii": { |
| 67 | + icons: SimpleFrontSpritesWithGender; |
| 68 | + }; |
| 69 | + }; |
| 70 | +} |
| 71 | + |
| 72 | +export interface SpriteVariants { |
| 73 | + front_default: string | null; |
| 74 | + front_shiny: string | null; |
| 75 | + front_female: string | null; |
| 76 | + front_shiny_female: string | null; |
| 77 | + back_default?: string | null; |
| 78 | + back_female?: string | null; |
| 79 | + back_shiny?: string | null; |
| 80 | + back_shiny_female?: string | null; |
| 81 | +} |
| 82 | + |
| 83 | +export interface GenerationISprites { |
| 84 | + back_gray: string | null; |
| 85 | + front_gray: string | null; |
| 86 | + back_default: string | null; |
| 87 | + front_default: string | null; |
| 88 | + back_transparent: string | null; |
| 89 | + front_transparent: string | null; |
| 90 | +} |
| 91 | + |
| 92 | +export interface GenerationIISprites { |
| 93 | + back_shiny: string | null; |
| 94 | + front_shiny: string | null; |
| 95 | + back_default: string | null; |
| 96 | + front_default: string | null; |
| 97 | + front_transparent?: string | null; |
| 98 | +} |
| 99 | + |
| 100 | +export interface GenerationIICrystalSprites extends GenerationIISprites { |
| 101 | + back_transparent: string | null; |
| 102 | + front_transparent: string | null; |
| 103 | + back_shiny_transparent: string | null; |
| 104 | + front_shiny_transparent: string | null; |
| 105 | +} |
| 106 | + |
| 107 | +export interface SimpleFrontSprites { |
| 108 | + front_default: string | null; |
| 109 | + front_shiny: string | null; |
| 110 | +} |
| 111 | + |
| 112 | +export interface SimpleBackFrontSprites extends SimpleFrontSprites { |
| 113 | + back_default: string | null; |
| 114 | + back_shiny: string | null; |
| 115 | +} |
| 116 | + |
| 117 | +export interface SimpleFrontSpritesWithGender extends SimpleFrontSprites { |
| 118 | + front_female: string | null; |
| 119 | + front_shiny_female: string | null; |
| 120 | +} |
| 121 | + |
| 122 | +export interface GenderedSprites extends SimpleBackFrontSprites { |
| 123 | + back_female: string | null; |
| 124 | + back_shiny_female: string | null; |
| 125 | + front_female: string | null; |
| 126 | + front_shiny_female: string | null; |
| 127 | +} |
| 128 | + |
| 129 | +export interface GenerationVBlackWhiteSprites extends GenderedSprites { |
| 130 | + animated: GenderedSprites; |
| 131 | +} |
0 commit comments