@gls_spain/gps-common 35.9.4 → 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,24 +1,39 @@
1
- ## [35.9.4](https://github.com/GLS-Spain/gps-common/compare/v35.9.3...v35.9.4) (2024-11-24)
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
4
  ### Bug Fixes
5
5
 
6
- * **ç:** add new propertie to depositedTo ([4ba6588](https://github.com/GLS-Spain/gps-common/commit/4ba6588f2542e91ed63b23f57878bb4f8960fbce))
7
-
8
- ## [35.9.3](https://github.com/GLS-Spain/gps-common/compare/v35.9.2...v35.9.3) (2024-11-13)
9
-
10
-
11
- ### Bug Fixes
12
-
13
- * fix last commit ([cb52da0](https://github.com/GLS-Spain/gps-common/commit/cb52da0e4ec7d323f64b39494d085be85eb808b5))
14
-
15
- ## [35.9.2](https://github.com/GLS-Spain/gps-common/compare/v35.9.1...v35.9.2) (2024-11-13)
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * delete maximum to clientCode ([4100b2c](https://github.com/GLS-Spain/gps-common/commit/4100b2c87d168d38d17ac836d9c21f1d64e8caf6))
6
+ * bugfix in shop.courierAccessCode schema ([f85614b](https://github.com/GLS-Spain/gps-common/commit/f85614bdeb45a0f9d4a88d048662a174dba4f8b2))
21
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
+
16
+ ## [35.9.4](https://github.com/GLS-Spain/gps-common/compare/v35.9.3...v35.9.4) (2024-11-24)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * **ç:** add new propertie to depositedTo ([4ba6588](https://github.com/GLS-Spain/gps-common/commit/4ba6588f2542e91ed63b23f57878bb4f8960fbce))
22
+
23
+ ## [35.9.3](https://github.com/GLS-Spain/gps-common/compare/v35.9.2...v35.9.3) (2024-11-13)
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * fix last commit ([cb52da0](https://github.com/GLS-Spain/gps-common/commit/cb52da0e4ec7d323f64b39494d085be85eb808b5))
29
+
30
+ ## [35.9.2](https://github.com/GLS-Spain/gps-common/compare/v35.9.1...v35.9.2) (2024-11-13)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * delete maximum to clientCode ([4100b2c](https://github.com/GLS-Spain/gps-common/commit/4100b2c87d168d38d17ac836d9c21f1d64e8caf6))
36
+
22
37
  ## [35.9.1](https://github.com/GLS-Spain/gps-common/compare/v35.9.0...v35.9.1) (2024-11-07)
23
38
 
24
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.9.4",
3
+ "version": "35.10.1",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -261,16 +261,30 @@ 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' }
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
+ },
274
288
  },
275
289
  required: [
276
290
  '_id',
@@ -342,6 +356,7 @@ const createShopRequest = () =>
342
356
  'radical',
343
357
  'operations',
344
358
  'reverseLogistic',
359
+ 'capacity',
345
360
  'squareCode',
346
361
  'clientCode',
347
362
  'channelingAgencyCode',
@@ -396,7 +411,6 @@ const findByNetworkAndFiscal = () => mergeSchemas(findByNetwork(), findByFiscal(
396
411
 
397
412
  // const findByInternationalPartnerKey = () => mergeSchemas(findByIdInternational(), { title: 'find by International PartnerKey' });
398
413
 
399
-
400
414
  const findShopsSuperAdminRequest = () =>
401
415
  findRequest({
402
416
  oneOf: [
@@ -465,9 +479,10 @@ const updateShopRequest = () =>
465
479
  'radical',
466
480
  'operations',
467
481
  'reverseLogistic',
482
+ 'capacity',
468
483
  'squareCode',
469
484
  'clientCode',
470
- 'channelingAgencyCode'
485
+ 'channelingAgencyCode',
471
486
  ],
472
487
  ['fiscal', 'activity', 'notes', 'derivationSettings', 'expirationSettings'],
473
488
  ),
@@ -519,6 +534,7 @@ const upsertShopRequest = () => ({
519
534
  'radical',
520
535
  'operations',
521
536
  'reverseLogistic',
537
+ 'capacity',
522
538
  'squareCode',
523
539
  'clientCode',
524
540
  'channelingAgencyCode',