@tillhub/schemas 6.426.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 CHANGED
@@ -1,3 +1,10 @@
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
+
1
8
  # [6.426.0](https://github.com/tillhub/schemas/compare/v6.425.0...v6.426.0) (2026-02-13)
2
9
 
3
10
 
@@ -14,6 +14,10 @@ module.exports.selection = {
14
14
  request: require('./selection')
15
15
  }
16
16
 
17
+ module.exports.query = {
18
+ request: require('./query')
19
+ }
20
+
17
21
  module.exports.create = {
18
22
  request: require('./create.request'),
19
23
  response: require('./create.response'),
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.426.0",
3
+ "version": "6.427.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",