@golemio/traffic-common 0.1.0-dev.864393677 → 0.1.0-dev.877492401
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/dist/integration-engine/workers/tasks/RefreshRsdTmcOsmMappingDataTask.js +3 -3
- package/dist/integration-engine/workers/tasks/RefreshRsdTmcOsmMappingDataTask.js.map +1 -1
- package/dist/output-gateway/repositories/RsdTmcOsmMappingRepository.js +3 -3
- package/dist/output-gateway/repositories/RsdTmcOsmMappingRepository.js.map +1 -1
- package/package.json +3 -3
|
@@ -27,19 +27,19 @@ class RefreshRsdTmcOsmMappingDataTask extends integration_engine_1.AbstractEmpty
|
|
|
27
27
|
yield this.repository.cleanTable();
|
|
28
28
|
}
|
|
29
29
|
catch (err) {
|
|
30
|
-
throw new golemio_errors_1.
|
|
30
|
+
throw new golemio_errors_1.GeneralError("Error while cleaning table.", this.constructor.name, err);
|
|
31
31
|
}
|
|
32
32
|
try {
|
|
33
33
|
dataStream = yield this.streamedStrategy.getRawData();
|
|
34
34
|
}
|
|
35
35
|
catch (err) {
|
|
36
|
-
throw new golemio_errors_1.
|
|
36
|
+
throw new golemio_errors_1.GeneralError("Error while getting data stream.", this.constructor.name, err);
|
|
37
37
|
}
|
|
38
38
|
try {
|
|
39
39
|
yield this.repository.streamDataIn(dataStream.data);
|
|
40
40
|
}
|
|
41
41
|
catch (err) {
|
|
42
|
-
throw new golemio_errors_1.
|
|
42
|
+
throw new golemio_errors_1.GeneralError("Error while saving data.", this.constructor.name, err);
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshRsdTmcOsmMappingDataTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/RefreshRsdTmcOsmMappingDataTask.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8EAAwG;AAExG,
|
|
1
|
+
{"version":3,"file":"RefreshRsdTmcOsmMappingDataTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/RefreshRsdTmcOsmMappingDataTask.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8EAAwG;AAExG,6EAAwE;AAGxE,MAAa,+BAAgC,SAAQ,sCAAiB;IAIlE,YACI,WAAmB,EACX,gBAA8C,EAC9C,UAAsC;QAE9C,KAAK,CAAC,WAAW,CAAC,CAAC;QAHX,qBAAgB,GAAhB,gBAAgB,CAA8B;QAC9C,eAAU,GAAV,UAAU,CAA4B;QANlC,cAAS,GAAG,yBAAyB,CAAC;QACtC,aAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa;IAQxD,CAAC;IAEe,OAAO;;YACnB,IAAI,UAA8B,CAAC;YAEnC,IAAI;gBACA,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;aACtC;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,6BAA6B,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aACrF;YAED,IAAI;gBACA,UAAU,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC;aACzD;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,kCAAkC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aAC1F;YAED,IAAI;gBACA,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;aACvD;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,0BAA0B,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aAClF;QACL,CAAC;KAAA;CACJ;AAjCD,0EAiCC"}
|
|
@@ -21,7 +21,7 @@ class RsdTmcOsmMappingRepository extends models_1.SequelizeModel {
|
|
|
21
21
|
});
|
|
22
22
|
this.GetOne = (options) => __awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
if (options.ltStart < 0 || options.ltEnd < 0) {
|
|
24
|
-
throw new golemio_errors_1.
|
|
24
|
+
throw new golemio_errors_1.GeneralError(`ltStart and ltEnd should not be below zero`, "RsdTmcOsmMappingRepository", undefined, 500);
|
|
25
25
|
}
|
|
26
26
|
try {
|
|
27
27
|
const where = {
|
|
@@ -38,11 +38,11 @@ class RsdTmcOsmMappingRepository extends models_1.SequelizeModel {
|
|
|
38
38
|
return JSON.parse(rsdTmcOsmMappingFromDB.osm_path);
|
|
39
39
|
}
|
|
40
40
|
catch (err) {
|
|
41
|
-
throw new golemio_errors_1.
|
|
41
|
+
throw new golemio_errors_1.GeneralError(`GetOne error: ${err.message}`, "RsdTmcOsmMappingRepository", err, 500);
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
this.GetAll = () => __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
throw new golemio_errors_1.
|
|
45
|
+
throw new golemio_errors_1.GeneralError("Not implemented", "RsdTmcOsmMappingRepository");
|
|
46
46
|
});
|
|
47
47
|
this.sequelizeModel.removeAttribute("id");
|
|
48
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RsdTmcOsmMappingRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/RsdTmcOsmMappingRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"RsdTmcOsmMappingRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/RsdTmcOsmMappingRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAwE;AACxE,qEAA0E;AAC1E,mDAAoE;AAOpE,MAAa,0BAA2B,SAAQ,uBAAc;IAC1D;QACI,KAAK,CAAC,4BAA4B,EAAE,4BAAqB,CAAC,WAAW,EAAE,4BAAqB,CAAC,cAAc,EAAE;YACzG,MAAM,EAAE,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
4
4
|
"description": "Golemio Common Traffic Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@golemio/cli": "1.4.2",
|
|
35
|
-
"@golemio/core": "1.
|
|
35
|
+
"@golemio/core": "1.7.0-dev.877344481",
|
|
36
36
|
"@golemio/db-common": "1.1.0-dev.848192245",
|
|
37
37
|
"@golemio/eslint-config": "1.1.0",
|
|
38
38
|
"@ovos-media/ts-transform-paths": "^1.7.18-1",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"typescript": "4.7.2"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@golemio/core": ">=1.
|
|
65
|
+
"@golemio/core": ">=1.7.0"
|
|
66
66
|
},
|
|
67
67
|
"overrides": {},
|
|
68
68
|
"dependencies": {
|