@gls_spain/gps-common 35.4.1 → 35.4.3

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.3](https://github.com/GLS-Spain/gps-common/compare/v35.4.2...v35.4.3) (2024-08-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix duplicate fn ([a807fad](https://github.com/GLS-Spain/gps-common/commit/a807fad19ca20e7acf92f0c2383ef167f082dbc3))
7
+
8
+ ## [35.4.2](https://github.com/GLS-Spain/gps-common/compare/v35.4.1...v35.4.2) (2024-08-05)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * onworking on search shop schema ([0674d24](https://github.com/GLS-Spain/gps-common/commit/0674d241d4777b6eb69bce9dd9fed84bdd759967))
14
+
1
15
  ## [35.4.1](https://github.com/GLS-Spain/gps-common/compare/v35.4.0...v35.4.1) (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.1",
3
+ "version": "35.4.3",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -448,18 +448,6 @@ const international = () => ({
448
448
  });
449
449
 
450
450
 
451
-
452
- const findByInternationalPartnerKey = () => ({
453
- title: 'find by International PartnerKey',
454
- type: 'object',
455
- properties: {
456
- partnerKey: { type: 'string', description: 'search by International id' },
457
- parcelShopId: { type: 'string', description: 'search by International id' }
458
- },
459
- required: ['partnerKey', 'parcelShopId'],
460
- additionalProperties: false,
461
- });
462
-
463
451
  const networkType = () => ({
464
452
  type: 'string',
465
453
  enum: [
@@ -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