@shopgate/engage
Version:
Shopgate's ENGAGE library.
8 lines • 888 B
JavaScript
import{SET_USER_SEARCH_GEOLOCATION}from"../constants";/**
* Creates the dispatched SET_USER_SEARCH_POSTAL_CODE action object.
* @param {Object} geolocation The geolocation.
* @param {string} [productId=null] An optional product code.
* @param {boolean} [isStoreFinder=false] Was the actions dispatched for the store finder
* @param {boolean} [silent=false] silent app propagation
* @returns {Object}
*/var setUserSearchGeolocation=function setUserSearchGeolocation(geolocation){var productId=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var isStoreFinder=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var silent=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;return{type:SET_USER_SEARCH_GEOLOCATION,geolocation:geolocation,productId:productId,isStoreFinder:isStoreFinder,silent:silent};};export default setUserSearchGeolocation;