@tillhub/schemas 6.421.0 → 6.422.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,10 @@
1
+ # [6.422.0](https://github.com/tillhub/schemas/compare/v6.421.0...v6.422.0) (2026-02-11)
2
+
3
+
4
+ ### Features
5
+
6
+ * **UNTIL-18711:** add cashier counting protocols export module and schema ([#1111](https://github.com/tillhub/schemas/issues/1111)) ([7622781](https://github.com/tillhub/schemas/commit/7622781))
7
+
1
8
  # [6.421.0](https://github.com/tillhub/schemas/compare/v6.420.0...v6.421.0) (2026-02-11)
2
9
 
3
10
 
@@ -0,0 +1,48 @@
1
+ module.exports.request = {
2
+ $id: 'https://schemas.tillhub.com/v0/analytics.reports.cashier_counting_protocols.export.request.schema.json',
3
+ $schema: 'http://json-schema.org/draft-07/schema#',
4
+ type: 'object',
5
+ // Keep this permissive: Tillhub API report queries include many filters.
6
+ // Validation here is focused on export-pipeline metadata.
7
+ additionalProperties: true,
8
+ required: ['format', 'documentType', 'email'],
9
+ properties: {
10
+ date_start: { type: 'string', format: 'date-time' },
11
+ date_end: { type: 'string', format: 'date-time' },
12
+ register_custom_id: { type: 'string' },
13
+ register: { type: 'string' },
14
+ branch_custom_id: { type: 'string' },
15
+ branch: { type: 'string' },
16
+ cashier_staff: { type: 'string' },
17
+ has_discrepancy: { enum: ['true', 'false', true, false] },
18
+ counting_type: { type: 'string', enum: ['opening', 'cashing_up'] },
19
+ timezone: { type: 'string' },
20
+ context_locations: { type: 'string', minLength: 1, maxLength: 64 },
21
+ branch_group: {
22
+ anyOf: [
23
+ { type: 'string', minLength: 1, maxLength: 64 },
24
+ { type: 'array', items: { type: 'string', minLength: 1, maxLength: 64 } }
25
+ ]
26
+ },
27
+ filename_prefix: { type: 'string' },
28
+ limit: { type: 'string', maxLength: 10 },
29
+ offset: { type: 'string', maxLength: 10 },
30
+ page: { type: 'string', maxLength: 10 },
31
+ size: { type: 'string', maxLength: 10 },
32
+ pageSize: { type: 'string', maxLength: 10 },
33
+
34
+ // export pipeline metadata
35
+ format: { type: 'string', enum: ['csv', 'xls'] },
36
+ delimiter: { type: 'string', enum: ['comma', 'semicolon'] },
37
+ enclosure: { type: 'string', enum: ['single', 'double'] },
38
+ show_column_name: { type: 'string', enum: ['true', 'false'] },
39
+ column_selection: { type: 'array', items: { type: 'string' } },
40
+
41
+ documentType: { type: 'string', enum: ['CashierCountingProtocolsExport'] },
42
+ email: { type: 'string', minLength: 5 },
43
+ lang: { type: 'string' },
44
+ scheduled_id: { type: 'string', minLength: 1, maxLength: 64 },
45
+ existingId: { type: 'string', format: 'uuid' },
46
+ correlationId: { type: 'string', format: 'uuid' }
47
+ }
48
+ }
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ export: require('./export')
3
+ }
@@ -2,5 +2,6 @@ module.exports = {
2
2
  products: require('./products'),
3
3
  payment_options: require('./payment_options'),
4
4
  payments: require('./payments'),
5
- vat: require('./vat')
5
+ vat: require('./vat'),
6
+ cashier_counting_protocols: require('./cashier_counting_protocols')
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.421.0",
3
+ "version": "6.422.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",