@gls_spain/gps-common 35.4.7 → 35.4.8
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 +7 -0
- package/package.json +1 -1
- package/schemas/definitions/shops.js +3 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [35.4.8](https://github.com/GLS-Spain/gps-common/compare/v35.4.7...v35.4.8) (2024-08-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fixing schemas ([f166343](https://github.com/GLS-Spain/gps-common/commit/f166343852095a8fadfdf2c0b51b54aa1f995eae))
|
|
7
|
+
|
|
1
8
|
## [35.4.7](https://github.com/GLS-Spain/gps-common/compare/v35.4.6...v35.4.7) (2024-08-06)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -375,22 +375,10 @@ const findByStatusAndPolygonalArea = () =>
|
|
|
375
375
|
|
|
376
376
|
const findByNetwork = () => mergeSchemas(objectWithNetworkId(), { title: 'find by network' });
|
|
377
377
|
|
|
378
|
-
const
|
|
378
|
+
const findByInternationalPartnerKey = () => ({
|
|
379
379
|
title: 'find by International PartnerKey',
|
|
380
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
|
-
|
|
381
|
+
properties: { international: international() }
|
|
394
382
|
});
|
|
395
383
|
|
|
396
384
|
const findByNetworkAndName = () => mergeSchemas(findByNetwork(), findByName(), { title: 'find by network and name' });
|
|
@@ -410,8 +398,6 @@ const findByNetworkAndStatusAndPolygonalArea = () =>
|
|
|
410
398
|
|
|
411
399
|
const findByNetworkAndFiscal = () => mergeSchemas(findByNetwork(), findByFiscal(), { title: 'find by network and fiscal data' });
|
|
412
400
|
|
|
413
|
-
const findByInternationalPartnerKey = () => mergeSchemas(findByInternationalPartnerKeyObject(), { title: 'find by network and international Partner key data' });
|
|
414
|
-
|
|
415
401
|
const findShopsSuperAdminRequest = () =>
|
|
416
402
|
findRequest({
|
|
417
403
|
oneOf: [
|
|
@@ -432,7 +418,7 @@ const findShopsSuperAdminRequest = () =>
|
|
|
432
418
|
findByNetworkAndStatusAndCircularArea(),
|
|
433
419
|
findByNetworkAndStatusAndPolygonalArea(),
|
|
434
420
|
findByNetworkAndFiscal(),
|
|
435
|
-
findByInternationalPartnerKey()
|
|
421
|
+
findByInternationalPartnerKey(),
|
|
436
422
|
],
|
|
437
423
|
});
|
|
438
424
|
|