@gls_spain/gps-common 34.26.14 → 34.26.16
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/package.json +1 -1
- package/schemas/definitions/sales.js +1 -1
- package/schemas/definitions/shops.js +26 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [34.26.16](https://github.com/GLS-Spain/gps-common/compare/v34.26.15...v34.26.16) (2022-05-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add holidays to schema ([64dbdb0](https://github.com/GLS-Spain/gps-common/commit/64dbdb0b07a0f109bf85e2c6b14542a267bf2c0b))
|
|
7
|
+
|
|
8
|
+
## [34.26.15](https://github.com/GLS-Spain/gps-common/compare/v34.26.14...v34.26.15) (2022-04-26)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* hotFix fourteenService ([9a3e2ca](https://github.com/GLS-Spain/gps-common/commit/9a3e2ca04218e3080d9cdda86a0f93b8777b9c9a))
|
|
14
|
+
|
|
1
15
|
## [34.26.14](https://github.com/GLS-Spain/gps-common/compare/v34.26.13...v34.26.14) (2022-04-26)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -151,7 +151,7 @@ const createSaleRequest = () =>
|
|
|
151
151
|
createRequest({
|
|
152
152
|
type: 'object',
|
|
153
153
|
properties: {
|
|
154
|
-
...pickProperties(sale(), ['_id', 'createdAt', 'size', 'destination', 'sender', 'price']),
|
|
154
|
+
...pickProperties(sale(), ['_id', 'createdAt', 'size', 'fourteenService', 'destination', 'sender', 'price']),
|
|
155
155
|
},
|
|
156
156
|
required: ['size', 'destination', 'sender'],
|
|
157
157
|
additionalProperties: false,
|
|
@@ -43,6 +43,7 @@ const shopDaySchedule = () => ({
|
|
|
43
43
|
description: '[ ] or [ [HH:mm:ss, HH:mm:ss] ] or [ [HH:mm:ss, HH:mm:ss], [HH:mm:ss, HH:mm:ss] ]',
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
+
|
|
46
47
|
const shopSchedule = () => ({
|
|
47
48
|
oneOf: [
|
|
48
49
|
{
|
|
@@ -73,6 +74,30 @@ const shopSchedule = () => ({
|
|
|
73
74
|
},
|
|
74
75
|
],
|
|
75
76
|
});
|
|
77
|
+
const absencesHolidaysShop = () => ({
|
|
78
|
+
title: 'Absences holidays shop',
|
|
79
|
+
type: 'object',
|
|
80
|
+
properties: {
|
|
81
|
+
from: datetime(),
|
|
82
|
+
to: datetime(),
|
|
83
|
+
_id: uuid(),
|
|
84
|
+
createAt: datetime()
|
|
85
|
+
},
|
|
86
|
+
required: ['from', 'to', '_id', 'createAt'],
|
|
87
|
+
additionalProperties: false,
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
const shopHolidays = () => ({
|
|
91
|
+
title: 'Holidays shop',
|
|
92
|
+
type: 'object',
|
|
93
|
+
properties: {
|
|
94
|
+
absences: absencesHolidaysShop(),
|
|
95
|
+
},
|
|
96
|
+
required: ['absences'],
|
|
97
|
+
additionalProperties: false,
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
|
|
76
101
|
|
|
77
102
|
const shopRepresentative = () => ({
|
|
78
103
|
type: 'object',
|
|
@@ -200,6 +225,7 @@ const shop = () => ({
|
|
|
200
225
|
uniqueItems: true,
|
|
201
226
|
},
|
|
202
227
|
openingSchedule: shopSchedule(),
|
|
228
|
+
holidays: shopHolidays(),
|
|
203
229
|
timezone: timezone(),
|
|
204
230
|
contacts: {
|
|
205
231
|
type: 'array',
|