@gls_spain/gps-common 35.8.1 → 35.8.2
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 +7 -0
- package/package.json +1 -1
- package/schemas/definitions/expeditions.js +19 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [35.8.2](https://github.com/GLS-Spain/gps-common/compare/v35.8.1...v35.8.2) (2024-10-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix properties depositedRequest ([9baac2e](https://github.com/GLS-Spain/gps-common/commit/9baac2ec645f46b1fcc35b24f23a21334fafc454))
|
|
7
|
+
|
|
1
8
|
## [35.8.1](https://github.com/GLS-Spain/gps-common/compare/v35.8.0...v35.8.1) (2024-10-17)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -60,17 +60,6 @@ const driver = () => ({
|
|
|
60
60
|
additionalProperties: false,
|
|
61
61
|
});
|
|
62
62
|
|
|
63
|
-
const expeditionLogInv = () => ({
|
|
64
|
-
title: 'expedition',
|
|
65
|
-
type: 'object',
|
|
66
|
-
properties: {
|
|
67
|
-
_id: uuid(),
|
|
68
|
-
incident: { type: 'boolean' },
|
|
69
|
-
},
|
|
70
|
-
required: ['_id'],
|
|
71
|
-
additionalProperties: false,
|
|
72
|
-
});
|
|
73
|
-
|
|
74
63
|
// const shopProvider = () =>({
|
|
75
64
|
// title: 'shopProvider',
|
|
76
65
|
// type: 'object',
|
|
@@ -854,7 +843,25 @@ const processExpeditionsDepositedFromRequest = () => ({
|
|
|
854
843
|
const processExpeditionsDepositedToRequest = () => ({
|
|
855
844
|
type: 'object',
|
|
856
845
|
properties: {
|
|
857
|
-
expeditions:
|
|
846
|
+
expeditions: {
|
|
847
|
+
type: 'object',
|
|
848
|
+
properties: {
|
|
849
|
+
_ids: {
|
|
850
|
+
type: 'array',
|
|
851
|
+
items: {
|
|
852
|
+
type: 'object',
|
|
853
|
+
properties: {
|
|
854
|
+
_id: uuid(),
|
|
855
|
+
incident: { type: 'boolean' },
|
|
856
|
+
},
|
|
857
|
+
required: ['_id'],
|
|
858
|
+
additionalProperties: false,
|
|
859
|
+
},
|
|
860
|
+
},
|
|
861
|
+
},
|
|
862
|
+
required: ['_ids'],
|
|
863
|
+
additionalProperties: false,
|
|
864
|
+
},
|
|
858
865
|
driver: driver(),
|
|
859
866
|
},
|
|
860
867
|
required: ['expeditions', 'driver'],
|