@gls_spain/gps-common 34.27.1 → 34.27.3
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/.idea/workspace.xml
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
7
|
<list default="true" id="27fd1870-b1c2-4bc1-b832-c34fc2da3402" name="Default Changelist" comment="">
|
|
8
8
|
<change beforePath="$PROJECT_DIR$/schemas/definitions/defaults.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/defaults.js" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/schemas/definitions/sales.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/sales.js" afterDir="false" />
|
|
9
10
|
</list>
|
|
10
11
|
<option name="SHOW_DIALOG" value="false" />
|
|
11
12
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
<workItem from="1617873799077" duration="885000" />
|
|
48
49
|
<workItem from="1634799141153" duration="3415000" />
|
|
49
50
|
<workItem from="1640086365945" duration="600000" />
|
|
50
|
-
<workItem from="1657532028037" duration="
|
|
51
|
+
<workItem from="1657532028037" duration="5745000" />
|
|
51
52
|
</task>
|
|
52
53
|
<servers />
|
|
53
54
|
</component>
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [34.27.3](https://github.com/GLS-Spain/gps-common/compare/v34.27.2...v34.27.3) (2022-07-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* change properties and add new properties ([1d0315c](https://github.com/GLS-Spain/gps-common/commit/1d0315ca1c0bc908b6b0468f4afb89b619f3f482))
|
|
7
|
+
|
|
8
|
+
## [34.27.2](https://github.com/GLS-Spain/gps-common/compare/v34.27.1...v34.27.2) (2022-07-12)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* change name properties ([da8c131](https://github.com/GLS-Spain/gps-common/commit/da8c131f69b1df5091b79f021b051c3db5f69435))
|
|
14
|
+
|
|
1
15
|
## [34.27.1](https://github.com/GLS-Spain/gps-common/compare/v34.27.0...v34.27.1) (2022-07-11)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@ const expirationSettings = () => ({
|
|
|
47
47
|
|
|
48
48
|
const saleSize = () => ({
|
|
49
49
|
type: 'string',
|
|
50
|
-
enum: ['envelope', 'xs', 's', 'm', 'l', 'xl', 'letter', '
|
|
50
|
+
enum: ['envelope', 'xs', 's', 'm', 'l', 'xl', 'letter', 'M1', 'M2', 'M3'],
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
const saleZoneRegion = () => ({
|
|
@@ -81,11 +81,11 @@ const saleZone = () => ({
|
|
|
81
81
|
pricesTraveller: {
|
|
82
82
|
type: 'object',
|
|
83
83
|
properties: {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
M1: money(),
|
|
85
|
+
M2: money(),
|
|
86
|
+
M3: money(),
|
|
87
87
|
},
|
|
88
|
-
required: ['
|
|
88
|
+
required: ['M1', 'M2', 'M3'],
|
|
89
89
|
additionalProperties: false,
|
|
90
90
|
},
|
|
91
91
|
includes: { type: 'array', items: saleZoneRegion(), uniqueItems: true },
|
|
@@ -53,7 +53,8 @@ const sale = () => ({
|
|
|
53
53
|
additionalProperties: false,
|
|
54
54
|
},
|
|
55
55
|
size: saleSize(),
|
|
56
|
-
fourteenService:{ type: 'boolean' },
|
|
56
|
+
fourteenService: { type: 'boolean' },
|
|
57
|
+
official_invoice: { type: 'boolean' },
|
|
57
58
|
price: money(),
|
|
58
59
|
settings: mergeSchemas(salesSettings(), network().properties.salesSettings, {
|
|
59
60
|
description: 'a copy of both the defaults sale settings and the network sale settings as they were when the sale was created',
|
|
@@ -126,6 +127,7 @@ const sale = () => ({
|
|
|
126
127
|
additionalProperties: false,
|
|
127
128
|
},
|
|
128
129
|
typeSale: { type: 'string', enum: ['customer', 'parcelShop', 'parcelShopPremium'] },
|
|
130
|
+
typeService: { type: 'string', enum: ['parcel', 'traveller'] },
|
|
129
131
|
},
|
|
130
132
|
required: [
|
|
131
133
|
'_id',
|
|
@@ -199,8 +201,9 @@ const checkSalePriceResponse = () => ({
|
|
|
199
201
|
properties: {
|
|
200
202
|
zone: { type: 'string' },
|
|
201
203
|
price: money(),
|
|
204
|
+
pricesTraveller: money(),
|
|
202
205
|
},
|
|
203
|
-
required: ['zone', 'price'],
|
|
206
|
+
required: ['zone', 'price', 'pricesTraveller'],
|
|
204
207
|
additionalProperties: false,
|
|
205
208
|
});
|
|
206
209
|
|