refactor: use core supplied mappings

This commit is contained in:
Wieland Schöbl
2021-09-03 15:17:15 +00:00
committed by Rainer Killinger
parent 614a1b1e9b
commit 43a89ec4f2
22 changed files with 1622 additions and 1762 deletions

View File

@@ -25,41 +25,39 @@
"preversion": "npm run prepublishOnly",
"push": "git push && git push origin \"v$npm_package_version\"",
"start": "NODE_CONFIG_ENV=elasticsearch ALLOW_NO_TRANSPORT=true node ./lib/cli.js",
"start-debug": "STAPPS_LOG_LEVEL=31 NODE_CONFIG_ENV=elasticsearch ALLOW_NO_TRANSPORT=true ES_FORCE_MAPPING_UPDATE=true node ./lib/cli.js --require ts-node/register",
"start-debug": "STAPPS_LOG_LEVEL=31 NODE_CONFIG_ENV=elasticsearch ALLOW_NO_TRANSPORT=true node ./lib/cli.js --require ts-node/register",
"test": "npm run test-unit && npm run test-integration",
"test-unit": "env NODE_CONFIG_ENV=elasticsearch ALLOW_NO_TRANSPORT=true ES_FORCE_MAPPING_UPDATE=true STAPPS_LOG_LEVEL=0 nyc mocha --require ts-node/register --exit 'test/**/*.spec.ts'",
"test-unit": "env NODE_CONFIG_ENV=elasticsearch ALLOW_NO_TRANSPORT=true STAPPS_LOG_LEVEL=0 nyc mocha --require ts-node/register --exit 'test/**/*.spec.ts'",
"test-integration": "sudo docker-compose -f integration-test.yml pull && sudo docker-compose -f integration-test.yml up --build --abort-on-container-exit --exit-code-from apicli",
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'"
},
"dependencies": {
"@elastic/elasticsearch": "5.6.22",
"@openstapps/core": "0.48.0",
"@openstapps/core-tools": "0.23.2",
"@openstapps/core": "0.50.0",
"@openstapps/core-tools": "0.25.0",
"@openstapps/logger": "0.7.0",
"@types/express-prometheus-middleware": "1.2.1",
"@types/node": "14.17.7",
"commander": "7.2.0",
"@types/node": "14.17.12",
"config": "3.3.6",
"cors": "2.8.5",
"express": "4.17.1",
"express-prometheus-middleware": "1.2.0",
"express-promise-router": "4.1.0",
"fs-extra": "9.1.0",
"got": "11.8.2",
"moment": "2.29.1",
"morgan": "1.10.0",
"nock": "13.1.1",
"nock": "13.1.3",
"node-cache": "5.1.2",
"node-cron": "3.0.0",
"nodemailer": "6.6.3",
"prom-client": "12.0.0",
"prom-client": "13.2.0",
"promise-queue": "2.2.5",
"sanitize-filename": "1.6.3",
"ts-node": "9.1.1",
"ts-node": "10.2.1",
"uuid": "8.3.2"
},
"devDependencies": {
"@openstapps/configuration": "0.27.0",
"@openstapps/es-mapping-generator": "0.0.3",
"@testdeck/mocha": "0.1.2",
"@types/chai": "4.2.21",
"@types/chai-as-promised": "7.1.4",
@@ -67,9 +65,8 @@
"@types/cors": "2.8.12",
"@types/elasticsearch": "5.0.38",
"@types/express": "4.17.13",
"@types/fs-extra": "9.0.12",
"@types/geojson": "1.0.6",
"@types/mocha": "8.2.3",
"@types/mocha": "9.0.0",
"@types/morgan": "1.9.3",
"@types/node-cron": "2.0.4",
"@types/nodemailer": "6.4.4",
@@ -81,17 +78,17 @@
"chai-as-promised": "7.1.1",
"conventional-changelog-cli": "2.1.1",
"get-port": "5.1.1",
"mocha": "8.4.0",
"mocha": "9.1.1",
"mocked-env": "1.3.5",
"nyc": "15.1.0",
"prepend-file-cli": "1.0.6",
"redoc-cli": "0.12.2",
"redoc-cli": "0.12.3",
"rimraf": "3.0.2",
"sinon": "10.0.0",
"sinon": "11.1.2",
"sinon-express-mock": "2.2.1",
"supertest": "6.1.4",
"supertest": "6.1.6",
"tslint": "6.1.3",
"typedoc": "0.18.0",
"typedoc": "0.21.9",
"typescript": "3.8.3"
},
"nyc": {