@tillhub/schemas 6.114.0 → 6.117.1
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 +4 -1
- package/lib/v0/category_trees/definitions.js +1 -1
- package/lib/v0/staff/scopes.js +2 -0
- package/lib/v1/carts/create.request.js +11 -0
- package/lib/v1/carts/patch.request.js +11 -0
- package/lib/v1/configurations/items/gastro.js +26 -0
- package/lib/v1/configurations/items/interfaces.js +45 -5
- package/lib/v1/configurations/items/receipts.js +5 -0
- package/lib/v1/delivery_notes/base.js +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
## [6.117.1](https://github.com/tillhub/schemas/compare/v6.117.0...v6.117.1) (2022-02-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **documentation:** fixing the circular dependency issue ([b1916ec](https://github.com/tillhub/schemas/commit/b1916ec))
|
|
7
|
+
|
|
8
|
+
# [6.117.0](https://github.com/tillhub/schemas/compare/v6.116.0...v6.117.0) (2022-02-08)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **carts:** customers ([abb5a1e](https://github.com/tillhub/schemas/commit/abb5a1e))
|
|
14
|
+
* **carts:** patch ([b370fac](https://github.com/tillhub/schemas/commit/b370fac))
|
|
15
|
+
* **delivery notes:** customer ([b8aedeb](https://github.com/tillhub/schemas/commit/b8aedeb))
|
|
16
|
+
|
|
17
|
+
# [6.116.0](https://github.com/tillhub/schemas/compare/v6.115.0...v6.116.0) (2022-01-25)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **scopes:** permissions ([16dfe70](https://github.com/tillhub/schemas/commit/16dfe70))
|
|
23
|
+
|
|
24
|
+
# [6.115.0](https://github.com/tillhub/schemas/compare/v6.114.0...v6.115.0) (2022-01-20)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **configurations:** gastro ([8d42bed](https://github.com/tillhub/schemas/commit/8d42bed))
|
|
30
|
+
* **configurations:** gastro ([22a71cf](https://github.com/tillhub/schemas/commit/22a71cf))
|
|
31
|
+
* **configurations:** gastro ([bf8546e](https://github.com/tillhub/schemas/commit/bf8546e))
|
|
32
|
+
* **configurations:** interfaces ([25ffd1b](https://github.com/tillhub/schemas/commit/25ffd1b))
|
|
33
|
+
* **configurations:** receipts ([2caf476](https://github.com/tillhub/schemas/commit/2caf476))
|
|
34
|
+
|
|
1
35
|
# [6.114.0](https://github.com/tillhub/schemas/compare/v6.113.0...v6.114.0) (2022-01-20)
|
|
2
36
|
|
|
3
37
|
|
|
@@ -21,6 +21,8 @@ module.exports.staff = {
|
|
|
21
21
|
'staff:staff:transactions:cancel:row',
|
|
22
22
|
'staff:staff:transactions:prices',
|
|
23
23
|
'staff:staff:transactions:qty',
|
|
24
|
+
'staff:staff:transactions:qty:positive',
|
|
25
|
+
'staff:staff:transactions:qty:negative',
|
|
24
26
|
'staff:staff:transactions:cash_return',
|
|
25
27
|
'staff:staff:transactions:vouchers',
|
|
26
28
|
'staff:staff:transactions:print',
|
|
@@ -128,7 +130,8 @@ module.exports.staff = {
|
|
|
128
130
|
'staff:staff:licenses:delete',
|
|
129
131
|
'staff:staff:processes:all_staff',
|
|
130
132
|
'staff:staff:processes:all_locations',
|
|
131
|
-
'staff:staff:orders:others:locked:modify' // allows modifying other staffs' orders (gastro)
|
|
133
|
+
'staff:staff:orders:others:locked:modify', // allows modifying other staffs' orders (gastro)
|
|
134
|
+
'staff:staff:orders:preview:print' // allows printing previews for unpaid orders (gastro)
|
|
132
135
|
]
|
|
133
136
|
}
|
|
134
137
|
}
|
package/lib/v0/staff/scopes.js
CHANGED
|
@@ -16,6 +16,8 @@ module.exports = [
|
|
|
16
16
|
'staff:staff:transactions:cancel:row',
|
|
17
17
|
'staff:staff:transactions:prices',
|
|
18
18
|
'staff:staff:transactions:qty',
|
|
19
|
+
'staff:staff:transactions:qty:positive',
|
|
20
|
+
'staff:staff:transactions:qty:negative',
|
|
19
21
|
'staff:staff:transactions:cash_return',
|
|
20
22
|
'staff:staff:transactions:vouchers',
|
|
21
23
|
'staff:staff:transactions:print',
|
|
@@ -2,9 +2,35 @@ 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
|
+
}),
|
|
8
34
|
remote_access: oneOf({
|
|
9
35
|
type: 'object',
|
|
10
36
|
properties: {
|
|
@@ -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',
|