@tillhub/schemas 6.197.0 → 6.199.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 +14 -0
- package/lib/v0/customers/event.js +18 -0
- package/lib/v0/customers/index.js +2 -0
- package/lib/v1/products/base.js +1 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [6.199.0](https://github.com/tillhub/schemas/compare/v6.198.0...v6.199.0) (2023-03-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **product:** rollback linked_products ([4a0baad](https://github.com/tillhub/schemas/commit/4a0baad))
|
|
7
|
+
|
|
8
|
+
# [6.198.0](https://github.com/tillhub/schemas/compare/v6.197.0...v6.198.0) (2023-03-07)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **customers:** add customers event schemas ([f48eb6b](https://github.com/tillhub/schemas/commit/f48eb6b))
|
|
14
|
+
|
|
1
15
|
# [6.197.0](https://github.com/tillhub/schemas/compare/v6.196.0...v6.197.0) (2023-03-02)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -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
|
|
package/lib/v1/products/base.js
CHANGED
|
@@ -109,13 +109,7 @@ const request = {
|
|
|
109
109
|
description: 'Used to store linked_products (existing (can be any type, including `linked` and embedded (`full` product schema)',
|
|
110
110
|
anyOf: [
|
|
111
111
|
{
|
|
112
|
-
type: 'array'
|
|
113
|
-
items: {
|
|
114
|
-
type: 'string',
|
|
115
|
-
example: '860defb8-5598-421d-9da4-f0826e767536',
|
|
116
|
-
format: 'uuid',
|
|
117
|
-
description: 'The uuid v4 that is generated on the API when a product is created'
|
|
118
|
-
}
|
|
112
|
+
type: 'array'
|
|
119
113
|
},
|
|
120
114
|
{
|
|
121
115
|
type: 'null'
|