@gls_spain/gps-common 35.10.3 → 35.10.4

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.10.4](https://github.com/GLS-Spain/gps-common/compare/v35.10.3...v35.10.4) (2025-05-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add request schema validation for retrieve expedition ([e5e1ad2](https://github.com/GLS-Spain/gps-common/commit/e5e1ad24d60a8a79fad1e575159545de18abfa06))
7
+
1
8
  ## [35.10.3](https://github.com/GLS-Spain/gps-common/compare/v35.10.2...v35.10.3) (2025-02-20)
2
9
 
3
10
 
@@ -134,6 +134,7 @@ const {
134
134
  downloadExpeditionLabelRequest,
135
135
  downloadExpeditionLabelResponse,
136
136
  expireExpeditionRequest,
137
+ // retrieveExpeditionRequest.
137
138
  unexpireExpeditionRequest,
138
139
  updateExpeditionDerivationRequest,
139
140
  reminderResponse,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.10.3",
3
+ "version": "35.10.4",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -957,6 +957,15 @@ const expireExpeditionRequest = () => ({
957
957
  additionalProperties: false,
958
958
  });
959
959
 
960
+ const retrieveExpeditionRequest = () => ({
961
+ type: 'object',
962
+ properties: {
963
+ retrieve: objectWithUuid(),
964
+ },
965
+ required: ['retrieve'],
966
+ additionalProperties: false,
967
+ });
968
+
960
969
  const unexpireExpeditionRequest = () => ({
961
970
  type: 'object',
962
971
  properties: {
@@ -1061,6 +1070,7 @@ module.exports = {
1061
1070
  downloadExpeditionLabelRequest,
1062
1071
  downloadExpeditionLabelResponse,
1063
1072
  expireExpeditionRequest,
1073
+ retrieveExpeditionRequest,
1064
1074
  unexpireExpeditionRequest,
1065
1075
  updateExpeditionDerivationRequest,
1066
1076
  reminderResponse,
package/schemas/index.js CHANGED
@@ -86,6 +86,7 @@ const {
86
86
  downloadExpeditionLabelRequest,
87
87
  downloadExpeditionLabelResponse,
88
88
  expireExpeditionRequest,
89
+ retrieveExpeditionRequest,
89
90
  unexpireExpeditionRequest,
90
91
  updateExpeditionDerivationRequest,
91
92
  reminderResponse,
@@ -245,6 +246,7 @@ const expeditionsReceiveAllFromDriverResponse = response(
245
246
  const expeditionsDownloadLabelRequest = request(downloadExpeditionLabelRequest(), 'expeditionsDownloadLabelRequest');
246
247
  const expeditionsDownloadLabelResponse = response(downloadExpeditionLabelResponse(), 'expeditionsDownloadLabelResponse');
247
248
  const expeditionsExpireRequest = request(expireExpeditionRequest(), 'expeditionsExpireRequest');
249
+ const expeditionsRetrieveRequest = request(retrieveExpeditionRequest(), 'expeditionsRetrieveRequest');
248
250
  const expeditionsUnexpireRequest = request(unexpireExpeditionRequest(), 'expeditionsUnexpireRequest');
249
251
  const expeditionsUpdateDerivationRequest = request(updateExpeditionDerivationRequest(), 'expeditionsUpdateDerivationRequest');
250
252
  const expeditionsReminderRequest = request(reminderResponse(), 'expeditionsReminderRequest');
@@ -401,6 +403,7 @@ module.exports = {
401
403
  expeditionsDownloadLabelRequest,
402
404
  expeditionsDownloadLabelResponse,
403
405
  expeditionsExpireRequest,
406
+ expeditionsRetrieveRequest,
404
407
  expeditionsUnexpireRequest,
405
408
  expeditionsUpdateDerivationRequest,
406
409
  expeditionsReminderRequest,