@tillhub/schemas 6.400.0 → 6.401.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.401.0](https://github.com/tillhub/schemas/compare/v6.400.1...v6.401.0) (2025-10-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **UNTIL-15267:** add questionnaire feature ([#1084](https://github.com/tillhub/schemas/issues/1084)) ([1ac5b62](https://github.com/tillhub/schemas/commit/1ac5b62))
|
|
7
|
+
|
|
8
|
+
## [6.400.1](https://github.com/tillhub/schemas/compare/v6.400.0...v6.400.1) (2025-09-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **common:** permissions ([bfaef63](https://github.com/tillhub/schemas/commit/bfaef63))
|
|
14
|
+
|
|
1
15
|
# [6.400.0](https://github.com/tillhub/schemas/compare/v6.399.0...v6.400.0) (2025-09-16)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -142,9 +142,10 @@ module.exports.staff = {
|
|
|
142
142
|
'staff:staff:wallets:transfer', // Transfer cash between the main till and any Waiter Wallet to create the Starting Balance for a Wallet.
|
|
143
143
|
'staff:staff:wallets:discrepancy', // Accept discrepancies for not matching closing balances for individual Waiter Wallets
|
|
144
144
|
'staff:staff:wallets:activation', // Activate and deactivate Waiter Wallets
|
|
145
|
-
'staff:staff:reservations
|
|
146
|
-
'staff:staff:reservations:
|
|
147
|
-
'staff:staff:reservations:
|
|
145
|
+
'staff:staff:gastro:reservations', // General access and all rights below
|
|
146
|
+
'staff:staff:gastro:reservations:create', // User can create new reservations on iOS and calendar
|
|
147
|
+
'staff:staff:gastro:reservations:update', // User can update reservations on iOS and calendar
|
|
148
|
+
'staff:staff:gastro:reservations:cancel' // User can cancel reservations on iOS and calendar
|
|
148
149
|
]
|
|
149
150
|
}
|
|
150
151
|
}
|
|
@@ -303,6 +303,77 @@ module.exports = oneOf({
|
|
|
303
303
|
default: 14
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
+
}),
|
|
307
|
+
questionnaire: oneOf({
|
|
308
|
+
description: 'Defines a questionnaire with selectable answers.',
|
|
309
|
+
type: 'object',
|
|
310
|
+
additionalProperties: false,
|
|
311
|
+
properties: {
|
|
312
|
+
enabled: {
|
|
313
|
+
description: 'Specifies if the questionnaire feature is available.',
|
|
314
|
+
type: 'boolean',
|
|
315
|
+
default: false
|
|
316
|
+
},
|
|
317
|
+
content: oneOf({
|
|
318
|
+
description: 'List of questions to present.',
|
|
319
|
+
type: 'array',
|
|
320
|
+
items: {
|
|
321
|
+
type: 'object',
|
|
322
|
+
additionalProperties: false,
|
|
323
|
+
properties: {
|
|
324
|
+
id: {
|
|
325
|
+
description: 'Unique identifier of the question.',
|
|
326
|
+
type: 'string',
|
|
327
|
+
minLength: 1,
|
|
328
|
+
maxLength: 128
|
|
329
|
+
},
|
|
330
|
+
question: {
|
|
331
|
+
description: 'Question text.',
|
|
332
|
+
type: 'string',
|
|
333
|
+
minLength: 1,
|
|
334
|
+
maxLength: 512
|
|
335
|
+
},
|
|
336
|
+
type: oneOf({
|
|
337
|
+
description: 'Question type.',
|
|
338
|
+
type: 'string',
|
|
339
|
+
enum: [
|
|
340
|
+
'simple_select'
|
|
341
|
+
],
|
|
342
|
+
default: 'simple_select'
|
|
343
|
+
}),
|
|
344
|
+
required: {
|
|
345
|
+
description: 'If true, this question must be answered.',
|
|
346
|
+
type: 'boolean',
|
|
347
|
+
default: false
|
|
348
|
+
},
|
|
349
|
+
answers: oneOf({
|
|
350
|
+
description: 'List of selectable answers.',
|
|
351
|
+
type: 'array',
|
|
352
|
+
minItems: 1,
|
|
353
|
+
maxItems: 5,
|
|
354
|
+
items: {
|
|
355
|
+
type: 'object',
|
|
356
|
+
additionalProperties: false,
|
|
357
|
+
properties: {
|
|
358
|
+
id: {
|
|
359
|
+
description: 'Unique identifier of the answer.',
|
|
360
|
+
type: 'string',
|
|
361
|
+
minLength: 1,
|
|
362
|
+
maxLength: 128
|
|
363
|
+
},
|
|
364
|
+
content: {
|
|
365
|
+
description: 'Answer text.',
|
|
366
|
+
type: 'string',
|
|
367
|
+
minLength: 1,
|
|
368
|
+
maxLength: 256
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
})
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
})
|
|
376
|
+
}
|
|
306
377
|
})
|
|
307
378
|
}
|
|
308
379
|
})
|