@tillhub/schemas 6.288.0 → 6.289.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,10 @@
|
|
|
1
|
+
# [6.289.0](https://github.com/tillhub/schemas/compare/v6.288.0...v6.289.0) (2024-02-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **configurations:** settings ([6517c36](https://github.com/tillhub/schemas/commit/6517c36))
|
|
7
|
+
|
|
1
8
|
# [6.288.0](https://github.com/tillhub/schemas/compare/v6.287.0...v6.288.0) (2024-02-09)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -63,18 +63,30 @@ module.exports = {
|
|
|
63
63
|
type: 'boolean',
|
|
64
64
|
default: false
|
|
65
65
|
},
|
|
66
|
-
|
|
67
|
-
type: '
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
66
|
+
barcode_capture: oneOf({
|
|
67
|
+
type: 'object',
|
|
68
|
+
description: 'Defines optional customer number extraction from a scanned barcode',
|
|
69
|
+
additionalProperties: false,
|
|
70
|
+
properties: {
|
|
71
|
+
enabled: {
|
|
72
|
+
description: 'Defines if customer number capturing should be tried',
|
|
73
|
+
type: 'boolean'
|
|
74
|
+
},
|
|
75
|
+
pattern: {
|
|
76
|
+
description: 'Defines how a customer number can be extracted from a scanned barcode',
|
|
77
|
+
type: 'string',
|
|
78
|
+
format: 'regex', // should not have more than 1 capturing group
|
|
79
|
+
examples: [
|
|
80
|
+
'^.{2}.{8}.({4,6})$', // extracts last 4 to 6 characters from a string of length 14 to 16
|
|
81
|
+
'^[0-9]{14}$' // matches exactly 14 digits
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
required: [
|
|
86
|
+
'enabled',
|
|
87
|
+
'pattern'
|
|
76
88
|
],
|
|
77
|
-
default:
|
|
89
|
+
default: null
|
|
78
90
|
}),
|
|
79
91
|
customer_add_policy: {
|
|
80
92
|
'description': 'The customer selection screen will be presented automatically before or after a sale (or not in case of none).',
|
|
@@ -81,7 +81,8 @@ module.exports = {
|
|
|
81
81
|
enum: [
|
|
82
82
|
'cash',
|
|
83
83
|
'always'
|
|
84
|
-
]
|
|
84
|
+
],
|
|
85
|
+
default: 'always'
|
|
85
86
|
},
|
|
86
87
|
transaction_signing: {
|
|
87
88
|
type: 'string',
|
|
@@ -108,7 +109,7 @@ module.exports = {
|
|
|
108
109
|
minutes: {
|
|
109
110
|
type: 'integer',
|
|
110
111
|
description: 'If more minutes have passed since the last update - a new update will be tried',
|
|
111
|
-
default:
|
|
112
|
+
default: 4800,
|
|
112
113
|
minimum: 60,
|
|
113
114
|
maximum: 14400
|
|
114
115
|
},
|
|
@@ -285,7 +286,7 @@ module.exports = {
|
|
|
285
286
|
oneOf: [
|
|
286
287
|
{
|
|
287
288
|
type: 'integer',
|
|
288
|
-
default:
|
|
289
|
+
default: 60,
|
|
289
290
|
minimum: 1,
|
|
290
291
|
maximum: 10000
|
|
291
292
|
},
|
|
@@ -407,7 +408,7 @@ module.exports = {
|
|
|
407
408
|
properties: {
|
|
408
409
|
upstream: {
|
|
409
410
|
description: 'Defines if branch parameter is used in updatream.',
|
|
410
|
-
default:
|
|
411
|
+
default: false,
|
|
411
412
|
type: 'boolean'
|
|
412
413
|
},
|
|
413
414
|
downstream: {
|
|
@@ -457,12 +458,39 @@ module.exports = {
|
|
|
457
458
|
{
|
|
458
459
|
type: 'integer',
|
|
459
460
|
minimum: 1,
|
|
460
|
-
maximum: 1000
|
|
461
|
+
maximum: 1000,
|
|
462
|
+
default: 150
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
type: 'null'
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
discounts: {
|
|
472
|
+
type: 'object',
|
|
473
|
+
additionalProperties: false,
|
|
474
|
+
properties: {
|
|
475
|
+
limit: {
|
|
476
|
+
description: 'Initial page size for syncing with GET all calls. In-app default is 500. Set this if you run into timeouts.',
|
|
477
|
+
oneOf: [
|
|
478
|
+
{
|
|
479
|
+
type: 'integer',
|
|
480
|
+
minimum: 1,
|
|
481
|
+
maximum: 1000,
|
|
482
|
+
default: 200
|
|
461
483
|
},
|
|
462
484
|
{
|
|
463
485
|
type: 'null'
|
|
464
486
|
}
|
|
465
487
|
]
|
|
488
|
+
},
|
|
489
|
+
active: {
|
|
490
|
+
// not yet supported on POS, always on
|
|
491
|
+
description: 'If true, discounts will be downloaded to the POS',
|
|
492
|
+
default: true,
|
|
493
|
+
type: 'boolean'
|
|
466
494
|
}
|
|
467
495
|
}
|
|
468
496
|
},
|
|
@@ -703,6 +731,7 @@ module.exports = {
|
|
|
703
731
|
}),
|
|
704
732
|
buttons: {
|
|
705
733
|
description: 'Action (checkout) buttons configuration.',
|
|
734
|
+
deprecated: true,
|
|
706
735
|
type: 'array',
|
|
707
736
|
items: {
|
|
708
737
|
type: 'object',
|