@gls_spain/gps-common 34.14.0 → 34.15.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,17 @@
1
- # [34.14.0](https://github.com/GLS-Spain/gps-common/compare/v34.13.2...v34.14.0) (2021-05-21)
1
+ # [34.15.0](https://github.com/GLS-Spain/gps-common/compare/v34.14.0...v34.15.0) (2021-05-24)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * new end point notNofiticationReceiver ([8af8d6d](https://github.com/GLS-Spain/gps-common/commit/8af8d6dad7b5b9d6df96446799c7f2f62002b6a0))
6
+ * add new property 'type' in network ([1bbd68f](https://github.com/GLS-Spain/gps-common/commit/1bbd68fd2493568a2be84ba36fd29684d1123901))
7
7
 
8
+ # [34.14.0](https://github.com/GLS-Spain/gps-common/compare/v34.13.2...v34.14.0) (2021-05-21)
9
+
10
+
11
+ ### Features
12
+
13
+ * new end point notNofiticationReceiver ([8af8d6d](https://github.com/GLS-Spain/gps-common/commit/8af8d6dad7b5b9d6df96446799c7f2f62002b6a0))
14
+
8
15
  ## [34.13.2](https://github.com/GLS-Spain/gps-common/compare/v34.13.1...v34.13.2) (2021-05-21)
9
16
 
10
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "34.14.0",
3
+ "version": "34.15.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -435,6 +435,15 @@ const findByFiscal = () => ({
435
435
  additionalProperties: false,
436
436
  });
437
437
 
438
+ const networkType = () => ({
439
+ type: 'string',
440
+ enum: [
441
+ 'ParcelShop',
442
+ 'Locker',
443
+ 'Agency'
444
+ ]
445
+ });
446
+
438
447
  module.exports = {
439
448
  specificErrorResponse,
440
449
  date,
@@ -459,4 +468,5 @@ module.exports = {
459
468
  contact,
460
469
  fiscal,
461
470
  findByFiscal,
471
+ networkType
462
472
  };
@@ -12,7 +12,7 @@ const {
12
12
  deleteResponse,
13
13
  pickProperties,
14
14
  } = require('@gls_spain/common-json-schemas');
15
- const { findAll, findById, findByName, objectWithUuidAndName, contact, fiscal } = require('./common');
15
+ const { findAll, findById, findByName, objectWithUuidAndName, contact, fiscal, networkType } = require('./common');
16
16
  const { defaults, derivationSettings, expirationSettings } = require('./defaults');
17
17
 
18
18
  const network = () => ({
@@ -47,8 +47,9 @@ const network = () => ({
47
47
  required: ['networkPercentage', 'shopPercentage'],
48
48
  additionalProperties: false,
49
49
  },
50
+ type: networkType()
50
51
  },
51
- required: ['_id', 'createdAt', 'updatedAt', 'deletable', 'readonly', 'defaults', 'name', 'contacts', 'salesSettings'],
52
+ required: ['_id', 'createdAt', 'updatedAt', 'deletable', 'readonly', 'defaults', 'name', 'contacts', 'salesSettings', 'type'],
52
53
  additionalProperties: false,
53
54
  });
54
55
 
@@ -73,6 +74,7 @@ const createNetworkRequest = () =>
73
74
  'derivationSettings',
74
75
  'expirationSettings',
75
76
  'salesSettings',
77
+ 'type'
76
78
  ]),
77
79
  },
78
80
  required: ['name', 'salesSettings'],