@open-tender/utils 0.4.84 → 0.4.86

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.
@@ -229,6 +229,8 @@ const makeOrderItemGroups = (optionGroups, isEdit, soldOut = []) => {
229
229
  name: o.name,
230
230
  nutritionalInfo: o.nutritional_info,
231
231
  points: o.points || 0,
232
+ // @ts-ignore
233
+ pos_ext_id: o.pos_ext_id,
232
234
  price: parseFloat(o.price),
233
235
  quantity: quantity,
234
236
  shorthand: o.shorthand,
@@ -293,6 +295,8 @@ const makeOrderItem = (item, isEdit, soldOut = [], simpleItem, hasPoints = false
293
295
  notes: simpleItem ? simpleItem.notes || null : null,
294
296
  nutritionalInfo: item.nutritional_info,
295
297
  points: hasPoints ? item.points || null : null,
298
+ // @ts-ignore
299
+ pos_ext_id: item.pos_ext_id,
296
300
  price: parseFloat(item.price),
297
301
  quantity: item.min_quantity || 1 * item.increment,
298
302
  shorthand: item.shorthand,
@@ -95,7 +95,7 @@ const makeNotAcceptingOrdersMsg = (serviceType) => {
95
95
  if (!serviceTypeName) {
96
96
  return 'This location is not currently accepting orders.';
97
97
  }
98
- return `This location is not currently accepting ${serviceTypeName.toLowerCase()} orders. Please try switching to a different order type.`;
98
+ return `This location is not currently accepting ${serviceTypeName.toLowerCase()} orders.`;
99
99
  };
100
100
  exports.makeNotAcceptingOrdersMsg = makeNotAcceptingOrdersMsg;
101
101
  const makeRevenueCenterMsg = (revenueCenter, serviceType, requestedAt, statusMessages) => {
@@ -214,6 +214,8 @@ const makeOrderItemGroups = (optionGroups, isEdit, soldOut = []) => {
214
214
  name: o.name,
215
215
  nutritionalInfo: o.nutritional_info,
216
216
  points: o.points || 0,
217
+ // @ts-ignore
218
+ pos_ext_id: o.pos_ext_id,
217
219
  price: parseFloat(o.price),
218
220
  quantity: quantity,
219
221
  shorthand: o.shorthand,
@@ -278,6 +280,8 @@ export const makeOrderItem = (item, isEdit, soldOut = [], simpleItem, hasPoints
278
280
  notes: simpleItem ? simpleItem.notes || null : null,
279
281
  nutritionalInfo: item.nutritional_info,
280
282
  points: hasPoints ? item.points || null : null,
283
+ // @ts-ignore
284
+ pos_ext_id: item.pos_ext_id,
281
285
  price: parseFloat(item.price),
282
286
  quantity: item.min_quantity || 1 * item.increment,
283
287
  shorthand: item.shorthand,
@@ -87,7 +87,7 @@ export const makeNotAcceptingOrdersMsg = (serviceType) => {
87
87
  if (!serviceTypeName) {
88
88
  return 'This location is not currently accepting orders.';
89
89
  }
90
- return `This location is not currently accepting ${serviceTypeName.toLowerCase()} orders. Please try switching to a different order type.`;
90
+ return `This location is not currently accepting ${serviceTypeName.toLowerCase()} orders.`;
91
91
  };
92
92
  export const makeRevenueCenterMsg = (revenueCenter, serviceType, requestedAt, statusMessages) => {
93
93
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.4.84",
3
+ "version": "0.4.86",
4
4
  "description": "A library of utils 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",
@@ -36,7 +36,7 @@
36
36
  "private": false,
37
37
  "devDependencies": {
38
38
  "@emotion/react": "^11.10.4",
39
- "@open-tender/types": "^0.4.118",
39
+ "@open-tender/types": "^0.4.124",
40
40
  "@reduxjs/toolkit": "^1.8.5",
41
41
  "@types/google.maps": "^3.53.5",
42
42
  "@types/jest": "^29.5.11",
@@ -58,7 +58,7 @@
58
58
  "typescript": "^4.8.2"
59
59
  },
60
60
  "peerDependencies": {
61
- "@open-tender/types": "^0.4.94",
61
+ "@open-tender/types": "^0.4.124",
62
62
  "@reduxjs/toolkit": "^1.8.5",
63
63
  "react": "^18.2.0"
64
64
  },
@@ -66,5 +66,5 @@
66
66
  "date-fns": "^2.29.3",
67
67
  "date-fns-tz": "^1.3.7"
68
68
  },
69
- "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
69
+ "packageManager": "yarn@1.22.22"
70
70
  }