@tillhub/schemas 6.410.0 → 6.412.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 +14 -0
- package/lib/v1/configurations/items/settings.js +6 -1
- 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,17 @@
|
|
|
1
|
+
# [6.412.0](https://github.com/tillhub/schemas/compare/v6.411.0...v6.412.0) (2025-11-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **release:** triggre release ([#1095](https://github.com/tillhub/schemas/issues/1095)) ([11bea18](https://github.com/tillhub/schemas/commit/11bea18))
|
|
7
|
+
|
|
8
|
+
# [6.411.0](https://github.com/tillhub/schemas/compare/v6.410.0...v6.411.0) (2025-11-04)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **configurations:** add hide_empty_fields setting to support hiding empty field values ([362c4e8](https://github.com/tillhub/schemas/commit/362c4e8))
|
|
14
|
+
|
|
1
15
|
# [6.410.0](https://github.com/tillhub/schemas/compare/v6.409.0...v6.410.0) (2025-11-03)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -1001,7 +1001,12 @@ module.exports = {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
},
|
|
1003
1003
|
required: ['shop_name']
|
|
1004
|
-
}
|
|
1004
|
+
},
|
|
1005
|
+
hide_empty_fields: oneOf({
|
|
1006
|
+
description: 'When enabled, fields with empty values will be hidden from view on Order and Transaction pages.',
|
|
1007
|
+
type: 'boolean',
|
|
1008
|
+
default: true
|
|
1009
|
+
})
|
|
1005
1010
|
}
|
|
1006
1011
|
}
|
|
1007
1012
|
]
|
|
@@ -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
|
-
}
|