@gls_spain/gps-common 35.19.1 → 35.19.3

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,18 @@
1
+ ## [35.19.3](https://github.com/GLS-Spain/gps-common/compare/v35.19.2...v35.19.3) (2026-10-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * quit required createLocker and fix property name in address schema ([158ed74](https://github.com/GLS-Spain/gps-common/commit/158ed74e11cc704bc87858d44cc979d54de385ff))
7
+
8
+ ## [35.19.2](https://github.com/GLS-Spain/gps-common/compare/v35.19.1...v35.19.2) (2026-10-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add streetType, streetName, streetNumber, notes, manuallyVerified y addressValidationDate ([99f9ef0](https://github.com/GLS-Spain/gps-common/commit/99f9ef012d6affb9556a22a1eab99482c7ba3442))
14
+ * maxlength new properties in address ([f954b05](https://github.com/GLS-Spain/gps-common/commit/f954b05bafaf379a82cb4dfb9c05a575cd70511c))
15
+
1
16
  ## [35.19.1](https://github.com/GLS-Spain/gps-common/compare/v35.19.0...v35.19.1) (2026-09-30)
2
17
 
3
18
 
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.3",
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
+ addressDetails: { 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
+ addressDetails: { 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
@@ -672,7 +672,7 @@ const lockerNxt = () => ({
672
672
  activationDate: { type: 'string', format: 'date-time' },
673
673
  lockerId: { type: 'string', maxLength: 36 }, // UUID = 36 chars
674
674
  },
675
- required: ['lockerName', 'lockerId'],
675
+ required: ['lockerName'],
676
676
  additionalProperties: false,
677
677
  },
678
678
  },