github.com/geneva/gqlgen@v0.17.7-0.20230801155730-7b9317164836/integration/src/generated/graphql.ts (about) 1 /* eslint-disable */ 2 import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; 3 export type Maybe<T> = T | null; 4 export type InputMaybe<T> = Maybe<T>; 5 export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }; 6 export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> }; 7 export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> }; 8 export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never }; 9 export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; 10 /** All built-in and custom scalars, mapped to their actual values */ 11 export type Scalars = { 12 ID: { input: string | number; output: string; } 13 String: { input: string; output: string; } 14 Boolean: { input: boolean; output: boolean; } 15 Int: { input: number; output: number; } 16 Float: { input: number; output: number; } 17 Map: { input: any; output: any; } 18 }; 19 20 export enum Date_Filter_Op { 21 Eq = 'EQ', 22 Gt = 'GT', 23 Gte = 'GTE', 24 Lt = 'LT', 25 Lte = 'LTE', 26 Neq = 'NEQ' 27 } 28 29 export type DateFilter = { 30 op?: InputMaybe<Date_Filter_Op>; 31 timezone?: InputMaybe<Scalars['String']['input']>; 32 value: Scalars['String']['input']; 33 }; 34 35 export type Element = { 36 __typename?: 'Element'; 37 child: Element; 38 error: Scalars['Boolean']['output']; 39 mismatched?: Maybe<Array<Scalars['Boolean']['output']>>; 40 }; 41 42 export enum ErrorType { 43 Custom = 'CUSTOM', 44 Normal = 'NORMAL' 45 } 46 47 export type ListCoercion = { 48 enumVal?: InputMaybe<Array<InputMaybe<ErrorType>>>; 49 intVal?: InputMaybe<Array<InputMaybe<Scalars['Int']['input']>>>; 50 scalarVal?: InputMaybe<Array<InputMaybe<Scalars['Map']['input']>>>; 51 strVal?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>; 52 }; 53 54 export type Query = { 55 __typename?: 'Query'; 56 coercion: Scalars['Boolean']['output']; 57 complexity: Scalars['Boolean']['output']; 58 date: Scalars['Boolean']['output']; 59 error: Scalars['Boolean']['output']; 60 jsonEncoding: Scalars['String']['output']; 61 path?: Maybe<Array<Maybe<Element>>>; 62 viewer?: Maybe<Viewer>; 63 }; 64 65 66 export type QueryCoercionArgs = { 67 value?: InputMaybe<Array<ListCoercion>>; 68 }; 69 70 71 export type QueryComplexityArgs = { 72 value: Scalars['Int']['input']; 73 }; 74 75 76 export type QueryDateArgs = { 77 filter: DateFilter; 78 }; 79 80 81 export type QueryErrorArgs = { 82 type?: InputMaybe<ErrorType>; 83 }; 84 85 export type RemoteModelWithOmitempty = { 86 __typename?: 'RemoteModelWithOmitempty'; 87 newDesc?: Maybe<Scalars['String']['output']>; 88 }; 89 90 export type User = { 91 __typename?: 'User'; 92 likes: Array<Scalars['String']['output']>; 93 name: Scalars['String']['output']; 94 /** @deprecated No longer supported */ 95 phoneNumber?: Maybe<Scalars['String']['output']>; 96 }; 97 98 export type Viewer = { 99 __typename?: 'Viewer'; 100 user?: Maybe<User>; 101 }; 102 103 export type CoercionQueryVariables = Exact<{ 104 value?: InputMaybe<Array<ListCoercion> | ListCoercion>; 105 }>; 106 107 108 export type CoercionQuery = { __typename?: 'Query', coercion: boolean }; 109 110 export type ComplexityQueryVariables = Exact<{ 111 value: Scalars['Int']['input']; 112 }>; 113 114 115 export type ComplexityQuery = { __typename?: 'Query', complexity: boolean }; 116 117 export type DateQueryVariables = Exact<{ 118 filter: DateFilter; 119 }>; 120 121 122 export type DateQuery = { __typename?: 'Query', date: boolean }; 123 124 export type ErrorQueryVariables = Exact<{ 125 type?: InputMaybe<ErrorType>; 126 }>; 127 128 129 export type ErrorQuery = { __typename?: 'Query', error: boolean }; 130 131 export type JsonEncodingQueryVariables = Exact<{ [key: string]: never; }>; 132 133 134 export type JsonEncodingQuery = { __typename?: 'Query', jsonEncoding: string }; 135 136 export type PathQueryVariables = Exact<{ [key: string]: never; }>; 137 138 139 export type PathQuery = { __typename?: 'Query', path?: Array<{ __typename?: 'Element', cc: { __typename?: 'Element', error: boolean } } | null> | null }; 140 141 export type ViewerQueryVariables = Exact<{ [key: string]: never; }>; 142 143 144 export type ViewerQuery = { __typename?: 'Query', viewer?: { __typename?: 'Viewer', user?: ( { __typename?: 'User', name: string, phoneNumber?: string | null } & ( 145 { __typename?: 'User' } 146 & { ' $fragmentRefs'?: { 'UserFragmentFragment': Incremental<UserFragmentFragment> } } 147 ) ) | null } | null }; 148 149 export type UserFragmentFragment = { __typename?: 'User', likes: Array<string> } & { ' $fragmentName'?: 'UserFragmentFragment' }; 150 151 export const UserFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"userFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"likes"}}]}}]} as unknown as DocumentNode<UserFragmentFragment, unknown>; 152 export const CoercionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"coercion"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"value"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ListCoercion"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"coercion"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"value"},"value":{"kind":"Variable","name":{"kind":"Name","value":"value"}}}]}]}}]} as unknown as DocumentNode<CoercionQuery, CoercionQueryVariables>; 153 export const ComplexityDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"complexity"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"value"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"complexity"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"value"},"value":{"kind":"Variable","name":{"kind":"Name","value":"value"}}}]}]}}]} as unknown as DocumentNode<ComplexityQuery, ComplexityQueryVariables>; 154 export const DateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"date"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filter"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DateFilter"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"date"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filter"}}}]}]}}]} as unknown as DocumentNode<DateQuery, DateQueryVariables>; 155 export const ErrorDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"error"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"type"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ErrorType"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"error"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"type"},"value":{"kind":"Variable","name":{"kind":"Name","value":"type"}}}]}]}}]} as unknown as DocumentNode<ErrorQuery, ErrorQueryVariables>; 156 export const JsonEncodingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"jsonEncoding"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"jsonEncoding"}}]}}]} as unknown as DocumentNode<JsonEncodingQuery, JsonEncodingQueryVariables>; 157 export const PathDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"path"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"path"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"cc"},"name":{"kind":"Name","value":"child"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"error"}}]}}]}}]}}]} as unknown as DocumentNode<PathQuery, PathQueryVariables>; 158 export const ViewerDocument = {"__meta__":{"deferredFields":{"userFragment":["likes"]}},"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"viewer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"viewer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"userFragment"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"userFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"likes"}}]}}]} as unknown as DocumentNode<ViewerQuery, ViewerQueryVariables>;