@tillhub/schemas 6.259.0 → 6.260.1

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.260.1](https://github.com/tillhub/schemas/compare/v6.260.0...v6.260.1) (2023-09-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **configurations:** features ([5f88fb5](https://github.com/tillhub/schemas/commit/5f88fb5))
7
+
8
+ # [6.260.0](https://github.com/tillhub/schemas/compare/v6.259.0...v6.260.0) (2023-09-13)
9
+
10
+
11
+ ### Features
12
+
13
+ * **configurations:** restrictions ([85b347b](https://github.com/tillhub/schemas/commit/85b347b))
14
+
1
15
  # [6.259.0](https://github.com/tillhub/schemas/compare/v6.258.0...v6.259.0) (2023-09-12)
2
16
 
3
17
 
@@ -12,16 +12,7 @@ module.exports = {
12
12
  }
13
13
  ]
14
14
  },
15
- vouchers: {
16
- oneOf: [
17
- {
18
- type: 'object'
19
- },
20
- {
21
- type: 'null'
22
- }
23
- ]
24
- },
15
+ vouchers: require('./items/vouchers'),
25
16
  scan_prefixes: require('./items/scan_prefixes'),
26
17
  voucher_actions: require('./items/voucher_actions'),
27
18
  expenses_deposits: oneOf({
@@ -17,6 +17,47 @@ module.exports = oneOf({
17
17
  'full' // always try to merge
18
18
  ],
19
19
  default: 'full'
20
+ }),
21
+ sale: oneOf({
22
+ type: 'object',
23
+ description: 'Specifies conditions on a regular sale.',
24
+ additionalProperties: false,
25
+ properties: {
26
+ items: oneOf({
27
+ type: 'object',
28
+ additionalProperties: false,
29
+ properties: {
30
+ allow_negative_quantity: oneOf({
31
+ description: 'Specifies if items can have negative quantities when doing a regular sale.',
32
+ type: 'boolean',
33
+ default: true
34
+ })
35
+ }
36
+ })
37
+ }
38
+ }),
39
+ refund: oneOf({
40
+ type: 'object',
41
+ additionalProperties: false,
42
+ description: 'Specifies conditions on a refund.',
43
+ properties: {
44
+ immutable: oneOf({
45
+ description: 'In case of refund - specifies if modicications are forbidden',
46
+ type: 'boolean',
47
+ default: false
48
+ }),
49
+ items: oneOf({
50
+ type: 'object',
51
+ additionalProperties: false,
52
+ properties: {
53
+ allow_editing: oneOf({
54
+ description: 'In case of refund items - specifies if quantity and price can be edited',
55
+ type: 'boolean',
56
+ default: false
57
+ })
58
+ }
59
+ })
60
+ }
20
61
  })
21
62
  }
22
63
  })
@@ -18,7 +18,7 @@ const TimeInterval = {
18
18
  value: {
19
19
  description: 'The value of the interval, defines a timeframe together with the set unit.',
20
20
  type: 'integer',
21
- minimum: 1,
21
+ minimum: 0,
22
22
  maximum: 500,
23
23
  default: 2
24
24
  }
@@ -551,6 +551,20 @@ module.exports = {
551
551
  }
552
552
  }
553
553
  },
554
+ staff: oneOf({ // LEGACY MAX NEBL STYLE, controls search AND regular download - no separation as of late 2023
555
+ type: 'object',
556
+ additionalProperties: false,
557
+ properties: {
558
+ online_search: oneOf({
559
+ description: 'Unlike the name suggests - controls adding a branch-parameter to sync and search calls',
560
+ type: 'string',
561
+ enum: [
562
+ 'per_location'
563
+ ],
564
+ default: null // results in ignoring branch-paramneters in sync and search calls
565
+ })
566
+ }
567
+ }),
554
568
  staffs: {
555
569
  type: 'object',
556
570
  additionalProperties: false,
@@ -0,0 +1,17 @@
1
+ const { oneOf } = require('../../../helpers/payload-or-null')
2
+
3
+ module.exports = oneOf({
4
+ type: 'object',
5
+ properties: {
6
+ enabled: oneOf({
7
+ description: 'global on-off-switch for the vouchers-feature',
8
+ type: 'boolean',
9
+ default: false
10
+ }),
11
+ allow_cart_redemption: oneOf({
12
+ description: 'Specifies if vouchers can be redeemed as cart items with negative quantity.',
13
+ type: 'boolean',
14
+ default: true
15
+ })
16
+ }
17
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.259.0",
3
+ "version": "6.260.1",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",