@tillhub/schemas 6.189.0 → 6.191.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,17 @@
1
+ # [6.191.0](https://github.com/tillhub/schemas/compare/v6.190.0...v6.191.0) (2023-02-06)
2
+
3
+
4
+ ### Features
5
+
6
+ * **delivery_notes:** Delivery address missing on generated delivery PDF ([ba3741b](https://github.com/tillhub/schemas/commit/ba3741b))
7
+
8
+ # [6.190.0](https://github.com/tillhub/schemas/compare/v6.189.0...v6.190.0) (2023-02-06)
9
+
10
+
11
+ ### Features
12
+
13
+ * **branch:** sales print config & currency ([b99cc13](https://github.com/tillhub/schemas/commit/b99cc13))
14
+
1
15
  # [6.189.0](https://github.com/tillhub/schemas/compare/v6.188.0...v6.189.0) (2023-02-02)
2
16
 
3
17
 
@@ -3,7 +3,9 @@ const availableCurrencies = [
3
3
  'USD',
4
4
  'GBP',
5
5
  'CHF',
6
- 'HUF'
6
+ 'HUF',
7
+ 'DKK',
8
+ 'SEK'
7
9
  ]
8
10
 
9
11
  module.exports.available_currency = {
@@ -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: {
@@ -42,6 +42,7 @@ const salespersonConfiguration = {
42
42
  description: 'Defines how the salesperson will be printed, it will not be printed at all if NULL',
43
43
  type: 'string',
44
44
  enum: [
45
+ 'none',
45
46
  'number',
46
47
  'name',
47
48
  'first_name', // first name only
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.189.0",
3
+ "version": "6.191.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",