@tillhub/schemas 6.461.0 → 6.462.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.
@@ -115,6 +115,12 @@ module.exports = oneOf({
115
115
  { type: 'string' }
116
116
  ]
117
117
  },
118
+ privacy_notice_url: {
119
+ oneOf: [
120
+ { type: 'null' },
121
+ { type: 'string' }
122
+ ]
123
+ },
118
124
  receive_appointment_notifications: {
119
125
  type: 'boolean'
120
126
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.461.0",
3
+ "version": "6.462.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",
@@ -250,6 +250,20 @@ test('Configurations: payloads without opening_hours_exceptions remain valid', f
250
250
  t.end()
251
251
  })
252
252
 
253
+ test('Configurations: reservations customization accepts privacy_notice_url as string or null', function (t) {
254
+ t.plan(3)
255
+ ;['https://example.com/privacy', null].forEach(function (privacyNoticeUrl) {
256
+ const valid = validateUpdatePayload({
257
+ reservations: { customization: { privacy_notice_url: privacyNoticeUrl } }
258
+ })
259
+ t.ok(valid, ajv.errorsText(validateUpdatePayload.errors))
260
+ })
261
+ t.notOk(validateUpdatePayload({
262
+ reservations: { customization: { privacy_notice_url: 123 } }
263
+ }), 'privacy_notice_url must be a string or null')
264
+ t.end()
265
+ })
266
+
253
267
  test('Configurations: interfaces seeds scanner_apis.zebra.enabled when scanner_apis is absent', function (t) {
254
268
  t.plan(2)
255
269
  const ajvWithDefaults = new Ajv({ useDefaults: true })