@eagleeye-solutions/integration-events-common
Version:
Eagle Eye CDP connector common functionality
18 lines • 703 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStoreLocationAttributes = getStoreLocationAttributes;
function getStoreLocationAttributes(entity) {
if ((entity.objectValue.location?.storeId !== undefined &&
entity.objectValue.location?.storeId !== null) ||
(entity.objectValue.location?.storeParentId !== undefined &&
entity.objectValue.location?.storeParentId !== null)) {
return {
storeId: entity.objectValue.location.storeId ?? null,
storeParentId: entity.objectValue.location.storeParentId ?? null,
};
}
else {
return undefined;
}
}
//# sourceMappingURL=common.js.map