"""
Reports App URL Configuration
"""
from django.urls import path
from . import views

app_name = 'reports'

urlpatterns = [
    # Report Builder
    path('', views.report_builder, name='builder'),
    path('preview/', views.report_preview_api, name='preview_api'),
    path('save/', views.save_report, name='save_report'),
    
    # Saved Reports
    path('saved/', views.saved_reports_list, name='saved_reports'),
    path('saved/<uuid:report_id>/', views.report_detail, name='report_detail'),
    path('saved/<uuid:report_id>/delete/', views.delete_report, name='delete_report'),
    path('saved/<uuid:report_id>/export/<str:export_format>/', views.export_report, name='export_report'),
    
    # Templates
    path('templates/', views.report_templates, name='templates'),
    path('templates/<uuid:template_id>/use/', views.use_template, name='use_template'),
    
    # API Endpoints
    path('api/filter-options/', views.filter_options_api, name='filter_options_api'),
    path('api/fields/', views.available_fields_api, name='available_fields_api'),
]