@gls_spain/gps-common 31.0.0 → 31.0.2
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.
- package/.idea/workspace.xml +22 -10
- package/CHANGELOG.md +14 -0
- package/package.json +10 -10
- package/schemas/definitions/init.js +7 -2
- package/schemas/definitions/integrations.js +13 -4
package/.idea/workspace.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
4
|
<list default="true" id="c2833e40-3178-44f3-9bc5-203849985c7f" name="Default Changelist" comment="">
|
|
5
|
-
<change beforePath="$PROJECT_DIR$/
|
|
5
|
+
<change beforePath="$PROJECT_DIR$/schemas/definitions/init.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/init.js" afterDir="false" />
|
|
6
6
|
</list>
|
|
7
7
|
<option name="SHOW_DIALOG" value="false" />
|
|
8
8
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -521,7 +521,19 @@
|
|
|
521
521
|
<workItem from="1584794887440" duration="928000" />
|
|
522
522
|
<workItem from="1584814298765" duration="350000" />
|
|
523
523
|
<workItem from="1584822264041" duration="1155000" />
|
|
524
|
-
<workItem from="1584861318833" duration="
|
|
524
|
+
<workItem from="1584861318833" duration="3075000" />
|
|
525
|
+
<workItem from="1584888548293" duration="662000" />
|
|
526
|
+
<workItem from="1584894673750" duration="635000" />
|
|
527
|
+
<workItem from="1584904383142" duration="408000" />
|
|
528
|
+
<workItem from="1584941666619" duration="1322000" />
|
|
529
|
+
<workItem from="1584974170194" duration="564000" />
|
|
530
|
+
<workItem from="1584991106339" duration="604000" />
|
|
531
|
+
<workItem from="1585036781540" duration="634000" />
|
|
532
|
+
<workItem from="1585060691790" duration="705000" />
|
|
533
|
+
<workItem from="1585071898721" duration="603000" />
|
|
534
|
+
<workItem from="1585076315474" duration="929000" />
|
|
535
|
+
<workItem from="1585115696576" duration="1386000" />
|
|
536
|
+
<workItem from="1585152558330" duration="837000" />
|
|
525
537
|
</task>
|
|
526
538
|
<servers />
|
|
527
539
|
</component>
|
|
@@ -577,22 +589,22 @@
|
|
|
577
589
|
<screen x="0" y="23" width="2048" height="1129" />
|
|
578
590
|
</state>
|
|
579
591
|
<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="
|
|
592
|
+
<state width="2006" height="269" key="GridCell.Tab.0.bottom" timestamp="1585153665514">
|
|
581
593
|
<screen x="0" y="23" width="2048" height="1129" />
|
|
582
594
|
</state>
|
|
583
|
-
<state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="
|
|
584
|
-
<state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="
|
|
595
|
+
<state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="1585153665514" />
|
|
596
|
+
<state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="1585153665513">
|
|
585
597
|
<screen x="0" y="23" width="2048" height="1129" />
|
|
586
598
|
</state>
|
|
587
|
-
<state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="
|
|
588
|
-
<state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="
|
|
599
|
+
<state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="1585153665513" />
|
|
600
|
+
<state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="1585153665513">
|
|
589
601
|
<screen x="0" y="23" width="2048" height="1129" />
|
|
590
602
|
</state>
|
|
591
|
-
<state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="
|
|
592
|
-
<state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="
|
|
603
|
+
<state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="1585153665513" />
|
|
604
|
+
<state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="1585153665513">
|
|
593
605
|
<screen x="0" y="23" width="2048" height="1129" />
|
|
594
606
|
</state>
|
|
595
|
-
<state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="
|
|
607
|
+
<state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="1585153665513" />
|
|
596
608
|
<state x="0" y="23" width="2048" height="1129" key="SettingsEditor" timestamp="1580283935326">
|
|
597
609
|
<screen x="0" y="23" width="2048" height="1129" />
|
|
598
610
|
</state>
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [31.0.2](https://github.com/GLS-Spain/gps-common/compare/v31.0.1...v31.0.2) (2020-03-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix init request schema ([c07a631](https://github.com/GLS-Spain/gps-common/commit/c07a6314d6e8c1aff0d3b4068964f1aeaecd829e))
|
|
7
|
+
|
|
8
|
+
## [31.0.1](https://github.com/GLS-Spain/gps-common/compare/v31.0.0...v31.0.1) (2020-03-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fix networks field in integration schema ([f77408d](https://github.com/GLS-Spain/gps-common/commit/f77408d871aee56d6d8dc8ffdb2eaeb844570d3e))
|
|
14
|
+
|
|
1
15
|
# [31.0.0](https://github.com/GLS-Spain/gps-common/compare/v30.0.1...v31.0.0) (2020-03-22)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gls_spain/gps-common",
|
|
3
|
-
"version": "31.0.
|
|
3
|
+
"version": "31.0.2",
|
|
4
4
|
"description": "Errors, schemas and documentation for the Parcel Shops project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -29,31 +29,31 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@semantic-release/changelog": "^5.0.0",
|
|
31
31
|
"@semantic-release/git": "^9.0.0",
|
|
32
|
-
"@semantic-release/npm": "^7.0.
|
|
33
|
-
"@semantic-release/release-notes-generator": "^9.0.
|
|
34
|
-
"@types/jest": "^25.1.
|
|
35
|
-
"ajv": "^6.
|
|
32
|
+
"@semantic-release/npm": "^7.0.5",
|
|
33
|
+
"@semantic-release/release-notes-generator": "^9.0.1",
|
|
34
|
+
"@types/jest": "^25.1.4",
|
|
35
|
+
"ajv": "^6.12.0",
|
|
36
36
|
"commitizen": "^4.0.3",
|
|
37
37
|
"cz-conventional-changelog": "^3.1.0",
|
|
38
38
|
"eslint": "^6.8.0",
|
|
39
|
-
"eslint-config-airbnb-base": "^14.
|
|
40
|
-
"eslint-config-prettier": "^6.10.
|
|
39
|
+
"eslint-config-airbnb-base": "^14.1.0",
|
|
40
|
+
"eslint-config-prettier": "^6.10.1",
|
|
41
41
|
"eslint-plugin-import": "^2.20.1",
|
|
42
42
|
"husky": "^4.2.3",
|
|
43
43
|
"jest": "^25.1.0",
|
|
44
44
|
"prettier": "^1.19.1",
|
|
45
|
-
"redoc-cli": "^0.9.
|
|
45
|
+
"redoc-cli": "^0.9.7",
|
|
46
46
|
"semantic-release": "^17.0.4"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@gls_spain/ajv-options": "^1.1.0",
|
|
50
50
|
"@gls_spain/common-errors": "^1.0.0",
|
|
51
51
|
"@gls_spain/common-json-schemas": "^1.1.0",
|
|
52
|
-
"@gls_spain/mongodb": "^1.0
|
|
52
|
+
"@gls_spain/mongodb": "^1.1.0",
|
|
53
53
|
"@gls_spain/winston-transports": "^1.0.0",
|
|
54
54
|
"lodash": "^4.17.15",
|
|
55
55
|
"winston": "^3.2.1",
|
|
56
|
-
"yargs": "^15.1
|
|
56
|
+
"yargs": "^15.3.1"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"commit": "git-cz",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { password } = require('@gls_spain/common-json-schemas');
|
|
1
|
+
const { password, pickProperties } = require('@gls_spain/common-json-schemas');
|
|
2
2
|
const { superAdmin } = require('./users');
|
|
3
3
|
const { defaults } = require('./defaults');
|
|
4
4
|
|
|
@@ -14,7 +14,12 @@ const initRequest = () => ({
|
|
|
14
14
|
required: ['username', 'password'],
|
|
15
15
|
additionalProperties: false,
|
|
16
16
|
},
|
|
17
|
-
defaults:
|
|
17
|
+
defaults: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: { ...pickProperties(defaults(), ['derivationSettings', 'expirationSettings']) },
|
|
20
|
+
required: ['derivationSettings', 'expirationSettings'],
|
|
21
|
+
additionalProperties: false,
|
|
22
|
+
},
|
|
18
23
|
},
|
|
19
24
|
required: ['superAdmin', 'defaults'],
|
|
20
25
|
additionalProperties: false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
const {
|
|
3
|
-
const {
|
|
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:
|
|
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,
|