@gls_spain/gps-common 35.19.0 → 35.19.2

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,19 @@
1
+ ## [35.19.2](https://github.com/GLS-Spain/gps-common/compare/v35.19.1...v35.19.2) (2026-10-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add streetType, streetName, streetNumber, notes, manuallyVerified y addressValidationDate ([99f9ef0](https://github.com/GLS-Spain/gps-common/commit/99f9ef012d6affb9556a22a1eab99482c7ba3442))
7
+ * maxlength new properties in address ([f954b05](https://github.com/GLS-Spain/gps-common/commit/f954b05bafaf379a82cb4dfb9c05a575cd70511c))
8
+
9
+ ## [35.19.1](https://github.com/GLS-Spain/gps-common/compare/v35.19.0...v35.19.1) (2026-09-30)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * add validation address date ([043ef82](https://github.com/GLS-Spain/gps-common/commit/043ef8250466fb7255c8ecb2149b7b336e67765b))
15
+ * delete comments ([6b06cb4](https://github.com/GLS-Spain/gps-common/commit/6b06cb4b9227f7a738b0a8f8b5535417351bf7ce))
16
+
1
17
  # [35.19.0](https://github.com/GLS-Spain/gps-common/compare/v35.18.2...v35.19.0) (2026-09-17)
2
18
 
3
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.19.0",
3
+ "version": "35.19.2",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -294,18 +294,22 @@ const country = () => ({
294
294
 
295
295
  const address = () =>
296
296
  mergeSchemas(genericAddress(), {
297
+ properties: { country: country() },
298
+ });
299
+
300
+ const addressWithRequiredLocation = () =>
301
+ mergeSchemas(address(), {
302
+ required: ['location'],
297
303
  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 },
304
+ streetType: { type: 'string', trim: true, maxLength: 50 },
305
+ streetName: { type: 'string', trim: true, maxLength: 200 },
306
+ streetNumber: { type: 'string', trim: true, maxLength: 50 }, // alfanumérico: '12', '12B', 'S/N'
307
+ notes: { type: 'string', trim: true, maxLength: 200 },
303
308
  manuallyVerified: { type: 'boolean' },
309
+ addressValidationDate: { type: 'string', trim: true },
304
310
  },
305
311
  });
306
312
 
307
- const addressWithRequiredLocation = () => mergeSchemas(address(), { required: ['location'] });
308
-
309
313
  const findAll = () => ({
310
314
  title: 'find all',
311
315
  type: 'object',
@@ -495,12 +499,13 @@ const lockerAddress = () => ({
495
499
  postalCode: { type: 'string', trim: true, maxLength: 15 }, // cp varchar(15)
496
500
  locality: { type: 'string', trim: true, maxLength: 100 }, // Poblacion varchar(100)
497
501
  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)
502
+ // campos opcionales para desglosar y validar la dirección (además de street), igual que en addressWithRequiredLocation
499
503
  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
504
+ streetName: { type: 'string', trim: true, maxLength: 200 },
505
+ streetNumber: { type: 'string', trim: true, maxLength: 50 }, // alfanumérico: '12', '12B', 'S/N'
506
+ notes: { type: 'string', trim: true, maxLength: 200 }, // observaciones
503
507
  manuallyVerified: { type: 'boolean' },
508
+ addressValidationDate: { type: 'string', trim: true, maxLength: 30 },
504
509
  // campo específico de locker
505
510
  access_descript_locker: { type: 'string', trim: true, maxLength: 500 },
506
511
  location: {