primary_care_admin_binder 0.1.203 → 0.1.204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +23 -25
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2390,7 +2390,7 @@ function isAbsoluteUrl(value) {
|
|
|
2390
2390
|
}
|
|
2391
2391
|
|
|
2392
2392
|
// When REACT_APP_BASE_URL is configured, each service's own env var (e.g.
|
|
2393
|
-
//
|
|
2393
|
+
// REACT_APP_BCFG_50) holds only that service's path instead of a full
|
|
2394
2394
|
// origin, and the two are joined here. If the value is already an absolute
|
|
2395
2395
|
// URL (today's per-service-domain setup, no shared base), it's used as-is -
|
|
2396
2396
|
// the shared base is only applied to bare paths, so this is safe to call
|
|
@@ -2405,9 +2405,9 @@ function withSharedBase(rawValue) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
|
|
2407
2407
|
// Base-aware lookup for vars that ARE a full URL or a full path on their
|
|
2408
|
-
// own (e.g.
|
|
2409
|
-
// base below. Not used for getBinderEnv's other callers (
|
|
2410
|
-
//
|
|
2408
|
+
// own (e.g. REACT_APP_BCFG_50) - used for every per-service endpoint
|
|
2409
|
+
// base below. Not used for getBinderEnv's other callers (REACT_APP_BCFG_04,
|
|
2410
|
+
// REACT_APP_BCFG_106, REACT_APP_BCFG_09, etc.) since those aren't URLs
|
|
2411
2411
|
// or paths and joining them with a shared base would corrupt them.
|
|
2412
2412
|
function getBinderServiceUrl(key) {
|
|
2413
2413
|
return withSharedBase(getBinderEnv(key));
|
|
@@ -2423,23 +2423,23 @@ var _tenantId = "";
|
|
|
2423
2423
|
* Builds all Binder URLs dynamically from runtime env
|
|
2424
2424
|
*/
|
|
2425
2425
|
function getBinderUrls() {
|
|
2426
|
-
var commonApi = getBinderServiceUrl("
|
|
2427
|
-
var keyClockApi = getBinderServiceUrl("
|
|
2428
|
-
var nifiApi = getBinderServiceUrl("
|
|
2429
|
-
var tokenApi = getBinderServiceUrl("
|
|
2430
|
-
var registrationApi = getBinderServiceUrl("
|
|
2431
|
-
var appointmentApi = getBinderServiceUrl("
|
|
2432
|
-
getBinderServiceUrl("
|
|
2433
|
-
var getMohUserDetailUrl = getBinderServiceUrl("
|
|
2426
|
+
var commonApi = getBinderServiceUrl("REACT_APP_BCFG_01");
|
|
2427
|
+
var keyClockApi = getBinderServiceUrl("REACT_APP_BCFG_50");
|
|
2428
|
+
var nifiApi = getBinderServiceUrl("REACT_APP_BCFG_60");
|
|
2429
|
+
var tokenApi = getBinderServiceUrl("REACT_APP_BCFG_107");
|
|
2430
|
+
var registrationApi = getBinderServiceUrl("REACT_APP_BCFG_92");
|
|
2431
|
+
var appointmentApi = getBinderServiceUrl("REACT_APP_BCFG_05");
|
|
2432
|
+
getBinderServiceUrl("REACT_APP_BCFG_113");
|
|
2433
|
+
var getMohUserDetailUrl = getBinderServiceUrl("REACT_APP_BCFG_31");
|
|
2434
2434
|
return {
|
|
2435
2435
|
// Database & Metadata
|
|
2436
|
-
dbtype: getBinderEnv("
|
|
2437
|
-
dbName: getBinderEnv("
|
|
2436
|
+
dbtype: getBinderEnv("REACT_APP_BCFG_09").split(".")[0],
|
|
2437
|
+
dbName: getBinderEnv("REACT_APP_BCFG_04"),
|
|
2438
2438
|
dbNameNg: getBinderEnv("REACT_APP_NG_DATABASE_NAME"),
|
|
2439
2439
|
ruleDBName: getBinderEnv("REACT_APP_RULE_BUILDER_DB") || "RuleBuilder",
|
|
2440
|
-
metaDatadbName: getBinderEnv("
|
|
2441
|
-
metaDataId: getBinderEnv("
|
|
2442
|
-
tenantId: getBinderEnv("
|
|
2440
|
+
metaDatadbName: getBinderEnv("REACT_APP_BCFG_56"),
|
|
2441
|
+
metaDataId: getBinderEnv("REACT_APP_BCFG_57"),
|
|
2442
|
+
tenantId: getBinderEnv("REACT_APP_BCFG_106"),
|
|
2443
2443
|
// Arango APIs
|
|
2444
2444
|
baseUrl: function baseUrl() {
|
|
2445
2445
|
return "".concat(commonApi, "/api/read_qdmqueries");
|
|
@@ -8722,9 +8722,7 @@ var PRACTITIONER_UPSERT = createAsyncThunk("practitionerSlice/practitionerAdd",
|
|
|
8722
8722
|
_context4.n = 2;
|
|
8723
8723
|
return fetchData({
|
|
8724
8724
|
body: JSON.stringify(payload)
|
|
8725
|
-
},
|
|
8726
|
-
// process.env.REACT_APP_SAVE_PRACT
|
|
8727
|
-
__savePract__);
|
|
8725
|
+
}, __savePract__);
|
|
8728
8726
|
case 2:
|
|
8729
8727
|
dataRes = _context4.v;
|
|
8730
8728
|
return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -12977,13 +12975,13 @@ var vitalsMasterSectionActions = {
|
|
|
12977
12975
|
var vitalsMasterSectionSlice$1 = vitalsMasterSectionSlice.reducer;
|
|
12978
12976
|
|
|
12979
12977
|
var getActiveDbName$1 = function getActiveDbName() {
|
|
12980
|
-
return dbName || _dbName || getBinderEnv("
|
|
12978
|
+
return dbName || _dbName || getBinderEnv("REACT_APP_BCFG_04");
|
|
12981
12979
|
};
|
|
12982
12980
|
var getActiveMetadataDbName$1 = function getActiveMetadataDbName() {
|
|
12983
|
-
return metaDatadbName$1 || getBinderEnv("
|
|
12981
|
+
return metaDatadbName$1 || getBinderEnv("REACT_APP_BCFG_56");
|
|
12984
12982
|
};
|
|
12985
12983
|
var getActiveMetadataId$1 = function getActiveMetadataId() {
|
|
12986
|
-
return metaDataId$1 || getBinderEnv("
|
|
12984
|
+
return metaDataId$1 || getBinderEnv("REACT_APP_BCFG_57");
|
|
12987
12985
|
};
|
|
12988
12986
|
var getLocationSort = function getLocationSort(sort) {
|
|
12989
12987
|
switch (sort) {
|
|
@@ -43036,13 +43034,13 @@ var geoGraphicActions = {
|
|
|
43036
43034
|
var geoGraphicSlice$1 = geoGraphicSlice.reducer;
|
|
43037
43035
|
|
|
43038
43036
|
var getActiveDbName = function getActiveDbName() {
|
|
43039
|
-
return dbName || _dbName || getBinderEnv("
|
|
43037
|
+
return dbName || _dbName || getBinderEnv("REACT_APP_BCFG_19");
|
|
43040
43038
|
};
|
|
43041
43039
|
var getActiveMetadataDbName = function getActiveMetadataDbName() {
|
|
43042
43040
|
return metaDatadbName$1 || getBinderEnv("REACT_APP_METADATA_DB_NAME");
|
|
43043
43041
|
};
|
|
43044
43042
|
var getActiveMetadataId = function getActiveMetadataId() {
|
|
43045
|
-
return metaDataId$1 || getBinderEnv("
|
|
43043
|
+
return metaDataId$1 || getBinderEnv("REACT_APP_BCFG_57");
|
|
43046
43044
|
};
|
|
43047
43045
|
var additionalcolumns = function additionalcolumns(list) {
|
|
43048
43046
|
var datas = [];
|