@gls_spain/gps-common 35.4.8 → 35.4.10
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.10](https://github.com/GLS-Spain/gps-common/compare/v35.4.9...v35.4.10) (2024-08-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fixing schemas ([2f87751](https://github.com/GLS-Spain/gps-common/commit/2f87751723c1cd476a91f466d28c9785a5f61ffc))
|
|
7
|
+
|
|
8
|
+
## [35.4.9](https://github.com/GLS-Spain/gps-common/compare/v35.4.8...v35.4.9) (2024-08-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fix on find by id internatinal schema ([90265b2](https://github.com/GLS-Spain/gps-common/commit/90265b2ea982861b6806018ccd7fca5eae4f3fa1))
|
|
14
|
+
|
|
1
15
|
## [35.4.8](https://github.com/GLS-Spain/gps-common/compare/v35.4.7...v35.4.8) (2024-08-06)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -437,12 +437,14 @@ const findByFiscal = () => ({
|
|
|
437
437
|
additionalProperties: false,
|
|
438
438
|
});
|
|
439
439
|
|
|
440
|
-
const
|
|
440
|
+
const findByIdInternational = () => ({
|
|
441
441
|
title: 'international data',
|
|
442
442
|
type: 'object',
|
|
443
443
|
properties: {
|
|
444
|
-
|
|
445
|
-
|
|
444
|
+
international: {
|
|
445
|
+
parcelShopId: { type: 'string' },
|
|
446
|
+
partnerKey: { type: 'string' },
|
|
447
|
+
}
|
|
446
448
|
},
|
|
447
449
|
required: ['partnerKey', 'parcelShopId'],
|
|
448
450
|
});
|
|
@@ -482,6 +484,6 @@ module.exports = {
|
|
|
482
484
|
contact,
|
|
483
485
|
fiscal,
|
|
484
486
|
findByFiscal,
|
|
485
|
-
|
|
487
|
+
findByIdInternational,
|
|
486
488
|
networkType
|
|
487
489
|
};
|
|
@@ -27,7 +27,7 @@ const {
|
|
|
27
27
|
contact,
|
|
28
28
|
fiscal,
|
|
29
29
|
findByFiscal,
|
|
30
|
-
|
|
30
|
+
findByIdInternational,
|
|
31
31
|
} = require('./common');
|
|
32
32
|
const { network, objectWithNetworkId } = require('./networks');
|
|
33
33
|
const { defaults, derivationSettings, expirationSettings } = require('./defaults');
|
|
@@ -375,12 +375,6 @@ 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: { international: international() }
|
|
382
|
-
});
|
|
383
|
-
|
|
384
378
|
const findByNetworkAndName = () => mergeSchemas(findByNetwork(), findByName(), { title: 'find by network and name' });
|
|
385
379
|
|
|
386
380
|
const findByNetworkAndAddress = () => mergeSchemas(findByNetwork(), findByAddress(), { title: 'find by network and address' });
|
|
@@ -398,6 +392,9 @@ const findByNetworkAndStatusAndPolygonalArea = () =>
|
|
|
398
392
|
|
|
399
393
|
const findByNetworkAndFiscal = () => mergeSchemas(findByNetwork(), findByFiscal(), { title: 'find by network and fiscal data' });
|
|
400
394
|
|
|
395
|
+
const findByInternationalPartnerKey = () => mergeSchemas(findByIdInternational(), { title: 'find by International PartnerKey' });
|
|
396
|
+
|
|
397
|
+
|
|
401
398
|
const findShopsSuperAdminRequest = () =>
|
|
402
399
|
findRequest({
|
|
403
400
|
oneOf: [
|