@open-tender/cloud
Version:
A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.
69 lines (68 loc) • 3.74 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.customerReducer = void 0;
const tslib_1 = require("tslib");
const redux_1 = require("redux");
const types_1 = require("../types");
const account_1 = require("./account");
const addresses_1 = require("./addresses");
const allergens_1 = require("./allergens");
const communicationPreferences_1 = require("./communicationPreferences");
const creditCards_1 = require("./creditCards");
const favorites_1 = require("./favorites");
const fcmToken_1 = require("./fcmToken");
const giftCards_1 = require("./giftCards");
const groupOrders_1 = require("./groupOrders");
const history_1 = require("./history");
const houseAccounts_1 = require("./houseAccounts");
const loyalty_1 = require("./loyalty");
const order_1 = require("./order");
const orders_1 = require("./orders");
const pointsShop_1 = require("./pointsShop");
const tplsPointsShop_1 = require("./tplsPointsShop");
const qrCode_1 = require("./qrCode");
const rewards_1 = require("./rewards");
const thanx_1 = require("./thanx");
const tpls_1 = require("./tpls");
exports.customerReducer = (0, redux_1.combineReducers)({
[types_1.ReducerType.Account]: account_1.accountReducer,
[types_1.ReducerType.CommunicationPrefs]: communicationPreferences_1.customerCommunicationPrefsReducer,
[types_1.ReducerType.CreditCards]: creditCards_1.customerCreditCardsReducer,
[types_1.ReducerType.CustomerAllergens]: allergens_1.customerAllergensReducer,
[types_1.ReducerType.CustomerAddresses]: addresses_1.customerAddressesReducer,
[types_1.ReducerType.Favorites]: favorites_1.customerFavoritesReducer,
[types_1.ReducerType.FcmToken]: fcmToken_1.customerFcmTokenReducer,
[types_1.ReducerType.GiftCards]: giftCards_1.customerGiftCardsReducer,
[types_1.ReducerType.GroupOrders]: groupOrders_1.customerGroupOrdersReducer,
[types_1.ReducerType.History]: history_1.customerHistoryReducer,
[types_1.ReducerType.HouseAccounts]: houseAccounts_1.customerHouseAccountsReducer,
[types_1.ReducerType.Loyalty]: loyalty_1.customerLoyaltyReducer,
[types_1.ReducerType.Order]: order_1.customerOrderReducer,
[types_1.ReducerType.Orders]: orders_1.customerOrdersReducer,
[types_1.ReducerType.PointsShop]: pointsShop_1.pointsShopReducer,
[types_1.ReducerType.TplsPointsShop]: tplsPointsShop_1.tplsPointsShopReducer,
[types_1.ReducerType.QRCode]: qrCode_1.customerQRCodeReducer,
[types_1.ReducerType.Rewards]: rewards_1.customerRewardsReducer,
[types_1.ReducerType.Thanx]: thanx_1.customerThanxReducer,
[types_1.ReducerType.Tpls]: tpls_1.customerTplsReducer
});
tslib_1.__exportStar(require("./account"), exports);
tslib_1.__exportStar(require("./addresses"), exports);
tslib_1.__exportStar(require("./allergens"), exports);
tslib_1.__exportStar(require("./communicationPreferences"), exports);
tslib_1.__exportStar(require("./creditCards"), exports);
tslib_1.__exportStar(require("./favorites"), exports);
tslib_1.__exportStar(require("./fcmToken"), exports);
tslib_1.__exportStar(require("./giftCards"), exports);
tslib_1.__exportStar(require("./groupOrders"), exports);
tslib_1.__exportStar(require("./history"), exports);
tslib_1.__exportStar(require("./houseAccounts"), exports);
tslib_1.__exportStar(require("./loyalty"), exports);
tslib_1.__exportStar(require("./order"), exports);
tslib_1.__exportStar(require("./orders"), exports);
tslib_1.__exportStar(require("./pointsShop"), exports);
tslib_1.__exportStar(require("./qrCode"), exports);
tslib_1.__exportStar(require("./rewards"), exports);
tslib_1.__exportStar(require("./thanx"), exports);
tslib_1.__exportStar(require("./tpls"), exports);
tslib_1.__exportStar(require("./tplsPointsShop"), exports);