@gls_spain/gps-common 35.9.3 → 35.10.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,17 +1,32 @@
1
- ## [35.9.3](https://github.com/GLS-Spain/gps-common/compare/v35.9.2...v35.9.3) (2024-11-13)
1
+ # [35.10.0](https://github.com/GLS-Spain/gps-common/compare/v35.9.4...v35.10.0) (2024-12-12)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * fix last commit ([cb52da0](https://github.com/GLS-Spain/gps-common/commit/cb52da0e4ec7d323f64b39494d085be85eb808b5))
7
-
8
- ## [35.9.2](https://github.com/GLS-Spain/gps-common/compare/v35.9.1...v35.9.2) (2024-11-13)
9
-
10
-
11
- ### Bug Fixes
12
-
13
- * delete maximum to clientCode ([4100b2c](https://github.com/GLS-Spain/gps-common/commit/4100b2c87d168d38d17ac836d9c21f1d64e8caf6))
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))
14
8
 
9
+ ## [35.9.4](https://github.com/GLS-Spain/gps-common/compare/v35.9.3...v35.9.4) (2024-11-24)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **ç:** add new propertie to depositedTo ([4ba6588](https://github.com/GLS-Spain/gps-common/commit/4ba6588f2542e91ed63b23f57878bb4f8960fbce))
15
+
16
+ ## [35.9.3](https://github.com/GLS-Spain/gps-common/compare/v35.9.2...v35.9.3) (2024-11-13)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * fix last commit ([cb52da0](https://github.com/GLS-Spain/gps-common/commit/cb52da0e4ec7d323f64b39494d085be85eb808b5))
22
+
23
+ ## [35.9.2](https://github.com/GLS-Spain/gps-common/compare/v35.9.1...v35.9.2) (2024-11-13)
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * delete maximum to clientCode ([4100b2c](https://github.com/GLS-Spain/gps-common/commit/4100b2c87d168d38d17ac836d9c21f1d64e8caf6))
29
+
15
30
  ## [35.9.1](https://github.com/GLS-Spain/gps-common/compare/v35.9.0...v35.9.1) (2024-11-07)
16
31
 
17
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.9.3",
3
+ "version": "35.10.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -855,17 +855,17 @@ const processExpeditionsDepositedToRequest = () => ({
855
855
  incident: { type: 'boolean' },
856
856
  },
857
857
  required: ['_id'],
858
- additionalProperties: false,
858
+ additionalProperties: true,
859
859
  },
860
860
  },
861
861
  },
862
862
  required: ['_ids'],
863
- additionalProperties: false,
863
+ additionalProperties: true,
864
864
  },
865
865
  driver: driver(),
866
866
  },
867
867
  required: ['expeditions', 'driver'],
868
- additionalProperties: false,
868
+ additionalProperties: true,
869
869
  });
870
870
 
871
871
  const processExpeditionResultOk = () => mergeSchemas(objectWithUuid(), resultOk());
@@ -261,16 +261,20 @@ const shop = () => ({
261
261
  eco: { type: 'boolean', default: false },
262
262
  gold: { type: 'boolean', default: false },
263
263
  radical: { type: 'boolean', default: false },
264
- operations: { type: 'string', trim: true },
264
+ operations: { type: ['boolean', 'string'], trim: true },
265
265
  reverseLogistic: { type: 'boolean', default: false },
266
266
  // squareCode: { type: 'string' },
267
267
  // clientCode: { type: 'string' },
268
268
  // 2023-01-12 JL están definidos como string
269
269
  // TODO en el momento que el frontend sea capaz de mandar integer, se quita "string"
270
270
  squareCode: { type: ['integer', 'string'], minimum: 0, maximum: 32767, description: 'agency code' },
271
- clientCode: { type: ['integer', 'string'],description: 'client code' },
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
275
+ capacity: { type: 'string' },
276
+ // NXT integration
277
+ courierAccessCode: { type: 'string' }
274
278
  },
275
279
  required: [
276
280
  '_id',
@@ -342,6 +346,7 @@ const createShopRequest = () =>
342
346
  'radical',
343
347
  'operations',
344
348
  'reverseLogistic',
349
+ 'capacity',
345
350
  'squareCode',
346
351
  'clientCode',
347
352
  'channelingAgencyCode',
@@ -465,6 +470,7 @@ const updateShopRequest = () =>
465
470
  'radical',
466
471
  'operations',
467
472
  'reverseLogistic',
473
+ 'capacity',
468
474
  'squareCode',
469
475
  'clientCode',
470
476
  'channelingAgencyCode'
@@ -519,6 +525,7 @@ const upsertShopRequest = () => ({
519
525
  'radical',
520
526
  'operations',
521
527
  'reverseLogistic',
528
+ 'capacity',
522
529
  'squareCode',
523
530
  'clientCode',
524
531
  'channelingAgencyCode',