@gls_spain/gps-common 34.18.0 → 34.20.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,29 @@
1
- # [34.18.0](https://github.com/GLS-Spain/gps-common/compare/v34.17.0...v34.18.0) (2021-06-22)
1
+ # [34.20.0](https://github.com/GLS-Spain/gps-common/compare/v34.19.0...v34.20.0) (2021-06-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add new property 'eco' in other end points to shop ([d676582](https://github.com/GLS-Spain/gps-common/commit/d676582dadbfb851dc14fce17b69d04f93d9b70d))
2
7
 
3
8
 
4
9
  ### Features
5
10
 
6
- * new end points in sales ([bf60d34](https://github.com/GLS-Spain/gps-common/commit/bf60d34dc27badc0064abce88b31d1fb53dbc795))
11
+ * add new property in shop 'Eco' ([073b6b6](https://github.com/GLS-Spain/gps-common/commit/073b6b67dcff33fd1b1d7efa63650dac15997754))
7
12
 
13
+ # [34.19.0](https://github.com/GLS-Spain/gps-common/compare/v34.18.0...v34.19.0) (2021-06-25)
14
+
15
+
16
+ ### Features
17
+
18
+ * add new parameters in api parcel shops ([1fe9f66](https://github.com/GLS-Spain/gps-common/commit/1fe9f66aed9a80712c683593fa1f5dfd8531bf22))
19
+
20
+ # [34.18.0](https://github.com/GLS-Spain/gps-common/compare/v34.17.0...v34.18.0) (2021-06-22)
21
+
22
+
23
+ ### Features
24
+
25
+ * new end points in sales ([bf60d34](https://github.com/GLS-Spain/gps-common/commit/bf60d34dc27badc0064abce88b31d1fb53dbc795))
26
+
8
27
  # [34.17.0](https://github.com/GLS-Spain/gps-common/compare/v34.16.1...v34.17.0) (2021-06-02)
9
28
 
10
29
 
@@ -4165,7 +4165,7 @@ The endpoint does not require any authorization, anyone who knows the \`shortId\
4165
4165
  },
4166
4166
  },
4167
4167
  },
4168
- '/parcelShop/{street}/{limit}': {
4168
+ '/parcelShop/{street}/{limit}?networks=Agency,Locker&services=Sell,Pickup&activities=others&openSaturday=true&isEco=true': {
4169
4169
  get: {
4170
4170
  tags: ['ParcelShop'],
4171
4171
  summary: 'Find parcel shop to street',
@@ -4185,6 +4185,41 @@ The endpoint does not require any authorization, anyone who knows the \`shortId\
4185
4185
  default: 10,
4186
4186
  schema: { type: 'string' },
4187
4187
  description: 'Limit to response'
4188
+ },
4189
+ {
4190
+ name: 'networks',
4191
+ in: 'query',
4192
+ required: false,
4193
+ schema: { type: 'string' },
4194
+ description: 'Type of netowrk find (\'Agency\', \'Locker\', \'Business\')'
4195
+ },
4196
+ {
4197
+ name: 'services',
4198
+ in: 'query',
4199
+ required: false,
4200
+ schema: { type: 'string' },
4201
+ description: 'Type of services find (\'Sell\', \'Pickup\', \'Delivery\')'
4202
+ },
4203
+ {
4204
+ name: 'activities',
4205
+ in: 'query',
4206
+ required: false,
4207
+ schema: { type: 'string' },
4208
+ description: 'Type of activities find'
4209
+ },
4210
+ {
4211
+ name: 'openSaturday',
4212
+ in: 'query',
4213
+ required: false,
4214
+ schema: { type: 'string' },
4215
+ description: 'Find when PS is open on saturday'
4216
+ },
4217
+ {
4218
+ name: 'isEco',
4219
+ in: 'query',
4220
+ required: false,
4221
+ schema: { type: 'string' },
4222
+ description: 'Find when PS is Ecologic'
4188
4223
  }
4189
4224
  ],
4190
4225
  responses: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "34.18.0",
3
+ "version": "34.20.0",
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'],
@@ -377,7 +379,7 @@ const updateShopRequest = () =>
377
379
  status: setShopStatus(),
378
380
  ...pickProperties(
379
381
  shop(),
380
- ['name', 'address', 'capabilities', 'openingSchedule', 'contacts'],
382
+ ['name', 'address', 'capabilities', 'openingSchedule', 'contacts', 'eco'],
381
383
  ['fiscal', 'activity', 'notes', 'derivationSettings', 'expirationSettings'],
382
384
  ),
383
385
  },
@@ -423,6 +425,7 @@ const upsertShopRequest = () => (
423
425
  'notes',
424
426
  'derivationSettings',
425
427
  'expirationSettings',
428
+ 'eco'
426
429
  ]),
427
430
  },
428
431
  required: ['network', 'status', 'name', 'address'],