UNPKG

@eagleeye-solutions/integration-events-common

Version:
18 lines 703 B
"use strict"; 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