@open-tender/cloud 0.0.61 → 0.0.62

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.
@@ -72,7 +72,11 @@ export declare const reorderPastOrder: import("@reduxjs/toolkit").AsyncThunk<voi
72
72
  state: AppState;
73
73
  rejectValue: RequestError;
74
74
  }>;
75
- export declare const resetOrder: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, addItemToCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, addMessage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, decrementItemInCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, incrementItemInCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, removeItemFromCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, removeMessage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, resetAlert: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCart: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetLocation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetMessages: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOrderType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetRevenueCenter: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setAddress: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setAlert: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurbside: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurrentCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurrentItem: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setDeviceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setMenuVars: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setOrderId: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setOrderServiceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setOrderType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setPrepType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setRequestedAt: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setRevenueCenter: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setServiceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setTable: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, checkout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setCurrentVendor: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
75
+ export declare const resetOrder: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, addItemToCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, addMessage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, decrementItemInCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, incrementItemInCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, removeItemFromCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, removeMessage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, resetAlert: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCart: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetLocation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetMessages: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOrderType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetRevenueCenter: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setAddress: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setAlert: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurbside: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurrentCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurrentItem: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setDeviceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setMenuVars: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setOrderId: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setOrderServiceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
76
+ orderType: OrderType;
77
+ serviceType: ServiceType;
78
+ isOutpost?: boolean | undefined;
79
+ }, string>, setOrderType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setPrepType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setRequestedAt: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setRevenueCenter: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setServiceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setTable: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, checkout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setCurrentVendor: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
76
80
  export declare const selectAlert: (state: AppState) => any;
77
81
  export declare const selectTimezone: (state: AppState) => string;
78
82
  export declare const selectOrder: (state: AppState) => import("immer/dist/internal").WritableDraft<OrderState>;
@@ -249,7 +249,7 @@ const orderSlice = (0, toolkit_1.createSlice)({
249
249
  state.serviceType = action.payload;
250
250
  },
251
251
  setOrderServiceType: (state, action) => {
252
- state = Object.assign(Object.assign({}, state), action.payload);
252
+ return Object.assign(Object.assign({}, state), action.payload);
253
253
  },
254
254
  setCurbside: (state, action) => {
255
255
  state.isCurbside = action.payload;
@@ -72,7 +72,11 @@ export declare const reorderPastOrder: import("@reduxjs/toolkit").AsyncThunk<voi
72
72
  state: AppState;
73
73
  rejectValue: RequestError;
74
74
  }>;
75
- export declare const resetOrder: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, addItemToCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, addMessage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, decrementItemInCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, incrementItemInCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, removeItemFromCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, removeMessage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, resetAlert: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCart: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetLocation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetMessages: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOrderType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetRevenueCenter: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setAddress: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setAlert: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurbside: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurrentCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurrentItem: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setDeviceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setMenuVars: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setOrderId: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setOrderServiceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setOrderType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setPrepType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setRequestedAt: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setRevenueCenter: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setServiceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setTable: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, checkout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setCurrentVendor: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
75
+ export declare const resetOrder: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, addItemToCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, addMessage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, decrementItemInCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, incrementItemInCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, removeItemFromCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, removeMessage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, resetAlert: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCart: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetLocation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetMessages: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOrderType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetRevenueCenter: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setAddress: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setAlert: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurbside: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurrentCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurrentItem: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setDeviceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setMenuVars: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setOrderId: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setOrderServiceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
76
+ orderType: OrderType;
77
+ serviceType: ServiceType;
78
+ isOutpost?: boolean | undefined;
79
+ }, string>, setOrderType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setPrepType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setRequestedAt: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setRevenueCenter: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setServiceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setTable: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, checkout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setCurrentVendor: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
76
80
  export declare const selectAlert: (state: AppState) => any;
77
81
  export declare const selectTimezone: (state: AppState) => string;
78
82
  export declare const selectOrder: (state: AppState) => import("immer/dist/internal").WritableDraft<OrderState>;
@@ -244,7 +244,7 @@ const orderSlice = createSlice({
244
244
  state.serviceType = action.payload;
245
245
  },
246
246
  setOrderServiceType: (state, action) => {
247
- state = Object.assign(Object.assign({}, state), action.payload);
247
+ return Object.assign(Object.assign({}, state), action.payload);
248
248
  },
249
249
  setCurbside: (state, action) => {
250
250
  state.isCurbside = action.payload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
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",