ti2-ventrata 1.0.27 → 1.0.28

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.
package/index.js CHANGED
@@ -24,7 +24,7 @@ const getHeaders = ({
24
24
  ...acceptLanguage ? { 'Accept-Language': acceptLanguage } : {},
25
25
  'Content-Type': 'application/json',
26
26
  ...resellerId ? { Referer: resellerId } : {},
27
- 'Octo-Capabilities': 'octo/pricing,octo/pickups,octo/cart',
27
+ 'Octo-Capabilities': 'octo/pricing,octo/pickups,octo/cart,octo/offers',
28
28
  // 'Octo-Capabilities': 'octo/pricing',
29
29
  });
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-ventrata",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Ventrata's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,6 +29,11 @@ const resolvers = {
29
29
  allDay: R.path(['allDay']),
30
30
  vacancies: R.prop('vacancies'),
31
31
  available: root => root.status !== 'SOLD_OUT',
32
+ offers: root => R.pathOr([], ['offers'], root).map(o => ({
33
+ offerId: o.code,
34
+ title: o.title,
35
+ description: o.description,
36
+ })),
32
37
  // get the starting price
33
38
  pricing: root => R.prop('pricingFrom', root) || R.prop('pricing', root),
34
39
  unitPricing: root => R.prop('unitPricingFrom', root) || R.prop('unitPricing', root),