@tillhub/schemas 6.233.0 → 6.235.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,24 @@
1
+ # [6.235.0](https://github.com/tillhub/schemas/compare/v6.234.0...v6.235.0) (2023-07-20)
2
+
3
+
4
+ ### Features
5
+
6
+ * **cartItem:** add external_reference_id ([622af81](https://github.com/tillhub/schemas/commit/622af81))
7
+ * **staffs:** owner ([096aee6](https://github.com/tillhub/schemas/commit/096aee6))
8
+
9
+ # [6.234.0](https://github.com/tillhub/schemas/compare/v6.233.0...v6.234.0) (2023-07-20)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **pull_request:** append unsaved changes ([ccba782](https://github.com/tillhub/schemas/commit/ccba782))
15
+
16
+
17
+ ### Features
18
+
19
+ * **configurations:** staff ([c34faf7](https://github.com/tillhub/schemas/commit/c34faf7))
20
+ * **reasons:** type ([556f700](https://github.com/tillhub/schemas/commit/556f700))
21
+
1
22
  # [6.233.0](https://github.com/tillhub/schemas/compare/v6.232.0...v6.233.0) (2023-07-20)
2
23
 
3
24
 
@@ -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
  ]
@@ -441,6 +441,12 @@ const base = {
441
441
  type: 'string',
442
442
  maxLength: 128
443
443
  },
444
+ external_reference_id: oneOf({
445
+ type: 'string',
446
+ example: '823742686434462376376376473647346',
447
+ maxLength: 128,
448
+ description: 'Any identifier a user wants to store in the transaction system. E.g. an ID in a thirdy party ERP.'
449
+ }),
444
450
  custom_properties: {
445
451
  ...customProperties.implementation
446
452
  },
@@ -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.235.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",