@golemio/traffic-common 0.1.1 → 0.1.2-dev.893874047

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.
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.RsdTmcOsmMappingDataStreamFactory = void 0;
10
10
  const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
11
11
  const HTTPProtocolStrategyStreamed_1 = require("@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategyStreamed");
12
- let RsdTmcOsmMappingDataStreamFactory = class RsdTmcOsmMappingDataStreamFactory {
12
+ let RsdTmcOsmMappingDataStreamFactory = exports.RsdTmcOsmMappingDataStreamFactory = class RsdTmcOsmMappingDataStreamFactory {
13
13
  getHTTPProtocolStrategyStreamed(dataUrl) {
14
14
  return new HTTPProtocolStrategyStreamed_1.HTTPProtocolStrategyStreamed({
15
15
  headers: {},
@@ -18,8 +18,7 @@ let RsdTmcOsmMappingDataStreamFactory = class RsdTmcOsmMappingDataStreamFactory
18
18
  });
19
19
  }
20
20
  };
21
- RsdTmcOsmMappingDataStreamFactory = __decorate([
21
+ exports.RsdTmcOsmMappingDataStreamFactory = RsdTmcOsmMappingDataStreamFactory = __decorate([
22
22
  (0, tsyringe_1.injectable)()
23
23
  ], RsdTmcOsmMappingDataStreamFactory);
24
- exports.RsdTmcOsmMappingDataStreamFactory = RsdTmcOsmMappingDataStreamFactory;
25
24
  //# sourceMappingURL=RsdTmcOsmMappingDataStreamFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RsdTmcOsmMappingDataStreamFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/datasources/RsdTmcOsmMappingDataStreamFactory.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iEAAgE;AAChE,mJAAgJ;AAGhJ,IAAa,iCAAiC,GAA9C,MAAa,iCAAiC;IACnC,+BAA+B,CAAC,OAAe;QAClD,OAAO,IAAI,2DAA4B,CAAC;YACpC,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,OAAO;SACf,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AARY,iCAAiC;IAD7C,IAAA,qBAAU,GAAE;GACA,iCAAiC,CAQ7C;AARY,8EAAiC"}
1
+ {"version":3,"file":"RsdTmcOsmMappingDataStreamFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/datasources/RsdTmcOsmMappingDataStreamFactory.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iEAAgE;AAChE,mJAAgJ;AAGzI,IAAM,iCAAiC,+CAAvC,MAAM,iCAAiC;IACnC,+BAA+B,CAAC,OAAe;QAClD,OAAO,IAAI,2DAA4B,CAAC;YACpC,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,OAAO;SACf,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;4CARY,iCAAiC;IAD7C,IAAA,qBAAU,GAAE;GACA,iCAAiC,CAQ7C"}
@@ -28,8 +28,8 @@ var InsideProjectAreaEnum;
28
28
  (function (InsideProjectAreaEnum) {
29
29
  InsideProjectAreaEnum["PRAVDA"] = "pravda";
30
30
  InsideProjectAreaEnum["NEPRAVDA"] = "nepravda";
31
- })(InsideProjectAreaEnum = exports.InsideProjectAreaEnum || (exports.InsideProjectAreaEnum = {}));
32
- let LteCze90PointsSjtskInAreaRepository = class LteCze90PointsSjtskInAreaRepository extends models_1.PostgresModel {
31
+ })(InsideProjectAreaEnum || (exports.InsideProjectAreaEnum = InsideProjectAreaEnum = {}));
32
+ let LteCze90PointsSjtskInAreaRepository = exports.LteCze90PointsSjtskInAreaRepository = class LteCze90PointsSjtskInAreaRepository extends models_1.PostgresModel {
33
33
  constructor() {
34
34
  super("LteCze90PointsSjtskInAreaRepository", {
35
35
  outputSequelizeAttributes: LteCze90PointsSjtskInAreaModel_1.LteCze90PointsSjtskInAreaModel.attributeModel,
@@ -54,9 +54,8 @@ let LteCze90PointsSjtskInAreaRepository = class LteCze90PointsSjtskInAreaReposit
54
54
  });
55
55
  }
56
56
  };
57
- LteCze90PointsSjtskInAreaRepository = __decorate([
57
+ exports.LteCze90PointsSjtskInAreaRepository = LteCze90PointsSjtskInAreaRepository = __decorate([
58
58
  (0, tsyringe_1.injectable)(),
59
59
  __metadata("design:paramtypes", [])
60
60
  ], LteCze90PointsSjtskInAreaRepository);
61
- exports.LteCze90PointsSjtskInAreaRepository = LteCze90PointsSjtskInAreaRepository;
62
61
  //# sourceMappingURL=LteCze90PointsSjtskInAreaRepository.js.map
@@ -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;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"}
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,qCAArB,qBAAqB,QAGhC;AAGM,IAAM,mCAAmC,iDAAzC,MAAM,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;8CA1BY,mCAAmC;IAD/C,IAAA,qBAAU,GAAE;;GACA,mCAAmC,CA0B/C"}
@@ -29,7 +29,7 @@ const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator
29
29
  const ioc_1 = require("@golemio/core/dist/integration-engine/ioc");
30
30
  const _sch_1 = require("../../schema-definitions");
31
31
  const pg_copy_streams_1 = require("pg-copy-streams");
32
- let RsdTmcOsmMappingRepository = class RsdTmcOsmMappingRepository extends models_1.PostgresModel {
32
+ let RsdTmcOsmMappingRepository = exports.RsdTmcOsmMappingRepository = class RsdTmcOsmMappingRepository extends models_1.PostgresModel {
33
33
  constructor(connector, logger) {
34
34
  super("RsdTmcOsmMappingRepository", {
35
35
  outputSequelizeAttributes: RsdTmcOsmMappingModel_1.RsdTmcOsmMappingModel.attributeModel,
@@ -75,11 +75,10 @@ let RsdTmcOsmMappingRepository = class RsdTmcOsmMappingRepository extends models
75
75
  });
76
76
  }
77
77
  };
78
- RsdTmcOsmMappingRepository = __decorate([
78
+ exports.RsdTmcOsmMappingRepository = RsdTmcOsmMappingRepository = __decorate([
79
79
  (0, tsyringe_1.injectable)(),
80
80
  __param(0, (0, tsyringe_1.inject)(ioc_1.ContainerToken.PostgresConnector)),
81
81
  __param(1, (0, tsyringe_1.inject)(ioc_1.ContainerToken.Logger)),
82
82
  __metadata("design:paramtypes", [Object, Object])
83
83
  ], RsdTmcOsmMappingRepository);
84
- exports.RsdTmcOsmMappingRepository = RsdTmcOsmMappingRepository;
85
84
  //# sourceMappingURL=RsdTmcOsmMappingRepository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RsdTmcOsmMappingRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/RsdTmcOsmMappingRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,yEAAqF;AACrF,iEAAwE;AACxE,iGAA0E;AAC1E,mFAAkF;AAClF,mEAA2E;AAE3E,mDAA6C;AAC7C,qDAAmD;AAKnD,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,sBAAa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C,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBAC7D,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;gBACvB,CAAC,CAAA,CAAC;qBACD,EAAE,CAAC,QAAQ,EAAE,GAAS,EAAE;oBACrB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;oBACrD,MAAM,UAAU,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBAC7D,OAAO,OAAO,EAAE,CAAC;gBACrB,CAAC,CAAA,CAAC,CAAC;gBACP,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACtB,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ,CAAA;AArDY,0BAA0B;IADtC,IAAA,qBAAU,GAAE;IAGJ,WAAA,IAAA,iBAAM,EAAC,oBAAc,CAAC,iBAAiB,CAAC,CAAA;IACxC,WAAA,IAAA,iBAAM,EAAC,oBAAc,CAAC,MAAM,CAAC,CAAA;;GAHzB,0BAA0B,CAqDtC;AArDY,gEAA0B"}
1
+ {"version":3,"file":"RsdTmcOsmMappingRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/RsdTmcOsmMappingRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,yEAAqF;AACrF,iEAAwE;AACxE,iGAA0E;AAC1E,mFAAkF;AAClF,mEAA2E;AAE3E,mDAA6C;AAC7C,qDAAmD;AAK5C,IAAM,0BAA0B,wCAAhC,MAAM,0BAA2B,SAAQ,sBAAa;IACzD,YACsD,SAA6B,EACxC,MAAe;QAEtD,KAAK,CACD,4BAA4B,EAC5B;YACI,yBAAyB,EAAE,6CAAqB,CAAC,cAAc;YAC/D,WAAW,EAAE,4BAAqB,CAAC,WAAW;YAC9C,QAAQ,EAAE,4BAAqB,CAAC,QAAQ;YACxC,UAAU,EAAE,YAAY;YACxB,kBAAkB,EAAE,CAAC,IAAI,CAAC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UAAU,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBAC7D,OAAO,OAAO,EAAE,CAAC;gBACrB,CAAC,CAAA,CAAC,CAAC;gBACP,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACtB,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ,CAAA;qCArDY,0BAA0B;IADtC,IAAA,qBAAU,GAAE;IAGJ,WAAA,IAAA,iBAAM,EAAC,oBAAc,CAAC,iBAAiB,CAAC,CAAA;IACxC,WAAA,IAAA,iBAAM,EAAC,oBAAc,CAAC,MAAM,CAAC,CAAA;;GAHzB,0BAA0B,CAqDtC"}
@@ -1,4 +1,4 @@
1
- import { IRsdTmcOsmMapping } from "./..";
1
+ import { IRsdTmcOsmMapping } from "..";
2
2
  import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
3
3
  import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
4
4
  export declare class RsdTmcOsmMappingModel extends Model<IRsdTmcOsmMapping> implements IRsdTmcOsmMapping {
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@golemio/traffic-common",
3
- "version": "0.1.1",
3
+ "version": "0.1.2-dev.893874047",
4
4
  "description": "Golemio Common Traffic Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
- "build": "rimraf ./dist && ttsc -p ./tsconfig.build.json",
8
+ "build": "rimraf ./dist && tspc -p ./tsconfig.build.json",
9
9
  "build-minimal": "run-s 'build -- --sourceMap false --declaration false'",
10
10
  "build-watch": "run-s 'build -- --watch --preserveWatchOutput'",
11
11
  "pretest": "golemio import-db-data --postgres",
12
- "test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r dotenv/config --file 'test/setup.ts' 'test/**/*.test.ts'",
12
+ "test": "cross-env NODE_ENV=test mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r tsconfig-paths/register -r dotenv/config --file 'test/setup.ts' 'test/**/*.test.ts'",
13
13
  "test-debug": "run-s 'test -- --inspect-brk=9230'",
14
14
  "code-coverage": "nyc run-s 'test -- -r source-map-support/register'",
15
15
  "migrate-db": "golemio migrate-db up --postgres",
@@ -32,10 +32,9 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@golemio/cli": "1.4.2",
35
- "@golemio/core": "1.7.0",
35
+ "@golemio/core": "1.7.5-dev.893702206",
36
36
  "@golemio/db-common": "1.1.1",
37
37
  "@golemio/eslint-config": "1.1.0",
38
- "@ovos-media/ts-transform-paths": "^1.7.18-1",
39
38
  "@types/chai": "4.2.3",
40
39
  "@types/chai-as-promised": "7.1.2",
41
40
  "@types/mocha": "^9.1.0",
@@ -55,11 +54,13 @@
55
54
  "pretty-quick": "^3.1.0",
56
55
  "rimraf": "^3.0.2",
57
56
  "sinon": "^9.2.3",
58
- "source-map-support": "0.5.19",
59
- "ts-node": "^10.7.0",
60
- "ttypescript": "^1.5.13",
61
- "typedoc": "^0.23.21",
62
- "typescript": "4.7.2"
57
+ "source-map-support": "0.5.21",
58
+ "ts-node": "^10.9.1",
59
+ "ts-patch": "3.0.0-beta3",
60
+ "tsconfig-paths": "^4.2.0",
61
+ "typedoc": "^0.24.8",
62
+ "typescript": "5.1.3",
63
+ "typescript-transform-paths": "^3.4.6"
63
64
  },
64
65
  "peerDependencies": {
65
66
  "@golemio/core": ">=1.7.0"