@tillhub/schemas 6.106.0 → 6.110.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,36 @@
1
+ # [6.110.0](https://github.com/tillhub/schemas/compare/v6.109.0...v6.110.0) (2022-01-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **abocard-systems:** add action name #API-1169 ([38e7d7f](https://github.com/tillhub/schemas/commit/38e7d7f)), closes [#API-1169](https://github.com/tillhub/schemas/issues/API-1169)
7
+
8
+
9
+ ### Features
10
+
11
+ * **carts:** customers ([07cf41e](https://github.com/tillhub/schemas/commit/07cf41e))
12
+
13
+ # [6.109.0](https://github.com/tillhub/schemas/compare/v6.108.0...v6.109.0) (2022-01-04)
14
+
15
+
16
+ ### Features
17
+
18
+ * **expense_accounts:** add branch_groups ([8c8cefc](https://github.com/tillhub/schemas/commit/8c8cefc))
19
+
20
+ # [6.108.0](https://github.com/tillhub/schemas/compare/v6.107.0...v6.108.0) (2021-12-22)
21
+
22
+
23
+ ### Features
24
+
25
+ * **pricebooks:** Add Price Books to untrash ([#654](https://github.com/tillhub/schemas/issues/654)) ([d7850b5](https://github.com/tillhub/schemas/commit/d7850b5))
26
+
27
+ # [6.107.0](https://github.com/tillhub/schemas/compare/v6.106.0...v6.107.0) (2021-12-21)
28
+
29
+
30
+ ### Features
31
+
32
+ * **staffs:** Staff permissions from template instead of scopes ([#653](https://github.com/tillhub/schemas/issues/653)) ([821e7c5](https://github.com/tillhub/schemas/commit/821e7c5))
33
+
1
34
  # [6.106.0](https://github.com/tillhub/schemas/compare/v6.105.0...v6.106.0) (2021-12-13)
2
35
 
3
36
 
@@ -83,6 +83,20 @@ module.exports = {
83
83
  }
84
84
  ]
85
85
  },
86
+ branch_groups: {
87
+ oneOf: [
88
+ {
89
+ type: 'array',
90
+ items: {
91
+ type: 'string',
92
+ format: 'uuid'
93
+ }
94
+ },
95
+ {
96
+ type: 'null'
97
+ }
98
+ ]
99
+ },
86
100
  accepts_booking_from_safe: {
87
101
  type: 'boolean',
88
102
  default: false
@@ -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 {
@@ -33,6 +34,11 @@ const abocardAction = {
33
34
  'sell'
34
35
  ]
35
36
  },
37
+ name: {
38
+ description: 'The abocard action name (usually the same as linked product)',
39
+ type: 'string',
40
+ example: 'Brainwashing'
41
+ },
36
42
  product: {
37
43
  description: 'The product associated with this action. Product gets created automatically when creating a abocard system and based on "linked_product" vat and "system_revenue_account" field values.',
38
44
  ...oneOf({
@@ -260,7 +266,14 @@ const response = {
260
266
  deleted: {
261
267
  type: 'boolean'
262
268
  },
263
- ...request
269
+ ...request,
270
+ actual_amount: {
271
+ description: 'The calculated amount of abocard based on abocard system settings (discount_type, selling_price_method, etc.) and location',
272
+ ...oneOf({
273
+ ...currencyAmount
274
+ }),
275
+ default: null
276
+ }
264
277
  }
265
278
 
266
279
  module.exports = {
@@ -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
  },
@@ -35,6 +35,7 @@ module.exports.query = {
35
35
  'product_service_questions',
36
36
  'product_templates',
37
37
  'products_v1',
38
+ 'pricebooks',
38
39
  'promotions',
39
40
  'reasons',
40
41
  'regions',
@@ -31,6 +31,7 @@ module.exports.request = {
31
31
  'product_service_questions',
32
32
  'product_templates',
33
33
  'products_v1',
34
+ 'pricebooks',
34
35
  'promotions',
35
36
  'reasons',
36
37
  'regions',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.106.0",
3
+ "version": "6.110.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",