import { DefaultEndpoints, RoleEndpoints } from "./roleEndpoints"; export const ROLE_ENDPOINTS: Record = { MEDREP: { doctor: { getAll: '/DoctorMgmt/GetDoctor', getById: '/DoctorMgmt/GetDoctor', getSpecialization:'/Maintenance/Specialization', create: '/DoctorMgmt/PostPutDoctor', update: '/DoctorMgmt/PostPutDoctor', delete: '/DoctorMgmt', approve: '/DoctorMgmt/ApproveDoctor', getPending: '/DoctorMgmt/GetPendingApprovals', }, }, DSM: { doctor: { getAll: '/DoctorMgmt/GetPendingApprovals', getById: '/DoctorMgmt/GetDoctor', getSpecialization:'/Maintenance/Specialization', create: '/DoctorMgmt/ApproveDoctor', update: '/DoctorMgmt/ApproveDoctor', delete: '/DoctorMgmt', approve: '/DoctorMgmt/ApproveDoctor', getPending: '/DoctorMgmt/GetPendingApprovals', }, }, NSM: { doctor: { getAll: '/DoctorMgmt/GetPendingApprovals', getById: '/DoctorMgmt/GetDoctor', getSpecialization:'/Maintenance/Specialization', create: '/DoctorMgmt/ApproveDoctor', update: '/DoctorMgmt/ApproveDoctor', delete: '/DoctorMgmt', approve: '/DoctorMgmt/ApproveDoctor', getPending: '/DoctorMgmt/GetPendingApprovals', }, }, ADMIN: { doctor: { getAll: '/Admin/GetAllDoctors', getById: '/Admin/GetDoctor', getSpecialization:'/Maintenance/Specialization', create: '/Admin/CreateDoctor', update: '/Admin/UpdateDoctor', delete: '/Admin/DeleteDoctor', approve: '/Admin/ApproveDoctor', getPending: '/Admin/GetPendingApprovals', }, } }; // Default endpoints export const DEFAULT_ENDPOINTS: RoleEndpoints = { doctor: { getAll: '/DoctorMgmt/GetDoctor', getById: '/DoctorMgmt/GetDoctor', getSpecialization:'/Maintenance/Specialization', create: '/DoctorMgmt/PostPutDoctor', update: '/DoctorMgmt/PostPutDoctor', delete: '/DoctorMgmt', approve: '/DoctorMgmt/ApproveDoctor', getPending: '/DoctorMgmt/GetPendingApprovals', } }; export const config: DefaultEndpoints = { institution: { getAll: '/Maintenance/Institutions', getById: '/Maintenance/Institutions', create: '/Maintenance/PostPutInstitution', update: '/Maintenance/PostPutInstitution', delete: '/Maintenance' }, areas: { getAll: '/Maintenance/Areas', getById: '/Maintenance/Areas', create: '/Maintenance/PostPutArea', update: '/Maintenance/PostPutArea', delete: '/Maintenance' }, district: { getAll: '/Maintenance/Districts', getById: '/Maintenance/Districts', create: '/Maintenance/PostPutDistrict', update: '/Maintenance/PostPutDistrict', delete: '/Maintenance' }, division: { getAll: '/Maintenance/Divisions', getById: '/Maintenance/Divisions', create: '/Maintenance/PostPutDivision', update: '/Maintenance/PostPutDivision', delete: '/Maintenance' }, territory: { getAll: '/Maintenance/Territories', getById: '/Maintenance/Territories', create: '/Maintenance/PostPutTerritory', update: '/Maintenance/PostPutTerritory', delete: '/Maintenance' }, product:{ getAll: '/Maintenance/Products', getById: '/Maintenance/Products', getFile: '/Maintenance/productFile', create: '/Maintenance/PostPutProduct', update: '/Maintenance/PostPutProduct', delete: '/Maintenance' }, inventory:{ getAll: '/Inventory/Inventory', getById: '/Inventory/Inventory', getFile: '/Inventory/InventoryFile', create: '/Inventory/PostPutInventory', update: '/Inventory/PostPutInventory', delete: '/Inventory/DeleteInventory', bulkDelete:'/Inventory/BulkDeleteInventory', uploadExcel: '/Inventory/UploadExcel' }, institutionCategory:{ getAll: '/Maintenance/InstitutionCategories', getById: '/Maintenance/InstitutionCategories', create: '/Maintenance/PostPutInstitutionCategory', update: '/Maintenance/PostPutInstitutionCategory', delete: '/Maintenance' }, userAccount:{ getAll: '/Account/GetUsers', getById: '/Account/GetUsers', create: '/Account/Register', update: '/Account/UpdateUser', delete: '/Account' }, department:{ getAll: '/Account/GetDepartment', getById: '/Account/GetDepartment', create: '/Account/PostPutDepartment', update: '/Account/PostPutDepartment', delete: '/Account' }, userRole:{ getAll: '/Account/GetUserRole', getById: '/Account/GetUserRole', create: '/Account/PostPutUserRole', update: '/Account/PostPutUserRole', delete: '/Account' }, appointment:{ getAll: '/Plan/GetDoctorWithPlan', getById: '/Plan/GetDoctorById', getPendingApprovals: '/Plan/GetPendingApprovals', getProductTransaction:'/Plan/GetProductTransaction', getSampleTransaction:'/Plan/GetSampleTransaction', create: '/Plan/PostPutPlan', update: '/Plan/PostPutPlan', approve: '/Plan/ApprovePlan', copyMonthlyMRRawPlans: '/Plan/CopyMonthlyMRRawPlans', }, reports:{ getCallRateReport: '/Reports/GetCallRateReport', getCallReachReport: '/Reports/GetCallReachReport', getCatchUpCallReport: '/Reports/GetCatchUpCallReport', getActualCoverageReport: '/Reports/GetActualCoverageReport', getDoctorSignature: '/Reports/GetDoctorSignature', getAttendanceLogs: '/TimeKeeping/GetAttendanceLogs', getAttendancePhoto: '/TimeKeeping/GetAttendancePhoto', create: '/Reports/PutMissedCall', update: '/Reports/PutMissedCall' }, dashboard:{ getAllDoctor: '/DoctorMgmt/GetAllDoctor', getMyDoctor: '/DoctorMgmt/GetMyDoctor', getAllAppointmentToday: '/Plan/GetAllAppointmentToday', getAttendanceToday: '/TimeKeeping/GetAttendanceToday', getAllMissReschedule:'/Plan/GetAllMissReschedule' } }