@gls_spain/gps-common 34.6.0 → 34.7.0
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/scopes/Source_files.xml +3 -0
- package/.idea/watcherTasks.xml +2 -2
- package/.idea/workspace.xml +33 -35
- package/CHANGELOG.md +12 -0
- package/errors/GLSRecordingError.js +11 -0
- package/errors/index.js +3 -0
- package/open-api-spec/index.js +1 -1
- package/package.json +2 -2
- package/schemas/definitions/sales.js +1 -0
package/.idea/watcherTasks.xml
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<option name="outputFromStdout" value="false" />
|
|
17
17
|
<option name="program" value="$ProjectFileDir$/node_modules/.bin/prettier" />
|
|
18
18
|
<option name="runOnExternalChanges" value="true" />
|
|
19
|
-
<option name="scopeName" value="
|
|
19
|
+
<option name="scopeName" value="Source files" />
|
|
20
20
|
<option name="trackOnlyRoot" value="false" />
|
|
21
21
|
<option name="workingDir" value="$ProjectFileDir$" />
|
|
22
22
|
<envs />
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<option name="outputFromStdout" value="false" />
|
|
37
37
|
<option name="program" value="$ProjectFileDir$/node_modules/.bin/prettier" />
|
|
38
38
|
<option name="runOnExternalChanges" value="true" />
|
|
39
|
-
<option name="scopeName" value="
|
|
39
|
+
<option name="scopeName" value="Source files" />
|
|
40
40
|
<option name="trackOnlyRoot" value="false" />
|
|
41
41
|
<option name="workingDir" value="$ProjectFileDir$" />
|
|
42
42
|
<envs />
|
package/.idea/workspace.xml
CHANGED
|
@@ -2,9 +2,13 @@
|
|
|
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 afterPath="$PROJECT_DIR
|
|
5
|
+
<change beforePath="$PROJECT_DIR$/.idea/watcherTasks.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/watcherTasks.xml" afterDir="false" />
|
|
6
|
+
<change beforePath="$PROJECT_DIR$/errors/GLSRecordingError.js" beforeDir="false" afterPath="$PROJECT_DIR$/errors/GLSRecordingError.js" afterDir="false" />
|
|
6
7
|
<change beforePath="$PROJECT_DIR$/errors/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/errors/index.js" afterDir="false" />
|
|
7
8
|
<change beforePath="$PROJECT_DIR$/open-api-spec/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/open-api-spec/index.js" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
|
|
10
|
+
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
11
|
+
<change beforePath="$PROJECT_DIR$/schemas/definitions/sales.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/sales.js" afterDir="false" />
|
|
8
12
|
</list>
|
|
9
13
|
<option name="SHOW_DIALOG" value="false" />
|
|
10
14
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -27,6 +31,11 @@
|
|
|
27
31
|
<other-services-enabled>true</other-services-enabled>
|
|
28
32
|
<auto-save>true</auto-save>
|
|
29
33
|
</component>
|
|
34
|
+
<component name="NamedScopeManager">
|
|
35
|
+
<order>
|
|
36
|
+
<scope name="Source files" />
|
|
37
|
+
</order>
|
|
38
|
+
</component>
|
|
30
39
|
<component name="ProjectId" id="1ONNcC0Dj8TpB0ikqd9Zaci2JZf" />
|
|
31
40
|
<component name="ProjectLevelVcsManager">
|
|
32
41
|
<ConfirmationsSetting value="2" id="Add" />
|
|
@@ -39,13 +48,14 @@
|
|
|
39
48
|
<property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
|
|
40
49
|
<property name="ASKED_SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
|
41
50
|
<property name="NewWatcherDialog.advanced.open" value="true" />
|
|
51
|
+
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
|
42
52
|
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
|
43
53
|
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
|
44
54
|
<property name="TERMINAL_CUSTOM_COMMANDS_GOT_IT" value="true" />
|
|
45
55
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
46
|
-
<property name="javascript.nodejs.core.library.configured.version" value="12.
|
|
47
|
-
<property name="javascript.nodejs.core.library.typings.version" value="12.
|
|
48
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR
|
|
56
|
+
<property name="javascript.nodejs.core.library.configured.version" value="12.14.0" />
|
|
57
|
+
<property name="javascript.nodejs.core.library.typings.version" value="12.19.9" />
|
|
58
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
49
59
|
<property name="node.js.detected.package.eslint" value="true" />
|
|
50
60
|
<property name="node.js.detected.package.standard" value="true" />
|
|
51
61
|
<property name="node.js.path.for.package.eslint" value="project" />
|
|
@@ -63,13 +73,6 @@
|
|
|
63
73
|
<property name="vue.rearranger.settings.migration" value="true" />
|
|
64
74
|
</component>
|
|
65
75
|
<component name="RecentsManager">
|
|
66
|
-
<key name="CopyFile.RECENT_KEYS">
|
|
67
|
-
<recent name="$PROJECT_DIR$/errors" />
|
|
68
|
-
<recent name="$PROJECT_DIR$/schemas/definitions" />
|
|
69
|
-
<recent name="$PROJECT_DIR$" />
|
|
70
|
-
<recent name="$PROJECT_DIR$/schemas" />
|
|
71
|
-
<recent name="$PROJECT_DIR$/lib/scripts" />
|
|
72
|
-
</key>
|
|
73
76
|
<key name="MoveFile.RECENT_KEYS">
|
|
74
77
|
<recent name="$PROJECT_DIR$/open-api" />
|
|
75
78
|
<recent name="$PROJECT_DIR$" />
|
|
@@ -77,6 +80,13 @@
|
|
|
77
80
|
<recent name="$PROJECT_DIR$/open-api-spec" />
|
|
78
81
|
<recent name="$PROJECT_DIR$/errors" />
|
|
79
82
|
</key>
|
|
83
|
+
<key name="CopyFile.RECENT_KEYS">
|
|
84
|
+
<recent name="$PROJECT_DIR$/errors" />
|
|
85
|
+
<recent name="$PROJECT_DIR$/schemas/definitions" />
|
|
86
|
+
<recent name="$PROJECT_DIR$" />
|
|
87
|
+
<recent name="$PROJECT_DIR$/schemas" />
|
|
88
|
+
<recent name="$PROJECT_DIR$/lib/scripts" />
|
|
89
|
+
</key>
|
|
80
90
|
</component>
|
|
81
91
|
<component name="RunManager" selected="JavaScript Debug.documentation.html (1)">
|
|
82
92
|
<configuration name="documentation.html (1)" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/gps-common/build/documentation/documentation.html" useBuiltInWebServerPort="true">
|
|
@@ -125,8 +135,8 @@
|
|
|
125
135
|
<recent_temporary>
|
|
126
136
|
<list>
|
|
127
137
|
<item itemvalue="npm.test" />
|
|
128
|
-
<item itemvalue="npm.build-documentation" />
|
|
129
138
|
<item itemvalue="JavaScript Debug.documentation.html (1)" />
|
|
139
|
+
<item itemvalue="npm.build-documentation" />
|
|
130
140
|
<item itemvalue="npm.semantic-release" />
|
|
131
141
|
<item itemvalue="npm.commit" />
|
|
132
142
|
</list>
|
|
@@ -636,7 +646,17 @@
|
|
|
636
646
|
<workItem from="1603705612447" duration="352000" />
|
|
637
647
|
<workItem from="1603706953993" duration="423000" />
|
|
638
648
|
<workItem from="1605609847030" duration="706000" />
|
|
639
|
-
<workItem from="1605809676752" duration="
|
|
649
|
+
<workItem from="1605809676752" duration="1017000" />
|
|
650
|
+
<workItem from="1605876571382" duration="624000" />
|
|
651
|
+
<workItem from="1605900661533" duration="76000" />
|
|
652
|
+
<workItem from="1606052972013" duration="21000" />
|
|
653
|
+
<workItem from="1606121670993" duration="473000" />
|
|
654
|
+
<workItem from="1606141520470" duration="29000" />
|
|
655
|
+
<workItem from="1606477130384" duration="74000" />
|
|
656
|
+
<workItem from="1606835326733" duration="48000" />
|
|
657
|
+
<workItem from="1607951320583" duration="589000" />
|
|
658
|
+
<workItem from="1608286770164" duration="53000" />
|
|
659
|
+
<workItem from="1608574754236" duration="463000" />
|
|
640
660
|
</task>
|
|
641
661
|
<servers />
|
|
642
662
|
</component>
|
|
@@ -674,26 +694,4 @@
|
|
|
674
694
|
</option>
|
|
675
695
|
<option name="oldMeFiltersMigrated" value="true" />
|
|
676
696
|
</component>
|
|
677
|
-
<component name="WindowStateProjectService">
|
|
678
|
-
<state width="2006" height="269" key="GridCell.Tab.0.bottom" timestamp="1605810518546">
|
|
679
|
-
<screen x="0" y="23" width="2048" height="1129" />
|
|
680
|
-
</state>
|
|
681
|
-
<state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="1605810518546" />
|
|
682
|
-
<state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="1605810518545">
|
|
683
|
-
<screen x="0" y="23" width="2048" height="1129" />
|
|
684
|
-
</state>
|
|
685
|
-
<state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="1605810518545" />
|
|
686
|
-
<state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="1605810518545">
|
|
687
|
-
<screen x="0" y="23" width="2048" height="1129" />
|
|
688
|
-
</state>
|
|
689
|
-
<state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="1605810518545" />
|
|
690
|
-
<state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="1605810518545">
|
|
691
|
-
<screen x="0" y="23" width="2048" height="1129" />
|
|
692
|
-
</state>
|
|
693
|
-
<state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="1605810518545" />
|
|
694
|
-
<state x="725" y="342" width="736" height="612" key="find.popup" timestamp="1598206991663">
|
|
695
|
-
<screen x="0" y="23" width="2048" height="1129" />
|
|
696
|
-
</state>
|
|
697
|
-
<state x="725" y="342" width="736" height="612" key="find.popup/0.23.2048.1129@0.23.2048.1129" timestamp="1598206991663" />
|
|
698
|
-
</component>
|
|
699
697
|
</project>
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [34.7.0](https://github.com/GLS-Spain/gps-common/compare/v34.6.0...v34.7.0) (2020-12-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* change get defaults permissions to any role ([92c5f19](https://github.com/GLS-Spain/gps-common/commit/92c5f193ec744ac9cb66021ba20ef1b499ccd2f1))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add gls recording error ([15731bb](https://github.com/GLS-Spain/gps-common/commit/15731bb6e10a02178ecc536bd12ea34cde06ca97))
|
|
12
|
+
|
|
1
13
|
# [34.6.0](https://github.com/GLS-Spain/gps-common/compare/v34.5.1...v34.6.0) (2020-11-19)
|
|
2
14
|
|
|
3
15
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const { DatabaseError } = require('@gls_spain/mongodb');
|
|
2
|
+
|
|
3
|
+
class GLSRecordingError extends DatabaseError {
|
|
4
|
+
constructor(message = 'GLS Spain recording layer error.') {
|
|
5
|
+
// noinspection JSCheckFunctionSignatures
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = 'GLSRecordingError';
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
module.exports = GLSRecordingError;
|
package/errors/index.js
CHANGED
|
@@ -33,6 +33,7 @@ const SaleAlreadyExistsError = require('./SaleAlreadyExistsError');
|
|
|
33
33
|
const InconsistentSalesSettingsError = require('./InconsistentSalesSettingsError');
|
|
34
34
|
const InvalidSaleDestinationError = require('./InvalidSaleDestinationError');
|
|
35
35
|
const GLSSpainError = require('./GLSSpainError');
|
|
36
|
+
const GLSRecordingError = require('./GLSRecordingError');
|
|
36
37
|
|
|
37
38
|
const errorsNames = {
|
|
38
39
|
DatabaseNotEmptyError: 'DatabaseNotEmptyError',
|
|
@@ -70,6 +71,7 @@ const errorsNames = {
|
|
|
70
71
|
InconsistentSalesSettingsError: 'InconsistentSalesSettingsError',
|
|
71
72
|
InvalidSaleDestinationError: 'InvalidSaleDestinationError',
|
|
72
73
|
GLSSpainError: 'GLSSpainError',
|
|
74
|
+
GLSRecordingError: 'GLSRecordingError',
|
|
73
75
|
};
|
|
74
76
|
|
|
75
77
|
module.exports = {
|
|
@@ -108,5 +110,6 @@ module.exports = {
|
|
|
108
110
|
InconsistentSalesSettingsError,
|
|
109
111
|
InvalidSaleDestinationError,
|
|
110
112
|
GLSSpainError,
|
|
113
|
+
GLSRecordingError,
|
|
111
114
|
errorsNames,
|
|
112
115
|
};
|
package/open-api-spec/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gls_spain/gps-common",
|
|
3
|
-
"version": "34.
|
|
3
|
+
"version": "34.7.0",
|
|
4
4
|
"description": "Errors, schemas and documentation for the Parcel Shops project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"jest": "^25.5.4",
|
|
44
44
|
"prettier": "^1.19.1",
|
|
45
45
|
"redoc-cli": "^0.9.12",
|
|
46
|
-
"semantic-release": "^17.
|
|
46
|
+
"semantic-release": "^17.3.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@gls_spain/ajv-options": "^1.1.2",
|
|
@@ -42,6 +42,7 @@ const sale = () => ({
|
|
|
42
42
|
status: {
|
|
43
43
|
type: 'object',
|
|
44
44
|
properties: {
|
|
45
|
+
// todo add paidAt if status=paymentRequested
|
|
45
46
|
code: {
|
|
46
47
|
type: 'string',
|
|
47
48
|
enum: ['invalidOrIncomplete', 'cancelledByCustomer', 'authorizationRefused', 'paymentRequested', 'paymentDeleted', 'refund'],
|