@tillhub/schemas 6.245.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,27 @@
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
+
13
+ # [6.246.0](https://github.com/tillhub/schemas/compare/v6.245.0...v6.246.0) (2023-08-10)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **pricebook:** comma trailing ([53de471](https://github.com/tillhub/schemas/commit/53de471))
19
+
20
+
21
+ ### Features
22
+
23
+ * **pricebook:** Duplicate the pricebook ([#843](https://github.com/tillhub/schemas/issues/843)) ([700e939](https://github.com/tillhub/schemas/commit/700e939))
24
+
1
25
  # [6.245.0](https://github.com/tillhub/schemas/compare/v6.244.0...v6.245.0) (2023-08-09)
2
26
 
3
27
 
@@ -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')
@@ -137,6 +137,24 @@ module.exports.prices = {
137
137
  }
138
138
  }
139
139
  },
140
+ copy: {
141
+ request: {
142
+ $id: 'https://schemas.tillhub.com/v1/products.prices.book.copy.request.schema.json',
143
+ $schema: 'http://json-schema.org/draft-07/schema#',
144
+ additionalProperties: false,
145
+ type: 'object',
146
+ required: ['ids'],
147
+ properties: {
148
+ ids: {
149
+ type: 'array',
150
+ items: {
151
+ type: 'string',
152
+ format: 'uuid'
153
+ }
154
+ }
155
+ }
156
+ }
157
+ },
140
158
  entry: {
141
159
  create: {
142
160
  request: {
@@ -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.245.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",