@open-tender/cloud 0.4.34 → 0.4.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.
@@ -20,7 +20,8 @@ const initialState = {
20
20
  promoCodes: [],
21
21
  surcharges: [],
22
22
  tenders: [],
23
- tip: null
23
+ tip: null,
24
+ token: null
24
25
  },
25
26
  submitting: false,
26
27
  isGuest: false,
@@ -41,7 +42,7 @@ const assembleOrder = (orderData, save = false) => {
41
42
  if (!revenueCenterId || !serviceType || !requestedAt || !cart)
42
43
  return null;
43
44
  const { form, check } = checkout;
44
- const { customer, address, details, surcharges, discounts, promoCodes, points, tenders, tip } = form;
45
+ const { customer, address, details, surcharges, discounts, promoCodes, points, tenders, tip, token } = form;
45
46
  const { deposit = null } = check || {};
46
47
  // const defaultTip = check ? getDefaultTip(check.config) : null
47
48
  const fullAddress = Object.assign(Object.assign({}, order.address), address);
@@ -65,7 +66,8 @@ const assembleOrder = (orderData, save = false) => {
65
66
  table,
66
67
  tenders,
67
68
  tip,
68
- save
69
+ save,
70
+ token
69
71
  };
70
72
  const preparedOrder = (0, utils_1.prepareOrder)(data);
71
73
  return preparedOrder;
@@ -70,6 +70,7 @@ export declare const selectAccountConfig: (state: AppState) => {
70
70
  skip: string;
71
71
  };
72
72
  mobile: string;
73
+ pointsShop: import("@open-tender/types").ConfigContentField;
73
74
  profile: import("@open-tender/types").ConfigContentField;
74
75
  punctuation: string;
75
76
  recentItems: import("@open-tender/types").ConfigContentField;
@@ -16,7 +16,8 @@ const initialState = {
16
16
  promoCodes: [],
17
17
  surcharges: [],
18
18
  tenders: [],
19
- tip: null
19
+ tip: null,
20
+ token: null
20
21
  },
21
22
  submitting: false,
22
23
  isGuest: false,
@@ -37,7 +38,7 @@ const assembleOrder = (orderData, save = false) => {
37
38
  if (!revenueCenterId || !serviceType || !requestedAt || !cart)
38
39
  return null;
39
40
  const { form, check } = checkout;
40
- const { customer, address, details, surcharges, discounts, promoCodes, points, tenders, tip } = form;
41
+ const { customer, address, details, surcharges, discounts, promoCodes, points, tenders, tip, token } = form;
41
42
  const { deposit = null } = check || {};
42
43
  // const defaultTip = check ? getDefaultTip(check.config) : null
43
44
  const fullAddress = Object.assign(Object.assign({}, order.address), address);
@@ -61,7 +62,8 @@ const assembleOrder = (orderData, save = false) => {
61
62
  table,
62
63
  tenders,
63
64
  tip,
64
- save
65
+ save,
66
+ token
65
67
  };
66
68
  const preparedOrder = prepareOrder(data);
67
69
  return preparedOrder;
@@ -70,6 +70,7 @@ export declare const selectAccountConfig: (state: AppState) => {
70
70
  skip: string;
71
71
  };
72
72
  mobile: string;
73
+ pointsShop: import("@open-tender/types").ConfigContentField;
73
74
  profile: import("@open-tender/types").ConfigContentField;
74
75
  punctuation: string;
75
76
  recentItems: import("@open-tender/types").ConfigContentField;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.4.34",
3
+ "version": "0.4.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",
@@ -34,6 +34,8 @@
34
34
  "private": false,
35
35
  "devDependencies": {
36
36
  "@babel/core": "^7.19.1",
37
+ "@open-tender/types": "^0.4.94",
38
+ "@open-tender/utils": "^0.4.68",
37
39
  "@reduxjs/toolkit": "^1.8.5",
38
40
  "@types/react": "^18.0.18",
39
41
  "@types/react-dom": "^18.0.6",
@@ -50,8 +52,8 @@
50
52
  "typescript": "^4.8.2"
51
53
  },
52
54
  "peerDependencies": {
53
- "@open-tender/types": "^0.4.70",
54
- "@open-tender/utils": "^0.4.45",
55
+ "@open-tender/types": "^0.4.94",
56
+ "@open-tender/utils": "^0.4.68",
55
57
  "@reduxjs/toolkit": "^1.8.5",
56
58
  "react": "^18.2.0"
57
59
  },