o
    tBhX                     @   sN  d dl mZ d dlmZmZmZmZmZ ddlm	Z	 z
d dlm
Z
mZ W n ey5   d dlm
Z
mZ Y nw g dZ					d;d	ed
ededededefddZeeef ZG dd deddZG dd deZG dd deddZG dd deZG dd deddZG dd deeZG dd deeZG d d! d!eeZG d"d# d#eddZG d$d% d%eeZG d&d' d'eeZG d(d) d)eZG d*d+ d+eZG d,d- d-eZ G d.d/ d/eZ!G d0d1 d1eZ"eeeee e!e"f Z#eeeee e!f Z$eee!e"f Z%G d2d3 d3eZ&G d4d5 d5eZ'ee#e&e'f Z(G d6d7 d7eZ)G d8d9 d9eZ*d:S )<    )dedent)AnyDictListOptionalUnion   )DirectiveLocation)Literal	TypedDict)get_introspection_queryIntrospectionDirectiveIntrospectionEnumTypeIntrospectionFieldIntrospectionInputObjectTypeIntrospectionInputValueIntrospectionInterfaceTypeIntrospectionListTypeIntrospectionNonNullTypeIntrospectionObjectTypeIntrospectionQueryIntrospectionScalarTypeIntrospectionSchemaIntrospectionTypeIntrospectionTypeRefIntrospectionUnionTypeTFdescriptionsspecified_by_urldirective_is_repeatableschema_descriptioninput_value_deprecationreturnc           
         s   | rdnd}|r
dnd}|rdnd}|r|nd}dt dtt  f fdd}	td	| d
| d| d|	d d| d| d| d|	d d|	d d| d| d|	d d|	d dS )zGet a query for introspection.

    Optionally, you can exclude descriptions, include specification URLs,
    include repeatability of directives, and specify whether to include
    the schema description as well.
    description specifiedByURLisRepeatablestringr!   c                    s    r| S dS )Nr#    )r&   r    r'   /var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/graphql/utilities/get_introspection_query.pyinput_deprecation1   s   z2get_introspection_query.<locals>.input_deprecationzE
        query IntrospectionQuery {
          __schema {
            z
            queryType { name }
            mutationType { name }
            subscriptionType { name }
            types {
              ...FullType
            }
            directives {
              name
              z
              z+
              locations
              argsz(includeDeprecated: true)z {
                ...InputValue
              }
            }
          }
        }

        fragment FullType on __Type {
          kind
          name
          z
          zJ
          fields(includeDeprecated: true) {
            name
            z
            argsz {
              ...InputValue
            }
            type {
              ...TypeRef
            }
            isDeprecated
            deprecationReason
          }
          inputFieldsz {
            ...InputValue
          }
          interfaces {
            ...TypeRef
          }
          enumValues(includeDeprecated: true) {
            name
            z
            isDeprecated
            deprecationReason
          }
          possibleTypes {
            ...TypeRef
          }
        }

        fragment InputValue on __InputValue {
          name
          z@
          type { ...TypeRef }
          defaultValue
          isDeprecateddeprecationReasona  
        }

        fragment TypeRef on __Type {
          kind
          name
          ofType {
            kind
            name
            ofType {
              kind
              name
              ofType {
                kind
                name
                ofType {
                  kind
                  name
                  ofType {
                    kind
                    name
                    ofType {
                      kind
                      name
                      ofType {
                        kind
                        name
                        ofType {
                          kind
                          name
                          ofType {
                            kind
                            name
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
        )strr   r   )
r   r   r   r   r    maybe_descriptionmaybe_specified_by_urlmaybe_directive_is_repeatablemaybe_schema_descriptionr*   r'   r(   r)   r      sD   '/:=>r   c                   @      e Zd ZU ee ed< dS )MaybeWithDescriptionr"   N__name__
__module____qualname__r   r-   __annotations__r'   r'   r'   r)   r3         
 r3   )totalc                   @      e Zd ZU eed< dS )WithNamenameN)r5   r6   r7   r-   r8   r'   r'   r'   r)   r<         
 r<   c                   @   r2   )MaybeWithSpecifiedByUrlr$   Nr4   r'   r'   r'   r)   r?      r9   r?   c                   @   "   e Zd ZU eed< ee ed< dS )WithDeprecatedr+   r,   Nr5   r6   r7   boolr8   r   r-   r'   r'   r'   r)   rA         
 rA   c                   @   r@   )MaybeWithDeprecatedr+   r,   NrB   r'   r'   r'   r)   rE      rD   rE   c                   @   r@   )r   typedefaultValueN)r5   r6   r7   SimpleIntrospectionTyper8   r   r-   r'   r'   r'   r)   r      rD   r   c                   @   s"   e Zd ZU ee ed< eed< dS )r   argsrF   N)r5   r6   r7   r   r   r8   rH   r'   r'   r'   r)   r         
 r   c                   @   s   e Zd ZdS )IntrospectionEnumValueN)r5   r6   r7   r'   r'   r'   r)   rK      s    rK   c                   @   r;   )MaybeWithIsRepeatabler%   N)r5   r6   r7   rC   r8   r'   r'   r'   r)   rL      r>   rL   c                   @   s&   e Zd ZU ee ed< ee ed< dS )r   	locationsrI   N)r5   r6   r7   r   r	   r8   r   r'   r'   r'   r)   r         
 r   c                   @   s   e Zd ZU ed ed< dS )r   scalarkindN)r5   r6   r7   r
   r8   r'   r'   r'   r)   r      r9   r   c                   @   s>   e Zd ZU ed ed< ee ed< ee ed< ee ed< dS )r   	interfacerP   fields
interfacespossibleTypesNr5   r6   r7   r
   r8   r   r   rH   r'   r'   r'   r)   r      s
   
 r   c                   @   s2   e Zd ZU ed ed< ee ed< ee ed< dS )r   objectrP   rR   rS   NrU   r'   r'   r'   r)   r      s   
 r   c                   @   &   e Zd ZU ed ed< ee ed< dS )r   unionrP   rT   N)r5   r6   r7   r
   r8   r   rH   r'   r'   r'   r)   r      rN   r   c                   @   rW   )r   enumrP   
enumValuesN)r5   r6   r7   r
   r8   r   rK   r'   r'   r'   r)   r      rN   r   c                   @   rW   )r   input_objectrP   inputFieldsN)r5   r6   r7   r
   r8   r   r   r'   r'   r'   r)   r      rN   r   c                   @   "   e Zd ZU ed ed< eed< dS )r   listrP   ofTypeNr5   r6   r7   r
   r8   rH   r'   r'   r'   r)   r     rJ   r   c                   @   r]   )r   non_nullrP   r_   Nr`   r'   r'   r'   r)   r     rJ   r   c                   @   sF   e Zd ZU eed< ee ed< ee ed< ee ed< ee ed< dS )r   	queryTypemutationTypesubscriptionTypetypes
directivesN)	r5   r6   r7   r   r8   r   r   r   r   r'   r'   r'   r)   r     s   
 r   c                   @   s   e Zd ZU dZeed< dS )r   z4The root typed dictionary for schema introspections._IntrospectionQuery__schemaN)r5   r6   r7   __doc__r   r8   r'   r'   r'   r)   r   '  s   
 r   N)TFFFF)+textwrapr   typingr   r   r   r   r   languager	   r
   r   ImportErrortyping_extensions__all__rC   r-   r   rH   r3   r<   r?   rA   rE   r   r   rK   rL   r   r   r   r   r   r   r   r   IntrospectionOutputTypeIntrospectionInputTyper   r   r   r   r   r'   r'   r'   r)   <module>   s    
 

	