@tillhub/schemas 6.172.0 → 6.173.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 +7 -0
- package/lib/v1/products/branch/customization/base.js +51 -0
- package/lib/v1/products/branch/customization/create.request.js +12 -0
- package/lib/v1/products/branch/customization/index.js +2 -0
- package/lib/v1/products/branch/customization/update.request.js +10 -0
- package/lib/v1/products/index.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [6.173.0](https://github.com/tillhub/schemas/compare/v6.172.0...v6.173.0) (2022-11-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **products:** Create CRUD endpoints for product customization by branch ([#740](https://github.com/tillhub/schemas/issues/740)) ([b9b8510](https://github.com/tillhub/schemas/commit/b9b8510))
|
|
7
|
+
|
|
1
8
|
# [6.172.0](https://github.com/tillhub/schemas/compare/v6.171.0...v6.172.0) (2022-11-17)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const { oneOf } = require('../../../../helpers/payload-or-null')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
product: {
|
|
5
|
+
description: 'The reference to the actual product',
|
|
6
|
+
type: 'string',
|
|
7
|
+
format: 'uuid'
|
|
8
|
+
},
|
|
9
|
+
name: oneOf({
|
|
10
|
+
description: 'Product name',
|
|
11
|
+
type: 'string',
|
|
12
|
+
maxLength: 512
|
|
13
|
+
}),
|
|
14
|
+
branches: oneOf({
|
|
15
|
+
type: 'array',
|
|
16
|
+
items: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
format: 'uuid'
|
|
19
|
+
}
|
|
20
|
+
}),
|
|
21
|
+
branch_groups: oneOf({
|
|
22
|
+
type: 'array',
|
|
23
|
+
items: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
format: 'uuid'
|
|
26
|
+
}
|
|
27
|
+
}),
|
|
28
|
+
description: oneOf({
|
|
29
|
+
description: 'Product name',
|
|
30
|
+
type: 'string',
|
|
31
|
+
maxLength: 4096
|
|
32
|
+
}),
|
|
33
|
+
summary: oneOf({
|
|
34
|
+
description: 'Product name',
|
|
35
|
+
type: 'string',
|
|
36
|
+
maxLength: 1024
|
|
37
|
+
}),
|
|
38
|
+
default_tile_color: oneOf({
|
|
39
|
+
description: 'Product name',
|
|
40
|
+
type: 'string',
|
|
41
|
+
maxLength: 50
|
|
42
|
+
}),
|
|
43
|
+
active: {
|
|
44
|
+
type: 'boolean',
|
|
45
|
+
default: true
|
|
46
|
+
},
|
|
47
|
+
deleted: {
|
|
48
|
+
type: 'boolean',
|
|
49
|
+
default: false
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const base = require('./base')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
$id: 'https://schemas.tillhub.com/v1/products.branch.customization.create.request.schema.json',
|
|
5
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
6
|
+
additionalProperties: false,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: [
|
|
9
|
+
'product'
|
|
10
|
+
],
|
|
11
|
+
properties: base
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const base = require('./base')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
$id: 'https://schemas.tillhub.com/v1/products.branch.customization.update.request.schema.json',
|
|
5
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
6
|
+
additionalProperties: false,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: [],
|
|
9
|
+
properties: base
|
|
10
|
+
}
|
package/lib/v1/products/index.js
CHANGED