@tillhub/schemas 6.295.0 → 6.297.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.297.0](https://github.com/tillhub/schemas/compare/v6.296.0...v6.297.0) (2024-03-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **products:** added min stock and order ([4a90afb](https://github.com/tillhub/schemas/commit/4a90afb))
|
|
7
|
+
* **products:** min_stock and min_order nullable ([22386a9](https://github.com/tillhub/schemas/commit/22386a9))
|
|
8
|
+
|
|
9
|
+
# [6.296.0](https://github.com/tillhub/schemas/compare/v6.295.0...v6.296.0) (2024-03-25)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **configurations:** add toggle for individual opening hours and closing days ([#926](https://github.com/tillhub/schemas/issues/926)) ([ed11944](https://github.com/tillhub/schemas/commit/ed11944))
|
|
15
|
+
|
|
1
16
|
# [6.295.0](https://github.com/tillhub/schemas/compare/v6.294.0...v6.295.0) (2024-03-21)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -99,7 +99,7 @@ module.exports = {
|
|
|
99
99
|
description: 'Rules for automatic discounts when adding a product to the cart',
|
|
100
100
|
additionalProperties: false,
|
|
101
101
|
properties: {
|
|
102
|
-
|
|
102
|
+
override_stacked_on_product: oneOf({
|
|
103
103
|
description: 'If true, overrides generic limits.stacked_on_product.',
|
|
104
104
|
type: 'boolean',
|
|
105
105
|
default: false
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
type: 'object',
|
|
3
3
|
properties: {
|
|
4
|
+
use_individual_closing_days: {
|
|
5
|
+
type: 'boolean'
|
|
6
|
+
},
|
|
4
7
|
closing_days: {
|
|
5
8
|
type: 'array',
|
|
6
9
|
items: {
|
|
@@ -87,6 +90,9 @@ module.exports = {
|
|
|
87
90
|
}
|
|
88
91
|
}
|
|
89
92
|
},
|
|
93
|
+
use_individual_opening_hours: {
|
|
94
|
+
type: 'boolean'
|
|
95
|
+
},
|
|
90
96
|
opening_hours: {
|
|
91
97
|
type: 'array',
|
|
92
98
|
items: {
|
package/lib/v1/products/base.js
CHANGED
|
@@ -198,6 +198,58 @@ const request = {
|
|
|
198
198
|
}
|
|
199
199
|
]
|
|
200
200
|
},
|
|
201
|
+
min_stock: {
|
|
202
|
+
description: 'The minimum stock',
|
|
203
|
+
oneOf: [
|
|
204
|
+
{
|
|
205
|
+
type: 'array',
|
|
206
|
+
items: {
|
|
207
|
+
type: 'object',
|
|
208
|
+
additionalProperties: false,
|
|
209
|
+
properties: {
|
|
210
|
+
location: {
|
|
211
|
+
description: 'Alphanumerical uuid of the location, e.g. branch or warehouse',
|
|
212
|
+
type: 'string',
|
|
213
|
+
format: 'uuid'
|
|
214
|
+
},
|
|
215
|
+
qty: {
|
|
216
|
+
description: 'The min stock qty',
|
|
217
|
+
type: 'number'
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
type: 'null'
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
min_order_qty: {
|
|
228
|
+
description: 'The minimum order quantity',
|
|
229
|
+
oneOf: [
|
|
230
|
+
{
|
|
231
|
+
type: 'array',
|
|
232
|
+
items: {
|
|
233
|
+
type: 'object',
|
|
234
|
+
additionalProperties: false,
|
|
235
|
+
properties: {
|
|
236
|
+
location: {
|
|
237
|
+
description: 'Alphanumerical uuid of the location, e.g. branch or warehouse',
|
|
238
|
+
type: 'string',
|
|
239
|
+
format: 'uuid'
|
|
240
|
+
},
|
|
241
|
+
qty: {
|
|
242
|
+
description: 'The min order qty',
|
|
243
|
+
type: 'number'
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
type: 'null'
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
},
|
|
201
253
|
sellable: {
|
|
202
254
|
description: 'Define whether a product should be sellable (appears in use cases which assume sale)',
|
|
203
255
|
type: 'boolean',
|