@gls_spain/gps-common 35.6.2 → 35.7.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 +24 -10
- package/package.json +1 -1
- package/schemas/definitions/defaults.js +1 -1
- package/schemas/index.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
# [35.7.0](https://github.com/GLS-Spain/gps-common/compare/v35.6.3...v35.7.0) (2024-10-09)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
## [35.6.1](https://github.com/GLS-Spain/gps-common/compare/v35.6.0...v35.6.1) (2024-09-26)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### Bug Fixes
|
|
12
|
-
|
|
13
|
-
* add maximun 32767 to clientCode shop form ([39e9d76](https://github.com/GLS-Spain/gps-common/commit/39e9d767b8ad39ee8c3dfbd92237f828a93e555b))
|
|
6
|
+
* export expedition schema ([d2ae7c0](https://github.com/GLS-Spain/gps-common/commit/d2ae7c026de3f76b263f2c47e9feb74b8af6d517))
|
|
14
7
|
|
|
8
|
+
## [35.6.3](https://github.com/GLS-Spain/gps-common/compare/v35.6.2...v35.6.3) (2024-10-04)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* delete constant shop return for required ([3a110bd](https://github.com/GLS-Spain/gps-common/commit/3a110bdef65dce2e71e88e859a2275fb753cbc54))
|
|
14
|
+
|
|
15
|
+
## [35.6.2](https://github.com/GLS-Spain/gps-common/compare/v35.6.1...v35.6.2) (2024-09-27)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* add validation for NXT EP ([b544274](https://github.com/GLS-Spain/gps-common/commit/b544274117d75fcd75a97a253938cce4092414e4))
|
|
21
|
+
|
|
22
|
+
## [35.6.1](https://github.com/GLS-Spain/gps-common/compare/v35.6.0...v35.6.1) (2024-09-26)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* add maximun 32767 to clientCode shop form ([39e9d76](https://github.com/GLS-Spain/gps-common/commit/39e9d767b8ad39ee8c3dfbd92237f828a93e555b))
|
|
28
|
+
|
|
15
29
|
# [35.6.0](https://github.com/GLS-Spain/gps-common/compare/v35.5.0...v35.6.0) (2024-09-17)
|
|
16
30
|
|
|
17
31
|
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ const derivationRate = () => ({
|
|
|
10
10
|
variableStart: { type: 'number', description: 'weight threshold in kg to start paying the variable, per package' },
|
|
11
11
|
variable: { ...money(), description: 'amount paid in cents for each additional kg beyond the weight threshold, per package' },
|
|
12
12
|
},
|
|
13
|
-
required: ['constant', 'variableStart', 'variable'
|
|
13
|
+
required: ['constant', 'variableStart', 'variable'],
|
|
14
14
|
additionalProperties: false,
|
|
15
15
|
description: 'pricePerPackage = constant + max(0, weight - variableStart) * variable',
|
|
16
16
|
});
|
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
|
};
|