From b3c52a2e86ec86f44ee5ad3818b929f86882a0b4 Mon Sep 17 00:00:00 2001 From: Phil Pluckthun Date: Thu, 21 Mar 2024 12:31:33 +0000 Subject: [PATCH] example: Update introspection output --- .../example-pokemon-api/src/graphql-env.d.ts | 433 +----------------- 1 file changed, 17 insertions(+), 416 deletions(-) diff --git a/examples/example-pokemon-api/src/graphql-env.d.ts b/examples/example-pokemon-api/src/graphql-env.d.ts index 8d524386..59df4aaa 100644 --- a/examples/example-pokemon-api/src/graphql-env.d.ts +++ b/examples/example-pokemon-api/src/graphql-env.d.ts @@ -10,422 +10,23 @@ * instead save to a .ts instead of a .d.ts file. */ export type introspection = { - "__schema": { - "queryType": { - "name": "Query" - }, - "mutationType": null, - "subscriptionType": null, - "types": [ - { - "kind": "OBJECT", - "name": "Attack", - "fields": [ - { - "name": "damage", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "args": [] - }, - { - "name": "name", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "args": [] - }, - { - "name": "type", - "type": { - "kind": "ENUM", - "name": "PokemonType", - "ofType": null - }, - "args": [] - } - ], - "interfaces": [] - }, - { - "kind": "SCALAR", - "name": "Int" - }, - { - "kind": "SCALAR", - "name": "String" - }, - { - "kind": "OBJECT", - "name": "AttacksConnection", - "fields": [ - { - "name": "fast", - "type": { - "kind": "LIST", - "ofType": { - "kind": "OBJECT", - "name": "Attack", - "ofType": null - } - }, - "args": [] - }, - { - "name": "special", - "type": { - "kind": "LIST", - "ofType": { - "kind": "OBJECT", - "name": "Attack", - "ofType": null - } - }, - "args": [] - } - ], - "interfaces": [] - }, - { - "kind": "OBJECT", - "name": "EvolutionRequirement", - "fields": [ - { - "name": "amount", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "args": [] - }, - { - "name": "name", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "args": [] - } - ], - "interfaces": [] - }, - { - "kind": "OBJECT", - "name": "Pokemon", - "fields": [ - { - "name": "attacks", - "type": { - "kind": "OBJECT", - "name": "AttacksConnection", - "ofType": null - }, - "args": [] - }, - { - "name": "classification", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "args": [] - }, - { - "name": "evolutionRequirements", - "type": { - "kind": "LIST", - "ofType": { - "kind": "OBJECT", - "name": "EvolutionRequirement", - "ofType": null - } - }, - "args": [] - }, - { - "name": "evolutions", - "type": { - "kind": "LIST", - "ofType": { - "kind": "OBJECT", - "name": "Pokemon", - "ofType": null - } - }, - "args": [] - }, - { - "name": "fleeRate", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "args": [] - }, - { - "name": "height", - "type": { - "kind": "OBJECT", - "name": "PokemonDimension", - "ofType": null - }, - "args": [] - }, - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "args": [] - }, - { - "name": "maxCP", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "args": [] - }, - { - "name": "maxHP", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "args": [] - }, - { - "name": "name", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "args": [] - }, - { - "name": "resistant", - "type": { - "kind": "LIST", - "ofType": { - "kind": "ENUM", - "name": "PokemonType", - "ofType": null - } - }, - "args": [] - }, - { - "name": "types", - "type": { - "kind": "LIST", - "ofType": { - "kind": "ENUM", - "name": "PokemonType", - "ofType": null - } - }, - "args": [] - }, - { - "name": "weaknesses", - "type": { - "kind": "LIST", - "ofType": { - "kind": "ENUM", - "name": "PokemonType", - "ofType": null - } - }, - "args": [] - }, - { - "name": "weight", - "type": { - "kind": "OBJECT", - "name": "PokemonDimension", - "ofType": null - }, - "args": [] - } - ], - "interfaces": [] - }, - { - "kind": "SCALAR", - "name": "Float" - }, - { - "kind": "SCALAR", - "name": "ID" - }, - { - "kind": "OBJECT", - "name": "PokemonDimension", - "fields": [ - { - "name": "maximum", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "args": [] - }, - { - "name": "minimum", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "args": [] - } - ], - "interfaces": [] - }, - { - "kind": "ENUM", - "name": "PokemonType", - "enumValues": [ - { - "name": "Bug" - }, - { - "name": "Dark" - }, - { - "name": "Dragon" - }, - { - "name": "Electric" - }, - { - "name": "Fairy" - }, - { - "name": "Fighting" - }, - { - "name": "Fire" - }, - { - "name": "Flying" - }, - { - "name": "Ghost" - }, - { - "name": "Grass" - }, - { - "name": "Ground" - }, - { - "name": "Ice" - }, - { - "name": "Normal" - }, - { - "name": "Poison" - }, - { - "name": "Psychic" - }, - { - "name": "Rock" - }, - { - "name": "Steel" - }, - { - "name": "Water" - } - ] - }, - { - "kind": "OBJECT", - "name": "Query", - "fields": [ - { - "name": "pokemon", - "type": { - "kind": "OBJECT", - "name": "Pokemon", - "ofType": null - }, - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - ] - }, - { - "name": "pokemons", - "type": { - "kind": "LIST", - "ofType": { - "kind": "OBJECT", - "name": "Pokemon", - "ofType": null - } - }, - "args": [ - { - "name": "limit", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - { - "name": "skip", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - } - ] - } - ], - "interfaces": [] - }, - { - "kind": "SCALAR", - "name": "Boolean" - } - ], - "directives": [] - } + query: 'Query'; + mutation: never; + subscription: never; + types: { + 'Attack': { kind: 'OBJECT'; name: 'Attack'; fields: { 'damage': { name: 'damage'; type: { kind: 'SCALAR'; name: 'Int'; ofType: null; } }; 'name': { name: 'name'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; 'type': { name: 'type'; type: { kind: 'ENUM'; name: 'PokemonType'; ofType: null; } }; }; }; + 'Int': unknown; + 'String': unknown; + 'AttacksConnection': { kind: 'OBJECT'; name: 'AttacksConnection'; fields: { 'fast': { name: 'fast'; type: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'Attack'; ofType: null; }; } }; 'special': { name: 'special'; type: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'Attack'; ofType: null; }; } }; }; }; + 'EvolutionRequirement': { kind: 'OBJECT'; name: 'EvolutionRequirement'; fields: { 'amount': { name: 'amount'; type: { kind: 'SCALAR'; name: 'Int'; ofType: null; } }; 'name': { name: 'name'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; }; }; + 'Pokemon': { kind: 'OBJECT'; name: 'Pokemon'; fields: { 'attacks': { name: 'attacks'; type: { kind: 'OBJECT'; name: 'AttacksConnection'; ofType: null; } }; 'classification': { name: 'classification'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; 'evolutionRequirements': { name: 'evolutionRequirements'; type: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'EvolutionRequirement'; ofType: null; }; } }; 'evolutions': { name: 'evolutions'; type: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'Pokemon'; ofType: null; }; } }; 'fleeRate': { name: 'fleeRate'; type: { kind: 'SCALAR'; name: 'Float'; ofType: null; } }; 'height': { name: 'height'; type: { kind: 'OBJECT'; name: 'PokemonDimension'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'maxCP': { name: 'maxCP'; type: { kind: 'SCALAR'; name: 'Int'; ofType: null; } }; 'maxHP': { name: 'maxHP'; type: { kind: 'SCALAR'; name: 'Int'; ofType: null; } }; 'name': { name: 'name'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'resistant': { name: 'resistant'; type: { kind: 'LIST'; name: never; ofType: { kind: 'ENUM'; name: 'PokemonType'; ofType: null; }; } }; 'types': { name: 'types'; type: { kind: 'LIST'; name: never; ofType: { kind: 'ENUM'; name: 'PokemonType'; ofType: null; }; } }; 'weaknesses': { name: 'weaknesses'; type: { kind: 'LIST'; name: never; ofType: { kind: 'ENUM'; name: 'PokemonType'; ofType: null; }; } }; 'weight': { name: 'weight'; type: { kind: 'OBJECT'; name: 'PokemonDimension'; ofType: null; } }; }; }; + 'Float': unknown; + 'ID': unknown; + 'PokemonDimension': { kind: 'OBJECT'; name: 'PokemonDimension'; fields: { 'maximum': { name: 'maximum'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; 'minimum': { name: 'minimum'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; }; }; + 'PokemonType': { kind: 'ENUM'; name: 'PokemonType'; type: 'Bug' | 'Dark' | 'Dragon' | 'Electric' | 'Fairy' | 'Fighting' | 'Fire' | 'Flying' | 'Ghost' | 'Grass' | 'Ground' | 'Ice' | 'Normal' | 'Poison' | 'Psychic' | 'Rock' | 'Steel' | 'Water'; }; + 'Query': { kind: 'OBJECT'; name: 'Query'; fields: { 'pokemon': { name: 'pokemon'; type: { kind: 'OBJECT'; name: 'Pokemon'; ofType: null; } }; 'pokemons': { name: 'pokemons'; type: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'Pokemon'; ofType: null; }; } }; }; }; + 'Boolean': unknown; + }; }; import * as gqlTada from 'gql.tada';