@gls_spain/gps-common 34.27.2 → 34.27.4

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.
@@ -5,7 +5,6 @@
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
7
  <list default="true" id="27fd1870-b1c2-4bc1-b832-c34fc2da3402" name="Default Changelist" comment="">
8
- <change beforePath="$PROJECT_DIR$/schemas/definitions/defaults.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/defaults.js" afterDir="false" />
9
8
  <change beforePath="$PROJECT_DIR$/schemas/definitions/sales.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/sales.js" afterDir="false" />
10
9
  </list>
11
10
  <option name="SHOW_DIALOG" value="false" />
@@ -48,7 +47,7 @@
48
47
  <workItem from="1617873799077" duration="885000" />
49
48
  <workItem from="1634799141153" duration="3415000" />
50
49
  <workItem from="1640086365945" duration="600000" />
51
- <workItem from="1657532028037" duration="4219000" />
50
+ <workItem from="1657532028037" duration="7525000" />
52
51
  </task>
53
52
  <servers />
54
53
  </component>
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [34.27.4](https://github.com/GLS-Spain/gps-common/compare/v34.27.3...v34.27.4) (2022-07-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add properties to send in api ([1442dce](https://github.com/GLS-Spain/gps-common/commit/1442dce3f457775f5b67751aa6463d81ee6a8bdd))
7
+
8
+ ## [34.27.3](https://github.com/GLS-Spain/gps-common/compare/v34.27.2...v34.27.3) (2022-07-13)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * change properties and add new properties ([1d0315c](https://github.com/GLS-Spain/gps-common/commit/1d0315ca1c0bc908b6b0468f4afb89b619f3f482))
14
+
1
15
  ## [34.27.2](https://github.com/GLS-Spain/gps-common/compare/v34.27.1...v34.27.2) (2022-07-12)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "34.27.2",
3
+ "version": "34.27.4",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -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', 'small', 'medium', 'large'],
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
- small: money(),
85
- medium: money(),
86
- large: money(),
84
+ M1: money(),
85
+ M2: money(),
86
+ M3: money(),
87
87
  },
88
- required: ['small', 'medium', 'large'],
88
+ required: ['M1', 'M2', 'M3'],
89
89
  additionalProperties: false,
90
90
  },
91
91
  includes: { type: 'array', items: saleZoneRegion(), uniqueItems: true },
@@ -54,6 +54,7 @@ const sale = () => ({
54
54
  },
55
55
  size: saleSize(),
56
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',
@@ -149,7 +151,17 @@ const createSaleRequest = () =>
149
151
  createRequest({
150
152
  type: 'object',
151
153
  properties: {
152
- ...pickProperties(sale(), ['_id', 'createdAt', 'size', 'fourteenService', 'destination', 'sender', 'price']),
154
+ ...pickProperties(sale(), [
155
+ '_id',
156
+ 'createdAt',
157
+ 'size',
158
+ 'fourteenService',
159
+ 'official_invoice',
160
+ 'typeService',
161
+ 'destination',
162
+ 'sender',
163
+ 'price',
164
+ ]),
153
165
  },
154
166
  required: ['size', 'destination', 'sender'],
155
167
  additionalProperties: false,