@gls_spain/gps-common 35.18.2 → 35.19.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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [35.19.0](https://github.com/GLS-Spain/gps-common/compare/v35.18.2...v35.19.0) (2026-09-17)
2
+
3
+
4
+ ### Features
5
+
6
+ * añadir nuevas propiedades opcionales en address ([9b72b82](https://github.com/GLS-Spain/gps-common/commit/9b72b82086ffba2f296392a4ba2c44669b3afb58))
7
+
1
8
  ## [35.18.2](https://github.com/GLS-Spain/gps-common/compare/v35.18.1...v35.18.2) (2026-08-13)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.18.2",
3
+ "version": "35.19.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -294,7 +294,14 @@ const country = () => ({
294
294
 
295
295
  const address = () =>
296
296
  mergeSchemas(genericAddress(), {
297
- properties: { country: country() },
297
+ properties: {
298
+ country: country(),
299
+ // Nuevas propiedades opcionales para desglosar la dirección (lo pide El Corte Inglés) task "INN-1333"
300
+ streetType: { type: 'string', trim: true },
301
+ streetName: { type: 'string', trim: true },
302
+ streetNumber: { type: 'string', trim: true },
303
+ manuallyVerified: { type: 'boolean' },
304
+ },
298
305
  });
299
306
 
300
307
  const addressWithRequiredLocation = () => mergeSchemas(address(), { required: ['location'] });
@@ -488,6 +495,12 @@ const lockerAddress = () => ({
488
495
  postalCode: { type: 'string', trim: true, maxLength: 15 }, // cp varchar(15)
489
496
  locality: { type: 'string', trim: true, maxLength: 100 }, // Poblacion varchar(100)
490
497
  country: { type: 'string', trim: true, maxLength: 3 }, // ISO 3166-1 alpha-2/3
498
+ // campos opcionales para desglosar la dirección (además de street)
499
+ streetType: { type: 'string', trim: true, maxLength: 50 },
500
+ streetName: { type: 'string', trim: true, maxLength: 255 },
501
+ streetNumber: { type: 'string', trim: true, maxLength: 20 },
502
+ notes: { type: 'string', trim: true, maxLength: 500 }, // observaciones
503
+ manuallyVerified: { type: 'boolean' },
491
504
  // campo específico de locker
492
505
  access_descript_locker: { type: 'string', trim: true, maxLength: 500 },
493
506
  location: {