@tillhub/schemas 6.416.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 CHANGED
@@ -1,3 +1,18 @@
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
+
9
+ # [6.417.0](https://github.com/tillhub/schemas/compare/v6.416.0...v6.417.0) (2026-01-08)
10
+
11
+
12
+ ### Features
13
+
14
+ * **configuration:** add themes.dashboard.branding to configuration ([#1106](https://github.com/tillhub/schemas/issues/1106)) ([86be0b0](https://github.com/tillhub/schemas/commit/86be0b0))
15
+
1
16
  # [6.416.0](https://github.com/tillhub/schemas/compare/v6.415.0...v6.416.0) (2025-12-16)
2
17
 
3
18
 
@@ -277,37 +277,22 @@ module.exports = {
277
277
  require('./items/custom_dashboards')
278
278
  ]
279
279
  },
280
- deliveries: {
281
- type: 'object'
282
- },
283
- validations: require('./items/validations'),
284
- payments: {
285
- oneOf: [
286
- {
287
- type: 'null'
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
- balances: {
295
- oneOf: [
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
- oneOf: [
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: {
@@ -1,6 +1,5 @@
1
1
  const { oneOf } = require('../../../helpers/payload-or-null')
2
- module.exports = {
3
-
2
+ module.exports = oneOf({
4
3
  type: 'object',
5
4
  properties: {
6
5
  skip_x_report: oneOf({
@@ -185,4 +184,4 @@ module.exports = {
185
184
  ]
186
185
  }
187
186
  }
188
- }
187
+ })
@@ -22,7 +22,7 @@ const discountOptions = {
22
22
  }
23
23
  }
24
24
 
25
- module.exports = {
25
+ module.exports = oneOf({
26
26
  type: 'object',
27
27
  additionalProperties: false,
28
28
  properties: {
@@ -134,4 +134,4 @@ module.exports = {
134
134
  }
135
135
  })
136
136
  }
137
- }
137
+ })
@@ -134,7 +134,7 @@ module.exports = oneOf({
134
134
  }
135
135
  }),
136
136
  split_receipt: oneOf({
137
- description: 'Restaurant case: split bill between a group of guests',
137
+ description: 'Restaurant case: split bill by order items',
138
138
  type: 'object',
139
139
  additionalProperties: false,
140
140
  properties: {
@@ -1,6 +1,6 @@
1
1
  const { oneOf } = require('../../../helpers/payload-or-null')
2
2
 
3
- module.exports = {
3
+ module.exports = oneOf({
4
4
  type: 'object',
5
5
  properties: {
6
6
  card_mapping_warnings: oneOf({
@@ -88,4 +88,4 @@ module.exports = {
88
88
  }
89
89
  })
90
90
  }
91
- }
91
+ })
@@ -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
  }
@@ -64,6 +64,9 @@ module.exports = {
64
64
  },
65
65
  colors: {
66
66
  type: 'object'
67
+ },
68
+ branding: {
69
+ type: 'string'
67
70
  }
68
71
  },
69
72
  required: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.416.0",
3
+ "version": "6.418.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",