@golemio/public-transport 0.1.0-dev.2769114834 → 0.1.0-dev.2771546326
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/db/example/00_clear_test_data.sql +4 -0
- package/db/migrations/postgresql/sqls/20260813000000-init-schema-up.sql +0 -14
- package/dist/input-gateway/index.js +0 -3
- package/dist/input-gateway/index.js.map +1 -1
- package/dist/input-gateway/jis/controllers/JISEventsController.js +2 -1
- package/dist/input-gateway/jis/controllers/JISEventsController.js.map +1 -1
- package/dist/input-gateway/jis/controllers/JISInfotextsController.js +2 -1
- package/dist/input-gateway/jis/controllers/JISInfotextsController.js.map +1 -1
- package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js +2 -1
- package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js.map +1 -1
- package/dist/integration-engine/data-retention/workers/constants/WorkerName.d.ts +1 -1
- package/dist/integration-engine/data-retention/workers/constants/WorkerName.js +2 -1
- package/dist/integration-engine/data-retention/workers/constants/WorkerName.js.map +1 -1
- package/dist/integration-engine/gtfs/data-access/cache/BlockStopsRedisRepository.js +1 -1
- package/dist/integration-engine/gtfs/data-access/cache/BlockStopsRedisRepository.js.map +1 -1
- package/dist/integration-engine/gtfs/data-access/cache/StaticFileRedisRepository.js +2 -1
- package/dist/integration-engine/gtfs/data-access/cache/StaticFileRedisRepository.js.map +1 -1
- package/dist/integration-engine/gtfs/ioc/Di.js +2 -2
- package/dist/integration-engine/gtfs/ioc/Di.js.map +1 -1
- package/dist/integration-engine/gtfs/ioc/GtfsContainerToken.d.ts +1 -1
- package/dist/integration-engine/gtfs/ioc/GtfsContainerToken.js +1 -1
- package/dist/integration-engine/gtfs/ioc/GtfsContainerToken.js.map +1 -1
- package/dist/integration-engine/gtfs/workers/timetables/TimetableWorker.js +1 -1
- package/dist/integration-engine/gtfs/workers/timetables/TimetableWorker.js.map +1 -1
- package/dist/integration-engine/gtfs/workers/timetables/constants.js +2 -1
- package/dist/integration-engine/gtfs/workers/timetables/constants.js.map +1 -1
- package/dist/integration-engine/gtfs/workers/timetables/tasks/ImportGtfsFromStorageTask.d.ts +30 -0
- package/dist/integration-engine/gtfs/workers/timetables/tasks/{IngestUploadedGtfsDatasetTask.js → ImportGtfsFromStorageTask.js} +99 -24
- package/dist/integration-engine/gtfs/workers/timetables/tasks/ImportGtfsFromStorageTask.js.map +1 -0
- package/dist/integration-engine/gtfs/workers/timetables/tasks/interfaces/IImportGtfsFromStorageInput.d.ts +3 -0
- package/dist/integration-engine/gtfs/workers/timetables/tasks/interfaces/{IIngestUploadedGtfsDatasetInput.js → IImportGtfsFromStorageInput.js} +1 -1
- package/dist/integration-engine/gtfs/workers/timetables/tasks/interfaces/IImportGtfsFromStorageInput.js.map +1 -0
- package/dist/integration-engine/gtfs/workers/timetables/tasks/schema/ImportGtfsFromStorageSchema.d.ts +4 -0
- package/dist/integration-engine/gtfs/workers/timetables/tasks/schema/ImportGtfsFromStorageSchema.js +25 -0
- package/dist/integration-engine/gtfs/workers/timetables/tasks/schema/ImportGtfsFromStorageSchema.js.map +1 -0
- package/dist/integration-engine/jis/repositories/JISMetadataRepository.d.ts +1 -1
- package/dist/integration-engine/jis/workers/constants.d.ts +1 -1
- package/dist/integration-engine/jis/workers/constants.js +2 -1
- package/dist/integration-engine/jis/workers/constants.js.map +1 -1
- package/dist/integration-engine/ropid-vymi/workers/RopidVYMIWorker.js +2 -2
- package/dist/integration-engine/ropid-vymi/workers/RopidVYMIWorker.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/GtfsRealTimeWorker.js +2 -2
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/GtfsRealTimeWorker.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/constants.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/constants.js +2 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/constants.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/data-access/GtfsRtRedisRepository.js +2 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/data-access/GtfsRtRedisRepository.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/constants.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/constants.js +2 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/constants.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/data-access/cache/RegionalBusCisCacheRepository.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/data-access/cache/RegionalBusCisCacheRepository.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/data-access/cache/RegionalBusGtfsCacheRepository.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/data-access/cache/RegionalBusGtfsCacheRepository.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/helpers/CommonMessageProcessor.js +2 -2
- package/dist/integration-engine/vehicle-positions/workers/runs/helpers/CommonMessageProcessor.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/tasks/ProcessMetroRunMessagesTask.js +2 -2
- package/dist/integration-engine/vehicle-positions/workers/runs/tasks/ProcessMetroRunMessagesTask.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/tasks/ProcessRegionalBusRunMessagesTask.js +2 -2
- package/dist/integration-engine/vehicle-positions/workers/runs/tasks/ProcessRegionalBusRunMessagesTask.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-descriptors/constants.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-descriptors/constants.js +2 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-descriptors/constants.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/constants.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/constants.js +2 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/constants.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/SaveDataToDBTask.js +9 -5
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/SaveDataToDBTask.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.d.ts +2 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js +15 -6
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js.map +1 -1
- package/dist/output-gateway/gtfs/data-access/GtfsFeedRepository.js +3 -0
- package/dist/output-gateway/gtfs/data-access/GtfsFeedRepository.js.map +1 -1
- package/dist/output-gateway/gtfs/models/GTFSCalendarModel.d.ts +1 -0
- package/dist/output-gateway/gtfs/models/GTFSCalendarModel.js +2 -1
- package/dist/output-gateway/gtfs/models/GTFSCalendarModel.js.map +1 -1
- package/dist/output-gateway/gtfs/models/GTFSShapesModel.d.ts +1 -0
- package/dist/output-gateway/gtfs/models/GTFSShapesModel.js +2 -2
- package/dist/output-gateway/gtfs/models/GTFSShapesModel.js.map +1 -1
- package/dist/output-gateway/gtfs/models/GTFSStopTimesModel.d.ts +1 -0
- package/dist/output-gateway/gtfs/models/GTFSStopTimesModel.js +4 -1
- package/dist/output-gateway/gtfs/models/GTFSStopTimesModel.js.map +1 -1
- package/dist/output-gateway/gtfs/models/GTFSTripsModel.d.ts +2 -0
- package/dist/output-gateway/gtfs/models/GTFSTripsModel.js +7 -3
- package/dist/output-gateway/gtfs/models/GTFSTripsModel.js.map +1 -1
- package/dist/output-gateway/gtfs/routers/v1/V1GTFSRouter.js +14 -2
- package/dist/output-gateway/gtfs/routers/v1/V1GTFSRouter.js.map +1 -1
- package/dist/output-gateway/vehicle-positions/routers/v1/V1VehiclePositionsRouter.js +3 -2
- package/dist/output-gateway/vehicle-positions/routers/v1/V1VehiclePositionsRouter.js.map +1 -1
- package/dist/schema-definitions/gtfs/const.d.ts +2 -0
- package/dist/schema-definitions/gtfs/const.js +11 -0
- package/dist/schema-definitions/gtfs/const.js.map +1 -0
- package/dist/schema-definitions/gtfs/redis/const.d.ts +6 -5
- package/dist/schema-definitions/gtfs/redis/const.js +10 -6
- package/dist/schema-definitions/gtfs/redis/const.js.map +1 -1
- package/dist/schema-definitions/jis/const.d.ts +1 -0
- package/dist/schema-definitions/jis/const.js +8 -0
- package/dist/schema-definitions/jis/const.js.map +1 -0
- package/dist/schema-definitions/jis/redis/const.d.ts +2 -2
- package/dist/schema-definitions/jis/redis/const.js +4 -2
- package/dist/schema-definitions/jis/redis/const.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/const.d.ts +4 -0
- package/dist/schema-definitions/vehicle-positions/const.js +13 -0
- package/dist/schema-definitions/vehicle-positions/const.js.map +1 -0
- package/dist/schema-definitions/vehicle-positions/redis/const.d.ts +4 -3
- package/dist/schema-definitions/vehicle-positions/redis/const.js +7 -4
- package/dist/schema-definitions/vehicle-positions/redis/const.js.map +1 -1
- package/docs/asyncapi.yaml +48 -27
- package/docs/follow-ups.md +35 -32
- package/docs/openapi-input.yaml +0 -80
- package/docs/openapi-output.yaml +35 -0
- package/package.json +1 -1
- package/dist/input-gateway/gtfs/GtfsController.d.ts +0 -9
- package/dist/input-gateway/gtfs/GtfsController.js +0 -30
- package/dist/input-gateway/gtfs/GtfsController.js.map +0 -1
- package/dist/input-gateway/gtfs/GtfsFeedUploadController.d.ts +0 -10
- package/dist/input-gateway/gtfs/GtfsFeedUploadController.js +0 -98
- package/dist/input-gateway/gtfs/GtfsFeedUploadController.js.map +0 -1
- package/dist/input-gateway/gtfs/GtfsRouter.d.ts +0 -13
- package/dist/input-gateway/gtfs/GtfsRouter.js +0 -80
- package/dist/input-gateway/gtfs/GtfsRouter.js.map +0 -1
- package/dist/input-gateway/gtfs/data-access/GtfsUploadStagingRedisRepository.d.ts +0 -5
- package/dist/input-gateway/gtfs/data-access/GtfsUploadStagingRedisRepository.js +0 -20
- package/dist/input-gateway/gtfs/data-access/GtfsUploadStagingRedisRepository.js.map +0 -1
- package/dist/integration-engine/gtfs/workers/timetables/tasks/IngestUploadedGtfsDatasetTask.d.ts +0 -20
- package/dist/integration-engine/gtfs/workers/timetables/tasks/IngestUploadedGtfsDatasetTask.js.map +0 -1
- package/dist/integration-engine/gtfs/workers/timetables/tasks/interfaces/IIngestUploadedGtfsDatasetInput.d.ts +0 -8
- package/dist/integration-engine/gtfs/workers/timetables/tasks/interfaces/IIngestUploadedGtfsDatasetInput.js.map +0 -1
- package/dist/integration-engine/gtfs/workers/timetables/tasks/schema/IngestUploadedGtfsDatasetSchema.d.ts +0 -5
- package/dist/integration-engine/gtfs/workers/timetables/tasks/schema/IngestUploadedGtfsDatasetSchema.js +0 -39
- package/dist/integration-engine/gtfs/workers/timetables/tasks/schema/IngestUploadedGtfsDatasetSchema.js.map +0 -1
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
-- The migration user cannot create schemas, so migrations don't; test environments get tmp here
|
|
2
|
+
-- (deployed environments have it pre-created by the DBA).
|
|
3
|
+
CREATE SCHEMA IF NOT EXISTS "tmp";
|
|
4
|
+
|
|
1
5
|
DROP TABLE IF EXISTS "tmp"."ropidvymi_events";
|
|
2
6
|
SET TIME ZONE "europe/prague";
|
|
3
7
|
TRUNCATE
|
|
@@ -4,20 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
SET check_function_bodies = false;
|
|
6
6
|
|
|
7
|
-
--
|
|
8
|
-
-- Name: public_transport; Type: SCHEMA; Schema: -; Owner: -
|
|
9
|
-
--
|
|
10
|
-
|
|
11
|
-
CREATE SCHEMA IF NOT EXISTS public_transport;
|
|
12
|
-
|
|
13
|
-
--
|
|
14
|
-
-- Name: tmp; Type: SCHEMA; Schema: -; Owner: -
|
|
15
|
-
-- Staging schema for dataset imports (VYMI staging tables created at runtime,
|
|
16
|
-
-- seeded by db/example/07_tmp_example.sql in tests).
|
|
17
|
-
--
|
|
18
|
-
|
|
19
|
-
CREATE SCHEMA IF NOT EXISTS tmp;
|
|
20
|
-
|
|
21
7
|
CREATE TABLE public_transport.gtfs_feeds (
|
|
22
8
|
feed_id integer NOT NULL,
|
|
23
9
|
code character varying(50) NOT NULL,
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.routers = void 0;
|
|
4
4
|
// import { jisRouter } from "./jis/JISRouter";
|
|
5
|
-
const GtfsRouter_1 = require("./gtfs/GtfsRouter");
|
|
6
5
|
const VehiclePositionsRouter_1 = require("./vehicle-positions/VehiclePositionsRouter");
|
|
7
6
|
exports.routers = [
|
|
8
|
-
//#region GTFS
|
|
9
|
-
GtfsRouter_1.gtfsRouter,
|
|
10
7
|
//#region Vehicle positions
|
|
11
8
|
VehiclePositionsRouter_1.vehiclePositionsRouter,
|
|
12
9
|
//#region Jis
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/input-gateway/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/input-gateway/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,uFAAoF;AAEvE,QAAA,OAAO,GAAG;IACnB,2BAA2B;IAC3B,+CAAsB;IAEtB,aAAa;IACb,aAAa;IACb,YAAY;CACf,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.JISEventsController = void 0;
|
|
4
|
+
const const_1 = require("../../../schema-definitions/jis/const");
|
|
4
5
|
const JISEventsJsonSchema_1 = require("../../../schema-definitions/jis/datasources/JISEventsJsonSchema");
|
|
5
6
|
const controllers_1 = require("@golemio/core/dist/input-gateway/controllers");
|
|
6
7
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
7
8
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
8
9
|
class JISEventsController extends controllers_1.BaseController {
|
|
9
10
|
constructor() {
|
|
10
|
-
super(
|
|
11
|
+
super(const_1.JIS_QUEUE_NAME, new golemio_validator_1.JSONSchemaValidator("JISEventsDataValidation", JISEventsJsonSchema_1.jisEventsJsonSchema));
|
|
11
12
|
this.processData = async (inputData) => {
|
|
12
13
|
try {
|
|
13
14
|
await this.validator.Validate(inputData);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISEventsController.js","sourceRoot":"","sources":["../../../../src/input-gateway/jis/controllers/JISEventsController.ts"],"names":[],"mappings":";;;AAAA,yGAA+E;AAC/E,8EAA8E;AAC9E,6EAA8F;AAC9F,mFAAkF;AAElF,MAAa,mBAAoB,SAAQ,4BAAc;IAKnD;QACI,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"JISEventsController.js","sourceRoot":"","sources":["../../../../src/input-gateway/jis/controllers/JISEventsController.ts"],"names":[],"mappings":";;;AAAA,iEAAgD;AAChD,yGAA+E;AAC/E,8EAA8E;AAC9E,6EAA8F;AAC9F,mFAAkF;AAElF,MAAa,mBAAoB,SAAQ,4BAAc;IAKnD;QACI,KAAK,CAAC,sBAAc,EAAE,IAAI,uCAAmB,CAAC,yBAAyB,EAAE,yCAAmB,CAAC,CAAC,CAAC;QAI5F,gBAAW,GAAG,KAAK,EAAE,SAAc,EAAiB,EAAE;YACzD,IAAI,CAAC;gBACD,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;gBACzC,MAAM,IAAI,CAAC,qBAAqB,CAC5B,QAAQ,GAAG,IAAI,CAAC,WAAW,GAAG,mBAAmB,EACjD,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC,CACnE,CAAC;YACN,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,GAAG,YAAY,qCAAoB,EAAE,CAAC;oBACtC,MAAM,GAAG,CAAC;gBACd,CAAC;qBAAM,CAAC;oBACJ,MAAM,IAAI,6BAAY,CAAC,oCAAoC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;gBAClG,CAAC;YACL,CAAC;QACL,CAAC,CAAC;QAjBE,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACtC,CAAC;CAiBJ;AAzBD,kDAyBC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.JISInfotextsController = void 0;
|
|
4
|
+
const const_1 = require("../../../schema-definitions/jis/const");
|
|
4
5
|
const JISInfotextsJsonSchema_1 = require("../../../schema-definitions/jis/datasources/JISInfotextsJsonSchema");
|
|
5
6
|
const controllers_1 = require("@golemio/core/dist/input-gateway/controllers");
|
|
6
7
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
7
8
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
8
9
|
class JISInfotextsController extends controllers_1.BaseController {
|
|
9
10
|
constructor() {
|
|
10
|
-
super(
|
|
11
|
+
super(const_1.JIS_QUEUE_NAME, new golemio_validator_1.JSONSchemaValidator("JISInfotextsDataValidation", JISInfotextsJsonSchema_1.jisInfotextsJsonSchema));
|
|
11
12
|
this.processData = async (inputData) => {
|
|
12
13
|
try {
|
|
13
14
|
await this.validator.Validate(inputData);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsController.js","sourceRoot":"","sources":["../../../../src/input-gateway/jis/controllers/JISInfotextsController.ts"],"names":[],"mappings":";;;AAAA,+GAAqF;AACrF,8EAA8E;AAC9E,6EAA8F;AAC9F,mFAAkF;AAElF,MAAa,sBAAuB,SAAQ,4BAAc;IAKtD;QACI,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"JISInfotextsController.js","sourceRoot":"","sources":["../../../../src/input-gateway/jis/controllers/JISInfotextsController.ts"],"names":[],"mappings":";;;AAAA,iEAAgD;AAChD,+GAAqF;AACrF,8EAA8E;AAC9E,6EAA8F;AAC9F,mFAAkF;AAElF,MAAa,sBAAuB,SAAQ,4BAAc;IAKtD;QACI,KAAK,CAAC,sBAAc,EAAE,IAAI,uCAAmB,CAAC,4BAA4B,EAAE,+CAAsB,CAAC,CAAC,CAAC;QAIlG,gBAAW,GAAG,KAAK,EAAE,SAAc,EAAiB,EAAE;YACzD,IAAI,CAAC;gBACD,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;gBACzC,MAAM,IAAI,CAAC,qBAAqB,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,GAAG,sBAAsB,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;YACtH,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,GAAG,YAAY,qCAAoB,EAAE,CAAC;oBACtC,MAAM,GAAG,CAAC;gBACd,CAAC;qBAAM,CAAC;oBACJ,MAAM,IAAI,6BAAY,CAAC,oCAAoC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;gBAClG,CAAC;YACL,CAAC;QACL,CAAC,CAAC;QAdE,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IACzC,CAAC;CAcJ;AAtBD,wDAsBC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VehiclePositionsController = void 0;
|
|
4
4
|
const vehicle_positions_1 = require("../../schema-definitions/vehicle-positions");
|
|
5
|
+
const const_1 = require("../../schema-definitions/vehicle-positions/const");
|
|
5
6
|
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
6
7
|
const controllers_1 = require("@golemio/core/dist/input-gateway/controllers");
|
|
7
8
|
const ioc_1 = require("@golemio/core/dist/input-gateway/ioc");
|
|
@@ -13,7 +14,7 @@ const DEFAULT_BATCH_SIZE = 500;
|
|
|
13
14
|
const FEED_CODE_PATTERN = /^[A-Za-z0-9_-]+$/;
|
|
14
15
|
class VehiclePositionsController extends controllers_1.BaseController {
|
|
15
16
|
constructor() {
|
|
16
|
-
super(
|
|
17
|
+
super(const_1.VP_QUEUE_NAME, new golemio_validator_1.JSONSchemaValidator(vehicle_positions_1.VehiclePositions.name + "Controller", vehicle_positions_1.VehiclePositions.datasourceJsonSchema));
|
|
17
18
|
/**
|
|
18
19
|
* Data processing
|
|
19
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VehiclePositionsController.js","sourceRoot":"","sources":["../../../src/input-gateway/vehicle-positions/VehiclePositionsController.ts"],"names":[],"mappings":";;;AAAA,kFAA0D;
|
|
1
|
+
{"version":3,"file":"VehiclePositionsController.js","sourceRoot":"","sources":["../../../src/input-gateway/vehicle-positions/VehiclePositionsController.ts"],"names":[],"mappings":";;;AAAA,kFAA0D;AAC1D,4EAA6D;AAG7D,wEAAqE;AACrE,8EAA8E;AAC9E,8DAA6E;AAC7E,6EAA2G;AAC3G,mFAAkF;AAElF,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAE/B,sGAAsG;AACtG,qGAAqG;AACrG,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAE7C,MAAa,0BAA2B,SAAQ,4BAAc;IAM1D;QACI,KAAK,CACD,qBAAa,EACb,IAAI,uCAAmB,CAAC,oCAAgB,CAAC,IAAI,GAAG,YAAY,EAAE,oCAAgB,CAAC,oBAAoB,CAAC,CACvG,CAAC;QAMN;;WAEG;QACI,gBAAW,GAAG,KAAK,EAAE,SAA2B,EAAE,QAAQ,GAAG,KAAK,EAAiB,EAAE;YACxF,IAAI,CAAC;gBACD,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE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,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC;gBACjF,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC;gBAClD,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;YACxC,CAAC;YACD,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC;QA5CE,MAAM,MAAM,GAAG,2BAAqB,CAAC,OAAO,CAAgB,qBAAS,CAAC,YAAY,CAAC,CAAC;QACpF,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,4CAA4C,EAAE,kBAAkB,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC/G,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAChD,CAAC;CA0CJ;AAxDD,gEAwDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const WORKER_NAME = "
|
|
1
|
+
export declare const WORKER_NAME = "PtDataRetention";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WORKER_NAME = void 0;
|
|
4
|
-
|
|
4
|
+
// "Pt" prefix keeps the queue distinct from the predecessor @golemio/pid module's "DataRetention".
|
|
5
|
+
exports.WORKER_NAME = "PtDataRetention";
|
|
5
6
|
//# sourceMappingURL=WorkerName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkerName.js","sourceRoot":"","sources":["../../../../../src/integration-engine/data-retention/workers/constants/WorkerName.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"WorkerName.js","sourceRoot":"","sources":["../../../../../src/integration-engine/data-retention/workers/constants/WorkerName.ts"],"names":[],"mappings":";;;AAAA,mGAAmG;AACtF,QAAA,WAAW,GAAG,iBAAiB,CAAC"}
|
|
@@ -26,7 +26,7 @@ let BlockStopsRedisRepository = BlockStopsRedisRepository_1 = class BlockStopsRe
|
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
exports.BlockStopsRedisRepository = BlockStopsRedisRepository;
|
|
29
|
-
BlockStopsRedisRepository.NAMESPACE_PREFIX = "
|
|
29
|
+
BlockStopsRedisRepository.NAMESPACE_PREFIX = "ptGtfsBlockSchedule";
|
|
30
30
|
exports.BlockStopsRedisRepository = BlockStopsRedisRepository = BlockStopsRedisRepository_1 = __decorate([
|
|
31
31
|
(0, tsyringe_1.injectable)(),
|
|
32
32
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockStopsRedisRepository.js","sourceRoot":"","sources":["../../../../../src/integration-engine/gtfs/data-access/cache/BlockStopsRedisRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,oIAAuG;AACvG,wFAAqF;AACrF,mFAAkF;AAClF,iEAAgE;AAGzD,IAAM,yBAAyB,iCAA/B,MAAM,yBAA0B,SAAQ,uBAAU;IAGrD;QACI,KAAK,CACD,+BAA+B,EAC/B;YACI,kBAAkB,EAAE,IAAI,CAAC,KAAK;YAC9B,oBAAoB,EAAE,IAAI,CAAC,SAAS;YACpC,wBAAwB,EAAE,KAAK;YAC/B,MAAM,EAAE,2BAAyB,CAAC,gBAAgB;SACrD,EACD,IAAI,uCAAmB,CAAC,wCAAwC,EAAE,iDAAuB,CAAC,CAC7F,CAAC;IACN,CAAC;;AAdQ,8DAAyB;AACpB,0CAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"BlockStopsRedisRepository.js","sourceRoot":"","sources":["../../../../../src/integration-engine/gtfs/data-access/cache/BlockStopsRedisRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,oIAAuG;AACvG,wFAAqF;AACrF,mFAAkF;AAClF,iEAAgE;AAGzD,IAAM,yBAAyB,iCAA/B,MAAM,yBAA0B,SAAQ,uBAAU;IAGrD;QACI,KAAK,CACD,+BAA+B,EAC/B;YACI,kBAAkB,EAAE,IAAI,CAAC,KAAK;YAC9B,oBAAoB,EAAE,IAAI,CAAC,SAAS;YACpC,wBAAwB,EAAE,KAAK;YAC/B,MAAM,EAAE,2BAAyB,CAAC,gBAAgB;SACrD,EACD,IAAI,uCAAmB,CAAC,wCAAwC,EAAE,iDAAuB,CAAC,CAC7F,CAAC;IACN,CAAC;;AAdQ,8DAAyB;AACpB,0CAAgB,GAAG,qBAAqB,AAAxB,CAAyB;oCAD9C,yBAAyB;IADrC,IAAA,qBAAU,GAAE;;GACA,yBAAyB,CAerC"}
|
|
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
var StaticFileRedisRepository_1;
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.StaticFileRedisRepository = void 0;
|
|
17
|
+
const const_1 = require("../../../../schema-definitions/gtfs/redis/const");
|
|
17
18
|
const RedisModel_1 = require("@golemio/core/dist/integration-engine/models/RedisModel");
|
|
18
19
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
19
20
|
const csv_parser_1 = __importDefault(require("csv-parser"));
|
|
@@ -39,7 +40,7 @@ let StaticFileRedisRepository = StaticFileRedisRepository_1 = class StaticFileRe
|
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
42
|
exports.StaticFileRedisRepository = StaticFileRedisRepository;
|
|
42
|
-
StaticFileRedisRepository.NAMESPACE_PREFIX =
|
|
43
|
+
StaticFileRedisRepository.NAMESPACE_PREFIX = const_1.GTFS_STATIC_FILES_NAMESPACE_PREFIX;
|
|
43
44
|
exports.StaticFileRedisRepository = StaticFileRedisRepository = StaticFileRedisRepository_1 = __decorate([
|
|
44
45
|
(0, tsyringe_1.injectable)(),
|
|
45
46
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StaticFileRedisRepository.js","sourceRoot":"","sources":["../../../../../src/integration-engine/gtfs/data-access/cache/StaticFileRedisRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wFAAqF;AACrF,iEAAgE;AAChE,4DAA6B;AAItB,IAAM,yBAAyB,iCAA/B,MAAM,yBAA0B,SAAQ,uBAAU;IAGrD;QACI,KAAK,CAAC,+BAA+B,EAAE;YACnC,wBAAwB,EAAE,KAAK;YAC/B,MAAM,EAAE,2BAAyB,CAAC,gBAAgB;SACrD,CAAC,CAAC;IACP,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,GAAW;QACjC,OAAO,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACzC,MAAM,OAAO,GAAyB,EAAE,CAAC;YAEzC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC;iBACtB,IAAI,CAAC,IAAA,oBAAG,GAAE,CAAC;iBACX,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;gBACjB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACvB,CAAC,CAAC;iBACD,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;gBACZ,OAAO,CAAC,OAAO,CAAC,CAAC;YACrB,CAAC,CAAC,CAAC;QACX,CAAC,CAAC,CAAC;IACP,CAAC;;AAvBQ,8DAAyB;AACpB,0CAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"StaticFileRedisRepository.js","sourceRoot":"","sources":["../../../../../src/integration-engine/gtfs/data-access/cache/StaticFileRedisRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2EAA2E;AAC3E,wFAAqF;AACrF,iEAAgE;AAChE,4DAA6B;AAItB,IAAM,yBAAyB,iCAA/B,MAAM,yBAA0B,SAAQ,uBAAU;IAGrD;QACI,KAAK,CAAC,+BAA+B,EAAE;YACnC,wBAAwB,EAAE,KAAK;YAC/B,MAAM,EAAE,2BAAyB,CAAC,gBAAgB;SACrD,CAAC,CAAC;IACP,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,GAAW;QACjC,OAAO,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACzC,MAAM,OAAO,GAAyB,EAAE,CAAC;YAEzC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC;iBACtB,IAAI,CAAC,IAAA,oBAAG,GAAE,CAAC;iBACX,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;gBACjB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACvB,CAAC,CAAC;iBACD,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;gBACZ,OAAO,CAAC,OAAO,CAAC,CAAC;YACrB,CAAC,CAAC,CAAC;QACX,CAAC,CAAC,CAAC;IACP,CAAC;;AAvBQ,8DAAyB;AACpB,0CAAgB,GAAG,0CAAkC,AAArC,CAAsC;oCAD3D,yBAAyB;IADrC,IAAA,qBAAU,GAAE;;GACA,yBAAyB,CAwBrC"}
|
|
@@ -37,7 +37,7 @@ const CheckForNewDataTask_1 = require("../workers/timetables/tasks/CheckForNewDa
|
|
|
37
37
|
const CheckSavedRowsAndReplaceTablesTask_1 = require("../workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask");
|
|
38
38
|
const DownloadDatasetsTask_1 = require("../workers/timetables/tasks/DownloadDatasetsTask");
|
|
39
39
|
const EnsureCacheTask_1 = require("../workers/timetables/tasks/EnsureCacheTask");
|
|
40
|
-
const
|
|
40
|
+
const ImportGtfsFromStorageTask_1 = require("../workers/timetables/tasks/ImportGtfsFromStorageTask");
|
|
41
41
|
const RefreshGtfsStopsCacheTask_1 = require("../workers/timetables/tasks/RefreshGtfsStopsCacheTask");
|
|
42
42
|
const RefreshGtfsTripStopsCacheTask_1 = require("../workers/timetables/tasks/RefreshGtfsTripStopsCacheTask");
|
|
43
43
|
const RefreshPrecomputedTablesTask_1 = require("../workers/timetables/tasks/RefreshPrecomputedTablesTask");
|
|
@@ -103,7 +103,7 @@ GtfsContainer.registerSingleton(GtfsContainerToken_1.GtfsContainerToken.CheckFor
|
|
|
103
103
|
GtfsContainer.registerSingleton(GtfsContainerToken_1.GtfsContainerToken.SaveStaticDataTask, SaveStaticDataTask_1.SaveStaticDataTask);
|
|
104
104
|
GtfsContainer.registerSingleton(GtfsContainerToken_1.GtfsContainerToken.EnsureCacheTask, EnsureCacheTask_1.EnsureCacheTask);
|
|
105
105
|
GtfsContainer.registerSingleton(GtfsContainerToken_1.GtfsContainerToken.DownloadDatasetsTask, DownloadDatasetsTask_1.DownloadDatasetsTask);
|
|
106
|
-
GtfsContainer.registerSingleton(GtfsContainerToken_1.GtfsContainerToken.
|
|
106
|
+
GtfsContainer.registerSingleton(GtfsContainerToken_1.GtfsContainerToken.ImportGtfsFromStorageTask, ImportGtfsFromStorageTask_1.ImportGtfsFromStorageTask);
|
|
107
107
|
GtfsContainer.registerSingleton(GtfsContainerToken_1.GtfsContainerToken.CheckForNewDataTask, CheckForNewDataTask_1.CheckForNewDataTask);
|
|
108
108
|
GtfsContainer.registerSingleton(GtfsContainerToken_1.GtfsContainerToken.CheckSavedRowsAndReplaceTablesTask, CheckSavedRowsAndReplaceTablesTask_1.CheckSavedRowsAndReplaceTablesTask);
|
|
109
109
|
GtfsContainer.registerSingleton(GtfsContainerToken_1.GtfsContainerToken.RefreshPrecomputedTablesTask, RefreshPrecomputedTablesTask_1.RefreshPrecomputedTablesTask);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/integration-engine/gtfs/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAC1C,8GAAyG;AACzG,gHAA2G;AAC3G,2DAAiC;AACjC,qFAA8F;AAC9F,iEAAoF;AACpF,4DAAyD;AACzD,sDAAmD;AACnD,8CAA2C;AAC3C,sEAAmE;AACnE,8EAA2E;AAC3E,kEAA+D;AAC/D,0EAAuE;AACvE,8FAA2F;AAC3F,oGAAiG;AACjG,4GAAyG;AACzG,sGAAmG;AACnG,8FAA2F;AAC3F,4DAAkE;AAClE,oFAAiF;AACjF,4HAAyH;AACzH,kHAA+G;AAC/G,wHAAqH;AACrH,6EAA0E;AAC1E,8GAA2G;AAC3G,8EAA2E;AAC3E,4GAAyG;AACzG,gHAA6G;AAC7G,4FAAyF;AACzF,0GAAuG;AACvG,4FAAyF;AACzF,sFAAmF;AACnF,yFAAsF;AACtF,uHAAoH;AACpH,2FAAwF;AACxF,iFAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/integration-engine/gtfs/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAC1C,8GAAyG;AACzG,gHAA2G;AAC3G,2DAAiC;AACjC,qFAA8F;AAC9F,iEAAoF;AACpF,4DAAyD;AACzD,sDAAmD;AACnD,8CAA2C;AAC3C,sEAAmE;AACnE,8EAA2E;AAC3E,kEAA+D;AAC/D,0EAAuE;AACvE,8FAA2F;AAC3F,oGAAiG;AACjG,4GAAyG;AACzG,sGAAmG;AACnG,8FAA2F;AAC3F,4DAAkE;AAClE,oFAAiF;AACjF,4HAAyH;AACzH,kHAA+G;AAC/G,wHAAqH;AACrH,6EAA0E;AAC1E,8GAA2G;AAC3G,8EAA2E;AAC3E,4GAAyG;AACzG,gHAA6G;AAC7G,4FAAyF;AACzF,0GAAuG;AACvG,4FAAyF;AACzF,sFAAmF;AACnF,yFAAsF;AACtF,uHAAoH;AACpH,2FAAwF;AACxF,iFAA8E;AAC9E,qGAAkG;AAClG,qGAAkG;AAClG,6GAA0G;AAC1G,2GAAwG;AACxG,yHAAsH;AACtH,yGAAsG;AACtG,uFAAoF;AACpF,mGAAgG;AAChG,yHAAsH;AACtH,qHAAkH;AAClH,qHAAkH;AAClH,yGAAsG;AACtG,iFAA8E;AAC9E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4B,EAAE,2DAA4B,CAAC,CAAC;AAC/G,aAAa,CAAC,iBAAiB,CAAC,uCAAkB,CAAC,wBAAwB,EAAE,mDAAwB,CAAC,CAAC;AACvG,aAAa,CAAC,iBAAiB,CAAC,uCAAkB,CAAC,sBAAsB,EAAE,+CAAsB,CAAC,CAAC;AACnG,aAAa,CAAC,iBAAiB,CAAC,uCAAkB,CAAC,sBAAsB,EAAE,+CAAsB,CAAC,CAAC;AACnG,aAAa,CAAC,iBAAiB,CAAC,uCAAkB,CAAC,mBAAmB,EAAE,yCAAmB,CAAC,CAAC;AAC7F,YAAY;AAEZ,iBAAiB;AACjB,YAAY;AAEZ,eAAe;AACf,aAAa,CAAC,iBAAiB,CAAC,uCAAkB,CAAC,wBAAwB,EAAE,mDAAwB,CAAC,CAAC;AACvG,aAAa,CAAC,iBAAiB,CAAC,uCAAkB,CAAC,4BAA4B,EAAE,2DAA4B,CAAC,CAAC"}
|
|
@@ -37,7 +37,7 @@ declare const GtfsContainerToken: {
|
|
|
37
37
|
GtfsCisStopsModel: symbol;
|
|
38
38
|
EnsureCacheTask: symbol;
|
|
39
39
|
DownloadDatasetsTask: symbol;
|
|
40
|
-
|
|
40
|
+
ImportGtfsFromStorageTask: symbol;
|
|
41
41
|
CheckForNewDataTask: symbol;
|
|
42
42
|
CheckSavedRowsAndReplaceTablesTask: symbol;
|
|
43
43
|
RefreshPrecomputedTablesTask: symbol;
|
|
@@ -40,7 +40,7 @@ const GtfsContainerToken = {
|
|
|
40
40
|
GtfsCisStopsModel: Symbol("GtfsCisStopsModel"),
|
|
41
41
|
EnsureCacheTask: Symbol("EnsureCacheTask"),
|
|
42
42
|
DownloadDatasetsTask: Symbol("DownloadDatasetsTask"),
|
|
43
|
-
|
|
43
|
+
ImportGtfsFromStorageTask: Symbol("ImportGtfsFromStorageTask"),
|
|
44
44
|
CheckForNewDataTask: Symbol("CheckForNewDataTask"),
|
|
45
45
|
CheckSavedRowsAndReplaceTablesTask: Symbol("CheckSavedRowsAndReplaceTablesTask"),
|
|
46
46
|
RefreshPrecomputedTablesTask: Symbol("RefreshPrecomputedTablesTask"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GtfsContainerToken.js","sourceRoot":"","sources":["../../../../src/integration-engine/gtfs/ioc/GtfsContainerToken.ts"],"names":[],"mappings":";;;AAAA,MAAM,kBAAkB,GAAG;IACvB,yBAAyB,EAAE,MAAM,CAAC,2BAA2B,CAAC;IAC9D,gCAAgC,EAAE,MAAM,CAAC,kCAAkC,CAAC;IAC5E,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC;IACxD,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAChD,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;IACpD,uBAAuB,EAAE,MAAM,CAAC,yBAAyB,CAAC;IAC1D,yBAAyB,EAAE,MAAM,CAAC,2BAA2B,CAAC;IAC9D,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAChD,kCAAkC,EAAE,MAAM,CAAC,oCAAoC,CAAC;IAChF,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC;IAClC,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAChD,cAAc,EAAE,MAAM,CAAC,gBAAgB,CAAC;IACxC,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD,6BAA6B,EAAE,MAAM,CAAC,+BAA+B,CAAC;IACtE,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC;IACxD,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC;IAChC,yBAAyB,EAAE,MAAM,CAAC,2BAA2B,CAAC;IAC9D,mCAAmC,EAAE,MAAM,CAAC,qCAAqC,CAAC;IAClF,2BAA2B,EAAE,MAAM,CAAC,6BAA6B,CAAC;IAClE,gCAAgC,EAAE,MAAM,CAAC,kCAAkC,CAAC;IAC5E,6BAA6B,EAAE,MAAM,CAAC,+BAA+B,CAAC;IACtE,cAAc,EAA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C,kCAAkC,CAAC;IAC5E,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,4BAA4B,EAAE,MAAM,CAAC,8BAA8B,CAAC;IACpE,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,eAAe,EAAE,MAAM,CAAC,iBAAiB,CAAC;IAC1C,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;IACpD,yBAAyB,EAAE,MAAM,CAAC,2BAA2B,CAAC;IAC9D,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD,kCAAkC,EAAE,MAAM,CAAC,oCAAoC,CAAC;IAChF,4BAA4B,EAAE,MAAM,CAAC,8BAA8B,CAAC;IACpE,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC;IACxD,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC;IACxD,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD,6BAA6B,EAAE,MAAM,CAAC,+BAA+B,CAAC;IACtE,2BAA2B,EAAE,MAAM,CAAC,6BAA6B,CAAC;IAClE,iCAAiC,EAAE,MAAM,CAAC,mCAAmC,CAAC;CACjF,CAAC;AAEO,gDAAkB"}
|
|
@@ -20,7 +20,7 @@ class TimetableWorker extends workers_1.AbstractWorker {
|
|
|
20
20
|
this.registerTask(Di_1.GtfsContainer.resolve(GtfsContainerToken_1.GtfsContainerToken.CheckForNewDataTask));
|
|
21
21
|
this.registerTask(Di_1.GtfsContainer.resolve(GtfsContainerToken_1.GtfsContainerToken.CheckSavedRowsAndReplaceTablesTask));
|
|
22
22
|
this.registerTask(Di_1.GtfsContainer.resolve(GtfsContainerToken_1.GtfsContainerToken.DownloadDatasetsTask));
|
|
23
|
-
this.registerTask(Di_1.GtfsContainer.resolve(GtfsContainerToken_1.GtfsContainerToken.
|
|
23
|
+
this.registerTask(Di_1.GtfsContainer.resolve(GtfsContainerToken_1.GtfsContainerToken.ImportGtfsFromStorageTask));
|
|
24
24
|
this.registerTask(Di_1.GtfsContainer.resolve(GtfsContainerToken_1.GtfsContainerToken.RefreshPrecomputedTablesTask));
|
|
25
25
|
this.registerTask(Di_1.GtfsContainer.resolve(GtfsContainerToken_1.GtfsContainerToken.TransformAndSaveDataTask));
|
|
26
26
|
this.registerTask(Di_1.GtfsContainer.resolve(GtfsContainerToken_1.GtfsContainerToken.SaveStaticDataTask));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimetableWorker.js","sourceRoot":"","sources":["../../../../../src/integration-engine/gtfs/workers/timetables/TimetableWorker.ts"],"names":[],"mappings":";;;AAAA,qCAAgD;AAChD,qEAAqE;AACrE,2EAA6F;AAC7F,2CAAoD;AAcpD,MAAa,eAAgB,SAAQ,wBAAc;IAG/C;QACI,KAAK,EAAE,CAAC;QAHF,SAAI,GAAG,iCAAqB,CAAC;QAwBhC,iBAAY,GAAG,CAAC,IAAuB,EAAQ,EAAE;YACpD,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAC7C,CAAC,CAAC;QAtBE,iBAAiB;QACjB,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAA4B,uCAAkB,CAAC,yBAAyB,CAAC,CAAC,CAAC;QAClH,IAAI,CAAC,YAAY,CACb,kBAAa,CAAC,OAAO,CAAsC,uCAAkB,CAAC,mCAAmC,CAAC,CACrH,CAAC;QACF,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAAgC,uCAAkB,CAAC,6BAA6B,CAAC,CAAC,CAAC;QAC1H,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAAsB,uCAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC;QACtG,IAAI,CAAC,YAAY,CACb,kBAAa,CAAC,OAAO,CAAqC,uCAAkB,CAAC,kCAAkC,CAAC,CACnH,CAAC;QACF,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAAuB,uCAAkB,CAAC,oBAAoB,CAAC,CAAC,CAAC;QACxG,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"TimetableWorker.js","sourceRoot":"","sources":["../../../../../src/integration-engine/gtfs/workers/timetables/TimetableWorker.ts"],"names":[],"mappings":";;;AAAA,qCAAgD;AAChD,qEAAqE;AACrE,2EAA6F;AAC7F,2CAAoD;AAcpD,MAAa,eAAgB,SAAQ,wBAAc;IAG/C;QACI,KAAK,EAAE,CAAC;QAHF,SAAI,GAAG,iCAAqB,CAAC;QAwBhC,iBAAY,GAAG,CAAC,IAAuB,EAAQ,EAAE;YACpD,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAC7C,CAAC,CAAC;QAtBE,iBAAiB;QACjB,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAA4B,uCAAkB,CAAC,yBAAyB,CAAC,CAAC,CAAC;QAClH,IAAI,CAAC,YAAY,CACb,kBAAa,CAAC,OAAO,CAAsC,uCAAkB,CAAC,mCAAmC,CAAC,CACrH,CAAC;QACF,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAAgC,uCAAkB,CAAC,6BAA6B,CAAC,CAAC,CAAC;QAC1H,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAAsB,uCAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC;QACtG,IAAI,CAAC,YAAY,CACb,kBAAa,CAAC,OAAO,CAAqC,uCAAkB,CAAC,kCAAkC,CAAC,CACnH,CAAC;QACF,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAAuB,uCAAkB,CAAC,oBAAoB,CAAC,CAAC,CAAC;QACxG,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAA4B,uCAAkB,CAAC,yBAAyB,CAAC,CAAC,CAAC;QAClH,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAA+B,uCAAkB,CAAC,4BAA4B,CAAC,CAAC,CAAC;QACxH,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAA2B,uCAAkB,CAAC,wBAAwB,CAAC,CAAC,CAAC;QAChH,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAAqB,uCAAkB,CAAC,kBAAkB,CAAC,CAAC,CAAC;QACpG,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAAkB,uCAAkB,CAAC,eAAe,CAAC,CAAC,CAAC;QAC9F,IAAI,CAAC,YAAY,CAAC,kBAAa,CAAC,OAAO,CAA8B,uCAAkB,CAAC,2BAA2B,CAAC,CAAC,CAAC;IAC1H,CAAC;CAMJ;AA7BD,0CA6BC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TIMETABLE_WORKER_NAME = void 0;
|
|
4
|
-
|
|
4
|
+
const const_1 = require("../../../../schema-definitions/gtfs/const");
|
|
5
|
+
exports.TIMETABLE_WORKER_NAME = const_1.GTFS_QUEUE_NAME;
|
|
5
6
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/integration-engine/gtfs/workers/timetables/constants.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/integration-engine/gtfs/workers/timetables/constants.ts"],"names":[],"mappings":";;;AAAA,qEAAkD;AAErC,QAAA,qBAAqB,GAAG,uBAAe,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { GtfsMetadataRepository } from "../../../GtfsMetadataRepository";
|
|
2
|
+
import { GtfsFeedRepository } from "../../../data-access/GtfsFeedRepository";
|
|
3
|
+
import { GtfsRepository } from "../../../data-access/GtfsRepository";
|
|
4
|
+
import { StaticFileRedisRepository } from "../../../data-access/cache/StaticFileRedisRepository";
|
|
5
|
+
import { ILogger } from "@golemio/core/dist/helpers/logger/LoggerProvider";
|
|
6
|
+
import { AbstractStorageService } from "@golemio/core/dist/helpers/data-access/storage/AbstractStorageService";
|
|
7
|
+
import { RedisPubSubChannel } from "@golemio/core/dist/integration-engine/data-access/pubsub";
|
|
8
|
+
import { AbstractTask } from "@golemio/core/dist/integration-engine/workers";
|
|
9
|
+
import { IImportGtfsFromStorageInput } from "./interfaces/IImportGtfsFromStorageInput";
|
|
10
|
+
import { ImportGtfsFromStorageSchema } from "./schema/ImportGtfsFromStorageSchema";
|
|
11
|
+
export declare class ImportGtfsFromStorageTask extends AbstractTask<IImportGtfsFromStorageInput> {
|
|
12
|
+
private readonly metadataRepository;
|
|
13
|
+
private readonly gtfsRepository;
|
|
14
|
+
private readonly feedRepository;
|
|
15
|
+
private readonly staticFileRedisRepository;
|
|
16
|
+
private readonly gtfsRedisChannel;
|
|
17
|
+
private readonly storageService;
|
|
18
|
+
private readonly logger;
|
|
19
|
+
readonly queueName = "importGtfsFromStorage";
|
|
20
|
+
readonly queueTtl: number;
|
|
21
|
+
readonly schema: typeof ImportGtfsFromStorageSchema;
|
|
22
|
+
constructor(metadataRepository: GtfsMetadataRepository, gtfsRepository: GtfsRepository, feedRepository: GtfsFeedRepository, staticFileRedisRepository: StaticFileRedisRepository, gtfsRedisChannel: RedisPubSubChannel, storageService: AbstractStorageService, logger: ILogger);
|
|
23
|
+
protected execute(data: IImportGtfsFromStorageInput): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Downloads "gtfs-static/<feedCode>.zip" from blob storage, unzips it, validates the required GTFS file set
|
|
26
|
+
* and pipes each ingested file into the same Redis staging namespace the FTP download path uses,
|
|
27
|
+
* so the downstream transformAndSaveData tasks read both paths' files identically.
|
|
28
|
+
*/
|
|
29
|
+
private stageFeedFilesFromStorage;
|
|
30
|
+
}
|
|
@@ -15,45 +15,116 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
18
|
+
exports.ImportGtfsFromStorageTask = void 0;
|
|
19
19
|
const GtfsMetadataRepository_1 = require("../../../GtfsMetadataRepository");
|
|
20
20
|
const GtfsFeedRepository_1 = require("../../../data-access/GtfsFeedRepository");
|
|
21
21
|
const GtfsRepository_1 = require("../../../data-access/GtfsRepository");
|
|
22
|
+
const StaticFileRedisRepository_1 = require("../../../data-access/cache/StaticFileRedisRepository");
|
|
22
23
|
const DatasetEnum_1 = require("../../../helpers/DatasetEnum");
|
|
23
24
|
const GtfsContainerToken_1 = require("../../../ioc/GtfsContainerToken");
|
|
24
25
|
const RopidMetadataModel_1 = require("../../../../shared/RopidMetadataModel");
|
|
25
26
|
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
27
|
+
const AbstractStorageService_1 = require("@golemio/core/dist/helpers/data-access/storage/AbstractStorageService");
|
|
26
28
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
27
29
|
const pubsub_1 = require("@golemio/core/dist/integration-engine/data-access/pubsub");
|
|
30
|
+
const FileCompressor_1 = require("@golemio/core/dist/integration-engine/helpers/FileCompressor");
|
|
31
|
+
const ioc_1 = require("@golemio/core/dist/integration-engine/ioc");
|
|
28
32
|
const workers_1 = require("@golemio/core/dist/integration-engine/workers");
|
|
29
33
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
30
34
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
35
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
31
36
|
const node_os_1 = __importDefault(require("node:os"));
|
|
32
37
|
const constants_1 = require("../constants");
|
|
33
38
|
const HelperTypes_1 = require("./helpers/HelperTypes");
|
|
34
|
-
const
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
const ImportGtfsFromStorageSchema_1 = require("./schema/ImportGtfsFromStorageSchema");
|
|
40
|
+
// The exact file set present in the reference feed zip (docs/kodis-czechia-cz.zip) -- every
|
|
41
|
+
// imported feed is validated against it.
|
|
42
|
+
const REQUIRED_GTFS_FILES = [
|
|
43
|
+
"agency.txt",
|
|
44
|
+
"calendar.txt",
|
|
45
|
+
"calendar_dates.txt",
|
|
46
|
+
"feed_info.txt",
|
|
47
|
+
"route_sub_agencies.txt",
|
|
48
|
+
"routes.txt",
|
|
49
|
+
"shapes.txt",
|
|
50
|
+
"stop_times.txt",
|
|
51
|
+
"stops.txt",
|
|
52
|
+
"transfers.txt",
|
|
53
|
+
"trips.txt",
|
|
54
|
+
];
|
|
55
|
+
// feed_info.txt is required for presence but has no corresponding gtfs_* table/transformation yet
|
|
56
|
+
// (follow-up); every other required file maps directly onto an existing gtfs_* entity table.
|
|
57
|
+
const INGESTED_GTFS_FILES = REQUIRED_GTFS_FILES.filter((name) => name !== "feed_info.txt");
|
|
58
|
+
// Feed zips live under one folder in the blob container: "gtfs-static/<feedCode>.zip".
|
|
59
|
+
const STORAGE_FOLDER = "gtfs-static";
|
|
60
|
+
// Plays the role DownloadDatasetsTask plays for the FTP path, but for a feed zip uploaded to blob
|
|
61
|
+
// storage as "gtfs-static/<feedCode>.zip" (import is triggered manually via this queue's message). All files are
|
|
62
|
+
// tagged with the same DatasetEnum.GTFS bundle type as the FTP path's static schedule files -- that
|
|
63
|
+
// enum value identifies the *shape* of the file bundle (agency/calendar/routes/stops/trips/...), not
|
|
64
|
+
// the feed identity, which is carried separately via feedCode.
|
|
65
|
+
let ImportGtfsFromStorageTask = class ImportGtfsFromStorageTask extends workers_1.AbstractTask {
|
|
66
|
+
constructor(metadataRepository, gtfsRepository, feedRepository, staticFileRedisRepository, gtfsRedisChannel, storageService, logger) {
|
|
42
67
|
super(constants_1.TIMETABLE_WORKER_NAME);
|
|
43
68
|
this.metadataRepository = metadataRepository;
|
|
44
69
|
this.gtfsRepository = gtfsRepository;
|
|
45
70
|
this.feedRepository = feedRepository;
|
|
71
|
+
this.staticFileRedisRepository = staticFileRedisRepository;
|
|
46
72
|
this.gtfsRedisChannel = gtfsRedisChannel;
|
|
73
|
+
this.storageService = storageService;
|
|
47
74
|
this.logger = logger;
|
|
48
|
-
this.queueName = "
|
|
75
|
+
this.queueName = "importGtfsFromStorage";
|
|
49
76
|
this.queueTtl = 59 * 60 * 1000; // 59 minutes
|
|
50
|
-
this.schema =
|
|
77
|
+
this.schema = ImportGtfsFromStorageSchema_1.ImportGtfsFromStorageSchema;
|
|
78
|
+
/**
|
|
79
|
+
* Downloads "gtfs-static/<feedCode>.zip" from blob storage, unzips it, validates the required GTFS file set
|
|
80
|
+
* and pipes each ingested file into the same Redis staging namespace the FTP download path uses,
|
|
81
|
+
* so the downstream transformAndSaveData tasks read both paths' files identically.
|
|
82
|
+
*/
|
|
83
|
+
this.stageFeedFilesFromStorage = async (feedCode) => {
|
|
84
|
+
const blobKey = `${STORAGE_FOLDER}/${feedCode}.zip`;
|
|
85
|
+
const blobStream = await this.storageService.getFileStream(blobKey);
|
|
86
|
+
if (!blobStream) {
|
|
87
|
+
throw new golemio_errors_1.GeneralError(`Blob "${blobKey}" not found in storage`, this.constructor.name, undefined, 404);
|
|
88
|
+
}
|
|
89
|
+
const chunks = [];
|
|
90
|
+
for await (const chunk of blobStream) {
|
|
91
|
+
chunks.push(Buffer.from(chunk));
|
|
92
|
+
}
|
|
93
|
+
const zipBuffer = Buffer.concat(chunks);
|
|
94
|
+
const compressor = new FileCompressor_1.FileCompressor(node_os_1.default.tmpdir());
|
|
95
|
+
let extractionPath;
|
|
96
|
+
const stagedFiles = [];
|
|
97
|
+
try {
|
|
98
|
+
const inflated = await compressor.inflateBuffer(zipBuffer, (name) => REQUIRED_GTFS_FILES.includes(name));
|
|
99
|
+
extractionPath = inflated.extractionPath;
|
|
100
|
+
const foundNames = new Set(inflated.files.map((file) => file.name));
|
|
101
|
+
const missing = REQUIRED_GTFS_FILES.filter((name) => !foundNames.has(name));
|
|
102
|
+
if (missing.length > 0) {
|
|
103
|
+
throw new golemio_errors_1.GeneralError(`Feed zip "${blobKey}" is missing required GTFS file(s): ${missing.join(", ")}`, this.constructor.name);
|
|
104
|
+
}
|
|
105
|
+
for (const file of inflated.files) {
|
|
106
|
+
if (!INGESTED_GTFS_FILES.includes(file.name)) {
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
const redisKey = `${feedCode}/${file.name}`;
|
|
110
|
+
await this.staticFileRedisRepository.pipeStream(redisKey, node_fs_1.default.createReadStream(file.path));
|
|
111
|
+
stagedFiles.push({ name: file.name, redisKey });
|
|
112
|
+
}
|
|
113
|
+
return stagedFiles;
|
|
114
|
+
}
|
|
115
|
+
finally {
|
|
116
|
+
if (extractionPath) {
|
|
117
|
+
await node_fs_1.default.promises.rm(extractionPath, { recursive: true, force: true });
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
51
121
|
}
|
|
52
122
|
async execute(data) {
|
|
53
|
-
const { feedCode
|
|
54
|
-
// fail loudly rather than silently provisioning a feed from
|
|
123
|
+
const { feedCode } = data;
|
|
124
|
+
// fail loudly rather than silently provisioning a feed from a stray blob
|
|
55
125
|
await this.feedRepository.getFeedIdByCode(feedCode);
|
|
56
|
-
|
|
126
|
+
const files = await this.stageFeedFilesFromStorage(feedCode);
|
|
127
|
+
this.logger.info(`Storage import: staged ${files.length} files for feed ${feedCode}`);
|
|
57
128
|
const dbLastModified = await this.metadataRepository.getLastModified(DatasetEnum_1.DatasetEnum.GTFS);
|
|
58
129
|
const version = dbLastModified.version + 1;
|
|
59
130
|
const cachedDatasets = [];
|
|
@@ -96,13 +167,13 @@ let IngestUploadedGtfsDatasetTask = class IngestUploadedGtfsDatasetTask extends
|
|
|
96
167
|
}
|
|
97
168
|
try {
|
|
98
169
|
await subscriber.listen(({ message, messageCount, isFinal }) => {
|
|
99
|
-
this.logger.debug(`
|
|
170
|
+
this.logger.debug(`Storage import: received message: ${message} (${messageCount}/${cachedDatasets.length})`);
|
|
100
171
|
if (!message.startsWith("OK")) {
|
|
101
|
-
this.logger.error(`
|
|
172
|
+
this.logger.error(`Storage import: subscription error: ${message}`);
|
|
102
173
|
throw new golemio_errors_1.GeneralError(message, this.constructor.name);
|
|
103
174
|
}
|
|
104
175
|
if (isFinal) {
|
|
105
|
-
this.logger.info("
|
|
176
|
+
this.logger.info("Storage import: all messages received");
|
|
106
177
|
}
|
|
107
178
|
});
|
|
108
179
|
}
|
|
@@ -119,17 +190,21 @@ let IngestUploadedGtfsDatasetTask = class IngestUploadedGtfsDatasetTask extends
|
|
|
119
190
|
}
|
|
120
191
|
}
|
|
121
192
|
};
|
|
122
|
-
exports.
|
|
123
|
-
exports.
|
|
193
|
+
exports.ImportGtfsFromStorageTask = ImportGtfsFromStorageTask;
|
|
194
|
+
exports.ImportGtfsFromStorageTask = ImportGtfsFromStorageTask = __decorate([
|
|
124
195
|
(0, tsyringe_1.injectable)(),
|
|
125
196
|
__param(0, (0, tsyringe_1.inject)(GtfsContainerToken_1.GtfsContainerToken.GtfsMetadataRepository)),
|
|
126
197
|
__param(1, (0, tsyringe_1.inject)(GtfsContainerToken_1.GtfsContainerToken.GtfsRepository)),
|
|
127
198
|
__param(2, (0, tsyringe_1.inject)(GtfsContainerToken_1.GtfsContainerToken.GtfsFeedRepository)),
|
|
128
|
-
__param(3, (0, tsyringe_1.inject)(GtfsContainerToken_1.GtfsContainerToken.
|
|
129
|
-
__param(4, (0, tsyringe_1.inject)(
|
|
199
|
+
__param(3, (0, tsyringe_1.inject)(GtfsContainerToken_1.GtfsContainerToken.StaticFileRedisRepository)),
|
|
200
|
+
__param(4, (0, tsyringe_1.inject)(GtfsContainerToken_1.GtfsContainerToken.RedisPubSubChannel)),
|
|
201
|
+
__param(5, (0, tsyringe_1.inject)(ioc_1.ContainerToken.StorageService)),
|
|
202
|
+
__param(6, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
130
203
|
__metadata("design:paramtypes", [GtfsMetadataRepository_1.GtfsMetadataRepository,
|
|
131
204
|
GtfsRepository_1.GtfsRepository,
|
|
132
205
|
GtfsFeedRepository_1.GtfsFeedRepository,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
206
|
+
StaticFileRedisRepository_1.StaticFileRedisRepository,
|
|
207
|
+
pubsub_1.RedisPubSubChannel,
|
|
208
|
+
AbstractStorageService_1.AbstractStorageService, Object])
|
|
209
|
+
], ImportGtfsFromStorageTask);
|
|
210
|
+
//# sourceMappingURL=ImportGtfsFromStorageTask.js.map
|
package/dist/integration-engine/gtfs/workers/timetables/tasks/ImportGtfsFromStorageTask.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImportGtfsFromStorageTask.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/gtfs/workers/timetables/tasks/ImportGtfsFromStorageTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,4EAAyE;AACzE,gFAA6E;AAC7E,wEAAqE;AACrE,oGAAiG;AACjG,8DAA2D;AAC3D,wEAAqE;AACrE,8EAAoG;AACpG,wEAAqE;AAErE,kHAA+G;AAC/G,8EAAqE;AACrE,qFAA8F;AAC9F,iGAA8F;AAC9F,mEAA2E;AAC3E,2EAA6E;AAC7E,6EAA8F;AAC9F,iEAAwE;AACxE,sDAAyB;AACzB,sDAAyB;AACzB,4CAAqD;AACrD,uDAAoG;AAGpG,sFAAmF;AAEnF,4FAA4F;AAC5F,yCAAyC;AACzC,MAAM,mBAAmB,GAAG;IACxB,YAAY;IACZ,cAAc;IACd,oBAAoB;IACpB,eAAe;IAC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AW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC7F,CAAC;gBAAS,CAAC;YACP,MAAM,UAAU,CAAC,WAAW,EAAE,CAAC;YAC/B,MAAM,aAAa,GAAmB,EAAE,QAAQ,EAAE,CAAC,yBAAW,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;YACjF,iCAAY,CAAC,qBAAqB,CAAC,IAAI,CAAC,WAAW,EAAE,gCAAgC,EAAE,aAAa,CAAC,CAAC;QAC1G,CAAC;IACL,CAAC;CAqDJ,CAAA;AA3JY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,qBAAU,GAAE;IAOJ,WAAA,IAAA,iBAAM,EAAC,uCAAkB,CAAC,sBAAsB,CAAC,CAAA;IAEjD,WAAA,IAAA,iBAAM,EAAC,uCAAkB,CAAC,cAAc,CAAC,CAAA;IACzC,WAAA,IAAA,iBAAM,EAAC,uCAAkB,CAAC,kBAAkB,CAAC,CAAA;IAC7C,WAAA,IAAA,iBAAM,EAAC,uCAAkB,CAAC,yBAAyB,CAAC,CAAA;IAEpD,WAAA,IAAA,iBAAM,EAAC,uCAAkB,CAAC,kBAAkB,CAAC,CAAA;IAC7C,WAAA,IAAA,iBAAM,EAAC,oBAAc,CAAC,cAAc,CAAC,CAAA;IACrC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;qCAPY,+CAAsB;QACiB,+BAAc;QACV,uCAAkB;QAEtD,qDAAyB;QACa,2BAAkB;QAC5B,+CAAsB;GAbzF,yBAAyB,CA2JrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IImportGtfsFromStorageInput.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/gtfs/workers/timetables/tasks/interfaces/IImportGtfsFromStorageInput.ts"],"names":[],"mappings":""}
|
package/dist/integration-engine/gtfs/workers/timetables/tasks/schema/ImportGtfsFromStorageSchema.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ImportGtfsFromStorageSchema = void 0;
|
|
13
|
+
const class_validator_1 = require("@golemio/core/dist/shared/class-validator");
|
|
14
|
+
// feedCode is later folded into raw-SQL identifiers (feed-suffixed tmp table names in
|
|
15
|
+
// TransformAndSaveDataTask/GtfsRepository), so reject anything outside this charset at the
|
|
16
|
+
// message boundary even though gtfs_feeds registration also gates it.
|
|
17
|
+
class ImportGtfsFromStorageSchema {
|
|
18
|
+
}
|
|
19
|
+
exports.ImportGtfsFromStorageSchema = ImportGtfsFromStorageSchema;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.Matches)(/^[A-Za-z0-9_-]+$/),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ImportGtfsFromStorageSchema.prototype, "feedCode", void 0);
|
|
25
|
+
//# sourceMappingURL=ImportGtfsFromStorageSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImportGtfsFromStorageSchema.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/gtfs/workers/timetables/tasks/schema/ImportGtfsFromStorageSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+EAA8E;AAG9E,sFAAsF;AACtF,2FAA2F;AAC3F,sEAAsE;AACtE,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AADG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,EAAC,kBAAkB,CAAC;;6DACV"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RedisModel } from "@golemio/core/dist/integration-engine/models/RedisModel";
|
|
2
2
|
export declare class JISMetadataRepository extends RedisModel {
|
|
3
|
-
static readonly NAMESPACE_PREFIX = "
|
|
3
|
+
static readonly NAMESPACE_PREFIX = "ptJisMetadata";
|
|
4
4
|
protected readonly infotextsKey = "infotexts";
|
|
5
5
|
protected readonly eventsKey = "events";
|
|
6
6
|
constructor();
|