@gls_spain/gps-common 35.21.1 → 35.22.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.22.0](https://github.com/GLS-Spain/gps-common/compare/v35.21.1...v35.22.0) (2026-10-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * campo shopOwner en el usuario de tienda ([bd915f7](https://github.com/GLS-Spain/gps-common/commit/bd915f72d10e633c5eb69a5b8148d32612d00d92))
7
+
1
8
  ## [35.21.1](https://github.com/GLS-Spain/gps-common/compare/v35.21.0...v35.21.1) (2026-10-27)
2
9
 
3
10
 
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.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -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 },