22 * GQty AUTO-GENERATED CODE: PLEASE DO NOT MODIFY MANUALLY
33 */
44
5+ import { type ScalarsEnumsHash } from 'gqty' ;
6+
57export type Maybe < T > = T | null ;
68export type InputMaybe < T > = Maybe < T > ;
79export type Exact < T extends { [ key : string ] : unknown } > = {
@@ -13,15 +15,24 @@ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
1315export type MakeMaybe < T , K extends keyof T > = Omit < T , K > & {
1416 [ SubKey in K ] : Maybe < T [ SubKey ] > ;
1517} ;
18+ export type MakeEmpty <
19+ T extends { [ key : string ] : unknown } ,
20+ K extends keyof T ,
21+ > = { [ _ in K ] ?: never } ;
22+ export type Incremental < T > =
23+ | T
24+ | {
25+ [ P in keyof T ] ?: P extends ' $fragmentName' | '__typename' ? T [ P ] : never ;
26+ } ;
1627/** All built-in and custom scalars, mapped to their actual values */
1728export interface Scalars {
18- ID : string ;
19- String : string ;
20- Boolean : boolean ;
21- Int : number ;
22- Float : number ;
29+ ID : { input : string ; output : string } ;
30+ String : { input : string ; output : string } ;
31+ Boolean : { input : boolean ; output : boolean } ;
32+ Int : { input : number ; output : number } ;
33+ Float : { input : number ; output : number } ;
2334 /** The `Upload` scalar type represents a file upload. */
24- Upload : any ;
35+ Upload : { input : any ; output : any } ;
2536}
2637
2738export enum CacheControlScope {
@@ -30,25 +41,25 @@ export enum CacheControlScope {
3041}
3142
3243export interface FilterCharacter {
33- gender ?: InputMaybe < Scalars [ 'String' ] > ;
34- name ?: InputMaybe < Scalars [ 'String' ] > ;
35- species ?: InputMaybe < Scalars [ 'String' ] > ;
36- status ?: InputMaybe < Scalars [ 'String' ] > ;
37- type ?: InputMaybe < Scalars [ 'String' ] > ;
44+ gender ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
45+ name ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
46+ species ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
47+ status ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
48+ type ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
3849}
3950
4051export interface FilterEpisode {
41- episode ?: InputMaybe < Scalars [ 'String' ] > ;
42- name ?: InputMaybe < Scalars [ 'String' ] > ;
52+ episode ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
53+ name ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
4354}
4455
4556export interface FilterLocation {
46- dimension ?: InputMaybe < Scalars [ 'String' ] > ;
47- name ?: InputMaybe < Scalars [ 'String' ] > ;
48- type ?: InputMaybe < Scalars [ 'String' ] > ;
57+ dimension ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
58+ name ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
59+ type ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
4960}
5061
51- export const scalarsEnumsHash : import ( 'gqty' ) . ScalarsEnumsHash = {
62+ export const scalarsEnumsHash : ScalarsEnumsHash = {
5263 Boolean : true ,
5364 CacheControlScope : true ,
5465 ID : true ,
@@ -301,53 +312,53 @@ export interface Query {
301312 /**
302313 * Get a specific character by ID
303314 */
304- character : ( args : { id : Scalars [ 'ID' ] } ) => Maybe < Character > ;
315+ character : ( args : { id : ScalarsEnums [ 'ID' ] } ) => Maybe < Character > ;
305316 /**
306317 * Get the list of all characters
307318 */
308319 characters : ( args ?: {
309320 filter ?: Maybe < FilterCharacter > ;
310- page ?: Maybe < Scalars [ 'Int' ] > ;
321+ page ?: Maybe < ScalarsEnums [ 'Int' ] > ;
311322 } ) => Maybe < Characters > ;
312323 /**
313324 * Get a list of characters selected by ids
314325 */
315326 charactersByIds : ( args : {
316- ids : Array < Scalars [ 'ID' ] > ;
327+ ids : Array < ScalarsEnums [ 'ID' ] > ;
317328 } ) => Maybe < Array < Maybe < Character > > > ;
318329 /**
319330 * Get a specific episode by ID
320331 */
321- episode : ( args : { id : Scalars [ 'ID' ] } ) => Maybe < Episode > ;
332+ episode : ( args : { id : ScalarsEnums [ 'ID' ] } ) => Maybe < Episode > ;
322333 /**
323334 * Get the list of all episodes
324335 */
325336 episodes : ( args ?: {
326337 filter ?: Maybe < FilterEpisode > ;
327- page ?: Maybe < Scalars [ 'Int' ] > ;
338+ page ?: Maybe < ScalarsEnums [ 'Int' ] > ;
328339 } ) => Maybe < Episodes > ;
329340 /**
330341 * Get a list of episodes selected by ids
331342 */
332343 episodesByIds : ( args : {
333- ids : Array < Scalars [ 'ID' ] > ;
344+ ids : Array < ScalarsEnums [ 'ID' ] > ;
334345 } ) => Maybe < Array < Maybe < Episode > > > ;
335346 /**
336347 * Get a specific locations by ID
337348 */
338- location : ( args : { id : Scalars [ 'ID' ] } ) => Maybe < Location > ;
349+ location : ( args : { id : ScalarsEnums [ 'ID' ] } ) => Maybe < Location > ;
339350 /**
340351 * Get the list of all locations
341352 */
342353 locations : ( args ?: {
343354 filter ?: Maybe < FilterLocation > ;
344- page ?: Maybe < Scalars [ 'Int' ] > ;
355+ page ?: Maybe < ScalarsEnums [ 'Int' ] > ;
345356 } ) => Maybe < Locations > ;
346357 /**
347358 * Get a list of locations selected by ids
348359 */
349360 locationsByIds : ( args : {
350- ids : Array < Scalars [ 'ID' ] > ;
361+ ids : Array < ScalarsEnums [ 'ID' ] > ;
351362 } ) => Maybe < Array < Maybe < Location > > > ;
352363}
353364
@@ -361,10 +372,10 @@ export interface GeneratedSchema {
361372 subscription : Subscription ;
362373}
363374
364- export type MakeNullable < T > = {
365- [ K in keyof T ] : T [ K ] | undefined ;
375+ export type ScalarsEnums = {
376+ [ Key in keyof Scalars ] : Scalars [ Key ] extends { output : unknown }
377+ ? Scalars [ Key ] [ 'output' ]
378+ : never ;
379+ } & {
380+ CacheControlScope : CacheControlScope ;
366381} ;
367-
368- export interface ScalarsEnums extends MakeNullable < Scalars > {
369- CacheControlScope : CacheControlScope | undefined ;
370- }
0 commit comments