@tillhub/schemas 6.159.0 → 6.161.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,17 @@
|
|
|
1
|
+
# [6.161.0](https://github.com/tillhub/schemas/compare/v6.160.0...v6.161.0) (2022-09-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **configurations:** ui ([b595365](https://github.com/tillhub/schemas/commit/b595365))
|
|
7
|
+
|
|
8
|
+
# [6.160.0](https://github.com/tillhub/schemas/compare/v6.159.0...v6.160.0) (2022-09-09)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **configurations:** Users: Set the role on existing users and on the newly created ones ([#728](https://github.com/tillhub/schemas/issues/728)) ([3382092](https://github.com/tillhub/schemas/commit/3382092))
|
|
14
|
+
|
|
1
15
|
# [6.159.0](https://github.com/tillhub/schemas/compare/v6.158.0...v6.159.0) (2022-09-09)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -7,7 +7,7 @@ module.exports = {
|
|
|
7
7
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
8
8
|
additionalProperties: false,
|
|
9
9
|
type: 'object',
|
|
10
|
-
required: ['user'],
|
|
10
|
+
required: [ 'user', 'role' ],
|
|
11
11
|
properties: user,
|
|
12
12
|
allOf: [
|
|
13
13
|
{
|
|
@@ -15,8 +15,7 @@ module.exports = {
|
|
|
15
15
|
properties: { role: { const: 'franchisee' } }
|
|
16
16
|
},
|
|
17
17
|
then: {
|
|
18
|
-
properties: franchiseeScopes
|
|
19
|
-
required: [ 'user', 'role' ]
|
|
18
|
+
properties: franchiseeScopes
|
|
20
19
|
}
|
|
21
20
|
},
|
|
22
21
|
{
|
|
@@ -24,8 +23,7 @@ module.exports = {
|
|
|
24
23
|
properties: { role: { const: 'franchise' } }
|
|
25
24
|
},
|
|
26
25
|
then: {
|
|
27
|
-
properties: franchiseScopes
|
|
28
|
-
required: [ 'user', 'role' ]
|
|
26
|
+
properties: franchiseScopes
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
29
|
]
|
|
@@ -46,7 +46,7 @@ module.exports = {
|
|
|
46
46
|
metadata: oneOf({
|
|
47
47
|
type: 'object'
|
|
48
48
|
}),
|
|
49
|
-
role:
|
|
49
|
+
role: {
|
|
50
50
|
type: 'string',
|
|
51
51
|
enum: [
|
|
52
52
|
'admin',
|
|
@@ -58,7 +58,7 @@ module.exports = {
|
|
|
58
58
|
'accountant',
|
|
59
59
|
'purchaser'
|
|
60
60
|
]
|
|
61
|
-
}
|
|
61
|
+
},
|
|
62
62
|
user_id: oneOf({
|
|
63
63
|
type: 'string'
|
|
64
64
|
}),
|
|
@@ -163,7 +163,18 @@ module.exports = {
|
|
|
163
163
|
}
|
|
164
164
|
})
|
|
165
165
|
}
|
|
166
|
-
}
|
|
166
|
+
},
|
|
167
|
+
sync: oneOf({
|
|
168
|
+
description: 'Sync UI view',
|
|
169
|
+
type: 'object',
|
|
170
|
+
properties: {
|
|
171
|
+
enabled: oneOf({
|
|
172
|
+
description: 'Defines if the Sync Details UI View comes up on tapping the sync wheel',
|
|
173
|
+
type: 'boolean',
|
|
174
|
+
default: false // 2022-09, might be changed as soon as 2022-12
|
|
175
|
+
})
|
|
176
|
+
}
|
|
177
|
+
})
|
|
167
178
|
}
|
|
168
179
|
})
|
|
169
180
|
}
|