@tillhub/schemas 6.241.0 → 6.242.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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [6.242.1](https://github.com/tillhub/schemas/compare/v6.242.0...v6.242.1) (2023-08-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **configurations:** staff ([dd2cc5f](https://github.com/tillhub/schemas/commit/dd2cc5f))
7
+
8
+ # [6.242.0](https://github.com/tillhub/schemas/compare/v6.241.0...v6.242.0) (2023-08-04)
9
+
10
+
11
+ ### Features
12
+
13
+ * **configurations:** receipts ([e897492](https://github.com/tillhub/schemas/commit/e897492))
14
+
1
15
  # [6.241.0](https://github.com/tillhub/schemas/compare/v6.240.1...v6.241.0) (2023-08-04)
2
16
 
3
17
 
@@ -187,6 +187,30 @@ const cartReceipt = {
187
187
  type: 'boolean',
188
188
  default: false
189
189
  }),
190
+ external_rewards: oneOf({
191
+ description: 'Defines external rewards printing',
192
+ type: 'object',
193
+ additionalProperties: false,
194
+ properties: {
195
+ enabled: {
196
+ description: 'States if external rewards information will be printed',
197
+ type: 'boolean',
198
+ default: false // maybe true on 'customer'
199
+ },
200
+ coop: oneOf({
201
+ description: 'Defines external rewards printing for coop',
202
+ type: 'object',
203
+ additionalProperties: false,
204
+ properties: {
205
+ print_balances: oneOf({
206
+ description: 'Defines if previous and anticipated balances will be printed',
207
+ type: 'boolean',
208
+ default: false
209
+ })
210
+ }
211
+ })
212
+ }
213
+ }),
190
214
  minimize_signing_footer: oneOf({
191
215
  description: 'Defines if signing footer is printed without any spaces and line breaks',
192
216
  type: 'boolean',
@@ -83,27 +83,14 @@ module.exports = {
83
83
  'default': false
84
84
  })
85
85
  },
86
- short_code_length: oneOf({
87
- type: 'object',
88
- additionalProperties: false,
89
- properties: {
90
- min: oneOf({
91
- type: 'integer',
92
- description: 'Minimum number of digits for a staff short_code (falsely referred to as pin most of the time).',
93
- minimum: 1,
94
- maximum: 10,
95
- example: 4,
96
- default: 4
97
- }),
98
- max: oneOf({
99
- type: 'integer',
100
- description: 'Maximum number of digits for a staff short_code (falsely referred to as pin most of the time).',
101
- minimum: 4,
102
- maximum: 16,
103
- example: 6,
104
- default: 6
105
- })
106
- }
86
+ cashier_pin_gen_length: oneOf({
87
+ // https://unz.atlassian.net/browse/UNTIL-2810
88
+ type: 'integer',
89
+ description: 'Number of digits for a staff short_code (falsely referred to as \'pin\').',
90
+ minimum: 4,
91
+ maximum: 10,
92
+ example: 4,
93
+ default: 4
107
94
  }),
108
95
  staff_number_length: {
109
96
  // deprecated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.241.0",
3
+ "version": "6.242.1",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",