@gls_spain/gps-common 35.4.7 → 35.4.9
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 +2 -2
- package/schemas/definitions/shops.js +4 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [35.4.9](https://github.com/GLS-Spain/gps-common/compare/v35.4.8...v35.4.9) (2024-08-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix on find by id internatinal schema ([90265b2](https://github.com/GLS-Spain/gps-common/commit/90265b2ea982861b6806018ccd7fca5eae4f3fa1))
|
|
7
|
+
|
|
8
|
+
## [35.4.8](https://github.com/GLS-Spain/gps-common/compare/v35.4.7...v35.4.8) (2024-08-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fixing schemas ([f166343](https://github.com/GLS-Spain/gps-common/commit/f166343852095a8fadfdf2c0b51b54aa1f995eae))
|
|
14
|
+
|
|
1
15
|
## [35.4.7](https://github.com/GLS-Spain/gps-common/compare/v35.4.6...v35.4.7) (2024-08-06)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -437,7 +437,7 @@ 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: {
|
|
@@ -482,6 +482,6 @@ module.exports = {
|
|
|
482
482
|
contact,
|
|
483
483
|
fiscal,
|
|
484
484
|
findByFiscal,
|
|
485
|
-
|
|
485
|
+
findByIdInternational,
|
|
486
486
|
networkType
|
|
487
487
|
};
|
|
@@ -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,24 +375,6 @@ const findByStatusAndPolygonalArea = () =>
|
|
|
375
375
|
|
|
376
376
|
const findByNetwork = () => mergeSchemas(objectWithNetworkId(), { title: 'find by network' });
|
|
377
377
|
|
|
378
|
-
const findByInternationalPartnerKeyObject = () => ({
|
|
379
|
-
title: 'find by International PartnerKey',
|
|
380
|
-
type: 'object',
|
|
381
|
-
properties: {
|
|
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
|
-
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
});
|
|
395
|
-
|
|
396
378
|
const findByNetworkAndName = () => mergeSchemas(findByNetwork(), findByName(), { title: 'find by network and name' });
|
|
397
379
|
|
|
398
380
|
const findByNetworkAndAddress = () => mergeSchemas(findByNetwork(), findByAddress(), { title: 'find by network and address' });
|
|
@@ -410,7 +392,8 @@ const findByNetworkAndStatusAndPolygonalArea = () =>
|
|
|
410
392
|
|
|
411
393
|
const findByNetworkAndFiscal = () => mergeSchemas(findByNetwork(), findByFiscal(), { title: 'find by network and fiscal data' });
|
|
412
394
|
|
|
413
|
-
const findByInternationalPartnerKey = () => mergeSchemas(
|
|
395
|
+
const findByInternationalPartnerKey = () => mergeSchemas(findByIdInternational(), { title: 'find by International PartnerKey' });
|
|
396
|
+
|
|
414
397
|
|
|
415
398
|
const findShopsSuperAdminRequest = () =>
|
|
416
399
|
findRequest({
|
|
@@ -432,7 +415,7 @@ const findShopsSuperAdminRequest = () =>
|
|
|
432
415
|
findByNetworkAndStatusAndCircularArea(),
|
|
433
416
|
findByNetworkAndStatusAndPolygonalArea(),
|
|
434
417
|
findByNetworkAndFiscal(),
|
|
435
|
-
findByInternationalPartnerKey()
|
|
418
|
+
findByInternationalPartnerKey(),
|
|
436
419
|
],
|
|
437
420
|
});
|
|
438
421
|
|