
    xh                         % S SK JrJr  S SKJr  \S   r " S S\SS9rSS	S
\" / SQ5      S.SSS\" / SQ5      S.SSSS\" / SQ5      S.SSSS\" / SQ5      S.4r\	\S4   \
S'    " S S\R                  5      rg)    )Literal	TypedDict)models)org:read	org:writez	org:adminorg:integrationsmember:readmember:writemember:admin	team:read
team:write
team:adminproject:readproject:writeproject:adminproject:releases
event:readevent:writeevent:adminc                   N    \ rS rSr% \\S'   \\S'   \\S'   \\   \S'   \\S'   Sr	g)	Role   idnamedescscopes	is_global N)
__name__
__module____qualname____firstlineno__str__annotations__setScopesbool__static_attributes__r       )/code/apps/organizations_ext/constants.pyr   r      s     G
I
IKOr)   r   F)totalmemberMemberz\Members can view and act on events, as well as view most other data within the organization.)r   r   r   r   r   r   r	   r   )r   r   r   r   adminAdmina"  Admin privileges on any teams of which they're a member. They can create new teams and projects, as well as remove teams and projects which they already hold membership on (or all teams, if open membership is on). Additionally, they can manage memberships of teams that they are members of.)r   r   r   r   r	   r   r   r   r   r   r   r   r   managerManagerzQGains admin access on all teams as well as the ability to add and remove members.T)r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   )r   r   r   r   r   ownerzOrganization OwnerzUnrestricted access to the organization, its data, and its settings. Can add, modify, and delete projects and members, as well as make billing and plan changes..ROLESc                   T    \ rS rSrSrSrSrSr\S\	4S j5       r
\S\4S	 j5       rS
rg)OrganizationUserRole   )r   r-   )   r/   )   r1   )   Ownerstringc                 v    U  H3  nUR                   R                  5       UR                  5       :X  d  M1  Us  $    g N)labellower)clsr;   statuss      r*   from_string OrganizationUserRole.from_string   s,    F||!!#v||~5 r)   rolec                     [         U   $ r=   )r3   )r@   rD   s     r*   get_roleOrganizationUserRole.get_role   s    T{r)   r   N)r   r    r!   r"   MEMBERADMINMANAGEROWNERclassmethodr#   rB   intrF   r(   r   r)   r*   r5   r5      sJ    FEGE  
 C  r)   r5   N)typingr   r   	django.dbr   r&   r   r%   r3   tupler$   IntegerChoicesr5   r   r)   r*   <module>rR      s    % % 	
*9E  n	
	$  u
	. c
6 $ s
E]uT3Y ]@600 r)   