
    -j=                         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  G d de          Z G d	 d
e          ZdS )    )	AnyOptionalUnionDictListSetIOCallableType)init   )NotificationUser)NotificationDepartment)NotificationChatc                       e Zd Z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e         dee         ee         ee         edZ	ddZ
edd            ZdS )Notificationidjob_namestatuscreate_user
created_atupdate_user
updated_attarget_user_countsent_user_countread_user_countsend_atpush_content	push_typepush_scope_typenew_staff_scope_typenew_staff_scope_department_list	user_list)department_list	chat_listextNc                 J   d | _         d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _	        d | _
        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        t)          | || j                   d S N)r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r   _types)selfds     m/usr/local/lib/hermes-agent/venv/lib/python3.11/site-packages/lark_oapi/api/helpdesk/v1/model/notification.py__init__zNotification.__init__%   s    !%'+%)7;)-7;)-04.2.2&*+/(,.237!W[,;?GK;?"&T1dk"""""    returnNotificationBuilderc                      t                      S r(   )r0    r.   r,   builderzNotification.builder<   s    "$$$r.   r(   )r/   r0   )__name__
__module____qualname__strintr   r   r   r   r)   r-   staticmethodr3   r2   r.   r,   r   r      sK       cC 	# 	'	
 	c 	' 	c 	S 	3 	3 	3 	 	S 	3 	  	*40F+G!" 	T*+#$   67*+)  F.# # # #. % % % \% % %r.   r   c                      e Zd Zd.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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dd fd+Zd/d-ZdS )0r0   r/   Nc                 ,    t                      | _        d S r(   )r   _notificationr*   s    r,   r-   zNotificationBuilder.__init__B   s    )^^r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   zNotificationBuilder.idE   s     "r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   zNotificationBuilder.job_nameI   s    &.#r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   zNotificationBuilder.statusM   s    $*!r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   zNotificationBuilder.create_userQ       )4&r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   zNotificationBuilder.created_atU       (2%r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   zNotificationBuilder.update_userY   rB   r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   zNotificationBuilder.updated_at]   rD   r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   z%NotificationBuilder.target_user_counta   s    /@,r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   z#NotificationBuilder.sent_user_counte       -<*r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   z#NotificationBuilder.read_user_counti   rI   r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   zNotificationBuilder.send_atm   s    %,"r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   z NotificationBuilder.push_contentq   s    *6'r.   r   c                     || j         _        | S r(   )r<   r   )r*   r   s     r,   r   zNotificationBuilder.push_typeu       '0$r.   r    c                     || j         _        | S r(   )r<   r    )r*   r    s     r,   r    z#NotificationBuilder.push_scope_typey   rI   r.   r!   c                     || j         _        | S r(   )r<   r!   )r*   r!   s     r,   r!   z(NotificationBuilder.new_staff_scope_type}   s    2F/r.   r"   c                     || j         _        | S r(   )r<   r"   )r*   r"   s     r,   r"   z3NotificationBuilder.new_staff_scope_department_list   s    =\:r.   r#   c                     || j         _        | S r(   )r<   r#   )r*   r#   s     r,   r#   zNotificationBuilder.user_list   rN   r.   r$   c                     || j         _        | S r(   )r<   r$   )r*   r$   s     r,   r$   z#NotificationBuilder.department_list   rI   r.   r%   c                     || j         _        | S r(   )r<   r%   )r*   r%   s     r,   r%   zNotificationBuilder.chat_list   rN   r.   r&   c                     || j         _        | S r(   )r<   r&   )r*   r&   s     r,   r&   zNotificationBuilder.ext   s    !$r.   r   c                     | j         S r(   )r<   r=   s    r,   buildzNotificationBuilder.build   s    !!r.   )r/   N)r/   r   )r4   r5   r6   r-   r7   r   r   r8   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r   r   r"   r#   r$   r   r%   r&   rW   r2   r.   r,   r0   r0   A   s       , , , ,S 2     )>    S %:    '7 <Q    S -B    '7 <Q    S -B    3 ;P    s 7L    s 7L    s '<     1F    3 +@    s 7L     AV    tP  $9   
4(8#9 >S    t4J/K Pe    4(8#9 >S    s 4    " " " " " "r.   r0   N)typingr   r   r   r   r   r   r	   r
   r   lark_oapi.core.constructr   notification_userr   notification_departmentr   notification_chatr   objectr   r0   r2   r.   r,   <module>r^      s1   M L L L L L L L L L L L L L L L L L L L L L ) ) ) ) ) ) / / / / / / / / / / / / ; ; ; ; ; ; / / / / / / ; ; ; ; ; ; / / / / / /1% 1% 1% 1% 1%6 1% 1% 1%hV" V" V" V" V"& V" V" V" V" V"r.   