@tillhub/schemas 6.339.0 → 6.341.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 +21 -0
- package/README.md +1 -0
- package/lib/v0/customers/base.js +6 -0
- package/lib/v1/products/selection.js +12 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
# [6.341.0](https://github.com/tillhub/schemas/compare/v6.340.1...v6.341.0) (2024-09-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **products:** add products selection by custom ids schema ([d51f9cf](https://github.com/tillhub/schemas/commit/d51f9cf))
|
|
7
|
+
|
|
8
|
+
## [6.340.1](https://github.com/tillhub/schemas/compare/v6.340.0...v6.340.1) (2024-09-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **build:** only trigger ([#1000](https://github.com/tillhub/schemas/issues/1000)) ([5018ebc](https://github.com/tillhub/schemas/commit/5018ebc))
|
|
14
|
+
|
|
15
|
+
# [6.340.0](https://github.com/tillhub/schemas/compare/v6.339.0...v6.340.0) (2024-09-12)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **reminder-notification:** add reminder_notification_enabled flag to customers ([#996](https://github.com/tillhub/schemas/issues/996)) ([2dfd154](https://github.com/tillhub/schemas/commit/2dfd154))
|
|
21
|
+
|
|
1
22
|
# [6.339.0](https://github.com/tillhub/schemas/compare/v6.338.0...v6.339.0) (2024-09-09)
|
|
2
23
|
|
|
3
24
|
|
package/README.md
CHANGED
package/lib/v0/customers/base.js
CHANGED
|
@@ -434,5 +434,11 @@ module.exports = {
|
|
|
434
434
|
type: 'string',
|
|
435
435
|
format: 'uuid'
|
|
436
436
|
})
|
|
437
|
+
},
|
|
438
|
+
reminder_notification_enabled: {
|
|
439
|
+
description: 'The flag indicate whether the customer can receive reminder notification',
|
|
440
|
+
example: 'true',
|
|
441
|
+
type: 'boolean',
|
|
442
|
+
default: true
|
|
437
443
|
}
|
|
438
444
|
}
|
|
@@ -3,7 +3,8 @@ module.exports = {
|
|
|
3
3
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
4
4
|
additionalProperties: false,
|
|
5
5
|
type: 'object',
|
|
6
|
-
required: [
|
|
6
|
+
required: [],
|
|
7
|
+
anyOf: [{ required: ['product_ids'] }, { required: ['custom_ids'] }],
|
|
7
8
|
properties: {
|
|
8
9
|
product_ids: {
|
|
9
10
|
type: 'array',
|
|
@@ -15,6 +16,16 @@ module.exports = {
|
|
|
15
16
|
format: 'uuid',
|
|
16
17
|
example: '05297f58-3408-44d0-8bf4-125d4e86c08a'
|
|
17
18
|
}
|
|
19
|
+
},
|
|
20
|
+
custom_ids: {
|
|
21
|
+
type: 'array',
|
|
22
|
+
minItems: 1,
|
|
23
|
+
maxItems: 100,
|
|
24
|
+
items: {
|
|
25
|
+
description: 'Custom string ID',
|
|
26
|
+
type: 'string',
|
|
27
|
+
example: 'custom_id_12345'
|
|
28
|
+
}
|
|
18
29
|
}
|
|
19
30
|
}
|
|
20
31
|
}
|