@tillhub/schemas 6.227.0 → 6.229.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,17 @@
1
+ # [6.229.0](https://github.com/tillhub/schemas/compare/v6.228.0...v6.229.0) (2023-07-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configuration:** tips max factor default value ([acf2c7e](https://github.com/tillhub/schemas/commit/acf2c7e))
7
+
8
+ # [6.228.0](https://github.com/tillhub/schemas/compare/v6.227.0...v6.228.0) (2023-07-11)
9
+
10
+
11
+ ### Features
12
+
13
+ * **webhooks:** added product update event to schema ([edde281](https://github.com/tillhub/schemas/commit/edde281))
14
+
1
15
  # [6.227.0](https://github.com/tillhub/schemas/compare/v6.226.0...v6.227.0) (2023-07-10)
2
16
 
3
17
 
@@ -84,7 +84,7 @@ module.exports = oneOf({
84
84
  type: 'number',
85
85
  minimum: 1.0,
86
86
  maximum: 2.0,
87
- default: null // -> 1.3 in POS
87
+ default: 1.3
88
88
  }),
89
89
  max_value: oneOf({
90
90
  type: 'array',
@@ -12,12 +12,13 @@ module.exports.search = {
12
12
  module.exports.create = {
13
13
  request: require('./create.request'),
14
14
  response: require('./create.response'),
15
- event: require('./event')
15
+ event: require('./create.event')
16
16
  }
17
17
 
18
18
  module.exports.update = {
19
19
  request: require('./update.request'),
20
- response: require('./update.response')
20
+ response: require('./update.response'),
21
+ event: require('./update.event')
21
22
  }
22
23
 
23
24
  module.exports.branch = {
@@ -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.update.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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.227.0",
3
+ "version": "6.229.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",
File without changes