@gls_spain/gps-common 35.22.0 → 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 +15 -0
- package/package.json +1 -1
- package/schemas/definitions/shops.js +10 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
|
|
9
|
+
## [35.22.1](https://github.com/GLS-Spain/gps-common/compare/v35.22.0...v35.22.1) (2026-11-04)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* direccion_locker, codpostal_locker y ciudad_locker ya no se envían desde Salesforce ([deae86e](https://github.com/GLS-Spain/gps-common/commit/deae86e39d7b2affc0f1662f2427946f990bc2b0))
|
|
15
|
+
|
|
1
16
|
# [35.22.0](https://github.com/GLS-Spain/gps-common/compare/v35.21.1...v35.22.0) (2026-10-27)
|
|
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,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() {
|
|
@@ -670,10 +676,7 @@ const locker = () => ({
|
|
|
670
676
|
additionalProperties: false,
|
|
671
677
|
},
|
|
672
678
|
|
|
673
|
-
// ── Campos _locker — fuente de verdad para coordenadas
|
|
674
|
-
direccion_locker: { type: 'string', trim: true, maxLength: 255 }, // varchar(255)
|
|
675
|
-
codpostal_locker: { type: 'string', trim: true, maxLength: 15 }, // varchar(15)
|
|
676
|
-
ciudad_locker: { type: 'string', trim: true, maxLength: 100 }, // varchar(100)
|
|
679
|
+
// ── Campos _locker — fuente de verdad para coordenadas (la dirección va en address) ───────
|
|
677
680
|
longitud_locker: {
|
|
678
681
|
type: 'number',
|
|
679
682
|
minimum: -180,
|
|
@@ -805,9 +808,6 @@ const createLockerRequest = () =>
|
|
|
805
808
|
'eco',
|
|
806
809
|
'fiscal',
|
|
807
810
|
'nxt',
|
|
808
|
-
'direccion_locker',
|
|
809
|
-
'codpostal_locker',
|
|
810
|
-
'ciudad_locker',
|
|
811
811
|
'longitud_locker',
|
|
812
812
|
'latitud_locker',
|
|
813
813
|
'capacity_locker',
|
|
@@ -822,9 +822,6 @@ const createLockerRequest = () =>
|
|
|
822
822
|
'address',
|
|
823
823
|
'openingSchedule',
|
|
824
824
|
'timezone',
|
|
825
|
-
'direccion_locker',
|
|
826
|
-
'codpostal_locker',
|
|
827
|
-
'ciudad_locker',
|
|
828
825
|
'longitud_locker',
|
|
829
826
|
'latitud_locker',
|
|
830
827
|
],
|
|
@@ -876,9 +873,6 @@ const updateLockerRequest = () =>
|
|
|
876
873
|
'eco',
|
|
877
874
|
'fiscal',
|
|
878
875
|
'nxt',
|
|
879
|
-
'direccion_locker',
|
|
880
|
-
'codpostal_locker',
|
|
881
|
-
'ciudad_locker',
|
|
882
876
|
'longitud_locker',
|
|
883
877
|
'latitud_locker',
|
|
884
878
|
'capacity_locker',
|
|
@@ -1003,6 +997,7 @@ const getPrintLabelsBulkOperationRequest = () => ({
|
|
|
1003
997
|
|
|
1004
998
|
module.exports = {
|
|
1005
999
|
OPTIONS_FEATURES,
|
|
1000
|
+
OPTIONS_FEATURES_ENABLED_BY_DEFAULT,
|
|
1006
1001
|
shop,
|
|
1007
1002
|
locker,
|
|
1008
1003
|
lockerNxt,
|