@reltio/components 1.4.1931 → 1.4.1932
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.
|
@@ -50,7 +50,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
50
50
|
exports.getPointsFromReference = void 0;
|
|
51
51
|
var ramda_1 = require("ramda");
|
|
52
52
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
53
|
-
var masking_1 = require("@reltio/mdm-sdk/src/metadata/masking");
|
|
54
53
|
var helpers_1 = require("./helpers");
|
|
55
54
|
var getGeoLocation = function (servicesPath, entity, attributes, metadata, refAttribute, name) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
55
|
var entityType, results, geoLocation, results, response, _a;
|
|
@@ -77,7 +76,7 @@ var getGeoLocation = function (servicesPath, entity, attributes, metadata, refAt
|
|
|
77
76
|
var lat = loc.value['Latitude'];
|
|
78
77
|
var lon = loc.value['Longitude'];
|
|
79
78
|
if ((0, helpers_1.isSet)(lat) && lat[0].value && (0, helpers_1.isSet)(lon) && lon[0].value) {
|
|
80
|
-
var hasMasking = (0,
|
|
79
|
+
var hasMasking = (0, mdm_sdk_1.hasMaskingByUris)(metadata, [lat[0].type, lon[0].type]);
|
|
81
80
|
return hasMasking ? null : { id: loc.uri, lat: Number(lat[0].value), lng: Number(lon[0].value) };
|
|
82
81
|
}
|
|
83
82
|
})
|
|
@@ -46,8 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
import { identity, flatten } from 'ramda';
|
|
49
|
-
import { decodeAddress, getEntityType, wrapInArrayIfNeeded } from '@reltio/mdm-sdk';
|
|
50
|
-
import { hasMaskingByUris } from '@reltio/mdm-sdk/src/metadata/masking';
|
|
49
|
+
import { decodeAddress, getEntityType, wrapInArrayIfNeeded, hasMaskingByUris } from '@reltio/mdm-sdk';
|
|
51
50
|
import { getPointsFromAttributes, isSet } from './helpers';
|
|
52
51
|
var getGeoLocation = function (servicesPath, entity, attributes, metadata, refAttribute, name) { return __awaiter(void 0, void 0, void 0, function () {
|
|
53
52
|
var entityType, results, geoLocation, results, response, _a;
|