@tillhub/schemas 6.154.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,10 @@
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
+
1
8
  # [6.154.0](https://github.com/tillhub/schemas/compare/v6.153.0...v6.154.0) (2022-08-06)
2
9
 
3
10
 
@@ -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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.154.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",