@tillhub/schemas 6.252.0 → 6.252.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 +7 -0
- package/lib/v0/customers/base.js +15 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [6.252.1](https://github.com/tillhub/schemas/compare/v6.252.0...v6.252.1) (2023-08-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **customers:** base ([6233e17](https://github.com/tillhub/schemas/commit/6233e17))
|
|
7
|
+
|
|
1
8
|
# [6.252.0](https://github.com/tillhub/schemas/compare/v6.251.0...v6.252.0) (2023-08-21)
|
|
2
9
|
|
|
3
10
|
|
package/lib/v0/customers/base.js
CHANGED
|
@@ -410,5 +410,20 @@ module.exports = {
|
|
|
410
410
|
maxLength: 20,
|
|
411
411
|
minLength: 5
|
|
412
412
|
})
|
|
413
|
+
},
|
|
414
|
+
source: {
|
|
415
|
+
description: 'Customer source of creation',
|
|
416
|
+
example: 'N/A, DASHBOARD, APPOINTMENT_CALENDAR, WEB_RESERVATION, POS',
|
|
417
|
+
...oneOf({
|
|
418
|
+
type: 'string',
|
|
419
|
+
maxLength: 128
|
|
420
|
+
})
|
|
421
|
+
},
|
|
422
|
+
branch_id: {
|
|
423
|
+
description: 'in cases where the customer is created via the POS, the branch_id is required',
|
|
424
|
+
...oneOf({
|
|
425
|
+
type: 'string',
|
|
426
|
+
format: 'uuid'
|
|
427
|
+
})
|
|
413
428
|
}
|
|
414
429
|
}
|