@tillhub/schemas 6.387.0 → 6.390.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.390.0](https://github.com/tillhub/schemas/compare/v6.389.0...v6.390.0) (2025-06-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **table_layout:** triggering build ([#1069](https://github.com/tillhub/schemas/issues/1069)) ([7741187](https://github.com/tillhub/schemas/commit/7741187))
|
|
7
|
+
|
|
8
|
+
# [6.389.0](https://github.com/tillhub/schemas/compare/v6.388.0...v6.389.0) (2025-06-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **table_layout:** fix eslint ([#1068](https://github.com/tillhub/schemas/issues/1068)) ([3f71149](https://github.com/tillhub/schemas/commit/3f71149))
|
|
14
|
+
|
|
15
|
+
# [6.388.0](https://github.com/tillhub/schemas/compare/v6.387.0...v6.388.0) (2025-06-02)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **table_layout:** enhance schema with new table management fields ([#1066](https://github.com/tillhub/schemas/issues/1066)) ([732015c](https://github.com/tillhub/schemas/commit/732015c))
|
|
21
|
+
|
|
1
22
|
# [6.387.0](https://github.com/tillhub/schemas/compare/v6.386.0...v6.387.0) (2025-05-09)
|
|
2
23
|
|
|
3
24
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
id: {
|
|
3
|
+
type: 'string',
|
|
4
|
+
format: 'uuid'
|
|
5
|
+
},
|
|
6
|
+
layout_id: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
format: 'uuid'
|
|
9
|
+
},
|
|
10
|
+
sort_order: {
|
|
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
|
+
min_party_size: {
|
|
24
|
+
type: 'number'
|
|
25
|
+
},
|
|
26
|
+
max_party_size: {
|
|
27
|
+
type: 'number'
|
|
28
|
+
},
|
|
29
|
+
is_combination: {
|
|
30
|
+
type: 'boolean'
|
|
31
|
+
},
|
|
32
|
+
is_bookable_externally: {
|
|
33
|
+
type: 'boolean'
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
type: 'string'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -11,10 +11,6 @@ module.exports = {
|
|
|
11
11
|
type: 'string',
|
|
12
12
|
format: 'uuid'
|
|
13
13
|
},
|
|
14
|
-
tables_count: {
|
|
15
|
-
type: 'integer',
|
|
16
|
-
minimum: 0
|
|
17
|
-
},
|
|
18
14
|
active: {
|
|
19
15
|
type: 'boolean',
|
|
20
16
|
default: true
|
|
@@ -23,5 +19,38 @@ module.exports = {
|
|
|
23
19
|
type: 'object',
|
|
24
20
|
additionalProperties: true,
|
|
25
21
|
default: {}
|
|
22
|
+
},
|
|
23
|
+
combinations: {
|
|
24
|
+
type: 'array',
|
|
25
|
+
additionalProperties: true,
|
|
26
|
+
minItems: 0,
|
|
27
|
+
items: {
|
|
28
|
+
type: 'object',
|
|
29
|
+
properties: {
|
|
30
|
+
id: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
format: 'uuid'
|
|
33
|
+
},
|
|
34
|
+
min_party_size: {
|
|
35
|
+
type: 'number',
|
|
36
|
+
minimum: 0
|
|
37
|
+
},
|
|
38
|
+
max_party_size: {
|
|
39
|
+
type: 'number',
|
|
40
|
+
minimum: 0
|
|
41
|
+
},
|
|
42
|
+
is_bookable_externally: {
|
|
43
|
+
type: 'boolean'
|
|
44
|
+
},
|
|
45
|
+
tables: {
|
|
46
|
+
type: 'array',
|
|
47
|
+
items: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
format: 'uuid'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
required: ['id', 'min_party_size', 'max_party_size', 'is_bookable_externally', 'tables']
|
|
54
|
+
}
|
|
26
55
|
}
|
|
27
56
|
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
const base = require('./base')
|
|
2
|
-
|
|
3
2
|
module.exports.request = {
|
|
4
3
|
$id: 'https://schemas.tillhub.com/v1/table_layout.create.request.schema.json',
|
|
5
4
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
6
5
|
additionalProperties: false,
|
|
7
|
-
required: [
|
|
8
|
-
'name',
|
|
9
|
-
'location',
|
|
10
|
-
'tables_count',
|
|
11
|
-
'active'
|
|
12
|
-
],
|
|
6
|
+
required: ['name', 'location', 'active'],
|
|
13
7
|
properties: base,
|
|
14
8
|
type: 'object'
|
|
15
9
|
}
|
|
@@ -83,3 +83,21 @@ module.exports.one = {
|
|
|
83
83
|
})
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
+
|
|
87
|
+
module.exports.available_tables = {
|
|
88
|
+
response: {
|
|
89
|
+
$id: 'https://schemas.tillhub.com/v1/table_layout.read.available_tables.response.schema.json',
|
|
90
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
91
|
+
additionalProperties: false,
|
|
92
|
+
...commonResponse({
|
|
93
|
+
resultItems: {
|
|
94
|
+
type: 'object',
|
|
95
|
+
additionalProperties: false,
|
|
96
|
+
properties: {
|
|
97
|
+
...baseObject(),
|
|
98
|
+
...base
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
})
|
|
102
|
+
}
|
|
103
|
+
}
|