@tillhub/schemas 6.152.0 → 6.155.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,24 @@
1
+ # [6.155.0](https://github.com/tillhub/schemas/compare/v6.154.0...v6.155.0) (2022-08-08)
2
+
3
+
4
+ ### Features
5
+
6
+ * **generate_id:** make SEQUENCE mandatory for customer, product & staff ([bd831b9](https://github.com/tillhub/schemas/commit/bd831b9))
7
+
8
+ # [6.154.0](https://github.com/tillhub/schemas/compare/v6.153.0...v6.154.0) (2022-08-06)
9
+
10
+
11
+ ### Features
12
+
13
+ * **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))
14
+
15
+ # [6.153.0](https://github.com/tillhub/schemas/compare/v6.152.0...v6.153.0) (2022-08-05)
16
+
17
+
18
+ ### Features
19
+
20
+ * **products:** refine attributes ([9e3c85b](https://github.com/tillhub/schemas/commit/9e3c85b))
21
+
1
22
  # [6.152.0](https://github.com/tillhub/schemas/compare/v6.151.1...v6.152.0) (2022-08-03)
2
23
 
3
24
 
@@ -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
  },
@@ -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({
@@ -12,9 +12,9 @@ module.exports = {
12
12
  type: 'string',
13
13
  enum: [
14
14
  'generate', // default Tillhub style, e.g. RTEA33D915 - which supports also API lookup
15
- 'external_reference_id' // any external ID comimng from e.g. carts or manual entry, BSH: 1111728444 or even UUIDs - API lookup not guaranteed, printing for UUIDs not possible
15
+ 'external_reference_id' // any external ID from e.g. saved carts or manual entry, BSH: 1111728444 or even UUIDs - API lookup not guaranteed, printing for UUIDs not possible
16
16
  ],
17
- default: 'generate' // -> BSH needs to be specifically set to get their current behavior
17
+ default: 'generate' // -> BSH must set source to 'external_reference_id' to keep their current behavior
18
18
  })
19
19
  }
20
20
  }),
@@ -84,7 +84,9 @@ const request = {
84
84
  description: 'Arbitrary attributes a product has, that will be displayed in e.g. a sale',
85
85
  anyOf: [
86
86
  {
87
- type: 'object'
87
+ type: 'object',
88
+ description: 'A dictionary <string, string> describing all values for one specific variant',
89
+ additionalProperties: { type: 'string' }
88
90
  },
89
91
  {
90
92
  type: 'null'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.152.0",
3
+ "version": "6.155.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",