from django.urls import path

from apps.user.views.UserViews import UserLoginAPIView, UserPermissionAPIView, UserProfileUpdateAPIView,ChangePasswordAPIView, UserDetailAPIView
from apps.user.views.AdminDashboardViews import SpentHoursDashboardAPIView, MostUsedActivityTypeDashboardAPIView, YesterdayActiveUsersDashboardAPIView,\
TopEmployeesMaxHoursAPIView, TopEmployeesMinHoursAPIView, DashboardTotalsAPIView, EmployeesHoursAPIView
from apps.user.views.RoleViews import RoleListAPIView, RoleCreateAPIView



urlpatterns = [
    path('/login', UserLoginAPIView.as_view(), name='users.login'),
    path('/permissions', UserPermissionAPIView.as_view(), name='users.permissions'),
    path('/update-profile', UserProfileUpdateAPIView.as_view(), name='users.update_profile'),
    path('/change-password', ChangePasswordAPIView.as_view(), name='users.change_password'),
    path('/<int:pk>', UserDetailAPIView.as_view()),

    path('/role', RoleListAPIView.as_view(), name='roles.list'),
    path('/create-role', RoleCreateAPIView.as_view(), name='roles.list'),

    path('/admin-dashboard/project-spent-hours', SpentHoursDashboardAPIView.as_view()),
    path('/admin-dashboard/most-used-activity-types', MostUsedActivityTypeDashboardAPIView.as_view()),
    path('/admin-dashboard/yesterday-active-users', YesterdayActiveUsersDashboardAPIView.as_view()),
    path('/admin-dashboard/totals', DashboardTotalsAPIView.as_view()),
    path('/admin-dashboard/top-employees-max-hours', TopEmployeesMaxHoursAPIView.as_view()),
    path('/admin-dashboard/top-employees-min-hours', TopEmployeesMinHoursAPIView.as_view()),
    path('/admin-dashboard/employees-hours', EmployeesHoursAPIView.as_view()),

]
