@tillhub/schemas 6.225.0 → 6.226.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.226.0](https://github.com/tillhub/schemas/compare/v6.225.0...v6.226.0) (2023-06-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **configurations:** features ([c6fc993](https://github.com/tillhub/schemas/commit/c6fc993))
|
|
7
|
+
|
|
1
8
|
# [6.225.0](https://github.com/tillhub/schemas/compare/v6.224.0...v6.225.0) (2023-06-21)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
const { oneOf } = require('../../../helpers/payload-or-null')
|
|
2
|
+
const TimeInterval = {
|
|
3
|
+
description: 'Defines a time interval.',
|
|
4
|
+
type: 'object',
|
|
5
|
+
properties: {
|
|
6
|
+
unit: {
|
|
7
|
+
description: 'Unit of the interval, defines a timeframe together with the set value.',
|
|
8
|
+
type: 'string',
|
|
9
|
+
enum: [
|
|
10
|
+
'hours',
|
|
11
|
+
'days',
|
|
12
|
+
'weeks',
|
|
13
|
+
'months',
|
|
14
|
+
'years'
|
|
15
|
+
],
|
|
16
|
+
default: 'months'
|
|
17
|
+
},
|
|
18
|
+
value: {
|
|
19
|
+
description: 'The value of the interval, defines a timeframe together with the set unit.',
|
|
20
|
+
type: 'integer',
|
|
21
|
+
minimum: 1,
|
|
22
|
+
maximum: 500,
|
|
23
|
+
default: 2
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
2
28
|
module.exports = oneOf({
|
|
3
29
|
type: 'object',
|
|
4
30
|
properties: {
|
|
@@ -109,7 +135,20 @@ module.exports = oneOf({
|
|
|
109
135
|
name: {
|
|
110
136
|
description: 'Display name of the action',
|
|
111
137
|
type: 'string'
|
|
112
|
-
}
|
|
138
|
+
},
|
|
139
|
+
date_range: oneOf({
|
|
140
|
+
description: 'Defines the maximum range for selectable start and end dates',
|
|
141
|
+
type: 'object',
|
|
142
|
+
additionalProperties: false,
|
|
143
|
+
properties: {
|
|
144
|
+
past: oneOf({
|
|
145
|
+
...TimeInterval
|
|
146
|
+
}),
|
|
147
|
+
future: oneOf({
|
|
148
|
+
...TimeInterval
|
|
149
|
+
})
|
|
150
|
+
}
|
|
151
|
+
})
|
|
113
152
|
}
|
|
114
153
|
}),
|
|
115
154
|
gastro_tables: oneOf({
|