import type { AcceptableVariables , UnresolvedVariables , FieldOptions , DirectiveArgs } from 'graphql-ts-client-api' ; import { ObjectFetcher , ConnectionFetcher , createFetcher , createFetchableType } from 'graphql-ts-client-api' ; export interface QueryFetcher < T extends object , TVariables extends object > extends ObjectFetcher < 'Query' , T , TVariables > { directive ( name , args ? ) : QueryFetcher < T , TVariables > ; findDepartmentsLikeName < X extends object , XVariables extends object > ( child ) : QueryFetcher < T & { readonly "findDepartmentsLikeName" : X ; } , TVariables & XVariables & QueryArgs [ "findDepartmentsLikeName" ] > ; findDepartmentsLikeName < XArgs extends AcceptableVariables < QueryArgs [ 'findDepartmentsLikeName' ] > , X extends object , XVariables extends object > ( args , child ) : QueryFetcher < T & { readonly "findDepartmentsLikeName" : X ; } , TVariables & XVariables & UnresolvedVariables < XArgs , QueryArgs [ 'findDepartmentsLikeName' ] > > ; findDepartmentsLikeName < X extends object , XVariables extends object , XAlias extends string = "findDepartmentsLikeName" , XDirectives extends { readonly [ key ] : DirectiveArgs ; } = { } , XDirectiveVariables extends object = { } > ( child , optionsConfigurer ) : QueryFetcher < T & ( XDirectives extends { readonly include : any ; } | { readonly skip : any ; } ? { readonly [ key in XAlias ] ? : X ; } : { readonly [ key in XAlias ] : X ; } ) , TVariables & XVariables & QueryArgs [ "findDepartmentsLikeName" ] & XDirectiveVariables > ; findDepartmentsLikeName < XArgs extends AcceptableVariables < QueryArgs [ 'findDepartmentsLikeName' ] > , X extends object , XVariables extends object , XAlias extends string = "findDepartmentsLikeName" , XDirectives extends { readonly [ key ] : DirectiveArgs ; } = { } , XDirectiveVariables extends object = { } > ( args , child , optionsConfigurer ) : QueryFetcher < T & ( XDirectives extends { readonly include : any ; } | { readonly skip : any ; } ? { readonly [ key in XAlias ] ? : X ; } : { readonly [ key in XAlias ] : X ; } ) , TVariables & XVariables & UnresolvedVariables < XArgs , QueryArgs [ 'findDepartmentsLikeName' ] > & XDirectiveVariables > ; findEmployees < X extends object , XVariables extends object > ( child ) : QueryFetcher < T & { readonly "findEmployees" : X ; } , TVariables & XVariables & QueryArgs [ "findEmployees" ] > ; findEmployees < XArgs extends AcceptableVariables < QueryArgs [ 'findEmployees' ] > , X extends object , XVariables extends object > ( args , child ) : QueryFetcher < T & { readonly "findEmployees" : X ; } , TVariables & XVariables & UnresolvedVariables < XArgs , QueryArgs [ 'findEmployees' ] > > ; findEmployees < X extends object , XVariables extends object , XAlias extends string = "findEmployees" , XDirectives extends { readonly [ key ] : DirectiveArgs ; } = { } , XDirectiveVariables extends object = { } > ( child , optionsConfigurer ) : QueryFetcher < T & ( XDirectives extends { readonly include : any ; } | { readonly skip : any ; } ? { readonly [ key in XAlias ] ? : X ; } : { readonly [ key in XAlias ] : X ; } ) , TVariables & XVariables & QueryArgs [ "findEmployees" ] & XDirectiveVariables > ; findEmployees < XArgs extends AcceptableVariables < QueryArgs [ 'findEmployees' ] > , X extends object , XVariables extends object , XAlias extends string = "findEmployees" , XDirectives extends { readonly [ key ] : DirectiveArgs ; } = { } , XDirectiveVariables extends object = { } > ( args , child , optionsConfigurer ) : QueryFetcher < T & ( XDirectives extends { readonly include : any ; } | { readonly skip : any ; } ? { readonly [ key in XAlias ] ? : X ; } : { readonly [ key in XAlias ] : X ; } ) , TVariables & XVariables & UnresolvedVariables < XArgs , QueryArgs [ 'findEmployees' ] > & XDirectiveVariables > ; node < X extends object , XVariables extends object > ( child ) : QueryFetcher < T & { readonly "node" ? : X ; } , TVariables & XVariables & QueryArgs [ "node" ] > ; node < XArgs extends AcceptableVariables < QueryArgs [ 'node' ] > , X extends object , XVariables extends object > ( args , child ) : QueryFetcher < T & { readonly "node" ? : X ; } , TVariables & XVariables & UnresolvedVariables < XArgs , QueryArgs [ 'node' ] > > ; node < X extends object , XVariables extends object , XAlias extends string = "node" , XDirectiveVariables extends object = { } > ( child , optionsConfigurer ) : QueryFetcher < T & { readonly [ key in XAlias ] ? : X ; } , TVariables & XVariables & QueryArgs [ "node" ] & XDirectiveVariables > ; node < XArgs extends AcceptableVariables < QueryArgs [ 'node' ] > , X extends object , XVariables extends object , XAlias extends string = "node" , XDirectiveVariables extends object = { } > ( args , child , optionsConfigurer ) : QueryFetcher < T & { readonly [ key in XAlias ] ? : X ; } , TVariables & XVariables & UnresolvedVariables < XArgs , QueryArgs [ 'node' ] > & XDirectiveVariables > ; } export const query$ = createFetcher ( createFetchableType ( "Query" , "OBJECT" , [ ] , [ { category : "CONNECTION" , name : "findDepartmentsLikeName" , argGraphQLTypeMap : { before : 'String' , last : 'Int' , after : 'String' , first : 'Int' , name : 'String' } , connectionTypeName : "DepartmentConnection" , edgeTypeName : "DepartmentEdge" , targetTypeName : "Department" } , { category : "CONNECTION" , name : "findEmployees" , argGraphQLTypeMap : { before : 'String' , last : 'Int' , after : 'String' , first : 'Int' , mockedErrorProbability : 'Int' , supervisorId : 'String' , departmentId : 'String' , name : 'String' } , connectionTypeName : "EmployeeConnection" , edgeTypeName : "EmployeeEdge" , targetTypeName : "Employee" } , { category : "REFERENCE" , name : "node" , argGraphQLTypeMap : { id : 'ID!' } , targetTypeName : "Node" , undefinable : true } ] ) , undefined ) ; export interface QueryArgs { readonly findDepartmentsLikeName : { readonly before ? : string ; readonly last ? : number ; readonly after ? : string ; readonly first ? : number ; readonly name ? : string ; } ; readonly findEmployees : { readonly before ? : string ; readonly last ? : number ; readonly after ? : string ; readonly first ? : number ; readonly mockedErrorProbability ? : number ; readonly supervisorId ? : string ; readonly departmentId ? : string ; readonly name ? : string ; } ; readonly node : { readonly id : string ; } ; }