@gls_spain/gps-common 34.19.0 → 34.20.1

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,29 @@
1
- # [34.19.0](https://github.com/GLS-Spain/gps-common/compare/v34.18.0...v34.19.0) (2021-06-25)
1
+ ## [34.20.1](https://github.com/GLS-Spain/gps-common/compare/v34.20.0...v34.20.1) (2021-06-25)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * add new parameters in api parcel shops ([1fe9f66](https://github.com/GLS-Spain/gps-common/commit/1fe9f66aed9a80712c683593fa1f5dfd8531bf22))
6
+ * add new property network on update shop ([2dfeefc](https://github.com/GLS-Spain/gps-common/commit/2dfeefc1dc28b51e9a009fd968bb0c4c22b5c58f))
7
7
 
8
+ # [34.20.0](https://github.com/GLS-Spain/gps-common/compare/v34.19.0...v34.20.0) (2021-06-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add new property 'eco' in other end points to shop ([d676582](https://github.com/GLS-Spain/gps-common/commit/d676582dadbfb851dc14fce17b69d04f93d9b70d))
14
+
15
+
16
+ ### Features
17
+
18
+ * add new property in shop 'Eco' ([073b6b6](https://github.com/GLS-Spain/gps-common/commit/073b6b67dcff33fd1b1d7efa63650dac15997754))
19
+
20
+ # [34.19.0](https://github.com/GLS-Spain/gps-common/compare/v34.18.0...v34.19.0) (2021-06-25)
21
+
22
+
23
+ ### Features
24
+
25
+ * add new parameters in api parcel shops ([1fe9f66](https://github.com/GLS-Spain/gps-common/commit/1fe9f66aed9a80712c683593fa1f5dfd8531bf22))
26
+
8
27
  # [34.18.0](https://github.com/GLS-Spain/gps-common/compare/v34.17.0...v34.18.0) (2021-06-22)
9
28
 
10
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "34.19.0",
3
+ "version": "34.20.1",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -210,6 +210,7 @@ const shop = () => ({
210
210
  notes: { type: 'string', trim: true },
211
211
  derivationSettings: derivationSettings(),
212
212
  expirationSettings: expirationSettings(),
213
+ eco: { type: 'boolean', default: false }
213
214
  },
214
215
  required: [
215
216
  '_id',
@@ -276,6 +277,7 @@ const createShopRequest = () =>
276
277
  'notes',
277
278
  'derivationSettings',
278
279
  'expirationSettings',
280
+ 'eco'
279
281
  ]),
280
282
  },
281
283
  required: ['network', 'status', 'name', 'address', 'openingSchedule', 'timezone'],
@@ -371,13 +373,14 @@ const updateShopRequest = () =>
371
373
  {
372
374
  type: 'object',
373
375
  properties: {
376
+ network: schemaOrNull(objectWithUuid()),
374
377
  zone: schemaOrNull(objectWithUuid()),
375
378
  openingRepresentative: schemaOrNull(setShopRepresentative()),
376
379
  managingRepresentative: schemaOrNull(setShopRepresentative()),
377
380
  status: setShopStatus(),
378
381
  ...pickProperties(
379
382
  shop(),
380
- ['name', 'address', 'capabilities', 'openingSchedule', 'contacts'],
383
+ ['name', 'address', 'capabilities', 'openingSchedule', 'contacts', 'eco'],
381
384
  ['fiscal', 'activity', 'notes', 'derivationSettings', 'expirationSettings'],
382
385
  ),
383
386
  },
@@ -423,6 +426,7 @@ const upsertShopRequest = () => (
423
426
  'notes',
424
427
  'derivationSettings',
425
428
  'expirationSettings',
429
+ 'eco'
426
430
  ]),
427
431
  },
428
432
  required: ['network', 'status', 'name', 'address'],