@tillhub/schemas 6.341.0 → 6.341.1
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 +7 -0
- package/lib/v0/stock/update.js +8 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [6.341.1](https://github.com/tillhub/schemas/compare/v6.341.0...v6.341.1) (2024-09-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **stock update:** added mandatory location to the schema ([8408202](https://github.com/tillhub/schemas/commit/8408202))
|
|
7
|
+
|
|
1
8
|
# [6.341.0](https://github.com/tillhub/schemas/compare/v6.340.1...v6.341.0) (2024-09-17)
|
|
2
9
|
|
|
3
10
|
|
package/lib/v0/stock/update.js
CHANGED
|
@@ -9,7 +9,8 @@ module.exports.request = {
|
|
|
9
9
|
additionalProperties: false,
|
|
10
10
|
type: 'object',
|
|
11
11
|
required: [
|
|
12
|
-
'qty'
|
|
12
|
+
'qty',
|
|
13
|
+
'location'
|
|
13
14
|
],
|
|
14
15
|
properties: {
|
|
15
16
|
qty: {
|
|
@@ -51,7 +52,12 @@ module.exports.request = {
|
|
|
51
52
|
type: 'string',
|
|
52
53
|
minLength: 1,
|
|
53
54
|
maxLength: 2048
|
|
54
|
-
})
|
|
55
|
+
}),
|
|
56
|
+
location: {
|
|
57
|
+
description: 'Alphanumeric uuid of the location, e.g. branch uuid or warehouse uuid',
|
|
58
|
+
type: 'string',
|
|
59
|
+
format: 'uuid'
|
|
60
|
+
}
|
|
55
61
|
}
|
|
56
62
|
}
|
|
57
63
|
|