const  API_VERSION_METADATA = {  
    api_metadata:{
        ODATA_API_VERSION: 'v1',    
        API_VERSION_V1: 'v1'
    }
}
export const METADATA_END_POINTS = {
    auth:{
        API_VERSION_V1: `/api/Auth/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/`,
        //endpoints start
        REGISTER_ENDPOINT: 'RegisterUser',
        PAYMENT_CAPTURE_ENDPOINT: 'Payment/Capture',
        LOGIN_ENDPOINT: 'Login',
        RESETPASSWORD_ENDPOINT: 'ResetPassword',
        FORGOTPASSWORD_ENDPOINT: 'ForgotPassword',
        VALIDATE_SUBSCRIPTION_CODE: 'ValidateSubscriptions',
        GENERATE_SUBS_CODE:'GenerateSubsCode',
        UPDATE_SUBS_CODE:'UpdateSubsCode',
        GET_MENU: (theRoleId) => `GetMenu/${theRoleId}`,
        REGISTER_VISITOR: 'RegisterVisitor',
        RENEW_SUBSCRIPTION_CODE: "RenewalSubsCode",
        UPLOAD_PROFILE_PIC: `/upload/Auth/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/ProfileImageUpload`
    },    
    patient:{
        API_VERSION_V1: `/api/Patient/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/`,    
        UPLOAD_VERSION_V1: `/upload/Patient/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/`,    
        API_VERSION_V2: '/api/Patient/v2/',    
        MEDICAL_LOG: 'MedicalLog',
        GET_MEDICAL_LOG: 'GetMedicalLog',        
        GET_USER_DAILY_LOGS:(patientId) => `/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetDailyLog(patientId=${patientId})`,
        POST_USER_DAILY_LOGS:'DailyLog',
        POST_USER_DAILY_LOGS_IMAGE_UPLOAD:'DailyLogImageUpload',   
        REGISTER_LAB_REPORT: 'LabReport',
        GET_LAB_REPORT_LIST: (patientId) => `/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetLabReport(patientId=${patientId})`,
        REGISTER_DIET_CHART: `/api/Patient/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/DietPlan`,
        GET_DIET_CHART: (patientId) => `/api/Patient/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/getDietPlan/${patientId}`,
    },
    notification: {
        METTA_HUB_CONNECTION:'/api/MettaNotificationHub',
        RECEIVE_MESSAGE_NAME: 'ReceiveMettaNotification',
        
    },
    admin:{
        GET_USER_PROFILE:`/api/Users/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/GetUserProfile`,
        GET_USER_PROFILE_BY_ID:`/api/Users/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/GetUserProfileById`,
        UPDATE_EDUCATOR_STATUS: `/api/Users/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/UpdateEducatorStatus`,
        UPDATE_VISITOR_STATUS: `/api/Users/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/UpdateVisitorStatus`,
        UPDATE_VISITOR: `/api/Users/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/UpdateVisitor`,
        UPDATE_PATIENT_STATUS: `/api/Users/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/UpdatePatientStatus`,
        UPDATE_PATIENT_CRITICAL_STATUS: `/api/Users/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/UpdatePatientCriticalityStatus`,
        UPDATE_USER_PROFILE: `/api/Users/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/UpdateUserProfile`,
        UPDATE_USER_PROFILE_WORK_INFO: `/api/Users/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/UpdateEducatorDetails`,
        UPDATE_USER_FEEDBACK: `/api/Users/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/UserFeedback`,
        READ_TERMS_AND_CONDITIONS: `/api/Users/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/TNC`
    },
    common:{
        GET_ALL_USER_NOTIFICATION: `/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetAllNotifications`,
        NOTIFICATION_UPDATE:`/api/Notification/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/Notify`,
        PATIENT_LIST:`/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/PatientList`,
        EDUCATOR_LIST:`/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetEducatorList`,
        SUBSCRIPTION_LIST:`/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetSubscriptions`,
        GET_VISITOR_LIST: `/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetVisitorsList`,
        GET_CHAT_HISTORY:(groupId) =>`/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetChatHistory(groupName='${groupId}')`,
        //Reports
        SUBSCRIPTION_REPORT:`/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetSubscriptionReport`,
        PATIENT_DAILY_LOG_REPORT:`/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetPatientDailyLogReport`,
        PATIENT_LAB_REPORT:`/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetPatientLabReport`,
        PATIENT_MEDICAL_HISTORY_REPORT:`/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetCaseHistoryReport`,
        //Dashboard
        DASHBOARD_DISEASE_WISE_PATIENTS:`/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/DiseaseTypeWisePatientCount`,
        DASHBOARD_EDUCATOR_WISE_PATIENTS: `/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/EducatorWisePatient`,
        DASHBOARD_METRICS: `/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetDashboardReport`,
        DASHBOARD_PATIENT_CRITICALITY_TREND: (patientId, fromDate, toDate) =>`/odataAPI/${API_VERSION_METADATA.api_metadata.ODATA_API_VERSION}/GetPatientCriticalityTrend(PatientId=${patientId},FromDate='${fromDate}', ToDate='${toDate}')`,
        ACCEPT_TERMS_AND_CONDITIONS: `/api/Auth/${API_VERSION_METADATA.api_metadata.API_VERSION_V1}/AcceptTermsCondition`,
    },
    chat: {
        SERVER_ENDPOINT: '/api/MettaChatHub',
        GROUP_REGISTER_NAME: 'RegisterGroupChat',
        SEND_MESSAGE_NAME: 'SendChatMessage',
        RECEIVE_MESSAGE_NAME: 'ReceiveChatMessage',
        POST_USER_CHAT_IMAGE_UPLOAD:'ChatImageUpload'
    }
}

