@tillhub/schemas 6.224.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,17 @@
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
+
8
+ # [6.225.0](https://github.com/tillhub/schemas/compare/v6.224.0...v6.225.0) (2023-06-21)
9
+
10
+
11
+ ### Features
12
+
13
+ * **configuration:** custom endpoint printing feature configuration ([14134dd](https://github.com/tillhub/schemas/commit/14134dd))
14
+
1
15
  # [6.224.0](https://github.com/tillhub/schemas/compare/v6.223.0...v6.224.0) (2023-06-20)
2
16
 
3
17
 
@@ -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: {
@@ -87,6 +113,44 @@ module.exports = oneOf({
87
113
  }
88
114
  }
89
115
  }),
116
+ custom_endpoint_printing: oneOf({
117
+ description: 'Custom endpoint printing from cart menu',
118
+ type: 'object',
119
+ additionalProperties: false,
120
+ properties: {
121
+ enabled: {
122
+ description: 'Specifies if the feature is available.',
123
+ type: 'boolean',
124
+ default: false
125
+ },
126
+ url: {
127
+ description: 'The URL of the endpoint',
128
+ type: 'string',
129
+ format: 'uri'
130
+ },
131
+ token: {
132
+ description: 'Authorization bearer token',
133
+ type: 'string'
134
+ },
135
+ name: {
136
+ description: 'Display name of the action',
137
+ type: 'string'
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
+ })
152
+ }
153
+ }),
90
154
  gastro_tables: oneOf({
91
155
  type: 'object',
92
156
  additionalProperties: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.224.0",
3
+ "version": "6.226.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",