@gls_spain/gps-common 31.0.0 → 31.0.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.
@@ -1,9 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="c2833e40-3178-44f3-9bc5-203849985c7f" name="Default Changelist" comment="">
5
- <change beforePath="$PROJECT_DIR$/open-api-spec/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/open-api-spec/index.js" afterDir="false" />
6
- </list>
4
+ <list default="true" id="c2833e40-3178-44f3-9bc5-203849985c7f" name="Default Changelist" comment="" />
7
5
  <option name="SHOW_DIALOG" value="false" />
8
6
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
9
7
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -521,7 +519,18 @@
521
519
  <workItem from="1584794887440" duration="928000" />
522
520
  <workItem from="1584814298765" duration="350000" />
523
521
  <workItem from="1584822264041" duration="1155000" />
524
- <workItem from="1584861318833" duration="2806000" />
522
+ <workItem from="1584861318833" duration="3075000" />
523
+ <workItem from="1584888548293" duration="662000" />
524
+ <workItem from="1584894673750" duration="635000" />
525
+ <workItem from="1584904383142" duration="408000" />
526
+ <workItem from="1584941666619" duration="1322000" />
527
+ <workItem from="1584974170194" duration="564000" />
528
+ <workItem from="1584991106339" duration="604000" />
529
+ <workItem from="1585036781540" duration="634000" />
530
+ <workItem from="1585060691790" duration="705000" />
531
+ <workItem from="1585071898721" duration="603000" />
532
+ <workItem from="1585076315474" duration="929000" />
533
+ <workItem from="1585115696576" duration="621000" />
525
534
  </task>
526
535
  <servers />
527
536
  </component>
@@ -577,22 +586,22 @@
577
586
  <screen x="0" y="23" width="2048" height="1129" />
578
587
  </state>
579
588
  <state x="606" y="280" key="EditFileWatcherDialog/0.23.2048.1129@0.23.2048.1129" timestamp="1580283934403" />
580
- <state width="2006" height="269" key="GridCell.Tab.0.bottom" timestamp="1584864247635">
589
+ <state width="2006" height="269" key="GridCell.Tab.0.bottom" timestamp="1585146451677">
581
590
  <screen x="0" y="23" width="2048" height="1129" />
582
591
  </state>
583
- <state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="1584864247635" />
584
- <state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="1584864247634">
592
+ <state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="1585146451677" />
593
+ <state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="1585146451677">
585
594
  <screen x="0" y="23" width="2048" height="1129" />
586
595
  </state>
587
- <state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="1584864247634" />
588
- <state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="1584864247634">
596
+ <state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="1585146451677" />
597
+ <state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="1585146451677">
589
598
  <screen x="0" y="23" width="2048" height="1129" />
590
599
  </state>
591
- <state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="1584864247634" />
592
- <state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="1584864247634">
600
+ <state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="1585146451677" />
601
+ <state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="1585146451677">
593
602
  <screen x="0" y="23" width="2048" height="1129" />
594
603
  </state>
595
- <state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="1584864247634" />
604
+ <state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="1585146451677" />
596
605
  <state x="0" y="23" width="2048" height="1129" key="SettingsEditor" timestamp="1580283935326">
597
606
  <screen x="0" y="23" width="2048" height="1129" />
598
607
  </state>
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [31.0.1](https://github.com/GLS-Spain/gps-common/compare/v31.0.0...v31.0.1) (2020-03-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix networks field in integration schema ([f77408d](https://github.com/GLS-Spain/gps-common/commit/f77408d871aee56d6d8dc8ffdb2eaeb844570d3e))
7
+
1
8
  # [31.0.0](https://github.com/GLS-Spain/gps-common/compare/v30.0.1...v31.0.0) (2020-03-22)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "31.0.0",
3
+ "version": "31.0.1",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
- const omit = require('lodash/omit');
2
- const { uuid, datetime, findRequest, findResponse, mergeSchemas } = require('@gls_spain/common-json-schemas');
3
- const { findAll, findByIds } = require('./common');
1
+ const { uuid, datetime, findRequest, findResponse, pickProperties } = require('@gls_spain/common-json-schemas');
2
+ const { findAll } = require('./common');
3
+ const { network } = require('./networks');
4
4
 
5
5
  const integration = () => ({
6
6
  title: 'integration',
@@ -12,7 +12,16 @@ const integration = () => ({
12
12
  deletable: { type: 'boolean' },
13
13
  name: { type: 'string' },
14
14
  enabled: { type: 'boolean' },
15
- networks: mergeSchemas(omit(findByIds(), 'title'), { description: 'the integration only applies to these networks' }),
15
+ networks: {
16
+ type: 'array',
17
+ items: {
18
+ type: 'object',
19
+ properties: { ...pickProperties(network(), ['_id', 'name']) },
20
+ required: ['_id', 'name'],
21
+ additionalProperties: false,
22
+ },
23
+ uniqueItems: true,
24
+ },
16
25
  },
17
26
  required: ['_id', 'createdAt', 'updatedAt', 'name', 'enabled', 'networks'],
18
27
  additionalProperties: false,