@tillhub/schemas 6.246.0 → 6.248.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,22 @@
1
+ # [6.248.0](https://github.com/tillhub/schemas/compare/v6.247.0...v6.248.0) (2023-08-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * **stock-book:** removed stock quantity from schema ([e11acff](https://github.com/tillhub/schemas/commit/e11acff))
7
+
8
+ # [6.247.0](https://github.com/tillhub/schemas/compare/v6.246.0...v6.247.0) (2023-08-14)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **products:** configurations ([bfffb54](https://github.com/tillhub/schemas/commit/bfffb54))
14
+
15
+
16
+ ### Features
17
+
18
+ * **stock-book:** added schema for getting stock booking necessary data ([cc5d31a](https://github.com/tillhub/schemas/commit/cc5d31a))
19
+
1
20
  # [6.246.0](https://github.com/tillhub/schemas/compare/v6.245.0...v6.246.0) (2023-08-10)
2
21
 
3
22
 
@@ -0,0 +1,28 @@
1
+ module.exports.request = {
2
+ $id: 'https://schemas.tillhub.com/v0/stock.transfer.request.schema.json',
3
+ $schema: 'http://json-schema.org/draft-07/schema#',
4
+ additionalProperties: false,
5
+ type: 'object',
6
+ required: [
7
+ 'stock_quantity',
8
+ 'productId',
9
+ 'locationId'
10
+ ],
11
+ properties: {
12
+ productId: {
13
+ type: 'string',
14
+ format: 'uuid',
15
+ description: 'The product which stock will be affected'
16
+ },
17
+ locationId: {
18
+ type: 'string',
19
+ format: 'uuid',
20
+ description: 'The location the stock will be booked at'
21
+ },
22
+ reasonId: {
23
+ type: 'string',
24
+ format: 'uuid',
25
+ description: 'Reason id to retrieve reason name that will be used'
26
+ }
27
+ }
28
+ }
@@ -1,3 +1,4 @@
1
1
  module.exports.create = require('./create')
2
2
  module.exports.update = require('./update')
3
3
  module.exports.transfer = require('./transfer')
4
+ module.exports.get_book_necessary_data = require('./get_book_necessary_data')
@@ -38,7 +38,7 @@ module.exports = {
38
38
  type: 'string',
39
39
  example: 'Super Summer',
40
40
  minLength: 2,
41
- maxLength: 24
41
+ maxLength: 128
42
42
  },
43
43
  multiplier: {
44
44
  type: 'integer',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.246.0",
3
+ "version": "6.248.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",