@gls_spain/gps-common 35.0.1 → 35.0.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,17 @@
1
+ ## [35.0.3](https://github.com/GLS-Spain/gps-common/compare/v35.0.2...v35.0.3) (2024-04-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * export sale json-schema ([505ccae](https://github.com/GLS-Spain/gps-common/commit/505ccae808417ff927acb24e5f7f7ef0ab53b475))
7
+
8
+ ## [35.0.2](https://github.com/GLS-Spain/gps-common/compare/v35.0.1...v35.0.2) (2024-04-05)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bugfix ([e47805c](https://github.com/GLS-Spain/gps-common/commit/e47805c02a5f486d85c565256967fcf6d81a9a6b))
14
+
1
15
  ## [35.0.1](https://github.com/GLS-Spain/gps-common/compare/v35.0.0...v35.0.1) (2024-04-05)
2
16
 
3
17
 
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.3",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
package/schemas/index.js CHANGED
@@ -132,6 +132,7 @@ const {
132
132
  downloadSaleLabelResponse,
133
133
  paymentRequest,
134
134
  paymentResponse,
135
+ sale
135
136
  } = require('./definitions/sales');
136
137
 
137
138
  const { findParcelShopsRequest, findParcelShopsResponse } = require('./definitions/findParcelShops');
@@ -287,7 +288,10 @@ const salesPaymentResponse = request(paymentResponse(), 'salesPaymentResponse');
287
288
  const parcelShopsRequest = request(findParcelShopsRequest(), 'parcelShopsRequest');
288
289
  const parcelShopsResponse = request(findParcelShopsResponse(), 'parcelShopsResponse');
289
290
 
290
- const user = addMetadata({ oneOf: [superAdmin(), networkAdmin(), shopUser()] }, 'user');
291
+ const superAdminSchema = addMetadata(superAdmin(), 'superAdmin');
292
+ const networkAdminSchema = addMetadata(networkAdmin(), 'networkAdmin');
293
+ const shopUserSchema = addMetadata(shopUser(), 'shopUser');
294
+ const saleSchema = addMetadata(sale(), 'sale');
291
295
 
292
296
  module.exports = {
293
297
  errorResponse,
@@ -430,5 +434,9 @@ module.exports = {
430
434
  parcelShopsRequest,
431
435
  parcelShopsResponse,
432
436
 
433
- user
437
+ // los exportamos para usarlos en el proyecto TS
438
+ superAdmin: superAdminSchema,
439
+ networkAdmin: networkAdminSchema,
440
+ shopUser: shopUserSchema,
441
+ sale: saleSchema,
434
442
  };