
    *jM                        d dl mZmZmZmZmZmZmZmZm	Z	 d dl
mZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ dd
lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ  G d de           Z! G d de           Z"dS )    )	AnyOptionalUnionDictListSetIOCallableType)init   )AntiCheatConfig)Machine)Location)FreePunchCfg)PunchSpecialDateShift)MemberStatusChange)LeaveNeedPunchCfg)PunchMember)OvertimeClockCfg)ClockInAbnormalSettingsc                      e Zd Zi dedededee         dee         dee         dee         dee         d	ee         d
edededededededei dedededededededededededededed ed!ed"ei d#ed$ed%ed&ee         d'ed(ee	         d)ed*ee         d+e
d,ed-ee         d.ee         d/ed0ed1ed2ed3ei d4ed5ed6ed7ed8ed9ed:ed;ed<ed=ed>ed?ed@ee         dAee         dBedCedDee         ee         eeeedEZdKdGZedLdJ            ZdFS )MGroupgroup_id
group_name	time_zonebind_dept_idsexcept_dept_idsbind_user_idsexcept_user_idsgroup_leader_idssub_group_leader_idsallow_out_punchout_punch_need_approvalout_punch_need_post_approvalout_punch_need_remarkout_punch_need_photoout_punch_allowed_hide_addrout_punch_allowed_adjust_addradjust_rangeallow_pc_punchallow_remedyremedy_limitremedy_limit_countremedy_date_limitremedy_date_numallow_remedy_type_lackallow_remedy_type_lateallow_remedy_type_earlyallow_remedy_type_normalshow_cumulative_timeshow_over_timehide_staff_punch_timehide_clock_in_rule
face_punchface_punch_cfgface_live_need_actionface_downgradereplace_basic_picanti_cheat_punch_configmachines	gps_range	locations
group_typepunch_day_shift_idsfree_punch_cfgcalendar_idneed_punch_special_daysno_need_punch_special_dayswork_day_no_punch_as_lack
effect_nowremedy_period_typeremedy_period_custom_date
punch_typeeffect_timefixshift_effect_timemember_effect_timerest_clock_in_need_approvalclock_in_need_photomember_status_changeleave_need_punchleave_need_punch_cfggo_out_need_punchgo_out_need_punch_cfgtravel_need_punchtravel_need_punch_cfgneed_punch_membersno_need_punch_memberssave_auto_changesorg_change_auto_adjustbind_default_dept_ids)bind_default_user_idsovertime_clock_cfgnew_calendar_idallow_apply_punchclock_in_abnormal_settingsNc                 0   d | _         d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _	        d | _
        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _         d | _!        d | _"        d | _#        d | _$        d | _%        d | _&        d | _'        d | _(        d | _)        d | _*        d | _+        d | _,        d | _-        d | _.        d | _/        d | _0        d | _1        d | _2        d | _3        d | _4        d | _5        d | _6        d | _7        d | _8        d | _9        d | _:        d | _;        d | _<        d | _=        d | _>        d | _?        d | _@        d | _A        d | _B        d | _C        d | _D        d | _E        d | _F        d | _G        d | _H        t          | || jJ                   d S N)Kr   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   r   _types)selfds     h/usr/local/lib/hermes-agent/venv/lib/python3.11/site-packages/lark_oapi/api/attendance/v1/model/group.py__init__zGroup.__init__b   sZ   '+)-(,26482648599=!/37;$<@)59"48!;?(=A*+/.2,0,01515.26:#6:#7;$8<%48!.259"26*.-159".215BF$15(,37)-8< 6:*.NR$QU'9=&*.158<&)-*.37!15;?(37 BF!04AE!04BF"04BF"?CBF"156:#:>":>">B.215MQ'T1dk"""""    returnGroupBuilderc                      t                      S rd   )rl    rj   rh   builderzGroup.builder   s    ~~rj   rd   )rk   rl   )__name__
__module____qualname__strr   boolintr   r   r   r   r   r   r   r   r   r   re   ri   staticmethodro   rn   rj   rh   r   r      s       JCJcJ 	SJ 	c	J
 	49J 	cJ 	49J 	DIJ 	S	J 	4J 	"4J 	'J 	 J 	J 	&tJ  	(!J" 	#J J$ 	$%J& 	'J( 	)J* 	c+J, 	T-J. 	3/J0 	!$1J2 	!$3J4 	"45J6 	#D7J8 	9J: 	$;J< 	 =J> 	d?J@ 	dAJB 	#CJD 	 EJ J JF 	$GJH 	TIJJ 	"?KJL 	DMMJN 	SOJP 	T(^QJR 	cSJT 	tCyUJV 	,WJX 	sYJZ 	"4(=#>[J\ 	%d+@&A]J^ 	$T_J` 	daJb 	ccJd 	$SeJf 	cgJ J Jh 	siJj 	kJl 	cmJn 	&toJp 	tqJr 	 2sJt 	DuJv 	 1wJx 	SyJz 	 !2{J| 	S}J~ 	 !2J@ 	d;/AJB 	 k!2CJD 	TEJF 	!$GJH 	 cIJ JJ "&c.!&=SJ J JFXJ# J# J# J#X    \  rj   r   c                   b   e Zd ZddZdedd fdZdedd fdZdedd fd	Zd
ee         dd fdZ	dee         dd fdZ
dee         dd fdZdee         dd fdZdee         dd fdZdee         dd fdZdedd fdZdedd fdZdedd fdZdedd fdZdedd fdZd edd fd!Zd"edd fd#Zd$edd fd%Zd&edd fd'Zd(edd fd)Zd*edd fd+Zd,edd fd-Zd.edd fd/Zd0edd fd1Zd2edd fd3Zd4edd fd5Z d6edd fd7Z!d8edd fd9Z"d:edd fd;Z#d<edd fd=Z$d>edd fd?Z%d@edd fdAZ&dBedd fdCZ'dDedd fdEZ(dFedd fdGZ)dHedd fdIZ*dJedd fdKZ+dLe,dd fdMZ-dNee.         dd fdOZ/dPedd fdQZ0dRee1         dd fdSZ2dTedd fdUZ3dVee         dd fdWZ4dXe5dd fdYZ6dZedd fd[Z7d\ee8         dd fd]Z9d^ee8         dd fd_Z:d`edd fdaZ;dbedd fdcZ<ddedd fdeZ=dfedd fdgZ>dhedd fdiZ?djedd fdkZ@dledd fdmZAdnedd fdoZBdpedd fdqZCdredd fdsZDdteEdd fduZFdvedd fdwZGdxeHdd fdyZIdzedd fd{ZJd|eHdd fd}ZKd~edd fdZLdeHdd fdZMdeeN         dd fdZOdeeN         dd fdZPdedd fdZQdedd fdZRdee         dd fdZSdee         dd fdZTdeUdd fdZVdedd fdZWdedd fdZXdeYdd fdZZddZ[dS )rl   rk   Nc                 ,    t                      | _        d S rd   )r   _grouprf   s    rh   ri   zGroupBuilder.__init__   s    ggrj   r   c                     || j         _        | S rd   )ry   r   )rf   r   s     rh   r   zGroupBuilder.group_id       'rj   r   c                     || j         _        | S rd   )ry   r   )rf   r   s     rh   r   zGroupBuilder.group_name       !+rj   r   c                     || j         _        | S rd   )ry   r   )rf   r   s     rh   r   zGroupBuilder.time_zone        )rj   r   c                     || j         _        | S rd   )ry   r   )rf   r   s     rh   r   zGroupBuilder.bind_dept_ids       $1!rj   r   c                     || j         _        | S rd   )ry   r   )rf   r   s     rh   r   zGroupBuilder.except_dept_ids       &5#rj   r   c                     || j         _        | S rd   )ry   r   )rf   r   s     rh   r   zGroupBuilder.bind_user_ids   r   rj   r    c                     || j         _        | S rd   )ry   r    )rf   r    s     rh   r    zGroupBuilder.except_user_ids   r   rj   r!   c                     || j         _        | S rd   )ry   r!   )rf   r!   s     rh   r!   zGroupBuilder.group_leader_ids       '7$rj   r"   c                     || j         _        | S rd   )ry   r"   )rf   r"   s     rh   r"   z!GroupBuilder.sub_group_leader_ids       +?(rj   r#   c                     || j         _        | S rd   )ry   r#   )rf   r#   s     rh   r#   zGroupBuilder.allow_out_punch   r   rj   r$   c                     || j         _        | S rd   )ry   r$   )rf   r$   s     rh   r$   z$GroupBuilder.out_punch_need_approval       .E+rj   r%   c                     || j         _        | S rd   )ry   r%   )rf   r%   s     rh   r%   z)GroupBuilder.out_punch_need_post_approval   s    3O0rj   r&   c                     || j         _        | S rd   )ry   r&   )rf   r&   s     rh   r&   z"GroupBuilder.out_punch_need_remark       ,A)rj   r'   c                     || j         _        | S rd   )ry   r'   )rf   r'   s     rh   r'   z!GroupBuilder.out_punch_need_photo   r   rj   r(   c                     || j         _        | S rd   )ry   r(   )rf   r(   s     rh   r(   z(GroupBuilder.out_punch_allowed_hide_addr       2M/rj   r)   c                     || j         _        | S rd   )ry   r)   )rf   r)   s     rh   r)   z*GroupBuilder.out_punch_allowed_adjust_addr   s    4Q1rj   r*   c                     || j         _        | S rd   )ry   r*   )rf   r*   s     rh   r*   zGroupBuilder.adjust_range       #/ rj   r+   c                     || j         _        | S rd   )ry   r+   )rf   r+   s     rh   r+   zGroupBuilder.allow_pc_punch       %3"rj   r,   c                     || j         _        | S rd   )ry   r,   )rf   r,   s     rh   r,   zGroupBuilder.allow_remedy   r   rj   r-   c                     || j         _        | S rd   )ry   r-   )rf   r-   s     rh   r-   zGroupBuilder.remedy_limit  r   rj   r.   c                     || j         _        | S rd   )ry   r.   )rf   r.   s     rh   r.   zGroupBuilder.remedy_limit_count      );&rj   r/   c                     || j         _        | S rd   )ry   r/   )rf   r/   s     rh   r/   zGroupBuilder.remedy_date_limit      (9%rj   r0   c                     || j         _        | S rd   )ry   r0   )rf   r0   s     rh   r0   zGroupBuilder.remedy_date_num  r   rj   r1   c                     || j         _        | S rd   )ry   r1   )rf   r1   s     rh   r1   z#GroupBuilder.allow_remedy_type_lack      -C*rj   r2   c                     || j         _        | S rd   )ry   r2   )rf   r2   s     rh   r2   z#GroupBuilder.allow_remedy_type_late  r   rj   r3   c                     || j         _        | S rd   )ry   r3   )rf   r3   s     rh   r3   z$GroupBuilder.allow_remedy_type_early  r   rj   r4   c                     || j         _        | S rd   )ry   r4   )rf   r4   s     rh   r4   z%GroupBuilder.allow_remedy_type_normal  s    /G,rj   r5   c                     || j         _        | S rd   )ry   r5   )rf   r5   s     rh   r5   z!GroupBuilder.show_cumulative_time#  r   rj   r6   c                     || j         _        | S rd   )ry   r6   )rf   r6   s     rh   r6   zGroupBuilder.show_over_time'  r   rj   r7   c                     || j         _        | S rd   )ry   r7   )rf   r7   s     rh   r7   z"GroupBuilder.hide_staff_punch_time+  r   rj   r8   c                     || j         _        | S rd   )ry   r8   )rf   r8   s     rh   r8   zGroupBuilder.hide_clock_in_rule/  r   rj   r9   c                     || j         _        | S rd   )ry   r9   )rf   r9   s     rh   r9   zGroupBuilder.face_punch3  r~   rj   r:   c                     || j         _        | S rd   )ry   r:   )rf   r:   s     rh   r:   zGroupBuilder.face_punch_cfg7  r   rj   r;   c                     || j         _        | S rd   )ry   r;   )rf   r;   s     rh   r;   z"GroupBuilder.face_live_need_action;  r   rj   r<   c                     || j         _        | S rd   )ry   r<   )rf   r<   s     rh   r<   zGroupBuilder.face_downgrade?  r   rj   r=   c                     || j         _        | S rd   )ry   r=   )rf   r=   s     rh   r=   zGroupBuilder.replace_basic_picC  r   rj   r>   c                     || j         _        | S rd   )ry   r>   )rf   r>   s     rh   r>   z$GroupBuilder.anti_cheat_punch_configG  r   rj   r?   c                     || j         _        | S rd   )ry   r?   )rf   r?   s     rh   r?   zGroupBuilder.machinesK  r|   rj   r@   c                     || j         _        | S rd   )ry   r@   )rf   r@   s     rh   r@   zGroupBuilder.gps_rangeO  r   rj   rA   c                     || j         _        | S rd   )ry   rA   )rf   rA   s     rh   rA   zGroupBuilder.locationsS  r   rj   rB   c                     || j         _        | S rd   )ry   rB   )rf   rB   s     rh   rB   zGroupBuilder.group_typeW  r~   rj   rC   c                     || j         _        | S rd   )ry   rC   )rf   rC   s     rh   rC   z GroupBuilder.punch_day_shift_ids[      *='rj   rD   c                     || j         _        | S rd   )ry   rD   )rf   rD   s     rh   rD   zGroupBuilder.free_punch_cfg_  r   rj   rE   c                     || j         _        | S rd   )ry   rE   )rf   rE   s     rh   rE   zGroupBuilder.calendar_idc      "-rj   rF   c                     || j         _        | S rd   )ry   rF   )rf   rF   s     rh   rF   z$GroupBuilder.need_punch_special_daysg  r   rj   rG   c                     || j         _        | S rd   )ry   rG   )rf   rG   s     rh   rG   z'GroupBuilder.no_need_punch_special_daysk      1K.rj   rH   c                     || j         _        | S rd   )ry   rH   )rf   rH   s     rh   rH   z&GroupBuilder.work_day_no_punch_as_lacko      0I-rj   rI   c                     || j         _        | S rd   )ry   rI   )rf   rI   s     rh   rI   zGroupBuilder.effect_nows  r~   rj   rJ   c                     || j         _        | S rd   )ry   rJ   )rf   rJ   s     rh   rJ   zGroupBuilder.remedy_period_typew  r   rj   rK   c                     || j         _        | S rd   )ry   rK   )rf   rK   s     rh   rK   z&GroupBuilder.remedy_period_custom_date{  r   rj   rL   c                     || j         _        | S rd   )ry   rL   )rf   rL   s     rh   rL   zGroupBuilder.punch_type  r~   rj   rM   c                     || j         _        | S rd   )ry   rM   )rf   rM   s     rh   rM   zGroupBuilder.effect_time  r   rj   rN   c                     || j         _        | S rd   )ry   rN   )rf   rN   s     rh   rN   z!GroupBuilder.fixshift_effect_time  r   rj   rO   c                     || j         _        | S rd   )ry   rO   )rf   rO   s     rh   rO   zGroupBuilder.member_effect_time  r   rj   rP   c                     || j         _        | S rd   )ry   rP   )rf   rP   s     rh   rP   z(GroupBuilder.rest_clock_in_need_approval  r   rj   rQ   c                     || j         _        | S rd   )ry   rQ   )rf   rQ   s     rh   rQ   z GroupBuilder.clock_in_need_photo  r   rj   rR   c                     || j         _        | S rd   )ry   rR   )rf   rR   s     rh   rR   z!GroupBuilder.member_status_change  r   rj   rS   c                     || j         _        | S rd   )ry   rS   )rf   rS   s     rh   rS   zGroupBuilder.leave_need_punch  r   rj   rT   c                     || j         _        | S rd   )ry   rT   )rf   rT   s     rh   rT   z!GroupBuilder.leave_need_punch_cfg  r   rj   rU   c                     || j         _        | S rd   )ry   rU   )rf   rU   s     rh   rU   zGroupBuilder.go_out_need_punch  r   rj   rV   c                     || j         _        | S rd   )ry   rV   )rf   rV   s     rh   rV   z"GroupBuilder.go_out_need_punch_cfg  r   rj   rW   c                     || j         _        | S rd   )ry   rW   )rf   rW   s     rh   rW   zGroupBuilder.travel_need_punch  r   rj   rX   c                     || j         _        | S rd   )ry   rX   )rf   rX   s     rh   rX   z"GroupBuilder.travel_need_punch_cfg  r   rj   rY   c                     || j         _        | S rd   )ry   rY   )rf   rY   s     rh   rY   zGroupBuilder.need_punch_members  r   rj   rZ   c                     || j         _        | S rd   )ry   rZ   )rf   rZ   s     rh   rZ   z"GroupBuilder.no_need_punch_members  r   rj   r[   c                     || j         _        | S rd   )ry   r[   )rf   r[   s     rh   r[   zGroupBuilder.save_auto_changes  r   rj   r\   c                     || j         _        | S rd   )ry   r\   )rf   r\   s     rh   r\   z#GroupBuilder.org_change_auto_adjust  r   rj   r]   c                     || j         _        | S rd   )ry   r]   )rf   r]   s     rh   r]   z"GroupBuilder.bind_default_dept_ids  r   rj   r^   c                     || j         _        | S rd   )ry   r^   )rf   r^   s     rh   r^   z"GroupBuilder.bind_default_user_ids  r   rj   r_   c                     || j         _        | S rd   )ry   r_   )rf   r_   s     rh   r_   zGroupBuilder.overtime_clock_cfg  r   rj   r`   c                     || j         _        | S rd   )ry   r`   )rf   r`   s     rh   r`   zGroupBuilder.new_calendar_id  r   rj   ra   c                     || j         _        | S rd   )ry   ra   )rf   ra   s     rh   ra   zGroupBuilder.allow_apply_punch  r   rj   rb   c                     || j         _        | S rd   )ry   rb   )rf   rb   s     rh   rb   z'GroupBuilder.clock_in_abnormal_settings  r   rj   r   c                     | j         S rd   )ry   rz   s    rh   buildzGroupBuilder.build  s
    {rj   )rk   N)rk   r   )\rp   rq   rr   ri   rs   r   r   r   r   r   r   r   r    r!   r"   rt   r#   r$   r%   r&   r'   r(   r)   ru   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r   r>   r   r?   r@   r   rA   rB   rC   r   rD   rE   r   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   r   rR   rS   r   rT   rU   rV   rW   rX   r   rY   rZ   r[   r\   r]   r^   r   r_   r`   ra   r   rb   r   rn   rj   rh   rl   rl      sB
               S ^    3 >    49     tCy ^    49     tCy ^    c ~    c ~    t     t      R`    4 N     .    t P^    4 Tb         T n     .     .    S ^    4 N    s ~    T n    T n    t      .     .    T n    4 N    T n    T n    S ^    4 N    T n    4 N     Sa    g >    3 >    4> n    S ^    tCy ^    \ n    s ~    tDY?Z _m    TJ_E` es    4 N    T n    S ^    3 >    S ^    s ~         S ^    t P^    t     9K P^     .    9J ~    3 >    ;L Q_    3 >    ;L Q_    T+5F >    4;L Q_    4 N    T n    49     49     5E .    s ~    4 N    E\ ao         rj   rl   N)#typingr   r   r   r   r   r   r	   r
   r   lark_oapi.core.constructr   anti_cheat_configr   machiner   locationr   rD   r   punch_special_date_shiftr   rR   r   rT   r   punch_memberr   r_   r   rb   r   objectr   rl   rn   rj   rh   <module>r      s   M L L L L L L L L L L L L L L L L L L L L L ) ) ) ) ) ) . . . . . .             ( ( ( ( ( ( ; ; ; ; ; ; ; ; ; ; ; ; 4 4 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 % % % % % % % % % % % % 0 0 0 0 0 0 ? ? ? ? ? ?[ [ [ [ [F [ [ [|i i i i i6 i i i i irj   