@tillhub/schemas 6.242.1 → 6.244.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.244.0](https://github.com/tillhub/schemas/compare/v6.243.0...v6.244.0) (2023-08-08)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configurations:** warehub ([0bc99e7](https://github.com/tillhub/schemas/commit/0bc99e7))
7
+
8
+ # [6.243.0](https://github.com/tillhub/schemas/compare/v6.242.1...v6.243.0) (2023-08-07)
9
+
10
+
11
+ ### Features
12
+
13
+ * **configurations:** carts ([cc14566](https://github.com/tillhub/schemas/commit/cc14566))
14
+
1
15
  ## [6.242.1](https://github.com/tillhub/schemas/compare/v6.242.0...v6.242.1) (2023-08-07)
2
16
 
3
17
 
@@ -254,24 +254,7 @@ module.exports = {
254
254
  }
255
255
  ]
256
256
  },
257
- carts: {
258
- anyOf: [
259
- {
260
- type: 'null'
261
- },
262
- {
263
- type: 'object',
264
- additionalProperties: false,
265
- properties: {
266
- clear_confirmation: {
267
- description: 'Specifies if clearing the cart must be confirmed.',
268
- type: 'boolean',
269
- default: true
270
- }
271
- }
272
- }
273
- ]
274
- },
257
+ carts: require('./items/carts'),
275
258
  tips: require('./items/tips'),
276
259
  emails: {
277
260
  anyOf: [
@@ -388,16 +371,7 @@ module.exports = {
388
371
  format: 'date-time',
389
372
  example: '2019-03-17T21:12:04.849Z'
390
373
  },
391
- warehub: {
392
- oneOf: [
393
- {
394
- type: 'null'
395
- },
396
- {
397
- type: 'object'
398
- }
399
- ]
400
- },
374
+ warehub: require('./items/warehub'),
401
375
  tenant: require('./items/tenant'),
402
376
  onboarding: require('./items/onboarding')
403
377
  }
@@ -0,0 +1,22 @@
1
+ const { oneOf } = require('../../../helpers/payload-or-null')
2
+
3
+ module.exports = oneOf({
4
+ type: 'object',
5
+ additionalProperties: false,
6
+ properties: {
7
+ clear_confirmation: oneOf({
8
+ description: 'Specifies if clearing the cart must be confirmed.',
9
+ type: 'boolean',
10
+ default: true
11
+ }),
12
+ item_merge_policy: oneOf({
13
+ description: 'Specifies how newly added products get merged into existing cart items.',
14
+ type: 'string',
15
+ 'enum': [
16
+ 'none', // do not merge (legacy behavior)
17
+ 'full' // always try to merge
18
+ ],
19
+ default: 'full'
20
+ })
21
+ }
22
+ })
@@ -0,0 +1,12 @@
1
+ const { oneOf } = require('../../../helpers/payload-or-null')
2
+
3
+ module.exports = oneOf({
4
+ type: 'object',
5
+ properties: {
6
+ product_match_required: oneOf({
7
+ description: 'If true - allow only barcodes that match an existing product.',
8
+ type: 'boolean',
9
+ default: false
10
+ })
11
+ }
12
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.242.1",
3
+ "version": "6.244.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",