@open-tender/cloud 0.0.46 → 0.0.48
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.
|
@@ -18,7 +18,7 @@ export declare enum CheckoutActionType {
|
|
|
18
18
|
export declare const validateOrder: import("@reduxjs/toolkit").AsyncThunk<{
|
|
19
19
|
check: CheckoutCheck;
|
|
20
20
|
errors: any;
|
|
21
|
-
}, Partial<Order
|
|
21
|
+
}, Partial<Order> | undefined, {
|
|
22
22
|
state: AppState;
|
|
23
23
|
rejectValue: any;
|
|
24
24
|
}>;
|
|
@@ -84,4 +84,5 @@ export declare const selectOrderLimits: (state: AppState) => {
|
|
|
84
84
|
orderMaximum: string | number | null;
|
|
85
85
|
};
|
|
86
86
|
export declare const selectCartIds: (state: AppState) => (number | undefined)[];
|
|
87
|
+
export declare const selectCurrentVendor: (state: AppState) => any;
|
|
87
88
|
export declare const orderReducer: import("redux").Reducer<import("immer/dist/internal").WritableDraft<OrderState>, import("redux").AnyAction>;
|
package/dist/cjs/slices/order.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.orderReducer = exports.selectCartIds = exports.selectOrderLimits = exports.selectCanOrder = exports.selectCartTotal = exports.selectCartQuantity = exports.selectOrder = exports.selectTimezone = exports.selectAlert = exports.checkout = exports.setTable = exports.setServiceType = exports.setRevenueCenter = exports.setRequestedAt = exports.setPrepType = exports.setOrderType = exports.setOrderServiceType = exports.setOrderId = exports.setMenuVars = exports.setDeviceType = exports.setCurrentItem = exports.setCurrentCategory = exports.setCurbside = exports.setCart = exports.setAlert = exports.setAddress = exports.resetRevenueCenter = exports.resetOrderType = exports.resetMessages = exports.resetLocation = exports.resetCart = exports.resetAlert = exports.removeMessage = exports.removeItemFromCart = exports.incrementItemInCart = exports.decrementItemInCart = exports.addMessage = exports.addItemToCart = exports.resetOrder = exports.reorderPastOrder = exports.editOrder = exports.refreshRevenueCenter = exports.revertMenu = exports.fetchLocation = exports.fetchRevenueCenter = exports.OrderActionType = void 0;
|
|
4
|
+
exports.orderReducer = exports.selectCurrentVendor = exports.selectCartIds = exports.selectOrderLimits = exports.selectCanOrder = exports.selectCartTotal = exports.selectCartQuantity = exports.selectOrder = exports.selectTimezone = exports.selectAlert = exports.checkout = exports.setTable = exports.setServiceType = exports.setRevenueCenter = exports.setRequestedAt = exports.setPrepType = exports.setOrderType = exports.setOrderServiceType = exports.setOrderId = exports.setMenuVars = exports.setDeviceType = exports.setCurrentItem = exports.setCurrentCategory = exports.setCurbside = exports.setCart = exports.setAlert = exports.setAddress = exports.resetRevenueCenter = exports.resetOrderType = exports.resetMessages = exports.resetLocation = exports.resetCart = exports.resetAlert = exports.removeMessage = exports.removeItemFromCart = exports.incrementItemInCart = exports.decrementItemInCart = exports.addMessage = exports.addItemToCart = exports.resetOrder = exports.reorderPastOrder = exports.editOrder = exports.refreshRevenueCenter = exports.revertMenu = exports.fetchLocation = exports.fetchRevenueCenter = exports.OrderActionType = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
7
7
|
const types_1 = require("./types");
|
|
@@ -467,4 +467,6 @@ const selectCartIds = (state) => {
|
|
|
467
467
|
return state.order.cart ? state.order.cart.map(i => i.id) : [];
|
|
468
468
|
};
|
|
469
469
|
exports.selectCartIds = selectCartIds;
|
|
470
|
+
const selectCurrentVendor = (state) => state.order.currentVendor;
|
|
471
|
+
exports.selectCurrentVendor = selectCurrentVendor;
|
|
470
472
|
exports.orderReducer = orderSlice.reducer;
|
|
@@ -18,7 +18,7 @@ export declare enum CheckoutActionType {
|
|
|
18
18
|
export declare const validateOrder: import("@reduxjs/toolkit").AsyncThunk<{
|
|
19
19
|
check: CheckoutCheck;
|
|
20
20
|
errors: any;
|
|
21
|
-
}, Partial<Order
|
|
21
|
+
}, Partial<Order> | undefined, {
|
|
22
22
|
state: AppState;
|
|
23
23
|
rejectValue: any;
|
|
24
24
|
}>;
|
|
@@ -84,4 +84,5 @@ export declare const selectOrderLimits: (state: AppState) => {
|
|
|
84
84
|
orderMaximum: string | number | null;
|
|
85
85
|
};
|
|
86
86
|
export declare const selectCartIds: (state: AppState) => (number | undefined)[];
|
|
87
|
+
export declare const selectCurrentVendor: (state: AppState) => any;
|
|
87
88
|
export declare const orderReducer: import("redux").Reducer<import("immer/dist/internal").WritableDraft<OrderState>, import("redux").AnyAction>;
|
package/dist/esm/slices/order.js
CHANGED
|
@@ -457,4 +457,5 @@ export const selectOrderLimits = (state) => {
|
|
|
457
457
|
export const selectCartIds = (state) => {
|
|
458
458
|
return state.order.cart ? state.order.cart.map(i => i.id) : [];
|
|
459
459
|
};
|
|
460
|
+
export const selectCurrentVendor = (state) => state.order.currentVendor;
|
|
460
461
|
export const orderReducer = orderSlice.reducer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
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",
|