@tillhub/schemas 6.110.0 → 6.113.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,32 @@
1
+ # [6.113.0](https://github.com/tillhub/schemas/compare/v6.112.1...v6.113.0) (2022-01-20)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configurations:** features ([6cd1289](https://github.com/tillhub/schemas/commit/6cd1289))
7
+ * **configurations:** features ([139876d](https://github.com/tillhub/schemas/commit/139876d))
8
+
9
+ ## [6.112.1](https://github.com/tillhub/schemas/compare/v6.112.0...v6.112.1) (2022-01-13)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **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))
15
+
16
+ # [6.112.0](https://github.com/tillhub/schemas/compare/v6.111.0...v6.112.0) (2022-01-10)
17
+
18
+
19
+ ### Features
20
+
21
+ * **voucher_systems:** Add support for validity_period ([#660](https://github.com/tillhub/schemas/issues/660)) ([9ffdee4](https://github.com/tillhub/schemas/commit/9ffdee4))
22
+
23
+ # [6.111.0](https://github.com/tillhub/schemas/compare/v6.110.0...v6.111.0) (2022-01-06)
24
+
25
+
26
+ ### Features
27
+
28
+ * **discounts:** add branch_groups to discounts ([39cbd66](https://github.com/tillhub/schemas/commit/39cbd66))
29
+
1
30
  # [6.110.0](https://github.com/tillhub/schemas/compare/v6.109.0...v6.110.0) (2022-01-04)
2
31
 
3
32
 
@@ -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
  {
@@ -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
  }
@@ -92,11 +92,35 @@ module.exports = oneOf({
92
92
  additionalProperties: false,
93
93
  properties: {
94
94
  enabled: {
95
- description: 'Specifies if gastro tables feature is available.',
95
+ description: 'Specifies if gastro tables feature is available - mutually exclusive with \'web_view\'.',
96
96
  type: 'boolean',
97
97
  default: false
98
98
  }
99
99
  }
100
+ }),
101
+ web_view: oneOf({
102
+ description: 'Web view with js-interaction to iOS. Introduced by Regiondo project. Can not be used with Gastro.',
103
+ type: 'object',
104
+ additionalProperties: false,
105
+ properties: {
106
+ enabled: {
107
+ description: 'Specifies if a web view is shown in the main sale view - mutually exclusive with \'gastro_tables\'.',
108
+ type: 'boolean',
109
+ default: false
110
+ },
111
+ url: {
112
+ description: 'The URL of the web view',
113
+ type: 'string',
114
+ format: 'uri'
115
+ },
116
+ name: {
117
+ description: 'Display name of the web view tab in the POS',
118
+ type: 'string',
119
+ example: 'Regiondo',
120
+ minLength: 2,
121
+ maxLength: 24
122
+ }
123
+ }
100
124
  })
101
125
  }
102
126
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.110.0",
3
+ "version": "6.113.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",