@tillhub/schemas 6.424.0 → 6.426.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/customers/export.js +50 -0
- package/lib/v0/analytics/reports/customers/index.js +3 -0
- package/lib/v0/analytics/reports/goods_sold/export.js +54 -0
- package/lib/v0/analytics/reports/goods_sold/index.js +3 -0
- package/lib/v0/analytics/reports/index.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [6.426.0](https://github.com/tillhub/schemas/compare/v6.425.0...v6.426.0) (2026-02-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **UNTIL-18717:** add goods sold export module and schema ([#1115](https://github.com/tillhub/schemas/issues/1115)) ([0b0c4a9](https://github.com/tillhub/schemas/commit/0b0c4a9))
|
|
7
|
+
|
|
8
|
+
# [6.425.0](https://github.com/tillhub/schemas/compare/v6.424.0...v6.425.0) (2026-02-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **UNTIL-18716:** add customers export module and schema ([#1114](https://github.com/tillhub/schemas/issues/1114)) ([eb0e17f](https://github.com/tillhub/schemas/commit/eb0e17f))
|
|
14
|
+
|
|
1
15
|
# [6.424.0](https://github.com/tillhub/schemas/compare/v6.423.0...v6.424.0) (2026-02-12)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module.exports.request = {
|
|
2
|
+
$id: 'https://schemas.tillhub.com/v0/analytics.reports.customers.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
|
+
legacy: { enum: ['true', 'false', true, false] },
|
|
9
|
+
start: { type: 'string', format: 'date-time' },
|
|
10
|
+
end: { type: 'string', format: 'date-time' },
|
|
11
|
+
q: { type: 'string' },
|
|
12
|
+
customer_number: { type: 'string' },
|
|
13
|
+
firstname: { type: 'string' },
|
|
14
|
+
lastname: { type: 'string' },
|
|
15
|
+
company: { type: 'string' },
|
|
16
|
+
location: {
|
|
17
|
+
anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }]
|
|
18
|
+
},
|
|
19
|
+
branch_number: {
|
|
20
|
+
anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }]
|
|
21
|
+
},
|
|
22
|
+
branch_group: {
|
|
23
|
+
anyOf: [
|
|
24
|
+
{ type: 'string', minLength: 1, maxLength: 64 },
|
|
25
|
+
{ type: 'array', items: { type: 'string', minLength: 1, maxLength: 64 } }
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
context_locations: { type: 'string', minLength: 1, maxLength: 64 },
|
|
29
|
+
filename_prefix: { type: 'string' },
|
|
30
|
+
timezone: { type: 'string' },
|
|
31
|
+
limit: { type: 'string', maxLength: 10 },
|
|
32
|
+
offset: { type: 'string', maxLength: 10 },
|
|
33
|
+
page: { type: 'string', maxLength: 10 },
|
|
34
|
+
size: { type: 'string', maxLength: 10 },
|
|
35
|
+
pageSize: { type: 'string', maxLength: 10 },
|
|
36
|
+
|
|
37
|
+
format: { type: 'string', enum: ['csv', 'xls'] },
|
|
38
|
+
delimiter: { type: 'string', enum: ['comma', 'semicolon'] },
|
|
39
|
+
enclosure: { type: 'string', enum: ['single', 'double'] },
|
|
40
|
+
show_column_name: { type: 'string', enum: ['true', 'false'] },
|
|
41
|
+
column_selection: { type: 'array', items: { type: 'string' } },
|
|
42
|
+
|
|
43
|
+
documentType: { type: 'string', enum: ['CustomersExport'] },
|
|
44
|
+
email: { type: 'string', minLength: 5 },
|
|
45
|
+
lang: { type: 'string' },
|
|
46
|
+
scheduled_id: { type: 'string', minLength: 1, maxLength: 64 },
|
|
47
|
+
existingId: { type: 'string', format: 'uuid' },
|
|
48
|
+
correlationId: { type: 'string', format: 'uuid' }
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
module.exports.request = {
|
|
2
|
+
$id: 'https://schemas.tillhub.com/v0/analytics.reports.goods_sold.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
|
+
date_start: { type: 'string', format: 'date-time' },
|
|
9
|
+
date_end: { type: 'string', format: 'date-time' },
|
|
10
|
+
branch: {
|
|
11
|
+
anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }]
|
|
12
|
+
},
|
|
13
|
+
register: { type: 'string' },
|
|
14
|
+
branch_custom_id: { type: 'string' },
|
|
15
|
+
branch_group: {
|
|
16
|
+
anyOf: [
|
|
17
|
+
{ type: 'string', minLength: 1, maxLength: 64 },
|
|
18
|
+
{ type: 'array', items: { type: 'string', minLength: 1, maxLength: 64 } }
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
register_custom_id: { type: 'string' },
|
|
22
|
+
customer_custom_id: { type: 'string' },
|
|
23
|
+
balance_custom_id: { type: 'string' },
|
|
24
|
+
custom_id: { type: 'string' },
|
|
25
|
+
customer: { type: 'string' },
|
|
26
|
+
salesman: { type: 'string' },
|
|
27
|
+
product: { type: 'string' },
|
|
28
|
+
product_custom_id: { type: 'string' },
|
|
29
|
+
type: { type: 'string' },
|
|
30
|
+
currency: { type: 'string' },
|
|
31
|
+
staff: { type: 'string' },
|
|
32
|
+
context_locations: { type: 'string', minLength: 1, maxLength: 64 },
|
|
33
|
+
timezone: { type: 'string' },
|
|
34
|
+
filename_prefix: { type: 'string' },
|
|
35
|
+
limit: { type: 'string', maxLength: 10 },
|
|
36
|
+
offset: { type: 'string', maxLength: 10 },
|
|
37
|
+
page: { type: 'string', maxLength: 10 },
|
|
38
|
+
size: { type: 'string', maxLength: 10 },
|
|
39
|
+
pageSize: { type: 'string', maxLength: 10 },
|
|
40
|
+
|
|
41
|
+
format: { type: 'string', enum: ['csv', 'xls'] },
|
|
42
|
+
delimiter: { type: 'string', enum: ['comma', 'semicolon'] },
|
|
43
|
+
enclosure: { type: 'string', enum: ['single', 'double'] },
|
|
44
|
+
show_column_name: { type: 'string', enum: ['true', 'false'] },
|
|
45
|
+
column_selection: { type: 'array', items: { type: 'string' } },
|
|
46
|
+
|
|
47
|
+
documentType: { type: 'string', enum: ['GoodsSoldExport'] },
|
|
48
|
+
email: { type: 'string', minLength: 5 },
|
|
49
|
+
lang: { type: 'string' },
|
|
50
|
+
scheduled_id: { type: 'string', minLength: 1, maxLength: 64 },
|
|
51
|
+
existingId: { type: 'string', format: 'uuid' },
|
|
52
|
+
correlationId: { type: 'string', format: 'uuid' }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -4,5 +4,7 @@ module.exports = {
|
|
|
4
4
|
payments: require('./payments'),
|
|
5
5
|
vat: require('./vat'),
|
|
6
6
|
cashier_counting_protocols: require('./cashier_counting_protocols'),
|
|
7
|
-
staff: require('./staff')
|
|
7
|
+
staff: require('./staff'),
|
|
8
|
+
customers: require('./customers'),
|
|
9
|
+
goods_sold: require('./goods_sold')
|
|
8
10
|
}
|