@tillhub/schemas 6.411.0 → 6.413.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 +15 -0
- package/lib/v1/configurations/items/reservations.js +7 -31
- package/lib/v1/table_layout/base.js +0 -4
- package/lib/v1/table_layout/combination_schema.js +2 -2
- package/lib/v1/table_layout/create.js +2 -6
- package/lib/v1/table_layout/duplicate.js +1 -1
- package/lib/v1/table_layout/index.js +0 -1
- package/lib/v1/table_layout/layout_schema.js +8 -12
- package/lib/v1/table_layout/read.js +0 -23
- package/lib/v1/table_layout/update.js +2 -6
- package/package.json +1 -1
- package/lib/v1/table_layout/available_tables.js +0 -38
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [6.413.0](https://github.com/tillhub/schemas/compare/v6.412.0...v6.413.0) (2025-11-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **UNTIL-17786:** argument is necessary ([#1098](https://github.com/tillhub/schemas/issues/1098)) ([83bd793](https://github.com/tillhub/schemas/commit/83bd793))
|
|
7
|
+
* **UNTIL-17786:** Extend reservation configuration logo with stored image schema ([678b01a](https://github.com/tillhub/schemas/commit/678b01a))
|
|
8
|
+
|
|
9
|
+
# [6.412.0](https://github.com/tillhub/schemas/compare/v6.411.0...v6.412.0) (2025-11-12)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **release:** triggre release ([#1095](https://github.com/tillhub/schemas/issues/1095)) ([11bea18](https://github.com/tillhub/schemas/commit/11bea18))
|
|
15
|
+
|
|
1
16
|
# [6.411.0](https://github.com/tillhub/schemas/compare/v6.410.0...v6.411.0) (2025-11-04)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const { getImages } = require('../../../common/images')
|
|
2
|
+
|
|
3
|
+
const logoImage = getImages({})
|
|
4
|
+
logoImage.anyOf.push({ type: 'string' })
|
|
5
|
+
|
|
1
6
|
module.exports = {
|
|
2
7
|
type: 'object',
|
|
3
8
|
properties: {
|
|
@@ -32,12 +37,7 @@ module.exports = {
|
|
|
32
37
|
font: {
|
|
33
38
|
type: 'string'
|
|
34
39
|
},
|
|
35
|
-
logo:
|
|
36
|
-
oneOf: [
|
|
37
|
-
{ type: 'null' },
|
|
38
|
-
{ type: 'string' }
|
|
39
|
-
]
|
|
40
|
-
},
|
|
40
|
+
logo: logoImage,
|
|
41
41
|
color: {
|
|
42
42
|
type: 'string'
|
|
43
43
|
},
|
|
@@ -53,31 +53,7 @@ module.exports = {
|
|
|
53
53
|
{ type: 'string' }
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
|
-
header_background_image: {
|
|
57
|
-
oneOf: [
|
|
58
|
-
{ type: 'null' },
|
|
59
|
-
{
|
|
60
|
-
type: 'object',
|
|
61
|
-
properties: {
|
|
62
|
-
original: {
|
|
63
|
-
type: 'string'
|
|
64
|
-
},
|
|
65
|
-
avatar: {
|
|
66
|
-
type: 'string'
|
|
67
|
-
},
|
|
68
|
-
'1x': {
|
|
69
|
-
type: 'string'
|
|
70
|
-
},
|
|
71
|
-
'2x': {
|
|
72
|
-
type: 'string'
|
|
73
|
-
},
|
|
74
|
-
'3x': {
|
|
75
|
-
type: 'string'
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
}
|
|
56
|
+
header_background_image: getImages({})
|
|
81
57
|
}
|
|
82
58
|
},
|
|
83
59
|
max_booking_lead_time: {
|
|
@@ -26,7 +26,7 @@ module.exports = {
|
|
|
26
26
|
format: 'uuid'
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
}
|
|
30
|
-
|
|
29
|
+
},
|
|
30
|
+
required: ['id', 'minPartySize', 'maxPartySize', 'isBookableExternally', 'tables']
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -2,14 +2,10 @@ const base = require('./base')
|
|
|
2
2
|
module.exports.request = {
|
|
3
3
|
$id: 'https://schemas.tillhub.com/v1/table_layout.create.request.schema.json',
|
|
4
4
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
5
|
-
additionalProperties:
|
|
5
|
+
additionalProperties: false,
|
|
6
6
|
required: ['name', 'location', 'active', 'layout'],
|
|
7
7
|
properties: {
|
|
8
|
-
...base
|
|
9
|
-
tables_count: { // @TODO: remove this field
|
|
10
|
-
type: 'number',
|
|
11
|
-
default: 0
|
|
12
|
-
}
|
|
8
|
+
...base
|
|
13
9
|
},
|
|
14
10
|
type: 'object'
|
|
15
11
|
}
|
|
@@ -108,16 +108,8 @@ module.exports = {
|
|
|
108
108
|
type: 'boolean'
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
additionalProperties: false
|
|
112
|
-
|
|
113
|
-
required: ['id', 'type', 'x', 'y', 'width', 'height']
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
additionalProperties: false
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/** @TODO: add these line to the schema :
|
|
120
|
-
* required: ['id', 'type', 'x', 'y', 'width', 'height'],
|
|
111
|
+
additionalProperties: false,
|
|
112
|
+
required: ['id', 'type', 'x', 'y', 'width', 'height'],
|
|
121
113
|
if: {
|
|
122
114
|
properties: {
|
|
123
115
|
type: {
|
|
@@ -126,6 +118,10 @@ module.exports = {
|
|
|
126
118
|
}
|
|
127
119
|
},
|
|
128
120
|
then: {
|
|
129
|
-
required: ['sortOrder', 'name', 'minPartySize', 'maxPartySize', 'isBookableExternally'
|
|
121
|
+
required: ['sortOrder', 'name', 'minPartySize', 'maxPartySize', 'isBookableExternally']
|
|
130
122
|
}
|
|
131
|
-
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
additionalProperties: false
|
|
127
|
+
}
|
|
@@ -3,7 +3,6 @@ const commonResponse = require('../../common/response')
|
|
|
3
3
|
const commonQuery = require('../../common/query')
|
|
4
4
|
const combinationSchema = require('./combination_schema')
|
|
5
5
|
const layoutSchema = require('./layout_schema')
|
|
6
|
-
const availableTables = require('./available_tables')
|
|
7
6
|
|
|
8
7
|
const sharedSchema = {
|
|
9
8
|
name: {
|
|
@@ -14,9 +13,6 @@ const sharedSchema = {
|
|
|
14
13
|
type: 'string',
|
|
15
14
|
format: 'uuid'
|
|
16
15
|
},
|
|
17
|
-
gridColumnCount: {
|
|
18
|
-
type: 'number'
|
|
19
|
-
},
|
|
20
16
|
active: {
|
|
21
17
|
type: 'boolean',
|
|
22
18
|
default: false
|
|
@@ -111,7 +107,6 @@ module.exports.all = {
|
|
|
111
107
|
})
|
|
112
108
|
}
|
|
113
109
|
}
|
|
114
|
-
|
|
115
110
|
module.exports.one = {
|
|
116
111
|
response: {
|
|
117
112
|
$id: 'https://schemas.tillhub.com/v1/table_layout.read.one.response.schema.json',
|
|
@@ -133,21 +128,3 @@ module.exports.one = {
|
|
|
133
128
|
})
|
|
134
129
|
}
|
|
135
130
|
}
|
|
136
|
-
|
|
137
|
-
module.exports.available_tables = {
|
|
138
|
-
response: {
|
|
139
|
-
$id: 'https://schemas.tillhub.com/v1/table_layout.read.available_tables.response.schema.json',
|
|
140
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
141
|
-
additionalProperties: false,
|
|
142
|
-
...commonResponse({
|
|
143
|
-
resultItems: {
|
|
144
|
-
type: 'object',
|
|
145
|
-
additionalProperties: false,
|
|
146
|
-
properties: {
|
|
147
|
-
...baseObject(),
|
|
148
|
-
...availableTables
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
})
|
|
152
|
-
}
|
|
153
|
-
}
|
|
@@ -3,14 +3,10 @@ const base = require('./base')
|
|
|
3
3
|
module.exports.request = {
|
|
4
4
|
$id: 'https://schemas.tillhub.com/v0/table_layout.update.request.schema.json',
|
|
5
5
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
6
|
-
additionalProperties:
|
|
6
|
+
additionalProperties: false,
|
|
7
7
|
type: 'object',
|
|
8
8
|
required: [],
|
|
9
9
|
properties: {
|
|
10
|
-
...base
|
|
11
|
-
tables_count: { // @TODO: remove this field
|
|
12
|
-
type: 'number',
|
|
13
|
-
default: 0
|
|
14
|
-
}
|
|
10
|
+
...base
|
|
15
11
|
}
|
|
16
12
|
}
|
package/package.json
CHANGED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
id: {
|
|
3
|
-
type: 'string',
|
|
4
|
-
format: 'uuid'
|
|
5
|
-
},
|
|
6
|
-
layoutId: {
|
|
7
|
-
type: 'string',
|
|
8
|
-
format: 'uuid'
|
|
9
|
-
},
|
|
10
|
-
sortOrder: {
|
|
11
|
-
type: 'number'
|
|
12
|
-
},
|
|
13
|
-
name: {
|
|
14
|
-
type: 'string'
|
|
15
|
-
},
|
|
16
|
-
parents: {
|
|
17
|
-
type: 'array',
|
|
18
|
-
items: {
|
|
19
|
-
type: 'string',
|
|
20
|
-
format: 'uuid'
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
minPartySize: {
|
|
24
|
-
type: 'number'
|
|
25
|
-
},
|
|
26
|
-
maxPartySize: {
|
|
27
|
-
type: 'number'
|
|
28
|
-
},
|
|
29
|
-
isCombination: {
|
|
30
|
-
type: 'boolean'
|
|
31
|
-
},
|
|
32
|
-
isBookableExternally: {
|
|
33
|
-
type: 'boolean'
|
|
34
|
-
},
|
|
35
|
-
type: {
|
|
36
|
-
type: 'string'
|
|
37
|
-
}
|
|
38
|
-
}
|