@tillhub/schemas 6.296.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,11 @@
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
+
1
9
  # [6.296.0](https://github.com/tillhub/schemas/compare/v6.295.0...v6.296.0) (2024-03-25)
2
10
 
3
11
 
@@ -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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.296.0",
3
+ "version": "6.297.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",