@tillhub/schemas 6.215.0 → 6.216.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 +10 -0
- package/lib/v1/configurations/items/products.js +41 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# [6.216.0](https://github.com/tillhub/schemas/compare/v6.215.0...v6.216.0) (2023-05-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **configurations:** products ([7454cc0](https://github.com/tillhub/schemas/commit/7454cc0))
|
|
7
|
+
* **configurations:** products ([cf8184c](https://github.com/tillhub/schemas/commit/cf8184c))
|
|
8
|
+
* **configurations:** products ([b5b62d1](https://github.com/tillhub/schemas/commit/b5b62d1))
|
|
9
|
+
* **configurations:** products ([83dc63f](https://github.com/tillhub/schemas/commit/83dc63f))
|
|
10
|
+
|
|
1
11
|
# [6.215.0](https://github.com/tillhub/schemas/compare/v6.214.0...v6.215.0) (2023-05-17)
|
|
2
12
|
|
|
3
13
|
|
|
@@ -45,6 +45,47 @@ module.exports = {
|
|
|
45
45
|
})
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
+
pricelist: oneOf({
|
|
49
|
+
type: 'object',
|
|
50
|
+
additionalProperties: false,
|
|
51
|
+
properties: {
|
|
52
|
+
type_precedence: oneOf({
|
|
53
|
+
type: 'object',
|
|
54
|
+
additionalProperties: false,
|
|
55
|
+
properties: {
|
|
56
|
+
enabled: {
|
|
57
|
+
description: 'If true - price type precedence should be respected.',
|
|
58
|
+
type: 'boolean',
|
|
59
|
+
default: true
|
|
60
|
+
},
|
|
61
|
+
priorities: oneOf({
|
|
62
|
+
description: 'Price types sorted by priority.',
|
|
63
|
+
type: 'array',
|
|
64
|
+
uniqueItems: true,
|
|
65
|
+
default: ['scaled', 'time-based', 'branch'],
|
|
66
|
+
items: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
enum: [
|
|
69
|
+
'time-based',
|
|
70
|
+
'branch',
|
|
71
|
+
'scaled'
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
}
|
|
76
|
+
}),
|
|
77
|
+
conflict_resolution: oneOf({
|
|
78
|
+
type: 'string',
|
|
79
|
+
description: 'Defines which price is chosen by default when conflicts remain with or without type precedence.',
|
|
80
|
+
default: 'lowest_price',
|
|
81
|
+
enum: [
|
|
82
|
+
'user', // present the options to the cashier
|
|
83
|
+
'lowest_price',
|
|
84
|
+
'highest_price'
|
|
85
|
+
]
|
|
86
|
+
})
|
|
87
|
+
}
|
|
88
|
+
}),
|
|
48
89
|
product_id_template: {
|
|
49
90
|
description: 'A Tillhub string pattern that allows for parameterized product id generation',
|
|
50
91
|
oneOf: [
|