@tillhub/schemas 6.351.0 → 6.352.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.352.0](https://github.com/tillhub/schemas/compare/v6.351.0...v6.352.0) (2025-01-20)
2
+
3
+
4
+ ### Features
5
+
6
+ * **gastro:** crreated schema for gastro order locks ([#1022](https://github.com/tillhub/schemas/issues/1022)) ([aa2267f](https://github.com/tillhub/schemas/commit/aa2267f))
7
+
1
8
  # [6.351.0](https://github.com/tillhub/schemas/compare/v6.350.0...v6.351.0) (2025-01-16)
2
9
 
3
10
 
@@ -0,0 +1,6 @@
1
+ module.exports.locks = {
2
+ upsert: {
3
+ request: require('./locks/upsert').request,
4
+ response: require('./locks/upsert').response
5
+ }
6
+ }
@@ -0,0 +1,33 @@
1
+ module.exports = {
2
+ order_id: {
3
+ type: 'string',
4
+ format: 'uuid'
5
+ },
6
+ register_id: {
7
+ type: 'string',
8
+ format: 'uuid'
9
+ },
10
+ branch_id: {
11
+ type: 'string',
12
+ format: 'uuid'
13
+ },
14
+ cashier_id: {
15
+ type: 'string',
16
+ format: 'uuid'
17
+ },
18
+ order_date: {
19
+ type: 'string',
20
+ format: 'date-time'
21
+ },
22
+ expires_at: {
23
+ type: 'string',
24
+ format: 'date-time'
25
+ },
26
+ status: {
27
+ type: 'string',
28
+ enum: ['locked', 'unlocked']
29
+ },
30
+ revision: {
31
+ type: 'integer'
32
+ }
33
+ }
@@ -0,0 +1,20 @@
1
+ const base = require('./base')
2
+
3
+ module.exports = {
4
+ request: {
5
+ $id: 'https://schemas.tillhub.com/v1/gastro_orders.locks.upsert.request.schema.json',
6
+ $schema: 'http://json-schema.org/draft-07/schema#',
7
+ type: 'object',
8
+ additionalProperties: false,
9
+ required: ['register_id', 'branch_id', 'cashier_id', 'order_date', 'expires_at', 'status', 'revision'],
10
+ properties: base
11
+ },
12
+ response: {
13
+ $id: 'https://schemas.tillhub.com/v1/gastro_orders.locks.upsert.response.schema.json',
14
+ $schema: 'http://json-schema.org/draft-07/schema#',
15
+ type: 'object',
16
+ additionalProperties: false,
17
+ required: ['register_id', 'branch_id', 'cashier_id', 'order_date', 'expires_at', 'status', 'revision'],
18
+ properties: base
19
+ }
20
+ }
package/lib/v0/index.js CHANGED
@@ -78,5 +78,6 @@ module.exports.configurations = require('./configurations')
78
78
  module.exports.service_categories = require('./service_categories')
79
79
  module.exports.services = require('./services')
80
80
  module.exports.shift_plan = require('./shift_plan')
81
+ module.exports.gastro_orders = require('./gastro_orders')
81
82
 
82
83
  // hygen:injection - Please, don't delete this line: when running the cli for schema resources the new routes will be automatically added here.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.351.0",
3
+ "version": "6.352.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",