@golemio/traffic-common 0.1.0-dev.864393677 → 0.1.0-dev.879995381

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.
@@ -1,4 +1,4 @@
1
1
  INSERT INTO ltecze90_points_sjtsk_in_area (cid,tabcd,lcd,class,tcd,stcd,jnumber,roadnumber,roadname,firstname,secondname,area_ref,area_name,roa_lcd,seg_lcd,roa_type,inpos,outpos,inneg,outneg,presentpos,presentneg,interrupt,urban,int_lcd,neg_off,pos_off,wgs84_x,wgs84_y,sjtsk_x,sjtsk_y,isolated,inside_project_area) VALUES
2
2
  (11,25,20761,'P',1,12,NULL,'II/425','','odb. Starovice','',33476,'Starovice',581,NULL,'L1.3',1,1,1,1,1,1,NULL,0,'20761,20762',14816,4959,'16,71753','48,95999','-592997,6958','-1187603,397',0,'nepravda'),
3
- (11,25,22579,'P',1,12,NULL,'II/352','','Ždířec-odb. Střítež','',33780,'Ždírec',9288,NULL,'L1.3',1,1,1,1,1,1,NULL,0,'22579,22578',17910,11111,'15,67244','49,45365','-662457,6851','-1124460,336',0,'nepravda'),
3
+ (11,25,22579,'P',1,12,NULL,'II/352','','Ždířec-odb. Střítež','',33780,'Ždírec',9288,NULL,'L1.3',1,1,1,1,1,1,NULL,0,'22579,22578',17910,11111,'15,67244','49,45365','-662457,6851','-1124460,336',0,'pravda'),
4
4
  (11,25,21583,'P',1,11,NULL,'III/19850','','odb. Nové Sedliště','II/198',31389,'Staré Sedliště',15136,NULL,'L1.4',1,1,1,1,1,1,NULL,0,'21583,21588',21582,21584,'12,69184','49,7181','-871745,118','-1065281,078',0,'nepravda');
@@ -1,4 +1,8 @@
1
1
  import { IModel, PostgresModel } from "@golemio/core/dist/integration-engine/models";
2
+ export declare enum InsideProjectAreaEnum {
3
+ PRAVDA = "pravda",
4
+ NEPRAVDA = "nepravda"
5
+ }
2
6
  export declare class LteCze90PointsSjtskInAreaRepository extends PostgresModel implements IModel {
3
7
  constructor();
4
8
  getFiltrationData(): Promise<Array<{
@@ -18,12 +18,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
18
18
  });
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.LteCze90PointsSjtskInAreaRepository = void 0;
21
+ exports.LteCze90PointsSjtskInAreaRepository = exports.InsideProjectAreaEnum = void 0;
22
22
  const _sch_1 = require("../../schema-definitions");
23
23
  const LteCze90PointsSjtskInAreaModel_1 = require("../../schema-definitions/models/LteCze90PointsSjtskInAreaModel");
24
24
  const models_1 = require("@golemio/core/dist/integration-engine/models");
25
25
  const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
26
26
  const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
