@gls_spain/gps-common 34.26.12 → 34.26.14
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
|
-
## [34.26.
|
|
1
|
+
## [34.26.14](https://github.com/GLS-Spain/gps-common/compare/v34.26.13...v34.26.14) (2022-04-26)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* change
|
|
6
|
+
* change fourteenService to root sale ([eda8986](https://github.com/GLS-Spain/gps-common/commit/eda898657483ab1bc621d7bc982b9ce83bf6fff5))
|
|
7
7
|
|
|
8
|
+
## [34.26.13](https://github.com/GLS-Spain/gps-common/compare/v34.26.12...v34.26.13) (2022-03-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* delete lastname MyGLS ([c227de6](https://github.com/GLS-Spain/gps-common/commit/c227de684309df6762042b3bdf8db8d4273eba60))
|
|
14
|
+
|
|
15
|
+
## [34.26.12](https://github.com/GLS-Spain/gps-common/compare/v34.26.11...v34.26.12) (2022-03-08)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* change text error validate AE ([a6044a5](https://github.com/GLS-Spain/gps-common/commit/a6044a50c95cef69d9d2f92237a5b7fcfc21fbb6))
|
|
21
|
+
|
|
8
22
|
## [34.26.11](https://github.com/GLS-Spain/gps-common/compare/v34.26.10...v34.26.11) (2022-03-08)
|
|
9
23
|
|
|
10
24
|
|
package/package.json
CHANGED
|
@@ -50,13 +50,6 @@ const saleSize = () => ({
|
|
|
50
50
|
enum: ['envelope', 'xs', 's', 'm', 'l', 'xl', 'letter'],
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
const saleShipping = () => ({
|
|
54
|
-
type: 'object',
|
|
55
|
-
properties: {
|
|
56
|
-
send14h: { type: 'boolean' },
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
|
|
60
53
|
const saleZoneRegion = () => ({
|
|
61
54
|
type: 'object',
|
|
62
55
|
properties: {
|
|
@@ -141,7 +134,6 @@ module.exports = {
|
|
|
141
134
|
derivationSettings,
|
|
142
135
|
expirationSettings,
|
|
143
136
|
saleSize,
|
|
144
|
-
saleShipping,
|
|
145
137
|
salesSettings,
|
|
146
138
|
defaults,
|
|
147
139
|
getDefaultsResponse,
|
|
@@ -16,7 +16,7 @@ const {
|
|
|
16
16
|
} = require('@gls_spain/common-json-schemas');
|
|
17
17
|
const { country, findAll, findById, findByOptionalCreatedAtRange, nifType } = require('./common');
|
|
18
18
|
const { address } = require('./common');
|
|
19
|
-
const { saleSize,
|
|
19
|
+
const { saleSize, salesSettings } = require('./defaults');
|
|
20
20
|
const { network, objectWithNetworkId } = require('./networks');
|
|
21
21
|
const { shop, objectWithShopId } = require('./shops');
|
|
22
22
|
|
|
@@ -53,7 +53,7 @@ const sale = () => ({
|
|
|
53
53
|
additionalProperties: false,
|
|
54
54
|
},
|
|
55
55
|
size: saleSize(),
|
|
56
|
-
|
|
56
|
+
fourteenService:{ type: 'boolean' },
|
|
57
57
|
price: money(),
|
|
58
58
|
settings: mergeSchemas(salesSettings(), network().properties.salesSettings, {
|
|
59
59
|
description: 'a copy of both the defaults sale settings and the network sale settings as they were when the sale was created',
|
|
@@ -94,13 +94,13 @@ const sale = () => ({
|
|
|
94
94
|
emails: { type: 'array', items: email(), uniqueItems: true },
|
|
95
95
|
phones: { type: 'array', items: phone(), uniqueItems: true },
|
|
96
96
|
},
|
|
97
|
-
required: ['name',
|
|
97
|
+
required: ['name', 'nif', 'address', 'emails', 'phones', 'nifType'],
|
|
98
98
|
additionalProperties: false,
|
|
99
99
|
},
|
|
100
100
|
notes: { type: 'string', trim: true },
|
|
101
101
|
reference: { type: 'string', trim: true },
|
|
102
102
|
},
|
|
103
|
-
required: ['name', '
|
|
103
|
+
required: ['name', 'nif', 'address', 'emails', 'phones', 'fiscal'],
|
|
104
104
|
additionalProperties: false,
|
|
105
105
|
},
|
|
106
106
|
payment: {
|
|
@@ -151,7 +151,7 @@ const createSaleRequest = () =>
|
|
|
151
151
|
createRequest({
|
|
152
152
|
type: 'object',
|
|
153
153
|
properties: {
|
|
154
|
-
...pickProperties(sale(), ['_id', 'createdAt', 'size', 'destination', 'sender', 'price'
|
|
154
|
+
...pickProperties(sale(), ['_id', 'createdAt', 'size', 'destination', 'sender', 'price']),
|
|
155
155
|
},
|
|
156
156
|
required: ['size', 'destination', 'sender'],
|
|
157
157
|
additionalProperties: false,
|