@tillhub/schemas 6.254.0 → 6.256.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.256.0](https://github.com/tillhub/schemas/compare/v6.255.0...v6.256.0) (2023-08-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * **stock-management:** add product id to stock-book create event ([#859](https://github.com/tillhub/schemas/issues/859)) ([1c0928f](https://github.com/tillhub/schemas/commit/1c0928f))
7
+
8
+ # [6.255.0](https://github.com/tillhub/schemas/compare/v6.254.0...v6.255.0) (2023-08-30)
9
+
10
+
11
+ ### Features
12
+
13
+ * **configuration:** add schema for reservation config ([548865c](https://github.com/tillhub/schemas/commit/548865c))
14
+
1
15
  # [6.254.0](https://github.com/tillhub/schemas/compare/v6.253.0...v6.254.0) (2023-08-28)
2
16
 
3
17
 
@@ -39,6 +39,7 @@ const eventOverrideData = {
39
39
  ...baseObject(),
40
40
  ...baseProduct
41
41
  }, [
42
+ 'id',
42
43
  'name',
43
44
  'client_id',
44
45
  'custom_id',
@@ -64,6 +65,11 @@ const eventOverrideData = {
64
65
  type: 'string',
65
66
  example: 'Not arbitrary reason'
66
67
  }),
68
+ stock_id: oneOf({
69
+ description: 'id of stock entity',
70
+ type: 'string',
71
+ example: 'f0a52a37-df58-465d-9121-b8180fc95133'
72
+ }),
67
73
  transaction_id: oneOf({
68
74
  description: 'id of transaction, if stock book is related to transaction',
69
75
  type: 'string',
@@ -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.254.0",
3
+ "version": "6.256.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",