@gls_spain/gps-common 35.10.1 → 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,10 +1,38 @@
1
- ## [35.10.1](https://github.com/GLS-Spain/gps-common/compare/v35.10.0...v35.10.1) (2024-12-24)
1
+ ## [35.10.4](https://github.com/GLS-Spain/gps-common/compare/v35.10.3...v35.10.4) (2025-05-09)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * bugfix in shop.courierAccessCode schema ([f85614b](https://github.com/GLS-Spain/gps-common/commit/f85614bdeb45a0f9d4a88d048662a174dba4f8b2))
6
+ * add request schema validation for retrieve expedition ([e5e1ad2](https://github.com/GLS-Spain/gps-common/commit/e5e1ad24d60a8a79fad1e575159545de18abfa06))
7
7
 
8
+ ## [35.10.3](https://github.com/GLS-Spain/gps-common/compare/v35.10.2...v35.10.3) (2025-02-20)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * rollback change for semantic-release ([f312d73](https://github.com/GLS-Spain/gps-common/commit/f312d737864c2c2a655d0c493d40a8f15526358b))
14
+
15
+ ## [35.10.2](https://github.com/GLS-Spain/gps-common/compare/v35.10.1...v35.10.2) (2025-02-19)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * add new optional propertie to scanExpeditionRequest ([748be1d](https://github.com/GLS-Spain/gps-common/commit/748be1d1855f1f1eb52ce254703e72c9b591d776))
21
+
22
+ ## [35.10.2](https://github.com/GLS-Spain/gps-common/compare/v35.10.1...v35.10.2) (2025-02-19)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * add new optional propertie to scanExpeditionRequest ([748be1d](https://github.com/GLS-Spain/gps-common/commit/748be1d1855f1f1eb52ce254703e72c9b591d776))
28
+
29
+ ## [35.10.1](https://github.com/GLS-Spain/gps-common/compare/v35.10.0...v35.10.1) (2024-12-24)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * bugfix in shop.courierAccessCode schema ([f85614b](https://github.com/GLS-Spain/gps-common/commit/f85614bdeb45a0f9d4a88d048662a174dba4f8b2))
35
+
8
36
  # [35.10.0](https://github.com/GLS-Spain/gps-common/compare/v35.9.4...v35.10.0) (2024-12-12)
9
37
 
10
38
 
@@ -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.1",
3
+ "version": "35.10.4",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -676,14 +676,20 @@ const scanExpeditionRequest = () => ({
676
676
  {
677
677
  title: 'barcode',
678
678
  type: 'object',
679
- properties: { barcode: { type: 'string', trim: true } },
679
+ properties: {
680
+ barcode: { type: 'string', trim: true },
681
+ type: { type: 'string', enum: ['delivery', 'pickup']}
682
+ },
680
683
  required: ['barcode'],
681
684
  additionalProperties: false,
682
685
  },
683
686
  {
684
687
  title: 'QR code',
685
688
  type: 'object',
686
- properties: { qrCode: { type: 'string', trim: true } },
689
+ properties: {
690
+ qrCode: { type: 'string', trim: true },
691
+ type: { type: 'string', enum: ['delivery', 'pickup']}
692
+ },
687
693
  required: ['qrCode'],
688
694
  additionalProperties: false,
689
695
  },
@@ -694,6 +700,7 @@ const scanExpeditionRequest = () => ({
694
700
  additionalProperties: false,
695
701
  });
696
702
 
703
+
697
704
  const resultOk = () => ({
698
705
  title: 'ok',
699
706
  type: 'object',
@@ -950,6 +957,15 @@ const expireExpeditionRequest = () => ({
950
957
  additionalProperties: false,
951
958
  });
952
959
 
960
+ const retrieveExpeditionRequest = () => ({
961
+ type: 'object',
962
+ properties: {
963
+ retrieve: objectWithUuid(),
964
+ },
965
+ required: ['retrieve'],
966
+ additionalProperties: false,
967
+ });
968
+
953
969
  const unexpireExpeditionRequest = () => ({
954
970
  type: 'object',
955
971
  properties: {
@@ -1054,6 +1070,7 @@ module.exports = {
1054
1070
  downloadExpeditionLabelRequest,
1055
1071
  downloadExpeditionLabelResponse,
1056
1072
  expireExpeditionRequest,
1073
+ retrieveExpeditionRequest,
1057
1074
  unexpireExpeditionRequest,
1058
1075
  updateExpeditionDerivationRequest,
1059
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,