
    i?1i4
                        d dl mZ d dlmZ d dlmZ d dlmZmZ d dl	m
Z
 d dlmZmZ e G d de             Ze G d	 d
e             Zy)    )annotations)Any)ListPage)ignore_docsparse_date_fields)
pluck_data)
BaseClientBaseClientAsyncc                  <    e Zd ZdZddZddZ	 	 d	 	 	 	 	 	 	 d	dZy)
ResourceCollectionClientz>Base class for sub-clients manipulating a resource collection.c           	         | j                   j                  | j                         d | j                  di |      }t	        t        t        |j                                           S NGET)urlmethodparams http_clientcall_url_paramsr   r   r   jsonselfkwargsresponses      ~/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/apify_client/clients/base/resource_collection_client.py_listzResourceCollectionClient._list   sX    ##((		4<<)&) ) 
 )*X]]_*EFGG    c                    | j                   j                  | j                         d| j                         |      }t	        t        |j                                     S NPOSTr   r   r   r   r   r   r   r   r   r   r   r   resourcer   s      r   _createz ResourceCollectionClient._create   sM    ##((		<<>	 ) 
 !HMMO!<==r    Nc                    | j                   j                  | j                         d| j                  |      |      }t	        t        |j                                     S Nr#   )namer$   r%   r   r+   r'   r   s       r   _get_or_createz'ResourceCollectionClient._get_or_create#   sT    
 ##((		<<T<*	 ) 
 !HMMO!<==r    )r   r   r   r   returnr   )r   r   r'   dictr.   r/   NN)r   r   r+   
str | Noner'   dict | Noner.   r/   __name__
__module____qualname____doc__r   r(   r-   r   r    r   r   r      sA    HH>   $>&>> > 
	>r    r   c                  <    e Zd ZdZddZddZ	 	 d	 	 	 	 	 	 	 d	dZy)
ResourceCollectionClientAsynczDBase class for async sub-clients manipulating a resource collection.c           	        K   | j                   j                  | j                         d | j                  di |       d {   }t	        t        t        |j                                           S 7 /wr   r   r   s      r   r   z#ResourceCollectionClientAsync._list6   sf     ))..		4<<)&) / 
 
 )*X]]_*EFGG
s   A A4A20A4c                   K   | j                   j                  | j                         d| j                         |       d {   }t	        t        |j                                     S 7 &wr"   r%   r&   s      r   r(   z%ResourceCollectionClientAsync._create?   s[     ))..		<<>	 / 
 
 !HMMO!<==
s   ?A*A('A*Nc                   K   | j                   j                  | j                         d| j                  |      |       d {   }t	        t        |j                                     S 7 &wr*   r%   r,   s       r   r-   z,ResourceCollectionClientAsync._get_or_createI   sb     
 ))..		<<T<*	 / 
 
 !HMMO!<==
s   AA,A*'A,)r   r9   r   r   r.   r   )r   r9   r'   r/   r.   r/   r0   )r   r9   r+   r1   r'   r2   r.   r/   r3   r   r    r   r9   r9   2   sA    NH>   $>+>> > 
	>r    r9   N)
__future__r   typingr   apify_shared.modelsr   apify_shared.utilsr   r   apify_client._utilsr   %apify_client.clients.base.base_clientr	   r
   r   r9   r   r    r   <module>rC      sN    "  ( = * M ">z "> ">J ">O "> ">r    