@tillhub/schemas 6.347.0 → 6.348.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.348.0](https://github.com/tillhub/schemas/compare/v6.347.1...v6.348.0) (2024-12-12)
2
+
3
+
4
+ ### Features
5
+
6
+ * **products:** support new bulk create ([#1013](https://github.com/tillhub/schemas/issues/1013)) ([7ce792e](https://github.com/tillhub/schemas/commit/7ce792e))
7
+
8
+ ## [6.347.1](https://github.com/tillhub/schemas/compare/v6.347.0...v6.347.1) (2024-12-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **configurations:** interfaces ([fbb28ec](https://github.com/tillhub/schemas/commit/fbb28ec))
14
+
1
15
  # [6.347.0](https://github.com/tillhub/schemas/compare/v6.346.0...v6.347.0) (2024-10-26)
2
16
 
3
17
 
@@ -203,6 +203,23 @@ module.exports = {
203
203
  })
204
204
  }
205
205
  },
206
+ spos: {
207
+ type: 'object',
208
+ properties: {
209
+ enabled: {
210
+ type: 'boolean',
211
+ default: true
212
+ },
213
+ inter_call_delay_seconds: oneOf({
214
+ type: 'number',
215
+ description: 'Artificial delay between a previous terminal response and the next terminal request when performed automatically (some devices require additional cooldowns to avoid \'busy\' states)',
216
+ minimum: 0.0,
217
+ maximum: 10.0,
218
+ multipleOf: 0.001,
219
+ default: 0.0
220
+ })
221
+ }
222
+ },
206
223
  ZVT: { // capitalized for historical reasons
207
224
  type: 'object',
208
225
  properties: {
@@ -496,7 +496,7 @@ module.exports = oneOf({
496
496
  }),
497
497
  customer_triggers: oneOf({
498
498
  type: 'object',
499
- description: 'States which conditions will trigger automatic printing of the customer receipt',
499
+ description: 'States which conditions of the customer receipt will trigger automatic printing of available receipts on finish payments',
500
500
  additionalProperties: false,
501
501
  properties: {
502
502
  fiscal_signing: oneOf({
@@ -523,7 +523,7 @@ module.exports = oneOf({
523
523
  }),
524
524
  merchant_triggers: oneOf({
525
525
  type: 'object',
526
- description: 'States which conditions will trigger automatic printing of the merchant receipt',
526
+ description: 'States which conditions will include the merchant receipt in the printing process',
527
527
  additionalProperties: false,
528
528
  properties: {
529
529
  terminal_payments: oneOf({
@@ -0,0 +1,62 @@
1
+ const base = require('./base').request
2
+ const locationType = require('../../common/location_type')
3
+ const { anyOf, oneOf } = require('../../helpers/payload-or-null')
4
+
5
+ module.exports = {
6
+ $id: 'https://schemas.tillhub.com/v1/products.bulk_create_v2.request.schema.json',
7
+ $schema: 'http://json-schema.org/draft-07/schema#',
8
+ additionalProperties: false,
9
+ type: 'object',
10
+ properties: {
11
+ preferUpdate: {
12
+ type: 'boolean'
13
+ },
14
+ products: {
15
+ type: 'array',
16
+ minItems: 1,
17
+ items: {
18
+ type: 'object',
19
+ required: [
20
+ 'name',
21
+ 'account',
22
+ 'tax',
23
+ 'type'
24
+ ],
25
+ properties: {
26
+ ...base,
27
+ business_partners: oneOf({
28
+ type: 'array',
29
+ items: {
30
+ type: 'string',
31
+ format: 'uuid'
32
+ }
33
+ }),
34
+ tags: oneOf({
35
+ type: 'array',
36
+ items: {
37
+ type: 'string'
38
+ }
39
+ }),
40
+ stock_configuration_location: oneOf({
41
+ type: 'object',
42
+ required: [
43
+ 'location',
44
+ 'qty',
45
+ 'location_type'
46
+ ],
47
+ properties: {
48
+ location: {
49
+ type: 'string',
50
+ format: 'uuid'
51
+ },
52
+ qty: {
53
+ type: 'number'
54
+ },
55
+ location_type: anyOf(locationType)
56
+ }
57
+ })
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
@@ -245,4 +245,8 @@ module.exports.bulk = {
245
245
  }
246
246
  }
247
247
 
248
+ module.exports.bulk_create_v2 = {
249
+ request: require('./bulk_create_v2')
250
+ }
251
+
248
252
  module.exports.pricelist = require('./pricelist/index')
@@ -36,6 +36,7 @@ module.exports = {
36
36
  'opi',
37
37
  'tim',
38
38
  'sumup',
39
+ 'spos',
39
40
  'ZVT' // sic! for historical reasons!
40
41
  ]
41
42
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.347.0",
3
+ "version": "6.348.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",