From eb0343aefc1b94d15008f91f50283e698fc56e3a Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 11 Mar 2024 17:23:01 +0530 Subject: [PATCH] remove unused redux actions --- src/Redux/actions.tsx | 69 ------------------------------------------- 1 file changed, 69 deletions(-) diff --git a/src/Redux/actions.tsx b/src/Redux/actions.tsx index 10f5bd76eab..da158848a2f 100644 --- a/src/Redux/actions.tsx +++ b/src/Redux/actions.tsx @@ -6,10 +6,6 @@ export const getUserList = (params: object, key?: string) => { return fireRequest("userList", [], params, null, key); }; -export const getAnyFacility = (id: number | string, key?: string) => { - return fireRequest("getAnyFacility", [], {}, { id: id }, key); -}; - export const getFacilityUsers = (id: string, params?: object) => { return fireRequest( "getFacilityUsers", @@ -67,9 +63,6 @@ export const getAllPatient = (params: object, altKey: string) => { export const getPatient = (pathParam: object) => { return fireRequest("getPatient", [], {}, pathParam); }; -export const patchPatient = (params: object, pathParam: object) => { - return fireRequest("patchPatient", [], params, pathParam); -}; // District/State/Local body/ward export const getDistrictByName = (params: object) => { @@ -141,68 +134,6 @@ export const externalResultList = (params: object, altKey: string) => { return fireRequest("externalResultList", [], params, null, altKey); }; -export const externalResult = (pathParam: object) => { - return fireRequest("externalResult", [], {}, pathParam); -}; - -// Investigation - -export const listInvestigations = ( - params: object, - altKey = "listInvestigations" -) => { - return fireRequest("listInvestigations", [], params, null, altKey); -}; - -export const listInvestigationGroups = (params: object) => { - return fireRequest("listInvestigationGroups", [], params); -}; - -export const createInvestigation = ( - params: object, - consultation_external_id: string -) => { - return fireRequest("createInvestigation", [], params, { - consultation_external_id: consultation_external_id, - }); -}; - -export const getInvestigationSessions = ( - params: object, - consultation_external_id: string -) => { - return fireRequest("getInvestigationSessions", [], params, { - consultation_external_id: consultation_external_id, - }); -}; - -export const getInvestigation = ( - params: object, - consultation_external_id: string -) => { - return fireRequest("getInvestigation", [], params, { - consultation_external_id: consultation_external_id, - }); -}; - -export const getPatientInvestigation = ( - params: object, - patient_external_id: string -) => { - return fireRequest("getPatientInvestigation", [], params, { - patient_external_id: patient_external_id, - }); -}; - -export const editInvestigation = ( - params: object, - consultation_external_id: string -) => { - return fireRequest("editInvestigation", [], params, { - consultation_external_id: consultation_external_id, - }); -}; - // Resource export const downloadResourceRequests = (params: object) => { return fireRequest("downloadResourceRequests", [], params);