@tillhub/schemas 6.370.0 → 6.371.1
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,17 @@
|
|
|
1
|
+
## [6.371.1](https://github.com/tillhub/schemas/compare/v6.371.0...v6.371.1) (2025-03-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **table_layout:** fixing version ([#1048](https://github.com/tillhub/schemas/issues/1048)) ([0e7d96f](https://github.com/tillhub/schemas/commit/0e7d96f))
|
|
7
|
+
|
|
8
|
+
# [6.371.0](https://github.com/tillhub/schemas/compare/v6.370.0...v6.371.0) (2025-03-20)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **table_layout:** table layout read schemas ([e024bb5](https://github.com/tillhub/schemas/commit/e024bb5))
|
|
14
|
+
|
|
1
15
|
# [6.370.0](https://github.com/tillhub/schemas/compare/v6.369.0...v6.370.0) (2025-03-13)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module.exports.request = {
|
|
2
|
-
$id: 'https://schemas.tillhub.com/
|
|
2
|
+
$id: 'https://schemas.tillhub.com/v1/table_layout.duplicate.request.schema.json',
|
|
3
3
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
4
4
|
additionalProperties: false,
|
|
5
5
|
type: 'object',
|
|
@@ -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.1",
|
|
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",
|