@tillhub/schemas 6.425.0 → 6.427.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/goods_sold/export.js +54 -0
- package/lib/v0/analytics/reports/goods_sold/index.js +3 -0
- package/lib/v0/analytics/reports/index.js +2 -1
- package/lib/v1/products/index.js +4 -0
- package/lib/v1/products/query.js +78 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [6.427.0](https://github.com/tillhub/schemas/compare/v6.426.0...v6.427.0) (2026-03-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **UNTIL-19453:** add products query module and schema ([#1116](https://github.com/tillhub/schemas/issues/1116)) ([11ef56b](https://github.com/tillhub/schemas/commit/11ef56b))
|
|
7
|
+
|
|
8
|
+
# [6.426.0](https://github.com/tillhub/schemas/compare/v6.425.0...v6.426.0) (2026-02-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **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))
|
|
14
|
+
|
|
1
15
|
# [6.425.0](https://github.com/tillhub/schemas/compare/v6.424.0...v6.425.0) (2026-02-13)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -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
|
+
}
|
package/lib/v1/products/index.js
CHANGED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
$id: 'https://schemas.tillhub.com/v1/products.query.request.schema.json',
|
|
3
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
4
|
+
title: 'Products list query (POST body — array filters)',
|
|
5
|
+
description: 'Optional array-type filters for POST /api/v1/products/:clientAccountId/query.',
|
|
6
|
+
additionalProperties: false,
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {
|
|
9
|
+
location: {
|
|
10
|
+
type: 'array',
|
|
11
|
+
items: { type: 'string' }
|
|
12
|
+
},
|
|
13
|
+
locations: {
|
|
14
|
+
type: 'array',
|
|
15
|
+
items: { type: 'string' }
|
|
16
|
+
},
|
|
17
|
+
branch_group: {
|
|
18
|
+
type: 'array',
|
|
19
|
+
items: { type: 'string' }
|
|
20
|
+
},
|
|
21
|
+
product_group: {
|
|
22
|
+
type: 'array',
|
|
23
|
+
items: { type: 'string' }
|
|
24
|
+
},
|
|
25
|
+
product_ids: {
|
|
26
|
+
type: 'array',
|
|
27
|
+
items: { type: 'string' }
|
|
28
|
+
},
|
|
29
|
+
custom_id: {
|
|
30
|
+
type: 'array',
|
|
31
|
+
items: { type: 'string' }
|
|
32
|
+
},
|
|
33
|
+
business_partner_id: {
|
|
34
|
+
type: 'array',
|
|
35
|
+
items: { type: 'string' }
|
|
36
|
+
},
|
|
37
|
+
tag: {
|
|
38
|
+
type: 'array',
|
|
39
|
+
items: { type: 'string' }
|
|
40
|
+
},
|
|
41
|
+
tags: {
|
|
42
|
+
type: 'array',
|
|
43
|
+
items: { type: 'string' }
|
|
44
|
+
},
|
|
45
|
+
type: {
|
|
46
|
+
type: 'array',
|
|
47
|
+
items: { type: 'string' }
|
|
48
|
+
},
|
|
49
|
+
types: {
|
|
50
|
+
type: 'array',
|
|
51
|
+
items: { type: 'string' }
|
|
52
|
+
},
|
|
53
|
+
linked_product_id: {
|
|
54
|
+
type: 'array',
|
|
55
|
+
items: { type: 'string' }
|
|
56
|
+
},
|
|
57
|
+
client: {
|
|
58
|
+
type: 'array',
|
|
59
|
+
items: { type: 'string' }
|
|
60
|
+
},
|
|
61
|
+
purchase_order_id: {
|
|
62
|
+
type: 'array',
|
|
63
|
+
items: { type: 'string' }
|
|
64
|
+
},
|
|
65
|
+
field: {
|
|
66
|
+
type: 'array',
|
|
67
|
+
items: { type: 'string' }
|
|
68
|
+
},
|
|
69
|
+
include: {
|
|
70
|
+
type: 'array',
|
|
71
|
+
items: { type: 'string' }
|
|
72
|
+
},
|
|
73
|
+
exclude: {
|
|
74
|
+
type: 'array',
|
|
75
|
+
items: { type: 'string' }
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|