@tillhub/schemas 6.436.0 → 6.438.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,27 @@
1
+ # [6.438.0](https://github.com/tillhub/schemas/compare/v6.437.0...v6.438.0) (2026-05-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * trying to fix org GH release token ([4282c07](https://github.com/tillhub/schemas/commit/4282c07))
7
+
8
+
9
+ ### Features
10
+
11
+ * **chore:** try to backfill gcp registry from npm ([74b832c](https://github.com/tillhub/schemas/commit/74b832c))
12
+ * **chore:** try to backfill gcp registry from npm 2 ([f202549](https://github.com/tillhub/schemas/commit/f202549))
13
+ * **configurations:** balances, add automatic closure fields ([c0ae08b](https://github.com/tillhub/schemas/commit/c0ae08b))
14
+ * **UNTIL-18961:** switching workflows/deploy.yml to main js-toolbox branch ([ce9ff8b](https://github.com/tillhub/schemas/commit/ce9ff8b))
15
+ * **UNTIL-20189:** add stocks report schema and update index ([#1148](https://github.com/tillhub/schemas/issues/1148)) ([07919f4](https://github.com/tillhub/schemas/commit/07919f4))
16
+
17
+ # [6.437.0](https://github.com/tillhub/schemas/compare/v6.436.0...v6.437.0) (2026-04-20)
18
+
19
+
20
+ ### Features
21
+
22
+ * **configurations:** tips ([bef1174](https://github.com/tillhub/schemas/commit/bef1174))
23
+ * **transactions:** payments ([0bcbb5e](https://github.com/tillhub/schemas/commit/0bcbb5e))
24
+
1
25
  # [6.436.0](https://github.com/tillhub/schemas/compare/v6.435.0...v6.436.0) (2026-04-15)
2
26
 
3
27
 
@@ -6,5 +6,6 @@ module.exports = {
6
6
  cashier_counting_protocols: require('./cashier_counting_protocols'),
7
7
  staff: require('./staff'),
8
8
  customers: require('./customers'),
9
- goods_sold: require('./goods_sold')
9
+ goods_sold: require('./goods_sold'),
10
+ stocks: require('./stocks')
10
11
  }
@@ -0,0 +1,107 @@
1
+ module.exports.request = {
2
+ $id: 'https://schemas.tillhub.com/v0/analytics.reports.stocks.request.schema.json',
3
+ $schema: 'http://json-schema.org/draft-07/schema#',
4
+ type: 'object',
5
+ additionalProperties: false,
6
+ required: [],
7
+ properties: {
8
+ format: {
9
+ type: 'string',
10
+ enum: ['csv']
11
+ },
12
+ extended: {
13
+ type: 'string',
14
+ enum: ['true', 'false']
15
+ },
16
+ offset: {
17
+ type: 'integer',
18
+ minimum: 0
19
+ },
20
+ size: {
21
+ type: 'integer',
22
+ minimum: 10,
23
+ maximum: 1000
24
+ },
25
+ currency: {
26
+ type: 'string',
27
+ maxLength: 3,
28
+ minLength: 3
29
+ },
30
+ product_barcode: {
31
+ type: 'string',
32
+ maxLength: 64,
33
+ minLength: 1
34
+ },
35
+ product_name: {
36
+ type: 'string',
37
+ maxLength: 64,
38
+ minLength: 1
39
+ },
40
+ product_custom_id: {
41
+ type: 'string',
42
+ maxLength: 64,
43
+ minLength: 1
44
+ },
45
+ q: {
46
+ type: 'string',
47
+ maxLength: 64,
48
+ minLength: 1
49
+ },
50
+ qty_available: {
51
+ type: 'object',
52
+ properties: {
53
+ min: {
54
+ type: ['string', 'number']
55
+ },
56
+ max: {
57
+ type: ['string', 'number']
58
+ }
59
+ }
60
+ },
61
+ export_map: {
62
+ type: 'object',
63
+ properties: {
64
+ fields: {
65
+ type: 'object'
66
+ }
67
+ }
68
+ },
69
+ branch_custom_id: {
70
+ anyOf: [
71
+ { type: 'string' },
72
+ {
73
+ type: 'array',
74
+ items: { type: 'string' }
75
+ }
76
+ ]
77
+ },
78
+ branch_group: {
79
+ anyOf: [
80
+ { type: 'string', format: 'uuid' },
81
+ {
82
+ type: 'array',
83
+ items: { type: 'string', format: 'uuid' }
84
+ }
85
+ ]
86
+ },
87
+ context_locations: {
88
+ type: 'string',
89
+ minLength: 1,
90
+ maxLength: 64
91
+ },
92
+ start: {
93
+ type: 'string',
94
+ format: 'date-time',
95
+ example: '2026-05-07T22:00:00.000Z',
96
+ description:
97
+ 'Url-safe ISO 8601 start of the reporting window. Filters stock rows by `updated_at` when set. Also used as the report `date` when `end` is omitted.'
98
+ },
99
+ end: {
100
+ type: 'string',
101
+ format: 'date-time',
102
+ example: '2026-05-08T21:59:59.999Z',
103
+ description:
104
+ 'Url-safe ISO 8601 end of the reporting window. Filters stock rows by `updated_at` when set. Preferred source for the report `date` column when set.'
105
+ }
106
+ }
107
+ }
@@ -47,6 +47,25 @@ module.exports = oneOf({
47
47
  })
48
48
  }
49
49
  }),
50
+ automatic_closure: oneOf({
51
+ type: 'object',
52
+ additionalProperties: false,
53
+ description: 'Defines if, how and when balances will be done automatically.',
54
+ properties: {
55
+ enabled: oneOf({
56
+ description: 'If true, balances will be done automatically at a given daily time (best effort).',
57
+ type: 'boolean',
58
+ default: false
59
+ }),
60
+ time: oneOf({
61
+ type: 'string',
62
+ pattern: '([0-1][0-9]|2[0-3]):[0-5][0-9]',
63
+ example: '03:00',
64
+ description: 'The time at which the automatic day close will be triggered (HH:MM, local time, best effort).',
65
+ default: '03:00'
66
+ })
67
+ }
68
+ }),
50
69
  unsubmitted_transaction_warning: oneOf({
51
70
  description: 'If true, shows a warning for pending transactions on the balance view',
52
71
  type: 'boolean',
@@ -92,7 +92,7 @@ module.exports = oneOf({
92
92
  items: {
93
93
  ...currencyAmountObject
94
94
  },
95
- default: [ { 'amounnt': 200.0, 'currency': 'EUR' } ]
95
+ default: [{ 'amounnt': 200.0, 'currency': 'EUR' }]
96
96
  }),
97
97
  auto_propose: oneOf({
98
98
  description: 'if true, automatically selects the highest tip possible according to the given amount or the max_factor, no tips otherwise',
@@ -118,6 +118,15 @@ module.exports = oneOf({
118
118
  'card_opi' // deprecated, use 'card' instead
119
119
  ]
120
120
  }
121
+ }),
122
+ percentage_proposals: oneOf({
123
+ description: 'Defines an array of percentage tipping proposals',
124
+ type: 'array',
125
+ items: {
126
+ type: 'number',
127
+ minimum: 0.0,
128
+ maximum: 1.0
129
+ }
121
130
  })
122
131
  }
123
132
  })
@@ -259,7 +259,13 @@ module.exports = {
259
259
  ...payLaterObject
260
260
  }),
261
261
  default: null
262
- }
262
+ },
263
+ remote_payment_id: oneOf({
264
+ type: 'string',
265
+ format: 'uuid',
266
+ description: 'External remote payment identifier',
267
+ example: 'a5380b42-6025-49de-bb1d-c9357df96506'
268
+ })
263
269
  }
264
270
  })
265
271
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.436.0",
3
+ "version": "6.438.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",