@gls_spain/gps-common 35.10.0 → 35.10.3

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,39 @@
1
- # [35.10.0](https://github.com/GLS-Spain/gps-common/compare/v35.9.4...v35.10.0) (2024-12-12)
1
+ ## [35.10.3](https://github.com/GLS-Spain/gps-common/compare/v35.10.2...v35.10.3) (2025-02-20)
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
+ * rollback change for semantic-release ([f312d73](https://github.com/GLS-Spain/gps-common/commit/f312d737864c2c2a655d0c493d40a8f15526358b))
8
7
 
8
+ ## [35.10.2](https://github.com/GLS-Spain/gps-common/compare/v35.10.1...v35.10.2) (2025-02-19)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add new optional propertie to scanExpeditionRequest ([748be1d](https://github.com/GLS-Spain/gps-common/commit/748be1d1855f1f1eb52ce254703e72c9b591d776))
14
+
15
+ ## [35.10.2](https://github.com/GLS-Spain/gps-common/compare/v35.10.1...v35.10.2) (2025-02-19)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * add new optional propertie to scanExpeditionRequest ([748be1d](https://github.com/GLS-Spain/gps-common/commit/748be1d1855f1f1eb52ce254703e72c9b591d776))
21
+
22
+ ## [35.10.1](https://github.com/GLS-Spain/gps-common/compare/v35.10.0...v35.10.1) (2024-12-24)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * bugfix in shop.courierAccessCode schema ([f85614b](https://github.com/GLS-Spain/gps-common/commit/f85614bdeb45a0f9d4a88d048662a174dba4f8b2))
28
+
29
+ # [35.10.0](https://github.com/GLS-Spain/gps-common/compare/v35.9.4...v35.10.0) (2024-12-12)
30
+
31
+
32
+ ### Features
33
+
34
+ * courierAccessCode added to NXT integration ([0746597](https://github.com/GLS-Spain/gps-common/commit/07465971da8fd0de6c754d0b1e6c4be400877785))
35
+ * shop created have field operations actived by default ([c7d7049](https://github.com/GLS-Spain/gps-common/commit/c7d7049e0a433e4b0ee49fa4ee197c51af446ae5))
36
+
9
37
  ## [35.9.4](https://github.com/GLS-Spain/gps-common/compare/v35.9.3...v35.9.4) (2024-11-24)
10
38
 
11
39
 
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.3",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -676,14 +676,20 @@ const scanExpeditionRequest = () => ({
676
676
  {
677
677
  title: 'barcode',
678
678
  type: 'object',
679
- properties: { barcode: { type: 'string', trim: true } },
679
+ properties: {
680
+ barcode: { type: 'string', trim: true },
681
+ type: { type: 'string', enum: ['delivery', 'pickup']}
682
+ },
680
683
  required: ['barcode'],
681
684
  additionalProperties: false,
682
685
  },
683
686
  {
684
687
  title: 'QR code',
685
688
  type: 'object',
686
- properties: { qrCode: { type: 'string', trim: true } },
689
+ properties: {
690
+ qrCode: { type: 'string', trim: true },
691
+ type: { type: 'string', enum: ['delivery', 'pickup']}
692
+ },
687
693
  required: ['qrCode'],
688
694
  additionalProperties: false,
689
695
  },
@@ -694,6 +700,7 @@ const scanExpeditionRequest = () => ({
694
700
  additionalProperties: false,
695
701
  });
696
702
 
703
+
697
704
  const resultOk = () => ({
698
705
  title: 'ok',
699
706
  type: 'object',
@@ -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
  ),