@gls_spain/gps-common 35.22.1 → 35.23.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 +8 -0
- package/package.json +1 -1
- package/schemas/definitions/shops.js +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [35.23.0](https://github.com/GLS-Spain/gps-common/compare/v35.22.1...v35.23.0) (2026-11-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* añadir reviewStatus a las inactividades de tienda ([d5ceacc](https://github.com/GLS-Spain/gps-common/commit/d5ceaccfbfa9d8e01728450c9fde5bad608bbd78))
|
|
7
|
+
* **INN-1085:** añadir función holidaysInactivity a optionsFeatures ([829755d](https://github.com/GLS-Spain/gps-common/commit/829755d09a60a48bf7942ae660b27d5f35ac0d5a))
|
|
8
|
+
|
|
1
9
|
## [35.22.1](https://github.com/GLS-Spain/gps-common/compare/v35.22.0...v35.22.1) (2026-11-04)
|
|
2
10
|
|
|
3
11
|
|
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,16 @@ 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
|
+
// Funciones activadas aunque la tienda no tenga el campo: Inactividad ya existía para todas las tiendas
|
|
157
|
+
const OPTIONS_FEATURES_ENABLED_BY_DEFAULT = Object.freeze(['holidaysInactivity']);
|
|
154
158
|
|
|
155
159
|
const optionsFeatures = () => ({
|
|
156
160
|
type: 'object',
|
|
157
|
-
properties: Object.fromEntries(
|
|
161
|
+
properties: Object.fromEntries(
|
|
162
|
+
OPTIONS_FEATURES.map(feature => [feature, { type: 'boolean', default: OPTIONS_FEATURES_ENABLED_BY_DEFAULT.includes(feature) }]),
|
|
163
|
+
),
|
|
158
164
|
additionalProperties: false,
|
|
159
165
|
});
|
|
160
166
|
function channelingType() {
|
|
@@ -991,6 +997,7 @@ const getPrintLabelsBulkOperationRequest = () => ({
|
|
|
991
997
|
|
|
992
998
|
module.exports = {
|
|
993
999
|
OPTIONS_FEATURES,
|
|
1000
|
+
OPTIONS_FEATURES_ENABLED_BY_DEFAULT,
|
|
994
1001
|
shop,
|
|
995
1002
|
locker,
|
|
996
1003
|
lockerNxt,
|