@tillhub/schemas 6.421.0 → 6.423.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 +14 -0
- package/lib/v0/analytics/reports/cashier_counting_protocols/export.js +48 -0
- package/lib/v0/analytics/reports/cashier_counting_protocols/index.js +3 -0
- package/lib/v0/analytics/reports/index.js +3 -1
- package/lib/v0/analytics/reports/staff/export.js +39 -0
- package/lib/v0/analytics/reports/staff/index.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [6.423.0](https://github.com/tillhub/schemas/compare/v6.422.0...v6.423.0) (2026-02-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **UNTIL-18714:** add staff export module and schema ([#1112](https://github.com/tillhub/schemas/issues/1112)) ([79c0006](https://github.com/tillhub/schemas/commit/79c0006))
|
|
7
|
+
|
|
8
|
+
# [6.422.0](https://github.com/tillhub/schemas/compare/v6.421.0...v6.422.0) (2026-02-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **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))
|
|
14
|
+
|
|
1
15
|
# [6.421.0](https://github.com/tillhub/schemas/compare/v6.420.0...v6.421.0) (2026-02-11)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -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
|
+
}
|
|
@@ -2,5 +2,7 @@ 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'),
|
|
7
|
+
staff: require('./staff')
|
|
6
8
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module.exports.request = {
|
|
2
|
+
$id: 'https://schemas.tillhub.com/v0/analytics.reports.staff.export.request.schema.json',
|
|
3
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: true,
|
|
6
|
+
required: ['format', 'documentType', 'email'],
|
|
7
|
+
properties: {
|
|
8
|
+
start: { type: 'string', format: 'date-time' },
|
|
9
|
+
end: { type: 'string', format: 'date-time' },
|
|
10
|
+
branch: { type: 'string' },
|
|
11
|
+
branch_group: {
|
|
12
|
+
anyOf: [
|
|
13
|
+
{ type: 'string', minLength: 1, maxLength: 64 },
|
|
14
|
+
{ type: 'array', items: { type: 'string', minLength: 1, maxLength: 64 } }
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
staff_number: { type: 'string' },
|
|
18
|
+
filename_prefix: { type: 'string' },
|
|
19
|
+
timezone: { type: 'string' },
|
|
20
|
+
limit: { type: 'string', maxLength: 10 },
|
|
21
|
+
offset: { type: 'string', maxLength: 10 },
|
|
22
|
+
page: { type: 'string', maxLength: 10 },
|
|
23
|
+
size: { type: 'string', maxLength: 10 },
|
|
24
|
+
pageSize: { type: 'string', maxLength: 10 },
|
|
25
|
+
|
|
26
|
+
format: { type: 'string', enum: ['csv', 'xls'] },
|
|
27
|
+
delimiter: { type: 'string', enum: ['comma', 'semicolon'] },
|
|
28
|
+
enclosure: { type: 'string', enum: ['single', 'double'] },
|
|
29
|
+
show_column_name: { type: 'string', enum: ['true', 'false'] },
|
|
30
|
+
column_selection: { type: 'array', items: { type: 'string' } },
|
|
31
|
+
|
|
32
|
+
documentType: { type: 'string', enum: ['StaffExport'] },
|
|
33
|
+
email: { type: 'string', minLength: 5 },
|
|
34
|
+
lang: { type: 'string' },
|
|
35
|
+
scheduled_id: { type: 'string', minLength: 1, maxLength: 64 },
|
|
36
|
+
existingId: { type: 'string', format: 'uuid' },
|
|
37
|
+
correlationId: { type: 'string', format: 'uuid' }
|
|
38
|
+
}
|
|
39
|
+
}
|