interface Route { path : string ; method ? : "GET" | "POST" | "PUT" | "PATCH" | "DELETE" ; noAuth ? : boolean ; } interface Routes { [ name ] : Route ; } const routes = { login : { path : "/api/v1/auth/login/" , method : "POST" , noAuth : true , } , token_refresh : { path : "/api/v1/auth/token/refresh" , method : "POST" , } , token_verify : { path : "/api/v1/auth/token/verify" , method : "POST" , } , resetPassword : { path : "/api/v1/password_reset/confirm/" , method : "POST" , } , forgotPassword : { path : "/api/v1/password_reset/" , method : "POST" , } , currentUser : { path : "/api/v1/users/getcurrentuser/" , } , userList : { path : "/api/v1/users/" , } , userListFacility : { path : "/api/v1/users/{username}/get_facilities/" , } , addUserFacility : { path : "/api/v1/users/{username}/add_facility/" , method : "PUT" , } , deleteUserFacility : { path : "/api/v1/users/{username}/delete_facility/" , method : "DELETE" , } , createUser : { path : "/api/v1/users/" , method : "POST" , noAuth : true , } , updateUser : { path : "/api/v1/users" , method : "PUT" , } , partialUpdateUser : { path : "/api/v1/users" , method : "PATCH" , } , deleteUser : { path : "/api/v1/users" , method : "DELETE" , } , addUser : { path : "/api/v1/users/add_user/" , method : "POST" , } , searchUser : { path : "/api/v1/users/" , } , getOnlineDoctors : { path : "/api/v1/users/?user_type=Doctor&ordering=-last_login" , } , getUserPnconfig : { path : "/api/v1/users/{username}/pnconfig/" , } , updateUserPnconfig : { path : "/api/v1/users/{username}/pnconfig/" , method : "PATCH" , } , getPermittedFacilities : { path : "/api/v1/facility/" , } , getAllFacilities : { path : "/api/v1/getallfacilities" , } , createFacility : { path : "/api/v1/facility/" , method : "POST" , } , getPermittedFacility : { path : "/api/v1/facility/{id}/" , } , getAnyFacility : { path : "/api/v1/getallfacilities/{id}/" , } , updateFacility : { path : "/api/v1/facility" , method : "PUT" , } , partialUpdateFacility : { path : "/api/v1/facility" , method : "PATCH" , } , getFacilityUsers : { path : "/api/v1/facility/{facility_id}/get_users/" , } , listFacilityAssetLocation : { path : "/api/v1/facility/{facility_external_id}/asset_location/" , method : "GET" , } , createFacilityAssetLocation : { path : "/api/v1/facility/{facility_external_id}/asset_location/" , method : "POST" , } , getFacilityAssetLocation : { path : "/api/v1/facility/{facility_external_id}/asset_location/{external_id}/" , method : "GET" , } , updateFacilityAssetLocation : { path : "/api/v1/facility/{facility_external_id}/asset_location/{external_id}/" , method : "PUT" , } , partialUpdateFacilityAssetLocation : { path : "/api/v1/facility/{facility_external_id}/asset_location/{external_id}/" , method : "PATCH" , } , deleteFacility : { path : "/api/v1/facility" , method : "DELETE" , } , downloadFacility : { path : "/api/v1/facility/?csv" , method : "GET" , } , downloadFacilityCapacity : { path : "/api/v1/facility/?csv&capacity" , method : "GET" , } , downloadFacilityDoctors : { path : "/api/v1/facility/?csv&doctors" , method : "GET" , } , downloadFacilityTriage : { path : "/api/v1/facility/?csv&triage" , method : "GET" , } , downloadPatients : { path : "/api/v1/patient/?csv" , method : "GET" , } , getConsultationList : { path : "/api/v1/consultation/" , } , createConsultation : { path : "/api/v1/consultation/" , method : "POST" , } , getConsultation : { path : "/api/v1/consultation/{id}/" , } , updateConsultation : { path : "/api/v1/consultation" , method : "PUT" , } , partialUpdateConsultation : { path : "/api/v1/consultation/{id}/" , method : "PATCH" , } , deleteConsultation : { path : "/api/v1/consultation/{id}/" , method : "DELETE" , } , createDailyRounds : { path : "/api/v1/consultation/{consultationId}/daily_rounds/" , method : "POST" , } , updateDailyReport : { path : "/api/v1/consultation/{consultationId}/daily_rounds/{id}/" , method : "PUT" , } , updateDailyRound : { path : "/api/v1/consultation/{consultationId}/daily_rounds/{id}/" , method : "PATCH" , } , getDailyReports : { path : "/api/v1/consultation/{consultationId}/daily_rounds/" , } , getDailyReport : { path : "/api/v1/consultation/{consultationId}/daily_rounds/{id}/" , } , dailyRoundsAnalyse : { path : "/api/v1/consultation/{consultationId}/daily_rounds/analyse/" , method : "POST" , } , createCapacity : { path : "/api/v1/facility/{facilityId}/capacity/" , method : "POST" , } , createDoctor : { path : "/api/v1/facility/{facilityId}/hospital_doctor/" , method : "POST" , } , getCapacity : { path : "/api/v1/facility/{facilityId}/capacity/" , } , getCapacityBed : { path : "/api/v1/facility/{facilityId}/capacity/{bed_id}/" , } , listDoctor : { path : "/api/v1/facility/{facilityId}/hospital_doctor/" , } , getDoctor : { path : "/api/v1/facility/{facilityId}/hospital_doctor/{id}/" , } , updateCapacity : { path : "/api/v1/facility/{facilityId}/capacity" , method : "PUT" , } , updateDoctor : { path : "/api/v1/facility/{facilityId}/hospital_doctor" , method : "PUT" , } , createTriage : { path : "/api/v1/facility/{facilityId}/patient_stats/" , method : "POST" , } , getTriage : { path : "/api/v1/facility/{facilityId}/patient_stats/" , } , getTriageDetails : { path : "/api/v1/facility/{facilityId}/patient_stats/{id}/" , } , searchPatient : { path : "/api/v1/patient/search" , } , patientList : { path : "/api/v1/patient/" , } , addPatient : { path : "/api/v1/patient/" , method : "POST" , } , getPatient : { path : "/api/v1/patient/{id}/" , } , updatePatient : { path : "/api/v1/patient/{id}/" , method : "PUT" , } , patchPatient : { path : "/api/v1/patient/{id}/" , method : "PATCH" , } , transferPatient : { path : "/api/v1/patient/{id}/transfer/" , method : "POST" , } , getPatientNotes : { path : "/api/v1/patient/{patientId}/notes/" , method : "GET" , } , addPatientNote : { path : "/api/v1/patient/{patientId}/notes/" , method : "POST" , } , sampleTestList : { path : "/api/v1/patient/{patientId}/test_sample/" , } , createSampleTest : { path : "/api/v1/patient/{patientId}/test_sample/" , method : "POST" , } , sampleReport : { path : "/api/v1/patient/{id}/test_sample/{sampleId}/icmr_sample" , } , externalResultList : { path : "/api/v1/external_result/" , } , externalResult : { path : "/api/v1/external_result/{id}/" , } , externalResultUploadCsv : { path : "/api/v1/external_result/bulk_upsert/" , method : "POST" , } , deleteExternalResult : { path : "/api/v1/external_result" , method : "DELETE" , } , updateExternalResult : { path : "/api/v1/external_result/{id}/" , method : "PUT" , } , partialUpdateExternalResult : { path : "/api/v1/external_result/{id}/" , method : "PATCH" , } , statesList : { path : "/api/v1/state/" , } , getState : { path : "/api/v1/state/{id}/" , } , getDistrict : { path : "/api/v1/district/{id}/" , } , getDistrictByState : { path : "/api/v1/state/{id}/districts/" , } , getDistrictByName : { path : "/api/v1/district/" , } , getAllLocalBodyByDistrict : { path : "/api/v1/district/{id}/get_all_local_body/" , } , getLocalbodyByDistrict : { path : "/api/v1/district/{id}/local_bodies/" , } , getLocalBody : { path : "/api/v1/local_body/{id}/" , } , getAllLocalBody : { path : "/api/v1/local_body/" , } , getLocalbodyByName : { path : "/api/v1/local_body/" , } , getWard : { path : "/api/v1/ward/{id}/" , } , getWards : { path : "/api/v1/ward/" , } , getWardByLocalBody : { path : "/api/v1/ward/?local_body={id}" , } , getTestSampleList : { path : "/api/v1/test_sample/" , } , getTestSample : { path : "/api/v1/test_sample" , } , patchSample : { path : "/api/v1/test_sample/{id}/" , method : "PATCH" , } , getItems : { path : "/api/v1/items/" , } , createInventory : { path : "/api/v1/facility/{facilityId}/inventory/" , method : "POST" , } , getInventoryLog : { path : "/api/v1/facility" , } , setMinQuantity : { path : "/api/v1/facility/{facilityId}/min_quantity/" , method : "POST" , } , getMinQuantity : { path : "/api/v1/facility" , method : "GET" , } , updateMinQuantity : { path : "/api/v1/facility/{facilityId}/min_quantity/{inventoryId}" , method : "PATCH" , } , getInventorySummary : { path : "/api/v1/facility" , method : "GET" , } , getItemName : { path : "/api/v1/items" , method : "GET" , } , flagInventoryItem : { path : "/api/v1/facility/{facility_external_id}/inventory/{external_id}/flag/" , method : "PUT" , } , deleteLastInventoryLog : { path : "/api/v1/facility/{facility_external_id}/inventory/delete_last/?item={id}" , method : "DELETE" , } , discharge : { path : "/api/v1/patient/{external_id}/discharge_summary/" , method : "POST" , } , dischargePatient : { path : "/api/v1/patient/{id}/discharge_patient/" , method : "POST" , } , getUserDetails : { path : "/api/v1/users/{username}/" , method : "GET" , } , updateUserDetails : { path : "/api/v1/users" , method : "PUT" , } , createShift : { path : "/api/v1/shift/" , method : "POST" , } , updateShift : { path : "/api/v1/shift" , method : "PUT" , } , deleteShiftRecord : { path : "/api/v1/shift" , method : "DELETE" , } , listShiftRequests : { path : "/api/v1/shift/" , method : "GET" , } , getShiftDetails : { path : "/api/v1/shift/{id}/" , } , completeTransfer : { path : "/api/v1/shift/{externalId}/transfer/" , method : "POST" , } , downloadShiftRequests : { path : "/api/v1/shift/" , method : "GET" , } , getShiftComments : { path : "/api/v1/shift/{id}/comment/" , method : "GET" , } , addShiftComments : { path : "/api/v1/shift/{id}/comment/" , method : "POST" , } , getNotifications : { path : "/api/v1/notification/" , } , getNotificationData : { path : "/api/v1/notification/{id}/" , } , getPublicKey : { path : "/api/v1/notification/public_key/" , } , sendNotificationMessages : { path : "/api/v1/notification/notify/" , method : "POST" , } , createUpload : { path : "/api/v1/files/" , method : "POST" , } , viewUpload : { path : "/api/v1/files/" , method : "GET" , } , retrieveUpload : { path : "/api/v1/files/{fileId}/" , method : "GET" , } , listInvestigations : { path : "/api/v1/investigation/" , method : "GET" , } , listInvestigationGroups : { path : "/api/v1/investigation/group" , method : "GET" , } , createInvestigation : { path : "/api/v1/consultation/{consultation_external_id}/investigation/" , method : "POST" , } , getInvestigationSessions : { path : "/api/v1/consultation/{consultation_external_id}/investigation/get_sessions/" , method : "GET" , } , getInvestigation : { path : "/api/v1/consultation/{consultation_external_id}/investigation/" , method : "GET" , } , getPatientInvestigation : { path : "/api/v1/patient/{patient_external_id}/investigation/" , method : "GET" , } , editInvestigation : { path : "/api/v1/consultation/{consultation_external_id}/investigation/batchUpdate/" , method : "PUT" , } , createResource : { path : "/api/v1/resource/" , method : "POST" , } , updateResource : { path : "/api/v1/resource" , method : "PUT" , } , deleteResourceRecord : { path : "/api/v1/resource" , method : "DELETE" , } , listResourceRequests : { path : "/api/v1/resource/" , method : "GET" , } , getResourceDetails : { path : "/api/v1/resource/{id}/" , } , downloadResourceRequests : { path : "/api/v1/resource/" , method : "GET" , } , getResourceComments : { path : "/api/v1/resource/{id}/comment/" , method : "GET" , } , addResourceComments : { path : "/api/v1/resource/{id}/comment/" , method : "POST" , } , listAssets : { path : "/api/v1/asset" , method : "GET" , } , createAsset : { path : "/api/v1/asset/" , method : "POST" , } , getAssetUserLocation : { path : "​/api/v1/asset​/get_default_user_location​/" , method : "GET" , } , createAssetUserLocation : { path : "/api/v1/asset/set_default_user_location/" , method : "POST" , } , getAsset : { path : "/api/v1/asset/{external_id}/" , method : "GET" , } , updateAsset : { path : "/api/v1/asset/{external_id}/" , method : "PUT" , } , partialUpdateAsset : { path : "/api/v1/asset/{external_id}/" , method : "PATCH" , } , listAssetTransaction : { path : "/api/v1/asset_transaction/" , method : "GET" , } , getAssetTransaction : { path : "/api/v1/asset_transaction/{id}" , method : "GET" , } , } ; export default routes ;