@shopgate/pwa-common
Version:
Common library for the Shopgate Connect PWA.
15 lines • 1.26 kB
JavaScript
import{REQUEST_CLIENT_INFORMATION,RECEIVE_CLIENT_INFORMATION,ERROR_CLIENT_INFORMATION,RECEIVE_CLIENT_CONNECTIVITY}from"../../constants/ActionTypes";/**
* Creates the dispatched REQUEST_CLIENT_INFORMATION action object.
* @returns {Object} The dispatched action object.
*/export var requestClientInformation=function requestClientInformation(){return{type:REQUEST_CLIENT_INFORMATION};};/**
* Creates the dispatched RECEIVE_CLIENT_INFORMATION action object.
* @param {Object} data The received client information data.
* @returns {Object} The dispatched action object.
*/export var receiveClientInformation=function receiveClientInformation(data){return{type:RECEIVE_CLIENT_INFORMATION,data:data};};/**
* Creates the dispatched ERROR_CLIENT_INFORMATION action object.
* @returns {Object} The dispatched action object.
*/export var errorClientInformation=function errorClientInformation(){return{type:ERROR_CLIENT_INFORMATION};};/**
* Creates the dispatched RECEIVE_CLIENT_CONNECTIVITY action object.
* @param {Object} data The received client connectivity data.
* @returns {Object} The dispatched action object.
*/export var receiveClientConnectivity=function receiveClientConnectivity(data){return{type:RECEIVE_CLIENT_CONNECTIVITY,data:data};};