@gls_spain/gps-common 35.3.2 → 35.4.1
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 +19 -0
- package/package.json +1 -1
- package/schemas/definitions/common.js +26 -1
- package/schemas/definitions/shops.js +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## [35.4.1](https://github.com/GLS-Spain/gps-common/compare/v35.4.0...v35.4.1) (2024-08-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix model international partner key ([5dfc61b](https://github.com/GLS-Spain/gps-common/commit/5dfc61b80e71e034daaf9ac6809efc47c349b50f))
|
|
7
|
+
|
|
8
|
+
# [35.4.0](https://github.com/GLS-Spain/gps-common/compare/v35.3.2...v35.4.0) (2024-08-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* onWorking on model international partner key ([95f53a9](https://github.com/GLS-Spain/gps-common/commit/95f53a97429f5f5d66bf025b45a08407f52f7775))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add international partner key to search by international id ([d612923](https://github.com/GLS-Spain/gps-common/commit/d612923be592da7900250beb528ddd06341bee39))
|
|
19
|
+
|
|
1
20
|
## [35.3.2](https://github.com/GLS-Spain/gps-common/compare/v35.3.1...v35.3.2) (2024-07-24)
|
|
2
21
|
|
|
3
22
|
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ const {
|
|
|
12
12
|
specificHttpError,
|
|
13
13
|
} = require('@gls_spain/common-json-schemas');
|
|
14
14
|
const { timezones } = require('@gls_spain/ajv-options');
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
const specificErrorResponse = error => ({
|
|
17
17
|
type: 'object',
|
|
18
18
|
properties: {
|
|
@@ -437,6 +437,29 @@ const findByFiscal = () => ({
|
|
|
437
437
|
additionalProperties: false,
|
|
438
438
|
});
|
|
439
439
|
|
|
440
|
+
const international = () => ({
|
|
441
|
+
title: 'international data',
|
|
442
|
+
type: 'object',
|
|
443
|
+
properties: {
|
|
444
|
+
parcelShopId: { type: 'string' },
|
|
445
|
+
partnerKey: { type: 'string' },
|
|
446
|
+
},
|
|
447
|
+
required: ['partnerKey', 'parcelShopId'],
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
const findByInternationalPartnerKey = () => ({
|
|
453
|
+
title: 'find by International PartnerKey',
|
|
454
|
+
type: 'object',
|
|
455
|
+
properties: {
|
|
456
|
+
partnerKey: { type: 'string', description: 'search by International id' },
|
|
457
|
+
parcelShopId: { type: 'string', description: 'search by International id' }
|
|
458
|
+
},
|
|
459
|
+
required: ['partnerKey', 'parcelShopId'],
|
|
460
|
+
additionalProperties: false,
|
|
461
|
+
});
|
|
462
|
+
|
|
440
463
|
const networkType = () => ({
|
|
441
464
|
type: 'string',
|
|
442
465
|
enum: [
|
|
@@ -471,5 +494,7 @@ module.exports = {
|
|
|
471
494
|
contact,
|
|
472
495
|
fiscal,
|
|
473
496
|
findByFiscal,
|
|
497
|
+
international,
|
|
498
|
+
findByInternationalPartnerKey,
|
|
474
499
|
networkType
|
|
475
500
|
};
|
|
@@ -27,6 +27,7 @@ const {
|
|
|
27
27
|
contact,
|
|
28
28
|
fiscal,
|
|
29
29
|
findByFiscal,
|
|
30
|
+
findByInternationalPartnerKey
|
|
30
31
|
} = require('./common');
|
|
31
32
|
const { network, objectWithNetworkId } = require('./networks');
|
|
32
33
|
const { defaults, derivationSettings, expirationSettings } = require('./defaults');
|
|
@@ -391,6 +392,8 @@ const findByNetworkAndStatusAndPolygonalArea = () =>
|
|
|
391
392
|
|
|
392
393
|
const findByNetworkAndFiscal = () => mergeSchemas(findByNetwork(), findByFiscal(), { title: 'find by network and fiscal data' });
|
|
393
394
|
|
|
395
|
+
const findByNetworkAndInternationalPartnerKey = () => mergeSchemas(findByNetwork(), findByInternationalPartnerKey(), { title: 'find by network and international Partner key data' });
|
|
396
|
+
|
|
394
397
|
const findShopsSuperAdminRequest = () =>
|
|
395
398
|
findRequest({
|
|
396
399
|
oneOf: [
|
|
@@ -403,6 +406,7 @@ const findShopsSuperAdminRequest = () =>
|
|
|
403
406
|
findByStatusAndCircularArea(),
|
|
404
407
|
findByStatusAndPolygonalArea(),
|
|
405
408
|
findByFiscal(),
|
|
409
|
+
findByInternationalPartnerKey(),
|
|
406
410
|
findByNetwork(),
|
|
407
411
|
findByNetworkAndStatus(),
|
|
408
412
|
findByNetworkAndName(),
|
|
@@ -411,6 +415,7 @@ const findShopsSuperAdminRequest = () =>
|
|
|
411
415
|
findByNetworkAndStatusAndCircularArea(),
|
|
412
416
|
findByNetworkAndStatusAndPolygonalArea(),
|
|
413
417
|
findByNetworkAndFiscal(),
|
|
418
|
+
findByNetworkAndInternationalPartnerKey()
|
|
414
419
|
],
|
|
415
420
|
});
|
|
416
421
|
|
|
@@ -426,6 +431,7 @@ const findShopsNetworkAdminRequest = () =>
|
|
|
426
431
|
findByStatusAndCircularArea(),
|
|
427
432
|
findByStatusAndPolygonalArea(),
|
|
428
433
|
findByFiscal(),
|
|
434
|
+
findByInternationalPartnerKey(),
|
|
429
435
|
],
|
|
430
436
|
});
|
|
431
437
|
|