@tillhub/schemas 6.437.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,19 @@
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
+
1
17
  # [6.437.0](https://github.com/tillhub/schemas/compare/v6.436.0...v6.437.0) (2026-04-20)
2
18
 
3
19
 
@@ -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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.437.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",