@gls_spain/gps-common 35.2.0 → 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 +7 -0
- package/package.json +1 -1
- package/schemas/definitions/sales.js +14 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
8
|
# [35.2.0](https://github.com/GLS-Spain/gps-common/compare/v35.1.11...v35.2.0) (2024-07-16)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@ const sale = () => ({
|
|
|
70
70
|
phones: { type: 'array', items: phone(), uniqueItems: true },
|
|
71
71
|
observations: { type: 'string', trim: true },
|
|
72
72
|
notes: { type: 'string', trim: true },
|
|
73
|
-
parcelShopData:
|
|
73
|
+
parcelShopData: parcelShopData(),
|
|
74
74
|
// suitcasetag: { type: 'string', trim: true, uniqueItems: true },
|
|
75
75
|
},
|
|
76
76
|
required: ['name', 'address', 'emails', 'phones'],
|
|
@@ -266,6 +266,19 @@ const downloadSaleLabelResponse = () => ({
|
|
|
266
266
|
additionalProperties: false,
|
|
267
267
|
});
|
|
268
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
|
+
|
|
269
282
|
const paymentRequest = () => ({
|
|
270
283
|
type: 'object',
|
|
271
284
|
properties: {
|