from django.urls import path, re_path
from .views import *

urlpatterns = [
    path('jwt/create/', JWTCREATE.as_view()),
    path('jwt/refresh/', JWTREFRESH.as_view()),
    path('jwt/verify/', JWTVERIFY.as_view()),
    path('logout/', JWTLOGOUT.as_view()),

    path('change-password/', ChangePasswordView.as_view()),
    path('change-phone/', ChangePhoneNumberView.as_view()),
    path('user/get_full_name/', GetUserFullName.as_view()),
    path('user/update_full_name/', UpdateFullName.as_view()),
    path('user/getUserMe/', GetUserMe.as_view()),

    path('profile/details/', UserProfileDetailView.as_view(), name='profileDetail'),
    path('profile/update/', UserProfileCreateUpdateView.as_view(), name='profileUpdate'),

    path('addAgent/', AddAgentToOrganizationView.as_view(), name='AddAgentToOrganizationView'),
    path('removeAgent/<int:id>/', RemoveAgentFromOrganization.as_view(), name='RemoveAgentFromOrganization'),
    path('autocomplete_agent_emails/', autocomplete_agent_emails, name='autocomplete_agent_emails'),

    path('invitations/', list_invitations, name='list_invitations'),
    path('invitation/<int:invitation_id>/accept/', AcceptInvitationView.as_view(), name='accept-invitation'),
    path('invitation/<int:invitation_id>/reject/', RejectInvitationView.as_view(), name='reject-invitation'),

    path('all_agent_list/', all_agent_list, name='all_agent_list'),

    path('messageList/', MessagesListView.as_view(), name='message_list'),
    path('meet/', UserListsView.as_view(), name='users_list'),

    # path('conversation/', ConversationView.as_view(), name='conversation-view'),
    # path('conversations/', ConversationListView.as_view(), name='conversation-list'),
    # path('send-message/', SendMessageView.as_view(), name='send-message'),
    path('inbox/<str:id>/', InboxView.as_view(), name='inbox'),
    path('getAgentProfile/<int:id>',getAgentProfile,name="getAgentProfile"),
    path('getOrganizationProfile/<int:id>',getOrganizationProfile,name="getOrganizationProfile"),

    path('update-profile-picture/', UserProfilePictureUpdateView.as_view(), name='update_profile_picture'),
    path('agentDetails/<str:id>/', agentDetails, name='agentDetails'),
    path('wallet/', get_wallet, name='get_wallet'),
    path('wallet/add-funds/', add_funds, name='add_funds'),
    path('subscriptions/packages/', list_subscription_packages, name='list_packages'),
    path('subscriptions/subscribe/', subscribe_package, name='subscribe_package'),
    path('subscriptions/my/', my_subscriptions, name='my_subscriptions'),
    path('wallet/transactions/', wallet_transaction_history, name='wallet_transactions'),
    path('subscriptions/active/', check_active_subscription, name='check_active_subscription'),
    path('wallet/stripe/create-session/', create_stripe_session, name='stripe_create_session'),
    path('wallet/stripe/success/', stripe_payment_success, name='stripe_payment_success'),
    path('wallet/paypal/create-payment/', create_paypal_payment, name='paypal_create_payment'),
    path('wallet/paypal/success/', paypal_payment_success, name='paypal_payment_success'),
    path('organizations/connected/', ConnectedOrganizationsView.as_view(), name='connected_organizations'),
    path('validate-coupon/', validate_coupon, name='validate-coupon'),
    path('subscribe-with-coupon/', subscribe_with_coupon, name='subscribe-with-coupon'),
    path('my-connected-agents/', my_connected_agents, name='my_connected_agents'),
    path('verification/status/', verification_status),
    path('verification/fee/', verification_fee),
    path('verification/discount/', verification_discount),
    path('verification/submit/', submit_verification),
    path('verification/paypal/create/', verification_paypal_create),
    path('verification/paypal/renew/', verification_paypal_renew),
    path('verification/paypal/success/', verification_paypal_success),
    path('verification/resubmit/<int:verification_id>/', resubmit_rejected_verification, name='resubmit_rejected_verification'),
    path('subscription-packages/', subscription_package_list, name='subscription-package-list'),
    path('profile-information/<int:user_id>/', profile_information_view, name='profile-information'),
    path('property/paypal/create-addon-payment/', property_paypal_create_addon_payment, name='property_paypal_create_addon_payment'),
    path('property/paypal/confirm-addon-payment/', property_paypal_confirm_addon_payment, name='property_paypal_confirm_addon_payment'),
    path('my_subscription/', my_subscription, name='my_subscription'),
]