consumerportal
Version:
mydna Custimised for you
71 lines (63 loc) • 2.88 kB
text/typescript
/// <reference path="includes.ts" />
interface ImyDNAApis {
AcctMgmtFindPatient: string
AcctMgmtToken: string
AcctMgmtCurrent: string
PatientDetails: string
PatientGenotypes: string
PatientCases: string
PatientMedications: string
Medicines: string
RegistrationDetails: string
RegisterLoginDetails: string
LoginDetails: string
PersonalDetails: string
ContactDetails: string
LatestNews: string
PatientCaseReport: string
FutureMedications: string
ForgotPassword: string
ResetPassword: string
MedsDisclaimer: string
ContactUs: string
Subscription: string
VerifyLink: string
ValidateToken: string
Diet: string
Sports: string
Alcohol: string
User: string
}
((): void => {
'use strict';
let globalConstants: ImyDNAApis = {
AcctMgmtFindPatient: 'AcctMgmt/FindPatient',
AcctMgmtToken : webApiBaseUrl + 'Token',
AcctMgmtCurrent: webApiBaseUrl + 'api/account/Current',
PatientDetails: webApiBaseUrl + 'api/Patient/AdditionalDetails',
PatientGenotypes : webApiBaseUrl + 'api/PatientGenotypes',
PatientCases: webApiBaseUrl + 'api/PatientCases',
PatientMedications: webApiBaseUrl + 'api/PatientMedications',
Medicines: webApiBaseUrl + 'api/MedicationSearch/AutoComplete',
RegistrationDetails: webApiBaseUrl + 'api/account/RegistrationDetails',
RegisterLoginDetails: webApiBaseUrl + 'api/account/RegisterLoginDetails',
LoginDetails: webApiBaseUrl + 'api/account/LoginDetails',
PersonalDetails: webApiBaseUrl + 'api/account/PersonalDetails',
ContactDetails: webApiBaseUrl + 'api/account/ContactDetails',
LatestNews: webApiBaseUrl + 'api/News',
PatientCaseReport: webApiBaseUrl + 'api/PatientCaseReport',
FutureMedications: webApiBaseUrl + 'api/FutureMedications',
ForgotPassword: webApiBaseUrl + 'api/account/ForgotPassword',
ResetPassword: webApiBaseUrl + 'api/account/ResetPassword',
MedsDisclaimer: '<p>There are many factors that your healthcare professional considers when deciding a suitable medication for you such as age, lifestyle and other medications. Do not alter the dose of your medications without consulting your doctor.</p>',
ContactUs: webApiBaseUrl + 'api/Help/SendContactUsQuery',
Subscription: webApiBaseUrl + 'api/subscription',
VerifyLink: webApiBaseUrl + 'api/account/VerifyLink',
ValidateToken: webApiBaseUrl + 'api/account/validateaccesstoken',
Diet: webApiBaseUrl + 'api/Diet/',
Sports: webApiBaseUrl + 'api/Sports',
Alcohol: webApiBaseUrl + 'api/Alcohol',
User: cp2ApiUrl + 'patient'
};
angular.module('app').constant('mydnaApis', globalConstants);
})();