@tillhub/schemas 6.106.0 → 6.107.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,10 @@
|
|
|
1
|
+
# [6.107.0](https://github.com/tillhub/schemas/compare/v6.106.0...v6.107.0) (2021-12-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **staffs:** Staff permissions from template instead of scopes ([#653](https://github.com/tillhub/schemas/issues/653)) ([821e7c5](https://github.com/tillhub/schemas/commit/821e7c5))
|
|
7
|
+
|
|
1
8
|
# [6.106.0](https://github.com/tillhub/schemas/compare/v6.105.0...v6.106.0) (2021-12-13)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const { oneOf } = require('../../helpers/payload-or-null')
|
|
2
2
|
const baseObject = require('../../common/base')
|
|
3
|
+
const currencyAmount = require('../../common/currency_amount')
|
|
3
4
|
const voucherSystemPropertiesFull = require('../voucher_systems/base')
|
|
4
5
|
|
|
5
6
|
const {
|
|
@@ -260,7 +261,14 @@ const response = {
|
|
|
260
261
|
deleted: {
|
|
261
262
|
type: 'boolean'
|
|
262
263
|
},
|
|
263
|
-
...request
|
|
264
|
+
...request,
|
|
265
|
+
actual_amount: {
|
|
266
|
+
description: 'The calculated amount of abocard based on abocard system settings (discount_type, selling_price_method, etc.) and location',
|
|
267
|
+
...oneOf({
|
|
268
|
+
...currencyAmount
|
|
269
|
+
}),
|
|
270
|
+
default: null
|
|
271
|
+
}
|
|
264
272
|
}
|
|
265
273
|
|
|
266
274
|
module.exports = {
|
package/lib/v0/staff/base.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const { oneOf } = require('../../helpers/payload-or-null')
|
|
2
|
+
|
|
1
3
|
module.exports = {
|
|
2
4
|
firstname: {
|
|
3
5
|
anyOf: [
|
|
@@ -210,6 +212,9 @@ module.exports = {
|
|
|
210
212
|
}
|
|
211
213
|
]
|
|
212
214
|
},
|
|
215
|
+
user_permission_template_id: oneOf({
|
|
216
|
+
type: 'string'
|
|
217
|
+
}),
|
|
213
218
|
active: {
|
|
214
219
|
type: 'boolean'
|
|
215
220
|
},
|