@tillhub/schemas 6.255.0 → 6.256.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,10 @@
1
+ # [6.256.0](https://github.com/tillhub/schemas/compare/v6.255.0...v6.256.0) (2023-08-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * **stock-management:** add product id to stock-book create event ([#859](https://github.com/tillhub/schemas/issues/859)) ([1c0928f](https://github.com/tillhub/schemas/commit/1c0928f))
7
+
1
8
  # [6.255.0](https://github.com/tillhub/schemas/compare/v6.254.0...v6.255.0) (2023-08-30)
2
9
 
3
10
 
@@ -39,6 +39,7 @@ const eventOverrideData = {
39
39
  ...baseObject(),
40
40
  ...baseProduct
41
41
  }, [
42
+ 'id',
42
43
  'name',
43
44
  'client_id',
44
45
  'custom_id',
@@ -64,6 +65,11 @@ const eventOverrideData = {
64
65
  type: 'string',
65
66
  example: 'Not arbitrary reason'
66
67
  }),
68
+ stock_id: oneOf({
69
+ description: 'id of stock entity',
70
+ type: 'string',
71
+ example: 'f0a52a37-df58-465d-9121-b8180fc95133'
72
+ }),
67
73
  transaction_id: oneOf({
68
74
  description: 'id of transaction, if stock book is related to transaction',
69
75
  type: 'string',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.255.0",
3
+ "version": "6.256.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",