@gls_spain/gps-common 35.6.3 → 35.8.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,24 +1,38 @@
1
- ## [35.6.3](https://github.com/GLS-Spain/gps-common/compare/v35.6.2...v35.6.3) (2024-10-04)
1
+ # [35.8.0](https://github.com/GLS-Spain/gps-common/compare/v35.7.0...v35.8.0) (2024-10-15)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * delete constant shop return for required ([3a110bd](https://github.com/GLS-Spain/gps-common/commit/3a110bdef65dce2e71e88e859a2275fb753cbc54))
7
-
8
- ## [35.6.2](https://github.com/GLS-Spain/gps-common/compare/v35.6.1...v35.6.2) (2024-09-27)
9
-
10
-
11
- ### Bug Fixes
12
-
13
- * add validation for NXT EP ([b544274](https://github.com/GLS-Spain/gps-common/commit/b544274117d75fcd75a97a253938cce4092414e4))
14
-
15
- ## [35.6.1](https://github.com/GLS-Spain/gps-common/compare/v35.6.0...v35.6.1) (2024-09-26)
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * add maximun 32767 to clientCode shop form ([39e9d76](https://github.com/GLS-Spain/gps-common/commit/39e9d767b8ad39ee8c3dfbd92237f828a93e555b))
6
+ * add reverserLogistic field ([0fd6ba9](https://github.com/GLS-Spain/gps-common/commit/0fd6ba93a7c6b8808f46a1db7de2914d51a7b6b8))
21
7
 
8
+ # [35.7.0](https://github.com/GLS-Spain/gps-common/compare/v35.6.3...v35.7.0) (2024-10-09)
9
+
10
+
11
+ ### Features
12
+
13
+ * export expedition schema ([d2ae7c0](https://github.com/GLS-Spain/gps-common/commit/d2ae7c026de3f76b263f2c47e9feb74b8af6d517))
14
+
15
+ ## [35.6.3](https://github.com/GLS-Spain/gps-common/compare/v35.6.2...v35.6.3) (2024-10-04)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * delete constant shop return for required ([3a110bd](https://github.com/GLS-Spain/gps-common/commit/3a110bdef65dce2e71e88e859a2275fb753cbc54))
21
+
22
+ ## [35.6.2](https://github.com/GLS-Spain/gps-common/compare/v35.6.1...v35.6.2) (2024-09-27)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * add validation for NXT EP ([b544274](https://github.com/GLS-Spain/gps-common/commit/b544274117d75fcd75a97a253938cce4092414e4))
28
+
29
+ ## [35.6.1](https://github.com/GLS-Spain/gps-common/compare/v35.6.0...v35.6.1) (2024-09-26)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * add maximun 32767 to clientCode shop form ([39e9d76](https://github.com/GLS-Spain/gps-common/commit/39e9d767b8ad39ee8c3dfbd92237f828a93e555b))
35
+
22
36
  # [35.6.0](https://github.com/GLS-Spain/gps-common/compare/v35.5.0...v35.6.0) (2024-09-17)
23
37
 
24
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.6.3",
3
+ "version": "35.8.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -262,6 +262,7 @@ const shop = () => ({
262
262
  gold: { type: 'boolean', default: false },
263
263
  radical: { type: 'boolean', default: false },
264
264
  operations: { type: 'string', trim: true },
265
+ reverseLogistic: { type: 'boolean', default: false },
265
266
  // squareCode: { type: 'string' },
266
267
  // clientCode: { type: 'string' },
267
268
  // 2023-01-12 JL están definidos como string
@@ -340,6 +341,7 @@ const createShopRequest = () =>
340
341
  'gold',
341
342
  'radical',
342
343
  'operations',
344
+ 'reverseLogistic',
343
345
  'squareCode',
344
346
  'clientCode',
345
347
  'channelingAgencyCode',
@@ -462,6 +464,7 @@ const updateShopRequest = () =>
462
464
  'gold',
463
465
  'radical',
464
466
  'operations',
467
+ 'reverseLogistic',
465
468
  'squareCode',
466
469
  'clientCode',
467
470
  'channelingAgencyCode'
@@ -515,6 +518,7 @@ const upsertShopRequest = () => ({
515
518
  'gold',
516
519
  'radical',
517
520
  'operations',
521
+ 'reverseLogistic',
518
522
  'squareCode',
519
523
  'clientCode',
520
524
  'channelingAgencyCode',
package/schemas/index.js CHANGED
@@ -92,6 +92,7 @@ const {
92
92
  // notNotificationResponse,
93
93
  processExpeditionsDepositedFromRequest,
94
94
  processExpeditionsDepositedToRequest,
95
+ expedition,
95
96
  } = require('./definitions/expeditions');
96
97
  const { findPodsRequest, findPodsResponse } = require('./definitions/pods');
97
98
  const {
@@ -309,6 +310,7 @@ const countersSchema = addMetadata(counters(), 'counters');
309
310
  const historicRecordSchema = addMetadata(historicRecord(), 'historicRecord');
310
311
  const zoneSchema = addMetadata(zone(), 'zone');
311
312
  const representativeSchema = addMetadata(representative(), 'representative');
313
+ const expeditionSchema = addMetadata(expedition(), 'expedition');
312
314
 
313
315
  module.exports = {
314
316
  errorResponse,
@@ -465,4 +467,5 @@ module.exports = {
465
467
  counters: countersSchema,
466
468
  historicRecord: historicRecordSchema,
467
469
  representative: representativeSchema,
470
+ expedition: expeditionSchema,
468
471
  };