@gls_spain/gps-common 35.1.11 → 35.2.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 +14 -0
- package/package.json +1 -1
- package/schemas/definitions/sales.js +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [35.2.1](https://github.com/GLS-Spain/gps-common/compare/v35.2.0...v35.2.1) (2024-07-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix object of parcelShopData ([2f52902](https://github.com/GLS-Spain/gps-common/commit/2f52902fe89a524039071589a1e57f2de183f82a))
|
|
7
|
+
|
|
8
|
+
# [35.2.0](https://github.com/GLS-Spain/gps-common/compare/v35.1.11...v35.2.0) (2024-07-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add new fields for s2s ([0ac3b06](https://github.com/GLS-Spain/gps-common/commit/0ac3b065e58399c5520c518d03afdc451450242c))
|
|
14
|
+
|
|
1
15
|
## [35.1.11](https://github.com/GLS-Spain/gps-common/compare/v35.1.10...v35.1.11) (2024-06-22)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -53,6 +53,7 @@ const sale = () => ({
|
|
|
53
53
|
additionalProperties: false,
|
|
54
54
|
},
|
|
55
55
|
size: saleSize(),
|
|
56
|
+
isS2S: { type: 'boolean' },
|
|
56
57
|
fourteenService: { type: 'boolean' },
|
|
57
58
|
official_invoice: { type: 'boolean' },
|
|
58
59
|
referenceTypeSix: { type: 'string' },
|
|
@@ -69,6 +70,7 @@ const sale = () => ({
|
|
|
69
70
|
phones: { type: 'array', items: phone(), uniqueItems: true },
|
|
70
71
|
observations: { type: 'string', trim: true },
|
|
71
72
|
notes: { type: 'string', trim: true },
|
|
73
|
+
parcelShopData: parcelShopData(),
|
|
72
74
|
// suitcasetag: { type: 'string', trim: true, uniqueItems: true },
|
|
73
75
|
},
|
|
74
76
|
required: ['name', 'address', 'emails', 'phones'],
|
|
@@ -170,6 +172,7 @@ const createSaleRequest = () =>
|
|
|
170
172
|
'destination',
|
|
171
173
|
'sender',
|
|
172
174
|
'price',
|
|
175
|
+
'isS2S',
|
|
173
176
|
]),
|
|
174
177
|
},
|
|
175
178
|
required: ['size', 'destination', 'sender'],
|
|
@@ -263,6 +266,19 @@ const downloadSaleLabelResponse = () => ({
|
|
|
263
266
|
additionalProperties: false,
|
|
264
267
|
});
|
|
265
268
|
|
|
269
|
+
const parcelShopData = () => ({
|
|
270
|
+
type: 'object',
|
|
271
|
+
properties: {
|
|
272
|
+
_id: uuid(),
|
|
273
|
+
email: { type: 'string' },
|
|
274
|
+
name:{ type: 'string' },
|
|
275
|
+
phone:{ type: 'string' },
|
|
276
|
+
postalCode:{ type: 'string' },
|
|
277
|
+
|
|
278
|
+
},
|
|
279
|
+
required: ['_id', 'email','name', 'phone','postalCode'],
|
|
280
|
+
});
|
|
281
|
+
|
|
266
282
|
const paymentRequest = () => ({
|
|
267
283
|
type: 'object',
|
|
268
284
|
properties: {
|