@tillhub/schemas 6.193.0 → 6.195.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/common/permissions.js +3 -1
- package/lib/v1/products/base.js +14 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [6.195.0](https://github.com/tillhub/schemas/compare/v6.194.0...v6.195.0) (2023-02-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **common:** permissions ([ddb074d](https://github.com/tillhub/schemas/commit/ddb074d))
|
|
7
|
+
|
|
8
|
+
# [6.194.0](https://github.com/tillhub/schemas/compare/v6.193.0...v6.194.0) (2023-02-20)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **products:** array of uuid ([ba92044](https://github.com/tillhub/schemas/commit/ba92044))
|
|
14
|
+
|
|
1
15
|
# [6.193.0](https://github.com/tillhub/schemas/compare/v6.192.0...v6.193.0) (2023-02-15)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -131,7 +131,9 @@ module.exports.staff = {
|
|
|
131
131
|
'staff:staff:processes:all_staff',
|
|
132
132
|
'staff:staff:processes:all_locations',
|
|
133
133
|
'staff:staff:orders:others:locked:modify', // allows modifying other staffs' orders (gastro)
|
|
134
|
-
'staff:staff:orders:preview:print' // allows printing previews for unpaid orders (gastro)
|
|
134
|
+
'staff:staff:orders:preview:print', // allows printing previews for unpaid orders (gastro)
|
|
135
|
+
'staff:staff:cart:clear', // Can clear the current cart
|
|
136
|
+
'staff:staff:cart:clear:row' // Can remove items from the cart
|
|
135
137
|
]
|
|
136
138
|
}
|
|
137
139
|
}
|
package/lib/v1/products/base.js
CHANGED
|
@@ -92,7 +92,13 @@ const request = {
|
|
|
92
92
|
tags: {
|
|
93
93
|
anyOf: [
|
|
94
94
|
{
|
|
95
|
-
type: 'array'
|
|
95
|
+
type: 'array',
|
|
96
|
+
items: {
|
|
97
|
+
type: 'string',
|
|
98
|
+
example: '860defb8-5598-421d-9da4-f0826e767536',
|
|
99
|
+
format: 'uuid',
|
|
100
|
+
description: 'The uuid v4 that is generated on the API when a tag is created'
|
|
101
|
+
}
|
|
96
102
|
},
|
|
97
103
|
{
|
|
98
104
|
type: 'null'
|
|
@@ -103,7 +109,13 @@ const request = {
|
|
|
103
109
|
description: 'Used to store linked_products (existing (can be any type, including `linked` and embedded (`full` product schema)',
|
|
104
110
|
anyOf: [
|
|
105
111
|
{
|
|
106
|
-
type: 'array'
|
|
112
|
+
type: 'array',
|
|
113
|
+
items: {
|
|
114
|
+
type: 'string',
|
|
115
|
+
example: '860defb8-5598-421d-9da4-f0826e767536',
|
|
116
|
+
format: 'uuid',
|
|
117
|
+
description: 'The uuid v4 that is generated on the API when a product is created'
|
|
118
|
+
}
|
|
107
119
|
},
|
|
108
120
|
{
|
|
109
121
|
type: 'null'
|