@gls_spain/gps-common 35.22.1 → 35.24.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 +15 -0
- package/package.json +1 -1
- package/schemas/definitions/shops.js +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [35.24.0](https://github.com/GLS-Spain/gps-common/compare/v35.23.0...v35.24.0) (2026-11-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* desactivar holidaysInactivity por defecto ([efef0d0](https://github.com/GLS-Spain/gps-common/commit/efef0d095a11623dbfa022eddadc279898e1c21c))
|
|
7
|
+
|
|
8
|
+
# [35.23.0](https://github.com/GLS-Spain/gps-common/compare/v35.22.1...v35.23.0) (2026-11-04)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* añadir reviewStatus a las inactividades de tienda ([d5ceacc](https://github.com/GLS-Spain/gps-common/commit/d5ceaccfbfa9d8e01728450c9fde5bad608bbd78))
|
|
14
|
+
* **INN-1085:** añadir función holidaysInactivity a optionsFeatures ([829755d](https://github.com/GLS-Spain/gps-common/commit/829755d09a60a48bf7942ae660b27d5f35ac0d5a))
|
|
15
|
+
|
|
1
16
|
## [35.22.1](https://github.com/GLS-Spain/gps-common/compare/v35.22.0...v35.22.1) (2026-11-04)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
|
@@ -90,6 +90,7 @@ const shopHoliday = () => ({
|
|
|
90
90
|
description: { type: 'string' },
|
|
91
91
|
createAt: datetime(),
|
|
92
92
|
_idHolidaysInternational: uuid(),
|
|
93
|
+
reviewStatus: { type: 'string', enum: ['pending', 'approved', 'rejected'] },
|
|
93
94
|
},
|
|
94
95
|
required: ['from', 'to', '_id', 'createAt'],
|
|
95
96
|
additionalProperties: false,
|
|
@@ -150,11 +151,15 @@ const shopActivity = () => ({
|
|
|
150
151
|
});
|
|
151
152
|
|
|
152
153
|
// Funciones que se activan o desactivan por tienda desde el admin; el shop solo muestra las que están a true
|
|
153
|
-
const OPTIONS_FEATURES = Object.freeze(['printLabels', 'analytics', 'billing', 'labelReplenishment']);
|
|
154
|
+
const OPTIONS_FEATURES = Object.freeze(['printLabels', 'analytics', 'billing', 'labelReplenishment', 'holidaysInactivity']);
|
|
155
|
+
|
|
156
|
+
const OPTIONS_FEATURES_ENABLED_BY_DEFAULT = Object.freeze([]);
|
|
154
157
|
|
|
155
158
|
const optionsFeatures = () => ({
|
|
156
159
|
type: 'object',
|
|
157
|
-
properties: Object.fromEntries(
|
|
160
|
+
properties: Object.fromEntries(
|
|
161
|
+
OPTIONS_FEATURES.map(feature => [feature, { type: 'boolean', default: OPTIONS_FEATURES_ENABLED_BY_DEFAULT.includes(feature) }]),
|
|
162
|
+
),
|
|
158
163
|
additionalProperties: false,
|
|
159
164
|
});
|
|
160
165
|
function channelingType() {
|
|
@@ -991,6 +996,7 @@ const getPrintLabelsBulkOperationRequest = () => ({
|
|
|
991
996
|
|
|
992
997
|
module.exports = {
|
|
993
998
|
OPTIONS_FEATURES,
|
|
999
|
+
OPTIONS_FEATURES_ENABLED_BY_DEFAULT,
|
|
994
1000
|
shop,
|
|
995
1001
|
locker,
|
|
996
1002
|
lockerNxt,
|