@gls_spain/gps-common 34.31.4 → 34.31.6

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,3 +1,17 @@
1
+ ## [34.31.6](https://github.com/GLS-Spain/gps-common/compare/v34.31.5...v34.31.6) (2023-11-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * mdify supplierSHop ([d4ea59d](https://github.com/GLS-Spain/gps-common/commit/d4ea59d24f3a5257603a785d3830b80fadbf676b))
7
+
8
+ ## [34.31.5](https://github.com/GLS-Spain/gps-common/compare/v34.31.4...v34.31.5) (2023-10-03)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * fix last update validation event supplier ([474d6be](https://github.com/GLS-Spain/gps-common/commit/474d6be01cb954c0ba05ba37d9425b919cb2a673))
14
+
1
15
  ## [34.31.4](https://github.com/GLS-Spain/gps-common/compare/v34.31.3...v34.31.4) (2023-10-03)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "34.31.4",
3
+ "version": "34.31.6",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -76,9 +76,10 @@ const shopSupplier = () =>({
76
76
  properties:{
77
77
  parcelShopId: { type: 'number' },
78
78
  networkId:{ type: 'string', trim: true },
79
+ supplier:{type: 'string', trim: true}
79
80
  },
80
- required: ['parcelShopId', 'networkId'],
81
- additionalProperties: false,
81
+ required: ['parcelShopId'],
82
+ additionalProperties: true,
82
83
  })
83
84
 
84
85
  const customer = () => ({
@@ -726,28 +727,6 @@ const scanExpeditionResponse = () => ({
726
727
  });
727
728
 
728
729
  const processExpeditionsWithDriverRequest = () => ({
729
- type: 'object',
730
- properties: {
731
- expeditions: omit(findByIds(), 'title'),
732
- driver: driver(),
733
- shop: shopProvider(),
734
- },
735
- required: ['expeditions', 'driver'],
736
- additionalProperties: true,
737
- });
738
-
739
- const processExpeditionsWithDriverRequestSupplier = () => ({
740
- type: 'object',
741
- properties: {
742
- expeditions: omit(findByIds(), 'title'),
743
- driver: driver(),
744
- shop: shopSupplier(),
745
- },
746
- required: ['expeditions', 'driver'],
747
- additionalProperties: false,
748
- });
749
-
750
- const processExpeditionsWithCustomerRequestSupplier = () => ({
751
730
  type: 'object',
752
731
  properties: {
753
732
  expeditions: omit(findByIds(), 'title'),
@@ -755,7 +734,7 @@ const processExpeditionsWithCustomerRequestSupplier = () => ({
755
734
  shop: shopSupplier(),
756
735
  },
757
736
  required: ['expeditions', 'driver'],
758
- additionalProperties: false,
737
+ additionalProperties: true,
759
738
  });
760
739
 
761
740
  const processExpeditionsWithCustomerRequest = () => ({
@@ -763,7 +742,7 @@ const processExpeditionsWithCustomerRequest = () => ({
763
742
  properties: {
764
743
  expeditions: omit(findByIds(), 'title'),
765
744
  customer: customerWithPod(),
766
- shop: shopProvider(),
745
+ shop: shopSupplier(),
767
746
  },
768
747
  required: ['expeditions', 'customer'],
769
748
  additionalProperties: true,
@@ -955,8 +934,6 @@ module.exports = {
955
934
  scanExpeditionRequest,
956
935
  scanExpeditionResponse,
957
936
  processExpeditionsWithDriverRequest,
958
- processExpeditionsWithCustomerRequestSupplier,
959
- processExpeditionsWithDriverRequestSupplier,
960
937
  processExpeditionsDepositedFromRequest,
961
938
  processExpeditionsWithCustomerRequest,
962
939
  processExpeditionsResponse,
package/schemas/index.js CHANGED
@@ -73,8 +73,6 @@ const {
73
73
  scanExpeditionRequest,
74
74
  scanExpeditionResponse,
75
75
  processExpeditionsWithDriverRequest,
76
- processExpeditionsWithCustomerRequestSupplier,
77
- processExpeditionsWithDriverRequestSupplier,
78
76
  processExpeditionsWithCustomerRequest,
79
77
  processExpeditionsResponse,
80
78
  receiveAllExpeditionsFromDriverRequest,
@@ -222,10 +220,6 @@ const expeditionsScanRequest = request(scanExpeditionRequest(), 'expeditionsScan
222
220
  const expeditionsScanResponse = response(scanExpeditionResponse(), 'expeditionsScanResponse');
223
221
  const expeditionsProcessWithDriverRequest = request(processExpeditionsWithCustomerRequest(), 'expeditionsProcessWithCustomerRequest');
224
222
  const expeditionsProcessWithCustomerRequest = request(processExpeditionsWithDriverRequest(), 'expeditionsProcessWithDriverRequest');
225
-
226
- const expeditionsProcessWithCustomerRequestSupplier = request(processExpeditionsWithCustomerRequestSupplier(), 'expeditionsProcessWithCustomerRequestSupplier');
227
- const expeditionsProcessWithDriverRequestSupplier = request(processExpeditionsWithDriverRequestSupplier(), 'expeditionsProcessWithDriverRequestSupplier');
228
-
229
223
  const expeditionsProcessDepositedFromRequest = request(processExpeditionsDepositedFromRequest(), 'expeditionsProcessDepositedFromRequest');
230
224
  const expeditionsProcessResponse = response(processExpeditionsResponse(), 'expeditionsProcessResponse');
231
225
  const expeditionsReceiveAllFromDriverRequest = request(receiveAllExpeditionsFromDriverRequest(), 'expeditionsReceiveAllFromDriverRequest');
@@ -370,8 +364,6 @@ module.exports = {
370
364
  expeditionsScanResponse,
371
365
  expeditionsProcessWithDriverRequest,
372
366
  expeditionsProcessWithCustomerRequest,
373
- expeditionsProcessWithCustomerRequestSupplier,
374
- expeditionsProcessWithDriverRequestSupplier,
375
367
  expeditionsProcessDepositedFromRequest,
376
368
  expeditionsProcessResponse,
377
369
  expeditionsReceiveAllFromDriverRequest,