@gls_spain/gps-common 34.9.2 → 34.9.4
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/.eslintignore +1 -1
- package/.eslintrc.json +11 -11
- package/.idea/codeStyles/Project.xml +36 -36
- package/.idea/codeStyles/codeStyleConfig.xml +4 -4
- package/.idea/gps-common.iml +11 -11
- package/.idea/inspectionProfiles/Project_Default.xml +6 -6
- package/.idea/jsLibraryMappings.xml +5 -5
- package/.idea/misc.xml +5 -5
- package/.idea/modules.xml +7 -7
- package/.idea/prettier.xml +6 -6
- package/.idea/scopes/Source_files.xml +2 -2
- package/.idea/vcs.xml +5 -5
- package/.prettierignore +4 -4
- package/.prettierrc.json +13 -13
- package/.releaserc +17 -17
- package/CHANGELOG.md +1271 -1257
- package/README.md +103 -103
- package/errors/CountersDoNotExistError.js +11 -11
- package/errors/DatabaseNotEmptyError.js +11 -11
- package/errors/DefaultsDoNotExistError.js +11 -11
- package/errors/ExpeditionAlreadyExistsError.js +11 -11
- package/errors/ExpeditionCannotBeDeletedError.js +11 -11
- package/errors/ExpeditionCannotBeUpdatedError.js +11 -11
- package/errors/ExpeditionDoesNotExistError.js +11 -11
- package/errors/GLSRecordingError.js +11 -11
- package/errors/GLSSpainError.js +11 -11
- package/errors/InconsistentSalesSettingsError.js +11 -11
- package/errors/InvalidSaleDestinationError.js +11 -11
- package/errors/LabelDoesNotExistError.js +11 -11
- package/errors/NetworkAlreadyExistsError.js +11 -11
- package/errors/NetworkCannotBeDeletedError.js +11 -11
- package/errors/NetworkCannotBeUpdatedError.js +11 -11
- package/errors/NetworkDoesNotExistError.js +11 -11
- package/errors/RepresentativeAlreadyExistsError.js +11 -11
- package/errors/RepresentativeCannotBeDeletedError.js +11 -11
- package/errors/RepresentativeDoesNotExistError.js +11 -11
- package/errors/SaleAlreadyExistsError.js +11 -11
- package/errors/SaleDoesNotExistError.js +11 -11
- package/errors/ShopAlreadyExistsError.js +11 -11
- package/errors/ShopCannotBeDeletedError.js +11 -11
- package/errors/ShopCannotBeUpdatedError.js +11 -11
- package/errors/ShopCannotSellError.js +11 -11
- package/errors/ShopDoesNotExistError.js +11 -11
- package/errors/ShopNotEnabledError.js +11 -11
- package/errors/UserAlreadyExistsError.js +11 -11
- package/errors/UserCannotBeDeletedError.js +11 -11
- package/errors/UserCannotBeUpdatedError.js +11 -11
- package/errors/UserDoesNotExistError.js +11 -11
- package/errors/WrongNetworkError.js +11 -11
- package/errors/WrongPasswordError.js +11 -11
- package/errors/WrongShopError.js +11 -11
- package/errors/ZoneAlreadyExistsError.js +11 -11
- package/errors/ZoneCannotBeDeletedError.js +11 -11
- package/errors/ZoneDoesNotExistError.js +11 -11
- package/errors/index.js +118 -118
- package/index.js +9 -9
- package/index.test.js +36 -36
- package/jest.config.js +5 -5
- package/open-api-spec/index.js +3715 -3715
- package/package.json +65 -69
- package/schemas/definitions/become.js +5 -5
- package/schemas/definitions/common.js +462 -451
- package/schemas/definitions/counters.js +43 -43
- package/schemas/definitions/defaults.js +140 -140
- package/schemas/definitions/expeditions.js +867 -867
- package/schemas/definitions/gls-spain-integration-events.js +139 -139
- package/schemas/definitions/historic-records.js +90 -90
- package/schemas/definitions/integrations.js +38 -38
- package/schemas/definitions/login.js +38 -38
- package/schemas/definitions/logout.js +8 -8
- package/schemas/definitions/networks.js +123 -123
- package/schemas/definitions/pods.js +26 -26
- package/schemas/definitions/representatives.js +194 -194
- package/schemas/definitions/sales.js +253 -249
- package/schemas/definitions/shops.js +413 -404
- package/schemas/definitions/users.js +337 -337
- package/schemas/definitions/zones.js +92 -92
- package/schemas/index.js +400 -400
- package/scripts/build-documentation.js +40 -40
- package/scripts/build-json-schemas.js +35 -35
- package/.idea/workspace.xml +0 -699
package/package.json
CHANGED
|
@@ -1,69 +1,65 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@gls_spain/gps-common",
|
|
3
|
-
"version": "34.9.
|
|
4
|
-
"description": "Errors, schemas and documentation for the Parcel Shops project",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"gls"
|
|
8
|
-
],
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
},
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"@gls_spain/
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"build-
|
|
63
|
-
"build-documentation": "
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
"build-gps-schemas": "scripts/build-json-schemas.js",
|
|
67
|
-
"build-gps-documentation": "scripts/build-documentation.js"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@gls_spain/gps-common",
|
|
3
|
+
"version": "34.9.4",
|
|
4
|
+
"description": "Errors, schemas and documentation for the Parcel Shops project",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"gls"
|
|
8
|
+
],
|
|
9
|
+
"author": {
|
|
10
|
+
"name": "Cristóbal Valverde Albo",
|
|
11
|
+
"email": "cristobal.valverde@gls-spain.es"
|
|
12
|
+
},
|
|
13
|
+
"license": "UNLICENSED",
|
|
14
|
+
"homepage": "https://github.com/GLS-Spain/gps-common",
|
|
15
|
+
"config": {
|
|
16
|
+
"commitizen": {
|
|
17
|
+
"path": "node_modules/cz-conventional-changelog"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"husky": {
|
|
21
|
+
"hooks": {
|
|
22
|
+
"pre-commit": "npm run test"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@semantic-release/changelog": "^5.0.1",
|
|
27
|
+
"@semantic-release/git": "^9.0.0",
|
|
28
|
+
"@semantic-release/npm": "^7.0.10",
|
|
29
|
+
"@semantic-release/release-notes-generator": "^9.0.1",
|
|
30
|
+
"@types/jest": "^25.2.3",
|
|
31
|
+
"ajv": "^6.12.6",
|
|
32
|
+
"commitizen": "^4.2.3",
|
|
33
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
34
|
+
"eslint": "^6.8.0",
|
|
35
|
+
"eslint-config-airbnb-base": "^14.2.1",
|
|
36
|
+
"eslint-config-prettier": "^6.15.0",
|
|
37
|
+
"eslint-plugin-import": "^2.22.1",
|
|
38
|
+
"husky": "^4.3.8",
|
|
39
|
+
"jest": "^25.5.4",
|
|
40
|
+
"prettier": "^1.19.1",
|
|
41
|
+
"redoc-cli": "^0.9.13",
|
|
42
|
+
"semantic-release": "^17.4.1"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@gls_spain/ajv-options": "^1.1.2",
|
|
46
|
+
"@gls_spain/common-errors": "^1.1.0",
|
|
47
|
+
"@gls_spain/common-json-schemas": "^1.2.4",
|
|
48
|
+
"@gls_spain/mongodb": "^1.2.0",
|
|
49
|
+
"@gls_spain/winston-transports": "^1.0.2",
|
|
50
|
+
"lodash": "^4.17.21",
|
|
51
|
+
"winston": "^3.3.3",
|
|
52
|
+
"yargs": "^15.4.1"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"commit": "git-cz",
|
|
56
|
+
"semantic-release": "semantic-release",
|
|
57
|
+
"test": "jest",
|
|
58
|
+
"build-json-schemas": "node scripts/build-json-schemas.js --output=build/schemas",
|
|
59
|
+
"build-documentation": "node scripts/build-documentation.js --output=build/documentation/documentation.html"
|
|
60
|
+
},
|
|
61
|
+
"bin": {
|
|
62
|
+
"build-gps-schemas": "scripts/build-json-schemas.js",
|
|
63
|
+
"build-gps-documentation": "scripts/build-documentation.js"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const { objectWithUuid } = require('@gls_spain/common-json-schemas');
|
|
2
|
-
|
|
3
|
-
const becomeRequest = () => objectWithUuid();
|
|
4
|
-
|
|
5
|
-
module.exports = { becomeRequest };
|
|
1
|
+
const { objectWithUuid } = require('@gls_spain/common-json-schemas');
|
|
2
|
+
|
|
3
|
+
const becomeRequest = () => objectWithUuid();
|
|
4
|
+
|
|
5
|
+
module.exports = { becomeRequest };
|