"""
URL patterns for analytics app.
"""
from django.urls import path
from . import views

urlpatterns = [
    # Data endpoints
    path('transactions/', views.TransactionListView.as_view(), name='transaction_list'),
    path('projects/', views.ProjectListView.as_view(), name='project_list'),
    path('brokers/', views.BrokerListView.as_view(), name='broker_list'),
    
    # Analytics endpoints
    path('transaction-summary/', views.transaction_summary, name='transaction_summary'),
    path('area-statistics/', views.area_statistics, name='area_statistics'),
    path('property-type-statistics/', views.property_type_statistics, name='property_type_statistics'),
    path('time-series/', views.time_series_data, name='time_series_data'),
    path('time-series-data/', views.get_time_series_data, name='get_time_series_data'),
    path('area-stats-data/', views.get_area_stats, name='get_area_stats'),
    path('market-analysis/', views.market_analysis, name='market_analysis'),
    
    # Sample data statistics endpoints
    path('broker-stats/', views.broker_statistics, name='broker_statistics'),
    path('project-stats/', views.project_statistics, name='project_statistics'),
    path('land-stats/', views.land_statistics, name='land_statistics'),
    path('valuation-stats/', views.valuation_statistics, name='valuation_statistics'),
    path('rent-stats/', views.rent_statistics, name='rent_statistics'),
    
    # Forecasting endpoints
    path('generate-forecast/', views.generate_forecast, name='generate_forecast'),
]

