@tillhub/schemas 6.280.0 → 6.282.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,17 @@
1
+ # [6.282.0](https://github.com/tillhub/schemas/compare/v6.281.0...v6.282.0) (2024-01-29)
2
+
3
+
4
+ ### Features
5
+
6
+ * **services:** add locations to services ([#915](https://github.com/tillhub/schemas/issues/915)) ([a759f43](https://github.com/tillhub/schemas/commit/a759f43))
7
+
8
+ # [6.281.0](https://github.com/tillhub/schemas/compare/v6.280.0...v6.281.0) (2024-01-28)
9
+
10
+
11
+ ### Features
12
+
13
+ * **customers:** customer number capture configuration ([18e9be8](https://github.com/tillhub/schemas/commit/18e9be8))
14
+
1
15
  # [6.280.0](https://github.com/tillhub/schemas/compare/v6.279.2...v6.280.0) (2024-01-25)
2
16
 
3
17
 
@@ -28,7 +28,15 @@ module.exports = {
28
28
  type: 'string',
29
29
  format: 'uuid',
30
30
  example: '05297f58-3408-44d0-8bf4-125d4e86c08a'
31
- }
31
+ },
32
+ locations: oneOf({
33
+ description: 'list of branch UUIDs the service can be performed at',
34
+ type: 'array',
35
+ items: {
36
+ type: 'string',
37
+ format: 'uuid'
38
+ }
39
+ })
32
40
  },
33
41
  required: ['name', 'duration', 'linked_product'],
34
42
  $id: 'https://schemas.tillhub.com/v0/services.create.request.schema.json',
@@ -28,7 +28,15 @@ module.exports = {
28
28
  type: 'string',
29
29
  format: 'uuid',
30
30
  example: '05297f58-3408-44d0-8bf4-125d4e86c08a'
31
- }
31
+ },
32
+ locations: oneOf({
33
+ description: 'list of branch UUIDs the service can be performed at',
34
+ type: 'array',
35
+ items: {
36
+ type: 'string',
37
+ format: 'uuid'
38
+ }
39
+ })
32
40
  },
33
41
  required: [],
34
42
  $id: 'https://schemas.tillhub.com/v0/services.update.request.schema.json',
@@ -63,6 +63,19 @@ module.exports = {
63
63
  type: 'boolean',
64
64
  default: false
65
65
  },
66
+ customer_number_capture_enabled: {
67
+ type: 'boolean',
68
+ default: false
69
+ },
70
+ customer_number_capture_pattern: oneOf({
71
+ description: 'Defines how a customer number can be extracted from a scanned barcode',
72
+ type: 'string',
73
+ format: 'regex', // should have 1 capturing group only
74
+ examples: [
75
+ '^.{2}(.{8}).{4,6}$' // extracts characters 2-10 from a string of length 14 to 16
76
+ ],
77
+ default: 'null'
78
+ }),
66
79
  customer_add_policy: {
67
80
  'description': 'The customer selection screen will be presented automatically before or after a sale (or not in case of none).',
68
81
  ...oneOf({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.280.0",
3
+ "version": "6.282.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",