@tillhub/schemas 6.296.0 → 6.298.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/products/base.js +26 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [6.298.0](https://github.com/tillhub/schemas/compare/v6.297.0...v6.298.0) (2024-04-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **products:** removed min_order_qty as it should be per supplier ([0289ad5](https://github.com/tillhub/schemas/commit/0289ad5))
|
|
7
|
+
|
|
8
|
+
# [6.297.0](https://github.com/tillhub/schemas/compare/v6.296.0...v6.297.0) (2024-03-28)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **products:** added min stock and order ([4a90afb](https://github.com/tillhub/schemas/commit/4a90afb))
|
|
14
|
+
* **products:** min_stock and min_order nullable ([22386a9](https://github.com/tillhub/schemas/commit/22386a9))
|
|
15
|
+
|
|
1
16
|
# [6.296.0](https://github.com/tillhub/schemas/compare/v6.295.0...v6.296.0) (2024-03-25)
|
|
2
17
|
|
|
3
18
|
|
package/lib/v1/products/base.js
CHANGED
|
@@ -198,6 +198,32 @@ 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
|
+
},
|
|
201
227
|
sellable: {
|
|
202
228
|
description: 'Define whether a product should be sellable (appears in use cases which assume sale)',
|
|
203
229
|
type: 'boolean',
|