@tillhub/schemas 6.253.0 → 6.255.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.255.0](https://github.com/tillhub/schemas/compare/v6.254.0...v6.255.0) (2023-08-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configuration:** add schema for reservation config ([548865c](https://github.com/tillhub/schemas/commit/548865c))
7
+
8
+ # [6.254.0](https://github.com/tillhub/schemas/compare/v6.253.0...v6.254.0) (2023-08-28)
9
+
10
+
11
+ ### Features
12
+
13
+ * **customers:** add price_book_id ([c633970](https://github.com/tillhub/schemas/commit/c633970))
14
+
1
15
  # [6.253.0](https://github.com/tillhub/schemas/compare/v6.252.1...v6.253.0) (2023-08-24)
2
16
 
3
17
 
@@ -425,5 +425,12 @@ module.exports = {
425
425
  type: 'string',
426
426
  format: 'uuid'
427
427
  })
428
+ },
429
+ price_book_id: {
430
+ description: 'in cases where the customer is going to have personal pricebook (like for discounts in pharmacy by personal insurance number), price_book_id is required',
431
+ ...oneOf({
432
+ type: 'string',
433
+ format: 'uuid'
434
+ })
428
435
  }
429
436
  }
@@ -351,6 +351,14 @@ module.exports = {
351
351
  }
352
352
  ]
353
353
  },
354
+ reservations: {
355
+ oneOf: [
356
+ {
357
+ type: 'null'
358
+ },
359
+ require('./items/reservations')
360
+ ]
361
+ },
354
362
  searches: {
355
363
  oneOf: [
356
364
  {
@@ -0,0 +1,118 @@
1
+ module.exports = {
2
+ type: 'object',
3
+ properties: {
4
+ closing_days: {
5
+ type: 'array',
6
+ items: {
7
+ type: 'object',
8
+ properties: {
9
+ reason: {
10
+ type: 'string'
11
+ },
12
+ start_date: {
13
+ type: 'string',
14
+ format: 'date'
15
+ },
16
+ end_date: {
17
+ type: 'string',
18
+ format: 'date'
19
+ }
20
+ }
21
+ }
22
+ },
23
+ customization: {
24
+ type: 'object',
25
+ properties: {
26
+ theme: {
27
+ type: 'object',
28
+ properties: {
29
+ font: {
30
+ type: 'string'
31
+ },
32
+ logo: {
33
+ type: 'string'
34
+ },
35
+ color: {
36
+ type: 'string'
37
+ }
38
+ }
39
+ },
40
+ max_booking_lead_time: {
41
+ type: 'object',
42
+ properties: {
43
+ type: {
44
+ type: 'string'
45
+ },
46
+ value: {
47
+ type: 'number'
48
+ }
49
+ }
50
+ },
51
+ min_booking_lead_time: {
52
+ type: 'object',
53
+ properties: {
54
+ type: {
55
+ type: 'string'
56
+ },
57
+ value: {
58
+ type: 'number'
59
+ }
60
+ }
61
+ },
62
+ cancellation_lead_time: {
63
+ type: 'object',
64
+ properties: {
65
+ type: {
66
+ type: 'string'
67
+ },
68
+ value: {
69
+ type: 'number'
70
+ }
71
+ }
72
+ },
73
+ allow_employee_selection: {
74
+ type: 'boolean'
75
+ },
76
+ reservations_page_activated: {
77
+ type: 'boolean'
78
+ },
79
+ max_services_per_appointment: {
80
+ type: 'number'
81
+ },
82
+ reservation_frequency_minutes: {
83
+ type: 'number'
84
+ }
85
+ }
86
+ },
87
+ opening_hours: {
88
+ type: 'array',
89
+ items: {
90
+ type: 'object',
91
+ properties: {
92
+ day_index: {
93
+ type: 'number'
94
+ },
95
+ closed: {
96
+ type: 'boolean'
97
+ },
98
+ open_from: {
99
+ type: 'string',
100
+ format: 'time'
101
+ },
102
+ open_to: {
103
+ type: 'string',
104
+ format: 'time'
105
+ },
106
+ break_from: {
107
+ type: 'string',
108
+ format: 'time'
109
+ },
110
+ break_to: {
111
+ type: 'string',
112
+ format: 'time'
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.253.0",
3
+ "version": "6.255.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",