@gls_spain/gps-common 34.24.2 → 34.26.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,24 @@
1
- ## [34.24.2](https://github.com/GLS-Spain/gps-common/compare/v34.24.1...v34.24.2) (2021-07-07)
1
+ # [34.26.0](https://github.com/GLS-Spain/gps-common/compare/v34.25.0...v34.26.0) (2021-07-09)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * remove required property to endpoint payment ([56203ae](https://github.com/GLS-Spain/gps-common/commit/56203ae1185364f94f16d6c31557c54fe14e6d15))
6
+ * add new properties to shop ([b16cd03](https://github.com/GLS-Spain/gps-common/commit/b16cd03664e267a8689d87d43ef9ffb816dcdd32))
7
7
 
8
+ # [34.25.0](https://github.com/GLS-Spain/gps-common/compare/v34.24.2...v34.25.0) (2021-07-07)
9
+
10
+
11
+ ### Features
12
+
13
+ * add role to typeSale in sale ([b4a9920](https://github.com/GLS-Spain/gps-common/commit/b4a992029e910edafb4fc7cf71fdd9516452e885))
14
+
15
+ ## [34.24.2](https://github.com/GLS-Spain/gps-common/compare/v34.24.1...v34.24.2) (2021-07-07)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * remove required property to endpoint payment ([56203ae](https://github.com/GLS-Spain/gps-common/commit/56203ae1185364f94f16d6c31557c54fe14e6d15))
21
+
8
22
  ## [34.24.1](https://github.com/GLS-Spain/gps-common/compare/v34.24.0...v34.24.1) (2021-07-07)
9
23
 
10
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "34.24.2",
3
+ "version": "34.26.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -125,7 +125,7 @@ const sale = () => ({
125
125
  required: ['statusHistory', 'orderId', 'fullUrl', 'shortId'],
126
126
  additionalProperties: false,
127
127
  },
128
- typeSale: { type: 'string' }
128
+ typeSale: { type: 'string', enum: ['customer', 'parcelShop', 'parcelShopPremium'] }
129
129
  },
130
130
  required: [
131
131
  '_id',
@@ -210,7 +210,9 @@ const shop = () => ({
210
210
  notes: { type: 'string', trim: true },
211
211
  derivationSettings: derivationSettings(),
212
212
  expirationSettings: expirationSettings(),
213
- eco: { type: 'boolean', default: false }
213
+ eco: { type: 'boolean', default: false },
214
+ squareCode: { type: 'string' },
215
+ clientCode: { type: 'string' }
214
216
  },
215
217
  required: [
216
218
  '_id',
@@ -277,7 +279,9 @@ const createShopRequest = () =>
277
279
  'notes',
278
280
  'derivationSettings',
279
281
  'expirationSettings',
280
- 'eco'
282
+ 'eco',
283
+ 'squareCode',
284
+ 'clientCode'
281
285
  ]),
282
286
  },
283
287
  required: ['network', 'status', 'name', 'address', 'openingSchedule', 'timezone'],
@@ -380,7 +384,7 @@ const updateShopRequest = () =>
380
384
  status: setShopStatus(),
381
385
  ...pickProperties(
382
386
  shop(),
383
- ['name', 'address', 'capabilities', 'openingSchedule', 'contacts', 'eco'],
387
+ ['name', 'address', 'capabilities', 'openingSchedule', 'contacts', 'eco', 'squareCode', 'clientCode'],
384
388
  ['fiscal', 'activity', 'notes', 'derivationSettings', 'expirationSettings'],
385
389
  ),
386
390
  },
@@ -426,7 +430,9 @@ const upsertShopRequest = () => (
426
430
  'notes',
427
431
  'derivationSettings',
428
432
  'expirationSettings',
429
- 'eco'
433
+ 'eco',
434
+ 'squareCode',
435
+ 'clientCode'
430
436
  ]),
431
437
  },
432
438
  required: ['network', 'status', 'name', 'address'],