27
+ var InsideProjectAreaEnum;
28
+ (function (InsideProjectAreaEnum) {
29
+ InsideProjectAreaEnum["PRAVDA"] = "pravda";
30
+ InsideProjectAreaEnum["NEPRAVDA"] = "nepravda";
31
+ })(InsideProjectAreaEnum = exports.InsideProjectAreaEnum || (exports.InsideProjectAreaEnum = {}));
27
32
  let LteCze90PointsSjtskInAreaRepository = class LteCze90PointsSjtskInAreaRepository extends models_1.PostgresModel {
28
33
  constructor() {
29
34
  super("LteCze90PointsSjtskInAreaRepository", {
@@ -41,6 +46,9 @@ let LteCze90PointsSjtskInAreaRepository = class LteCze90PointsSjtskInAreaReposit
41
46
  return __awaiter(this, void 0, void 0, function* () {
42
47
  return yield this.find({
43
48
  attributes: ["lcd"],
49
+ where: {
50
+ inside_project_area: InsideProjectAreaEnum.PRAVDA.toString(),
51
+ },
44
52
  raw: true,
45
53
  });
46
54
  });
@@ -1 +1 @@
1
- {"version":3,"file":"LteCze90PointsSjtskInAreaRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/LteCze90PointsSjtskInAreaRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,mDAA6C;AAC7C,mHAA4F;AAC5F,yEAAqF;AACrF,mFAAkF;AAClF,iEAAgE;AAGhE,IAAa,mCAAmC,GAAhD,MAAa,mCAAoC,SAAQ,sBAAa;IAClE;QACI,KAAK,CACD,qCAAqC,EACrC;YACI,yBAAyB,EAAE,+DAA8B,CAAC,cAAc;YACxE,WAAW,EAAE,+BAA+B;YAC5C,QAAQ,EAAE,4BAAqB,CAAC,QAAQ;YACxC,UAAU,EAAE,YAAY;YACxB,2BAA2B,EAAE;gBACzB,UAAU,EAAE,KAAK;aACpB;SACJ,EACD,IAAI,uCAAmB,CAAC,qCAAqC,EAAE,EAAE,CAAC,CAAC,4BAA4B;SAClG,CAAC;IACN,CAAC;IAEY,iBAAiB;;YAC1B,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC;gBACnB,UAAU,EAAE,CAAC,KAAK,CAAC;gBACnB,GAAG,EAAE,IAAI;aACZ,CAAC,CAAC;QACP,CAAC;KAAA;CACJ,CAAA;AAvBY,mCAAmC;IAD/C,IAAA,qBAAU,GAAE;;GACA,mCAAmC,CAuB/C;AAvBY,kFAAmC"}
1
+ {"version":3,"file":"LteCze90PointsSjtskInAreaRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/LteCze90PointsSjtskInAreaRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,mDAA6C;AAC7C,mHAA4F;AAC5F,yEAAqF;AACrF,mFAAkF;AAClF,iEAAgE;AAEhE,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,0CAAiB,CAAA;IACjB,8CAAqB,CAAA;AACzB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAGD,IAAa,mCAAmC,GAAhD,MAAa,mCAAoC,SAAQ,sBAAa;IAClE;QACI,KAAK,CACD,qCAAqC,EACrC;YACI,yBAAyB,EAAE,+DAA8B,CAAC,cAAc;YACxE,WAAW,EAAE,+BAA+B;YAC5C,QAAQ,EAAE,4BAAqB,CAAC,QAAQ;YACxC,UAAU,EAAE,YAAY;YACxB,2BAA2B,EAAE;gBACzB,UAAU,EAAE,KAAK;aACpB;SACJ,EACD,IAAI,uCAAmB,CAAC,qCAAqC,EAAE,EAAE,CAAC,CAAC,4BAA4B;SAClG,CAAC;IACN,CAAC;IAEY,iBAAiB;;YAC1B,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC;gBACnB,UAAU,EAAE,CAAC,KAAK,CAAC;gBACnB,KAAK,EAAE;oBACH,mBAAmB,EAAE,qBAAqB,CAAC,MAAM,CAAC,QAAQ,EAAE;iBAC/D;gBACD,GAAG,EAAE,IAAI;aACZ,CAAC,CAAC;QACP,CAAC;KAAA;CACJ,CAAA;AA1BY,mCAAmC;IAD/C,IAAA,qBAAU,GAAE;;GACA,mCAAmC,CA0B/C;AA1BY,kFAAmC"}
@@ -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.CustomError("Error while cleaning table.", true, this.constructor.name, 5050, err);
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.CustomError("Error while getting data stream.", true, this.constructor.name, 5050, err);
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.CustomError("Error while saving data.", true, this.constructor.name, 5051, err);
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":";;;;;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cOsmMappingDataTask.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.CustomError(`ltStart and ltEnd should not be below zero`, true, "RsdTmcOsmMappingRepository", 500);
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.CustomError(`GetOne error: ${err.message}`, true, "RsdTmcOsmMappingRepository", 500, err);
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.CustomError("Not implemented", true, "RsdTmcOsmMappingRepository");
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,6EAAuE;AACvE,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,4BAAqB,CAAC,QAAQ;YACtC,UAAU,EAAE,KAAK;SACpB,CAAC,CAAC;QAIA,WAAM,GAAG,CAAO,OAA8B,EAA4B,EAAE;YAC/E,IAAI,OAAO,CAAC,OAAO,GAAG,CAAC,IAAI,OAAO,CAAC,KAAK,GAAG,CAAC,EAAE;gBAC1C,MAAM,IAAI,4BAAW,CAAC,4CAA4C,EAAE,IAAI,EAAE,4BAA4B,EAAE,GAAG,CAAC,CAAC;aAChH;YAED,IAAI;gBACA,MAAM,KAAK,GAAG;oBACV,QAAQ,EAAE,OAAO,CAAC,OAAO;oBACzB,MAAM,EAAE,OAAO,CAAC,KAAK;iBACxB,CAAC;gBAEF,MAAM,sBAAsB,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;oBAC7D,GAAG,EAAE,IAAI;oBACT,KAAK;iBACR,CAAC,CAAC;gBAEH,IAAI,sBAAsB,KAAK,IAAI,EAAE;oBACjC,OAAO,IAAI,CAAC;iBACf;gBACD,OAAO,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC;aACtD;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,4BAAW,CAAC,iBAAiB,GAAG,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,4BAA4B,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aACvG;QACL,CAAC,CAAA,CAAC;QAEK,WAAM,GAAG,GAAiC,EAAE;YAC/C,MAAM,IAAI,4BAAW,CAAC,iBAAiB,EAAE,IAAI,EAAE,4BAA4B,CAAC,CAAC;QACjF,CAAC,CAAA,CAAC;QA9BE,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;CA8BJ;AArCD,gEAqCC"}
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,4BAAqB,CAAC,QAAQ;YACtC,UAAU,EAAE,KAAK;SACpB,CAAC,CAAC;QAIA,WAAM,GAAG,CAAO,OAA8B,EAA4B,EAAE;YAC/E,IAAI,OAAO,CAAC,OAAO,GAAG,CAAC,IAAI,OAAO,CAAC,KAAK,GAAG,CAAC,EAAE;gBAC1C,MAAM,IAAI,6BAAY,CAAC,4CAA4C,EAAE,4BAA4B,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;aACtH;YAED,IAAI;gBACA,MAAM,KAAK,GAAG;oBACV,QAAQ,EAAE,OAAO,CAAC,OAAO;oBACzB,MAAM,EAAE,OAAO,CAAC,KAAK;iBACxB,CAAC;gBAEF,MAAM,sBAAsB,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;oBAC7D,GAAG,EAAE,IAAI;oBACT,KAAK;iBACR,CAAC,CAAC;gBAEH,IAAI,sBAAsB,KAAK,IAAI,EAAE;oBACjC,OAAO,IAAI,CAAC;iBACf;gBACD,OAAO,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC;aACtD;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,iBAAiB,GAAG,CAAC,OAAO,EAAE,EAAE,4BAA4B,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aAClG;QACL,CAAC,CAAA,CAAC;QAEK,WAAM,GAAG,GAAiC,EAAE;YAC/C,MAAM,IAAI,6BAAY,CAAC,iBAAiB,EAAE,4BAA4B,CAAC,CAAC;QAC5E,CAAC,CAAA,CAAC;QA9BE,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;CA8BJ;AArCD,gEAqCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/traffic-common",
3
- "version": "0.1.0-dev.864393677",
3
+ "version": "0.1.0-dev.879995381",
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.6.7",
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.6.5"
65
+ "@golemio/core": ">=1.7.0"
66
66
  },
67
67
  "overrides": {},
68
68
  "dependencies": {