@tillhub/schemas 6.282.0 → 6.284.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.284.0](https://github.com/tillhub/schemas/compare/v6.283.0...v6.284.0) (2024-02-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **stock:** stock adjustment configuration flow ([b0f5ae1](https://github.com/tillhub/schemas/commit/b0f5ae1))
|
|
7
|
+
|
|
8
|
+
# [6.283.0](https://github.com/tillhub/schemas/compare/v6.282.0...v6.283.0) (2024-01-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **pricelist:** response ([ab5d278](https://github.com/tillhub/schemas/commit/ab5d278))
|
|
14
|
+
|
|
1
15
|
# [6.282.0](https://github.com/tillhub/schemas/compare/v6.281.0...v6.282.0) (2024-01-29)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -62,7 +62,31 @@ module.exports = {
|
|
|
62
62
|
type: 'boolean',
|
|
63
63
|
description: 'Defines if reasons are mandatory for lowering stock',
|
|
64
64
|
default: false
|
|
65
|
-
})
|
|
65
|
+
}),
|
|
66
|
+
reference_enabled: oneOf({
|
|
67
|
+
type: 'boolean',
|
|
68
|
+
description: 'Defines if delivery note reference should be requested for changing stock',
|
|
69
|
+
default: false
|
|
70
|
+
}),
|
|
71
|
+
reference_required: oneOf({
|
|
72
|
+
type: 'boolean',
|
|
73
|
+
description: 'Defines if delivery note reference is mandatory for changing stock',
|
|
74
|
+
default: false
|
|
75
|
+
}),
|
|
76
|
+
reference_format: {
|
|
77
|
+
description: 'The format of the delivery note reference that is being validated against the input',
|
|
78
|
+
type: 'string',
|
|
79
|
+
format: 'regex',
|
|
80
|
+
example: '^[_A-Za-z0-9-+]+(\\.[_A-Za-z0-9-+]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z]{2,})$',
|
|
81
|
+
default: '^[0-9]{10}$'
|
|
82
|
+
},
|
|
83
|
+
reference_length_max: {
|
|
84
|
+
description: 'The maxiumum length of a delivery note reference (as a helper for the UI)',
|
|
85
|
+
type: 'integer',
|
|
86
|
+
minimum: 2,
|
|
87
|
+
maximum: 99,
|
|
88
|
+
default: 10
|
|
89
|
+
}
|
|
66
90
|
}
|
|
67
91
|
})
|
|
68
92
|
}
|
|
@@ -21,6 +21,12 @@ module.exports = {
|
|
|
21
21
|
],
|
|
22
22
|
example: 'scaled'
|
|
23
23
|
},
|
|
24
|
+
branch: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
format: 'uuid',
|
|
27
|
+
example: 'f2ac2cae-97ff-42a1-967b-0a35222ab6d1',
|
|
28
|
+
description: 'The Tillhub branch location ID which is part of the request path.'
|
|
29
|
+
},
|
|
24
30
|
price_book_type: oneOf({
|
|
25
31
|
description: 'The price book type',
|
|
26
32
|
type: 'string',
|