
    aj&                        d dl Z d dlmZ  G d de      Z G d de j                        Z G d de j                        Z G d	 d
e j                        Z G d de j                        Z G d de j                        Z	 G d de j                        Z
 G d de j                        Z G d de j                        Z G d de j                        Z G d de j                        Z G d de j                        Z G d de j                        Z G d de j                        Z G d d e j                        Z G d! d"e j                        Z G d# d$e j                        Zy)%    N)Scalarc                   @    e Zd ZdZed        Zed        Zed        Zy)Uploadz1Custom scalar type representing form file upload.c                     | S N values    7/var/www/html/myl_app/scheduler-service/schema/types.py	serializezUpload.serialize
           c                     | S r   r   )nodes    r   parse_literalzUpload.parse_literal   s    r   c                     | S r   r   r	   s    r   parse_valuezUpload.parse_value   r   r   N)__name__
__module____qualname____doc__staticmethodr   r   r   r   r   r   r   r      s?    ;     r   r   c                   B   e Zd ZdZ ej
                         Z ej                         Z ej                         Z	 ej                         Z
 ej                         Z ej                         Z ej                         Z ej                         Z ej                         Zy)	Schedulerz!Mirrors PHP SchedulerType fields.N)r   r   r   r   grapheneIntidStringdatetimehomeawaylocationdivision
created_at
updated_atr   r   r   r   r      s    +	B8??D8??D8??D8??Dx Hx H "J "Jr   r   c                       e Zd ZdZ ej
                  e      Z ej                         Z	 ej                         Z
 ej                         Zy)PaginatedSchedulerz,Wraps a paginated list of scheduler entries.N)r   r   r   r   r   Listr   datar   totalpageper_pager   r   r   r(   r(   (   s<    68==#DHLLNE8<<>Dx||~Hr   r(   c                   T    e Zd ZdZ ej
                         Z ej                         Zy)DeleteResultzResult of a delete operation.N	r   r   r   r   r   Booleansuccessr   messager   r   r   r/   r/   0   s#    'h GhooGr   r/   c                   T    e Zd ZdZ ej
                         Z ej                         Zy)ImportLeagueSetupResultz*Result of a league setup import operation.Nr0   r   r   r   r5   r5   6   s#    4h GhooGr   r5   c                   v    e Zd ZdZ ej
                         Z ej                         Z ej
                         Z	y)Seasonz"Represents a season in the league.N)
r   r   r   r   r   r   	season_idr   season_descyear_idr   r   r   r7   r7   <   s-    ,I!(//#KhllnGr   r7   c                   T    e Zd ZdZ ej
                         Z ej                         Zy)Divisionz$Represents a division in the league.N)	r   r   r   r   r   r   division_idr   division_namer   r   r   r<   r<   C   s     .(,,.K#HOO%Mr   r<   c                   v    e Zd ZdZ ej
                         Z ej                         Z ej                         Z
y)CreateSeasonResultz&Result of a season creation operation.N)r   r   r   r   r   r1   r2   r   r3   r   r8   r   r   r   r@   r@   I   s0    0h GhooGIr   r@   c                   v    e Zd ZdZ ej
                         Z ej                         Z ej                         Z
y)CreateDivisionResultz(Result of a division creation operation.N)r   r   r   r   r   r1   r2   r   r3   r   r=   r   r   r   rB   rB   P   s0    2h GhooG(,,.Kr   rB   c                   v    e Zd ZdZ ej
                         Z ej                         Z ej                         Z
y)CreateFieldResultz%Result of a field creation operation.N)r   r   r   r   r   r1   r2   r   r3   r   field_idr   r   r   rD   rD   W   s0    /h GhooGx||~Hr   rD   c                   v    e Zd ZdZ ej
                         Z ej                         Z ej                         Z
y)CreateTeamResultz$Result of a team creation operation.N)r   r   r   r   r   r1   r2   r   r3   r   team_idr   r   r   rG   rG   ^   s0    .h GhooGhllnGr   rG   c                       e Zd ZdZ ej
                  d      Z ej
                  d      Z ej
                  d      Z ej
                  d      Z	 ej
                  d      Z
 ej
                  d      Zy)CreateSchedulerInputz#Input for createScheduler mutation.TrequiredN)r   r   r   r   r   r   r   r    r!   r"   r#   r$   r   r   r   rJ   rJ   i   se    -8??D)D8??D)D8??D)D8??D)Dx-Hx-Hr   rJ   c                      e Zd ZdZ ej
                  d      Z ej                         Z ej                         Z	 ej                         Z
 ej                         Z ej                         Z ej                         Zy)UpdateSchedulerInputu;   Input for updateScheduler mutation — all fields optional.TrK   N)r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r   r   r   rN   rN   s   si    E	t	$B8??D8??D8??D8??Dx Hx Hr   rN   c                   V   e Zd ZdZ ej
                  d      Z ej                  d      Z ej                  d      Z	 ej                  d      Z ej
                  d      Z ej                         Z ej                         Z ej                         Z ej                         Zy)CreateSeasonInputz Input for createSeason mutation.TrK   activedefault_valueN)r   r   r   r   r   r   season_nameDate
start_dateend_dater   season_yearstatusregistration_startregistration_endearly_bird_datelate_fee_dater   r   r   rP   rP   ~   s    *!(//40K-Jx}}d+H(,,-KX__84F&$x}}#hmmoO!HMMOMr   rP   c                       e Zd ZdZ ej
                  d      Z ej
                  d      Z ej                  d      Z	 ej                  d      Z
 ej                  d      Zy)CreateDivisionInputz"Input for createDivision mutation.TrK   g        rR   r   N)r   r   r   r   r   r   r>   genderFloatstart_age_or_gradeend_age_or_grader   	max_teamsr   r   r   r_   r_      sW    ,#HOOT2MX__d+F'c:%x~~C81-Ir   r_   c                   X    e Zd ZdZ ej
                  d      Z ej
                         Zy)CreateFieldInputzInput for createField mutation.TrK   N)r   r   r   r   r   r   
field_nameaddressr   r   r   rf   rf      s#    ) $/JhooGr   rf   c                       e Zd ZdZ ej
                  d      Z ej                  d      Z ej                  d      Z	 ej
                         Z
 ej                         Zy)CreateTeamInputzInput for createTeam mutation.TrK   N)r   r   r   r   r   r   	team_namer   r=   home_field_idaffiliationr8   r   r   r   rj   rj      sP    (.I(,,-K HLL$/M!(//#KIr   rj   )r   graphene.types.scalarsr   r   
ObjectTyper   r(   r/   r5   r7   r<   r@   rB   rD   rG   InputObjectTyperJ   rN   rP   r_   rf   rj   r   r   r   <module>rq      s7    )V &
### 
#,,  8&&   h11  X   &x"" &,, !8.. !++ x** .833 .!833 !
$00 
$.(22 . x//  h.. r   