@tillhub/schemas 6.152.0 → 6.155.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 +21 -0
- package/lib/v0/trash/get.js +1 -0
- package/lib/v0/trash/update.js +1 -0
- package/lib/v1/configurations/items/customers.js +3 -1
- package/lib/v1/configurations/items/products.js +3 -1
- package/lib/v1/configurations/items/staff.js +20 -0
- package/lib/v1/configurations/items/transactions.js +2 -2
- package/lib/v1/products/base.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
# [6.155.0](https://github.com/tillhub/schemas/compare/v6.154.0...v6.155.0) (2022-08-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **generate_id:** make SEQUENCE mandatory for customer, product & staff ([bd831b9](https://github.com/tillhub/schemas/commit/bd831b9))
|
|
7
|
+
|
|
8
|
+
# [6.154.0](https://github.com/tillhub/schemas/compare/v6.153.0...v6.154.0) (2022-08-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **trash:** Add AddonGroups to revision history to be able to recover ([#720](https://github.com/tillhub/schemas/issues/720)) ([0402a86](https://github.com/tillhub/schemas/commit/0402a86))
|
|
14
|
+
|
|
15
|
+
# [6.153.0](https://github.com/tillhub/schemas/compare/v6.152.0...v6.153.0) (2022-08-05)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **products:** refine attributes ([9e3c85b](https://github.com/tillhub/schemas/commit/9e3c85b))
|
|
21
|
+
|
|
1
22
|
# [6.152.0](https://github.com/tillhub/schemas/compare/v6.151.1...v6.152.0) (2022-08-03)
|
|
2
23
|
|
|
3
24
|
|
package/lib/v0/trash/get.js
CHANGED
package/lib/v0/trash/update.js
CHANGED
|
@@ -5,6 +5,26 @@ module.exports = {
|
|
|
5
5
|
type: 'object',
|
|
6
6
|
additionalProperties: true,
|
|
7
7
|
properties: {
|
|
8
|
+
staff_id_template: {
|
|
9
|
+
description: 'A Tillhub string pattern that allows for parameterized staff number generation',
|
|
10
|
+
oneOf: [
|
|
11
|
+
{
|
|
12
|
+
type: 'null'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'string',
|
|
16
|
+
description: 'We need to have a SEQUENCE to assure the uniqueness of the id',
|
|
17
|
+
minLength: 4,
|
|
18
|
+
maxLength: 512,
|
|
19
|
+
pattern: 'SEQUENCE'
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
generate_staff_id: {
|
|
24
|
+
description: 'The toggle to opt-in or -out of the staff number generation. Send this as query parameter on creation: ?generate_staff_number=true',
|
|
25
|
+
type: 'boolean',
|
|
26
|
+
default: 'false'
|
|
27
|
+
},
|
|
8
28
|
cashier_pin_cancel_enabled: {
|
|
9
29
|
'description': 'If true, a cashier is allowed to cancel a PIN request. If false, the PIN request is not cancelable and will stay there',
|
|
10
30
|
...oneOf({
|
|
@@ -12,9 +12,9 @@ module.exports = {
|
|
|
12
12
|
type: 'string',
|
|
13
13
|
enum: [
|
|
14
14
|
'generate', // default Tillhub style, e.g. RTEA33D915 - which supports also API lookup
|
|
15
|
-
'external_reference_id' // any external ID
|
|
15
|
+
'external_reference_id' // any external ID from e.g. saved carts or manual entry, BSH: 1111728444 or even UUIDs - API lookup not guaranteed, printing for UUIDs not possible
|
|
16
16
|
],
|
|
17
|
-
default: 'generate' // -> BSH
|
|
17
|
+
default: 'generate' // -> BSH must set source to 'external_reference_id' to keep their current behavior
|
|
18
18
|
})
|
|
19
19
|
}
|
|
20
20
|
}),
|
package/lib/v1/products/base.js
CHANGED
|
@@ -84,7 +84,9 @@ const request = {
|
|
|
84
84
|
description: 'Arbitrary attributes a product has, that will be displayed in e.g. a sale',
|
|
85
85
|
anyOf: [
|
|
86
86
|
{
|
|
87
|
-
type: 'object'
|
|
87
|
+
type: 'object',
|
|
88
|
+
description: 'A dictionary <string, string> describing all values for one specific variant',
|
|
89
|
+
additionalProperties: { type: 'string' }
|
|
88
90
|
},
|
|
89
91
|
{
|
|
90
92
|
type: 'null'
|