-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathenv.ts
More file actions
73 lines (70 loc) · 4.1 KB
/
env.ts
File metadata and controls
73 lines (70 loc) · 4.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import * as dotenv from 'dotenv';
import * as path from 'path';
const env = process.env.NODE_ENV ?? 'dev';
if (process.env.Is_CloudEnvironment) { } else {
dotenv.config({ path: path.resolve(__dirname, `../../../../application/CohortManager/.env`) });
}
const baseURL = process.env.BASE_URL ?? '';
const azureConnectionString = process.env.CAASFOLDER_STORAGE_CONNECTION_STRING ?? '';
const containerName = process.env.CONTAINER_NAME ?? '';
const endpointCohortDistributionDataService = process.env.ENDPOINT_COHORT_DISTRIBUTION_DATA_SERVICE ?? '';
const endpointParticipantManagementDataService = process.env.ENDPOINT_PARTICIPANT_MANAGEMENT_DATA_SERVICE ?? '';
const endpointParticipantDemographicDataService = process.env.ENDPOINT_PARTICIPANT_DEMOGRAPHIC_DATA_SERVICE ?? '';
const endpointExceptionManagementDataService = process.env.ENDPOINT_EXCEPTION_MANAGEMENT_DATA_SERVICE ?? '';
const endpointBsSelectRetrieveCohortDistributionData = process.env.ENDPOINT_BS_SELECT_RETRIEVE_COHORT_DISTRIBUTION_DATA ?? '';
const endpointBsSelectRetrieveCohortRequestAudit = process.env.ENDPOINT_BS_SELECT_RETRIEVE_COHORT_REQUEST_AUDIT ?? '';
const endpointBsSelectDeleteParticipant = process.env.ENDPOINT_BS_SELECT_DELETE_PARTICIPANT ?? '';
const endpointBsSelectUpdateBlockFlag = process.env.ENDPOINT_BS_SELECT_UPDATE_BLOCK_FLAG ?? '';
const endpointBsSelectGetValidationExceptions = process.env.ENDPOINT_BS_SELECT_GET_VALIDATION_EXCEPTIONS ?? '';
const endpointSerNowReceiveParticipant = process.env.ENDPOINT_SERVICE_NOW_MESSAGE_HANDLER ?? '';
const invalidEndpointSerNow = process.env.INVALID_ENDPOINT_SERVICE_NOW_MESSAGE_HANDLER ?? '';
const participantPayloadPath = process.env.PARTICIPANT_PAYLOAD_PATH ?? '';
const createPDSDemographicEnv = process.env.ENDPOINT_PDS_DEMOGRAPHIC ?? '';
const subToNemsEndPoint = process.env.ENDPOINT_SUB_TO_NEMS ?? '';
const wireMockUrl = process.env.WIREMOCK_URL ?? '';
export const config = {
baseURL,
azureConnectionString,
containerName,
endpointCohortDistributionDataService,
endpointParticipantManagementDataService,
endpointExceptionManagementDataService,
endpointParticipantDemographicDataService,
endpointBsSelectRetrieveCohortDistributionData: endpointBsSelectRetrieveCohortDistributionData,
endpointBsSelectRetrieveCohortRequestAudit: endpointBsSelectRetrieveCohortRequestAudit,
endpointBsSelectDeleteParticipant: endpointBsSelectDeleteParticipant,
endpointBsSelectUpdateBlockFlag: endpointBsSelectUpdateBlockFlag,
endpointBsSelectGetValidationExceptions: endpointBsSelectGetValidationExceptions,
endpointSerNowReceiveParticipant: endpointSerNowReceiveParticipant,
createPDSDemographic: createPDSDemographicEnv,
invalidEndpointSerNow: invalidEndpointSerNow,
SubToNems: subToNemsEndPoint,
wireMockUrl: wireMockUrl,
SubToNemsPath: 'api/Subscribe',
CheckNemsSubPath:'api/CheckSubscriptionStatus',
routeBsSelectRetrieveCohortDistributionData: 'api/RetrieveCohortDistributionData',
routeBsSelectRetrieveCohortRequestAudit: 'api/RetrieveCohortRequestAudit',
routeBsSelectDeleteParticipant: 'api/DeleteParticipant',
routeBsSelectBlockParticipant: 'api/BlockParticipant',
routeBsSelectUnblockParticipant: 'api/UnblockParticipant',
routeGetValidationExceptions: 'api/GetValidationExceptions',
routeSerNowReceiveParticipant: 'api/servicenow/receive',
invalidRouteSerNowEndpoint: 'api/serviceno/receive',
cohortDistributionService: 'CohortDistributionDataService',
participantManagementService: 'ParticipantManagementDataService',
exceptionManagementService: 'ExceptionManagementDataService',
participantDemographicDataService: 'ParticipantDemographicDataService',
createPDSDemographicPath: 'api/RetrievePdsDemographic',
participantPayloadPath: 'src/tests/api/testFiles',
e2eTestFilesPath: 'e2e/testFiles',
apiTestFilesPath: 'api/testFiles',
apiRetry: 8,
apiWaitTime: 5000,
nhsNumberKey: 'NHSNumber',
nhsNumberKeyExceptionDemographic: 'NhsNumber',
uniqueKeyCohortDistribution: 'CohortDistributionId',
uniqueKeyParticipantManagement: 'ParticipantId',
uniqueKeyParticipantDemographic: 'ParticipantId',
uniqueKeyExceptionManagement: 'ExceptionId',
ignoreValidationKey: 'apiEndpoint'
}