diff --git a/src/const/ApiConst.js b/src/const/ApiConst.js index 1401b07..9c07bd7 100644 --- a/src/const/ApiConst.js +++ b/src/const/ApiConst.js @@ -125,7 +125,9 @@ 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}`; } - +export let BASE_SIMPRO_LUMEN_IMAGE_COMPANY = (file, company_name)=>{ + return `${BASE_OSPRO}/assets/${company_name}/image/${file}`; +} // switch (APP_MODE) { // case 'KIT': // BASE_OSPRO = "https://kit-api.oslogdev.com" @@ -300,6 +302,19 @@ export const REFFERAL_EDIT = (id) => { return `${BASE_SIMPRO_LUMEN}/refferal-code/update/${id}`; }; +export const TRANSACTION_ADD = `${BASE_SIMPRO_LUMEN}/product-transaction/add`; +export const TRANSACTION_SEARCH = `${BASE_SIMPRO_LUMEN}/product-transaction/search`; +export const TRANSACTION_GET_ID = (id) => { + return `${BASE_SIMPRO_LUMEN}/product-transaction/edit/${id}`; +}; +export const TRANSACTION_EDIT = (id) => { + return `${BASE_SIMPRO_LUMEN}/product-transaction/update/${id}`; +}; + +export const STORAGE_LIMIT_INFORMATION = (company_name) => { + return `${BASE_SIMPRO_LUMEN}/information-storage/${company_name}`; +}; + export const ABSENSI_ADD = `${BASE_SIMPRO_LUMEN}/permit/add`; export const ABSENSI_SEARCH = `${BASE_SIMPRO_LUMEN}/permit/search`; export const ABSENSI_EDIT = (id) => { @@ -733,12 +748,6 @@ export const ASSIGN_HR_PROJECT_DELETE = (id, company_id) => { }; export const ASSIGN_HR_PROJECT_LIST = `${BASE_SIMPRO_LUMEN}/user-to-proyek/list`; -export const IMAGE_GET_BY_ID = (id, category) => { - return `${BASE_SIMPRO_LUMEN}/image/${id}/${category}`; -}; -export const IMAGE_SEARCH = `${BASE_SIMPRO_LUMEN}/image/search`; -export const OSPRO_BASE_IMAGE = `${BASE_OSPRO}/api/assets/image`; - export const DASHBOARD_COST_PLANNING_ACTUAL = `${BASE_SIMPRO_LUMEN}/dashboard/cost-planning-actual`; export const DASHBOARD_PERSENTASE_PROGRESS_PROYEK = `${BASE_SIMPRO_LUMEN}/dashboard/percentage-planning-actual`; export const DASHBOARD_REPORT_POINTS = `${BASE_SIMPRO_LUMEN}/report-activity/search-point`; @@ -798,6 +807,11 @@ export const HIERARCHY_FTTH_COUNT_TREE = (id) => { export const WAYPOINT_SEARCH = `${BASE_SIMPRO_LUMEN}/waypoint/search`; +export const IMAGE_GET_BY_ID = (id, category) => { + return `${BASE_SIMPRO_LUMEN}/image/${id}/${category}`; +}; +export const IMAGE_SEARCH = `${BASE_SIMPRO_LUMEN}/image/search`; +export const OSPRO_BASE_IMAGE = `${BASE_OSPRO}/api/assets/image`; 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, company_id) => {