@tillhub/schemas 6.153.0 → 6.156.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,25 @@
1
+ # [6.156.0](https://github.com/tillhub/schemas/compare/v6.155.0...v6.156.0) (2022-08-10)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configurations:** receipts ([7c9d972](https://github.com/tillhub/schemas/commit/7c9d972))
7
+ * **configurations:** receipts ([31de842](https://github.com/tillhub/schemas/commit/31de842))
8
+
9
+ # [6.155.0](https://github.com/tillhub/schemas/compare/v6.154.0...v6.155.0) (2022-08-08)
10
+
11
+
12
+ ### Features
13
+
14
+ * **generate_id:** make SEQUENCE mandatory for customer, product & staff ([bd831b9](https://github.com/tillhub/schemas/commit/bd831b9))
15
+
16
+ # [6.154.0](https://github.com/tillhub/schemas/compare/v6.153.0...v6.154.0) (2022-08-06)
17
+
18
+
19
+ ### Features
20
+
21
+ * **trash:** Add AddonGroups to revision history to be able to recover ([#720](https://github.com/tillhub/schemas/issues/720)) ([0402a86](https://github.com/tillhub/schemas/commit/0402a86))
22
+
1
23
  # [6.153.0](https://github.com/tillhub/schemas/compare/v6.152.0...v6.153.0) (2022-08-05)
2
24
 
3
25
 
@@ -35,6 +35,7 @@ module.exports.query = {
35
35
  'product_service_questions',
36
36
  'product_templates',
37
37
  'products_v1',
38
+ 'products_v1_addon_groups',
38
39
  'pricebooks',
39
40
  'promotions',
40
41
  'reasons',
@@ -31,6 +31,7 @@ module.exports.request = {
31
31
  'product_service_questions',
32
32
  'product_templates',
33
33
  'products_v1',
34
+ 'products_v1_addon_groups',
34
35
  'pricebooks',
35
36
  'promotions',
36
37
  'reasons',
@@ -16,8 +16,10 @@ module.exports = {
16
16
  },
17
17
  {
18
18
  type: 'string',
19
+ description: 'We need to have a SEQUENCE to assure the uniqueness of the id',
19
20
  minLength: 4,
20
- maxLength: 512
21
+ maxLength: 512,
22
+ pattern: 'SEQUENCE'
21
23
  }
22
24
  ]
23
25
  },
@@ -53,8 +53,10 @@ module.exports = {
53
53
  },
54
54
  {
55
55
  type: 'string',
56
+ description: 'We need to have a SEQUENCE to assure the uniqueness of the id',
56
57
  minLength: 4,
57
- maxLength: 512
58
+ maxLength: 512,
59
+ pattern: 'SEQUENCE'
58
60
  }
59
61
  ]
60
62
  },
@@ -189,6 +189,16 @@ const cartReceipt = {
189
189
  type: 'boolean',
190
190
  default: true
191
191
  }),
192
+ signing_footer_style: oneOf({
193
+ description: 'Defines if signing footer is printed as text-only, qr-code-only or with text and qr-code. Legal requirements will always have precedence.',
194
+ type: 'string',
195
+ enum: [
196
+ 'qr_only',
197
+ 'text_only',
198
+ 'text_qr'
199
+ ],
200
+ default: 'qr_only'
201
+ }),
192
202
  refund_options: oneOf({
193
203
  description: 'If the sale is a refund - the following options will be considered',
194
204
  type: 'object',
@@ -5,6 +5,26 @@ module.exports = {
5
5
  type: 'object',
6
6
  additionalProperties: true,
7
7
  properties: {
8
+ staff_id_template: {
9
+ description: 'A Tillhub string pattern that allows for parameterized staff number generation',
10
+ oneOf: [
11
+ {
12
+ type: 'null'
13
+ },
14
+ {
15
+ type: 'string',
16
+ description: 'We need to have a SEQUENCE to assure the uniqueness of the id',
17
+ minLength: 4,
18
+ maxLength: 512,
19
+ pattern: 'SEQUENCE'
20
+ }
21
+ ]
22
+ },
23
+ generate_staff_id: {
24
+ description: 'The toggle to opt-in or -out of the staff number generation. Send this as query parameter on creation: ?generate_staff_number=true',
25
+ type: 'boolean',
26
+ default: 'false'
27
+ },
8
28
  cashier_pin_cancel_enabled: {
9
29
  'description': 'If true, a cashier is allowed to cancel a PIN request. If false, the PIN request is not cancelable and will stay there',
10
30
  ...oneOf({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.153.0",
3
+ "version": "6.156.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",