@gls_spain/gps-common 35.0.2 → 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,10 @@
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
+
1
8
  ## [35.0.2](https://github.com/GLS-Spain/gps-common/compare/v35.0.1...v35.0.2) (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.2",
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,15 +288,12 @@ const salesPaymentResponse = request(paymentResponse(), 'salesPaymentResponse');
287
288
  const parcelShopsRequest = request(findParcelShopsRequest(), 'parcelShopsRequest');
288
289
  const parcelShopsResponse = request(findParcelShopsResponse(), 'parcelShopsResponse');
289
290
 
290
- const superAdminUser = addMetadata(superAdmin(), 'superAdmin');
291
- const networkAdminUser = addMetadata(networkAdmin(), 'networkAdmin');
292
- const shopUserUser = addMetadata(shopUser(), 'shopUser');
291
+ const superAdminSchema = addMetadata(superAdmin(), 'superAdmin');
292
+ const networkAdminSchema = addMetadata(networkAdmin(), 'networkAdmin');
293
+ const shopUserSchema = addMetadata(shopUser(), 'shopUser');
294
+ const saleSchema = addMetadata(sale(), 'sale');
293
295
 
294
296
  module.exports = {
295
- superAdmin: superAdminUser,
296
- networkAdmin: networkAdminUser,
297
- shopUser: shopUserUser,
298
-
299
297
  errorResponse,
300
298
 
301
299
  configDefaultsGetResponse,
@@ -435,4 +433,10 @@ module.exports = {
435
433
 
436
434
  parcelShopsRequest,
437
435
  parcelShopsResponse,
436
+
437
+ // los exportamos para usarlos en el proyecto TS
438
+ superAdmin: superAdminSchema,
439
+ networkAdmin: networkAdminSchema,
440
+ shopUser: shopUserSchema,
441
+ sale: saleSchema,
438
442
  };