
    >Tf                        d dl mZmZmZ d dlZd dlZdZerddlmZm	Z	m
Z
 d dlmZ ej         G d d                      Zej         G d	 d
                      Zej         G d d                      Zej         G d d                      Zej         G d d                      Zej         G d d                      ZdS )    )TYPE_CHECKING	AnnotatedListN)ConfigContextMixinContactsMixinCustomFieldsMixinImageAttachmentsMixinJournalEntriesMixin	TagsMixin   )ImageAttachmentTypeJournalEntryTypeTagType)ContactAssignmentTypec                   H    e Zd Zej        dej        j        fd            ZdS )r   returnc                 *    |                                  S N)get_config_contextselfs    :/var/www/html/netbox-4.1.3/netbox/extras/graphql/mixins.pyconfig_contextz!ConfigContextMixin.config_context   s    &&(((    N)	__name__
__module____qualname__strawberry_djangofield
strawberryscalarsJSONr    r   r   r   r      sE         )
 2 7 ) ) ) ) ) )r   r   c                   H    e Zd Zej        dej        j        fd            ZdS )r   r   c                     | j         S r   )custom_field_datar   s    r   custom_fieldszCustomFieldsMixin.custom_fields   s    %%r   N)	r   r   r   r   r   r    r!   r"   r'   r#   r   r   r   r      sE         &z16 & & & & & &r   r   c                   l    e Zd Zej        deed ej        d          f                  fd            Z	dS )r	   r   r   .typesc                 V    | j                             |j        j        j        d          S )Nview)imagesrestrictcontextrequestuserr   infos     r   image_attachmentsz'ImageAttachmentsMixin.image_attachments'   s"    {##DL$8$=vFFFr   N)
r   r   r   r   r   r   r   r    lazyr3   r#   r   r   r	   r	   $   sc         Gi8Mz_gOhOh8h.i)j G G G G G Gr   r	   c                   l    e Zd Zej        deed ej        d          f                  fd            Z	dS )r
   r   r   r)   c                 4    | j                                         S r   )journal_entriesallr1   s     r   r7   z#JournalEntriesMixin.journal_entries/   s    #'')))r   N)
r   r   r   r   r   r   r   r    r4   r7   r#   r   r   r
   r
   ,   s\         *tI6H/*/ZbJcJc6c,d'e * * * * * *r   r
   c                   R    e Zd ZU eed ej        d          f                  ed<   dS )r   r   r)   tagsNr   r   r   r   r   r    r4   __annotations__r#   r   r   r   r   4   s;          yOJOH$=$==>
??????r   r   c                   R    e Zd ZU eed ej        d          f                  ed<   dS )r   r   ztenancy.graphql.typescontactsNr;   r#   r   r   r   r   :   s=          94ojoF]6^6^^_``````r   r   )typingr   r   r   r    r   __all__typesr   r   r   tenancy.graphql.typesr   typer   r   r	   r
   r   r   r#   r   r   <module>rD      s   1 1 1 1 1 1 1 1 1 1          <EEEEEEEEEE;;;;;; ) ) ) ) ) ) ) ) & & & & & & & & G G G G G G G G * * * * * * * * @ @ @ @ @ @ @ @
 a a a a a a a a a ar   