@gls_spain/gps-common 34.26.1 → 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.
@@ -0,0 +1,66 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="ChangeListManager">
7
+ <list default="true" id="7fe53850-9f5a-4dd7-a4d4-b667077dbf2a" name="Changes" comment="">
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" />
10
+ </list>
11
+ <option name="SHOW_DIALOG" value="false" />
12
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
13
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
14
+ <option name="LAST_RESOLUTION" value="IGNORE" />
15
+ </component>
16
+ <component name="Git.Settings">
17
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
18
+ </component>
19
+ <component name="ProjectId" id="1yRnrjFUfHsYLdvXr9BnJxZgZah" />
20
+ <component name="ProjectViewState">
21
+ <option name="hideEmptyMiddlePackages" value="true" />
22
+ <option name="showLibraryContents" value="true" />
23
+ </component>
24
+ <component name="PropertiesComponent">
25
+ <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
26
+ <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
27
+ <property name="WebServerToolWindowFactoryState" value="false" />
28
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
29
+ <property name="node.js.detected.package.eslint" value="true" />
30
+ <property name="node.js.detected.package.tslint" value="true" />
31
+ <property name="node.js.selected.package.eslint" value="(autodetect)" />
32
+ <property name="node.js.selected.package.tslint" value="(autodetect)" />
33
+ <property name="nodejs_package_manager_path" value="npm" />
34
+ <property name="prettierjs.PrettierConfiguration.Package" value="C:\Users\sbonilla\Desktop\parcelShop\gps-common\node_modules\prettier" />
35
+ <property name="vue.rearranger.settings.migration" value="true" />
36
+ </component>
37
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
38
+ <component name="TaskManager">
39
+ <task active="true" id="Default" summary="Default task">
40
+ <changelist id="7fe53850-9f5a-4dd7-a4d4-b667077dbf2a" name="Changes" comment="" />
41
+ <created>1632223468890</created>
42
+ <option name="number" value="Default" />
43
+ <option name="presentableId" value="Default" />
44
+ <updated>1632223468890</updated>
45
+ <workItem from="1632223470189" duration="73000" />
46
+ <workItem from="1634110756402" duration="3266000" />
47
+ <workItem from="1634537614627" duration="14000" />
48
+ <workItem from="1634629199773" duration="7189000" />
49
+ </task>
50
+ <servers />
51
+ </component>
52
+ <component name="TypeScriptGeneratedFilesManager">
53
+ <option name="version" value="3" />
54
+ </component>
55
+ <component name="Vcs.Log.Tabs.Properties">
56
+ <option name="TAB_STATES">
57
+ <map>
58
+ <entry key="MAIN">
59
+ <value>
60
+ <State />
61
+ </value>
62
+ </entry>
63
+ </map>
64
+ </option>
65
+ </component>
66
+ </project>
package/CHANGELOG.md CHANGED
@@ -1,10 +1,24 @@
1
- ## [34.26.1](https://github.com/GLS-Spain/gps-common/compare/v34.26.0...v34.26.1) (2021-10-13)
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 new sellplus array capabilities ([e1a12b9](https://github.com/GLS-Spain/gps-common/commit/e1a12b939e102f8279f83f0196c5f59f832a9fcf))
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
+
15
+ ## [34.26.1](https://github.com/GLS-Spain/gps-common/compare/v34.26.0...v34.26.1) (2021-10-13)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * add new sellplus array capabilities ([e1a12b9](https://github.com/GLS-Spain/gps-common/commit/e1a12b939e102f8279f83f0196c5f59f832a9fcf))
21
+
8
22
  # [34.26.0](https://github.com/GLS-Spain/gps-common/compare/v34.25.0...v34.26.0) (2021-07-09)
9
23
 
10
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "34.26.1",
3
+ "version": "34.26.3",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -47,7 +47,14 @@ const expirationSettings = () => ({
47
47
 
48
48
  const saleSize = () => ({
49
49
  type: 'string',
50
- enum: ['xs', 's', 'm', 'l', 'xl'],
50
+ enum: ['xs', 's', 'm', 'l', 'xl', 'letter'],
51
+ });
52
+
53
+ const saleShipping = () => ({
54
+ type: 'object',
55
+ properties: {
56
+ envío14h: { type: 'boolean' },
57
+ },
51
58
  });
52
59
 
53
60
  const saleZoneRegion = () => ({
@@ -72,8 +79,9 @@ const saleZone = () => ({
72
79
  m: money(),
73
80
  l: money(),
74
81
  xl: money(),
82
+ letter: money(),
75
83
  },
76
- required: ['xs', 's', 'm', 'l', 'xl'],
84
+ required: ['xs', 's', 'm', 'l', 'xl', 'letter'],
77
85
  additionalProperties: false,
78
86
  },
79
87
  includes: { type: 'array', items: saleZoneRegion(), uniqueItems: true },
@@ -132,6 +140,7 @@ module.exports = {
132
140
  derivationSettings,
133
141
  expirationSettings,
134
142
  saleSize,
143
+ saleShipping,
135
144
  salesSettings,
136
145
  defaults,
137
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
  };