from django.urls import path

from api_v2.views import (
    HealthCheckView,
    QuickCreateEmployeeUserView,
    RoleListView,
    PrintingJobByCustomerView,
    PrintingJobBatchAdvancePreviewView,
    PrintingJobBatchAdvanceSubmitView,
    PrintingJobBatchAddParametersView,
    PlateOrderByProcessNodeView,
    PlateOrderByProcessView,
    PlateOrderByStateStatusView,
    PlateOrderBatchUpdateView,
    PrintingOrderBatchAdvanceRecordsView,
    BusinessObjectCloneView,
)
from api_v2.views.basic_info import CustomerEmployeeBindingView, MyVisiblePagesView

urlpatterns = [
    path('health/', HealthCheckView.as_view(), name='api_v2_health_check'),
    path('roles/', RoleListView.as_view(), name='api_v2_role_list'),
    path('users/quick-create/', QuickCreateEmployeeUserView.as_view(), name='api_v2_user_quick_create'),
    path('customers/bind-employee/', CustomerEmployeeBindingView.as_view(), name='api_v2_customer_bind_employee'),
    path('me/visible-pages/', MyVisiblePagesView.as_view(), name='api_v2_my_visible_pages'),
    path('printing-jobs/by-customer/', PrintingJobByCustomerView.as_view(), name='api_v2_printing_job_by_customer'),
    path('printing-jobs/batch-advance/preview/', PrintingJobBatchAdvancePreviewView.as_view(), name='api_v2_printing_job_batch_advance_preview'),
    path('printing-jobs/batch-advance/', PrintingJobBatchAdvanceSubmitView.as_view(), name='api_v2_printing_job_batch_advance_submit'),
    path('printing-jobs/batch-add-parameters/', PrintingJobBatchAddParametersView.as_view(), name='api_v2_printing_job_batch_add_parameters'),
    path('printing-orders/<int:printing_order_id>/batch-advance-records/', PrintingOrderBatchAdvanceRecordsView.as_view(), name='api_v2_printing_order_batch_advance_records'),
    path('plate-orders/by-process-node/', PlateOrderByProcessNodeView.as_view(), name='api_v2_plate_order_by_process_node'),
    path('plate-orders/by-process/', PlateOrderByProcessView.as_view(), name='api_v2_plate_order_by_process'),
    path('plate-orders/by-state-status/', PlateOrderByStateStatusView.as_view(), name='api_v2_plate_order_by_state_status'),
    path('plate-orders/batch-update/', PlateOrderBatchUpdateView.as_view(), name='api_v2_plate_order_batch_update'),
    path('stateflow/business-objects/clone/', BusinessObjectCloneView.as_view(), name='api_v2_stateflow_business_object_clone'),
]

