@tillhub/schemas 6.369.0 → 6.371.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 +19 -0
- package/lib/common/device_info.js +14 -9
- package/lib/v1/table_layout/index.js +1 -0
- package/lib/v1/table_layout/read.js +85 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
# [6.371.0](https://github.com/tillhub/schemas/compare/v6.370.0...v6.371.0) (2025-03-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **table_layout:** table layout read schemas ([e024bb5](https://github.com/tillhub/schemas/commit/e024bb5))
|
|
7
|
+
|
|
8
|
+
# [6.370.0](https://github.com/tillhub/schemas/compare/v6.369.0...v6.370.0) (2025-03-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **common:** device_info ([4c7f5ad](https://github.com/tillhub/schemas/commit/4c7f5ad))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **common:** device_info ([5db0470](https://github.com/tillhub/schemas/commit/5db0470))
|
|
19
|
+
|
|
1
20
|
# [6.369.0](https://github.com/tillhub/schemas/compare/v6.368.0...v6.369.0) (2025-03-12)
|
|
2
21
|
|
|
3
22
|
|
|
@@ -29,15 +29,20 @@ module.exports = {
|
|
|
29
29
|
example: 'Simulator iPad (10th generation)'
|
|
30
30
|
}),
|
|
31
31
|
user: oneOf({
|
|
32
|
-
type: '
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
type: 'object',
|
|
33
|
+
properties: {
|
|
34
|
+
email: oneOf({
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'Login email of the user',
|
|
37
|
+
format: 'email',
|
|
38
|
+
example: 'khg0320@tillhub.de'
|
|
39
|
+
}),
|
|
40
|
+
organisation: oneOf({
|
|
41
|
+
type: 'string',
|
|
42
|
+
description: 'Organisation if present',
|
|
43
|
+
example: 'klier'
|
|
44
|
+
})
|
|
45
|
+
}
|
|
41
46
|
})
|
|
42
47
|
}
|
|
43
48
|
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const base = require('./base')
|
|
2
|
+
const baseObject = require('../../common/base')
|
|
3
|
+
const commonResponse = require('../../common/response')
|
|
4
|
+
const commonQuery = require('../../common/query')
|
|
5
|
+
|
|
6
|
+
module.exports.all = {
|
|
7
|
+
query: {
|
|
8
|
+
$id: 'https://schemas.tillhub.com/v1/table_layout.read.all.query.schema.json',
|
|
9
|
+
...commonQuery({
|
|
10
|
+
standard: ['start', 'active', 'deleted'],
|
|
11
|
+
additional: {
|
|
12
|
+
q: {
|
|
13
|
+
description: 'Search layouts by name matching a given string',
|
|
14
|
+
example: 'there',
|
|
15
|
+
type: 'string'
|
|
16
|
+
},
|
|
17
|
+
locations: {
|
|
18
|
+
description: 'Array of UUID representing locations',
|
|
19
|
+
example: ['25812497-4559-458c-ab0e-faa93e513d3e'],
|
|
20
|
+
type: 'array',
|
|
21
|
+
items: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
format: 'uuid'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
page: {
|
|
27
|
+
description: 'The page number (for paginated output)',
|
|
28
|
+
example: 3,
|
|
29
|
+
type: 'integer',
|
|
30
|
+
minimum: 1
|
|
31
|
+
},
|
|
32
|
+
limit: {
|
|
33
|
+
description: 'The maximum amount of entries on page (for paginated output)',
|
|
34
|
+
example: 50,
|
|
35
|
+
type: 'integer',
|
|
36
|
+
minimum: 1
|
|
37
|
+
},
|
|
38
|
+
cursor_field: {
|
|
39
|
+
description: 'Cursor field and direction for sorting query by',
|
|
40
|
+
example: '+name',
|
|
41
|
+
type: 'string'
|
|
42
|
+
},
|
|
43
|
+
include_layout: {
|
|
44
|
+
description: 'The option to include or omit the layout field from the response',
|
|
45
|
+
example: 'true',
|
|
46
|
+
type: 'string',
|
|
47
|
+
enum: ['true', 'false']
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
},
|
|
52
|
+
response: {
|
|
53
|
+
$id: 'https://schemas.tillhub.com/v1/table_layout.read.all.response.schema.json',
|
|
54
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
55
|
+
additionalProperties: false,
|
|
56
|
+
...commonResponse({
|
|
57
|
+
resultItems: {
|
|
58
|
+
type: 'object',
|
|
59
|
+
additionalProperties: false,
|
|
60
|
+
properties: {
|
|
61
|
+
...baseObject(),
|
|
62
|
+
...base
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
module.exports.one = {
|
|
70
|
+
response: {
|
|
71
|
+
$id: 'https://schemas.tillhub.com/v1/table_layout.read.one.response.schema.json',
|
|
72
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
73
|
+
additionalProperties: false,
|
|
74
|
+
...commonResponse({
|
|
75
|
+
resultItems: {
|
|
76
|
+
type: 'object',
|
|
77
|
+
additionalProperties: false,
|
|
78
|
+
properties: {
|
|
79
|
+
...baseObject(),
|
|
80
|
+
...base
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tillhub/schemas",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.371.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"tdd": "NODE_ENV=test DEBUG=api:* nodemon --exec nodemon test/tdd-runner.js",
|
|
11
11
|
"tdd:all": "NODE_ENV=test DEBUG=api:* nodemon --exec nodemon test/tdd-runner.js test/**/*.spec.js",
|
|
12
12
|
"lint": "eslint .",
|
|
13
|
+
"lint:fix": "eslint . --fix",
|
|
13
14
|
"semantic-release": "semantic-release",
|
|
14
15
|
"precommit": "npm run lint && git add -A",
|
|
15
16
|
"commit": "npm run precommit && git-cz",
|