@shopgate/engage
Version:
Shopgate's ENGAGE library.
11 lines • 796 B
JavaScript
import{APP_RATING_INCREASE_REJECTION_COUNT,APP_RATING_SET_ALREADY_RATED,APP_RATING_SET_LAST_POPUP_TIMESTAMP}from"../constants";/**
* Sets the last popup timestamp
* @return {Object} The dispatched action object.
*/export var setLastPopupTimestamp=function setLastPopupTimestamp(){return{type:APP_RATING_SET_LAST_POPUP_TIMESTAMP};};/**
* Sets the last popup timestamp
* @return {Object} The dispatched action object.
*/export var increaseRejectionCount=function increaseRejectionCount(){return{type:APP_RATING_INCREASE_REJECTION_COUNT};};/**
* Sets the last popup timestamp
* @param {boolean} to the value to set the rated status
* @return {Object} The dispatched action object.
*/export var setAlreadyRated=function setAlreadyRated(to){return{type:APP_RATING_SET_ALREADY_RATED,to:to};};