@tillhub/schemas 6.341.1 → 6.343.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,17 @@
1
+ # [6.343.0](https://github.com/tillhub/schemas/compare/v6.342.0...v6.343.0) (2024-09-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * **transactions:** devices ([ee3632a](https://github.com/tillhub/schemas/commit/ee3632a))
7
+
8
+ # [6.342.0](https://github.com/tillhub/schemas/compare/v6.341.1...v6.342.0) (2024-09-26)
9
+
10
+
11
+ ### Features
12
+
13
+ * **appointment-reminder:** add 'sms_reminder_notification' as a feature flag ([#1005](https://github.com/tillhub/schemas/issues/1005)) ([c07be71](https://github.com/tillhub/schemas/commit/c07be71))
14
+
1
15
  ## [6.341.1](https://github.com/tillhub/schemas/compare/v6.341.0...v6.341.1) (2024-09-22)
2
16
 
3
17
 
@@ -0,0 +1,32 @@
1
+ const { oneOf } = require('../helpers/payload-or-null')
2
+
3
+ module.exports = {
4
+ type: 'object',
5
+ properties: {
6
+ identifier_for_vendor: oneOf({
7
+ type: 'string',
8
+ description: 'Current vendor identifier regardless of value stored in keychain',
9
+ example: 'A2700DA6-CE09-4041-9724-1313DEF295E2'
10
+ }),
11
+ keychain_counting_numbers: oneOf({
12
+ type: 'string',
13
+ description: 'Snapshot of the keychain counting numbers table',
14
+ example: 'sale: 3, expense: 0, balance: 0, deliveryNote: 0, savedCart: 0, order: 1'
15
+ }),
16
+ app_info: oneOf({
17
+ type: 'string',
18
+ description: 'Application currently reporting',
19
+ example: 'de.tillhub.tillhubstage.dev 1.0:0'
20
+ }),
21
+ os_info: oneOf({
22
+ type: 'string',
23
+ description: 'OS running on device',
24
+ example: 'iPadOS 17.4'
25
+ }),
26
+ model_info: oneOf({
27
+ type: 'string',
28
+ description: 'Device hardware',
29
+ example: 'Simulator iPad (10th generation)'
30
+ })
31
+ }
32
+ }
@@ -94,5 +94,9 @@ module.exports = {
94
94
  reservations_online_payments: {
95
95
  type: 'boolean',
96
96
  default: false
97
+ },
98
+ sms_reminder_notification: {
99
+ type: 'boolean',
100
+ default: false
97
101
  }
98
102
  }
@@ -1,5 +1,6 @@
1
1
  const { oneOf } = require('../../../../helpers/payload-or-null')
2
2
  const currencyAmount = require('../../../../common/currency_amount')
3
+ const deviceInfo = require('../../../../common/device_info')
3
4
 
4
5
  module.exports = {
5
6
  description: 'Extended balance stats',
@@ -64,24 +65,7 @@ module.exports = {
64
65
  description: 'Counting number of the last transaction'
65
66
  }),
66
67
  device: oneOf({
67
- type: 'object',
68
- properties: {
69
- identifier_for_vendor: oneOf({
70
- type: 'string',
71
- description: 'Current vendor identifier regardless of value stored in keychain',
72
- example: 'A2700DA6-CE09-4041-9724-1313DEF295E2'
73
- }),
74
- keychain_counting_numbers: oneOf({
75
- type: 'string',
76
- description: 'Snapshot of the keychain counting numbers table',
77
- example: 'sale: 3, expense: 0, balance: 0, deliveryNote: 0, savedCart: 0, order: 1'
78
- }),
79
- app_info: oneOf({
80
- type: 'string',
81
- description: 'Application info currently reporting',
82
- example: 'de.tillhub.tillhubstage.dev 1.0:0'
83
- })
84
- }
68
+ ...deviceInfo
85
69
  })
86
70
  }
87
71
  }
@@ -7,6 +7,7 @@ const dependsObject = require('../components/embedded/reference/depends')
7
7
  const originObject = require('../components/embedded/reference/origin')
8
8
  const gastroOrderOrigin = require('../../../common/gastro_order_origin')
9
9
  const promotionObject = require('../components/embedded/promotions/base')
10
+ const deviceInfo = require('../../../common/device_info')
10
11
 
11
12
  module.exports = {
12
13
  dev_uuid: {
@@ -203,24 +204,7 @@ module.exports = {
203
204
  }
204
205
  },
205
206
  device: oneOf({
206
- type: 'object',
207
- properties: {
208
- identifier_for_vendor: oneOf({
209
- type: 'string',
210
- description: 'Current vendor identifier regardless of value stored in keychain',
211
- example: 'A2700DA6-CE09-4041-9724-1313DEF295E2'
212
- }),
213
- keychain_counting_numbers: oneOf({
214
- type: 'string',
215
- description: 'Snapshot of the keychain counting numbers table',
216
- example: 'sale: 3, expense: 0, balance: 0, deliveryNote: 0, savedCart: 0, order: 1'
217
- }),
218
- app_info: oneOf({
219
- type: 'string',
220
- description: 'Application info currently reporting',
221
- example: 'de.tillhub.tillhubstage.dev 1.0:0'
222
- })
223
- }
207
+ ...deviceInfo
224
208
  }),
225
209
  order: oneOf({
226
210
  type: 'object',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.341.1",
3
+ "version": "6.343.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",