@gls_spain/gps-common 35.21.1 → 35.22.1

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,17 @@
1
+ ## [35.22.1](https://github.com/GLS-Spain/gps-common/compare/v35.22.0...v35.22.1) (2026-11-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * direccion_locker, codpostal_locker y ciudad_locker ya no se envían desde Salesforce ([deae86e](https://github.com/GLS-Spain/gps-common/commit/deae86e39d7b2affc0f1662f2427946f990bc2b0))
7
+
8
+ # [35.22.0](https://github.com/GLS-Spain/gps-common/compare/v35.21.1...v35.22.0) (2026-10-27)
9
+
10
+
11
+ ### Features
12
+
13
+ * campo shopOwner en el usuario de tienda ([bd915f7](https://github.com/GLS-Spain/gps-common/commit/bd915f72d10e633c5eb69a5b8148d32612d00d92))
14
+
1
15
  ## [35.21.1](https://github.com/GLS-Spain/gps-common/compare/v35.21.0...v35.21.1) (2026-10-27)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.21.1",
3
+ "version": "35.22.1",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -670,10 +670,7 @@ const locker = () => ({
670
670
  additionalProperties: false,
671
671
  },
672
672
 
673
- // ── Campos _locker — fuente de verdad para coordenadas y dirección ───────
674
- direccion_locker: { type: 'string', trim: true, maxLength: 255 }, // varchar(255)
675
- codpostal_locker: { type: 'string', trim: true, maxLength: 15 }, // varchar(15)
676
- ciudad_locker: { type: 'string', trim: true, maxLength: 100 }, // varchar(100)
673
+ // ── Campos _locker — fuente de verdad para coordenadas (la dirección va en address) ───────
677
674
  longitud_locker: {
678
675
  type: 'number',
679
676
  minimum: -180,
@@ -805,9 +802,6 @@ const createLockerRequest = () =>
805
802
  'eco',
806
803
  'fiscal',
807
804
  'nxt',
808
- 'direccion_locker',
809
- 'codpostal_locker',
810
- 'ciudad_locker',
811
805
  'longitud_locker',
812
806
  'latitud_locker',
813
807
  'capacity_locker',
@@ -822,9 +816,6 @@ const createLockerRequest = () =>
822
816
  'address',
823
817
  'openingSchedule',
824
818
  'timezone',
825
- 'direccion_locker',
826
- 'codpostal_locker',
827
- 'ciudad_locker',
828
819
  'longitud_locker',
829
820
  'latitud_locker',
830
821
  ],
@@ -876,9 +867,6 @@ const updateLockerRequest = () =>
876
867
  'eco',
877
868
  'fiscal',
878
869
  'nxt',
879
- 'direccion_locker',
880
- 'codpostal_locker',
881
- 'ciudad_locker',
882
870
  'longitud_locker',
883
871
  'latitud_locker',
884
872
  'capacity_locker',
@@ -82,6 +82,7 @@ const shopUser = () =>
82
82
  },
83
83
  verifiedAuth0Email: { type: 'boolean' },
84
84
  activateRoleMFA: { type: 'boolean' },
85
+ shopOwner: { type: 'boolean', description: 'owner of the shop: only owners can see the billing of the shop' },
85
86
  },
86
87
  required: ['network', 'shop'],
87
88
  });
@@ -214,7 +215,7 @@ const createShopUserRequest = () =>
214
215
  {
215
216
  type: 'object',
216
217
  properties: {
217
- ...pickProperties(shopUser(), ['_id', 'createdAt', 'username', 'loginEnabled', 'name', 'emails', 'phones', 'nif', 'address']),
218
+ ...pickProperties(shopUser(), ['_id', 'createdAt', 'username', 'loginEnabled', 'shopOwner', 'name', 'emails', 'phones', 'nif', 'address']),
218
219
  password: { type: 'string', trim: true },
219
220
  passwordExpired: { type: 'string', trim: true },
220
221
  auth0Id: { type: 'string', trim: true },
@@ -262,7 +263,7 @@ const updateShopUserRequest = () =>
262
263
  {
263
264
  type: 'object',
264
265
  properties: {
265
- ...pickProperties(shopUser(), ['loginEnabled', 'name', 'emails', 'phones'], ['nif', 'address']),
266
+ ...pickProperties(shopUser(), ['loginEnabled', 'shopOwner', 'name', 'emails', 'phones'], ['nif', 'address']),
266
267
  password: { type: 'string', trim: true },
267
268
  passwordExpired: { type: 'string', trim: true },
268
269
  auth0Id: { type: 'string', trim: true },