@tillhub/schemas 6.256.0 → 6.257.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,24 @@
|
|
|
1
|
+
# [6.257.0](https://github.com/tillhub/schemas/compare/v6.256.1...v6.257.0) (2023-09-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **staff:** base object did not pass validation in tests. ([7d29d4e](https://github.com/tillhub/schemas/commit/7d29d4e))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **staff:** finalize schema for reservation planing of staff member ([03b69d6](https://github.com/tillhub/schemas/commit/03b69d6))
|
|
12
|
+
* **staff:** needed when staff member gets updated, this enables dashboard to change staff infividua ([4ca8393](https://github.com/tillhub/schemas/commit/4ca8393))
|
|
13
|
+
* **staff:** Split one field in two, where one just controls if other has effect ([bd8c378](https://github.com/tillhub/schemas/commit/bd8c378))
|
|
14
|
+
|
|
15
|
+
## [6.256.1](https://github.com/tillhub/schemas/compare/v6.256.0...v6.256.1) (2023-08-31)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **configuration:** add logo to be nullable, and delete wrong constraint for opening hours and leave ([52c7bba](https://github.com/tillhub/schemas/commit/52c7bba))
|
|
21
|
+
|
|
1
22
|
# [6.256.0](https://github.com/tillhub/schemas/compare/v6.255.0...v6.256.0) (2023-08-30)
|
|
2
23
|
|
|
3
24
|
|
package/lib/v0/staff/base.js
CHANGED
|
@@ -504,5 +504,41 @@ module.exports = {
|
|
|
504
504
|
type: 'null'
|
|
505
505
|
}
|
|
506
506
|
]
|
|
507
|
+
},
|
|
508
|
+
individual_reservation_times: {
|
|
509
|
+
description: 'Whether or not this staff member is having custom work hours.',
|
|
510
|
+
type: 'boolean'
|
|
511
|
+
},
|
|
512
|
+
individual_work_plan: {
|
|
513
|
+
description: 'Custom schedule for this staff member.',
|
|
514
|
+
type: 'array',
|
|
515
|
+
items: {
|
|
516
|
+
type: 'object',
|
|
517
|
+
properties: {
|
|
518
|
+
day_index: {
|
|
519
|
+
description: 'The day of the week. Indexed as 0 = Monday, 6 = Sunday.',
|
|
520
|
+
type: 'integer',
|
|
521
|
+
minimum: 0,
|
|
522
|
+
maximum: 6
|
|
523
|
+
},
|
|
524
|
+
time_ranges: {
|
|
525
|
+
description: 'A list of time ranges for this day.',
|
|
526
|
+
type: 'array',
|
|
527
|
+
items: {
|
|
528
|
+
type: 'object',
|
|
529
|
+
properties: {
|
|
530
|
+
start: {
|
|
531
|
+
description: 'The start time of this range.',
|
|
532
|
+
type: 'string'
|
|
533
|
+
},
|
|
534
|
+
end: {
|
|
535
|
+
description: 'The end time of this range.',
|
|
536
|
+
type: 'string'
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
507
543
|
}
|
|
508
544
|
}
|
|
@@ -30,7 +30,10 @@ module.exports = {
|
|
|
30
30
|
type: 'string'
|
|
31
31
|
},
|
|
32
32
|
logo: {
|
|
33
|
-
|
|
33
|
+
oneOf: [
|
|
34
|
+
{ type: 'null' },
|
|
35
|
+
{ type: 'string' }
|
|
36
|
+
]
|
|
34
37
|
},
|
|
35
38
|
color: {
|
|
36
39
|
type: 'string'
|
|
@@ -96,20 +99,16 @@ module.exports = {
|
|
|
96
99
|
type: 'boolean'
|
|
97
100
|
},
|
|
98
101
|
open_from: {
|
|
99
|
-
type: 'string'
|
|
100
|
-
format: 'time'
|
|
102
|
+
type: 'string'
|
|
101
103
|
},
|
|
102
104
|
open_to: {
|
|
103
|
-
type: 'string'
|
|
104
|
-
format: 'time'
|
|
105
|
+
type: 'string'
|
|
105
106
|
},
|
|
106
107
|
break_from: {
|
|
107
|
-
type: 'string'
|
|
108
|
-
format: 'time'
|
|
108
|
+
type: 'string'
|
|
109
109
|
},
|
|
110
110
|
break_to: {
|
|
111
|
-
type: 'string'
|
|
112
|
-
format: 'time'
|
|
111
|
+
type: 'string'
|
|
113
112
|
}
|
|
114
113
|
}
|
|
115
114
|
}
|