@gls_spain/gps-common 35.11.0 → 35.13.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,10 +1,24 @@
1
- # [35.11.0](https://github.com/GLS-Spain/gps-common/compare/v35.10.9...v35.11.0) (2025-07-25)
1
+ # [35.13.0](https://github.com/GLS-Spain/gps-common/compare/v35.12.0...v35.13.0) (2025-08-07)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * add sales.discount ([5b6be5c](https://github.com/GLS-Spain/gps-common/commit/5b6be5cb5d72b8f368ecece875ad7b8213992513))
6
+ * add zipTieCode in expeditions schema ([fe3b311](https://github.com/GLS-Spain/gps-common/commit/fe3b311e569b92309cf1fbb06a60fb59a456b3d5))
7
7
 
8
+ # [35.12.0](https://github.com/GLS-Spain/gps-common/compare/v35.11.0...v35.12.0) (2025-08-07)
9
+
10
+
11
+ ### Features
12
+
13
+ * add new property zipTieCode in expeditions ([d00549b](https://github.com/GLS-Spain/gps-common/commit/d00549b2780a54638f4256e66a99d6e632f9e310))
14
+
15
+ # [35.11.0](https://github.com/GLS-Spain/gps-common/compare/v35.10.9...v35.11.0) (2025-07-25)
16
+
17
+
18
+ ### Features
19
+
20
+ * add sales.discount ([5b6be5c](https://github.com/GLS-Spain/gps-common/commit/5b6be5cb5d72b8f368ecece875ad7b8213992513))
21
+
8
22
  ## [35.10.9](https://github.com/GLS-Spain/gps-common/compare/v35.10.8...v35.10.9) (2025-07-09)
9
23
 
10
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.11.0",
3
+ "version": "35.13.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -71,13 +71,13 @@ const driver = () => ({
71
71
  // additionalProperties: false,
72
72
  // })
73
73
 
74
- const shopSupplier = () =>({
74
+ const shopSupplier = () => ({
75
75
  title: 'shopSupplier',
76
76
  type: 'object',
77
- properties:{
77
+ properties: {
78
78
  parcelShopId: { type: 'string', trim: true },
79
- networkId:{ type: 'string', trim: true },
80
- supplier:{type: 'string', trim: true}
79
+ networkId: { type: 'string', trim: true },
80
+ supplier: { type: 'string', trim: true }
81
81
  },
82
82
  required: ['parcelShopId'],
83
83
  additionalProperties: true,
@@ -104,7 +104,7 @@ const customerWithPod = () => ({
104
104
  barcode: { type: 'string', trim: true },
105
105
  pod: { type: 'string', contentMediaType: 'image/jpg', contentEncoding: 'base64' },
106
106
  },
107
- required: ['name', 'nif', 'pod' ],
107
+ required: ['name', 'nif', 'pod'],
108
108
  additionalProperties: false,
109
109
  });
110
110
 
@@ -293,29 +293,30 @@ const expedition = () => ({
293
293
  },
294
294
  notes: { type: 'string', trim: true },
295
295
  zone: {
296
- title:'zone for include or excude scan QR',
296
+ title: 'zone for include or excude scan QR',
297
297
  type: 'object',
298
- properties:{
299
- country:{type:'string', trim: true},
298
+ properties: {
299
+ country: { type: 'string', trim: true },
300
300
  postalCodes: {
301
- title:'excludes or includes CP',
302
- type:'object',
303
- properties:{
304
- exclude: {
305
- type: 'array',
306
- items: { type: 'array', items:{type: 'string',trim:true}, minItems:2, maxItems:2} ,
307
- },
308
- include: {
309
- type: 'array',
310
- items: { type: 'array', items:{type: 'string',trim:true}, minItems:2, maxItems:2} ,
311
- },
301
+ title: 'excludes or includes CP',
302
+ type: 'object',
303
+ properties: {
304
+ exclude: {
305
+ type: 'array',
306
+ items: { type: 'array', items: { type: 'string', trim: true }, minItems: 2, maxItems: 2 },
307
+ },
308
+ include: {
309
+ type: 'array',
310
+ items: { type: 'array', items: { type: 'string', trim: true }, minItems: 2, maxItems: 2 },
311
+ },
312
312
  },
313
- additionalProperties:false
313
+ additionalProperties: false
314
314
  }
315
315
  },
316
316
  required: ['country', 'postalCodes'],
317
317
  additionalProperties: false,
318
- }
318
+ },
319
+ zipTieCode: { type: 'string' },
319
320
  },
320
321
  required: [
321
322
  '_id',
@@ -676,9 +677,9 @@ const scanExpeditionRequest = () => ({
676
677
  {
677
678
  title: 'barcode',
678
679
  type: 'object',
679
- properties: {
680
+ properties: {
680
681
  barcode: { type: 'string', trim: true },
681
- type: { type: 'string', enum: ['delivery', 'pickup']}
682
+ type: { type: 'string', enum: ['delivery', 'pickup'] }
682
683
  },
683
684
  required: ['barcode'],
684
685
  additionalProperties: false,
@@ -686,9 +687,9 @@ const scanExpeditionRequest = () => ({
686
687
  {
687
688
  title: 'QR code',
688
689
  type: 'object',
689
- properties: {
690
+ properties: {
690
691
  qrCode: { type: 'string', trim: true },
691
- type: { type: 'string', enum: ['delivery', 'pickup']}
692
+ type: { type: 'string', enum: ['delivery', 'pickup'] }
692
693
  },
693
694
  required: ['qrCode'],
694
695
  additionalProperties: false,
@@ -782,59 +783,59 @@ const processExpeditionsWithCustomerRequest = () => ({
782
783
  additionalProperties: true,
783
784
  });
784
785
 
785
- const processExpeditionsNXT = () => ({
786
- type: 'object',
787
- properties: {
788
- shipmentUid: { type: 'string', format: 'uuid' },
789
- lockerUid: { type: 'string', format: 'uuid' },
790
- carrierParcelId: { type: 'string', trim: true },
791
- carrierLockerId: { type: 'string', trim: true },
792
- shipmentType: { type: 'string' },
793
- shipmentStatus: { type: 'string' },
794
- accessCodes: {
795
- type: 'object',
796
- properties: {
797
- consigneeCollection: { type: 'string', trim: true }
798
- },
799
- required: ['consigneeCollection'],
800
- additionalProperties: false
786
+ const processExpeditionsNXT = () => ({
787
+ type: 'object',
788
+ properties: {
789
+ shipmentUid: { type: 'string', format: 'uuid' },
790
+ lockerUid: { type: 'string', format: 'uuid' },
791
+ carrierParcelId: { type: 'string', trim: true },
792
+ carrierLockerId: { type: 'string', trim: true },
793
+ shipmentType: { type: 'string' },
794
+ shipmentStatus: { type: 'string' },
795
+ accessCodes: {
796
+ type: 'object',
797
+ properties: {
798
+ consigneeCollection: { type: 'string', trim: true }
799
+ },
800
+ required: ['consigneeCollection'],
801
+ additionalProperties: false
802
+ },
803
+ consignee: {
804
+ type: 'object',
805
+ properties: {
806
+ name: { type: 'string', trim: true },
807
+ email: { type: 'string', format: 'email' }
801
808
  },
802
- consignee: {
809
+ required: ['name', 'email'],
810
+ additionalProperties: false
811
+ },
812
+ events: {
813
+ type: 'array',
814
+ items: {
803
815
  type: 'object',
804
816
  properties: {
805
- name: { type: 'string', trim: true },
806
- email: { type: 'string', format: 'email' }
817
+ timestamp: { type: 'string', format: 'date-time' },
818
+ eventType: { type: 'string' } // Añade otros eventos si es necesario
807
819
  },
808
- required: ['name', 'email'],
820
+ required: ['timestamp', 'eventType'],
809
821
  additionalProperties: false
810
- },
811
- events: {
812
- type: 'array',
813
- items: {
814
- type: 'object',
815
- properties: {
816
- timestamp: { type: 'string', format: 'date-time' },
817
- eventType: { type: 'string' } // Añade otros eventos si es necesario
818
- },
819
- required: ['timestamp', 'eventType'],
820
- additionalProperties: false
821
- }
822
822
  }
823
- },
824
- required: [
825
- 'shipmentUid',
826
- 'lockerUid',
827
- 'carrierParcelId',
828
- 'carrierLockerId',
829
- 'shipmentType',
830
- 'shipmentStatus',
831
- 'accessCodes',
832
- 'consignee',
833
- 'events'
834
- ],
835
- additionalProperties: false
836
- });
837
-
823
+ }
824
+ },
825
+ required: [
826
+ 'shipmentUid',
827
+ 'lockerUid',
828
+ 'carrierParcelId',
829
+ 'carrierLockerId',
830
+ 'shipmentType',
831
+ 'shipmentStatus',
832
+ 'accessCodes',
833
+ 'consignee',
834
+ 'events'
835
+ ],
836
+ additionalProperties: false
837
+ });
838
+
838
839
 
839
840
  const processExpeditionsDepositedFromRequest = () => ({
840
841
  type: 'object',
@@ -842,6 +843,7 @@ const processExpeditionsDepositedFromRequest = () => ({
842
843
  expeditions: omit(findByIds(), 'title'),
843
844
  driver: driver(),
844
845
  QRconfirmed: { type: 'boolean' },
846
+ zipTieCode: { type: 'string' },
845
847
  },
846
848
  required: ['expeditions', 'driver', 'QRconfirmed'],
847
849
  additionalProperties: false,
@@ -1002,7 +1004,7 @@ const updateExpeditionDerivationRequest = () => ({
1002
1004
  const reminderResponse = () => ({
1003
1005
  title: 'expeditions',
1004
1006
  type: 'object',
1005
- properties:{
1007
+ properties: {
1006
1008
  expeditions: {
1007
1009
  type: 'array',
1008
1010
  items: {
@@ -1022,7 +1024,7 @@ const reminderResponse = () => ({
1022
1024
  const notNotificationResponse = () => ({
1023
1025
  title: 'expeditions',
1024
1026
  type: 'object',
1025
- properties:{
1027
+ properties: {
1026
1028
  expeditions: {
1027
1029
  type: 'array',
1028
1030
  items: {