@gls_spain/gps-common 35.4.4 → 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 +14 -0
- package/package.json +1 -1
- package/schemas/definitions/shops.js +13 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [35.4.5](https://github.com/GLS-Spain/gps-common/compare/v35.4.4...v35.4.5) (2024-08-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* delete require ([2ac9e7d](https://github.com/GLS-Spain/gps-common/commit/2ac9e7dbe0774da6ed9dbf2b8757e9a67e6e8f67))
|
|
14
|
+
|
|
1
15
|
## [35.4.4](https://github.com/GLS-Spain/gps-common/compare/v35.4.3...v35.4.4) (2024-08-05)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ const {
|
|
|
27
27
|
contact,
|
|
28
28
|
fiscal,
|
|
29
29
|
findByFiscal,
|
|
30
|
-
|
|
30
|
+
international,
|
|
31
31
|
} = require('./common');
|
|
32
32
|
const { network, objectWithNetworkId } = require('./networks');
|
|
33
33
|
const { defaults, derivationSettings, expirationSettings } = require('./defaults');
|
|
@@ -379,11 +379,16 @@ const findByInternationalPartnerKey = () => ({
|
|
|
379
379
|
title: 'find by International PartnerKey',
|
|
380
380
|
type: 'object',
|
|
381
381
|
properties: {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
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
|
+
}
|
|
387
392
|
});
|
|
388
393
|
|
|
389
394
|
const findByNetworkAndName = () => mergeSchemas(findByNetwork(), findByName(), { title: 'find by network and name' });
|
|
@@ -403,8 +408,6 @@ const findByNetworkAndStatusAndPolygonalArea = () =>
|
|
|
403
408
|
|
|
404
409
|
const findByNetworkAndFiscal = () => mergeSchemas(findByNetwork(), findByFiscal(), { title: 'find by network and fiscal data' });
|
|
405
410
|
|
|
406
|
-
const findByNetworkAndInternationalPartnerKey = () => mergeSchemas(findByNetwork(), findByInternationalPartnerKey(), { title: 'find by network and international Partner key data' });
|
|
407
|
-
|
|
408
411
|
const findShopsSuperAdminRequest = () =>
|
|
409
412
|
findRequest({
|
|
410
413
|
oneOf: [
|
|
@@ -417,7 +420,6 @@ const findShopsSuperAdminRequest = () =>
|
|
|
417
420
|
findByStatusAndCircularArea(),
|
|
418
421
|
findByStatusAndPolygonalArea(),
|
|
419
422
|
findByFiscal(),
|
|
420
|
-
findByInternationalPartnerKey(),
|
|
421
423
|
findByNetwork(),
|
|
422
424
|
findByNetworkAndStatus(),
|
|
423
425
|
findByNetworkAndName(),
|
|
@@ -426,7 +428,7 @@ const findShopsSuperAdminRequest = () =>
|
|
|
426
428
|
findByNetworkAndStatusAndCircularArea(),
|
|
427
429
|
findByNetworkAndStatusAndPolygonalArea(),
|
|
428
430
|
findByNetworkAndFiscal(),
|
|
429
|
-
|
|
431
|
+
findByInternationalPartnerKey()
|
|
430
432
|
],
|
|
431
433
|
});
|
|
432
434
|
|
|
@@ -442,7 +444,7 @@ const findShopsNetworkAdminRequest = () =>
|
|
|
442
444
|
findByStatusAndCircularArea(),
|
|
443
445
|
findByStatusAndPolygonalArea(),
|
|
444
446
|
findByFiscal(),
|
|
445
|
-
|
|
447
|
+
findByInternationalPartnerKey(),
|
|
446
448
|
],
|
|
447
449
|
});
|
|
448
450
|
|