@tillhub/schemas 6.197.0 → 6.198.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 +7 -0
- package/lib/v0/customers/event.js +18 -0
- package/lib/v0/customers/index.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [6.198.0](https://github.com/tillhub/schemas/compare/v6.197.0...v6.198.0) (2023-03-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **customers:** add customers event schemas ([f48eb6b](https://github.com/tillhub/schemas/commit/f48eb6b))
|
|
7
|
+
|
|
1
8
|
# [6.197.0](https://github.com/tillhub/schemas/compare/v6.196.0...v6.197.0) (2023-03-02)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const baseObject = require('../../common/base')
|
|
2
|
+
const { getEvent } = require('../../common/webhooks')
|
|
3
|
+
const base = require('./base')
|
|
4
|
+
const baseExtended = require('./baseExt')
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
$id: 'https://schemas.tillhub.com/v0/customers.create.event.schema.json',
|
|
8
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
9
|
+
...getEvent({
|
|
10
|
+
type: 'object',
|
|
11
|
+
additionalProperties: false,
|
|
12
|
+
properties: {
|
|
13
|
+
...baseObject(),
|
|
14
|
+
...base,
|
|
15
|
+
...baseExtended
|
|
16
|
+
}
|
|
17
|
+
}, { eventEntityExample: 'customer' })
|
|
18
|
+
}
|
|
@@ -2,6 +2,7 @@ const base = require('./base')
|
|
|
2
2
|
const create = require('./create')
|
|
3
3
|
const read = require('./read')
|
|
4
4
|
const update = require('./update')
|
|
5
|
+
const event = require('./event')
|
|
5
6
|
const notesCreateRequest = require('./notes').create
|
|
6
7
|
const ext = require('./ext')
|
|
7
8
|
|
|
@@ -9,6 +10,7 @@ module.exports = {
|
|
|
9
10
|
create,
|
|
10
11
|
read,
|
|
11
12
|
update,
|
|
13
|
+
event,
|
|
12
14
|
ext
|
|
13
15
|
}
|
|
14
16
|
|