@tillhub/schemas 6.129.0 → 6.130.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,12 @@
|
|
|
1
|
+
# [6.130.0](https://github.com/tillhub/schemas/compare/v6.129.0...v6.130.0) (2022-03-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **configuration:** features ([e15fedd](https://github.com/tillhub/schemas/commit/e15fedd))
|
|
7
|
+
* **configurations:** features ([bfc0bf2](https://github.com/tillhub/schemas/commit/bfc0bf2))
|
|
8
|
+
* **configurations:** features ([66bcd70](https://github.com/tillhub/schemas/commit/66bcd70))
|
|
9
|
+
|
|
1
10
|
# [6.129.0](https://github.com/tillhub/schemas/compare/v6.128.0...v6.129.0) (2022-03-21)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -133,6 +133,49 @@ module.exports = oneOf({
|
|
|
133
133
|
default: 'info'
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
+
}),
|
|
137
|
+
manual_reference: oneOf({
|
|
138
|
+
description: 'defines behavior for manually assigning external references to a cart',
|
|
139
|
+
type: 'object',
|
|
140
|
+
additionalProperties: false,
|
|
141
|
+
properties: {
|
|
142
|
+
enabled: {
|
|
143
|
+
description: 'Specifies if - for given conditions - an external reference can be assigned manually to a cart (e.g. via the cart menu).',
|
|
144
|
+
type: 'boolean',
|
|
145
|
+
default: false
|
|
146
|
+
},
|
|
147
|
+
request_on_checkout: {
|
|
148
|
+
description: 'Specifies if - for given conditions - an external reference will be requested on checkout (skippable).',
|
|
149
|
+
type: 'string',
|
|
150
|
+
enum: [
|
|
151
|
+
'never',
|
|
152
|
+
'if_missing',
|
|
153
|
+
'always'
|
|
154
|
+
],
|
|
155
|
+
default: 'if_missing'
|
|
156
|
+
},
|
|
157
|
+
custom_prompt: oneOf({
|
|
158
|
+
description: 'Custom override of the question text before adding this reference manually.',
|
|
159
|
+
type: 'string',
|
|
160
|
+
example: 'There seems to be no order number set. Do you want to add it manually?',
|
|
161
|
+
minLength: 2,
|
|
162
|
+
maxLength: 512
|
|
163
|
+
}),
|
|
164
|
+
number_format: {
|
|
165
|
+
description: 'The format of the reference number that is being validated against the input',
|
|
166
|
+
type: 'string',
|
|
167
|
+
format: 'regex',
|
|
168
|
+
example: '^[_A-Za-z0-9-+]+(\\.[_A-Za-z0-9-+]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z]{2,})$',
|
|
169
|
+
default: '^(VAU)?[0-9]{7,11}$'
|
|
170
|
+
},
|
|
171
|
+
number_length_max: {
|
|
172
|
+
description: 'The maxiumum length of the reference number (as a helper for the UI)',
|
|
173
|
+
type: 'integer',
|
|
174
|
+
minimum: 2,
|
|
175
|
+
maximum: 99,
|
|
176
|
+
default: 14
|
|
177
|
+
}
|
|
178
|
+
}
|
|
136
179
|
})
|
|
137
180
|
}
|
|
138
181
|
})
|