@gls_spain/gps-common 35.0.2 → 35.1.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,29 +1,43 @@
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
-
8
- ## [35.0.1](https://github.com/GLS-Spain/gps-common/compare/v35.0.0...v35.0.1) (2024-04-05)
9
-
10
-
11
- ### Bug Fixes
12
-
13
- * export user json-schema ([4f93351](https://github.com/GLS-Spain/gps-common/commit/4f93351a8bcab2ee87190f32f0e1967defa384eb))
14
-
15
- # [35.0.0](https://github.com/GLS-Spain/gps-common/compare/v34.31.8...v35.0.0) (2024-04-04)
1
+ # [35.1.0](https://github.com/GLS-Spain/gps-common/compare/v35.0.3...v35.1.0) (2024-05-16)
16
2
 
17
3
 
18
4
  ### Features
19
5
 
20
- * nodejs 20 support ([782917a](https://github.com/GLS-Spain/gps-common/commit/782917a6cbfee5c87da008b1bfa9bb48c4bf1c8a))
21
-
22
-
23
- ### BREAKING CHANGES
24
-
25
- * nodejs 20 support
6
+ * add new field QRconfirmed to depositedFromRequest validate ([1df6bfb](https://github.com/GLS-Spain/gps-common/commit/1df6bfbfb07da8874c85b72fd1a57a3570815f37))
26
7
 
8
+ ## [35.0.3](https://github.com/GLS-Spain/gps-common/compare/v35.0.2...v35.0.3) (2024-04-08)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * export sale json-schema ([505ccae](https://github.com/GLS-Spain/gps-common/commit/505ccae808417ff927acb24e5f7f7ef0ab53b475))
14
+
15
+ ## [35.0.2](https://github.com/GLS-Spain/gps-common/compare/v35.0.1...v35.0.2) (2024-04-05)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * bugfix ([e47805c](https://github.com/GLS-Spain/gps-common/commit/e47805c02a5f486d85c565256967fcf6d81a9a6b))
21
+
22
+ ## [35.0.1](https://github.com/GLS-Spain/gps-common/compare/v35.0.0...v35.0.1) (2024-04-05)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * export user json-schema ([4f93351](https://github.com/GLS-Spain/gps-common/commit/4f93351a8bcab2ee87190f32f0e1967defa384eb))
28
+
29
+ # [35.0.0](https://github.com/GLS-Spain/gps-common/compare/v34.31.8...v35.0.0) (2024-04-04)
30
+
31
+
32
+ ### Features
33
+
34
+ * nodejs 20 support ([782917a](https://github.com/GLS-Spain/gps-common/commit/782917a6cbfee5c87da008b1bfa9bb48c4bf1c8a))
35
+
36
+
37
+ ### BREAKING CHANGES
38
+
39
+ * nodejs 20 support
40
+
27
41
  ## [34.31.8](https://github.com/GLS-Spain/gps-common/compare/v34.31.7...v34.31.8) (2023-11-22)
28
42
 
29
43
 
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.1.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -780,7 +780,7 @@ const processExpeditionsDepositedFromRequest = () => ({
780
780
  expeditions: omit(findByIds(), 'title'),
781
781
  driver: driver(),
782
782
  },
783
- required: ['expeditions', 'driver'],
783
+ required: ['expeditions', 'driver', 'QRconfirmed'],
784
784
  additionalProperties: false,
785
785
  });
786
786
 
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
  };