@tillhub/schemas 6.109.0 → 6.112.1

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.112.1](https://github.com/tillhub/schemas/compare/v6.112.0...v6.112.1) (2022-01-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **staffs:** renaming user_permission_template_id to staff_permission_template_id ([#661](https://github.com/tillhub/schemas/issues/661)) ([6fbedb4](https://github.com/tillhub/schemas/commit/6fbedb4))
7
+
8
+ # [6.112.0](https://github.com/tillhub/schemas/compare/v6.111.0...v6.112.0) (2022-01-10)
9
+
10
+
11
+ ### Features
12
+
13
+ * **voucher_systems:** Add support for validity_period ([#660](https://github.com/tillhub/schemas/issues/660)) ([9ffdee4](https://github.com/tillhub/schemas/commit/9ffdee4))
14
+
15
+ # [6.111.0](https://github.com/tillhub/schemas/compare/v6.110.0...v6.111.0) (2022-01-06)
16
+
17
+
18
+ ### Features
19
+
20
+ * **discounts:** add branch_groups to discounts ([39cbd66](https://github.com/tillhub/schemas/commit/39cbd66))
21
+
22
+ # [6.110.0](https://github.com/tillhub/schemas/compare/v6.109.0...v6.110.0) (2022-01-04)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **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)
28
+
29
+
30
+ ### Features
31
+
32
+ * **carts:** customers ([07cf41e](https://github.com/tillhub/schemas/commit/07cf41e))
33
+
1
34
  # [6.109.0](https://github.com/tillhub/schemas/compare/v6.108.0...v6.109.0) (2022-01-04)
2
35
 
3
36
 
@@ -364,6 +364,20 @@ module.exports = {
364
364
  }
365
365
  ]
366
366
  },
367
+ branch_groups: {
368
+ oneOf: [
369
+ {
370
+ type: 'array',
371
+ items: {
372
+ type: 'string',
373
+ format: 'uuid'
374
+ }
375
+ },
376
+ {
377
+ type: 'null'
378
+ }
379
+ ]
380
+ },
367
381
  order: {
368
382
  oneOf: [
369
383
  {
@@ -34,6 +34,11 @@ const abocardAction = {
34
34
  'sell'
35
35
  ]
36
36
  },
37
+ name: {
38
+ description: 'The abocard action name (usually the same as linked product)',
39
+ type: 'string',
40
+ example: 'Brainwashing'
41
+ },
37
42
  product: {
38
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.',
39
44
  ...oneOf({
@@ -212,7 +212,7 @@ module.exports = {
212
212
  }
213
213
  ]
214
214
  },
215
- user_permission_template_id: oneOf({
215
+ staff_permission_template_id: oneOf({
216
216
  type: 'string'
217
217
  }),
218
218
  active: {
@@ -261,5 +261,29 @@ module.exports = {
261
261
  type: 'string',
262
262
  format: 'date-time'
263
263
  })
264
+ },
265
+ validity_period: {
266
+ default: null,
267
+ ...oneOf({
268
+ description: 'A user defined timeframe (e.g. 3 years) that is used to determine the next expires_at value after a charge (top-up).',
269
+ type: 'object',
270
+ properties: {
271
+ unit: {
272
+ description: 'Unit of the validity period.',
273
+ type: 'string',
274
+ enum: [
275
+ 'days',
276
+ 'weeks',
277
+ 'months',
278
+ 'years'
279
+ ]
280
+ },
281
+ value: {
282
+ description: 'The value of the validity period, defines a timeframe together with the set unit.',
283
+ type: 'integer',
284
+ minimum: 1
285
+ }
286
+ }
287
+ })
264
288
  }
265
289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.109.0",
3
+ "version": "6.112.1",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",