@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
|
+
}
|
package/lib/v0/stock/index.js
CHANGED
package/lib/v1/products/index.js
CHANGED
|
@@ -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: {
|