@tillhub/schemas 6.249.0 → 6.251.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.251.0](https://github.com/tillhub/schemas/compare/v6.250.0...v6.251.0) (2023-08-21)
2
+
3
+
4
+ ### Features
5
+
6
+ * **favourites:** tab ([f775dae](https://github.com/tillhub/schemas/commit/f775dae))
7
+
8
+ # [6.250.0](https://github.com/tillhub/schemas/compare/v6.249.0...v6.250.0) (2023-08-21)
9
+
10
+
11
+ ### Features
12
+
13
+ * **pricebooks:** maximum 5 elements filter ([2c6724b](https://github.com/tillhub/schemas/commit/2c6724b))
14
+
1
15
  # [6.249.0](https://github.com/tillhub/schemas/compare/v6.248.0...v6.249.0) (2023-08-14)
2
16
 
3
17
 
@@ -439,7 +439,10 @@ module.exports = {
439
439
  description: 'Tillhub branch SAP number if available.',
440
440
  example: '000001'
441
441
  })
442
- }
442
+ },
443
+ required: [
444
+ 'store_eain'
445
+ ]
443
446
  })
444
447
  }
445
448
  }),
@@ -41,12 +41,13 @@ const item = {
41
41
  const tab = {
42
42
  type: 'object',
43
43
  properties: {
44
- name: {
45
- oneOf: [
46
- { type: 'string' },
47
- { type: 'null' }
48
- ]
49
- },
44
+ name: oneOf({
45
+ type: 'string',
46
+ maxLength: 128,
47
+ description: 'Name of this favourite-tab.',
48
+ example: 'Drinks',
49
+ default: null
50
+ }),
50
51
  client_id: {
51
52
  type: 'string',
52
53
  format: 'uuid'
@@ -64,7 +65,6 @@ const tab = {
64
65
  }
65
66
  },
66
67
  required: [
67
- 'name',
68
68
  'client_id',
69
69
  'order_index',
70
70
  'items'
@@ -150,7 +150,8 @@ module.exports.prices = {
150
150
  items: {
151
151
  type: 'string',
152
152
  format: 'uuid'
153
- }
153
+ },
154
+ maxItems: 5
154
155
  }
155
156
  }
156
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.249.0",
3
+ "version": "6.251.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",