@gls_spain/gps-common 34.31.6 → 34.31.7
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 +8 -0
- package/package.json +1 -1
- package/schemas/definitions/expeditions.js +21 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [34.31.7](https://github.com/GLS-Spain/gps-common/compare/v34.31.6...v34.31.7) (2023-11-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add new properties to json schema ([462bbbb](https://github.com/GLS-Spain/gps-common/commit/462bbbb8ed91ba9d206508e0a49a40b5384323fc))
|
|
7
|
+
* change parcelShopId type from number to string ([0cdae51](https://github.com/GLS-Spain/gps-common/commit/0cdae5183c12381c163d57ff75996139882ef598))
|
|
8
|
+
|
|
1
9
|
## [34.31.6](https://github.com/GLS-Spain/gps-common/compare/v34.31.5...v34.31.6) (2023-11-07)
|
|
2
10
|
|
|
3
11
|
|
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ const shopSupplier = () =>({
|
|
|
74
74
|
title: 'shopSupplier',
|
|
75
75
|
type: 'object',
|
|
76
76
|
properties:{
|
|
77
|
-
parcelShopId: { type: '
|
|
77
|
+
parcelShopId: { type: 'string', trim: true },
|
|
78
78
|
networkId:{ type: 'string', trim: true },
|
|
79
79
|
supplier:{type: 'string', trim: true}
|
|
80
80
|
},
|
|
@@ -291,6 +291,24 @@ const expedition = () => ({
|
|
|
291
291
|
},
|
|
292
292
|
},
|
|
293
293
|
notes: { type: 'string', trim: true },
|
|
294
|
+
zone: {
|
|
295
|
+
title:'zone for include or excude scan QR',
|
|
296
|
+
type: 'object',
|
|
297
|
+
properties:{
|
|
298
|
+
country:{type:'string', trim: true},
|
|
299
|
+
postalCodes: {
|
|
300
|
+
title:'excludes or includes CP',
|
|
301
|
+
type:'object',
|
|
302
|
+
properties:{
|
|
303
|
+
exclude: { type: 'array', items: { type: 'string', trim:true}, minItems:2, maxItems:2},
|
|
304
|
+
include: { type: 'array', items: { type: 'string', trim:true}, minItems:2, maxItems:2}
|
|
305
|
+
},
|
|
306
|
+
additionalProperties:false
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
required: ['country', 'postalCodes'],
|
|
310
|
+
additionalProperties: false,
|
|
311
|
+
}
|
|
294
312
|
},
|
|
295
313
|
required: [
|
|
296
314
|
'_id',
|
|
@@ -352,6 +370,7 @@ const createExpeditionWithShop = () => ({
|
|
|
352
370
|
'references',
|
|
353
371
|
'packages',
|
|
354
372
|
'notes',
|
|
373
|
+
'zone',
|
|
355
374
|
]),
|
|
356
375
|
},
|
|
357
376
|
required: [
|
|
@@ -407,6 +426,7 @@ const createExpeditionWithNetwork = () => ({
|
|
|
407
426
|
'references',
|
|
408
427
|
'packages',
|
|
409
428
|
'notes',
|
|
429
|
+
'zone',
|
|
410
430
|
]),
|
|
411
431
|
},
|
|
412
432
|
required: [
|