removed unused imports & watch case on adv search
This commit is contained in:
+39
-29
@@ -260,7 +260,7 @@ export const getSearchDocumentDetails = (incidentID) => {
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -274,7 +274,7 @@ export const getSearchDocumentDetailsPaged = (incidentID, pageNumber) => {
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -288,7 +288,7 @@ export const getSearchDocumentHistory = (documentID) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -304,14 +304,15 @@ export const getSearchDocumentHistoryPaged = (documentID, pageNumber) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
export const getLinkedCases = (parentIncidentid) => {
|
||||
return axios
|
||||
.get(
|
||||
"/api/endpoint/getlinkedcases_api?parentincidentid=" +
|
||||
BASE_URL +
|
||||
"/api/endpoint/getlinkedcases_api?parentincidentid=" +
|
||||
parentIncidentid
|
||||
)
|
||||
.then((res) => {
|
||||
@@ -319,7 +320,7 @@ export const getLinkedCases = (parentIncidentid) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -361,46 +362,56 @@ export const getLPA = () => {
|
||||
|
||||
export const getFormData = (whichForm) => {
|
||||
return axios
|
||||
.get("/api/endpoint/getformdata_api?whichForm=" + whichForm)
|
||||
.get(BASE_URL + "/api/endpoint/getformdata_api?whichForm=" + whichForm)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
export const getMandatoryFields = (whichForm) => {
|
||||
return axios
|
||||
.get("/api/endpoint/getmandatoryfields_api?whichForm=" + whichForm)
|
||||
.get(
|
||||
BASE_URL +
|
||||
"/api/endpoint/getmandatoryfields_api?whichForm=" +
|
||||
whichForm
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
export const getPickLists = (whichForm) => {
|
||||
return axios
|
||||
.get("/api/endpoint/getpicklists_api?whichForm=" + whichForm)
|
||||
.get(BASE_URL + "/api/endpoint/getpicklists_api?whichForm=" + whichForm)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
export const getPersonalAccount = (contactid) => {
|
||||
console.log(contactid);
|
||||
return axios
|
||||
.get("/api/endpoint/getpersonalaccount_api?contactid=" + contactid)
|
||||
.get(
|
||||
BASE_URL +
|
||||
"/api/endpoint/getpersonalaccount_api?contactid=" +
|
||||
contactid
|
||||
)
|
||||
.then((res) => {
|
||||
console.log(res.data);
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
let ErrResponse = {
|
||||
value: [],
|
||||
errorCode: error.response.status,
|
||||
errorMsg: error.response.statusText,
|
||||
};
|
||||
console.log("returned:", error);
|
||||
// let ErrResponse = {
|
||||
// value: [],
|
||||
// errorCode: error.response.status,
|
||||
// errorMsg: error.response.statusText,
|
||||
// };
|
||||
|
||||
return ErrResponse;
|
||||
// return ErrResponse;
|
||||
});
|
||||
};
|
||||
|
||||
@@ -423,7 +434,7 @@ export const getAppealID = (
|
||||
return appealID;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("thi serror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -437,7 +448,7 @@ export const getLogin = (emailAddress, pwd) => {
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -454,7 +465,7 @@ export const createCase = (appealTypeId, lpaID, contactid) => {
|
||||
|
||||
var config = {
|
||||
method: "post",
|
||||
url: queryUrl,
|
||||
url: BASE_URL + queryUrl,
|
||||
};
|
||||
|
||||
return axios(config)
|
||||
@@ -477,7 +488,7 @@ export const getMyCases = (loggedInUserId) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("thi serror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -562,7 +573,7 @@ export const getAwaitingSubmission = () => {
|
||||
})
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("thi serror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -577,7 +588,7 @@ export const getPortalModuleDetails = (appealType, caseReference) => {
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -592,7 +603,7 @@ export const getPortalModuleDetailsProxy = (appealType, caseReference) => {
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -605,7 +616,7 @@ export const getEmailAccountCheck = (emailAddress) => {
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -650,7 +661,6 @@ export const createWatchedCases = (formValues) => {
|
||||
var data = formValues;
|
||||
var queryUrl = window.apiRoot + "/api/endpoint/createwatchedcases_api";
|
||||
|
||||
console.log(queryUrl);
|
||||
var config = {
|
||||
method: "post",
|
||||
url: queryUrl,
|
||||
@@ -698,7 +708,7 @@ export const updateCase = async (
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("thi serror", error);
|
||||
console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user