added dns query included results and details

This commit is contained in:
2021-09-21 12:03:29 +01:00
parent 28abc6876a
commit c2ac1b1a1b
13 changed files with 550 additions and 18 deletions
+28
View File
@@ -130,6 +130,19 @@ export const getBasicSearch = (searchString) => {
});
};
export const getBasicDNSSearch = (searchString) => {
return axios
.get(
WEBAPI_URL +
"incidents?$select=_accountid_value,_customerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title, _primarycontactid_value&$expand=primarycontactid($select=fullname)&$filter=pinswg_appealcasetype eq 846040011&$count=true",
azureHeaders
)
.then((res) => res.data)
.catch((error) => {
console.log("thiserror", error);
});
};
export const getBasicSearchDetails = (appealType, caseReference) => {
return axios
.get(
@@ -146,6 +159,21 @@ export const getBasicSearchDetails = (appealType, caseReference) => {
});
};
export const getBasicDNSSearchDetails = (appealType, caseReference) => {
return axios
.get(
WEBAPI_URL +
"pinswg_dnses?$filter=pinswg_name eq '" +
caseReference +
"'&$count=true",
azureHeaders
)
.then((res) => res.data)
.catch((error) => {
console.log("thiserror", error);
});
};
export const getFormData = (whichForm) => {
//console.log("got to axios", whichForm);
//console.log("api_root: ", BASE_URL);