@tillhub/schemas 6.198.0 → 6.200.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,18 @@
1
+ # [6.200.0](https://github.com/tillhub/schemas/compare/v6.199.0...v6.200.0) (2023-03-10)
2
+
3
+
4
+ ### Features
5
+
6
+ * **customers:** add delete event #UNTIL-6167 ([bc94f96](https://github.com/tillhub/schemas/commit/bc94f96)), closes [#UNTIL-6167](https://github.com/tillhub/schemas/issues/UNTIL-6167)
7
+ * **customers:** add update event #UNTIL-6166 ([0546c31](https://github.com/tillhub/schemas/commit/0546c31)), closes [#UNTIL-6166](https://github.com/tillhub/schemas/issues/UNTIL-6166)
8
+
9
+ # [6.199.0](https://github.com/tillhub/schemas/compare/v6.198.0...v6.199.0) (2023-03-09)
10
+
11
+
12
+ ### Features
13
+
14
+ * **product:** rollback linked_products ([4a0baad](https://github.com/tillhub/schemas/commit/4a0baad))
15
+
1
16
  # [6.198.0](https://github.com/tillhub/schemas/compare/v6.197.0...v6.198.0) (2023-03-07)
2
17
 
3
18
 
@@ -1,7 +1,9 @@
1
1
  const baseObject = require('../../common/base')
2
2
  const commonResponse = require('../../common/response')
3
+ const { getEvent } = require('../../common/webhooks')
3
4
 
4
5
  const base = require('./base')
6
+ const baseExtended = require('./baseExt')
5
7
 
6
8
  module.exports = {
7
9
  request: {
@@ -28,5 +30,18 @@ module.exports = {
28
30
  }
29
31
  }
30
32
  })
33
+ },
34
+ event: {
35
+ $id: 'https://schemas.tillhub.com/v0/customers.create.event.schema.json',
36
+ $schema: 'http://json-schema.org/draft-07/schema#',
37
+ ...getEvent({
38
+ type: 'object',
39
+ additionalProperties: false,
40
+ properties: {
41
+ ...baseObject(),
42
+ ...base,
43
+ ...baseExtended
44
+ }
45
+ }, { eventEntityExample: 'customer' })
31
46
  }
32
47
  }
@@ -0,0 +1,21 @@
1
+ const baseObject = require('../../common/base')
2
+ const { getEvent } = require('../../common/webhooks')
3
+
4
+ const base = require('./base')
5
+ const baseExtended = require('./baseExt')
6
+
7
+ module.exports = {
8
+ event: {
9
+ $id: 'https://schemas.tillhub.com/v0/customers.delete.event.schema.json',
10
+ $schema: 'http://json-schema.org/draft-07/schema#',
11
+ ...getEvent({
12
+ type: 'object',
13
+ additionalProperties: false,
14
+ properties: {
15
+ ...baseObject(),
16
+ ...base,
17
+ ...baseExtended
18
+ }
19
+ }, { eventEntityExample: 'customer', eventTypeExample: 'delete' })
20
+ }
21
+ }
@@ -2,7 +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
+ const del = require('./delete')
6
6
  const notesCreateRequest = require('./notes').create
7
7
  const ext = require('./ext')
8
8
 
@@ -10,7 +10,7 @@ module.exports = {
10
10
  create,
11
11
  read,
12
12
  update,
13
- event,
13
+ delete: del,
14
14
  ext
15
15
  }
16
16
 
@@ -1,7 +1,9 @@
1
1
  const baseObject = require('../../common/base')
2
2
  const commonResponse = require('../../common/response')
3
+ const { getEvent } = require('../../common/webhooks')
3
4
 
4
5
  const base = require('./base')
6
+ const baseExtended = require('./baseExt')
5
7
 
6
8
  module.exports = {
7
9
  request: {
@@ -26,5 +28,18 @@ module.exports = {
26
28
  }
27
29
  }
28
30
  })
31
+ },
32
+ event: {
33
+ $id: 'https://schemas.tillhub.com/v0/customers.update.event.schema.json',
34
+ $schema: 'http://json-schema.org/draft-07/schema#',
35
+ ...getEvent({
36
+ type: 'object',
37
+ additionalProperties: false,
38
+ properties: {
39
+ ...baseObject(),
40
+ ...base,
41
+ ...baseExtended
42
+ }
43
+ }, { eventEntityExample: 'customer', eventTypeExample: 'update' })
29
44
  }
30
45
  }
@@ -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'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.198.0",
3
+ "version": "6.200.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",
@@ -1,18 +0,0 @@
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
- }