@open-tender/store 1.1.164 → 1.1.165
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -164,7 +164,7 @@ export declare const activateGiftCards: import("@reduxjs/toolkit").AsyncThunk<an
|
|
|
164
164
|
fulfilledMeta?: unknown;
|
|
165
165
|
rejectedMeta?: unknown;
|
|
166
166
|
}>;
|
|
167
|
-
export declare const resetPosCheckout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheckout">, resetPosCheck: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheck">, handleCheckoutError: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/handleCheckoutError">, addGiftCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addGiftCard">, removeGiftCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeGiftCard">, addSurcharge: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateSurcharge, "checkout/addSurcharge">, removeSurcharge: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateSurcharge, "checkout/removeSurcharge">, addDiscount: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateDiscount, "checkout/addDiscount">, removeDiscount: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateDiscount, "checkout/removeDiscount">, addTax: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addTax">, removeTax: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeTax">, addTip: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addTip">, removeTip: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/removeTip">, setTaxExempt: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setTaxExempt">, addCustomer: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addCustomer">, removeCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/removeCustomer">, setPendingDiscounts: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPendingDiscounts">, setPoints: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPoints">, setMadeFor: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setMadeFor">, setPhone: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPhone">;
|
|
167
|
+
export declare const resetPosCheckout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheckout">, resetPosCheck: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheck">, resetPosCheckError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheckError">, handleCheckoutError: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/handleCheckoutError">, addGiftCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addGiftCard">, removeGiftCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeGiftCard">, addSurcharge: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateSurcharge, "checkout/addSurcharge">, removeSurcharge: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateSurcharge, "checkout/removeSurcharge">, addDiscount: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateDiscount, "checkout/addDiscount">, removeDiscount: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateDiscount, "checkout/removeDiscount">, addTax: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addTax">, removeTax: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeTax">, addTip: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addTip">, removeTip: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/removeTip">, setTaxExempt: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setTaxExempt">, addCustomer: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addCustomer">, removeCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/removeCustomer">, setPendingDiscounts: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPendingDiscounts">, setPoints: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPoints">, setMadeFor: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setMadeFor">, setPhone: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPhone">;
|
|
168
168
|
export declare const selectPosCheckout: (state: AppState) => CheckoutState;
|
|
169
169
|
export declare const selectPosCheck: (state: AppState) => Order | null;
|
|
170
170
|
export declare const selectPosCustomer: (state: AppState) => CustomerIdentify | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.checkoutReducer = exports.selectPosCheckTenders = exports.selectPosCheckTotal = exports.selectPosCheckSubtotal = exports.selectPosAmountDue = exports.selectPosPendingDiscounts = exports.selectPosCustomerNameShort = exports.selectPosCustomerName = exports.selectPosCustomer = exports.selectPosCheck = exports.selectPosCheckout = exports.setPhone = exports.setMadeFor = exports.setPoints = exports.setPendingDiscounts = exports.removeCustomer = exports.addCustomer = exports.setTaxExempt = exports.removeTip = exports.addTip = exports.removeTax = exports.addTax = exports.removeDiscount = exports.addDiscount = exports.removeSurcharge = exports.addSurcharge = exports.removeGiftCard = exports.addGiftCard = exports.handleCheckoutError = exports.resetPosCheck = exports.resetPosCheckout = exports.activateGiftCards = exports.voidPosOrder = exports.submitPosOrder = exports.validatePosOrder = exports.addCreditTender = exports.completeChipDNA = exports.identifyCustomer = exports.updateCart = exports.updateTender = exports.removeTender = exports.addTender = exports.addPromoCode = exports.CheckoutActionType = exports.prepareOrder = void 0;
|
|
4
|
+
exports.checkoutReducer = exports.selectPosCheckTenders = exports.selectPosCheckTotal = exports.selectPosCheckSubtotal = exports.selectPosAmountDue = exports.selectPosPendingDiscounts = exports.selectPosCustomerNameShort = exports.selectPosCustomerName = exports.selectPosCustomer = exports.selectPosCheck = exports.selectPosCheckout = exports.setPhone = exports.setMadeFor = exports.setPoints = exports.setPendingDiscounts = exports.removeCustomer = exports.addCustomer = exports.setTaxExempt = exports.removeTip = exports.addTip = exports.removeTax = exports.addTax = exports.removeDiscount = exports.addDiscount = exports.removeSurcharge = exports.addSurcharge = exports.removeGiftCard = exports.addGiftCard = exports.handleCheckoutError = exports.resetPosCheckError = exports.resetPosCheck = exports.resetPosCheckout = exports.activateGiftCards = exports.voidPosOrder = exports.submitPosOrder = exports.validatePosOrder = exports.addCreditTender = exports.completeChipDNA = exports.identifyCustomer = exports.updateCart = exports.updateTender = exports.removeTender = exports.addTender = exports.addPromoCode = exports.CheckoutActionType = exports.prepareOrder = void 0;
|
|
5
5
|
var tslib_1 = require("tslib");
|
|
6
6
|
var utils_1 = require("@open-tender/utils");
|
|
7
7
|
var toolkit_1 = require("@reduxjs/toolkit");
|
|
@@ -471,6 +471,10 @@ var checkoutSlice = (0, toolkit_1.createSlice)({
|
|
|
471
471
|
state.loading = 'idle';
|
|
472
472
|
state.error = null;
|
|
473
473
|
},
|
|
474
|
+
resetPosCheckError: function (state) {
|
|
475
|
+
state.loading = 'idle';
|
|
476
|
+
state.error = null;
|
|
477
|
+
},
|
|
474
478
|
handleCheckoutError: function (state, action) {
|
|
475
479
|
var _a = action.payload, key = _a[0], errors = _a[1];
|
|
476
480
|
var index = typeof errors === 'string' ? 0 : errors[0].index;
|
|
@@ -713,7 +717,7 @@ var checkoutSlice = (0, toolkit_1.createSlice)({
|
|
|
713
717
|
});
|
|
714
718
|
}
|
|
715
719
|
});
|
|
716
|
-
exports.resetPosCheckout = (_a = checkoutSlice.actions, _a.resetPosCheckout), exports.resetPosCheck = _a.resetPosCheck, exports.handleCheckoutError = _a.handleCheckoutError, exports.addGiftCard = _a.addGiftCard, exports.removeGiftCard = _a.removeGiftCard, exports.addSurcharge = _a.addSurcharge, exports.removeSurcharge = _a.removeSurcharge, exports.addDiscount = _a.addDiscount, exports.removeDiscount = _a.removeDiscount, exports.addTax = _a.addTax, exports.removeTax = _a.removeTax, exports.addTip = _a.addTip, exports.removeTip = _a.removeTip, exports.setTaxExempt = _a.setTaxExempt, exports.addCustomer = _a.addCustomer, exports.removeCustomer = _a.removeCustomer, exports.setPendingDiscounts = _a.setPendingDiscounts, exports.setPoints = _a.setPoints, exports.setMadeFor = _a.setMadeFor, exports.setPhone = _a.setPhone;
|
|
720
|
+
exports.resetPosCheckout = (_a = checkoutSlice.actions, _a.resetPosCheckout), exports.resetPosCheck = _a.resetPosCheck, exports.resetPosCheckError = _a.resetPosCheckError, exports.handleCheckoutError = _a.handleCheckoutError, exports.addGiftCard = _a.addGiftCard, exports.removeGiftCard = _a.removeGiftCard, exports.addSurcharge = _a.addSurcharge, exports.removeSurcharge = _a.removeSurcharge, exports.addDiscount = _a.addDiscount, exports.removeDiscount = _a.removeDiscount, exports.addTax = _a.addTax, exports.removeTax = _a.removeTax, exports.addTip = _a.addTip, exports.removeTip = _a.removeTip, exports.setTaxExempt = _a.setTaxExempt, exports.addCustomer = _a.addCustomer, exports.removeCustomer = _a.removeCustomer, exports.setPendingDiscounts = _a.setPendingDiscounts, exports.setPoints = _a.setPoints, exports.setMadeFor = _a.setMadeFor, exports.setPhone = _a.setPhone;
|
|
717
721
|
var selectPosCheckout = function (state) { return state.checkout; };
|
|
718
722
|
exports.selectPosCheckout = selectPosCheckout;
|
|
719
723
|
var selectPosCheck = function (state) { return state.checkout.check; };
|
|
@@ -164,7 +164,7 @@ export declare const activateGiftCards: import("@reduxjs/toolkit").AsyncThunk<an
|
|
|
164
164
|
fulfilledMeta?: unknown;
|
|
165
165
|
rejectedMeta?: unknown;
|
|
166
166
|
}>;
|
|
167
|
-
export declare const resetPosCheckout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheckout">, resetPosCheck: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheck">, handleCheckoutError: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/handleCheckoutError">, addGiftCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addGiftCard">, removeGiftCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeGiftCard">, addSurcharge: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateSurcharge, "checkout/addSurcharge">, removeSurcharge: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateSurcharge, "checkout/removeSurcharge">, addDiscount: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateDiscount, "checkout/addDiscount">, removeDiscount: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateDiscount, "checkout/removeDiscount">, addTax: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addTax">, removeTax: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeTax">, addTip: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addTip">, removeTip: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/removeTip">, setTaxExempt: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setTaxExempt">, addCustomer: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addCustomer">, removeCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/removeCustomer">, setPendingDiscounts: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPendingDiscounts">, setPoints: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPoints">, setMadeFor: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setMadeFor">, setPhone: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPhone">;
|
|
167
|
+
export declare const resetPosCheckout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheckout">, resetPosCheck: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheck">, resetPosCheckError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheckError">, handleCheckoutError: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/handleCheckoutError">, addGiftCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addGiftCard">, removeGiftCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeGiftCard">, addSurcharge: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateSurcharge, "checkout/addSurcharge">, removeSurcharge: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateSurcharge, "checkout/removeSurcharge">, addDiscount: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateDiscount, "checkout/addDiscount">, removeDiscount: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrderCreateDiscount, "checkout/removeDiscount">, addTax: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addTax">, removeTax: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeTax">, addTip: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addTip">, removeTip: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/removeTip">, setTaxExempt: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setTaxExempt">, addCustomer: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addCustomer">, removeCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/removeCustomer">, setPendingDiscounts: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPendingDiscounts">, setPoints: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPoints">, setMadeFor: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setMadeFor">, setPhone: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPhone">;
|
|
168
168
|
export declare const selectPosCheckout: (state: AppState) => CheckoutState;
|
|
169
169
|
export declare const selectPosCheck: (state: AppState) => Order | null;
|
|
170
170
|
export declare const selectPosCustomer: (state: AppState) => CustomerIdentify | null;
|
|
@@ -467,6 +467,10 @@ var checkoutSlice = createSlice({
|
|
|
467
467
|
state.loading = 'idle';
|
|
468
468
|
state.error = null;
|
|
469
469
|
},
|
|
470
|
+
resetPosCheckError: function (state) {
|
|
471
|
+
state.loading = 'idle';
|
|
472
|
+
state.error = null;
|
|
473
|
+
},
|
|
470
474
|
handleCheckoutError: function (state, action) {
|
|
471
475
|
var _a = action.payload, key = _a[0], errors = _a[1];
|
|
472
476
|
var index = typeof errors === 'string' ? 0 : errors[0].index;
|
|
@@ -709,7 +713,7 @@ var checkoutSlice = createSlice({
|
|
|
709
713
|
});
|
|
710
714
|
}
|
|
711
715
|
});
|
|
712
|
-
export var resetPosCheckout = (_a = checkoutSlice.actions, _a.resetPosCheckout), resetPosCheck = _a.resetPosCheck, handleCheckoutError = _a.handleCheckoutError, addGiftCard = _a.addGiftCard, removeGiftCard = _a.removeGiftCard, addSurcharge = _a.addSurcharge, removeSurcharge = _a.removeSurcharge, addDiscount = _a.addDiscount, removeDiscount = _a.removeDiscount, addTax = _a.addTax, removeTax = _a.removeTax, addTip = _a.addTip, removeTip = _a.removeTip, setTaxExempt = _a.setTaxExempt, addCustomer = _a.addCustomer, removeCustomer = _a.removeCustomer, setPendingDiscounts = _a.setPendingDiscounts, setPoints = _a.setPoints, setMadeFor = _a.setMadeFor, setPhone = _a.setPhone;
|
|
716
|
+
export var resetPosCheckout = (_a = checkoutSlice.actions, _a.resetPosCheckout), resetPosCheck = _a.resetPosCheck, resetPosCheckError = _a.resetPosCheckError, handleCheckoutError = _a.handleCheckoutError, addGiftCard = _a.addGiftCard, removeGiftCard = _a.removeGiftCard, addSurcharge = _a.addSurcharge, removeSurcharge = _a.removeSurcharge, addDiscount = _a.addDiscount, removeDiscount = _a.removeDiscount, addTax = _a.addTax, removeTax = _a.removeTax, addTip = _a.addTip, removeTip = _a.removeTip, setTaxExempt = _a.setTaxExempt, addCustomer = _a.addCustomer, removeCustomer = _a.removeCustomer, setPendingDiscounts = _a.setPendingDiscounts, setPoints = _a.setPoints, setMadeFor = _a.setMadeFor, setPhone = _a.setPhone;
|
|
713
717
|
export var selectPosCheckout = function (state) { return state.checkout; };
|
|
714
718
|
export var selectPosCheck = function (state) { return state.checkout.check; };
|
|
715
719
|
export var selectPosCustomer = function (state) { return state.checkout.customer; };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.165",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|