@gls_spain/gps-common 34.26.15 → 34.26.17
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/shops.js +27 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [34.26.17](https://github.com/GLS-Spain/gps-common/compare/v34.26.16...v34.26.17) (2022-05-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add holidays to updateshoprequest ([263f3f2](https://github.com/GLS-Spain/gps-common/commit/263f3f24f1ea88be42c897f0cf4c450316b28f30))
|
|
7
|
+
|
|
8
|
+
## [34.26.16](https://github.com/GLS-Spain/gps-common/compare/v34.26.15...v34.26.16) (2022-05-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add holidays to schema ([64dbdb0](https://github.com/GLS-Spain/gps-common/commit/64dbdb0b07a0f109bf85e2c6b14542a267bf2c0b))
|
|
14
|
+
|
|
1
15
|
## [34.26.15](https://github.com/GLS-Spain/gps-common/compare/v34.26.14...v34.26.15) (2022-04-26)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -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',
|
|
@@ -384,7 +410,7 @@ const updateShopRequest = () =>
|
|
|
384
410
|
status: setShopStatus(),
|
|
385
411
|
...pickProperties(
|
|
386
412
|
shop(),
|
|
387
|
-
['name', 'address', 'capabilities', 'openingSchedule', 'contacts', 'eco', 'squareCode', 'clientCode'],
|
|
413
|
+
['name', 'address', 'capabilities', 'openingSchedule', 'holidays', 'contacts', 'eco', 'squareCode', 'clientCode'],
|
|
388
414
|
['fiscal', 'activity', 'notes', 'derivationSettings', 'expirationSettings'],
|
|
389
415
|
),
|
|
390
416
|
},
|