@open-tender/cloud 0.0.135 → 0.0.136

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.
@@ -36,7 +36,7 @@ var GroupOrderActionType;
36
36
  GroupOrderActionType["AddCustomerGroupOrder"] = "customer/addCustomerGroupOrder";
37
37
  })(GroupOrderActionType = exports.GroupOrderActionType || (exports.GroupOrderActionType = {}));
38
38
  const makeCartPayload = (response, cartGuestId) => {
39
- const { customer = null, closed, cart_id: cartId, token, cart, revenue_center_id: revenueCenterId, service_type: serviceType, requested_at: requestedAt, cutoff_at: cutoffAt, spending_limit: spendingLimit, guest_limit: guestLimit, guest_count: guestCount, cart_guests: cartGuests } = response;
39
+ const { customer = null, closed, cart_id: cartId, token, cart, revenue_center_id: revenueCenterId, service_type: serviceType, requested_at: requestedAt, cutoff_at: cutoffAt, spending_limit: spendingLimit, guest_limit: guestLimit, guest_count: guestCount, cart_guests: cartGuests, } = response;
40
40
  const filteredCart = cartGuestId
41
41
  ? cart.filter(i => i.cart_guest_id === cartGuestId)
42
42
  : cart;
@@ -53,7 +53,7 @@ const makeCartPayload = (response, cartGuestId) => {
53
53
  closed,
54
54
  cartOwner: customer,
55
55
  cart: filteredCart,
56
- cartGuests: cartGuests || []
56
+ cartGuests: cartGuests || [],
57
57
  };
58
58
  };
59
59
  exports.makeCartPayload = makeCartPayload;
@@ -36,7 +36,7 @@ export var GroupOrderActionType;
36
36
  GroupOrderActionType["AddCustomerGroupOrder"] = "customer/addCustomerGroupOrder";
37
37
  })(GroupOrderActionType || (GroupOrderActionType = {}));
38
38
  export const makeCartPayload = (response, cartGuestId) => {
39
- const { customer = null, closed, cart_id: cartId, token, cart, revenue_center_id: revenueCenterId, service_type: serviceType, requested_at: requestedAt, cutoff_at: cutoffAt, spending_limit: spendingLimit, guest_limit: guestLimit, guest_count: guestCount, cart_guests: cartGuests } = response;
39
+ const { customer = null, closed, cart_id: cartId, token, cart, revenue_center_id: revenueCenterId, service_type: serviceType, requested_at: requestedAt, cutoff_at: cutoffAt, spending_limit: spendingLimit, guest_limit: guestLimit, guest_count: guestCount, cart_guests: cartGuests, } = response;
40
40
  const filteredCart = cartGuestId
41
41
  ? cart.filter(i => i.cart_guest_id === cartGuestId)
42
42
  : cart;
@@ -53,7 +53,7 @@ export const makeCartPayload = (response, cartGuestId) => {
53
53
  closed,
54
54
  cartOwner: customer,
55
55
  cart: filteredCart,
56
- cartGuests: cartGuests || []
56
+ cartGuests: cartGuests || [],
57
57
  };
58
58
  };
59
59
  export const joinGroupOrder = createAsyncThunk(GroupOrderActionType.JoinGroupOrder, (requestData, { dispatch, getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.0.135",
3
+ "version": "0.0.136",
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",
@@ -55,7 +55,7 @@
55
55
  "react": "^18.2.0"
56
56
  },
57
57
  "dependencies": {
58
- "@open-tender/types": "^0.0.131",
59
- "@open-tender/utils": "^0.0.63"
58
+ "@open-tender/types": "^0.0.132",
59
+ "@open-tender/utils": "^0.0.64"
60
60
  }
61
61
  }