@open-tender/cloud 0.0.33 → 0.0.35

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.
@@ -15,7 +15,7 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<i
15
15
  fcmToken: import("..").CustomerFcmTokenState;
16
16
  giftCards: import("..").CustomerGiftCardsState;
17
17
  orders: import("..").CustomerOrdersState;
18
- order: import("../slices/customer/order").CustomerOrderState;
18
+ order: import("..").CustomerOrderState;
19
19
  loyalty: import("..").CustomerLoyaltyState;
20
20
  groupOrders: import("..").CustomerGroupOrdersState;
21
21
  houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
@@ -14,7 +14,7 @@ export declare const appReducer: import("redux").Reducer<import("redux").Combine
14
14
  fcmToken: import("../slices").CustomerFcmTokenState;
15
15
  giftCards: import("../slices").CustomerGiftCardsState;
16
16
  orders: import("../slices").CustomerOrdersState;
17
- order: import("../slices/customer/order").CustomerOrderState;
17
+ order: import("../slices").CustomerOrderState;
18
18
  loyalty: import("../slices").CustomerLoyaltyState;
19
19
  groupOrders: import("../slices").CustomerGroupOrdersState;
20
20
  houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
@@ -66,7 +66,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<import("redux").Co
66
66
  fcmToken: import("../slices").CustomerFcmTokenState;
67
67
  giftCards: import("../slices").CustomerGiftCardsState;
68
68
  orders: import("../slices").CustomerOrdersState;
69
- order: import("../slices/customer/order").CustomerOrderState;
69
+ order: import("../slices").CustomerOrderState;
70
70
  loyalty: import("../slices").CustomerLoyaltyState;
71
71
  groupOrders: import("../slices").CustomerGroupOrdersState;
72
72
  houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
@@ -116,7 +116,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<import("redux").Co
116
116
  fcmToken: import("../slices").CustomerFcmTokenState;
117
117
  giftCards: import("../slices").CustomerGiftCardsState;
118
118
  orders: import("../slices").CustomerOrdersState;
119
- order: import("../slices/customer/order").CustomerOrderState;
119
+ order: import("../slices").CustomerOrderState;
120
120
  loyalty: import("../slices").CustomerLoyaltyState;
121
121
  groupOrders: import("../slices").CustomerGroupOrdersState;
122
122
  houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
@@ -30,3 +30,4 @@ export * from './loyalty';
30
30
  export * from './groupOrders';
31
31
  export * from './rewards';
32
32
  export * from './thanx';
33
+ export * from './order';
@@ -53,3 +53,4 @@ tslib_1.__exportStar(require("./loyalty"), exports);
53
53
  tslib_1.__exportStar(require("./groupOrders"), exports);
54
54
  tslib_1.__exportStar(require("./rewards"), exports);
55
55
  tslib_1.__exportStar(require("./thanx"), exports);
56
+ tslib_1.__exportStar(require("./order"), exports);
@@ -21,5 +21,9 @@ export declare const updateCustomerOrderRating: import("@reduxjs/toolkit").Async
21
21
  rejectValue: RequestError;
22
22
  }>;
23
23
  export declare const resetCustomerOrder: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCustomerOrderError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setCustomerOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
24
- export declare const selectCustomerOrder: (state: AppState) => CustomerOrderState;
24
+ export declare const selectCustomerOrder: (state: AppState) => {
25
+ order: Order | Partial<Order>;
26
+ loading: RequestStatus;
27
+ error: RequestError;
28
+ };
25
29
  export declare const customerOrderReducer: import("redux").Reducer<CustomerOrderState, import("redux").AnyAction>;
@@ -79,6 +79,9 @@ const customerOrderSlice = (0, toolkit_1.createSlice)({
79
79
  }
80
80
  });
81
81
  _a = customerOrderSlice.actions, exports.resetCustomerOrder = _a.resetCustomerOrder, exports.resetCustomerOrderError = _a.resetCustomerOrderError, exports.setCustomerOrder = _a.setCustomerOrder;
