@tillhub/schemas 6.246.0 → 6.247.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,15 @@
1
+ # [6.247.0](https://github.com/tillhub/schemas/compare/v6.246.0...v6.247.0) (2023-08-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **products:** configurations ([bfffb54](https://github.com/tillhub/schemas/commit/bfffb54))
7
+
8
+
9
+ ### Features
10
+
11
+ * **stock-book:** added schema for getting stock booking necessary data ([cc5d31a](https://github.com/tillhub/schemas/commit/cc5d31a))
12
+
1
13
  # [6.246.0](https://github.com/tillhub/schemas/compare/v6.245.0...v6.246.0) (2023-08-10)
2
14
 
3
15
 
@@ -0,0 +1,33 @@
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
+ stock_quantity: {
13
+ type: 'string',
14
+ pattern: '^[0-9]+$',
15
+ description: 'The quantity of stock we want to book'
16
+ },
17
+ productId: {
18
+ type: 'string',
19
+ format: 'uuid',
20
+ description: 'The product which stock will be affected'
21
+ },
22
+ locationId: {
23
+ type: 'string',
24
+ format: 'uuid',
25
+ description: 'The location the stock will be booked at'
26
+ },
27
+ reasonId: {
28
+ type: 'string',
29
+ format: 'uuid',
30
+ description: 'Reason id to retrieve reason name that will be used'
31
+ }
32
+ }
33
+ }
@@ -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.247.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",