@gls_spain/gps-common 35.4.1 → 35.4.2

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.2](https://github.com/GLS-Spain/gps-common/compare/v35.4.1...v35.4.2) (2024-08-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * onworking on search shop schema ([0674d24](https://github.com/GLS-Spain/gps-common/commit/0674d241d4777b6eb69bce9dd9fed84bdd759967))
7
+
1
8
  ## [35.4.1](https://github.com/GLS-Spain/gps-common/compare/v35.4.0...v35.4.1) (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.1",
3
+ "version": "35.4.2",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -453,8 +453,8 @@ const findByInternationalPartnerKey = () => ({
453
453
  title: 'find by International PartnerKey',
454
454
  type: 'object',
455
455
  properties: {
456
- partnerKey: { type: 'string', description: 'search by International id' },
457
- parcelShopId: { type: 'string', description: 'search by International id' }
456
+ parcelShopId: { type: 'string', description: 'search by International id' },
457
+ partnerKey: { type: 'string', description: 'search by partner key' }
458
458
  },
459
459
  required: ['partnerKey', 'parcelShopId'],
460
460
  additionalProperties: false,
@@ -375,6 +375,17 @@ const findByStatusAndPolygonalArea = () =>
375
375
 
376
376
  const findByNetwork = () => mergeSchemas(objectWithNetworkId(), { title: 'find by network' });
377
377
 
378
+ const findByInternationalPartnerKey = () => ({
379
+ title: 'find by International PartnerKey',
380
+ type: 'object',
381
+ properties: {
382
+ parcelShopId: { type: 'string', description: 'search by International id' },
383
+ partnerKey: { type: 'string', description: 'search by partner key' }
384
+ },
385
+ required: ['partnerKey', 'parcelShopId'],
386
+ additionalProperties: false,
387
+ });
388
+
378
389
  const findByNetworkAndName = () => mergeSchemas(findByNetwork(), findByName(), { title: 'find by network and name' });
379
390
 
380
391
  const findByNetworkAndAddress = () => mergeSchemas(findByNetwork(), findByAddress(), { title: 'find by network and address' });
@@ -431,7 +442,7 @@ const findShopsNetworkAdminRequest = () =>
431
442
  findByStatusAndCircularArea(),
432
443
  findByStatusAndPolygonalArea(),
433
444
  findByFiscal(),
434
- findByInternationalPartnerKey(),
445
+ findByNetworkAndInternationalPartnerKey(),
435
446
  ],
436
447
  });
437
448