@tillhub/schemas 6.443.0 → 6.444.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,10 @@
1
+ # [6.444.0](https://github.com/tillhub/schemas/compare/v6.443.0...v6.444.0) (2026-06-12)
2
+
3
+
4
+ ### Features
5
+
6
+ * **mms-hierarchy:** schema for conections ([#1166](https://github.com/tillhub/schemas/issues/1166)) ([d48ad8d](https://github.com/tillhub/schemas/commit/d48ad8d))
7
+
1
8
  # [6.443.0](https://github.com/tillhub/schemas/compare/v6.442.0...v6.443.0) (2026-06-12)
2
9
 
3
10
 
@@ -0,0 +1,77 @@
1
+ const contact = {
2
+ type: 'object',
3
+ additionalProperties: false,
4
+ required: [
5
+ 'roles',
6
+ 'mmsId',
7
+ 'email'
8
+ ],
9
+ properties: {
10
+ roles: {
11
+ type: 'array',
12
+ minItems: 1,
13
+ items: {
14
+ type: 'string',
15
+ minLength: 1
16
+ }
17
+ },
18
+ mmsId: {
19
+ type: 'string',
20
+ minLength: 1
21
+ },
22
+ email: {
23
+ type: 'string',
24
+ format: 'email'
25
+ }
26
+ }
27
+ }
28
+
29
+ const connection = {
30
+ type: 'object',
31
+ additionalProperties: true,
32
+ required: [
33
+ 'unzerId',
34
+ 'contacts'
35
+ ],
36
+ properties: {
37
+ unzerId: {
38
+ type: 'string',
39
+ minLength: 1
40
+ },
41
+ contacts: {
42
+ type: 'array',
43
+ minItems: 1,
44
+ items: contact
45
+ }
46
+ }
47
+ }
48
+
49
+ module.exports = {
50
+ $id: 'https://schemas.tillhub.com/v0/client_accounts.connections.schema.json',
51
+ $schema: 'http://json-schema.org/draft-07/schema#',
52
+ type: 'object',
53
+ additionalProperties: false,
54
+ required: [
55
+ 'connections'
56
+ ],
57
+ properties: {
58
+ connections: {
59
+ type: 'object',
60
+ additionalProperties: false,
61
+ required: [
62
+ 'hasAccessTo',
63
+ 'accessibleBy'
64
+ ],
65
+ properties: {
66
+ hasAccessTo: {
67
+ type: 'array',
68
+ items: connection
69
+ },
70
+ accessibleBy: {
71
+ type: 'array',
72
+ items: connection
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
@@ -1,2 +1,3 @@
1
1
  module.exports.create = require('./create')
2
2
  module.exports.update = require('./update')
3
+ module.exports.connections = require('./connections')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.443.0",
3
+ "version": "6.444.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",