TASK22028: expand signer coverage for delete flows

This commit is contained in:
2026-03-13 16:40:51 +00:00
parent e404a6d6db
commit 6283786aeb
8 changed files with 282 additions and 44 deletions
+14 -10
View File
@@ -92,11 +92,13 @@ export const deleteAwaitingSubmissionsFromBlob = (
"&casefolderID=" +
casefolderID;
var config = {
method: "get",
url: queryUrl + hashAPIPath(queryUrl)
};
return axios(config)
return buildHashedQueryUrl(queryUrl)
.then((signedUrl) =>
axios({
method: "get",
url: signedUrl
})
)
.then((res) => {
return res.data;
})
@@ -118,11 +120,13 @@ export const deleteMyRepresentationsFromBlob = (
"&repfile=" +
repfile;
var config = {
method: "get",
url: queryUrl + hashAPIPath(queryUrl)
};
return axios(config)
return buildHashedQueryUrl(queryUrl)
.then((signedUrl) =>
axios({
method: "get",
url: signedUrl
})
)
.then((res) => {
return res.data;
})
+28 -23
View File
@@ -182,19 +182,21 @@ export const deleteMyRepresentations = (myRepresentationsID) => {
"/api/endpoint/deletemyrepresentations_api?myRepresentationsID=" +
myRepresentationsID;
var config = {
method: "delete",
url: queryUrl + hashAPIPath(queryUrl),
headers: {
"OData-MaxVersion": "4.0",
"OData-Version": "4.0",
"Accept": "application/json;odata.metadata=none",
"Prefer": 'odata.include-annotations="*",return=representation',
"Content-Type": "application/json"
}
};
return axios(config)
return buildHashedQueryUrl(queryUrl)
.then((signedUrl) =>
axios({
method: "delete",
url: signedUrl,
headers: {
"OData-MaxVersion": "4.0",
"OData-Version": "4.0",
"Accept": "application/json;odata.metadata=none",
"Prefer":
'odata.include-annotations="*",return=representation',
"Content-Type": "application/json"
}
})
)
.then((res) => {
return res.data;
})
@@ -224,17 +226,20 @@ export const deleteAwaitingSubmissions = (incidentID) => {
export const deleteWatchedCases = async (watchedCaseID) => {
var queryUrl =
"/api/endpoint/deletewatchedcases_api?watchedCaseID=" + watchedCaseID;
var config = {
method: "delete",
url: queryUrl
};
try {
const res = await axios(config);
return res.data;
} catch (error) {
consoleLogger(error);
}
return buildHashedQueryUrl(queryUrl)
.then((signedUrl) =>
axios({
method: "delete",
url: signedUrl
})
)
.then((res) => {
return res.data;
})
.catch((error) => {
consoleLogger(error);
});
};
export const sendCaseCompleteMessage = async (