@gls_spain/gps-common 35.10.0 → 35.10.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,11 +1,18 @@
1
- # [35.10.0](https://github.com/GLS-Spain/gps-common/compare/v35.9.4...v35.10.0) (2024-12-12)
1
+ ## [35.10.1](https://github.com/GLS-Spain/gps-common/compare/v35.10.0...v35.10.1) (2024-12-24)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * courierAccessCode added to NXT integration ([0746597](https://github.com/GLS-Spain/gps-common/commit/07465971da8fd0de6c754d0b1e6c4be400877785))
7
- * shop created have field operations actived by default ([c7d7049](https://github.com/GLS-Spain/gps-common/commit/c7d7049e0a433e4b0ee49fa4ee197c51af446ae5))
6
+ * bugfix in shop.courierAccessCode schema ([f85614b](https://github.com/GLS-Spain/gps-common/commit/f85614bdeb45a0f9d4a88d048662a174dba4f8b2))
8
7
 
8
+ # [35.10.0](https://github.com/GLS-Spain/gps-common/compare/v35.9.4...v35.10.0) (2024-12-12)
9
+
10
+
11
+ ### Features
12
+
13
+ * courierAccessCode added to NXT integration ([0746597](https://github.com/GLS-Spain/gps-common/commit/07465971da8fd0de6c754d0b1e6c4be400877785))
14
+ * shop created have field operations actived by default ([c7d7049](https://github.com/GLS-Spain/gps-common/commit/c7d7049e0a433e4b0ee49fa4ee197c51af446ae5))
15
+
9
16
  ## [35.9.4](https://github.com/GLS-Spain/gps-common/compare/v35.9.3...v35.9.4) (2024-11-24)
10
17
 
11
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.10.0",
3
+ "version": "35.10.1",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -271,10 +271,20 @@ const shop = () => ({
271
271
  clientCode: { type: ['integer', 'string'], description: 'client code' },
272
272
  // 2024-07-22 JJC campo de agencia de canalización
273
273
  channelingAgencyCode: { type: ['integer', 'string', 'null'], description: 'Channeling Agency Code' },
274
- //Volume capacity 07/11/2024
274
+ // Volume capacity 07/11/2024
275
275
  capacity: { type: 'string' },
276
276
  // NXT integration
277
- courierAccessCode: { type: 'string' }
277
+ // courierAccessCode: { type: 'string' }
278
+ // 2024-12-24 JL courierAccessCode es un objeto!!!!
279
+ courierAccessCode: {
280
+ type: 'object',
281
+ properties: {
282
+ code: { type: 'string' },
283
+ updatedAt: { type: 'string', format: 'date-time' },
284
+ },
285
+ required: ['code', 'updatedAt'],
286
+ additionalProperties: false,
287
+ },
278
288
  },
279
289
  required: [
280
290
  '_id',
@@ -401,7 +411,6 @@ const findByNetworkAndFiscal = () => mergeSchemas(findByNetwork(), findByFiscal(
401
411
 
402
412
  // const findByInternationalPartnerKey = () => mergeSchemas(findByIdInternational(), { title: 'find by International PartnerKey' });
403
413
 
404
-
405
414
  const findShopsSuperAdminRequest = () =>
406
415
  findRequest({
407
416
  oneOf: [
@@ -473,7 +482,7 @@ const updateShopRequest = () =>
473
482
  'capacity',
474
483
  'squareCode',
475
484
  'clientCode',
476
- 'channelingAgencyCode'
485
+ 'channelingAgencyCode',
477
486
  ],
478
487
  ['fiscal', 'activity', 'notes', 'derivationSettings', 'expirationSettings'],
479
488
  ),