
    V
h                        S SK JrJrJr  S SKJr  S SKJrJr  SSK	J
r
  \" 5       r " S S\5      r " S S	\5      r " S
 S\5      r " S S\5      r\R!                  S5      SS\S\4S jj5       r\R'                  S\S9S\4S j5       r\R!                  S\S9S\4S j5       r\R-                  S\S9S\S\4S j5       r\R1                  S5      S\4S j5       rg)    )	APIRouterDependsHTTPException)	BaseModel)ListUnion   )get_current_userc                   >    \ rS rSr% \\S'   \\S'   \\S'   \\S'   Srg)IntegrationBase
   namedescriptionlogo_urlsetup_instructions N)__name__
__module____qualname____firstlineno__str__annotations____static_attributes__r       QC:\Suresh\moveshuttle\MDcreated\moveengine\app\v1\routers\platform\marketplace.pyr   r   
   s    
IMr   r   c                       \ rS rSrSrg)IntegrationCreate   r   Nr   r   r   r   r   r   r   r   r   r          r   r   c                   4    \ rS rSr% \\S'    " S S5      rSrg)Integration   integration_idc                       \ rS rSrSrSrg)Integration.Config   Tr   N)r   r   r   r   orm_moder   r   r   r   Configr&      s    r   r)   r   N)r   r   r   r   intr   r)   r   r   r   r   r"   r"      s     r   r"   c                       \ rS rSrSrg)IntegrationUpdate   r   Nr   r   r   r   r,   r,      r    r   r,   /skiplimitc           	      h   #    [        X U-   5       Vs/ s H  o"SU 3SU 3SSS.PM     sn$ s  snf 7f)z List all available integrations.integration_desc_/path/to/logoFollow these steps...r$   r   r   r   r   )range)r/   r0   is      r   list_integrationsr9      sy      pu  vz  CH  |H  pI  J  pI  klL*<uUVTW[fu  Ne  f  pI  J  J  Js   2-2)response_modelintegrationc                 6   #    0 U R                  5       ESS0E$ 7f)z)Add a new integration to the marketplace.r$   {   dict)r;   s    r   add_integrationr@   $   s#     
 9k 8"2C88   z/{integration_id}r$   c                 &   #    U SU  3SU  3SSS.$ 7f)z+Retrieve details of a specific integration.r2   r3   r4   r5   r6   r   r$   s    r   read_integrationrD   +   s:      -^DT6Uhmn|m}f~  M\  tK  L  Ls   c                 6   #    0 UR                  5       ESU 0E$ 7f)z)Update details of a specific integration.r$   r>   )r$   r;   s     r   update_integrationrF   1   s$      Dk C"2NCCrA   c                    #    SSU  S3S.$ 7f)z3Remove a specific integration from the marketplace.successzIntegration z removed successfully)statusmessager   rC   s    r   remove_integrationrK   7   s       l>:JJ_,`aas   
N)r   r   )fastapir   r   r   pydanticr   typingr   r   dependenciesr
   routerr   r   r"   r,   getr*   r9   postr@   rD   putrF   deleterK   r   r   r   <module>rU      s+   5 5   *	i 	 	/ 	 	
 CJ# J# J J
 S-9'8 9 .9 <L3 L =L
 <DS D?P D =D
 "#bS b $br   