@gls_spain/gps-common 34.31.6 → 34.31.8
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 +15 -0
- package/package.json +1 -1
- package/schemas/definitions/expeditions.js +27 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [34.31.8](https://github.com/GLS-Spain/gps-common/compare/v34.31.7...v34.31.8) (2023-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix array excludes to array of string array ([7d2c3ea](https://github.com/GLS-Spain/gps-common/commit/7d2c3ea72162d9994e9ef0dc0b49d7dc273c36eb))
|
|
7
|
+
|
|
8
|
+
## [34.31.7](https://github.com/GLS-Spain/gps-common/compare/v34.31.6...v34.31.7) (2023-11-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add new properties to json schema ([462bbbb](https://github.com/GLS-Spain/gps-common/commit/462bbbb8ed91ba9d206508e0a49a40b5384323fc))
|
|
14
|
+
* change parcelShopId type from number to string ([0cdae51](https://github.com/GLS-Spain/gps-common/commit/0cdae5183c12381c163d57ff75996139882ef598))
|
|
15
|
+
|
|
1
16
|
## [34.31.6](https://github.com/GLS-Spain/gps-common/compare/v34.31.5...v34.31.6) (2023-11-07)
|
|
2
17
|
|
|
3
18
|
|
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,30 @@ 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: {
|
|
304
|
+
type: 'array',
|
|
305
|
+
items: { type: 'array', items:{type: 'string',trim:true}, minItems:2, maxItems:2} ,
|
|
306
|
+
},
|
|
307
|
+
include: {
|
|
308
|
+
type: 'array',
|
|
309
|
+
items: { type: 'array', items:{type: 'string',trim:true}, minItems:2, maxItems:2} ,
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
additionalProperties:false
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
required: ['country', 'postalCodes'],
|
|
316
|
+
additionalProperties: false,
|
|
317
|
+
}
|
|
294
318
|
},
|
|
295
319
|
required: [
|
|
296
320
|
'_id',
|
|
@@ -352,6 +376,7 @@ const createExpeditionWithShop = () => ({
|
|
|
352
376
|
'references',
|
|
353
377
|
'packages',
|
|
354
378
|
'notes',
|
|
379
|
+
'zone',
|
|
355
380
|
]),
|
|
356
381
|
},
|
|
357
382
|
required: [
|
|
@@ -407,6 +432,7 @@ const createExpeditionWithNetwork = () => ({
|
|
|
407
432
|
'references',
|
|
408
433
|
'packages',
|
|
409
434
|
'notes',
|
|
435
|
+
'zone',
|
|
410
436
|
]),
|
|
411
437
|
},
|
|
412
438
|
required: [
|