@tillhub/schemas 6.283.0 → 6.285.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.285.0](https://github.com/tillhub/schemas/compare/v6.284.0...v6.285.0) (2024-02-08)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configurations:** make breaks optional ([#917](https://github.com/tillhub/schemas/issues/917)) ([3c01efd](https://github.com/tillhub/schemas/commit/3c01efd))
7
+
8
+ # [6.284.0](https://github.com/tillhub/schemas/compare/v6.283.0...v6.284.0) (2024-02-01)
9
+
10
+
11
+ ### Features
12
+
13
+ * **stock:** stock adjustment configuration flow ([b0f5ae1](https://github.com/tillhub/schemas/commit/b0f5ae1))
14
+
1
15
  # [6.283.0](https://github.com/tillhub/schemas/compare/v6.282.0...v6.283.0) (2024-01-30)
2
16
 
3
17
 
@@ -105,10 +105,16 @@ module.exports = {
105
105
  type: 'string'
106
106
  },
107
107
  break_from: {
108
- type: 'string'
108
+ oneOf: [
109
+ { type: 'null' },
110
+ { type: 'string' }
111
+ ]
109
112
  },
110
113
  break_to: {
111
- type: 'string'
114
+ oneOf: [
115
+ { type: 'null' },
116
+ { type: 'string' }
117
+ ]
112
118
  }
113
119
  }
114
120
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.283.0",
3
+ "version": "6.285.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",