@tillhub/schemas 6.317.0 → 6.319.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.319.0](https://github.com/tillhub/schemas/compare/v6.318.0...v6.319.0) (2024-06-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **promotion:** add new promotion type ([#964](https://github.com/tillhub/schemas/issues/964)) ([bea0b4b](https://github.com/tillhub/schemas/commit/bea0b4b))
|
|
7
|
+
|
|
8
|
+
# [6.318.0](https://github.com/tillhub/schemas/compare/v6.317.0...v6.318.0) (2024-06-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **configurations:** add social media links ([#955](https://github.com/tillhub/schemas/issues/955)) ([7a7b476](https://github.com/tillhub/schemas/commit/7a7b476))
|
|
14
|
+
|
|
1
15
|
# [6.317.0](https://github.com/tillhub/schemas/compare/v6.316.0...v6.317.0) (2024-06-12)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -40,6 +40,43 @@ module.exports = {
|
|
|
40
40
|
},
|
|
41
41
|
color: {
|
|
42
42
|
type: 'string'
|
|
43
|
+
},
|
|
44
|
+
facebook_url: {
|
|
45
|
+
oneOf: [
|
|
46
|
+
{ type: 'null' },
|
|
47
|
+
{ type: 'string' }
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
instagram_url: {
|
|
51
|
+
oneOf: [
|
|
52
|
+
{ type: 'null' },
|
|
53
|
+
{ type: 'string' }
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
header_background_image: {
|
|
57
|
+
oneOf: [
|
|
58
|
+
{ type: 'null' },
|
|
59
|
+
{
|
|
60
|
+
type: 'object',
|
|
61
|
+
properties: {
|
|
62
|
+
original: {
|
|
63
|
+
type: 'string'
|
|
64
|
+
},
|
|
65
|
+
avatar: {
|
|
66
|
+
type: 'string'
|
|
67
|
+
},
|
|
68
|
+
'1x': {
|
|
69
|
+
type: 'string'
|
|
70
|
+
},
|
|
71
|
+
'2x': {
|
|
72
|
+
type: 'string'
|
|
73
|
+
},
|
|
74
|
+
'3x': {
|
|
75
|
+
type: 'string'
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
]
|
|
43
80
|
}
|
|
44
81
|
}
|
|
45
82
|
},
|
|
@@ -2,7 +2,7 @@ const base = require('./base')
|
|
|
2
2
|
const defaultResponse = require('./default-response')
|
|
3
3
|
|
|
4
4
|
module.exports.request = {
|
|
5
|
-
$id: 'https://schemas.tillhub.com/
|
|
5
|
+
$id: 'https://schemas.tillhub.com/v1/promotions.create.request.schema.json',
|
|
6
6
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
7
7
|
additionalProperties: false,
|
|
8
8
|
type: 'object',
|
|
@@ -15,7 +15,7 @@ module.exports.request = {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
module.exports.response = {
|
|
18
|
-
$id: 'https://schemas.tillhub.com/
|
|
18
|
+
$id: 'https://schemas.tillhub.com/v1/promotions.create.response.schema.json',
|
|
19
19
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
20
20
|
additionalProperties: true,
|
|
21
21
|
type: 'object',
|
|
@@ -53,6 +53,74 @@ module.exports = {
|
|
|
53
53
|
]
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
additionalProperties: false,
|
|
59
|
+
type: 'object',
|
|
60
|
+
required: [
|
|
61
|
+
'inputs',
|
|
62
|
+
'type'
|
|
63
|
+
],
|
|
64
|
+
properties: {
|
|
65
|
+
type: {
|
|
66
|
+
type: 'string',
|
|
67
|
+
enum: [
|
|
68
|
+
'product_property:entire_basket:output_properties'
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
inputs: {
|
|
72
|
+
type: 'object',
|
|
73
|
+
required: [
|
|
74
|
+
'promotable_products',
|
|
75
|
+
'promotable_product_groups',
|
|
76
|
+
'output'
|
|
77
|
+
],
|
|
78
|
+
properties: {
|
|
79
|
+
promotable_products: {
|
|
80
|
+
type: 'array',
|
|
81
|
+
items: {
|
|
82
|
+
required: ['property', 'value'],
|
|
83
|
+
properties: {
|
|
84
|
+
property: {
|
|
85
|
+
type: 'string'
|
|
86
|
+
},
|
|
87
|
+
value: {
|
|
88
|
+
type: 'string'
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
promotable_product_groups: {
|
|
94
|
+
type: 'array',
|
|
95
|
+
items: {
|
|
96
|
+
required: ['property', 'value'],
|
|
97
|
+
properties: {
|
|
98
|
+
property: {
|
|
99
|
+
type: 'string'
|
|
100
|
+
},
|
|
101
|
+
value: {
|
|
102
|
+
type: 'string'
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
output: {
|
|
108
|
+
type: 'object',
|
|
109
|
+
required: ['property', 'value'],
|
|
110
|
+
properties: {
|
|
111
|
+
property: {
|
|
112
|
+
type: 'string',
|
|
113
|
+
enum: ['amount_total_gross', 'percentage_discount', 'amount_discount']
|
|
114
|
+
|
|
115
|
+
},
|
|
116
|
+
value: {
|
|
117
|
+
type: 'string'
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
56
124
|
}
|
|
57
125
|
]
|
|
58
126
|
}
|
|
@@ -2,7 +2,7 @@ const base = require('./base')
|
|
|
2
2
|
const defaultResponse = require('./default-response')
|
|
3
3
|
|
|
4
4
|
module.exports.request = {
|
|
5
|
-
$id: 'https://schemas.tillhub.com/
|
|
5
|
+
$id: 'https://schemas.tillhub.com/v1/promotions.update.request.schema.json',
|
|
6
6
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
7
7
|
additionalProperties: false,
|
|
8
8
|
type: 'object',
|
|
@@ -11,7 +11,7 @@ module.exports.request = {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
module.exports.response = {
|
|
14
|
-
$id: 'https://schemas.tillhub.com/
|
|
14
|
+
$id: 'https://schemas.tillhub.com/v1/promotions.update.response.schema.json',
|
|
15
15
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
16
16
|
additionalProperties: true,
|
|
17
17
|
type: 'object',
|