@gls_spain/gps-common 35.0.1 → 35.0.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,10 @@
1
+ ## [35.0.2](https://github.com/GLS-Spain/gps-common/compare/v35.0.1...v35.0.2) (2024-04-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bugfix ([e47805c](https://github.com/GLS-Spain/gps-common/commit/e47805c02a5f486d85c565256967fcf6d81a9a6b))
7
+
1
8
  ## [35.0.1](https://github.com/GLS-Spain/gps-common/compare/v35.0.0...v35.0.1) (2024-04-05)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.0.1",
3
+ "version": "35.0.2",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
package/schemas/index.js CHANGED
@@ -287,9 +287,15 @@ const salesPaymentResponse = request(paymentResponse(), 'salesPaymentResponse');
287
287
  const parcelShopsRequest = request(findParcelShopsRequest(), 'parcelShopsRequest');
288
288
  const parcelShopsResponse = request(findParcelShopsResponse(), 'parcelShopsResponse');
289
289
 
290
- const user = addMetadata({ oneOf: [superAdmin(), networkAdmin(), shopUser()] }, 'user');
290
+ const superAdminUser = addMetadata(superAdmin(), 'superAdmin');
291
+ const networkAdminUser = addMetadata(networkAdmin(), 'networkAdmin');
292
+ const shopUserUser = addMetadata(shopUser(), 'shopUser');
291
293
 
292
294
  module.exports = {
295
+ superAdmin: superAdminUser,
296
+ networkAdmin: networkAdminUser,
297
+ shopUser: shopUserUser,
298
+
293
299
  errorResponse,
294
300
 
295
301
  configDefaultsGetResponse,
@@ -429,6 +435,4 @@ module.exports = {
429
435
 
430
436
  parcelShopsRequest,
431
437
  parcelShopsResponse,
432
-
433
- user
434
438
  };