@tillhub/schemas 6.201.0 → 6.202.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,11 @@
1
+ # [6.202.0](https://github.com/tillhub/schemas/compare/v6.201.0...v6.202.0) (2023-03-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * **product:** add event inside the request ([e1f81ec](https://github.com/tillhub/schemas/commit/e1f81ec))
7
+ * **products:** add event to product create UNTIL-5810 ([b1b2ccf](https://github.com/tillhub/schemas/commit/b1b2ccf))
8
+
1
9
  # [6.201.0](https://github.com/tillhub/schemas/compare/v6.200.0...v6.201.0) (2023-03-13)
2
10
 
3
11
 
@@ -0,0 +1,16 @@
1
+ const baseObject = require('../../common/base')
2
+ const { getEvent } = require('../../common/webhooks')
3
+ const base = require('./base')
4
+
5
+ module.exports = {
6
+ $id: 'https://schemas.tillhub.com/v1/products.create.event.schema.json',
7
+ $schema: 'http://json-schema.org/draft-07/schema#',
8
+ ...getEvent({
9
+ type: 'object',
10
+ additionalProperties: false,
11
+ properties: {
12
+ ...baseObject(),
13
+ ...base
14
+ }
15
+ }, { eventEntityExample: 'product' })
16
+ }
@@ -11,7 +11,8 @@ module.exports.search = {
11
11
 
12
12
  module.exports.create = {
13
13
  request: require('./create.request'),
14
- response: require('./create.response')
14
+ response: require('./create.response'),
15
+ event: require('./event')
15
16
  }
16
17
 
17
18
  module.exports.update = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.201.0",
3
+ "version": "6.202.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",