@golemio/parkings 1.0.9 → 1.0.10-dev.427083106
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.
|
@@ -13,6 +13,7 @@ exports.parkingsRouter = exports.KoridParkingsRouter = void 0;
|
|
|
13
13
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
14
14
|
const helpers_1 = require("@golemio/core/dist/input-gateway/helpers");
|
|
15
15
|
const _1 = require("./");
|
|
16
|
+
const monitoring_1 = require("@golemio/core/dist/monitoring");
|
|
16
17
|
class KoridParkingsRouter {
|
|
17
18
|
constructor() {
|
|
18
19
|
// Assign router to the express.Router() instance
|
|
@@ -35,6 +36,7 @@ class KoridParkingsRouter {
|
|
|
35
36
|
req,
|
|
36
37
|
};
|
|
37
38
|
helpers_1.loggerEvents.emit(helpers_1.LoggerEventType.NumberOfRecords, dataToEmit);
|
|
39
|
+
monitoring_1.metricsService.recordNumberOfRecords(req, req.body.geojson.features.length);
|
|
38
40
|
res.sendStatus(204);
|
|
39
41
|
}
|
|
40
42
|
catch (err) {
|
|
@@ -50,6 +52,7 @@ class KoridParkingsRouter {
|
|
|
50
52
|
req,
|
|
51
53
|
};
|
|
52
54
|
helpers_1.loggerEvents.emit(helpers_1.LoggerEventType.NumberOfRecords, dataToEmit);
|
|
55
|
+
monitoring_1.metricsService.recordNumberOfRecords(req, Object.keys(req.body.data).length);
|
|
53
56
|
res.sendStatus(204);
|
|
54
57
|
}
|
|
55
58
|
catch (err) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KoridParkingsRouter.js","sourceRoot":"","sources":["../../../src/input-gateway/korid-parkings/KoridParkingsRouter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4F;AAC5F,sEAKkD;AAClD,yBAAgF;AAChF,MAAa,mBAAmB;IAM5B;QALA,iDAAiD;QAC1C,WAAM,GAAW,IAAA,gBAAM,GAAE,CAAC;QACzB,qBAAgB,GAAkC,IA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|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
2
|
+
"name": "@golemio/parkings",
|
|
3
|
+
"version": "1.0.10-dev.427083106",
|
|
4
|
+
"description": "Golemio Parkings Module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "rimraf ./dist && ttsc -p ./tsconfig.build.json",
|
|
9
|
+
"build-minimal": "run-s 'build --sourceMap false --declaration false'",
|
|
10
|
+
"build-watch": "run-s 'build --watch --preserveWatchOutput'",
|
|
11
|
+
"pretest": "golemio-import-test-data",
|
|
12
|
+
"test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r dotenv/config 'test/**/*.test.ts'",
|
|
13
|
+
"test-debug": "run-s 'test --inspect-brk=9230'",
|
|
14
|
+
"code-coverage": "nyc run-s 'test -r source-map-support/register'",
|
|
15
|
+
"generate-docs": "typedoc --out docs/typedoc src",
|
|
16
|
+
"lint": "eslint '{src,test}/**/*.ts'"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"golemio"
|
|
20
|
+
],
|
|
21
|
+
"author": "Operator ICT, a.s.",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://gitlab.com/operator-ict/golemio/code/modules/parkings"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@commitlint/cli": "^11.0.0",
|
|
29
|
+
"@commitlint/config-conventional": "^11.0.0",
|
|
30
|
+
"@golemio/core": "1.1.9-dev.425846246",
|
|
31
|
+
"@golemio/eslint-config": "^1.0.2",
|
|
32
|
+
"@golemio/schema-definitions": "2.0.21",
|
|
33
|
+
"@types/chai": "4.2.3",
|
|
34
|
+
"@types/chai-as-promised": "7.1.2",
|
|
35
|
+
"@types/mocha": "^8.2.0",
|
|
36
|
+
"@types/node": "^14.14.20",
|
|
37
|
+
"@types/proxyquire": "^1.3.28",
|
|
38
|
+
"@types/sinon": "^9.0.10",
|
|
39
|
+
"@types/supertest": "^2.0.10",
|
|
40
|
+
"@zerollup/ts-transform-paths": "^1.7.18",
|
|
41
|
+
"body-parser": "^1.19.0",
|
|
42
|
+
"body-parser-xml": "^2.0.0",
|
|
43
|
+
"chai": "4.2.0",
|
|
44
|
+
"chai-as-promised": "7.1.1",
|
|
45
|
+
"cross-env": "^7.0.3",
|
|
46
|
+
"dotenv": "^8.2.0",
|
|
47
|
+
"eslint": "^7.17.0",
|
|
48
|
+
"husky": "^4.3.7",
|
|
49
|
+
"mocha": "^8.2.1",
|
|
50
|
+
"npm-run-all": "^4.1.5",
|
|
51
|
+
"nyc": "^15.1.0",
|
|
52
|
+
"prettier": "^2.2.1",
|
|
53
|
+
"pretty-quick": "^3.1.0",
|
|
54
|
+
"proxyquire": "^2.1.3",
|
|
55
|
+
"rimraf": "^3.0.2",
|
|
56
|
+
"sinon": "^9.2.3",
|
|
57
|
+
"source-map-support": "0.5.19",
|
|
58
|
+
"supertest": "^6.0.1",
|
|
59
|
+
"ts-node": "^9.1.1",
|
|
60
|
+
"ttypescript": "^1.5.12",
|
|
61
|
+
"typedoc": "^0.21.5",
|
|
62
|
+
"typescript": "^4.1.3"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"@golemio/core": "^1.1.1"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@golemio/city-districts": "1.0.2",
|
|
69
|
+
"install": "^0.13.0",
|
|
70
|
+
"npm": "^8.1.4",
|
|
71
|
+
"p-throttle": "4.1.1",
|
|
72
|
+
"uuid-by-string": "^3.0.2"
|
|
73
|
+
}
|
|
74
74
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
## [Unreleased]
|
|
6
|
-
|
|
7
|
-
## [1.0.9] - 2021-11-30
|
|
8
|
-
|
|
9
|
-
### Added
|
|
10
|
-
|
|
11
|
-
- Category query filter ([parkings#2](https://gitlab.com/operator-ict/golemio/code/modules/parkings/-/issues/2))
|
|
12
|
-
- Parking zones prague payment_url ([parkings#4](https://gitlab.com/operator-ict/golemio/code/modules/parkings/-/issues/4))
|