o
    tBh                     @   sj   d dl mZ d dlmZmZ d dlmZmZmZm	Z	m
Z
 					ddeded	ed
ededefddZdS )    )repeat)DocumentNodeGraphQLSchema)DSLFragmentDSLMetaFieldDSLQuery	DSLSchemadsl_gqlTF   descriptionsspecified_by_urldirective_is_repeatableschema_descriptiontype_recursion_levelreturnc              	   C   s  t t }td|j}td|j}td|j}td}	| r,|r,|	|jj	 |	|jj
|jj|jj|jj|jj|jj |	|jj| |jj|jj}
| rd|
|jj	 |rm|
|jj |
|jj|jj| |	|
 ||jj|jj | r||jj	 |r||jj |jjdd|jj}| r||jj	 ||jj||jj||jj|jj |jjdd|jj}| r||jj	 ||jj|jj |||jj||jj|||jj| ||jj | r||jj	 ||jj||jj  ||jj|jj |dkrY|jj!|jj|jj}|| t"d|d D ]}|jj!|jj|jj}|| |}qBt#|	}d	|_t$||||}|S )
a  Get a query for introspection as a document using the DSL module.

    Equivalent to the get_introspection_query function from graphql-core
    but using the DSL module and allowing to select the recursion level.

    Optionally, you can exclude descriptions, include specification URLs,
    include repeatability of directives, and specify whether to include
    the schema description as well.
    FullType
InputValueTypeRef__schemaT)includeDeprecated   NIntrospectionQuery)%r   r   r   on__Type__InputValuer   select__Schemadescription	queryTypenamemutationTypesubscriptionTypetypes
directives__DirectiveisRepeatable	locationsargskindspecifiedByURLfields__FieldtypeisDeprecateddeprecationReason
enumValues__EnumValueinputFields
interfacespossibleTypesdefaultValueofTyper   r   r	   )r   r   r   r   r   dsfragment_FullTypefragment_InputValuefragment_TypeRefschemar#   r*   enum_valuescurrent_field_
new_oftypequery	dsl_query rA   /var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/gql/utilities/get_introspection_query_ast.pyget_introspection_query_ast   s   




rC   N)TFFFr
   )	itertoolsr   graphqlr   r   gql.dslr   r   r   r   r	   boolintrC   rA   rA   rA   rB   <module>   s*    