82
- const selectCustomerOrder = (state) => state.customer.order;
82
+ const selectCustomerOrder = (state) => {
83
+ const { entity: order, loading, error } = state.customer.order;
84
+ return { order, loading, error };
85
+ };
83
86
  exports.selectCustomerOrder = selectCustomerOrder;
84
87
  exports.customerOrderReducer = customerOrderSlice.reducer;
@@ -15,7 +15,7 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<i
15
15
  fcmToken: import("..").CustomerFcmTokenState;
16
16
  giftCards: import("..").CustomerGiftCardsState;
17
17
  orders: import("..").CustomerOrdersState;
18
- order: import("../slices/customer/order").CustomerOrderState;
18
+ order: import("..").CustomerOrderState;
19
19
  loyalty: import("..").CustomerLoyaltyState;
20
20
  groupOrders: import("..").CustomerGroupOrdersState;
21
21
  houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
@@ -14,7 +14,7 @@ export declare const appReducer: import("redux").Reducer<import("redux").Combine
14
14
  fcmToken: import("../slices").CustomerFcmTokenState;
15
15
  giftCards: import("../slices").CustomerGiftCardsState;
16
16
  orders: import("../slices").CustomerOrdersState;
17
- order: import("../slices/customer/order").CustomerOrderState;
17
+ order: import("../slices").CustomerOrderState;
18
18
  loyalty: import("../slices").CustomerLoyaltyState;
19
19
  groupOrders: import("../slices").CustomerGroupOrdersState;
20
20
  houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
@@ -66,7 +66,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<import("redux").Co
66
66
  fcmToken: import("../slices").CustomerFcmTokenState;
67
67
  giftCards: import("../slices").CustomerGiftCardsState;
68
68
  orders: import("../slices").CustomerOrdersState;
69
- order: import("../slices/customer/order").CustomerOrderState;
69
+ order: import("../slices").CustomerOrderState;
70
70
  loyalty: import("../slices").CustomerLoyaltyState;
71
71
  groupOrders: import("../slices").CustomerGroupOrdersState;
72
72
  houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
@@ -116,7 +116,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<import("redux").Co
116
116
  fcmToken: import("../slices").CustomerFcmTokenState;
117
117
  giftCards: import("../slices").CustomerGiftCardsState;
118
118
  orders: import("../slices").CustomerOrdersState;
119
- order: import("../slices/customer/order").CustomerOrderState;
119
+ order: import("../slices").CustomerOrderState;
120
120
  loyalty: import("../slices").CustomerLoyaltyState;
121
121
  groupOrders: import("../slices").CustomerGroupOrdersState;
122
122
  houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
@@ -30,3 +30,4 @@ export * from './loyalty';
30
30
  export * from './groupOrders';
31
31
  export * from './rewards';
32
32
  export * from './thanx';
33
+ export * from './order';
@@ -49,3 +49,4 @@ export * from './loyalty';
49
49
  export * from './groupOrders';
50
50
  export * from './rewards';
51
51
  export * from './thanx';
52
+ export * from './order';
@@ -21,5 +21,9 @@ export declare const updateCustomerOrderRating: import("@reduxjs/toolkit").Async
21
21
  rejectValue: RequestError;
22
22
  }>;
23
23
  export declare const resetCustomerOrder: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCustomerOrderError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setCustomerOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
24
- export declare const selectCustomerOrder: (state: AppState) => CustomerOrderState;
24
+ export declare const selectCustomerOrder: (state: AppState) => {
25
+ order: Order | Partial<Order>;
26
+ loading: RequestStatus;
27
+ error: RequestError;
28
+ };
25
29
  export declare const customerOrderReducer: import("redux").Reducer<CustomerOrderState, import("redux").AnyAction>;
@@ -75,5 +75,8 @@ const customerOrderSlice = createSlice({
75
75
  }
76
76
  });
77
77
  export const { resetCustomerOrder, resetCustomerOrderError, setCustomerOrder } = customerOrderSlice.actions;
78
- export const selectCustomerOrder = (state) => state.customer.order;
78
+ export const selectCustomerOrder = (state) => {
79
+ const { entity: order, loading, error } = state.customer.order;
80
+ return { order, loading, error };
81
+ };
79
82
  export const customerOrderReducer = customerOrderSlice.reducer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",