@gls_spain/gps-common 35.4.5 → 35.4.7

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,17 @@
1
+ ## [35.4.7](https://github.com/GLS-Spain/gps-common/compare/v35.4.6...v35.4.7) (2024-08-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix schema ([373061a](https://github.com/GLS-Spain/gps-common/commit/373061aef148ce6ae27b15ad56851d8a6589d2af))
7
+
8
+ ## [35.4.6](https://github.com/GLS-Spain/gps-common/compare/v35.4.5...v35.4.6) (2024-08-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * delete network query in controller ([04ca2f1](https://github.com/GLS-Spain/gps-common/commit/04ca2f1d4a484874fc3ed8d2d1b88ef8b1435691))
14
+
1
15
  ## [35.4.5](https://github.com/GLS-Spain/gps-common/compare/v35.4.4...v35.4.5) (2024-08-05)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.4.5",
3
+ "version": "35.4.7",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -27,6 +27,7 @@ const {
27
27
  contact,
28
28
  fiscal,
29
29
  findByFiscal,
30
+ international,
30
31
  } = require('./common');
31
32
  const { network, objectWithNetworkId } = require('./networks');
32
33
  const { defaults, derivationSettings, expirationSettings } = require('./defaults');
@@ -374,15 +375,22 @@ const findByStatusAndPolygonalArea = () =>
374
375
 
375
376
  const findByNetwork = () => mergeSchemas(objectWithNetworkId(), { title: 'find by network' });
376
377
 
377
- const findByInternationalPartnerKey = () => ({
378
+ const findByInternationalPartnerKeyObject = () => ({
378
379
  title: 'find by International PartnerKey',
379
380
  type: 'object',
380
381
  properties: {
381
- parcelShopId: { type: 'string', description: 'search by International id' },
382
- partnerKey: { type: 'string', description: 'search by partner key' }
383
- },
384
- required: ['partnerKey', 'parcelShopId'],
385
- additionalProperties: false,
382
+ international: {
383
+ type: 'object',
384
+ properties: {
385
+ parcelShopId: { type: 'string', description: 'search by International id' },
386
+ partnerKey: { type: 'string', description: 'search by partner key' },
387
+ },
388
+ required: ['parcelShopId', 'partnerKey'],
389
+ additionalProperties: false,
390
+ },
391
+ }
392
+
393
+
386
394
  });
387
395
 
388
396
  const findByNetworkAndName = () => mergeSchemas(findByNetwork(), findByName(), { title: 'find by network and name' });
@@ -402,7 +410,7 @@ const findByNetworkAndStatusAndPolygonalArea = () =>
402
410
 
403
411
  const findByNetworkAndFiscal = () => mergeSchemas(findByNetwork(), findByFiscal(), { title: 'find by network and fiscal data' });
404
412
 
405
- const findByNetworkAndInternationalPartnerKey = () => mergeSchemas(findByNetwork(), findByInternationalPartnerKey(), { title: 'find by network and international Partner key data' });
413
+ const findByInternationalPartnerKey = () => mergeSchemas(findByInternationalPartnerKeyObject(), { title: 'find by network and international Partner key data' });
406
414
 
407
415
  const findShopsSuperAdminRequest = () =>
408
416
  findRequest({
@@ -416,7 +424,6 @@ const findShopsSuperAdminRequest = () =>
416
424
  findByStatusAndCircularArea(),
417
425
  findByStatusAndPolygonalArea(),
418
426
  findByFiscal(),
419
- findByInternationalPartnerKey(),
420
427
  findByNetwork(),
421
428
  findByNetworkAndStatus(),
422
429
  findByNetworkAndName(),
@@ -425,7 +432,7 @@ const findShopsSuperAdminRequest = () =>
425
432
  findByNetworkAndStatusAndCircularArea(),
426
433
  findByNetworkAndStatusAndPolygonalArea(),
427
434
  findByNetworkAndFiscal(),
428
- findByNetworkAndInternationalPartnerKey()
435
+ findByInternationalPartnerKey()
429
436
  ],
430
437
  });
431
438
 
@@ -441,7 +448,7 @@ const findShopsNetworkAdminRequest = () =>
441
448
  findByStatusAndCircularArea(),
442
449
  findByStatusAndPolygonalArea(),
443
450
  findByFiscal(),
444
- findByNetworkAndInternationalPartnerKey(),
451
+ findByInternationalPartnerKey(),
445
452
  ],
446
453
  });
447
454