diff --git a/src/const/ApiConst.js b/src/const/ApiConst.js index f8ef23b..8d48366 100644 --- a/src/const/ApiConst.js +++ b/src/const/ApiConst.js @@ -122,6 +122,9 @@ export let BASE_OSPRO = "http://localhost:8444/generic-ospro-backend"; export let BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`; export let BASE_SIMPRO_LUMEN_IMAGE = `${BASE_OSPRO}/assets/image`; export let BASE_SIMPRO_LUMEN_FILE = `${BASE_OSPRO}/assets/file/project`; +export let BASE_SIMPRO_LUMEN_FILE_COMPANY = (file, company_name)=>{ + return `${BASE_OSPRO}/assets/${company_name}/file/project/${file}`; +} // switch (APP_MODE) { // case 'KIT': @@ -281,6 +284,10 @@ export const USER_DELETE = (id) => { return `${BASE_SIMPRO_LUMEN}/human-resource/delete/${id}`; }; +export const HUMAN_RESOURCE_LIST = `${BASE_SIMPRO_LUMEN}/human-resource` +export const USER_TO_ACTIVITY_ADD = `${BASE_SIMPRO_LUMEN}/user-to-activity/add` +export const USER_TO_ACTIVITY_DELETE = (id) => { return `${BASE_SIMPRO_LUMEN}/user-to-activity/delete/${id}` } + export const ABSENSI_ADD = `${BASE_SIMPRO_LUMEN}/permit/add`; export const ABSENSI_SEARCH = `${BASE_SIMPRO_LUMEN}/permit/search`; export const ABSENSI_EDIT = (id) => { @@ -307,11 +314,11 @@ export const DOCUMENT_SEARCH = `${BASE_SIMPRO_LUMEN}/document-project/search`; export const DOCUMENT_EDIT = (id) => { return `${BASE_SIMPRO_LUMEN}/document-project/update/${id}`; }; -export const DOCUMENT_DELETE = (id) => { - return `${BASE_SIMPRO_LUMEN}/document-project/delete/${id}`; +export const DOCUMENT_DELETE = (id, company_id) => { + return `${BASE_SIMPRO_LUMEN}/document-project/delete/${id}/${company_id}`; }; -export const DOCUMENT_DOWNLOAD = (id) => { - return `${BASE_SIMPRO_LUMEN}/document-project/download/${id}`; +export const DOCUMENT_DOWNLOAD = (id, company_id) => { + return `${BASE_SIMPRO_LUMEN}/document-project/download/${id}/${company_id}`; }; export const ROLE_ADD = `${BASE_SIMPRO_LUMEN}/role/add`; @@ -423,8 +430,8 @@ export const PROYEK_GET_ID = (id) => { export const PROYEK_EDIT = (id) => { return `${BASE_SIMPRO_LUMEN}/project/update/${id}`; }; -export const PROYEK_DELETE = (id) => { - return `${BASE_SIMPRO_LUMEN}/project/delete/${id}`; +export const PROYEK_DELETE = (id, company_id) => { + return `${BASE_SIMPRO_LUMEN}/project/delete/${id}/${company_id}`; }; export const PROJECT_ROLE_ADD = `${BASE_SIMPRO_LUMEN}/project-role/add`; @@ -576,6 +583,15 @@ export const DIVISI_DELETE = (id) => { }; export const DIVISI_LIST = `${BASE_SIMPRO_LUMEN}/divisi/list`; +export const KANBAN_BOARD_LIST = `${BASE_SIMPRO_LUMEN}/kanban-board/list` +export const KANBAN_BOARD_ADD = `${BASE_SIMPRO_LUMEN}/kanban-board/add` +export const KANBAN_BOARD_EDIT = (id) => { return `${BASE_SIMPRO_LUMEN}/kanban-board/update/${id}` } +export const KANBAN_BOARD_DELETE = (id) => { return `${BASE_SIMPRO_LUMEN}/kanban-board/delete/${id}` } + +export const KANBAN_CARD_LIST = `${BASE_SIMPRO_LUMEN}/kanban-card/get-data` +export const KANBAN_CARD_ADD = `${BASE_SIMPRO_LUMEN}/task` +export const KANBAN_CARD_EDIT = (id) => { return `${BASE_SIMPRO_LUMEN}/kanban-card/update/${id}` } + export const SHIFT_ADD = `${BASE_SIMPRO_LUMEN}/shift/add`; export const SHIFT_SEARCH = `${BASE_SIMPRO_LUMEN}/shift/search`; export const SHIFT_EDIT = (id) => { @@ -700,8 +716,8 @@ export const ASSIGN_HR_PROJECT_SEARCH = `${BASE_SIMPRO_LUMEN}/user-to-proyek/sea export const ASSIGN_HR_PROJECT_EDIT = (id) => { return `${BASE_SIMPRO_LUMEN}/user-to-proyek/update/${id}`; }; -export const ASSIGN_HR_PROJECT_DELETE = (id) => { - return `${BASE_SIMPRO_LUMEN}/user-to-proyek/delete/${id}`; +export const ASSIGN_HR_PROJECT_DELETE = (id, company_id) => { + return `${BASE_SIMPRO_LUMEN}/user-to-proyek/delete/${id}/${company_id}`; }; export const ASSIGN_HR_PROJECT_LIST = `${BASE_SIMPRO_LUMEN}/user-to-proyek/list`; @@ -772,11 +788,11 @@ export const WAYPOINT_SEARCH = `${BASE_SIMPRO_LUMEN}/waypoint/search`; export const IMAGE_UPLOAD = `${BASE_SIMPRO_LUMEN}/image/upload`; export const IMAGE_MULTIPLE_UPLOAD = `${BASE_SIMPRO_LUMEN}/image/multiple-upload`; -export const IMAGE_MULTIPLE_DELETE = (id, category) => { - return `${BASE_SIMPRO_LUMEN}/image/multiple-delete/${id}/${category}`; +export const IMAGE_MULTIPLE_DELETE = (id, category, company_id) => { + return `${BASE_SIMPRO_LUMEN}/image/multiple-delete/${id}/${category}/${company_id}`; } -export const IMAGE_DELETE = (id, category) => { - return `${BASE_SIMPRO_LUMEN}/image/delete/${id}/${category}`; +export const IMAGE_DELETE = (id, category, company_id) => { + return `${BASE_SIMPRO_LUMEN}/image/delete/${id}/${category}/${company_id}`; }