@gls_spain/gps-common 35.4.5 → 35.4.6

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,10 @@
1
+ ## [35.4.6](https://github.com/GLS-Spain/gps-common/compare/v35.4.5...v35.4.6) (2024-08-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * delete network query in controller ([04ca2f1](https://github.com/GLS-Spain/gps-common/commit/04ca2f1d4a484874fc3ed8d2d1b88ef8b1435691))
7
+
1
8
  ## [35.4.5](https://github.com/GLS-Spain/gps-common/compare/v35.4.4...v35.4.5) (2024-08-05)
2
9
 
3
10
 
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.6",
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');
@@ -378,11 +379,16 @@ const findByInternationalPartnerKey = () => ({
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
+ }
386
392
  });
387
393
 
388
394
  const findByNetworkAndName = () => mergeSchemas(findByNetwork(), findByName(), { title: 'find by network and name' });
@@ -402,8 +408,6 @@ const findByNetworkAndStatusAndPolygonalArea = () =>
402
408
 
403
409
  const findByNetworkAndFiscal = () => mergeSchemas(findByNetwork(), findByFiscal(), { title: 'find by network and fiscal data' });
404
410
 
405
- const findByNetworkAndInternationalPartnerKey = () => mergeSchemas(findByNetwork(), findByInternationalPartnerKey(), { title: 'find by network and international Partner key data' });
406
-
407
411
  const findShopsSuperAdminRequest = () =>
408
412
  findRequest({
409
413
  oneOf: [
@@ -416,7 +420,6 @@ const findShopsSuperAdminRequest = () =>
416
420
  findByStatusAndCircularArea(),
417
421
  findByStatusAndPolygonalArea(),
418
422
  findByFiscal(),
419
- findByInternationalPartnerKey(),
420
423
  findByNetwork(),
421
424
  findByNetworkAndStatus(),
422
425
  findByNetworkAndName(),
@@ -425,7 +428,7 @@ const findShopsSuperAdminRequest = () =>
425
428
  findByNetworkAndStatusAndCircularArea(),
426
429
  findByNetworkAndStatusAndPolygonalArea(),
427
430
  findByNetworkAndFiscal(),
428
- findByNetworkAndInternationalPartnerKey()
431
+ findByInternationalPartnerKey()
429
432
  ],
430
433
  });
431
434
 
@@ -441,7 +444,7 @@ const findShopsNetworkAdminRequest = () =>
441
444
  findByStatusAndCircularArea(),
442
445
  findByStatusAndPolygonalArea(),
443
446
  findByFiscal(),
444
- findByNetworkAndInternationalPartnerKey(),
447
+ findByInternationalPartnerKey(),
445
448
  ],
446
449
  });
447
450