@tillhub/schemas 6.240.0 → 6.241.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.241.0](https://github.com/tillhub/schemas/compare/v6.240.1...v6.241.0) (2023-08-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **configurations:** features ([e642ef1](https://github.com/tillhub/schemas/commit/e642ef1))
|
|
7
|
+
* **configurations:** receipts ([4be436d](https://github.com/tillhub/schemas/commit/4be436d))
|
|
8
|
+
|
|
9
|
+
## [6.240.1](https://github.com/tillhub/schemas/compare/v6.240.0...v6.240.1) (2023-08-03)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **services:** add $id and $schema fields ([#838](https://github.com/tillhub/schemas/issues/838)) ([fe7dfc4](https://github.com/tillhub/schemas/commit/fe7dfc4))
|
|
15
|
+
|
|
1
16
|
# [6.240.0](https://github.com/tillhub/schemas/compare/v6.239.0...v6.240.0) (2023-07-31)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -11,7 +11,7 @@ module.exports = {
|
|
|
11
11
|
example: 'Haircut'
|
|
12
12
|
},
|
|
13
13
|
category: oneOf({
|
|
14
|
-
description: 'The UUID of the category that the service
|
|
14
|
+
description: 'The UUID of the category that the service belongs to',
|
|
15
15
|
type: 'string',
|
|
16
16
|
format: 'uuid',
|
|
17
17
|
example: '05297f58-3408-44d0-8bf4-125d4e86c08a'
|
|
@@ -30,5 +30,7 @@ module.exports = {
|
|
|
30
30
|
example: '05297f58-3408-44d0-8bf4-125d4e86c08a'
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
required: ['name', 'duration', 'linked_product']
|
|
33
|
+
required: ['name', 'duration', 'linked_product'],
|
|
34
|
+
$id: 'https://schemas.tillhub.com/v0/services.create.request.schema.json',
|
|
35
|
+
$schema: 'http://json-schema.org/draft-07/schema#'
|
|
34
36
|
}
|
|
@@ -114,7 +114,7 @@ module.exports = oneOf({
|
|
|
114
114
|
enum: [
|
|
115
115
|
'none',
|
|
116
116
|
'offline',
|
|
117
|
-
'online'
|
|
117
|
+
'online' // fallback to offline if no results
|
|
118
118
|
],
|
|
119
119
|
default: 'none'
|
|
120
120
|
})
|
|
@@ -244,7 +244,8 @@ module.exports = oneOf({
|
|
|
244
244
|
enum: [
|
|
245
245
|
'never',
|
|
246
246
|
'if_missing',
|
|
247
|
-
'always'
|
|
247
|
+
'always',
|
|
248
|
+
'enforce_if_missing'
|
|
248
249
|
],
|
|
249
250
|
default: 'if_missing'
|
|
250
251
|
},
|
|
@@ -299,6 +299,45 @@ const balanceReceipt = {
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
+
const stockAdjustmentReceipt = {
|
|
303
|
+
type: 'object',
|
|
304
|
+
description: 'Defines receipt printing for stock adjustments',
|
|
305
|
+
additionalProperties: false,
|
|
306
|
+
properties: {
|
|
307
|
+
print_cashier_policy: oneOf({
|
|
308
|
+
description: 'Defines if and how the cashier will be printed on the receipt.',
|
|
309
|
+
type: 'string',
|
|
310
|
+
enum: [
|
|
311
|
+
'number',
|
|
312
|
+
'name', // legacy, will indicate full name printing
|
|
313
|
+
'none',
|
|
314
|
+
'first_name', // first name only
|
|
315
|
+
'last_name' // last name only
|
|
316
|
+
]
|
|
317
|
+
}),
|
|
318
|
+
print_product_description: oneOf({
|
|
319
|
+
description: 'Defines if the product description will be printed (e.g. just for the customer)',
|
|
320
|
+
type: 'boolean',
|
|
321
|
+
default: false
|
|
322
|
+
}),
|
|
323
|
+
print_product_group: oneOf({
|
|
324
|
+
description: 'Defines if the product group will be printed (e.g. just for the merchant)',
|
|
325
|
+
type: 'boolean',
|
|
326
|
+
default: false
|
|
327
|
+
}),
|
|
328
|
+
print_product_number: oneOf({
|
|
329
|
+
description: 'Defines if the product number (in case of options) will be printed (e.g. just for the merchant)',
|
|
330
|
+
type: 'boolean',
|
|
331
|
+
default: true
|
|
332
|
+
}),
|
|
333
|
+
print_product_name: oneOf({
|
|
334
|
+
description: 'Defines if the product name (in case of options) will be printed (e.g. just for the merchant)',
|
|
335
|
+
type: 'boolean',
|
|
336
|
+
default: true
|
|
337
|
+
})
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
302
341
|
const voucherReceipt = {
|
|
303
342
|
type: 'object',
|
|
304
343
|
description: 'Defines receipt printing for vouchers',
|
|
@@ -542,6 +581,11 @@ module.exports = oneOf({
|
|
|
542
581
|
type: 'object',
|
|
543
582
|
...balanceReceipt
|
|
544
583
|
},
|
|
584
|
+
stock_adjustment: {
|
|
585
|
+
description: 'Defines stock adjustment receipt printing',
|
|
586
|
+
type: 'object',
|
|
587
|
+
...stockAdjustmentReceipt
|
|
588
|
+
},
|
|
545
589
|
register_opening_protocol: {
|
|
546
590
|
description: 'Defines register opening protocol receipt printing',
|
|
547
591
|
type: 'object',
|