@gls_spain/gps-common 35.8.0 → 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 CHANGED
@@ -1,10 +1,25 @@
1
- # [35.8.0](https://github.com/GLS-Spain/gps-common/compare/v35.7.0...v35.8.0) (2024-10-15)
1
+ ## [35.8.2](https://github.com/GLS-Spain/gps-common/compare/v35.8.1...v35.8.2) (2024-10-17)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * add reverserLogistic field ([0fd6ba9](https://github.com/GLS-Spain/gps-common/commit/0fd6ba93a7c6b8808f46a1db7de2914d51a7b6b8))
6
+ * fix properties depositedRequest ([9baac2e](https://github.com/GLS-Spain/gps-common/commit/9baac2ec645f46b1fcc35b24f23a21334fafc454))
7
7
 
8
+ ## [35.8.1](https://github.com/GLS-Spain/gps-common/compare/v35.8.0...v35.8.1) (2024-10-17)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add new schema to depositedTo ([61cfa0f](https://github.com/GLS-Spain/gps-common/commit/61cfa0f4b11268864db3bfb7323b4953b1a2a1a1))
14
+ * deposited to fix change request ([2bc2e2a](https://github.com/GLS-Spain/gps-common/commit/2bc2e2accd9c5beea89fc432d3d5710dca51d6c9))
15
+
16
+ # [35.8.0](https://github.com/GLS-Spain/gps-common/compare/v35.7.0...v35.8.0) (2024-10-15)
17
+
18
+
19
+ ### Features
20
+
21
+ * add reverserLogistic field ([0fd6ba9](https://github.com/GLS-Spain/gps-common/commit/0fd6ba93a7c6b8808f46a1db7de2914d51a7b6b8))
22
+
8
23
  # [35.7.0](https://github.com/GLS-Spain/gps-common/compare/v35.6.3...v35.7.0) (2024-10-09)
9
24
 
10
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.8.0",
3
+ "version": "35.8.2",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -60,16 +60,16 @@ const driver = () => ({
60
60
  additionalProperties: false,
61
61
  });
62
62
 
63
- const shopProvider = () =>({
64
- title: 'shopProvider',
65
- type: 'object',
66
- properties:{
67
- _id: uuid(),
68
- name:{ type: 'string', trim: true },
69
- },
70
- required: ['_id', 'name'],
71
- additionalProperties: false,
72
- })
63
+ // const shopProvider = () =>({
64
+ // title: 'shopProvider',
65
+ // type: 'object',
66
+ // properties:{
67
+ // _id: uuid(),
68
+ // name:{ type: 'string', trim: true },
69
+ // },
70
+ // required: ['_id', 'name'],
71
+ // additionalProperties: false,
72
+ // })
73
73
 
74
74
  const shopSupplier = () =>({
75
75
  title: 'shopSupplier',
@@ -843,11 +843,28 @@ const processExpeditionsDepositedFromRequest = () => ({
843
843
  const processExpeditionsDepositedToRequest = () => ({
844
844
  type: 'object',
845
845
  properties: {
846
- expeditions: omit(findByIds(), 'title'),
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
+ },
847
865
  driver: driver(),
848
- QRconfirmed: { type: 'boolean' },
849
866
  },
850
- required: ['expeditions', 'driver', 'QRconfirmed'],
867
+ required: ['expeditions', 'driver'],
851
868
  additionalProperties: false,
852
869
  });
853
870