@tillhub/schemas 6.417.0 → 6.418.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 +8 -0
- package/lib/v1/configurations/base.js +16 -45
- package/lib/v1/configurations/items/balances.js +2 -3
- package/lib/v1/configurations/items/discounts.js +2 -2
- package/lib/v1/configurations/items/features.js +1 -1
- package/lib/v1/configurations/items/payments.js +2 -2
- package/lib/v1/configurations/items/reservations.js +3 -2
- package/lib/v1/configurations/items/settings.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [6.418.0](https://github.com/tillhub/schemas/compare/v6.417.0...v6.418.0) (2026-01-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **configurations:** base ([7ae4d63](https://github.com/tillhub/schemas/commit/7ae4d63))
|
|
7
|
+
* **configurations:** simplify base ([8ac2c45](https://github.com/tillhub/schemas/commit/8ac2c45))
|
|
8
|
+
|
|
1
9
|
# [6.417.0](https://github.com/tillhub/schemas/compare/v6.416.0...v6.417.0) (2026-01-08)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -277,37 +277,22 @@ module.exports = {
|
|
|
277
277
|
require('./items/custom_dashboards')
|
|
278
278
|
]
|
|
279
279
|
},
|
|
280
|
-
deliveries: {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
type: 'object'
|
|
280
|
+
deliveries: oneOf({
|
|
281
|
+
description: 'Allow creation of deliveries',
|
|
282
|
+
type: 'object',
|
|
283
|
+
properties: {
|
|
284
|
+
enabled: {
|
|
285
|
+
description: 'Specifies if the feature is available.',
|
|
286
|
+
type: 'boolean',
|
|
287
|
+
default: false
|
|
291
288
|
}
|
|
292
|
-
|
|
293
|
-
},
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
type: 'null'
|
|
298
|
-
},
|
|
299
|
-
require('./items/balances')
|
|
300
|
-
]
|
|
301
|
-
},
|
|
289
|
+
}
|
|
290
|
+
}),
|
|
291
|
+
validations: require('./items/validations'),
|
|
292
|
+
payments: require('./items/payments'),
|
|
293
|
+
balances: require('./items/balances'),
|
|
302
294
|
integrations: require('./items/integrations'),
|
|
303
|
-
discounts:
|
|
304
|
-
oneOf: [
|
|
305
|
-
{
|
|
306
|
-
type: 'null'
|
|
307
|
-
},
|
|
308
|
-
require('./items/discounts')
|
|
309
|
-
]
|
|
310
|
-
},
|
|
295
|
+
discounts: require('./items/discounts'),
|
|
311
296
|
clients: {
|
|
312
297
|
oneOf: [
|
|
313
298
|
{
|
|
@@ -333,22 +318,8 @@ module.exports = {
|
|
|
333
318
|
}
|
|
334
319
|
]
|
|
335
320
|
},
|
|
336
|
-
reservations:
|
|
337
|
-
|
|
338
|
-
{
|
|
339
|
-
type: 'null'
|
|
340
|
-
},
|
|
341
|
-
require('./items/reservations')
|
|
342
|
-
]
|
|
343
|
-
},
|
|
344
|
-
searches: {
|
|
345
|
-
oneOf: [
|
|
346
|
-
{
|
|
347
|
-
type: 'null'
|
|
348
|
-
},
|
|
349
|
-
require('./items/searches')
|
|
350
|
-
]
|
|
351
|
-
},
|
|
321
|
+
reservations: require('./items/reservations'),
|
|
322
|
+
searches: require('./items/searches'),
|
|
352
323
|
custom_properties: require('./items/custom_properties'),
|
|
353
324
|
ui_configurations: require('./items/ui_configurations'),
|
|
354
325
|
created_at: {
|
|
@@ -134,7 +134,7 @@ module.exports = oneOf({
|
|
|
134
134
|
}
|
|
135
135
|
}),
|
|
136
136
|
split_receipt: oneOf({
|
|
137
|
-
description: 'Restaurant case: split bill
|
|
137
|
+
description: 'Restaurant case: split bill by order items',
|
|
138
138
|
type: 'object',
|
|
139
139
|
additionalProperties: false,
|
|
140
140
|
properties: {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
const { oneOf } = require('../../../helpers/payload-or-null')
|
|
1
2
|
const { getImages } = require('../../../common/images')
|
|
2
3
|
|
|
3
4
|
const logoImage = getImages({})
|
|
4
5
|
logoImage.anyOf.push({ type: 'string' })
|
|
5
6
|
|
|
6
|
-
module.exports = {
|
|
7
|
+
module.exports = oneOf({
|
|
7
8
|
type: 'object',
|
|
8
9
|
properties: {
|
|
9
10
|
use_individual_closing_days: {
|
|
@@ -161,4 +162,4 @@ module.exports = {
|
|
|
161
162
|
}
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
|
-
}
|
|
165
|
+
})
|
|
@@ -563,7 +563,8 @@ module.exports = {
|
|
|
563
563
|
enum: [
|
|
564
564
|
'none',
|
|
565
565
|
'required'
|
|
566
|
-
]
|
|
566
|
+
],
|
|
567
|
+
default: 'none'
|
|
567
568
|
})
|
|
568
569
|
}
|
|
569
570
|
}
|
|
@@ -579,7 +580,8 @@ module.exports = {
|
|
|
579
580
|
enum: [
|
|
580
581
|
'none',
|
|
581
582
|
'required'
|
|
582
|
-
]
|
|
583
|
+
],
|
|
584
|
+
default: 'required'
|
|
583
585
|
})
|
|
584
586
|
}
|
|
585
587
|
}
|