@tillhub/schemas 6.279.2 → 6.281.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 +15 -0
- package/lib/v1/branches/read.js +36 -0
- package/lib/v1/configurations/items/customers.js +13 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [6.281.0](https://github.com/tillhub/schemas/compare/v6.280.0...v6.281.0) (2024-01-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **customers:** customer number capture configuration ([18e9be8](https://github.com/tillhub/schemas/commit/18e9be8))
|
|
7
|
+
|
|
8
|
+
# [6.280.0](https://github.com/tillhub/schemas/compare/v6.279.2...v6.280.0) (2024-01-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **branches:** extend v1 ([687d291](https://github.com/tillhub/schemas/commit/687d291))
|
|
14
|
+
* **branches:** extender properties for branches v1 ([c9e8aed](https://github.com/tillhub/schemas/commit/c9e8aed))
|
|
15
|
+
|
|
1
16
|
## [6.279.2](https://github.com/tillhub/schemas/compare/v6.279.1...v6.279.2) (2024-01-18)
|
|
2
17
|
|
|
3
18
|
|
package/lib/v1/branches/read.js
CHANGED
|
@@ -4,10 +4,46 @@ const { all } = require('../../v0/branches/read')
|
|
|
4
4
|
module.exports.all = {
|
|
5
5
|
query: {
|
|
6
6
|
...all.query,
|
|
7
|
+
properties: {
|
|
8
|
+
...all.query.properties,
|
|
9
|
+
...{
|
|
10
|
+
extended: {
|
|
11
|
+
description: 'Return mms branches extended information',
|
|
12
|
+
example: 'true',
|
|
13
|
+
type: 'string',
|
|
14
|
+
enum: ['true', 'false']
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
7
18
|
$id: 'https://schemas.tillhub.com/v1/branches.read.all.query.schema.json'
|
|
8
19
|
},
|
|
9
20
|
response: {
|
|
10
21
|
...all.response,
|
|
22
|
+
properties: {
|
|
23
|
+
...all.response.properties,
|
|
24
|
+
...{
|
|
25
|
+
mms_id: {
|
|
26
|
+
description: 'Id from mms branch',
|
|
27
|
+
example: '0e3da0e5-be16-4085-964d-19655070b714',
|
|
28
|
+
type: 'string'
|
|
29
|
+
},
|
|
30
|
+
mms_state: {
|
|
31
|
+
description: 'State from mms branch',
|
|
32
|
+
example: '10785',
|
|
33
|
+
type: 'ACTIVE'
|
|
34
|
+
},
|
|
35
|
+
mms_type: {
|
|
36
|
+
description: 'Type from mms branch',
|
|
37
|
+
example: 'POS_BRANCH',
|
|
38
|
+
type: 'string'
|
|
39
|
+
},
|
|
40
|
+
mms_unit_unzer_id: {
|
|
41
|
+
description: 'Unit unzer id from mms branch',
|
|
42
|
+
example: 'UZ4453975',
|
|
43
|
+
type: 'string'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
11
47
|
$id: 'https://schemas.tillhub.com/v1/branches.read.all.response.schema.json',
|
|
12
48
|
...commonResponse({
|
|
13
49
|
resultItems: all.response.properties.results.items
|
|
@@ -63,6 +63,19 @@ module.exports = {
|
|
|
63
63
|
type: 'boolean',
|
|
64
64
|
default: false
|
|
65
65
|
},
|
|
66
|
+
customer_number_capture_enabled: {
|
|
67
|
+
type: 'boolean',
|
|
68
|
+
default: false
|
|
69
|
+
},
|
|
70
|
+
customer_number_capture_pattern: oneOf({
|
|
71
|
+
description: 'Defines how a customer number can be extracted from a scanned barcode',
|
|
72
|
+
type: 'string',
|
|
73
|
+
format: 'regex', // should have 1 capturing group only
|
|
74
|
+
examples: [
|
|
75
|
+
'^.{2}(.{8}).{4,6}$' // extracts characters 2-10 from a string of length 14 to 16
|
|
76
|
+
],
|
|
77
|
+
default: 'null'
|
|
78
|
+
}),
|
|
66
79
|
customer_add_policy: {
|
|
67
80
|
'description': 'The customer selection screen will be presented automatically before or after a sale (or not in case of none).',
|
|
68
81
|
...oneOf({
|