@gls_spain/gps-common 33.0.6 → 33.0.8

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.
@@ -39,7 +39,8 @@
39
39
  <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
40
40
  <property name="TERMINAL_CUSTOM_COMMANDS_GOT_IT" value="true" />
41
41
  <property name="WebServerToolWindowFactoryState" value="false" />
42
- <property name="javascript.nodejs.core.library.configured.version" value="10.15.3" />
42
+ <property name="javascript.nodejs.core.library.configured.version" value="12.13.0" />
43
+ <property name="javascript.nodejs.core.library.typings.version" value="12.12.53" />
43
44
  <property name="last_opened_file_path" value="$PROJECT_DIR$" />
44
45
  <property name="node.js.detected.package.eslint" value="true" />
45
46
  <property name="node.js.detected.package.standard" value="true" />
@@ -121,14 +122,15 @@
121
122
  </configuration>
122
123
  <recent_temporary>
123
124
  <list>
124
- <item itemvalue="npm.build-documentation" />
125
125
  <item itemvalue="JavaScript Debug.documentation.html (1)" />
126
+ <item itemvalue="npm.build-documentation" />
126
127
  <item itemvalue="npm.test" />
127
128
  <item itemvalue="Jest.index.test.js" />
128
129
  <item itemvalue="Jest.#errors" />
129
130
  </list>
130
131
  </recent_temporary>
131
132
  </component>
133
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
132
134
  <component name="SvnConfiguration">
133
135
  <configuration />
134
136
  </component>
@@ -584,7 +586,8 @@
584
586
  <workItem from="1595832239784" duration="11480000" />
585
587
  <workItem from="1595858491503" duration="4159000" />
586
588
  <workItem from="1595865087442" duration="564000" />
587
- <workItem from="1595914052000" duration="3422000" />
589
+ <workItem from="1595914052000" duration="4102000" />
590
+ <workItem from="1595939490548" duration="3433000" />
588
591
  </task>
589
592
  <servers />
590
593
  </component>
@@ -598,7 +601,7 @@
598
601
  </todo-panel>
599
602
  </component>
600
603
  <component name="TypeScriptGeneratedFilesManager">
601
- <option name="version" value="2" />
604
+ <option name="version" value="3" />
602
605
  </component>
603
606
  <component name="Vcs.Log.History.Properties">
604
607
  <option name="COLUMN_ORDER">
@@ -627,22 +630,22 @@
627
630
  <screen x="0" y="23" width="2048" height="1129" />
628
631
  </state>
629
632
  <state x="762" y="341" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog/0.23.2048.1129@0.23.2048.1129" timestamp="1595577705727" />
630
- <state width="2006" height="269" key="GridCell.Tab.0.bottom" timestamp="1595931212557">
633
+ <state width="2006" height="269" key="GridCell.Tab.0.bottom" timestamp="1595942694587">
631
634
  <screen x="0" y="23" width="2048" height="1129" />
632
635
  </state>
633
- <state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="1595931212557" />
634
- <state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="1595931212557">
636
+ <state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="1595942694587" />
637
+ <state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="1595942694587">
635
638
  <screen x="0" y="23" width="2048" height="1129" />
636
639
  </state>
637
- <state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="1595931212557" />
638
- <state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="1595931212557">
640
+ <state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="1595942694587" />
641
+ <state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="1595942694586">
639
642
  <screen x="0" y="23" width="2048" height="1129" />
640
643
  </state>
641
- <state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="1595931212557" />
642
- <state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="1595931212557">
644
+ <state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="1595942694586" />
645
+ <state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="1595942694587">
643
646
  <screen x="0" y="23" width="2048" height="1129" />
644
647
  </state>
645
- <state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="1595931212557" />
648
+ <state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="1595942694587" />
646
649
  <state x="689" y="276" width="670" height="676" key="search.everywhere.popup" timestamp="1595579270021">
647
650
  <screen x="0" y="23" width="2048" height="1129" />
648
651
  </state>
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [33.0.8](https://github.com/GLS-Spain/gps-common/compare/v33.0.7...v33.0.8) (2020-07-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * create expedition accepts a referenced sale only when created with a shop ([a19bfd0](https://github.com/GLS-Spain/gps-common/commit/a19bfd007d07691be15bc486a85d7392e52a2530))
7
+
8
+ ## [33.0.7](https://github.com/GLS-Spain/gps-common/compare/v33.0.6...v33.0.7) (2020-07-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * fix create sale request schema ([09db173](https://github.com/GLS-Spain/gps-common/commit/09db173bd8225e85386bd15043c6942e6caa503a))
14
+
1
15
  ## [33.0.6](https://github.com/GLS-Spain/gps-common/compare/v33.0.5...v33.0.6) (2020-07-28)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "33.0.6",
3
+ "version": "33.0.8",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -188,7 +188,7 @@ const expedition = () => ({
188
188
  additionalProperties: false,
189
189
  description: 'only available for deliveries and pickups after reception at the shop',
190
190
  },
191
- sale: mergeSchemas(objectWithUuid(), { description: 'associated sale, only for pickups created because of a sale' }),
191
+ sale: mergeSchemas(objectWithUuid(), { description: 'associated sale, only for expeditions created because of a sale' }),
192
192
  barcodes: { type: 'array', items: { type: 'string', trim: true } },
193
193
  packageCount: { type: 'integer' },
194
194
  weight: { type: 'number' },
@@ -348,7 +348,6 @@ const createExpeditionWithNetwork = () => ({
348
348
  'scheduleCode',
349
349
  'date',
350
350
  'expectedDeliveryDate',
351
- 'sale',
352
351
  'barcodes',
353
352
  'packageCount',
354
353
  'weight',
@@ -112,7 +112,7 @@ const createSaleRequest = () =>
112
112
  properties: {
113
113
  ...pickProperties(sale(), ['_id', 'createdAt', 'size', 'destination', 'sender']),
114
114
  },
115
- required: ['shop', 'size', 'destination', 'sender'],
115
+ required: ['size', 'destination', 'sender'],
116
116
  additionalProperties: false,
117
117
  });
118
118