@tillhub/schemas 6.190.0 → 6.192.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ # [6.192.0](https://github.com/tillhub/schemas/compare/v6.191.0...v6.192.0) (2023-02-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **configurations:** discounts ([9f8ed2c](https://github.com/tillhub/schemas/commit/9f8ed2c))
7
+
8
+
9
+ ### Features
10
+
11
+ * **configurations:** discounts ([67ee1f8](https://github.com/tillhub/schemas/commit/67ee1f8))
12
+
13
+ # [6.191.0](https://github.com/tillhub/schemas/compare/v6.190.0...v6.191.0) (2023-02-06)
14
+
15
+
16
+ ### Features
17
+
18
+ * **delivery_notes:** Delivery address missing on generated delivery PDF ([ba3741b](https://github.com/tillhub/schemas/commit/ba3741b))
19
+
1
20
  # [6.190.0](https://github.com/tillhub/schemas/compare/v6.189.0...v6.190.0) (2023-02-06)
2
21
 
3
22
 
@@ -80,9 +80,9 @@ module.exports = {
80
80
  type: 'object',
81
81
  additionalProperties: false,
82
82
  properties: {
83
- show_inactive: {
83
+ show_inactive: oneOf({
84
84
  type: 'boolean'
85
- }
85
+ })
86
86
  }
87
87
  },
88
88
  {
@@ -1,4 +1,5 @@
1
1
  const { getAddress } = require('../../common/address')
2
+ const { oneOf } = require('../../helpers/payload-or-null')
2
3
 
3
4
  module.exports = {
4
5
  $id: 'https://schemas.tillhub.com/v0/pdfs.templates.delivery_notes.create.schema.json',
@@ -123,7 +124,8 @@ module.exports = {
123
124
  type: 'null'
124
125
  }
125
126
  ]
126
- }
127
+ },
128
+ deliveryAddress: oneOf(getAddress())
127
129
  }
128
130
  },
129
131
  items: {
@@ -43,6 +43,18 @@ module.exports = {
43
43
  type: 'boolean',
44
44
  description: 'If true, non-active discounts will be still displayed (greyed out)',
45
45
  default: false
46
+ }),
47
+ item_details: oneOf({
48
+ description: 'Discount display on cart item details',
49
+ type: 'object',
50
+ additionalProperties: false,
51
+ properties: {
52
+ hide_cart_behavior: oneOf({
53
+ description: 'If true - hide discounts that have the behavior type \'cart\'',
54
+ type: 'boolean',
55
+ default: false
56
+ })
57
+ }
46
58
  })
47
59
  }
48
60
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.190.0",
3
+ "version": "6.192.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",