@gls_spain/gps-common 34.26.2 → 34.26.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.
@@ -6,6 +6,7 @@
6
6
  <component name="ChangeListManager">
7
7
  <list default="true" id="7fe53850-9f5a-4dd7-a4d4-b667077dbf2a" name="Changes" 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" />
@@ -44,7 +45,7 @@
44
45
  <workItem from="1632223470189" duration="73000" />
45
46
  <workItem from="1634110756402" duration="3266000" />
46
47
  <workItem from="1634537614627" duration="14000" />
47
- <workItem from="1634629199773" duration="1910000" />
48
+ <workItem from="1634629199773" duration="7189000" />
48
49
  </task>
49
50
  <servers />
50
51
  </component>
package/CHANGELOG.md CHANGED
@@ -1,10 +1,17 @@
1
- ## [34.26.2](https://github.com/GLS-Spain/gps-common/compare/v34.26.1...v34.26.2) (2021-10-19)
1
+ ## [34.26.3](https://github.com/GLS-Spain/gps-common/compare/v34.26.2...v34.26.3) (2021-10-21)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * add letter in size ([7263524](https://github.com/GLS-Spain/gps-common/commit/72635246c1927714d4a26f6313830a390d89a3a2))
6
+ * add shipping 14h ([b83a7c1](https://github.com/GLS-Spain/gps-common/commit/b83a7c1da14ffcf93dafc9046ec31e781a17c124))
7
7
 
8
+ ## [34.26.2](https://github.com/GLS-Spain/gps-common/compare/v34.26.1...v34.26.2) (2021-10-19)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add letter in size ([7263524](https://github.com/GLS-Spain/gps-common/commit/72635246c1927714d4a26f6313830a390d89a3a2))
14
+
8
15
  ## [34.26.1](https://github.com/GLS-Spain/gps-common/compare/v34.26.0...v34.26.1) (2021-10-13)
9
16
 
10
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "34.26.2",
3
+ "version": "34.26.3",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -50,6 +50,13 @@ const saleSize = () => ({
50
50
  enum: ['xs', 's', 'm', 'l', 'xl', 'letter'],
51
51
  });
52
52
 
53
+ const saleShipping = () => ({
54
+ type: 'object',
55
+ properties: {
56
+ envío14h: { type: 'boolean' },
57
+ },
58
+ });
59
+
53
60
  const saleZoneRegion = () => ({
54
61
  type: 'object',
55
62
  properties: {
@@ -133,6 +140,7 @@ module.exports = {
133
140
  derivationSettings,
134
141
  expirationSettings,
135
142
  saleSize,
143
+ saleShipping,
136
144
  salesSettings,
137
145
  defaults,
138
146
  getDefaultsResponse,
@@ -16,11 +16,10 @@ const {
16
16
  } = require('@gls_spain/common-json-schemas');
17
17
  const { country, findAll, findById, findByOptionalCreatedAtRange, nifType } = require('./common');
18
18
  const { address } = require('./common');
19
- const { saleSize, salesSettings } = require('./defaults');
19
+ const { saleSize, saleShipping, salesSettings } = require('./defaults');
20
20
  const { network, objectWithNetworkId } = require('./networks');
21
21
  const { shop, objectWithShopId } = require('./shops');
22
22
 
23
-
24
23
  const sale = () => ({
25
24
  title: 'sale',
26
25
  type: 'object',
@@ -54,6 +53,7 @@ const sale = () => ({
54
53
  additionalProperties: false,
55
54
  },
56
55
  size: saleSize(),
56
+ shipping: saleShipping(),
57
57
  price: money(),
58
58
  settings: mergeSchemas(salesSettings(), network().properties.salesSettings, {
59
59
  description: 'a copy of both the defaults sale settings and the network sale settings as they were when the sale was created',
@@ -92,7 +92,7 @@ const sale = () => ({
92
92
  emails: { type: 'array', items: email(), uniqueItems: true },
93
93
  phones: { type: 'array', items: phone(), uniqueItems: true },
94
94
  },
95
- required: ['name', 'nif', 'address', 'emails', 'phones' , 'nifType'],
95
+ required: ['name', 'nif', 'address', 'emails', 'phones', 'nifType'],
96
96
  additionalProperties: false,
97
97
  },
98
98
  notes: { type: 'string', trim: true },
@@ -100,7 +100,7 @@ const sale = () => ({
100
100
  },
101
101
  required: ['name', 'nif', 'address', 'emails', 'phones', 'fiscal'],
102
102
  additionalProperties: false,
103
- },
103
+ },
104
104
  payment: {
105
105
  type: 'object',
106
106
  properties: {
@@ -125,7 +125,7 @@ const sale = () => ({
125
125
  required: ['statusHistory', 'orderId', 'fullUrl', 'shortId'],
126
126
  additionalProperties: false,
127
127
  },
128
- typeSale: { type: 'string', enum: ['customer', 'parcelShop', 'parcelShopPremium'] }
128
+ typeSale: { type: 'string', enum: ['customer', 'parcelShop', 'parcelShopPremium'] },
129
129
  },
130
130
  required: [
131
131
  '_id',
@@ -240,22 +240,22 @@ const downloadSaleLabelResponse = () => ({
240
240
  });
241
241
 
242
242
  const paymentRequest = () => ({
243
- type: 'object',
244
- properties: {
245
- orderId: { type: 'string' },
246
- shortId: { type: 'string' }
247
- },
248
- required: ['orderId', 'shortId'],
249
- additionalProperties: false
250
- });
243
+ type: 'object',
244
+ properties: {
245
+ orderId: { type: 'string' },
246
+ shortId: { type: 'string' },
247
+ },
248
+ required: ['orderId', 'shortId'],
249
+ additionalProperties: false,
250
+ });
251
251
 
252
252
  const paymentResponse = () => ({
253
253
  type: 'object',
254
254
  properties: {
255
- message: { type: 'string' }
255
+ message: { type: 'string' },
256
256
  },
257
257
  required: ['message'],
258
- additionalProperties: false
258
+ additionalProperties: false,
259
259
  });
260
260
 
261
261
  module.exports = {
@@ -273,5 +273,5 @@ module.exports = {
273
273
  downloadSaleLabelRequest,
274
274
  downloadSaleLabelResponse,
275
275
  paymentRequest,
276
- paymentResponse
276
+ paymentResponse,
277
277
  };