@gls_spain/gps-common 35.16.1 → 35.17.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 +28 -4
- package/package.json +1 -1
- package/schemas/definitions/shops.js +10 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
# [35.17.0](https://github.com/GLS-Spain/gps-common/compare/v35.16.0...v35.17.0) (2026-05-04)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
+
* ajustar body de salesforce ([1f5072c](https://github.com/GLS-Spain/gps-common/commit/1f5072cd2abeefbeaa4ab4909df75184c9465959))
|
|
6
7
|
* quitar validacion de pod para entrega DTT ([688af4f](https://github.com/GLS-Spain/gps-common/commit/688af4fbc68139bf61012c086a1d2ad52dc6116e))
|
|
7
8
|
* quitar validacion de pod en customerWithPod para entrega DTT ([6ae1db1](https://github.com/GLS-Spain/gps-common/commit/6ae1db1ec0767bed6b0976b8ad44f99678ea9c36))
|
|
8
9
|
|
|
9
|
-
# [35.16.0](https://github.com/GLS-Spain/gps-common/compare/v35.15.10...v35.16.0) (2026-04-10)
|
|
10
|
-
|
|
11
10
|
|
|
12
11
|
### Features
|
|
13
12
|
|
|
14
|
-
*
|
|
13
|
+
* upgrade version common fix bug version ([b23a3c7](https://github.com/GLS-Spain/gps-common/commit/b23a3c7abeff91f47d9aec73006c7c7456332e34))
|
|
14
|
+
|
|
15
|
+
## [35.16.1](https://github.com/GLS-Spain/gps-common/compare/v35.16.0...v35.16.1) (2026-05-04)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* ajustar body de salesforce ([1f5072c](https://github.com/GLS-Spain/gps-common/commit/1f5072cd2abeefbeaa4ab4909df75184c9465959))
|
|
21
|
+
* quitar validacion de pod para entrega DTT ([688af4f](https://github.com/GLS-Spain/gps-common/commit/688af4fbc68139bf61012c086a1d2ad52dc6116e))
|
|
22
|
+
* quitar validacion de pod en customerWithPod para entrega DTT ([6ae1db1](https://github.com/GLS-Spain/gps-common/commit/6ae1db1ec0767bed6b0976b8ad44f99678ea9c36))
|
|
23
|
+
|
|
24
|
+
## [35.16.1](https://github.com/GLS-Spain/gps-common/compare/v35.16.0...v35.16.1) (2026-05-04)
|
|
25
|
+
|
|
15
26
|
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* ajustar body de salesforce ([1f5072c](https://github.com/GLS-Spain/gps-common/commit/1f5072cd2abeefbeaa4ab4909df75184c9465959))
|
|
30
|
+
* quitar validacion de pod para entrega DTT ([688af4f](https://github.com/GLS-Spain/gps-common/commit/688af4fbc68139bf61012c086a1d2ad52dc6116e))
|
|
31
|
+
* quitar validacion de pod en customerWithPod para entrega DTT ([6ae1db1](https://github.com/GLS-Spain/gps-common/commit/6ae1db1ec0767bed6b0976b8ad44f99678ea9c36))
|
|
32
|
+
|
|
33
|
+
# [35.16.0](https://github.com/GLS-Spain/gps-common/compare/v35.15.10...v35.16.0) (2026-04-10)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* add optional per-service rates (delivery, pickup, s2s) to derivationRate ([1e8af9c](https://github.com/GLS-Spain/gps-common/commit/1e8af9c1ec10f21b79a30513b9d15de3cc0d8910))
|
|
39
|
+
|
|
16
40
|
## [35.15.10](https://github.com/GLS-Spain/gps-common/compare/v35.15.9...v35.15.10) (2026-03-13)
|
|
17
41
|
|
|
18
42
|
|
package/package.json
CHANGED
|
@@ -771,7 +771,6 @@ const createLockerRequest = () =>
|
|
|
771
771
|
locality: { type: 'string', trim: true, maxLength: 100 },
|
|
772
772
|
// ✅ código país ISO 3166-1 alpha-2/3
|
|
773
773
|
country: { type: 'string', trim: true, maxLength: 3 },
|
|
774
|
-
access_descript_locker: { type: 'string', trim: true, maxLength: 500 },
|
|
775
774
|
location: {
|
|
776
775
|
type: 'object',
|
|
777
776
|
properties: {
|
|
@@ -821,7 +820,6 @@ const createLockerRequest = () =>
|
|
|
821
820
|
door: { type: 'string', trim: true, maxLength: 20 },
|
|
822
821
|
postalCode: { type: 'string', trim: true, maxLength: 15 },
|
|
823
822
|
locality: { type: 'string', trim: true, maxLength: 100 },
|
|
824
|
-
// ✅ añadido country que faltaba y causaba el 400
|
|
825
823
|
country: { type: 'string', trim: true, maxLength: 3 },
|
|
826
824
|
},
|
|
827
825
|
required: ['street', 'postalCode', 'locality', 'country'],
|
|
@@ -833,7 +831,7 @@ const createLockerRequest = () =>
|
|
|
833
831
|
activity: { type: 'string', trim: true, maxLength: 50 },
|
|
834
832
|
retention: { type: 'integer' },
|
|
835
833
|
},
|
|
836
|
-
required: ['
|
|
834
|
+
required: ['contacts', 'address', 'dueDays'],
|
|
837
835
|
additionalProperties: false,
|
|
838
836
|
},
|
|
839
837
|
|
|
@@ -958,14 +956,6 @@ const createLockerRequest = () =>
|
|
|
958
956
|
});
|
|
959
957
|
|
|
960
958
|
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
959
|
const createLockerResponse = () => createResponse(locker());
|
|
970
960
|
|
|
971
961
|
const updateLockerRequest = () =>
|
|
@@ -1025,7 +1015,11 @@ const updateLockerRequest = () =>
|
|
|
1025
1015
|
required: ['street', 'postalCode', 'locality', 'country', 'location'],
|
|
1026
1016
|
additionalProperties: false,
|
|
1027
1017
|
}),
|
|
1028
|
-
|
|
1018
|
+
capabilities: {
|
|
1019
|
+
type: 'array',
|
|
1020
|
+
items: { type: 'string', enum: ['deliver', 'pickup', 'sell', 'sellplus'] },
|
|
1021
|
+
uniqueItems: true,
|
|
1022
|
+
},
|
|
1029
1023
|
openingSchedule: schemaOrNull(shop().properties.openingSchedule),
|
|
1030
1024
|
timezone: schemaOrNull(shop().properties.timezone),
|
|
1031
1025
|
activity: schemaOrNull(shop().properties.activity),
|
|
@@ -1048,7 +1042,6 @@ const updateLockerRequest = () =>
|
|
|
1048
1042
|
door: { type: 'string', trim: true, maxLength: 20 },
|
|
1049
1043
|
postalCode: { type: 'string', trim: true, maxLength: 15 },
|
|
1050
1044
|
locality: { type: 'string', trim: true, maxLength: 100 },
|
|
1051
|
-
// ✅ country declarado explícitamente — evita additionalProperties 400
|
|
1052
1045
|
country: { type: 'string', trim: true, maxLength: 3 },
|
|
1053
1046
|
},
|
|
1054
1047
|
required: ['street', 'postalCode', 'locality', 'country'],
|
|
@@ -1059,7 +1052,8 @@ const updateLockerRequest = () =>
|
|
|
1059
1052
|
activity: { type: 'string', trim: true, maxLength: 50 },
|
|
1060
1053
|
retention: { type: 'integer' },
|
|
1061
1054
|
},
|
|
1062
|
-
|
|
1055
|
+
// iban y nif fuera de required
|
|
1056
|
+
required: ['contacts', 'address', 'dueDays'],
|
|
1063
1057
|
additionalProperties: false,
|
|
1064
1058
|
}),
|
|
1065
1059
|
|
|
@@ -1150,10 +1144,10 @@ const updateLockerRequest = () =>
|
|
|
1150
1144
|
// ✅ Nombre varchar(100) — ps_puntos Apolo
|
|
1151
1145
|
lockerName: { type: 'string', trim: true, maxLength: 100 },
|
|
1152
1146
|
activationDate: { type: 'string', format: 'date-time' },
|
|
1153
|
-
//
|
|
1147
|
+
// [6] lockerId fuera de required — el body real de updateLocker no lo envía
|
|
1154
1148
|
lockerId: { type: 'string', maxLength: 36 },
|
|
1155
1149
|
},
|
|
1156
|
-
required: ['lockerName'
|
|
1150
|
+
required: ['lockerName'],
|
|
1157
1151
|
additionalProperties: false,
|
|
1158
1152
|
},
|
|
1159
1153
|
|
|
@@ -1171,7 +1165,6 @@ const updateLockerRequest = () =>
|
|
|
1171
1165
|
const updateLockerResponse = () => updateResponse(locker());
|
|
1172
1166
|
|
|
1173
1167
|
|
|
1174
|
-
|
|
1175
1168
|
module.exports = {
|
|
1176
1169
|
shop,
|
|
1177
1170
|
locker,
|