@tillhub/schemas 6.114.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 CHANGED
@@ -1,3 +1,14 @@
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
+
1
12
  # [6.114.0](https://github.com/tillhub/schemas/compare/v6.113.0...v6.114.0) (2022-01-20)
2
13
 
3
14
 
@@ -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
  }
@@ -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' // unknown yet
92
+ 'telegraph' // more stable than criollo
93
93
  ],
94
- default: 'criollo'
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.114.0",
3
+ "version": "6.115.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",