diff --git a/src/libs/ajax.js b/src/libs/ajax.js index f3258d8ef..97cbf90b3 100644 --- a/src/libs/ajax.js +++ b/src/libs/ajax.js @@ -260,16 +260,6 @@ export const DAR = { return res.data; }, - requiresManualReview: (object) => { - var manualReview = false; - object.forEach(function (element) { - if (element.manualReview === true) { - manualReview = true; - } - }); - return manualReview; - }, - //NOTE: endpoints requires a dar id uploadDARDocument: async(file, darId, fileType) => { if(isFileEmpty(file)) { @@ -326,12 +316,6 @@ export const DataSet = { return await res.json(); }, - getDatasetByIdV2: async id => { - const url = `${await getApiUrl()}/api/dataset/v2/${id}`; - const res = await fetchOk(url, Config.authOpts()); - return await res.json(); - }, - downloadDataSets: async (objectIdList, fileName) => { const url = `${await getApiUrl()}/api/dataset/download`; const res = await fetchOk(url, fp.mergeAll([Config.jsonBody(objectIdList), Config.fileOpts(), { method: 'POST' }])); @@ -408,32 +392,6 @@ export const DatasetAssociation = { }; -export const Election = { - - findElectionByDarId: async (requestId) => { - const url = `${await getApiUrl()}/api/dataRequest/${requestId}/election`; - const res = await fetchOk(url, Config.authOpts()); - return await res.json(); - }, - - findDataAccessElectionReview: async (electionId) => { - const url = `${await getApiUrl()}/api/electionReview/access/${electionId}`; - const res = await fetchOk(url, Config.authOpts()); - return await res.json(); - }, - - // RP Election Information. Can be null for manual review DARs. - // N.B. We get the rpElectionReview from the Access election id, not the rp election id. This is a legacy behavior. - findRPElectionReview: async (electionId) => { - const url = `${await getApiUrl()}/api/electionReview/rp/${electionId}`; - const res = await fetchOk(url, Config.authOpts()); - if (res.status === 204) { - return {}; - } - return await res.json(); - } -}; - export const Email = { sendReminderEmail: async (voteId) => { const url = `${await getApiUrl()}/api/emailNotifier/reminderMessage/${voteId}`; @@ -510,12 +468,6 @@ export const Support = { export const Match = { - findMatch: async (consentId, purposeId) => { - const url = `${await getApiUrl()}/api/match/${consentId}/${purposeId}`; - const res = await fetchOk(url, Config.authOpts()); - return res.json(); - }, - findMatchBatch: async (purposeIdsArr = []) => { const purposeIds = purposeIdsArr.join(','); const url = `${await getApiUrl()}/api/match/purpose/batch`; diff --git a/src/pages/wip.js b/src/pages/wip.js deleted file mode 100644 index e69de29bb..000000000