ManagementSystem/FRONTEND/src/api/Admin.ts

69 lines
3.0 KiB
TypeScript
Executable File

const API_URL = import.meta.env.VITE_BACKEND_URL + 'api/'
export const getDetailUser = API_URL + 'v1/admin/detail'
// General setting
export const updateGeneralSetting = API_URL + 'v1/admin/setting'
export const getGeneralSetting = API_URL + 'v1/admin/setting'
export const clearCacheAPI = API_URL + 'v1/admin/setting/clear-cache'
// Packages
export const createPackage = API_URL + 'v1/admin/package/create'
export const getAllPackage = API_URL + 'v1/admin/package/all'
export const updatePackage = API_URL + 'v1/admin/package/update'
export const deletePackage = API_URL + 'v1/admin/package/delete'
// Custom theme setting
export const getCustomTheme = API_URL + 'v1/admin/custom-theme'
export const updateCustomTheme = API_URL + 'v1/admin/custom-theme'
// Discounts
export const getDiscounts = API_URL + 'v1/admin/discount/get'
export const getDiscountType = API_URL + 'v1/admin/discount-type/all'
export const createDiscount = API_URL + 'v1/admin/discount/create'
export const updateDiscount = API_URL + 'v1/admin/discount/update'
export const deleteDiscount = API_URL + 'v1/admin/discount/delete'
// Client
export const getClients = API_URL + 'v1/admin/client/get'
export const getCountry = API_URL + 'v1/admin/h-country'
export const addUser = API_URL + 'v1/admin/client/create'
export const updateUser = API_URL + 'v1/admin/client/update'
// Banners
export const getBanners = API_URL + 'v1/admin/banner/all'
export const createBanner = API_URL + 'v1/admin/banner/create'
export const updateBanner = API_URL + 'v1/admin/banner/update'
export const deleteBanner = API_URL + 'v1/admin/banner/delete'
// Orders
export const getOrders = API_URL + 'v1/admin/order/get'
export const updateOrder = API_URL + 'v1/admin/order/update'
// CheckHistory
export const getCheckHistory = API_URL + 'v1/admin/sn-check-history/get'
export const getDetailCheckById = API_URL + 'v1/admin/sn-check-history/show-detail'
// Contacts
export const getContacts = API_URL + 'v1/admin/contact/get'
// Dashboard
export const getDashboard = API_URL + 'v1/admin/dashboard/get'
export const statisticSearchSNByMonth = API_URL + 'v1/admin/dashboard/statistics-search-sn-by-month'
export const statisticRevenuesByMonth = API_URL + 'v1/admin/dashboard/statistics-revenues-by-month'
// Tracking
export const getListTracking = API_URL + 'v1/admin/tracking'
export const addTracking = API_URL + 'v1/admin/tracking/create'
export const updateTracking = API_URL + 'v1/admin/tracking/update'
export const deleteTracking = API_URL + 'v1/admin/tracking/delete'
// Worklogs
export const fetchAllIssues = API_URL + 'v1/admin/jira/fetch-issues'
export const exportIssues = API_URL + 'v1/admin/jira/export-issues'
export const getAllProjects = API_URL + 'v1/admin/jira/all-project'
export const getAllIssuesByProject = API_URL + 'v1/admin/jira/all-issue-by-project'
export const getAllUserWorklogs = API_URL + 'v1/admin/jira/worklogs'
//Timekeeping
export const getTheTimesheet = API_URL + 'v1/admin/timekeeping'
export const updateMultipleUserWorkingTime = API_URL + 'v1/admin/timekeeping/addMutilple'