@gls_spain/gps-common 34.27.10 → 34.28.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
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## [34.28.1](https://github.com/GLS-Spain/gps-common/compare/v34.28.0...v34.28.1) (2022-12-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add referenceTypeSix to sale schema ([cff2547](https://github.com/GLS-Spain/gps-common/commit/cff25471c6a801cda23b11ae4407d98829c1d05f))
|
|
7
|
+
|
|
8
|
+
# [34.28.0](https://github.com/GLS-Spain/gps-common/compare/v34.27.10...v34.28.0) (2022-12-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add customer barcode to schema v2 ([8d46e4d](https://github.com/GLS-Spain/gps-common/commit/8d46e4d382dec12529d442178db08db1133a0bc6))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add barcode to customer objectSchema ([d3402eb](https://github.com/GLS-Spain/gps-common/commit/d3402eb083116a839d76f12e3a74a0d298e0696a))
|
|
19
|
+
|
|
1
20
|
## [34.27.10](https://github.com/GLS-Spain/gps-common/compare/v34.27.9...v34.27.10) (2022-11-15)
|
|
2
21
|
|
|
3
22
|
|
package/package.json
CHANGED
|
@@ -65,6 +65,7 @@ const customer = () => ({
|
|
|
65
65
|
properties: {
|
|
66
66
|
name: { type: 'string', trim: true },
|
|
67
67
|
nif: { type: 'string', trim: true },
|
|
68
|
+
barcode: { type: 'string', trim: true },
|
|
68
69
|
pod: objectWithUuid(),
|
|
69
70
|
},
|
|
70
71
|
required: ['name', 'nif', 'pod'],
|
|
@@ -76,9 +77,10 @@ const customerWithPod = () => ({
|
|
|
76
77
|
properties: {
|
|
77
78
|
name: { type: 'string', trim: true },
|
|
78
79
|
nif: { type: 'string', trim: true },
|
|
80
|
+
barcode: { type: 'string', trim: true },
|
|
79
81
|
pod: { type: 'string', contentMediaType: 'image/jpg', contentEncoding: 'base64' },
|
|
80
82
|
},
|
|
81
|
-
required: ['name', 'nif', 'pod'],
|
|
83
|
+
required: ['name', 'nif', 'pod' ],
|
|
82
84
|
additionalProperties: false,
|
|
83
85
|
});
|
|
84
86
|
|
|
@@ -55,6 +55,7 @@ const sale = () => ({
|
|
|
55
55
|
size: saleSize(),
|
|
56
56
|
fourteenService: { type: 'boolean' },
|
|
57
57
|
official_invoice: { type: 'boolean' },
|
|
58
|
+
referenceTypeSix:{type:'string'},
|
|
58
59
|
price: money(),
|
|
59
60
|
settings: mergeSchemas(salesSettings(), network().properties.salesSettings, {
|
|
60
61
|
description: 'a copy of both the defaults sale settings and the network sale settings as they were when the sale was created',
|
|
@@ -99,6 +100,7 @@ const sale = () => ({
|
|
|
99
100
|
notes: { type: 'string', trim: true },
|
|
100
101
|
reference: { type: 'string', trim: true },
|
|
101
102
|
suitcasetag: { type: 'string', trim: true },
|
|
103
|
+
barcode:{ type: 'string', trim: true },
|
|
102
104
|
},
|
|
103
105
|
required: ['name', 'nif', 'address', 'emails', 'phones', 'fiscal'],
|
|
104
106
|
additionalProperties: false,
|