@gls_spain/gps-common 35.4.0 → 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 +14 -0
- package/package.json +1 -1
- package/schemas/definitions/common.js +6 -4
- package/schemas/definitions/shops.js +12 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [35.4.1](https://github.com/GLS-Spain/gps-common/compare/v35.4.0...v35.4.1) (2024-08-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fix model international partner key ([5dfc61b](https://github.com/GLS-Spain/gps-common/commit/5dfc61b80e71e034daaf9ac6809efc47c349b50f))
|
|
14
|
+
|
|
1
15
|
# [35.4.0](https://github.com/GLS-Spain/gps-common/compare/v35.3.2...v35.4.0) (2024-08-05)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -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: {
|
|
457
|
-
|
|
455
|
+
properties: {
|
|
456
|
+
parcelShopId: { type: 'string', description: 'search by International id' },
|
|
457
|
+
partnerKey: { type: 'string', description: 'search by partner key' }
|
|
458
|
+
},
|
|
459
|
+
required: ['partnerKey', 'parcelShopId'],
|
|
458
460
|
additionalProperties: false,
|
|
459
461
|
});
|
|
460
462
|
|
|
@@ -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
|
-
|
|
445
|
+
findByNetworkAndInternationalPartnerKey(),
|
|
435
446
|
],
|
|
436
447
|
});
|
|
437
448
|
|