@gls_spain/gps-common 35.1.0 → 35.1.2
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,10 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
## [35.1.2](https://github.com/GLS-Spain/gps-common/compare/v35.1.1...v35.1.2) (2024-05-20)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* export integration schema ([474247a](https://github.com/GLS-Spain/gps-common/commit/474247ac19031c3cf453a5cff1d452d6a28b70db))
|
|
7
7
|
|
|
8
|
+
## [35.1.1](https://github.com/GLS-Spain/gps-common/compare/v35.1.0...v35.1.1) (2024-05-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add boolean to qrconfirmed ([3558b49](https://github.com/GLS-Spain/gps-common/commit/3558b49395e1f92053132e647ac3fdd2ab5a2077))
|
|
14
|
+
|
|
15
|
+
# [35.1.0](https://github.com/GLS-Spain/gps-common/compare/v35.0.3...v35.1.0) (2024-05-16)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add new field QRconfirmed to depositedFromRequest validate ([1df6bfb](https://github.com/GLS-Spain/gps-common/commit/1df6bfbfb07da8874c85b72fd1a57a3570815f37))
|
|
21
|
+
|
|
8
22
|
## [35.0.3](https://github.com/GLS-Spain/gps-common/compare/v35.0.2...v35.0.3) (2024-04-08)
|
|
9
23
|
|
|
10
24
|
|
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ const { address } = require('./common');
|
|
|
22
22
|
const { network, objectWithNetworkId } = require('./networks');
|
|
23
23
|
const { shop, objectWithShopId } = require('./shops');
|
|
24
24
|
const { derivationSettings } = require('./defaults');
|
|
25
|
+
const { boolean } = require('yargs');
|
|
25
26
|
|
|
26
27
|
const objectWithAgencyCode = () => ({
|
|
27
28
|
type: 'object',
|
|
@@ -779,6 +780,7 @@ const processExpeditionsDepositedFromRequest = () => ({
|
|
|
779
780
|
properties: {
|
|
780
781
|
expeditions: omit(findByIds(), 'title'),
|
|
781
782
|
driver: driver(),
|
|
783
|
+
QRconfirmed: { type: 'boolean' },
|
|
782
784
|
},
|
|
783
785
|
required: ['expeditions', 'driver', 'QRconfirmed'],
|
|
784
786
|
additionalProperties: false,
|
|
@@ -22,6 +22,9 @@ const integration = () => ({
|
|
|
22
22
|
},
|
|
23
23
|
uniqueItems: true,
|
|
24
24
|
},
|
|
25
|
+
daysToDisabledShop: { type: ['string', 'integer'] },
|
|
26
|
+
executeTime: { type: 'string' }, // format: 'time',
|
|
27
|
+
lastExecution: datetime(),
|
|
25
28
|
},
|
|
26
29
|
required: ['_id', 'createdAt', 'updatedAt', 'name', 'enabled', 'networks'],
|
|
27
30
|
additionalProperties: false,
|
package/schemas/index.js
CHANGED
|
@@ -115,7 +115,7 @@ const {
|
|
|
115
115
|
deleteZoneRequest,
|
|
116
116
|
deleteZoneResponse,
|
|
117
117
|
} = require('./definitions/zones');
|
|
118
|
-
const { findIntegrationsRequest, findIntegrationsResponse } = require('./definitions/integrations');
|
|
118
|
+
const { findIntegrationsRequest, findIntegrationsResponse, integration } = require('./definitions/integrations');
|
|
119
119
|
const { findHistoricRecordsRequest, findHistoricRecordsResponse } = require('./definitions/historic-records');
|
|
120
120
|
const {
|
|
121
121
|
createSaleRequest,
|
|
@@ -132,7 +132,7 @@ const {
|
|
|
132
132
|
downloadSaleLabelResponse,
|
|
133
133
|
paymentRequest,
|
|
134
134
|
paymentResponse,
|
|
135
|
-
sale
|
|
135
|
+
sale,
|
|
136
136
|
} = require('./definitions/sales');
|
|
137
137
|
|
|
138
138
|
const { findParcelShopsRequest, findParcelShopsResponse } = require('./definitions/findParcelShops');
|
|
@@ -293,6 +293,8 @@ const networkAdminSchema = addMetadata(networkAdmin(), 'networkAdmin');
|
|
|
293
293
|
const shopUserSchema = addMetadata(shopUser(), 'shopUser');
|
|
294
294
|
const saleSchema = addMetadata(sale(), 'sale');
|
|
295
295
|
|
|
296
|
+
const integrationSchema = addMetadata(integration(), 'integration');
|
|
297
|
+
|
|
296
298
|
module.exports = {
|
|
297
299
|
errorResponse,
|
|
298
300
|
|
|
@@ -439,4 +441,5 @@ module.exports = {
|
|
|
439
441
|
networkAdmin: networkAdminSchema,
|
|
440
442
|
shopUser: shopUserSchema,
|
|
441
443
|
sale: saleSchema,
|
|
444
|
+
integration: integrationSchema,
|
|
442
445
|
};
|