@tillhub/schemas 6.418.0 → 6.419.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/index.js +2 -1
- package/lib/v0/analytics/reports/payment_options/export.js +51 -0
- package/lib/v0/analytics/reports/payment_options/index.js +3 -0
- package/lib/v1/configurations/items/gastro.js +1 -1
- package/lib/v1/registers/base.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [6.419.0](https://github.com/tillhub/schemas/compare/v6.418.1...v6.419.0) (2026-02-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **UNTIL-18651:** Add payment options report module and schema ([#1108](https://github.com/tillhub/schemas/issues/1108)) ([6b2ac7e](https://github.com/tillhub/schemas/commit/6b2ac7e))
|
|
7
|
+
|
|
8
|
+
## [6.418.1](https://github.com/tillhub/schemas/compare/v6.418.0...v6.418.1) (2026-01-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **registers:** increase allowed length for registers' name ([#1107](https://github.com/tillhub/schemas/issues/1107)) ([2a38e60](https://github.com/tillhub/schemas/commit/2a38e60))
|
|
14
|
+
|
|
1
15
|
# [6.418.0](https://github.com/tillhub/schemas/compare/v6.417.0...v6.418.0) (2026-01-15)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module.exports.request = {
|
|
2
|
+
$id: 'https://schemas.tillhub.com/v0/analytics.reports.payment_options.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
|
+
// timeframe (payment_options uses start/end)
|
|
11
|
+
start: { type: 'string', format: 'date-time' },
|
|
12
|
+
end: { type: 'string', format: 'date-time' },
|
|
13
|
+
|
|
14
|
+
// aliases used by other reports (optional)
|
|
15
|
+
date_start: { type: 'string', format: 'date-time' },
|
|
16
|
+
date_end: { type: 'string', format: 'date-time' },
|
|
17
|
+
|
|
18
|
+
// report/query filters (optional but validated when present)
|
|
19
|
+
cursor_field: { type: 'string' },
|
|
20
|
+
branch_number: {
|
|
21
|
+
anyOf: [
|
|
22
|
+
{ type: 'string', minLength: 1, maxLength: 64 },
|
|
23
|
+
{ type: 'array', items: { type: 'string', minLength: 1, maxLength: 64 } }
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
branch_group: {
|
|
27
|
+
anyOf: [
|
|
28
|
+
{ type: 'string', minLength: 1, maxLength: 64 },
|
|
29
|
+
{ type: 'array', items: { type: 'string', minLength: 1, maxLength: 64 } }
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
context_locations: { type: 'string', minLength: 1, maxLength: 64 },
|
|
33
|
+
payment_option_type_name: { type: 'string', minLength: 1, maxLength: 64 },
|
|
34
|
+
legacy: { enum: ['true', 'false', true, false] },
|
|
35
|
+
report_v2: { enum: ['true', 'false', true, false] },
|
|
36
|
+
|
|
37
|
+
// export pipeline metadata
|
|
38
|
+
format: { type: 'string', enum: ['csv', 'xls'] },
|
|
39
|
+
delimiter: { type: 'string', enum: ['comma', 'semicolon'] },
|
|
40
|
+
enclosure: { type: 'string', enum: ['single', 'double'] },
|
|
41
|
+
show_column_name: { type: 'string', enum: ['true', 'false'] },
|
|
42
|
+
column_selection: { type: 'array', items: { type: 'string' } },
|
|
43
|
+
|
|
44
|
+
documentType: { type: 'string', enum: ['PaymentOptionsExport'] },
|
|
45
|
+
email: { type: 'string', minLength: 5 },
|
|
46
|
+
lang: { type: 'string' },
|
|
47
|
+
scheduled_id: { type: 'string', minLength: 1, maxLength: 64 },
|
|
48
|
+
existingId: { type: 'string', format: 'uuid' },
|
|
49
|
+
correlationId: { type: 'string', format: 'uuid' }
|
|
50
|
+
}
|
|
51
|
+
}
|
package/lib/v1/registers/base.js
CHANGED