@gls_spain/gps-common 34.27.8 → 34.27.9

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,3 +1,10 @@
1
+ ## [34.27.9](https://github.com/GLS-Spain/gps-common/compare/v34.27.8...v34.27.9) (2022-09-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add gold flag new ([c77e1e3](https://github.com/GLS-Spain/gps-common/commit/c77e1e354a81ba2208c93739bab798d418df3461))
7
+
1
8
  ## [34.27.8](https://github.com/GLS-Spain/gps-common/compare/v34.27.7...v34.27.8) (2022-09-07)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "34.27.8",
3
+ "version": "34.27.9",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -222,9 +222,10 @@ const shop = () => ({
222
222
  address: addressWithRequiredLocation(),
223
223
  capabilities: {
224
224
  type: 'array',
225
- items: { type: 'string', enum: ['deliver', 'pickup', 'sell','sellplus', 'gold'] },
225
+ items: { type: 'string', enum: ['deliver', 'pickup', 'sell','sellplus'] },
226
226
  uniqueItems: true,
227
227
  },
228
+
228
229
  openingSchedule: shopSchedule(),
229
230
  holidays: shopHolidays(),
230
231
  timezone: timezone(),
@@ -238,6 +239,7 @@ const shop = () => ({
238
239
  derivationSettings: derivationSettings(),
239
240
  expirationSettings: expirationSettings(),
240
241
  eco: { type: 'boolean', default: false },
242
+ gold: { type: 'boolean', default: false },
241
243
  squareCode: { type: 'string' },
242
244
  clientCode: { type: 'string' }
243
245
  },
@@ -307,6 +309,7 @@ const createShopRequest = () =>
307
309
  'derivationSettings',
308
310
  'expirationSettings',
309
311
  'eco',
312
+ 'gold',
310
313
  'squareCode',
311
314
  'clientCode'
312
315
  ]),
@@ -411,7 +414,7 @@ const updateShopRequest = () =>
411
414
  status: setShopStatus(),
412
415
  ...pickProperties(
413
416
  shop(),
414
- ['name', 'address', 'capabilities', 'openingSchedule', 'holidays', 'contacts', 'eco', 'squareCode', 'clientCode'],
417
+ ['name', 'address', 'capabilities', 'openingSchedule', 'holidays', 'contacts', 'eco', 'gold', 'squareCode', 'clientCode'],
415
418
  ['fiscal', 'activity', 'notes', 'derivationSettings', 'expirationSettings'],
416
419
  ),
417
420
  },
@@ -458,6 +461,7 @@ const upsertShopRequest = () => (
458
461
  'derivationSettings',
459
462
  'expirationSettings',
460
463
  'eco',
464
+ 'gold',
461
465
  'squareCode',
462
466
  'clientCode'
463
467
  ]),