@gls_spain/gps-common 34.31.5 → 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 +15 -0
- package/package.json +1 -1
- package/schemas/definitions/expeditions.js +24 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
|
|
9
|
+
## [34.31.6](https://github.com/GLS-Spain/gps-common/compare/v34.31.5...v34.31.6) (2023-11-07)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* mdify supplierSHop ([d4ea59d](https://github.com/GLS-Spain/gps-common/commit/d4ea59d24f3a5257603a785d3830b80fadbf676b))
|
|
15
|
+
|
|
1
16
|
## [34.31.5](https://github.com/GLS-Spain/gps-common/compare/v34.31.4...v34.31.5) (2023-10-03)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
|
@@ -74,11 +74,12 @@ 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
|
+
supplier:{type: 'string', trim: true}
|
|
79
80
|
},
|
|
80
|
-
required: ['parcelShopId'
|
|
81
|
-
additionalProperties:
|
|
81
|
+
required: ['parcelShopId'],
|
|
82
|
+
additionalProperties: true,
|
|
82
83
|
})
|
|
83
84
|
|
|
84
85
|
const customer = () => ({
|
|
@@ -290,6 +291,24 @@ const expedition = () => ({
|
|
|
290
291
|
},
|
|
291
292
|
},
|
|
292
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
|
+
}
|
|
293
312
|
},
|
|
294
313
|
required: [
|
|
295
314
|
'_id',
|
|
@@ -351,6 +370,7 @@ const createExpeditionWithShop = () => ({
|
|
|
351
370
|
'references',
|
|
352
371
|
'packages',
|
|
353
372
|
'notes',
|
|
373
|
+
'zone',
|
|
354
374
|
]),
|
|
355
375
|
},
|
|
356
376
|
required: [
|
|
@@ -406,6 +426,7 @@ const createExpeditionWithNetwork = () => ({
|
|
|
406
426
|
'references',
|
|
407
427
|
'packages',
|
|
408
428
|
'notes',
|
|
429
|
+
'zone',
|
|
409
430
|
]),
|
|
410
431
|
},
|
|
411
432
|
required: [
|