@gls_spain/gps-common 35.4.0 → 35.4.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,3 +1,10 @@
1
+ ## [35.4.1](https://github.com/GLS-Spain/gps-common/compare/v35.4.0...v35.4.1) (2024-08-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix model international partner key ([5dfc61b](https://github.com/GLS-Spain/gps-common/commit/5dfc61b80e71e034daaf9ac6809efc47c349b50f))
7
+
1
8
  # [35.4.0](https://github.com/GLS-Spain/gps-common/compare/v35.3.2...v35.4.0) (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.0",
3
+ "version": "35.4.1",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -441,20 +441,22 @@ const international = () => ({
441
441
  title: 'international data',
442
442
  type: 'object',
443
443
  properties: {
444
- partnerKey: { type: 'string' },
445
444
  parcelShopId: { type: 'string' },
445
+ partnerKey: { type: 'string' },
446
446
  },
447
447
  required: ['partnerKey', 'parcelShopId'],
448
448
  });
449
449
 
450
450
 
451
451
 
452
-
453
452
  const findByInternationalPartnerKey = () => ({
454
453
  title: 'find by International PartnerKey',
455
454
  type: 'object',
456
- properties: { partnerKey: { type: 'string', minLength: 3, description: 'search by International id' } },
457
- required: ['partnerKey'],
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'],
458
460
  additionalProperties: false,
459
461
  });
460
462