@tillhub/schemas 6.233.0 → 6.234.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,16 @@
1
+ # [6.234.0](https://github.com/tillhub/schemas/compare/v6.233.0...v6.234.0) (2023-07-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **pull_request:** append unsaved changes ([ccba782](https://github.com/tillhub/schemas/commit/ccba782))
7
+
8
+
9
+ ### Features
10
+
11
+ * **configurations:** staff ([c34faf7](https://github.com/tillhub/schemas/commit/c34faf7))
12
+ * **reasons:** type ([556f700](https://github.com/tillhub/schemas/commit/556f700))
13
+
1
14
  # [6.233.0](https://github.com/tillhub/schemas/compare/v6.232.0...v6.233.0) (2023-07-20)
2
15
 
3
16
 
@@ -72,7 +72,9 @@ module.exports = {
72
72
  enum: [
73
73
  'refund',
74
74
  'pos_price_change',
75
- 'stock_change',
75
+ 'stock_change', // legacy
76
+ 'stock_increase',
77
+ 'stock_decrease',
76
78
  'expense',
77
79
  'deposit'
78
80
  ]
@@ -83,6 +83,28 @@ module.exports = {
83
83
  'default': false
84
84
  })
85
85
  },
86
+ short_code_length: oneOf({
87
+ type: 'object',
88
+ additionalProperties: false,
89
+ properties: {
90
+ min: oneOf({
91
+ type: 'integer',
92
+ description: 'Minimum number of digits for a staff short_code (falsely referred to as pin most of the time).',
93
+ minimum: 1,
94
+ maximum: 10,
95
+ example: 4,
96
+ default: 4
97
+ }),
98
+ max: oneOf({
99
+ type: 'integer',
100
+ description: 'Maximum number of digits for a staff short_code (falsely referred to as pin most of the time).',
101
+ minimum: 4,
102
+ maximum: 16,
103
+ example: 6,
104
+ default: 6
105
+ })
106
+ }
107
+ }),
86
108
  staff_number_length: {
87
109
  // deprecated
88
110
  'description': 'If the API defines a specific length for a staff number it can be reported here.',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.233.0",
3
+ "version": "6.234.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",