@golemio/pid 2.8.1-dev.943582902 → 2.8.1
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/12_metro_line_A_gtfs_trips.sql +0 -4
- package/dist/integration-engine/index.js +0 -2
- package/dist/integration-engine/index.js.map +1 -1
- package/dist/integration-engine/queueDefinitions.js +50 -0
- package/dist/integration-engine/queueDefinitions.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/LegacyRopidGTFSWorker.d.ts +63 -0
- package/dist/integration-engine/ropid-gtfs/LegacyRopidGTFSWorker.js +541 -3
- package/dist/integration-engine/ropid-gtfs/LegacyRopidGTFSWorker.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/data-access/cache/StaticFileRedisRepository.js +4 -18
- package/dist/integration-engine/ropid-gtfs/data-access/cache/StaticFileRedisRepository.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/interfaces/ICheckForNewDataInput.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/transformations/RopidGTFSTransformation.js +3 -16
- package/dist/integration-engine/ropid-gtfs/transformations/RopidGTFSTransformation.js.map +1 -1
- package/dist/output-gateway/pid/helpers/DepartureBoardMapper.d.ts +3 -3
- package/dist/output-gateway/pid/helpers/DepartureBoardMapper.js +3 -21
- package/dist/output-gateway/pid/helpers/DepartureBoardMapper.js.map +1 -1
- package/dist/output-gateway/pid/index.d.ts +2 -3
- package/dist/output-gateway/pid/index.js +1 -1
- package/dist/output-gateway/pid/index.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/precomputed/interfaces/IDeparturesModel.d.ts +2 -3
- package/docs/implementation_documentation.md +37 -39
- package/docs/openapi-output.yaml +1 -1
- package/package.json +3 -3
- package/dist/helpers/AccessibilityEnums.d.ts +0 -16
- package/dist/helpers/AccessibilityEnums.js +0 -22
- package/dist/helpers/AccessibilityEnums.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/ioc/Di.d.ts +0 -3
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js +0 -29
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +0 -8
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +0 -12
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.d.ts +0 -5
- package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js +0 -23
- package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.d.ts +0 -12
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.js +0 -61
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.d.ts +0 -14
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js +0 -93
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/DownloadDatasetsTask.d.ts +0 -19
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/DownloadDatasetsTask.js +0 -152
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/DownloadDatasetsTask.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.d.ts +0 -11
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.js +0 -57
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.d.ts +0 -21
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.js +0 -160
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.d.ts +0 -24
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.js +0 -36
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.d.ts +0 -12
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.js +0 -67
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.d.ts +0 -13
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js +0 -102
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/ICheckForNewDataInput.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/IDatasetsInput.d.ts +0 -4
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/IDatasetsInput.js +0 -3
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/IDatasetsInput.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CachedDatasetSchema.d.ts +0 -8
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CachedDatasetSchema.js +0 -40
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CachedDatasetSchema.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CheckForNewDataMessageValidation.d.ts +0 -4
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CheckForNewDataMessageValidation.js +0 -22
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CheckForNewDataMessageValidation.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/DownloadDataInputSchema.d.ts +0 -5
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/DownloadDataInputSchema.js +0 -23
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/DownloadDataInputSchema.js.map +0 -1
- /package/dist/integration-engine/ropid-gtfs/{workers/timetables/tasks/interfaces → interfaces}/ICheckForNewDataInput.d.ts +0 -0
- /package/dist/integration-engine/ropid-gtfs/{workers/timetables/tasks/interfaces → interfaces}/ICheckForNewDataInput.js +0 -0
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.datasetFileModelMap = exports.isCachedDataset = exports.CacheContentType = exports.ORIGIN_HOSTNAME_HEADER = void 0;
|
|
4
|
-
const RopidGTFSMetadataModel_1 = require("../../../../RopidGTFSMetadataModel");
|
|
5
|
-
exports.ORIGIN_HOSTNAME_HEADER = "x-origin-hostname";
|
|
6
|
-
var CacheContentType;
|
|
7
|
-
(function (CacheContentType) {
|
|
8
|
-
CacheContentType["CSV"] = "CSV";
|
|
9
|
-
CacheContentType["JSON"] = "JSON";
|
|
10
|
-
})(CacheContentType || (exports.CacheContentType = CacheContentType = {}));
|
|
11
|
-
const isCachedDataset = (obj) => {
|
|
12
|
-
return obj instanceof Object && obj.filepath !== undefined && obj.name !== undefined && obj.dataset !== undefined;
|
|
13
|
-
};
|
|
14
|
-
exports.isCachedDataset = isCachedDataset;
|
|
15
|
-
const datasetFileModelMap = (dataset, name) => {
|
|
16
|
-
let model;
|
|
17
|
-
switch (dataset) {
|
|
18
|
-
case RopidGTFSMetadataModel_1.DatasetEnum.PID_GTFS:
|
|
19
|
-
model = name;
|
|
20
|
-
break;
|
|
21
|
-
case RopidGTFSMetadataModel_1.DatasetEnum.RUN_NUMBERS:
|
|
22
|
-
model = "run_numbers";
|
|
23
|
-
break;
|
|
24
|
-
case RopidGTFSMetadataModel_1.DatasetEnum.OIS_MAPPING:
|
|
25
|
-
model = "ois";
|
|
26
|
-
break;
|
|
27
|
-
case RopidGTFSMetadataModel_1.DatasetEnum.CIS_STOPS:
|
|
28
|
-
model = ["cis_stops", "cis_stop_groups"];
|
|
29
|
-
break;
|
|
30
|
-
default:
|
|
31
|
-
throw new Error(`Error mapping dataset ${dataset} and source ${name}`);
|
|
32
|
-
}
|
|
33
|
-
return model;
|
|
34
|
-
};
|
|
35
|
-
exports.datasetFileModelMap = datasetFileModelMap;
|
|
36
|
-
//# sourceMappingURL=HelperTypes.js.map
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HelperTypes.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.ts"],"names":[],"mappings":";;;AAAA,+EAAoE;AAMvD,QAAA,sBAAsB,GAAG,mBAAmB,CAAC;AAQ1D,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,+BAAW,CAAA;IACX,iCAAa,CAAA;AACjB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAYM,MAAM,eAAe,GAAG,CAAC,GAAQ,EAAyB,EAAE;IAC/D,OAAO,GAAG,YAAY,MAAM,IAAI,GAAG,CAAC,QAAQ,KAAK,SAAS,IAAI,GAAG,CAAC,IAAI,KAAK,SAAS,IAAI,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC;AACtH,CAAC,CAAC;AAFW,QAAA,eAAe,mBAE1B;AAEK,MAAM,mBAAmB,GAAG,CAAC,OAAqB,EAAE,IAAY,EAAyC,EAAE;IAC9G,IAAI,KAAK,CAAC;IACV,QAAQ,OAAO,EAAE;QACb,KAAK,oCAAW,CAAC,QAAQ;YACrB,KAAK,GAAG,IAAyB,CAAC;YAClC,MAAM;QACV,KAAK,oCAAW,CAAC,WAAW;YACxB,KAAK,GAAU,aAAa,CAAC;YAC7B,MAAM;QACV,KAAK,oCAAW,CAAC,WAAW;YACxB,KAAK,GAAU,KAAK,CAAC;YACrB,MAAM;QACV,KAAK,oCAAW,CAAC,SAAS;YACtB,KAAK,GAAG,CAAQ,WAAW,EAAS,iBAAiB,CAAC,CAAC;YACvD,MAAM;QACV;YACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,OAAO,eAAe,IAAI,EAAE,CAAC,CAAC;KAC9E;IAED,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AApBW,QAAA,mBAAmB,uBAoB9B"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SourceTableSuffixEnum } from "../../../../helpers/SourceTableSuffixEnum";
|
|
2
|
-
import { ILogger } from "@golemio/core/dist/helpers/logger/LoggerProvider";
|
|
3
|
-
export declare class PrecomputedTablesFacade {
|
|
4
|
-
private readonly logger;
|
|
5
|
-
/** Precomputed data repositories */
|
|
6
|
-
private departuresRepository;
|
|
7
|
-
private minMaxStopSequencesRepository;
|
|
8
|
-
private tripScheduleRepository;
|
|
9
|
-
private servicesCalendarRepository;
|
|
10
|
-
constructor(logger: ILogger);
|
|
11
|
-
createAndPopulatePrecomputedTmpTables: (sourceTableSuffix: SourceTableSuffixEnum) => Promise<void>;
|
|
12
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.PrecomputedTablesFacade = void 0;
|
|
25
|
-
const DeparturesRepository_1 = require("../../../../data-access/precomputed/DeparturesRepository");
|
|
26
|
-
const MinMaxStopSequencesRepository_1 = require("../../../../data-access/precomputed/MinMaxStopSequencesRepository");
|
|
27
|
-
const ServicesCalendarRepository_1 = require("../../../../data-access/precomputed/ServicesCalendarRepository");
|
|
28
|
-
const TripScheduleRepository_1 = require("../../../../data-access/precomputed/TripScheduleRepository");
|
|
29
|
-
const SourceTableSuffixEnum_1 = require("../../../../helpers/SourceTableSuffixEnum");
|
|
30
|
-
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
31
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
32
|
-
let PrecomputedTablesFacade = exports.PrecomputedTablesFacade = class PrecomputedTablesFacade {
|
|
33
|
-
constructor(logger) {
|
|
34
|
-
this.logger = logger;
|
|
35
|
-
this.createAndPopulatePrecomputedTmpTables = (sourceTableSuffix) => __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
this.logger.info(`Datasets: creating temp table ${this.servicesCalendarRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
37
|
-
yield this.servicesCalendarRepository.createAndPopulate(sourceTableSuffix);
|
|
38
|
-
this.logger.info(`Datasets: creating indexes on ${this.servicesCalendarRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
39
|
-
yield this.servicesCalendarRepository.createIndexes();
|
|
40
|
-
this.logger.info(`Datasets: creating temp table ${this.minMaxStopSequencesRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
41
|
-
yield this.minMaxStopSequencesRepository.createAndPopulate(sourceTableSuffix);
|
|
42
|
-
this.logger.info(`Datasets: creating indexes on ${this.minMaxStopSequencesRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
43
|
-
yield this.minMaxStopSequencesRepository.createIndexes();
|
|
44
|
-
this.logger.info(`Datasets: creating temp table ${this.tripScheduleRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
45
|
-
yield this.tripScheduleRepository.createAndPopulate(sourceTableSuffix);
|
|
46
|
-
this.logger.info(`Datasets: creating indexes on ${this.tripScheduleRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
47
|
-
yield this.tripScheduleRepository.createIndexes();
|
|
48
|
-
this.logger.info(`Datasets: creating temp table ${this.departuresRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
49
|
-
yield this.departuresRepository.createAndPopulate(sourceTableSuffix);
|
|
50
|
-
this.logger.info(`Datasets: creating indexes on ${this.departuresRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
51
|
-
yield this.departuresRepository.createIndexes();
|
|
52
|
-
this.logger.info(`Datasets: running analyze on ${this.departuresRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
53
|
-
yield this.departuresRepository.analyze();
|
|
54
|
-
});
|
|
55
|
-
/** Precomputed data repositories */
|
|
56
|
-
this.departuresRepository = new DeparturesRepository_1.DeparturesRepository();
|
|
57
|
-
this.minMaxStopSequencesRepository = new MinMaxStopSequencesRepository_1.MinMaxStopSequencesRepository();
|
|
58
|
-
this.tripScheduleRepository = new TripScheduleRepository_1.TripScheduleRepository();
|
|
59
|
-
this.servicesCalendarRepository = new ServicesCalendarRepository_1.ServicesCalendarRepository();
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
exports.PrecomputedTablesFacade = PrecomputedTablesFacade = __decorate([
|
|
63
|
-
(0, tsyringe_1.injectable)(),
|
|
64
|
-
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
65
|
-
__metadata("design:paramtypes", [Object])
|
|
66
|
-
], PrecomputedTablesFacade);
|
|
67
|
-
//# sourceMappingURL=PrecomputedTablesFacade.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PrecomputedTablesFacade.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,mGAAmG;AACnG,qHAAqH;AACrH,+GAA+G;AAC/G,uGAAuG;AACvG,qFAAqF;AACrF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|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DatasetMap } from "./HelperTypes";
|
|
2
|
-
export declare class RopidGtfsFactory {
|
|
3
|
-
private dataSourceGtfs;
|
|
4
|
-
private dataSourceCisStops;
|
|
5
|
-
private dataSourceOisMapping;
|
|
6
|
-
private dataSourceRunNumbers;
|
|
7
|
-
private transformationGtfs;
|
|
8
|
-
private transformationCisStops;
|
|
9
|
-
private transformationOisMapping;
|
|
10
|
-
private datasetMap;
|
|
11
|
-
constructor();
|
|
12
|
-
getDatasetMap(): DatasetMap;
|
|
13
|
-
}
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
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.RopidGtfsFactory = void 0;
|
|
13
|
-
const RopidGTFSMetadataModel_1 = require("../../../../RopidGTFSMetadataModel");
|
|
14
|
-
const RopidGTFSCisStopsTransformation_1 = require("../../../../transformations/RopidGTFSCisStopsTransformation");
|
|
15
|
-
const RopidGTFSOisTransformation_1 = require("../../../../transformations/RopidGTFSOisTransformation");
|
|
16
|
-
const RopidGTFSTransformation_1 = require("../../../../transformations/RopidGTFSTransformation");
|
|
17
|
-
const ropid_gtfs_1 = require("../../../../../../schema-definitions/ropid-gtfs");
|
|
18
|
-
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
19
|
-
const RetryDataSource_1 = require("@golemio/core/dist/integration-engine/datasources/RetryDataSource");
|
|
20
|
-
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
21
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
22
|
-
const HelperTypes_1 = require("./HelperTypes");
|
|
23
|
-
let RopidGtfsFactory = exports.RopidGtfsFactory = class RopidGtfsFactory {
|
|
24
|
-
constructor() {
|
|
25
|
-
// Ropid GTFS
|
|
26
|
-
this.dataSourceGtfs = new RetryDataSource_1.RetryDataSource(ropid_gtfs_1.RopidGTFS.name + "DataSource", new integration_engine_1.FTPProtocolStrategy({
|
|
27
|
-
filename: integration_engine_1.config.datasources.RopidGTFSFilename,
|
|
28
|
-
targetType: integration_engine_1.FTPTargetType.COMPRESSED,
|
|
29
|
-
returnType: integration_engine_1.FTPReturnType.Stream,
|
|
30
|
-
path: integration_engine_1.config.datasources.RopidGTFSPath,
|
|
31
|
-
url: integration_engine_1.config.datasources.RopidFTP,
|
|
32
|
-
whitelistedFiles: [
|
|
33
|
-
"agency.txt",
|
|
34
|
-
"calendar.txt",
|
|
35
|
-
"calendar_dates.txt",
|
|
36
|
-
"shapes.txt",
|
|
37
|
-
"stop_times.txt",
|
|
38
|
-
"stops.txt",
|
|
39
|
-
"routes.txt",
|
|
40
|
-
"trips.txt",
|
|
41
|
-
],
|
|
42
|
-
encoding: "utf8",
|
|
43
|
-
}), new integration_engine_1.JSONDataTypeStrategy({ resultsPath: "" }), null);
|
|
44
|
-
this.transformationGtfs = new RopidGTFSTransformation_1.RopidGTFSTransformation();
|
|
45
|
-
// Ropid GTFS Run Numbers Datasource
|
|
46
|
-
this.dataSourceRunNumbers = new RetryDataSource_1.RetryDataSource(ropid_gtfs_1.RopidGTFS.run_numbers.name + "DataSource", new integration_engine_1.FTPProtocolStrategy({
|
|
47
|
-
filename: integration_engine_1.config.datasources.RopidGTFSRunNumbersFilename,
|
|
48
|
-
returnType: integration_engine_1.FTPReturnType.Stream,
|
|
49
|
-
path: integration_engine_1.config.datasources.RopidGTFSRunNumbersPath,
|
|
50
|
-
url: integration_engine_1.config.datasources.RopidFTP,
|
|
51
|
-
encoding: "utf8",
|
|
52
|
-
}), new integration_engine_1.JSONDataTypeStrategy({ resultsPath: "" }), null);
|
|
53
|
-
// Ropid GTFS CIS STOPS Datasource
|
|
54
|
-
const cisStopsTypeStrategy = new integration_engine_1.JSONDataTypeStrategy({ resultsPath: "stopGroups" });
|
|
55
|
-
cisStopsTypeStrategy.setFilter((item) => item.cis !== 0);
|
|
56
|
-
this.dataSourceCisStops = new RetryDataSource_1.RetryDataSource(ropid_gtfs_1.RopidGTFS.name + "CisStops", new integration_engine_1.FTPProtocolStrategy({
|
|
57
|
-
filename: integration_engine_1.config.datasources.RopidGTFSCisStopsFilename,
|
|
58
|
-
path: integration_engine_1.config.datasources.RopidGTFSCisStopsPath,
|
|
59
|
-
url: integration_engine_1.config.datasources.RopidFTP,
|
|
60
|
-
encoding: "utf8",
|
|
61
|
-
}), cisStopsTypeStrategy, null);
|
|
62
|
-
this.transformationCisStops = new RopidGTFSCisStopsTransformation_1.RopidGTFSCisStopsTransformation();
|
|
63
|
-
// Ropid GTFS Ois Datasource
|
|
64
|
-
this.dataSourceOisMapping = new RetryDataSource_1.RetryDataSource(ropid_gtfs_1.RopidGTFS.name + "Ois", new integration_engine_1.FTPProtocolStrategy({
|
|
65
|
-
filename: integration_engine_1.config.datasources.RopidGTFSOisFilename,
|
|
66
|
-
path: integration_engine_1.config.datasources.RopidGTFSOisPath,
|
|
67
|
-
url: integration_engine_1.config.datasources.RopidFTP,
|
|
68
|
-
encoding: "utf8",
|
|
69
|
-
}), new integration_engine_1.JSONDataTypeStrategy({ resultsPath: "" }), new golemio_validator_1.JSONSchemaValidator(ropid_gtfs_1.RopidGTFS.ois.name + "DataSource", ropid_gtfs_1.RopidGTFS.ois.datasourceJsonSchema));
|
|
70
|
-
this.transformationOisMapping = new RopidGTFSOisTransformation_1.RopidGTFSOisMappingTransformation();
|
|
71
|
-
this.datasetMap = {
|
|
72
|
-
[RopidGTFSMetadataModel_1.DatasetEnum.PID_GTFS]: {
|
|
73
|
-
datasource: this.dataSourceGtfs,
|
|
74
|
-
transformation: this.transformationGtfs,
|
|
75
|
-
cacheContentType: HelperTypes_1.CacheContentType.CSV,
|
|
76
|
-
},
|
|
77
|
-
[RopidGTFSMetadataModel_1.DatasetEnum.RUN_NUMBERS]: {
|
|
78
|
-
datasource: this.dataSourceRunNumbers,
|
|
79
|
-
transformation: this.transformationGtfs,
|
|
80
|
-
cacheContentType: HelperTypes_1.CacheContentType.CSV,
|
|
81
|
-
},
|
|
82
|
-
[RopidGTFSMetadataModel_1.DatasetEnum.CIS_STOPS]: {
|
|
83
|
-
datasource: this.dataSourceCisStops,
|
|
84
|
-
transformation: this.transformationCisStops,
|
|
85
|
-
cacheContentType: HelperTypes_1.CacheContentType.JSON,
|
|
86
|
-
},
|
|
87
|
-
[RopidGTFSMetadataModel_1.DatasetEnum.OIS_MAPPING]: {
|
|
88
|
-
datasource: this.dataSourceOisMapping,
|
|
89
|
-
transformation: this.transformationOisMapping,
|
|
90
|
-
cacheContentType: HelperTypes_1.CacheContentType.JSON,
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
getDatasetMap() {
|
|
95
|
-
return this.datasetMap;
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
exports.RopidGtfsFactory = RopidGtfsFactory = __decorate([
|
|
99
|
-
(0, tsyringe_1.injectable)(),
|
|
100
|
-
__metadata("design:paramtypes", [])
|
|
101
|
-
], RopidGtfsFactory);
|
|
102
|
-
//# sourceMappingURL=RopidGtfsFactory.js.map
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RopidGtfsFactory.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+EAAoE;AACpE,iHAAiH;AACjH,uGAA8G;AAC9G,iGAAiG;AACjG,gFAA4C;AAC5C,8EAO+C;AAC/C,uGAAoG;AACpG,mFAAkF;AAClF,iEAAgE;AAChE,+CAA6D;AAGtD,IAAM,gBAAgB,8BAAtB,MAAM,gBAAgB;IAYzB;QACI,aAAa;QACb,IAAI,CAAC,cAAc,GAAG,IAAI,iCAAe,CACrC,sBAAS,CAAC,IAAI,GAAG,YAAY,EAC7B,IAAI,wCAAmB,CAAC;YACpB,QAAQ,EAAE,2BAAM,CAAC,WAAW,CAAC,iBAAiB;YAC9C,UAAU,EAAE,kCAAa,CAAC,UAAU;YACpC,UAAU,EAAE,kCAAa,CAAC,MAAM;YAChC,IAAI,EAAE,2BAAM,CAAC,WAAW,CAAC,aAAa;YACtC,GAAG,EAAE,2BAAM,CAAC,WAAW,CAAC,QAAQ;YAChC,gBAAgB,EAAE;gBACd,YAAY;gBACZ,cAAc;gBACd,oBAAoB;gBACpB,YAAY;gBACZ,gBAAgB;gBAChB,WAAW;gBACX,YAAY;gBACZ,WAAW;aACd;YACD,QAAQ,EAAE,MAAM;SACnB,CAAC,EACF,IAAI,yCAAoB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,EAC7C,IAAW,CACd,CAAC;QACF,IAAI,CAAC,kBAAkB,GAAG,IAAI,iDAAuB,EAAE,CAAC;QAExD,oCAAoC;QACpC,IAAI,CAAC,oBAAoB,GAAG,IAAI,iCAAe,CAC3C,sBAAS,CAAC,WAAW,CAAC,IAAI,GAAG,YAAY,EACzC,IAAI,wCAAmB,CAAC;YAC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ropid-gtfs/workers/timetables/tasks/interfaces/ICheckForNewDataInput.ts"],"names":[],"mappings":""}
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/IDatasetsInput.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IDatasetsInput.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/IDatasetsInput.ts"],"names":[],"mappings":""}
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CachedDatasetSchema.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
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.CachedDatasetSchema = void 0;
|
|
13
|
-
const ropid_gtfs_1 = require("../../../..");
|
|
14
|
-
const class_validator_1 = require("@golemio/core/dist/shared/class-validator");
|
|
15
|
-
class CachedDatasetSchema {
|
|
16
|
-
}
|
|
17
|
-
exports.CachedDatasetSchema = CachedDatasetSchema;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], CachedDatasetSchema.prototype, "filepath", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], CachedDatasetSchema.prototype, "name", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsOptional)(),
|
|
28
|
-
(0, class_validator_1.IsString)(),
|
|
29
|
-
__metadata("design:type", Object)
|
|
30
|
-
], CachedDatasetSchema.prototype, "mtime", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, class_validator_1.IsOptional)(),
|
|
33
|
-
(0, class_validator_1.IsString)(),
|
|
34
|
-
__metadata("design:type", Object)
|
|
35
|
-
], CachedDatasetSchema.prototype, "type", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_validator_1.IsEnum)(ropid_gtfs_1.DatasetEnum),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], CachedDatasetSchema.prototype, "dataset", void 0);
|
|
40
|
-
//# sourceMappingURL=CachedDatasetSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CachedDatasetSchema.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CachedDatasetSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA6C;AAC7C,+EAAyF;AAGzF,MAAa,mBAAmB;CAa/B;AAbD,kDAaC;AAXG;IADC,IAAA,0BAAQ,GAAE;;qDACO;AAElB;IADC,IAAA,0BAAQ,GAAE;;iDACG;AAGd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACgB;AAG3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACe;AAE1B;IADC,IAAA,wBAAM,EAAC,wBAAW,CAAC;;oDACG"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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.CheckForNewDataMessageValidation = void 0;
|
|
13
|
-
const class_validator_1 = require("@golemio/core/dist/shared/class-validator");
|
|
14
|
-
class CheckForNewDataMessageValidation {
|
|
15
|
-
}
|
|
16
|
-
exports.CheckForNewDataMessageValidation = CheckForNewDataMessageValidation;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsOptional)(),
|
|
19
|
-
(0, class_validator_1.IsBoolean)(),
|
|
20
|
-
__metadata("design:type", Object)
|
|
21
|
-
], CheckForNewDataMessageValidation.prototype, "forceRefresh", void 0);
|
|
22
|
-
//# sourceMappingURL=CheckForNewDataMessageValidation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckForNewDataMessageValidation.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CheckForNewDataMessageValidation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+EAAkF;AAGlF,MAAa,gCAAgC;CAI5C;AAJD,4EAIC;AADG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sEACuB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
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.DatasetsInputSchema = void 0;
|
|
13
|
-
const ropid_gtfs_1 = require("../../../..");
|
|
14
|
-
const class_validator_1 = require("@golemio/core/dist/shared/class-validator");
|
|
15
|
-
class DatasetsInputSchema {
|
|
16
|
-
}
|
|
17
|
-
exports.DatasetsInputSchema = DatasetsInputSchema;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsArray)(),
|
|
20
|
-
(0, class_validator_1.IsEnum)(ropid_gtfs_1.DatasetEnum, { each: true }),
|
|
21
|
-
__metadata("design:type", Array)
|
|
22
|
-
], DatasetsInputSchema.prototype, "datasets", void 0);
|
|
23
|
-
//# sourceMappingURL=DownloadDataInputSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadDataInputSchema.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/DownloadDataInputSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA6C;AAC7C,+EAA4E;AAI5E,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AADG;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,wBAAW,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qDACV"}
|
|
File without changes
|