github.com/99designs/gqlgen@v0.17.45/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    query: Query;
    97  };
    98  
    99  export type Viewer = {
   100    __typename?: 'Viewer';
   101    user?: Maybe<User>;
   102  };
   103  
   104  export type CoercionQueryVariables = Exact<{
   105    value?: InputMaybe<Array<ListCoercion> | ListCoercion>;
   106  }>;
   107  
   108  
   109  export type CoercionQuery = { __typename?: 'Query', coercion: boolean };
   110  
   111  export type ComplexityQueryVariables = Exact<{
   112    value: Scalars['Int']['input'];
   113  }>;
   114  
   115  
   116  export type ComplexityQuery = { __typename?: 'Query', complexity: boolean };
   117  
   118  export type DateQueryVariables = Exact<{
   119    filter: DateFilter;
   120  }>;
   121  
   122  
   123  export type DateQuery = { __typename?: 'Query', date: boolean };
   124  
   125  export type ErrorQueryVariables = Exact<{
   126    type?: InputMaybe<ErrorType>;
   127  }>;
   128  
   129  
   130  export type ErrorQuery = { __typename?: 'Query', error: boolean };
   131  
   132  export type JsonEncodingQueryVariables = Exact<{ [key: string]: never; }>;
   133  
   134  
   135  export type JsonEncodingQuery = { __typename?: 'Query', jsonEncoding: string };
   136  
   137  export type PathQueryVariables = Exact<{ [key: string]: never; }>;
   138  
   139  
   140  export type PathQuery = { __typename?: 'Query', path?: Array<{ __typename?: 'Element', cc: { __typename?: 'Element', error: boolean } } | null> | null };
   141  
   142  export type ViewerQueryVariables = Exact<{ [key: string]: never; }>;
   143  
   144  
   145  export type ViewerQuery = { __typename?: 'Query', viewer?: { __typename?: 'Viewer', user?: ( { __typename?: 'User', name: string, phoneNumber?: string | null, query: { __typename?: 'Query', jsonEncoding: string } } & (
   146        { __typename?: 'User' }
   147        & { ' $fragmentRefs'?: { 'UserFragmentFragment': Incremental<UserFragmentFragment> } }
   148      ) ) | null } | null };
   149  
   150  export type UserFragmentFragment = { __typename?: 'User', likes: Array<string> } & { ' $fragmentName'?: 'UserFragmentFragment' };
   151  
   152  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>;
   153  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>;
   154  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>;
   155  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>;
   156  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>;
   157  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>;
   158  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>;
   159  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":"Field","name":{"kind":"Name","value":"query"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"jsonEncoding"}}]}},{"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>;