from django.urls import path
from .views import (
    DocumentArchiveDownloadView,
    DocumentArchiveListView,
    DocumentAuditView,
    DocumentBatchExportView,
    DocumentBatchPrintView,
    DocumentDeliverView,
    DocumentDeliveryConfigView,
    DocumentDeliveryStatusView,
    DocumentExportJobDownloadView,
    DocumentExportJobsListView,
    DocumentExportView,
    DocumentNumberingView,
    DocumentPDFView,
    DocumentPortalDownloadView,
    DocumentPreviewView,
    DocumentPrintView,
    DocumentRecordDetailView,
    DocumentRecordListCreateView,
    DocumentSettingsView,
    DocumentTemplateCloneView,
    DocumentTemplateDetailView,
    DocumentTemplateListCreateView,
    DocumentTemplatePublishView,
    DocumentTemplateSubmitView,
    DocumentTypesListView,
)

urlpatterns = [
    path("types/", DocumentTypesListView.as_view(), name="doc-types"),
    path("templates/", DocumentTemplateListCreateView.as_view(), name="doc-templates"),
    path("templates/<uuid:pk>/", DocumentTemplateDetailView.as_view(), name="doc-template-detail"),
    path("templates/<uuid:pk>/submit/", DocumentTemplateSubmitView.as_view(), name="doc-template-submit"),
    path("templates/<uuid:pk>/publish/", DocumentTemplatePublishView.as_view(), name="doc-template-publish"),
    path("templates/<uuid:pk>/clone/", DocumentTemplateCloneView.as_view(), name="doc-template-clone"),
    path("records/", DocumentRecordListCreateView.as_view(), name="doc-records"),
    path("records/<uuid:pk>/", DocumentRecordDetailView.as_view(), name="doc-record-detail"),
    path("export/", DocumentExportView.as_view(), name="doc-export"),
    path("batch-print/", DocumentBatchPrintView.as_view(), name="doc-batch-print"),
    path("batch-export/", DocumentBatchExportView.as_view(), name="doc-batch-export"),
    path("jobs/", DocumentExportJobsListView.as_view(), name="doc-jobs"),
    path("jobs/<uuid:pk>/download/", DocumentExportJobDownloadView.as_view(), name="doc-job-download"),
    path("settings/", DocumentSettingsView.as_view(), name="doc-settings"),
    path("numbering/", DocumentNumberingView.as_view(), name="doc-numbering"),
    path("delivery-config/", DocumentDeliveryConfigView.as_view(), name="doc-delivery-config"),
    path("audit/", DocumentAuditView.as_view(), name="doc-audit"),
    path("archive/", DocumentArchiveListView.as_view(), name="doc-archive"),
    path("archive/<uuid:version_id>/download/", DocumentArchiveDownloadView.as_view(), name="doc-archive-download"),
    path("portal/<str:token>/", DocumentPortalDownloadView.as_view(), name="doc-portal-download"),
    path("<uuid:pk>/deliver/", DocumentDeliverView.as_view(), name="doc-deliver"),
    path("<uuid:pk>/delivery-status/", DocumentDeliveryStatusView.as_view(), name="doc-delivery-status"),
    path("<str:doc_type>/<str:source_id>/preview/", DocumentPreviewView.as_view(), name="doc-preview"),
    path("<str:doc_type>/<str:source_id>/pdf/", DocumentPDFView.as_view(), name="doc-pdf"),
    path("<str:doc_type>/<str:source_id>/print/", DocumentPrintView.as_view(), name="doc-print"),
]

