@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
7 lines • 791 B
JavaScript
import*as pipelines from"../constants/Pipelines";import fetchProducts from"./fetchProducts";/**
* Maybe requests highlight products from server.
* @param {Object} options The options for the fetchProducts request.
* @param {Object} options.params The params for the getHighlightProducts pipeline.
* @param {string} [options.id=null] A unique id for the component that is using this action.
* @return {Function} The dispatched action.
*/var fetchHighlightProducts=function fetchHighlightProducts(_ref){var params=_ref.params,_ref$id=_ref.id,id=_ref$id===void 0?null:_ref$id;return function(dispatch){dispatch(fetchProducts({pipeline:pipelines.SHOPGATE_CATALOG_GET_HIGHLIGHT_PRODUCTS,params:params,id:id,includeSort:true,includeFilters:false}));};};export default fetchHighlightProducts;