@tillhub/schemas 6.288.0 → 6.290.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,18 @@
|
|
|
1
|
+
# [6.290.0](https://github.com/tillhub/schemas/compare/v6.289.0...v6.290.0) (2024-02-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **customers:** fix linting issue ([27c4c5c](https://github.com/tillhub/schemas/commit/27c4c5c))
|
|
7
|
+
* **customers:** make customer lastname optional ([dc99d1a](https://github.com/tillhub/schemas/commit/dc99d1a))
|
|
8
|
+
|
|
9
|
+
# [6.289.0](https://github.com/tillhub/schemas/compare/v6.288.0...v6.289.0) (2024-02-13)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **configurations:** settings ([6517c36](https://github.com/tillhub/schemas/commit/6517c36))
|
|
15
|
+
|
|
1
16
|
# [6.288.0](https://github.com/tillhub/schemas/compare/v6.287.0...v6.288.0) (2024-02-09)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -11,10 +11,7 @@ module.exports = {
|
|
|
11
11
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
12
12
|
additionalProperties: false,
|
|
13
13
|
type: 'object',
|
|
14
|
-
properties: base
|
|
15
|
-
required: [
|
|
16
|
-
'lastname'
|
|
17
|
-
]
|
|
14
|
+
properties: base
|
|
18
15
|
},
|
|
19
16
|
response: {
|
|
20
17
|
$id: 'https://schemas.tillhub.com/v0/customers.create.response.schema.json',
|
|
@@ -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,7 +458,8 @@ module.exports = {
|
|
|
457
458
|
{
|
|
458
459
|
type: 'integer',
|
|
459
460
|
minimum: 1,
|
|
460
|
-
maximum: 1000
|
|
461
|
+
maximum: 1000,
|
|
462
|
+
default: 150
|
|
461
463
|
},
|
|
462
464
|
{
|
|
463
465
|
type: 'null'
|
|
@@ -466,6 +468,32 @@ module.exports = {
|
|
|
466
468
|
}
|
|
467
469
|
}
|
|
468
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
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
type: 'null'
|
|
486
|
+
}
|
|
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'
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
469
497
|
balances: {
|
|
470
498
|
type: 'object',
|
|
471
499
|
additionalProperties: false,
|
|
@@ -558,7 +586,8 @@ module.exports = {
|
|
|
558
586
|
},
|
|
559
587
|
only_self_sustained: {
|
|
560
588
|
description: `Instruct clients to filter for types 'variant_product', 'product' and 'voucher'`,
|
|
561
|
-
type: 'boolean'
|
|
589
|
+
type: 'boolean',
|
|
590
|
+
default: true
|
|
562
591
|
}
|
|
563
592
|
}
|
|
564
593
|
},
|
|
@@ -703,6 +732,7 @@ module.exports = {
|
|
|
703
732
|
}),
|
|
704
733
|
buttons: {
|
|
705
734
|
description: 'Action (checkout) buttons configuration.',
|
|
735
|
+
deprecated: true,
|
|
706
736
|
type: 'array',
|
|
707
737
|
items: {
|
|
708
738
|
type: 'object',
|