@tillhub/schemas 6.178.0 → 6.179.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.179.0](https://github.com/tillhub/schemas/compare/v6.178.0...v6.179.0) (2022-12-09)
2
+
3
+
4
+ ### Features
5
+
6
+ * **stocks-book:** omit 'purchase' and 'images' from event schema #UNTIL-5820 ([31672af](https://github.com/tillhub/schemas/commit/31672af)), closes [#UNTIL-5820](https://github.com/tillhub/schemas/issues/UNTIL-5820)
7
+
1
8
  # [6.178.0](https://github.com/tillhub/schemas/compare/v6.177.0...v6.178.0) (2022-12-08)
2
9
 
3
10
 
@@ -6,6 +6,12 @@ const baseBranch = require('../../v0/branches/base')
6
6
  const baseReason = require('../../v0/reasons/base')
7
7
  const baseStockBook = require('./base').simple
8
8
 
9
+ const {
10
+ purchase: omitPurchase,
11
+ images: omitImages,
12
+ ...eventBaseData
13
+ } = baseStockBook
14
+
9
15
  const eventEmbeddedData = {
10
16
  product: oneOf({
11
17
  type: 'object',
@@ -69,7 +75,7 @@ module.exports = {
69
75
  ],
70
76
  properties: {
71
77
  ...baseObject(),
72
- ...baseStockBook,
78
+ ...eventBaseData,
73
79
  ...eventEmbeddedData
74
80
  }
75
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.178.0",
3
+ "version": "6.179.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",