@open-tender/store 1.0.8 → 1.0.9

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.
@@ -8,7 +8,7 @@ export interface CheckoutState {
8
8
  completedOrder: Order | null;
9
9
  customer: CustomerCheckout | null;
10
10
  discounts: OrderCreateDiscounts;
11
- error: any | null;
11
+ error: RequestError;
12
12
  giftCards: OrderCreateGiftCards;
13
13
  identifying: RequestStatus;
14
14
  isTaxExempt: boolean;
@@ -222,16 +222,6 @@ exports.selectCartTotal = (0, toolkit_1.createSelector)(function (state) {
222
222
  return 0.0;
223
223
  return cart.reduce(function (t, i) { return (t += i.totalPrice || 0); }, 0.0);
224
224
  });
225
- // export const selectCartTotals = createSelector(
226
- // (state: AppState) => {
227
- // const count = selectCartQuantity(state)
228
- // const total = selectCartTotal(state)
229
- // return { count, total }
230
- // },
231
- // ({ count, total }) => {
232
- // return { count, total }
233
- // }
234
- // )
235
225
  exports.selectCartTotals = (0, toolkit_1.createSelector)(function (state) {
236
226
  var cart = state.order.cart;
237
227
  return cart;
@@ -8,7 +8,7 @@ export interface CheckoutState {
8
8
  completedOrder: Order | null;
9
9
  customer: CustomerCheckout | null;
10
10
  discounts: OrderCreateDiscounts;
11
- error: any | null;
11
+ error: RequestError;
12
12
  giftCards: OrderCreateGiftCards;
13
13
  identifying: RequestStatus;
14
14
  isTaxExempt: boolean;
@@ -203,16 +203,6 @@ export var selectCartTotal = createSelector(function (state) {
203
203
  return 0.0;
204
204
  return cart.reduce(function (t, i) { return (t += i.totalPrice || 0); }, 0.0);
205
205
  });
206
- // export const selectCartTotals = createSelector(
207
- // (state: AppState) => {
208
- // const count = selectCartQuantity(state)
209
- // const total = selectCartTotal(state)
210
- // return { count, total }
211
- // },
212
- // ({ count, total }) => {
213
- // return { count, total }
214
- // }
215
- // )
216
206
  export var selectCartTotals = createSelector(function (state) {
217
207
  var cart = state.order.cart;
218
208
  return cart;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
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",