wip for delete reps in view all

This commit is contained in:
2024-05-30 15:43:33 +01:00
parent ec6c76ded0
commit cf8ff7f45f
14 changed files with 651 additions and 21 deletions
+54
View File
@@ -921,6 +921,32 @@ export const getRepsFromBlob = (containerName) => {
});
};
export const getRepsFromBlobProxy = (containerName) => {
console.log(
"///////////////////////getRepsFromBlobProxy: " + containerName,
"/api/file/getawaitingsubmissionfromblobproxy?container=" +
containerName,
"\n///////////////////////\n"
);
return axios
.get(
// BASE_URL +
"/api/file/getrepsblobproxy?container=" + containerName
// +
// hashAPIPath(
// "/api/file/getawaitingsubmissionfromblob?container=" +
// containerName
// )
)
.then((res) => {
return res.data;
})
.catch((error) => {
consoleLogger(error);
});
};
export const getAwaitingSubmissionFromBlobProxy = (containerName) => {
console.log(
"///////////////////////getAwaitingSubmissionFromBlobProxy: " +
@@ -1324,6 +1350,34 @@ export const deleteAwaitingSubmissionsFromBlob = (
});
};
export const deleteMyRepresentationsFromBlob = (
containerID,
casefolderID,
repfile
) => {
var queryUrl =
"/api/file/deleteblobrep?container=" +
containerID +
"&casefolderID=" +
casefolderID +
"&repfile=" +
repfile;
var config = {
method: "get",
url: queryUrl,
};
//console.log(config);
return axios(config)
.then((res) => {
//console.log("deleted ", res.data);
return res.data;
})
.catch((error) => {
console.log("this serror", error);
});
};
export const deleteWatchedCases = (watchedCaseID) => {
var queryUrl =
"/api/endpoint/deletewatchedcases_api?watchedCaseID=" + watchedCaseID;