@golemio/traffic-common 1.0.6-dev.1173133552 → 1.0.6-dev.1228015718

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
- import { HTTPProtocolStrategyStreamed } from "@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategyStreamed";
1
+ import { IProtocolStrategy } from "@golemio/core/dist/integration-engine/datasources/protocol-strategy/IProtocolStrategy";
2
2
  export declare class RsdTmcOsmMappingDataStreamFactory {
3
- getHTTPProtocolStrategyStreamed(dataUrl: string): HTTPProtocolStrategyStreamed;
3
+ getProtocolStrategyStreamed(dataUrl: string): IProtocolStrategy;
4
4
  }
@@ -7,11 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.RsdTmcOsmMappingDataStreamFactory = void 0;
10
+ const HTTPRequestProtocolStrategyStreamed_1 = require("@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPRequestProtocolStrategyStreamed");
10
11
  const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
11
- const HTTPProtocolStrategyStreamed_1 = require("@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategyStreamed");
12
12
  let RsdTmcOsmMappingDataStreamFactory = exports.RsdTmcOsmMappingDataStreamFactory = class RsdTmcOsmMappingDataStreamFactory {
13
- getHTTPProtocolStrategyStreamed(dataUrl) {
14
- return new HTTPProtocolStrategyStreamed_1.HTTPProtocolStrategyStreamed({
13
+ getProtocolStrategyStreamed(dataUrl) {
14
+ return new HTTPRequestProtocolStrategyStreamed_1.HTTPRequestProtocolStrategyStreamed({
15
15
  headers: {},
16
16
  method: "GET",
17
17
  url: dataUrl,
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"RsdTmcOsmMappingDataStreamFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/datasources/RsdTmcOsmMappingDataStreamFactory.ts"],"names":[],"mappings":";;;;;;;;;AACA,iKAA8J;AAC9J,iEAAgE;AAGzD,IAAM,iCAAiC,+CAAvC,MAAM,iCAAiC;IACnC,2BAA2B,CAAC,OAAe;QAC9C,OAAO,IAAI,yEAAmC,CAAC;YAC3C,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"}
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TrafficCommonContainer = void 0;
4
+ const RsdTmcOsmMappingDataStreamFactory_1 = require("../datasources/RsdTmcOsmMappingDataStreamFactory");
5
+ const LteCze90PointsSjtskInAreaRepository_1 = require("../repositories/LteCze90PointsSjtskInAreaRepository");
6
+ const RsdTmcOsmMappingRepository_1 = require("../repositories/RsdTmcOsmMappingRepository");
7
+ const ioc_1 = require("@golemio/core/dist/integration-engine/ioc");
4
8
  const Di_1 = require("@golemio/core/dist/integration-engine/ioc/Di");
5
9
  const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
6
10
  const ModuleContainerToken_1 = require("./ModuleContainerToken");
7
- const RsdTmcOsmMappingRepository_1 = require("../repositories/RsdTmcOsmMappingRepository");
8
- const RsdTmcOsmMappingDataStreamFactory_1 = require("../datasources/RsdTmcOsmMappingDataStreamFactory");
9
- const ioc_1 = require("@golemio/core/dist/integration-engine/ioc");
10
- const LteCze90PointsSjtskInAreaRepository_1 = require("../repositories/LteCze90PointsSjtskInAreaRepository");
11
11
  //#region Initialization
12
12
  const TrafficCommonContainer = Di_1.IntegrationEngineContainer.createChildContainer();
13
13
  exports.TrafficCommonContainer = TrafficCommonContainer;
@@ -16,7 +16,7 @@ exports.TrafficCommonContainer = TrafficCommonContainer;
16
16
  TrafficCommonContainer.register(ModuleContainerToken_1.ModuleContainerToken.RsdTmcOsmMappingDataSourceStrategy, {
17
17
  useFactory: (0, tsyringe_1.instanceCachingFactory)(() => {
18
18
  const config = Di_1.IntegrationEngineContainer.resolve(ioc_1.ContainerToken.Config);
19
- return new RsdTmcOsmMappingDataStreamFactory_1.RsdTmcOsmMappingDataStreamFactory().getHTTPProtocolStrategyStreamed(config.datasources.TrafficCommon.RsdTmcOsmMapping.url);
19
+ return new RsdTmcOsmMappingDataStreamFactory_1.RsdTmcOsmMappingDataStreamFactory().getProtocolStrategyStreamed(config.datasources.TrafficCommon.RsdTmcOsmMapping.url);
20
20
  }),
21
21
  });
22
22
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../src/integration-engine/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,qEAA0F;AAC1F,iEAAiG;AACjG,iEAA8D;AAE9D,2FAAyF;AACzF,wGAAsG;AACtG,mEAA2E;AAC3E,6GAA2G;AAE3G,wBAAwB;AACxB,MAAM,sBAAsB,GAAwB,+BAA0B,CAAC,oBAAoB,EAAE,CAAC;AAoC7F,wDAAsB;AAnC/B,YAAY;AAEZ,qBAAqB;AACrB,sBAAsB,CAAC,QAAQ,CAA+B,2CAAoB,CAAC,kCAAkC,EAAE;IACnH,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iBAAiB;AAEjB,YAAY;AAEZ,sBAAsB;AACtB,sBAAsB,CAAC,iBAAiB,CACpC,2CAAoB,CAAC,0BAA0B,EAC/C,uDAA0B,CAC7B,CAAC,QAAQ,CACN,2CAAoB,CAAC,mCAAmC,EACxD,yEAAmC,CACtC,CAAC"}
@@ -1,10 +1,11 @@
1
- import { AbstractEmptyTask, HTTPProtocolStrategyStreamed } from "@golemio/core/dist/integration-engine";
2
1
  import { RsdTmcOsmMappingRepository } from "../../repositories/RsdTmcOsmMappingRepository";
2
+ import { AbstractEmptyTask } from "@golemio/core/dist/integration-engine";
3
+ import { HTTPRequestProtocolStrategyStreamed } from "@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPRequestProtocolStrategyStreamed";
3
4
  export declare class RefreshRsdTmcOsmMappingDataTask extends AbstractEmptyTask {
4
5
  private streamedStrategy;
5
6
  private repository;
6
7
  readonly queueName = "RsdTmsOsmMappingRefresh";
7
8
  readonly queueTtl: number;
8
- constructor(queuePrefix: string, streamedStrategy: HTTPProtocolStrategyStreamed, repository: RsdTmcOsmMappingRepository);
9
+ constructor(queuePrefix: string, streamedStrategy: HTTPRequestProtocolStrategyStreamed, repository: RsdTmcOsmMappingRepository);
9
10
  protected execute(): Promise<void>;
10
11
  }
@@ -1 +1 @@
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,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,qBAAqB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;aAChE;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,2DAA2D,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aACnH;QACL,CAAC;KAAA;CACJ;AA3BD,0EA2BC"}
1
+ {"version":3,"file":"RefreshRsdTmcOsmMappingDataTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/RefreshRsdTmcOsmMappingDataTask.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,8EAA0E;AAE1E,6EAAwE;AAGxE,MAAa,+BAAgC,SAAQ,sCAAiB;IAIlE,YACI,WAAmB,EACX,gBAAqD,EACrD,UAAsC;QAE9C,KAAK,CAAC,WAAW,CAAC,CAAC;QAHX,qBAAgB,GAAhB,gBAAgB,CAAqC;QACrD,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,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,qBAAqB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;aAChE;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,2DAA2D,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aACnH;QACL,CAAC;KAAA;CACJ;AA3BD,0EA2BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/traffic-common",
3
- "version": "1.0.6-dev.1173133552",
3
+ "version": "1.0.6-dev.1228015718",
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.5.0",
35
- "@golemio/core": "1.9.10",
35
+ "@golemio/core": "1.9.16-dev.1227658317",
36
36
  "@golemio/db-common": "1.1.3",
37
37
  "@golemio/eslint-config": "1.1.1",
38
38
  "@types/chai": "4.2.3",