@gls_spain/gps-common 35.19.1 → 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,11 @@
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
+
1
9
  ## [35.19.1](https://github.com/GLS-Spain/gps-common/compare/v35.19.0...v35.19.1) (2026-09-30)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.19.1",
3
+ "version": "35.19.2",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -301,9 +301,10 @@ const addressWithRequiredLocation = () =>
301
301
  mergeSchemas(address(), {
302
302
  required: ['location'],
303
303
  properties: {
304
- streetType: { type: 'string', trim: true },
305
- streetName: { type: 'string', trim: true },
306
- 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 },
307
308
  manuallyVerified: { type: 'boolean' },
308
309
  addressValidationDate: { type: 'string', trim: true },
309
310
  },
@@ -498,11 +499,11 @@ const lockerAddress = () => ({
498
499
  postalCode: { type: 'string', trim: true, maxLength: 15 }, // cp varchar(15)
499
500
  locality: { type: 'string', trim: true, maxLength: 100 }, // Poblacion varchar(100)
500
501
  country: { type: 'string', trim: true, maxLength: 3 }, // ISO 3166-1 alpha-2/3
501
- // 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
502
503
  streetType: { type: 'string', trim: true, maxLength: 50 },
503
- streetName: { type: 'string', trim: true, maxLength: 255 },
504
- streetNumber: { type: 'string', trim: true, maxLength: 20 },
505
- 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
506
507
  manuallyVerified: { type: 'boolean' },
507
508
  addressValidationDate: { type: 'string', trim: true, maxLength: 30 },
508
509
  // campo específico de locker