@tillhub/schemas 6.185.0 → 6.186.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/common/webhooks.js +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [6.186.0](https://github.com/tillhub/schemas/compare/v6.185.0...v6.186.0) (2022-12-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **webhooks:** use snake schema #UNTIL-5887 ([0dc2fb1](https://github.com/tillhub/schemas/commit/0dc2fb1)), closes [#UNTIL-5887](https://github.com/tillhub/schemas/issues/UNTIL-5887)
|
|
7
|
+
|
|
1
8
|
# [6.185.0](https://github.com/tillhub/schemas/compare/v6.184.0...v6.185.0) (2022-12-15)
|
|
2
9
|
|
|
3
10
|
|
package/lib/common/webhooks.js
CHANGED
|
@@ -8,34 +8,34 @@ module.exports.getEvent = function getEvent (payload, {
|
|
|
8
8
|
type: 'object',
|
|
9
9
|
additionalProperties: false,
|
|
10
10
|
properties: {
|
|
11
|
-
|
|
11
|
+
webhook_id: {
|
|
12
12
|
description: 'The webhook UUID',
|
|
13
13
|
example: 'ff30cfdf-5167-4f72-b4fc-c1d72db3c07e',
|
|
14
14
|
type: 'string',
|
|
15
15
|
format: 'uuid'
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
event_id: {
|
|
18
18
|
description: 'The event UUID',
|
|
19
19
|
example: 'c6fe918a-7bdc-4ccd-af36-95c03853233d',
|
|
20
20
|
type: 'string',
|
|
21
21
|
format: 'uuid'
|
|
22
22
|
},
|
|
23
|
-
|
|
23
|
+
event_entity: {
|
|
24
24
|
description: 'The entity name the event refers to',
|
|
25
25
|
example: eventEntityExample,
|
|
26
26
|
type: 'string'
|
|
27
27
|
},
|
|
28
|
-
|
|
28
|
+
event_type: {
|
|
29
29
|
description: 'The event type (e.g. create, update, delete)',
|
|
30
30
|
example: eventTypeExample,
|
|
31
31
|
type: 'string'
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
event_version: {
|
|
34
34
|
description: 'The event payload version',
|
|
35
35
|
example: eventVersionExample,
|
|
36
36
|
type: 'number'
|
|
37
37
|
},
|
|
38
|
-
|
|
38
|
+
entity_instance_id: {
|
|
39
39
|
description: 'The entity instance UUID',
|
|
40
40
|
example: '10b06f38-031d-4e0c-8706-0474c8c5b61c',
|
|
41
41
|
type: 'string',
|