ManagementSystem/FRONTEND/src/api/Admin.ts

99 lines
4.2 KiB
TypeScript
Executable File

const API_URL = import.meta.env.VITE_BACKEND_URL + 'api/'
export const getDetailUser = API_URL + 'v1/admin/detail'
// 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'
export const getAllUserDoing = API_URL + 'v1/admin/jira/allocation'
export const getDetailIssByKey = API_URL + 'v1/admin/jira/issue/detail'
//Timekeeping
export const getTheTimesheet = API_URL + 'v1/admin/timekeeping'
export const exportTimekeeping = API_URL + 'v1/admin/timekeeping/export'
export const updateMultipleUserWorkingTime =
API_URL + 'v1/admin/timekeeping/addMutilple'
export const updateNote = API_URL + 'v1/admin/timekeeping/addNote'
export const deleteNote = API_URL + 'v1/admin/timekeeping/delete'
export const updateCacheMonth =
API_URL + 'v1/admin/timekeeping/update-cache-month'
export const updateWorkingDays =
API_URL + 'v1/admin/timekeeping/update-working-days'
//Category
export const getListMaster = API_URL + 'v1/admin/category/get-list-master'
//LeaveManagement
export const getLeaveManagement = API_URL + 'v1/admin/leave-management'
export const updateNoteLeave =
API_URL + 'v1/admin/leave-management/saveNoteLeave'
export const exportLeaveManagement = API_URL + 'v1/admin/leave-management/export'
//Tickets
export const getTickets = API_URL + 'v1/admin/ticket/all'
export const getTicketsOfUser = API_URL + 'v1/admin/ticket/getByUserId'
export const deleteTicket = API_URL + 'v1/admin/ticket/delete'
export const addTicket = API_URL + 'v1/admin/ticket/create'
export const handleTicket = API_URL + 'v1/admin/ticket/handle-ticket'
//Users
export const getAllUsers = API_URL + 'v1/users'
export const createOrUpdateUser = API_URL + 'v1/users/createOrUpdate'
export const deleteUser = API_URL + 'v1/users/delete'
export const getQRCode = API_URL + 'v1/users/qrcode'
//SprintReview
export const getAllCriteriasBySprint = API_URL + 'v1/admin/criterias/sprints'
export const getAllProject = API_URL + 'v1/admin/jira/all-project'
export const getAllBoardByIdProject =
API_URL + 'v1/admin/jira/get-all-board-by-id-project'
export const getDetailProjectById =
API_URL + 'v1/admin/jira/get-detail-project-by-id'
export const getAllSprintByIdBoard =
API_URL + 'v1/admin/jira/get-all-sprint-by-id-board'
export const getAllIssuesByIdSprint =
API_URL + 'v1/admin/jira/get-all-issue-by-id-sprint'
export const updateSprintReview = API_URL + 'v1/admin/criterias/sprints'
//TestReport
export const getAllTestCase = API_URL + 'v1/admin/criterias/test-cases/getAll'
export const deleteTestCase = API_URL + 'v1/admin/criterias/test-cases/delete'
export const createTestCase = API_URL + 'v1/admin/criterias/test-cases'
//Profile
export const getProfilesData = API_URL + 'v1/admin/criterias/profiles-data'
export const updateProfilesData =
API_URL + 'v1/admin/criterias/profiles-data/update'
export const listUserTechnical = API_URL + 'v1/admin/technical/get-tech-of-user'
export const updateUserTechnical = API_URL + 'v1/admin/technical/technicals-user/update'
export const getAllUser = API_URL + 'v1/admin/technical/get-all-user'
export const getAllTechByUserId =
API_URL + 'v1/admin/technical/get-tech-by-user-id'
export const evaluation = API_URL + 'v1/admin/evaluation/report'
export const sprintReview = API_URL + 'v1/admin/evaluation/sprint-review'
export const getAllFilesInProfiles = API_URL + 'v1/admin/profile/all-files'
export const updateProfileFolder = API_URL + 'v1/admin/profile/update-profile'
export const deleteFile = API_URL + 'v1/admin/profile/delete-profile-file'
//Technical
export const listTechnical = API_URL + 'v1/admin/technical/get-all'
export const createTechnical = API_URL + 'v1/admin/technical/create'
export const deleteTechnical = API_URL + 'v1/admin/technical/delete'