@tillhub/schemas 6.112.0 → 6.115.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 +34 -0
- package/lib/common/permissions.js +2 -1
- package/lib/v0/staff/base.js +1 -1
- package/lib/v1/configurations/items/features.js +25 -1
- package/lib/v1/configurations/items/gastro.js +44 -0
- package/lib/v1/configurations/items/interfaces.js +45 -5
- package/lib/v1/configurations/items/receipts.js +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
# [6.115.0](https://github.com/tillhub/schemas/compare/v6.114.0...v6.115.0) (2022-01-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **configurations:** gastro ([8d42bed](https://github.com/tillhub/schemas/commit/8d42bed))
|
|
7
|
+
* **configurations:** gastro ([22a71cf](https://github.com/tillhub/schemas/commit/22a71cf))
|
|
8
|
+
* **configurations:** gastro ([bf8546e](https://github.com/tillhub/schemas/commit/bf8546e))
|
|
9
|
+
* **configurations:** interfaces ([25ffd1b](https://github.com/tillhub/schemas/commit/25ffd1b))
|
|
10
|
+
* **configurations:** receipts ([2caf476](https://github.com/tillhub/schemas/commit/2caf476))
|
|
11
|
+
|
|
12
|
+
# [6.114.0](https://github.com/tillhub/schemas/compare/v6.113.0...v6.114.0) (2022-01-20)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **configuration:** add background_release_seconds ([5ffec4d](https://github.com/tillhub/schemas/commit/5ffec4d))
|
|
18
|
+
* **configurations:** gastro ([bdc4f0a](https://github.com/tillhub/schemas/commit/bdc4f0a))
|
|
19
|
+
|
|
20
|
+
# [6.113.0](https://github.com/tillhub/schemas/compare/v6.112.1...v6.113.0) (2022-01-20)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **configurations:** features ([6cd1289](https://github.com/tillhub/schemas/commit/6cd1289))
|
|
26
|
+
* **configurations:** features ([139876d](https://github.com/tillhub/schemas/commit/139876d))
|
|
27
|
+
|
|
28
|
+
## [6.112.1](https://github.com/tillhub/schemas/compare/v6.112.0...v6.112.1) (2022-01-13)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* **staffs:** renaming user_permission_template_id to staff_permission_template_id ([#661](https://github.com/tillhub/schemas/issues/661)) ([6fbedb4](https://github.com/tillhub/schemas/commit/6fbedb4))
|
|
34
|
+
|
|
1
35
|
# [6.112.0](https://github.com/tillhub/schemas/compare/v6.111.0...v6.112.0) (2022-01-10)
|
|
2
36
|
|
|
3
37
|
|
|
@@ -128,7 +128,8 @@ module.exports.staff = {
|
|
|
128
128
|
'staff:staff:licenses:delete',
|
|
129
129
|
'staff:staff:processes:all_staff',
|
|
130
130
|
'staff:staff:processes:all_locations',
|
|
131
|
-
'staff:staff:orders:others:locked:modify' // allows modifying other staffs' orders (gastro)
|
|
131
|
+
'staff:staff:orders:others:locked:modify', // allows modifying other staffs' orders (gastro)
|
|
132
|
+
'staff:staff:orders:preview:print' // allows printing previews for unpaid orders (gastro)
|
|
132
133
|
]
|
|
133
134
|
}
|
|
134
135
|
}
|
package/lib/v0/staff/base.js
CHANGED
|
@@ -92,11 +92,35 @@ module.exports = oneOf({
|
|
|
92
92
|
additionalProperties: false,
|
|
93
93
|
properties: {
|
|
94
94
|
enabled: {
|
|
95
|
-
description: 'Specifies if gastro tables feature is available.',
|
|
95
|
+
description: 'Specifies if gastro tables feature is available - mutually exclusive with \'web_view\'.',
|
|
96
96
|
type: 'boolean',
|
|
97
97
|
default: false
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
+
}),
|
|
101
|
+
web_view: oneOf({
|
|
102
|
+
description: 'Web view with js-interaction to iOS. Introduced by Regiondo project. Can not be used with Gastro.',
|
|
103
|
+
type: 'object',
|
|
104
|
+
additionalProperties: false,
|
|
105
|
+
properties: {
|
|
106
|
+
enabled: {
|
|
107
|
+
description: 'Specifies if a web view is shown in the main sale view - mutually exclusive with \'gastro_tables\'.',
|
|
108
|
+
type: 'boolean',
|
|
109
|
+
default: false
|
|
110
|
+
},
|
|
111
|
+
url: {
|
|
112
|
+
description: 'The URL of the web view',
|
|
113
|
+
type: 'string',
|
|
114
|
+
format: 'uri'
|
|
115
|
+
},
|
|
116
|
+
name: {
|
|
117
|
+
description: 'Display name of the web view tab in the POS',
|
|
118
|
+
type: 'string',
|
|
119
|
+
example: 'Regiondo',
|
|
120
|
+
minLength: 2,
|
|
121
|
+
maxLength: 24
|
|
122
|
+
}
|
|
123
|
+
}
|
|
100
124
|
})
|
|
101
125
|
}
|
|
102
126
|
})
|
|
@@ -2,9 +2,53 @@ const { oneOf } = require('../../../helpers/payload-or-null')
|
|
|
2
2
|
module.exports = {
|
|
3
3
|
type: 'object',
|
|
4
4
|
properties: {
|
|
5
|
+
takeaway: oneOf({
|
|
6
|
+
type: 'object',
|
|
7
|
+
additionalProperties: false,
|
|
8
|
+
properties: {
|
|
9
|
+
enabled: {
|
|
10
|
+
type: 'boolean',
|
|
11
|
+
description: 'Specifies if takeaway is available.',
|
|
12
|
+
default: false
|
|
13
|
+
},
|
|
14
|
+
use_fallback: {
|
|
15
|
+
type: 'boolean',
|
|
16
|
+
description: 'Legacy tax options can be used as a fallback before all products are synched',
|
|
17
|
+
default: true
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}),
|
|
5
21
|
orders: oneOf({
|
|
6
22
|
type: 'object',
|
|
7
23
|
properties: {
|
|
24
|
+
preview_printing: oneOf({
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: {
|
|
27
|
+
enabled: {
|
|
28
|
+
type: 'boolean',
|
|
29
|
+
description: 'defines whether preview printing is enabled.',
|
|
30
|
+
default: 'false'
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}),
|
|
34
|
+
remote_access: oneOf({
|
|
35
|
+
type: 'object',
|
|
36
|
+
properties: {
|
|
37
|
+
enabled: {
|
|
38
|
+
type: 'boolean',
|
|
39
|
+
description: 'defines whether remote access is available on the main POS.',
|
|
40
|
+
default: 'false'
|
|
41
|
+
},
|
|
42
|
+
background_release_seconds: {
|
|
43
|
+
description: 'The time in seconds that the Local Server will stay available when the app is send to the background.',
|
|
44
|
+
type: 'integer',
|
|
45
|
+
example: 15,
|
|
46
|
+
minimum: 0,
|
|
47
|
+
maximum: 3600,
|
|
48
|
+
default: 25
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}),
|
|
8
52
|
lock_to_waiters: oneOf({
|
|
9
53
|
type: 'boolean',
|
|
10
54
|
description: 'defines whether orders are locked to the waiters',
|
|
@@ -89,9 +89,17 @@ module.exports = {
|
|
|
89
89
|
enum: [
|
|
90
90
|
'none', // messages will not be visible on the POS but overall functionality is not affected
|
|
91
91
|
'criollo', // there have been issues (BSH)
|
|
92
|
-
'telegraph' //
|
|
92
|
+
'telegraph' // more stable than criollo
|
|
93
93
|
],
|
|
94
|
-
default: '
|
|
94
|
+
default: 'telegraph'
|
|
95
|
+
}),
|
|
96
|
+
inter_call_delay_seconds: oneOf({
|
|
97
|
+
type: 'number',
|
|
98
|
+
description: 'Artificial delay between a previous terminal response and the next terminal request when performed automatically (some devices require additional cooldowns to avoid \'busy\' states)',
|
|
99
|
+
minimum: 0.0,
|
|
100
|
+
maximum: 10.0,
|
|
101
|
+
multipleOf: 0.001,
|
|
102
|
+
default: 0.0
|
|
95
103
|
})
|
|
96
104
|
}
|
|
97
105
|
},
|
|
@@ -101,7 +109,15 @@ module.exports = {
|
|
|
101
109
|
enabled: {
|
|
102
110
|
type: 'boolean',
|
|
103
111
|
default: true
|
|
104
|
-
}
|
|
112
|
+
},
|
|
113
|
+
inter_call_delay_seconds: oneOf({
|
|
114
|
+
type: 'number',
|
|
115
|
+
description: 'Artificial delay between a previous terminal response and the next terminal request when performed automatically (some devices require additional cooldowns to avoid \'busy\' states)',
|
|
116
|
+
minimum: 0.0,
|
|
117
|
+
maximum: 10.0,
|
|
118
|
+
multipleOf: 0.001,
|
|
119
|
+
default: 0.0
|
|
120
|
+
})
|
|
105
121
|
}
|
|
106
122
|
},
|
|
107
123
|
opi: {
|
|
@@ -115,6 +131,14 @@ module.exports = {
|
|
|
115
131
|
description: 'Defines if swiss-specific handling of the OPI protocol will be used',
|
|
116
132
|
type: 'boolean',
|
|
117
133
|
default: false
|
|
134
|
+
}),
|
|
135
|
+
inter_call_delay_seconds: oneOf({
|
|
136
|
+
type: 'number',
|
|
137
|
+
description: 'Artificial delay between a previous terminal response and the next terminal request when performed automatically (some devices require additional cooldowns to avoid \'busy\' states)',
|
|
138
|
+
minimum: 0.0,
|
|
139
|
+
maximum: 10.0,
|
|
140
|
+
multipleOf: 0.001,
|
|
141
|
+
default: 1.0 // defaults to 3.0 if Swiss
|
|
118
142
|
})
|
|
119
143
|
}
|
|
120
144
|
},
|
|
@@ -124,7 +148,15 @@ module.exports = {
|
|
|
124
148
|
enabled: {
|
|
125
149
|
type: 'boolean',
|
|
126
150
|
default: true
|
|
127
|
-
}
|
|
151
|
+
},
|
|
152
|
+
inter_call_delay_seconds: oneOf({
|
|
153
|
+
type: 'number',
|
|
154
|
+
description: 'Artificial delay between a previous terminal response and the next terminal request when performed automatically (some devices require additional cooldowns to avoid \'busy\' states)',
|
|
155
|
+
minimum: 0.0,
|
|
156
|
+
maximum: 10.0,
|
|
157
|
+
multipleOf: 0.001,
|
|
158
|
+
default: 0.0
|
|
159
|
+
})
|
|
128
160
|
}
|
|
129
161
|
},
|
|
130
162
|
tim: {
|
|
@@ -133,7 +165,15 @@ module.exports = {
|
|
|
133
165
|
enabled: {
|
|
134
166
|
type: 'boolean',
|
|
135
167
|
default: true
|
|
136
|
-
}
|
|
168
|
+
},
|
|
169
|
+
inter_call_delay_seconds: oneOf({
|
|
170
|
+
type: 'number',
|
|
171
|
+
description: 'Artificial delay between a previous terminal response and the next terminal request when performed automatically (some devices require additional cooldowns to avoid \'busy\' states)',
|
|
172
|
+
minimum: 0.0,
|
|
173
|
+
maximum: 10.0,
|
|
174
|
+
multipleOf: 0.001,
|
|
175
|
+
default: 0.0
|
|
176
|
+
})
|
|
137
177
|
}
|
|
138
178
|
}
|
|
139
179
|
}
|
|
@@ -496,6 +496,11 @@ module.exports = oneOf({
|
|
|
496
496
|
type: 'object',
|
|
497
497
|
...cartReceipt
|
|
498
498
|
},
|
|
499
|
+
preview: {
|
|
500
|
+
description: 'Defines preview receipt printing for sales',
|
|
501
|
+
type: 'object',
|
|
502
|
+
...cartReceipt
|
|
503
|
+
},
|
|
499
504
|
order: {
|
|
500
505
|
description: 'Defines order receipt printing',
|
|
501
506
|
type: 'object',
|