@golemio/pid 2.8.6 → 2.8.7-dev.963032002
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/migrations/postgresql/20230802143613-ropid-gtfs-update-procedures.js +53 -0
- package/db/migrations/postgresql/sqls/20230802143613-ropid-gtfs-update-procedures-down.sql +7 -0
- package/db/migrations/postgresql/sqls/20230802143613-ropid-gtfs-update-procedures-up.sql +149 -0
- package/dist/integration-engine/ioc/Di.js +0 -4
- package/dist/integration-engine/ioc/Di.js.map +1 -1
- package/dist/integration-engine/ioc/ModuleContainerToken.d.ts +0 -2
- package/dist/integration-engine/ioc/ModuleContainerToken.js +0 -2
- package/dist/integration-engine/ioc/ModuleContainerToken.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/LegacyRopidGTFSWorker.d.ts +1 -1
- package/dist/integration-engine/ropid-gtfs/LegacyRopidGTFSWorker.js +6 -8
- package/dist/integration-engine/ropid-gtfs/LegacyRopidGTFSWorker.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/RopidGtfsFacade.d.ts +30 -0
- package/dist/integration-engine/ropid-gtfs/RopidGtfsFacade.js +152 -0
- package/dist/integration-engine/ropid-gtfs/RopidGtfsFacade.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/RopidGtfsMetadataRepository.d.ts +22 -0
- package/dist/integration-engine/ropid-gtfs/RopidGtfsMetadataRepository.js +120 -0
- package/dist/integration-engine/ropid-gtfs/RopidGtfsMetadataRepository.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/data-access/RopidGtfsRepository.d.ts +18 -0
- package/dist/integration-engine/ropid-gtfs/data-access/RopidGtfsRepository.js +95 -0
- package/dist/integration-engine/ropid-gtfs/data-access/RopidGtfsRepository.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/DeparturesRepository.d.ts +1 -2
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/DeparturesRepository.js +2 -16
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/DeparturesRepository.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/MinMaxStopSequencesRepository.d.ts +1 -4
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/MinMaxStopSequencesRepository.js +2 -38
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/MinMaxStopSequencesRepository.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/ServicesCalendarRepository.d.ts +1 -4
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/ServicesCalendarRepository.js +2 -37
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/ServicesCalendarRepository.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.d.ts +2 -4
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js +2 -38
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.d.ts +3 -3
- package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.js +17 -15
- package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/index.d.ts +1 -1
- package/dist/integration-engine/ropid-gtfs/index.js +1 -1
- package/dist/integration-engine/ropid-gtfs/index.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js +8 -1
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +4 -0
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +4 -0
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/presets/tasks/SavePresetsDataTask.js +3 -3
- package/dist/integration-engine/ropid-gtfs/workers/presets/tasks/SavePresetsDataTask.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.d.ts +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.js +3 -5
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.d.ts +6 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js +54 -38
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/DownloadDatasetsTask.d.ts +3 -2
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/DownloadDatasetsTask.js +8 -7
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/DownloadDatasetsTask.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.d.ts +2 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.js +6 -3
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.d.ts +2 -3
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.js +12 -26
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.d.ts +2 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.js +11 -6
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.d.ts +3 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.js +14 -17
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.d.ts +2 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js +8 -5
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js.map +1 -1
- package/dist/integration-engine/shared/RopidMetadataModel.d.ts +5 -1
- package/dist/integration-engine/shared/RopidMetadataModel.js +9 -19
- package/dist/integration-engine/shared/RopidMetadataModel.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.d.ts +0 -3
- package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.js +0 -45
- package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/AgencyDto.js +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/AgencyDto.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/CalendarDatesDto.js +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/CalendarDatesDto.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/CalendarDto.js +6 -6
- package/dist/schema-definitions/ropid-gtfs/models/CalendarDto.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/RouteDto.js +3 -3
- package/dist/schema-definitions/ropid-gtfs/models/RouteDto.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/ShapeDto.js +2 -2
- package/dist/schema-definitions/ropid-gtfs/models/ShapeDto.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/StopDto.d.ts +1 -2
- package/dist/schema-definitions/ropid-gtfs/models/StopDto.js +5 -25
- package/dist/schema-definitions/ropid-gtfs/models/StopDto.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/StopTimesDto.d.ts +1 -2
- package/dist/schema-definitions/ropid-gtfs/models/StopTimesDto.js +3 -14
- package/dist/schema-definitions/ropid-gtfs/models/StopTimesDto.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/TripDto.js +2 -2
- package/dist/schema-definitions/ropid-gtfs/models/TripDto.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/models/precomputed/DeparturesModel.d.ts +1 -2
- package/dist/schema-definitions/ropid-gtfs/models/precomputed/DeparturesModel.js +0 -14
- package/dist/schema-definitions/ropid-gtfs/models/precomputed/DeparturesModel.js.map +1 -1
- package/dist/schema-definitions/vehicle-descriptors/models/DescriptorModel.d.ts +1 -2
- package/dist/schema-definitions/vehicle-descriptors/models/DescriptorModel.js +0 -8
- package/dist/schema-definitions/vehicle-descriptors/models/DescriptorModel.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/models/VPTripsModel.d.ts +1 -2
- package/dist/schema-definitions/vehicle-positions/models/VPTripsModel.js +0 -8
- package/dist/schema-definitions/vehicle-positions/models/VPTripsModel.js.map +1 -1
- package/package.json +1 -1
- package/dist/integration-engine/ropid-gtfs/RopidGTFSMetadataModel.d.ts +0 -36
- package/dist/integration-engine/ropid-gtfs/RopidGTFSMetadataModel.js +0 -229
- package/dist/integration-engine/ropid-gtfs/RopidGTFSMetadataModel.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/utils.d.ts +0 -4
- package/dist/integration-engine/ropid-gtfs/utils.js +0 -28
- package/dist/integration-engine/ropid-gtfs/utils.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshPrecomputedTablesTask.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"RefreshPrecomputedTablesTask.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0C;AAI1C,wEAA2E;AAC3E,kFAAqF;AACrF,wCAA2D;AAC3D,kFAAqF;AAErF,wEAAqE;AAErE,2EAAkF;AAClF,6EAAwE;AAGxE,MAAa,4BAA6B,SAAQ,2BAAiB;IAW/D,YAAY,WAAmB;QAC3B,KAAK,CAAC,WAAW,CAAC,CAAC;QAXP,cAAS,GAAG,0BAA0B,CAAC;QACvC,aAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa;QAWpD,IAAI,CAAC,MAAM,GAAG,uBAAkB,CAAC,OAAO,CAAU,qBAAS,CAAC,MAAM,CAAC,CAAC;QAEpE,IAAI,CAAC,gBAAgB,GAAG,mCAAgB,CAAC,WAAW,EAAE,CAAC;QACvD,IAAI,CAAC,sBAAsB,GAAG,uBAAkB,CAAC,OAAO,CACpD,iDAAuB,CAAC,uBAAuB,CAClD,CAAC;QACF,IAAI,CAAC,mBAAmB,GAAG,uBAAkB,CAAC,OAAO,CAAsB,iDAAuB,CAAC,mBAAmB,CAAC,CAAC;QACxH,IAAI,CAAC,eAAe,GAAG,uBAAkB,CAAC,OAAO,CAAkB,iDAAuB,CAAC,eAAe,CAAC,CAAC;IAChH,CAAC;IAEe,OAAO;;YACnB,IAAI;gBACA,MAAM,IAAI,CAAC,sBAAsB,CAAC,qCAAqC,CAAC,6CAAqB,CAAC,MAAM,CAAC,CAAC;aACzG;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACvB,MAAM,IAAI,6BAAY,CAAC,mDAAmD,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;aACtG;YAED,MAAM,UAAU,GAAG,iBAAY,CAAC,OAAO,CAAqB,qBAAS,CAAC,iBAAiB,CAAC,CAAC,aAAa,EAAE,CAAC;YACzG,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,WAAW,EAAE,CAAC;YAEnD,IAAI;gBACA,MAAM,IAAI,CAAC,eAAe,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC;gBACjE,MAAM,WAAW,CAAC,MAAM,EAAE,CAAC;aAC9B;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,WAAW,CAAC,QAAQ,EAAE,CAAC;gBAE7B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACvB,MAAM,IAAI,6BAAY,CAAC,oDAAoD,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;aACvG;oBAAS;gBACN,MAAM,IAAI,CAAC,mBAAmB,CAAC,cAAc,EAAE,CAAC;aACnD;YAED,MAAM,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC;QAC7C,CAAC;KAAA;CACJ;AAhDD,oEAgDC"}
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.d.ts
CHANGED
|
@@ -7,15 +7,14 @@ export declare class TransformAndSaveDataTask extends AbstractTask<ICachedDatase
|
|
|
7
7
|
readonly queueTtl: number;
|
|
8
8
|
readonly schema: typeof CachedDatasetSchema;
|
|
9
9
|
private logger;
|
|
10
|
+
private metadataRepository;
|
|
10
11
|
private staticFileRedisRepository;
|
|
11
|
-
private transformationGtfs;
|
|
12
12
|
private ropidGtfsFactory;
|
|
13
13
|
private gtfsRedisChannel;
|
|
14
|
-
private
|
|
14
|
+
private transformationGtfs;
|
|
15
15
|
constructor(queuePrefix: string);
|
|
16
16
|
protected execute(inputData: ICachedDataset, msgProperties?: MessageProperties): Promise<void>;
|
|
17
17
|
private saveTransformedDataset;
|
|
18
|
-
private createTmpModel;
|
|
19
18
|
private streamDataToTmp;
|
|
20
19
|
private getTmpModelByName;
|
|
21
20
|
}
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.js
CHANGED
|
@@ -11,12 +11,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.TransformAndSaveDataTask = void 0;
|
|
13
13
|
const Di_1 = require("../../../../ioc/Di");
|
|
14
|
-
const ModuleContainerToken_1 = require("../../../../ioc/ModuleContainerToken");
|
|
15
14
|
const ropid_gtfs_1 = require("../../..");
|
|
16
15
|
const SourceTableSuffixEnum_1 = require("../../../helpers/SourceTableSuffixEnum");
|
|
17
16
|
const Di_2 = require("../../../ioc/Di");
|
|
18
17
|
const RopidGtfsContainerToken_1 = require("../../../ioc/RopidGtfsContainerToken");
|
|
19
|
-
const utils_1 = require("../../../utils");
|
|
20
18
|
const RopidMetadataModel_1 = require("../../../../shared/RopidMetadataModel");
|
|
21
19
|
const const_1 = require("../../../../../schema-definitions/const");
|
|
22
20
|
const ropid_gtfs_2 = require("../../../../../schema-definitions/ropid-gtfs");
|
|
@@ -35,26 +33,18 @@ class TransformAndSaveDataTask extends workers_1.AbstractTask {
|
|
|
35
33
|
this.queueTtl = 23 * 60 * 60 * 1000; // 23 hours
|
|
36
34
|
this.schema = CachedDatasetSchema_1.CachedDatasetSchema;
|
|
37
35
|
this.saveTransformedDataset = (transformedData, dataset, modelName) => __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
|
|
36
|
+
var _a;
|
|
39
37
|
switch (dataset) {
|
|
40
38
|
case ropid_gtfs_1.DatasetEnum.PID_GTFS:
|
|
41
39
|
case ropid_gtfs_1.DatasetEnum.RUN_NUMBERS:
|
|
42
40
|
yield this.streamDataToTmp(transformedData, modelName);
|
|
43
41
|
break;
|
|
44
42
|
default:
|
|
45
|
-
yield (
|
|
43
|
+
yield ((_a = this.getTmpModelByName(modelName)) === null || _a === void 0 ? void 0 : _a.save(transformedData, false));
|
|
46
44
|
this.logger.info(`Datasets: copying to tmp success (${modelName})`);
|
|
47
45
|
}
|
|
48
|
-
const dbLastModified = yield this.
|
|
49
|
-
yield this.
|
|
50
|
-
});
|
|
51
|
-
this.createTmpModel = (name) => __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
const model = yield this.getTmpModelByName(name);
|
|
53
|
-
if (ropid_gtfs_2.RopidGTFS[name].modelIndexOptions) {
|
|
54
|
-
yield model.query((0, utils_1.buildDropIndexQuery)(ropid_gtfs_2.RopidGTFS[name].modelIndexOptions));
|
|
55
|
-
}
|
|
56
|
-
yield model.sync({ force: true, schema: const_1.PG_SCHEMA });
|
|
57
|
-
return model;
|
|
46
|
+
const dbLastModified = yield this.metadataRepository.getLastModified(dataset);
|
|
47
|
+
yield this.metadataRepository.updateState(dataset, modelName, RopidMetadataModel_1.MetaStateEnum.SAVED, dbLastModified.version);
|
|
58
48
|
});
|
|
59
49
|
this.streamDataToTmp = (data, modelName) => __awaiter(this, void 0, void 0, function* () {
|
|
60
50
|
// get connection and db client
|
|
@@ -78,32 +68,28 @@ class TransformAndSaveDataTask extends workers_1.AbstractTask {
|
|
|
78
68
|
data.pipe(stream);
|
|
79
69
|
});
|
|
80
70
|
});
|
|
81
|
-
this.getTmpModelByName = (name) =>
|
|
71
|
+
this.getTmpModelByName = (name) => {
|
|
82
72
|
const modelDef = ropid_gtfs_2.RopidGTFS[name];
|
|
83
73
|
if (!modelDef || !modelDef.name || !modelDef.pgTableName || !modelDef.outputSequelizeAttributes) {
|
|
84
74
|
throw new Error("Model not found.");
|
|
85
75
|
}
|
|
86
76
|
const model = new PostgresModel_1.PostgresModel(modelDef.name + "Tmp" + "Model", {
|
|
87
|
-
hasTmpTable: false,
|
|
88
77
|
outputSequelizeAttributes: modelDef.outputSequelizeAttributes,
|
|
89
78
|
pgSchema: const_1.PG_SCHEMA,
|
|
90
79
|
pgTableName: modelDef.pgTableName + SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp,
|
|
91
80
|
savingType: "insertOnly",
|
|
92
|
-
sequelizeAdditionalSettings:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}),
|
|
97
|
-
})),
|
|
98
|
-
}, new golemio_validator_1.JSONSchemaValidator(modelDef.name + "Tmp" + "ModelValidator", modelDef.outputMongooseSchemaObject));
|
|
81
|
+
sequelizeAdditionalSettings: {
|
|
82
|
+
timestamps: false,
|
|
83
|
+
},
|
|
84
|
+
}, new golemio_validator_1.JSONSchemaValidator(modelDef.name + "Tmp" + "ModelValidator", modelDef.mongo));
|
|
99
85
|
return model;
|
|
100
|
-
}
|
|
86
|
+
};
|
|
101
87
|
this.logger = Di_2.RopidGtfsContainer.resolve(CoreToken_1.CoreToken.Logger);
|
|
102
|
-
this.metaModel = Di_2.RopidGtfsContainer.resolve(ModuleContainerToken_1.ModuleContainerToken.RopidGTFSMetadataModel);
|
|
103
88
|
this.staticFileRedisRepository = Di_2.RopidGtfsContainer.resolve(RopidGtfsContainerToken_1.RopidGtfsContainerToken.StaticFileRedisRepository);
|
|
104
|
-
this.transformationGtfs = Di_2.RopidGtfsContainer.resolve(RopidGtfsContainerToken_1.RopidGtfsContainerToken.RopidGTFSTransformation); // TODO is it posible to use factory instead, which already contain this transformation?
|
|
105
89
|
this.ropidGtfsFactory = Di_2.RopidGtfsContainer.resolve(RopidGtfsContainerToken_1.RopidGtfsContainerToken.RopidGtfsFactory);
|
|
106
90
|
this.gtfsRedisChannel = Di_2.RopidGtfsContainer.resolve(RopidGtfsContainerToken_1.RopidGtfsContainerToken.RedisPubSubChannel);
|
|
91
|
+
this.metadataRepository = Di_2.RopidGtfsContainer.resolve(RopidGtfsContainerToken_1.RopidGtfsContainerToken.RopidGtfsMetadataRepository);
|
|
92
|
+
this.transformationGtfs = this.ropidGtfsFactory.getTransformation(ropid_gtfs_1.DatasetEnum.PID_GTFS);
|
|
107
93
|
}
|
|
108
94
|
execute(inputData, msgProperties) {
|
|
109
95
|
return __awaiter(this, void 0, void 0, function* () {
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransformAndSaveDataTask.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0C;AAC1C
|
|
1
|
+
{"version":3,"file":"TransformAndSaveDataTask.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0C;AAC1C,yCAA6C;AAG7C,kFAAqF;AACrF,wCAA2D;AAC3D,kFAAqF;AACrF,8EAA8D;AAC9D,mEAAuC;AACvC,6EAAiF;AAGjF,wEAAqE;AAGrE,8FAA2F;AAC3F,2EAA6E;AAC7E,6EAAwE;AACxE,mFAAkF;AAElF,qDAAmD;AACnD,uDAM+B;AAE/B,sEAAmE;AAGnE,MAAa,wBAAyB,SAAQ,sBAA4B;IAatE,YAAY,WAAmB;QAC3B,KAAK,CAAC,WAAW,CAAC,CAAC;QAbP,cAAS,GAAG,sBAAsB,CAAC;QACnC,aAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW;QAC3C,WAAM,GAAG,yCAAmB,CAAC;QA2ErC,2BAAsB,GAAG,CAC7B,eAAoB,EACpB,OAAqB,EACrB,SAA2B,EACd,EAAE;;YACf,QAAQ,OAAO,EAAE;gBACb,KAAK,wBAAW,CAAC,QAAQ,CAAC;gBAC1B,KAAK,wBAAW,CAAC,WAAW;oBACxB,MAAM,IAAI,CAAC,eAAe,CAAC,eAAe,EAAE,SAA8B,CAAC,CAAC;oBAC5E,MAAM;gBACV;oBACI,MAAM,CAAA,MAAA,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,0CAAE,IAAI,CAAC,eAAe,EAAE,KAA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B,CAAC,EAAE;gBAChD,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,GAAG,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,IAAI,KAAK,SAAS,GAAG,EAAE;oBACjF,aAAa,EAAE,aAAa,CAAC,OAAO,CAAC,oCAAsB,CAAC;iBAC/D,CAAC,CAAC;aACN;YAED,IAAI,YAAY,EAAE;gBACd,MAAM,IAAI,6BAAY,CAAC,YAAY,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;aAC/D;QACL,CAAC;KAAA;CAqEJ;AAjJD,4DAiJC"}
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatasetEnum } from "../../../../
|
|
1
|
+
import { DatasetEnum } from "../../../../RopidGtfsFacade";
|
|
2
2
|
import { DatasetModelName } from "../../../../../../schema-definitions/ropid-gtfs";
|
|
3
3
|
import { IDataSource } from "@golemio/core/dist/integration-engine/datasources/IDataSource";
|
|
4
4
|
import { IFile } from "@golemio/core/dist/integration-engine/datasources/protocol-strategy/IProtocolStrategy";
|
|
@@ -22,3 +22,4 @@ export type DatasetMap = {
|
|
|
22
22
|
};
|
|
23
23
|
export declare const isCachedDataset: (obj: any) => obj is ICachedDataset;
|
|
24
24
|
export declare const datasetFileModelMap: (dataset: GTFSDatasets, name: string) => DatasetModelName | DatasetModelName[];
|
|
25
|
+
export declare const getTableNameFromModel: (modelName: DatasetModelName) => string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.datasetFileModelMap = exports.isCachedDataset = exports.CacheContentType = exports.ORIGIN_HOSTNAME_HEADER = void 0;
|
|
4
|
-
const
|
|
3
|
+
exports.getTableNameFromModel = exports.datasetFileModelMap = exports.isCachedDataset = exports.CacheContentType = exports.ORIGIN_HOSTNAME_HEADER = void 0;
|
|
4
|
+
const RopidGtfsFacade_1 = require("../../../../RopidGtfsFacade");
|
|
5
|
+
const ropid_gtfs_1 = require("../../../../../../schema-definitions/ropid-gtfs");
|
|
5
6
|
exports.ORIGIN_HOSTNAME_HEADER = "x-origin-hostname";
|
|
6
7
|
var CacheContentType;
|
|
7
8
|
(function (CacheContentType) {
|
|
@@ -15,16 +16,16 @@ exports.isCachedDataset = isCachedDataset;
|
|
|
15
16
|
const datasetFileModelMap = (dataset, name) => {
|
|
16
17
|
let model;
|
|
17
18
|
switch (dataset) {
|
|
18
|
-
case
|
|
19
|
+
case RopidGtfsFacade_1.DatasetEnum.PID_GTFS:
|
|
19
20
|
model = name;
|
|
20
21
|
break;
|
|
21
|
-
case
|
|
22
|
+
case RopidGtfsFacade_1.DatasetEnum.RUN_NUMBERS:
|
|
22
23
|
model = "run_numbers";
|
|
23
24
|
break;
|
|
24
|
-
case
|
|
25
|
+
case RopidGtfsFacade_1.DatasetEnum.OIS_MAPPING:
|
|
25
26
|
model = "ois";
|
|
26
27
|
break;
|
|
27
|
-
case
|
|
28
|
+
case RopidGtfsFacade_1.DatasetEnum.CIS_STOPS:
|
|
28
29
|
model = ["cis_stops", "cis_stop_groups"];
|
|
29
30
|
break;
|
|
30
31
|
default:
|
|
@@ -33,4 +34,8 @@ const datasetFileModelMap = (dataset, name) => {
|
|
|
33
34
|
return model;
|
|
34
35
|
};
|
|
35
36
|
exports.datasetFileModelMap = datasetFileModelMap;
|
|
37
|
+
const getTableNameFromModel = (modelName) => {
|
|
38
|
+
return ropid_gtfs_1.RopidGTFS[modelName].pgTableName;
|
|
39
|
+
};
|
|
40
|
+
exports.getTableNameFromModel = getTableNameFromModel;
|
|
36
41
|
//# sourceMappingURL=HelperTypes.js.map
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelperTypes.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"HelperTypes.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAC7D,gFAAiF;AAKpE,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,6BAAW,CAAC,QAAQ;YACrB,KAAK,GAAG,IAAyB,CAAC;YAClC,MAAM;QACV,KAAK,6BAAW,CAAC,WAAW;YACxB,KAAK,GAAU,aAAa,CAAC;YAC7B,MAAM;QACV,KAAK,6BAAW,CAAC,WAAW;YACxB,KAAK,GAAU,KAAK,CAAC;YACrB,MAAM;QACV,KAAK,6BAAW,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;AAEK,MAAM,qBAAqB,GAAG,CAAC,SAA2B,EAAU,EAAE;IACzE,OAAO,sBAAS,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC;AAC5C,CAAC,CAAC;AAFW,QAAA,qBAAqB,yBAEhC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { RopidGtfsRepository } from "../../../../data-access/RopidGtfsRepository";
|
|
1
2
|
import { SourceTableSuffixEnum } from "../../../../helpers/SourceTableSuffixEnum";
|
|
2
3
|
import { ILogger } from "@golemio/core/dist/helpers/logger/LoggerProvider";
|
|
3
4
|
export declare class PrecomputedTablesFacade {
|
|
4
5
|
private readonly logger;
|
|
6
|
+
private readonly ropidGtfsRepository;
|
|
5
7
|
/** Precomputed data repositories */
|
|
6
8
|
private departuresRepository;
|
|
7
9
|
private minMaxStopSequencesRepository;
|
|
8
10
|
private tripScheduleRepository;
|
|
9
11
|
private servicesCalendarRepository;
|
|
10
|
-
constructor(logger: ILogger);
|
|
12
|
+
constructor(logger: ILogger, ropidGtfsRepository: RopidGtfsRepository);
|
|
11
13
|
createAndPopulatePrecomputedTmpTables: (sourceTableSuffix: SourceTableSuffixEnum) => Promise<void>;
|
|
12
14
|
}
|
|
@@ -22,33 +22,29 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
24
|
exports.PrecomputedTablesFacade = void 0;
|
|
25
|
+
const RopidGtfsRepository_1 = require("../../../../data-access/RopidGtfsRepository");
|
|
25
26
|
const DeparturesRepository_1 = require("../../../../data-access/precomputed/DeparturesRepository");
|
|
26
27
|
const MinMaxStopSequencesRepository_1 = require("../../../../data-access/precomputed/MinMaxStopSequencesRepository");
|
|
27
28
|
const ServicesCalendarRepository_1 = require("../../../../data-access/precomputed/ServicesCalendarRepository");
|
|
28
29
|
const TripScheduleRepository_1 = require("../../../../data-access/precomputed/TripScheduleRepository");
|
|
29
30
|
const SourceTableSuffixEnum_1 = require("../../../../helpers/SourceTableSuffixEnum");
|
|
31
|
+
const RopidGtfsContainerToken_1 = require("../../../../ioc/RopidGtfsContainerToken");
|
|
30
32
|
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
31
33
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
32
34
|
let PrecomputedTablesFacade = exports.PrecomputedTablesFacade = class PrecomputedTablesFacade {
|
|
33
|
-
constructor(logger) {
|
|
35
|
+
constructor(logger, ropidGtfsRepository) {
|
|
34
36
|
this.logger = logger;
|
|
37
|
+
this.ropidGtfsRepository = ropidGtfsRepository;
|
|
35
38
|
this.createAndPopulatePrecomputedTmpTables = (sourceTableSuffix) => __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
this.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
this.
|
|
43
|
-
|
|
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}`);
|
|
39
|
+
yield this.ropidGtfsRepository.createPrecomputedTmpTables();
|
|
40
|
+
this.logger.info(`Datasets: populating temp table ${this.servicesCalendarRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
41
|
+
yield this.servicesCalendarRepository.populate(sourceTableSuffix);
|
|
42
|
+
this.logger.info(`Datasets: populating temp table ${this.minMaxStopSequencesRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
43
|
+
yield this.minMaxStopSequencesRepository.populate(sourceTableSuffix);
|
|
44
|
+
this.logger.info(`Datasets: populating temp table ${this.tripScheduleRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
45
|
+
yield this.tripScheduleRepository.populate(sourceTableSuffix);
|
|
46
|
+
this.logger.info(`Datasets: populating temp table ${this.departuresRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
49
47
|
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
48
|
this.logger.info(`Datasets: running analyze on ${this.departuresRepository["tableName"]}${SourceTableSuffixEnum_1.SourceTableSuffixEnum.Tmp}`);
|
|
53
49
|
yield this.departuresRepository.analyze();
|
|
54
50
|
});
|
|
@@ -62,6 +58,7 @@ let PrecomputedTablesFacade = exports.PrecomputedTablesFacade = class Precompute
|
|
|
62
58
|
exports.PrecomputedTablesFacade = PrecomputedTablesFacade = __decorate([
|
|
63
59
|
(0, tsyringe_1.injectable)(),
|
|
64
60
|
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
65
|
-
|
|
61
|
+
__param(1, (0, tsyringe_1.inject)(RopidGtfsContainerToken_1.RopidGtfsContainerToken.RopidGtfsRepository)),
|
|
62
|
+
__metadata("design:paramtypes", [Object, RopidGtfsRepository_1.RopidGtfsRepository])
|
|
66
63
|
], PrecomputedTablesFacade);
|
|
67
64
|
//# sourceMappingURL=PrecomputedTablesFacade.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrecomputedTablesFacade.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"PrecomputedTablesFacade.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,qFAAqF;AACrF,mGAAmG;AACnG,qHAAqH;AACrH,+GAA+G;AAC/G,uGAAuG;AACvG,qFAAqF;AACrF,qFAAqF;AACrF,wEAAqE;AAErE,iEAAwE;AAGjE,IAAM,uBAAuB,qCAA7B,MAAM,uBAAuB;IAOhC,YAC8B,MAAgC,EACL,mBAAyD;QADnE,WAAM,GAAN,MAAM,CAAS;QACY,wBAAmB,GAAnB,mBAAmB,CAAqB;QAS3G,0CAAqC,GAAG,CAAO,iBAAwC,EAAiB,EAAE;YAC7G,MAAM,IAAI,CAAC,mBAAmB,CAAC,0BAA0B,EAAE,CAAC;YAE5D,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,mCAAmC,IAAI,CAAC,0BAA0B,CAAC,WAAW,CAAC,GAAG,6CAAqB,CAAC,GAAG,EAAE,CAChH,CAAC;YACF,MAAM,IAAI,CAAC,0BAA0B,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;YAElE,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,mCAAmC,IAAI,CAAC,6BAA6B,CAAC,WAAW,CAAC,GAAG,6CAAqB,CAAC,GAAG,EAAE,CACnH,CAAC;YACF,MAAM,IAAI,CAAC,6BAA6B,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;YAErE,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,mCAAmC,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,GAAG,6CAAqB,CAAC,GAAG,EAAE,CAC5G,CAAC;YACF,MAAM,IAAI,CAAC,sBAAsB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;YAE9D,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mCAAmC,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,GAAG,6CAAqB,CAAC,GAAG,EAAE,CAAC,CAAC;YAC1H,MAAM,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;YAErE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iCAAiC,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,GAAG,6CAAqB,CAAC,GAAG,EAAE,CAAC,CAAC;YACxH,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,CAAC;QAC9C,CAAC,CAAA,CAAC;QA9BE,oCAAoC;QACpC,IAAI,CAAC,oBAAoB,GAAG,IAAI,2CAAoB,EAAE,CAAC;QACvD,IAAI,CAAC,6BAA6B,GAAG,IAAI,6DAA6B,EAAE,CAAC;QACzE,IAAI,CAAC,sBAAsB,GAAG,IAAI,+CAAsB,EAAE,CAAC;QAC3D,IAAI,CAAC,0BAA0B,GAAG,IAAI,uDAA0B,EAAE,CAAC;IACvE,CAAC;CA0BJ,CAAA;kCA1CY,uBAAuB;IADnC,IAAA,qBAAU,GAAE;IASJ,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;IACxB,WAAA,IAAA,iBAAM,EAAC,iDAAuB,CAAC,mBAAmB,CAAC,CAAA;6CAAuC,yCAAmB;GATzG,uBAAuB,CA0CnC"}
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatasetMap } from "./HelperTypes";
|
|
1
|
+
import { DatasetMap, GTFSDatasets } from "./HelperTypes";
|
|
2
2
|
export declare class RopidGtfsFactory {
|
|
3
3
|
private dataSourceGtfs;
|
|
4
4
|
private dataSourceCisStops;
|
|
@@ -10,4 +10,5 @@ export declare class RopidGtfsFactory {
|
|
|
10
10
|
private datasetMap;
|
|
11
11
|
constructor();
|
|
12
12
|
getDatasetMap(): DatasetMap;
|
|
13
|
+
getTransformation(dataset: GTFSDatasets): import("@golemio/core/dist/integration-engine").ITransformation;
|
|
13
14
|
}
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js
CHANGED
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RopidGtfsFactory = void 0;
|
|
13
|
-
const
|
|
13
|
+
const RopidGtfsFacade_1 = require("../../../../RopidGtfsFacade");
|
|
14
14
|
const RopidGTFSCisStopsTransformation_1 = require("../../../../transformations/RopidGTFSCisStopsTransformation");
|
|
15
15
|
const RopidGTFSOisTransformation_1 = require("../../../../transformations/RopidGTFSOisTransformation");
|
|
16
16
|
const RopidGTFSTransformation_1 = require("../../../../transformations/RopidGTFSTransformation");
|
|
@@ -69,22 +69,22 @@ let RopidGtfsFactory = exports.RopidGtfsFactory = class RopidGtfsFactory {
|
|
|
69
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
70
|
this.transformationOisMapping = new RopidGTFSOisTransformation_1.RopidGTFSOisMappingTransformation();
|
|
71
71
|
this.datasetMap = {
|
|
72
|
-
[
|
|
72
|
+
[RopidGtfsFacade_1.DatasetEnum.PID_GTFS]: {
|
|
73
73
|
datasource: this.dataSourceGtfs,
|
|
74
74
|
transformation: this.transformationGtfs,
|
|
75
75
|
cacheContentType: HelperTypes_1.CacheContentType.CSV,
|
|
76
76
|
},
|
|
77
|
-
[
|
|
77
|
+
[RopidGtfsFacade_1.DatasetEnum.RUN_NUMBERS]: {
|
|
78
78
|
datasource: this.dataSourceRunNumbers,
|
|
79
79
|
transformation: this.transformationGtfs,
|
|
80
80
|
cacheContentType: HelperTypes_1.CacheContentType.CSV,
|
|
81
81
|
},
|
|
82
|
-
[
|
|
82
|
+
[RopidGtfsFacade_1.DatasetEnum.CIS_STOPS]: {
|
|
83
83
|
datasource: this.dataSourceCisStops,
|
|
84
84
|
transformation: this.transformationCisStops,
|
|
85
85
|
cacheContentType: HelperTypes_1.CacheContentType.JSON,
|
|
86
86
|
},
|
|
87
|
-
[
|
|
87
|
+
[RopidGtfsFacade_1.DatasetEnum.OIS_MAPPING]: {
|
|
88
88
|
datasource: this.dataSourceOisMapping,
|
|
89
89
|
transformation: this.transformationOisMapping,
|
|
90
90
|
cacheContentType: HelperTypes_1.CacheContentType.JSON,
|
|
@@ -94,6 +94,9 @@ let RopidGtfsFactory = exports.RopidGtfsFactory = class RopidGtfsFactory {
|
|
|
94
94
|
getDatasetMap() {
|
|
95
95
|
return this.datasetMap;
|
|
96
96
|
}
|
|
97
|
+
getTransformation(dataset) {
|
|
98
|
+
return this.datasetMap[dataset].transformation;
|
|
99
|
+
}
|
|
97
100
|
};
|
|
98
101
|
exports.RopidGtfsFactory = RopidGtfsFactory = __decorate([
|
|
99
102
|
(0, tsyringe_1.injectable)(),
|
package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RopidGtfsFactory.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"RopidGtfsFactory.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iEAA6D;AAC7D,iHAAiH;AACjH,uGAA8G;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,GAAG;YACd,CAAC,6BAAW,CAAC,QAAQ,CAAC,EAAE;gBACpB,UAAU,EAAE,IAAI,CAAC,cAAc;gBAC/B,cAAc,EAAE,IAAI,CAAC,kBAAkB;gBACvC,gBAAgB,EAAE,8BAAgB,CAAC,GAAG;aACzC;YACD,CAAC,6BAAW,CAAC,WAAW,CAAC,EAAE;gBACvB,UAAU,EAAE,IAAI,CAAC,oBAAoB;gBACrC,cAAc,EAAE,IAAI,CAAC,kBAAkB;gBACvC,gBAAgB,EAAE,8BAAgB,CAAC,GAAG;aACzC;YACD,CAAC,6BAAW,CAAC,SAAS,CAAC,EAAE;gBACrB,UAAU,EAAE,IAAI,CAAC,kBAAkB;gBACnC,cAAc,EAAE,IAAI,CAAC,sBAAsB;gBAC3C,gBAAgB,EAAE,8BAAgB,CAAC,IAAI;aAC1C;YACD,CAAC,6BAAW,CAAC,WAAW,CAAC,EAAE;gBACvB,UAAU,EAAE,IAAI,CAAC,oBAAoB;gBACrC,cAAc,EAAE,IAAI,CAAC,wBAAwB;gBAC7C,gBAAgB,EAAE,8BAAgB,CAAC,IAAI;aAC1C;SACJ,CAAC;IACN,CAAC;IAEM,aAAa;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAEM,iBAAiB,CAAC,OAAqB;QAC1C,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC;IACnD,CAAC;CACJ,CAAA;2BAlHY,gBAAgB;IAD5B,IAAA,qBAAU,GAAE;;GACA,gBAAgB,CAkH5B"}
|
|
@@ -17,10 +17,14 @@ export declare enum MetaDatasetInfoKeyEnum {
|
|
|
17
17
|
NUMBER_OF_RETRIES = "number_of_retries",
|
|
18
18
|
DIGEST = "digest"
|
|
19
19
|
}
|
|
20
|
+
export interface ILastModifiedInfo {
|
|
21
|
+
lastModified: string | null;
|
|
22
|
+
version: number;
|
|
23
|
+
}
|
|
20
24
|
export declare class RopidMetadataModel extends PostgresModel implements IModel {
|
|
21
25
|
protected readonly schemaDefinitions: IRopidSchemaDefinitions;
|
|
22
26
|
constructor(schemaDefinitions: IRopidSchemaDefinitions);
|
|
23
|
-
getLastModified: (dataset: string) => Promise<
|
|
27
|
+
getLastModified: (dataset: string) => Promise<ILastModifiedInfo>;
|
|
24
28
|
isDeployed: (dataset: string) => Promise<boolean>;
|
|
25
29
|
checkSavedRows: (dataset: string, version: number) => Promise<void>;
|
|
26
30
|
replaceTmpTables: (dataset: string, version: number) => Promise<boolean>;
|
|
@@ -170,6 +170,7 @@ class RopidMetadataModel extends models_1.PostgresModel {
|
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
this.rollbackFailedSaving = (dataset, version) => __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
var _a, _b, _c;
|
|
173
174
|
yield this.save({
|
|
174
175
|
dataset,
|
|
175
176
|
key: MetaDatasetInfoKeyEnum.FAILED,
|
|
@@ -177,7 +178,7 @@ class RopidMetadataModel extends models_1.PostgresModel {
|
|
|
177
178
|
value: new Date().toISOString(),
|
|
178
179
|
version,
|
|
179
180
|
});
|
|
180
|
-
const numberOfRetries = yield this.sequelizeModel.findOne({
|
|
181
|
+
const numberOfRetries = (_c = (_b = (_a = (yield this.sequelizeModel.findOne({
|
|
181
182
|
attributes: [["value", "retries"]],
|
|
182
183
|
where: {
|
|
183
184
|
dataset,
|
|
@@ -185,25 +186,14 @@ class RopidMetadataModel extends models_1.PostgresModel {
|
|
|
185
186
|
type: MetaTypeEnum.DATASET_INFO,
|
|
186
187
|
version: version - 1,
|
|
187
188
|
},
|
|
189
|
+
}))) === null || _a === void 0 ? void 0 : _a.dataValues) === null || _b === void 0 ? void 0 : _b.retries) !== null && _c !== void 0 ? _c : 0;
|
|
190
|
+
yield this.save({
|
|
191
|
+
dataset,
|
|
192
|
+
key: MetaDatasetInfoKeyEnum.NUMBER_OF_RETRIES,
|
|
193
|
+
type: MetaTypeEnum.DATASET_INFO,
|
|
194
|
+
value: +numberOfRetries + 1,
|
|
195
|
+
version,
|
|
188
196
|
});
|
|
189
|
-
if (!numberOfRetries) {
|
|
190
|
-
yield this.save({
|
|
191
|
-
dataset,
|
|
192
|
-
key: MetaDatasetInfoKeyEnum.NUMBER_OF_RETRIES,
|
|
193
|
-
type: MetaTypeEnum.DATASET_INFO,
|
|
194
|
-
value: 1,
|
|
195
|
-
version,
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
yield this.save({
|
|
200
|
-
dataset,
|
|
201
|
-
key: MetaDatasetInfoKeyEnum.NUMBER_OF_RETRIES,
|
|
202
|
-
type: MetaTypeEnum.DATASET_INFO,
|
|
203
|
-
value: +numberOfRetries.dataValues.retries + 1,
|
|
204
|
-
version,
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
197
|
});
|
|
208
198
|
this.getTotalFromMeta = (dataset, version) => __awaiter(this, void 0, void 0, function* () {
|
|
209
199
|
const tables = yield this.sequelizeModel.findAll({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RopidMetadataModel.js","sourceRoot":"","sources":["../../../src/integration-engine/shared/RopidMetadataModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0DAAuC;AAEvC,oFAA6D;AAC7D,iFAAqF;AACrF,2EAAoE;AACpE,yEAAqF;AACrF,6EAAwE;AACxE,mFAAkF;AAClF,oFAA4D;AAE5D,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,6CAA6B,CAAA;IAC7B,+BAAe,CAAA;IACf,uDAAuC,CAAA;IACvC,yCAAyB,CAAA;AAC7B,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,0CAAyB,CAAA;IACzB,gCAAe,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,IAAY,sBAMX;AAND,WAAY,sBAAsB;IAC9B,yDAA+B,CAAA;IAC/B,2CAAiB,CAAA;IACjB,+CAAqB,CAAA;IACrB,iEAAuC,CAAA;IACvC,2CAAiB,CAAA;AACrB,CAAC,EANW,sBAAsB,sCAAtB,sBAAsB,QAMjC;
|
|
1
|
+
{"version":3,"file":"RopidMetadataModel.js","sourceRoot":"","sources":["../../../src/integration-engine/shared/RopidMetadataModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0DAAuC;AAEvC,oFAA6D;AAC7D,iFAAqF;AACrF,2EAAoE;AACpE,yEAAqF;AACrF,6EAAwE;AACxE,mFAAkF;AAClF,oFAA4D;AAE5D,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,6CAA6B,CAAA;IAC7B,+BAAe,CAAA;IACf,uDAAuC,CAAA;IACvC,yCAAyB,CAAA;AAC7B,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,0CAAyB,CAAA;IACzB,gCAAe,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,IAAY,sBAMX;AAND,WAAY,sBAAsB;IAC9B,yDAA+B,CAAA;IAC/B,2CAAiB,CAAA;IACjB,+CAAqB,CAAA;IACrB,iEAAuC,CAAA;IACvC,2CAAiB,CAAA;AACrB,CAAC,EANW,sBAAsB,sCAAtB,sBAAsB,QAMjC;AAOD,MAAa,kBAAmB,SAAQ,sBAAa;IACjD,YAA+B,iBAA0C;QACrE,KAAK,CACD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,GAAG,OAAO,EACzC;YACI,yBAAyB,EAAE,yBAAW,CAAC,cAAc;YACrD,WAAW,EAAE,iBAAiB,CAAC,QAAQ,CAAC,WAAW;YACnD,QAAQ,EAAE,iBAAS;YACnB,UAAU,EAAE,YAAY;SAC3B,EACD,IAAI,uCAAmB,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,GAAG,gBAAgB,EAAE,yBAAW,CAAC,UAAU,CAAC,CACtG,CAAC;QAVyB,sBAAiB,GAAjB,iBAAiB,CAAy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any>;
|
|
20
|
-
modelIndexOptions: import("sequelize/types/dialects/abstract/query-interface").IndexesOptions[];
|
|
21
20
|
pgTableName: string;
|
|
22
21
|
};
|
|
23
22
|
minMaxStopSequences: {
|
|
@@ -43,7 +42,6 @@ export declare const RopidGTFSPrecomputed: {
|
|
|
43
42
|
required: string[];
|
|
44
43
|
};
|
|
45
44
|
outputSequelizeAttributes: ModelAttributes<any, any>;
|
|
46
|
-
modelIndexOptions: import("sequelize/types/dialects/abstract/query-interface").IndexesOptions[];
|
|
47
45
|
pgTableName: string;
|
|
48
46
|
};
|
|
49
47
|
tripSchedule: {
|
|
@@ -120,7 +118,6 @@ export declare const RopidGTFSPrecomputed: {
|
|
|
120
118
|
required: string[];
|
|
121
119
|
};
|
|
122
120
|
outputSequelizeAttributes: ModelAttributes<any, any>;
|
|
123
|
-
modelIndexOptions: import("sequelize/types/dialects/abstract/query-interface").IndexesOptions[];
|
|
124
121
|
pgTableName: string;
|
|
125
122
|
};
|
|
126
123
|
};
|
|
@@ -7,14 +7,6 @@ const outputServicesCalendarSDMA = {
|
|
|
7
7
|
day_diff: sequelize_1.DataTypes.INTEGER,
|
|
8
8
|
service_id: sequelize_1.DataTypes.STRING(255),
|
|
9
9
|
};
|
|
10
|
-
const servicesCalendarConstraintsMIO = [
|
|
11
|
-
{
|
|
12
|
-
unique: true,
|
|
13
|
-
using: "BTREE",
|
|
14
|
-
name: "ropidgtfs_precomputed_services_calendar_date_service_id_idx",
|
|
15
|
-
fields: ["date", "service_id"],
|
|
16
|
-
},
|
|
17
|
-
];
|
|
18
10
|
const outputServicesCalendarJsonSchema = {
|
|
19
11
|
type: "object",
|
|
20
12
|
properties: {
|
|
@@ -37,14 +29,6 @@ const outputMinMaxStopSequencesSDMA = {
|
|
|
37
29
|
max_stop_time: sequelize_1.DataTypes.STRING,
|
|
38
30
|
min_stop_time: sequelize_1.DataTypes.STRING, // "11:58:00"
|
|
39
31
|
};
|
|
40
|
-
const minMaxStopSequencesConstraintsMIO = [
|
|
41
|
-
{
|
|
42
|
-
unique: true,
|
|
43
|
-
using: "BTREE",
|
|
44
|
-
name: "ropidgtfs_precomputed_minmax_stop_sequences_trip_id_idx",
|
|
45
|
-
fields: ["trip_id"],
|
|
46
|
-
},
|
|
47
|
-
];
|
|
48
32
|
const outputMinMaxStopSequencesJsonSchema = {
|
|
49
33
|
type: "object",
|
|
50
34
|
properties: {
|
|
@@ -66,32 +50,6 @@ const outputMinMaxStopSequencesJsonSchema = {
|
|
|
66
50
|
},
|
|
67
51
|
required: ["trip_id", "max_stop_sequence", "min_stop_sequence", "max_stop_time", "min_stop_time"],
|
|
68
52
|
};
|
|
69
|
-
const tripScheduleConstraintsMIO = [
|
|
70
|
-
{
|
|
71
|
-
unique: false,
|
|
72
|
-
using: "BTREE",
|
|
73
|
-
name: "ropidgtfs_precomputed_trip_schedule_origin_route_id_idx",
|
|
74
|
-
fields: ["origin_route_id"],
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
unique: false,
|
|
78
|
-
using: "BTREE",
|
|
79
|
-
name: "ropidgtfs_precomputed_trip_schedule_origin_route_name_idx",
|
|
80
|
-
fields: ["origin_route_name"],
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
unique: false,
|
|
84
|
-
using: "BTREE",
|
|
85
|
-
name: "ropidgtfs_precomputed_trip_schedule_start_timestamp_idx",
|
|
86
|
-
fields: ["start_timestamp"],
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
unique: true,
|
|
90
|
-
using: "BTREE",
|
|
91
|
-
name: "ropidgtfs_precomputed_trip_schedule_unique_id",
|
|
92
|
-
fields: ["trip_id", "service_id", "run_number", "date", "origin_route_id"],
|
|
93
|
-
},
|
|
94
|
-
];
|
|
95
53
|
const outputTripScheduleSDMA = {
|
|
96
54
|
origin_route_id: sequelize_1.DataTypes.STRING,
|
|
97
55
|
trip_id: sequelize_1.DataTypes.STRING,
|
|
@@ -195,19 +153,16 @@ exports.RopidGTFSPrecomputed = {
|
|
|
195
153
|
servicesCalendar: {
|
|
196
154
|
outputJsonSchema: outputServicesCalendarJsonSchema,
|
|
197
155
|
outputSequelizeAttributes: outputServicesCalendarSDMA,
|
|
198
|
-
modelIndexOptions: servicesCalendarConstraintsMIO,
|
|
199
156
|
pgTableName: "ropidgtfs_precomputed_services_calendar",
|
|
200
157
|
},
|
|
201
158
|
minMaxStopSequences: {
|
|
202
159
|
outputJsonSchema: outputMinMaxStopSequencesJsonSchema,
|
|
203
160
|
outputSequelizeAttributes: outputMinMaxStopSequencesSDMA,
|
|
204
|
-
modelIndexOptions: minMaxStopSequencesConstraintsMIO,
|
|
205
161
|
pgTableName: "ropidgtfs_precomputed_minmax_stop_sequences",
|
|
206
162
|
},
|
|
207
163
|
tripSchedule: {
|
|
208
164
|
outputJsonSchema: outputTripScheduleJsonSchema,
|
|
209
165
|
outputSequelizeAttributes: outputTripScheduleSDMA,
|
|
210
|
-
modelIndexOptions: tripScheduleConstraintsMIO,
|
|
211
166
|
pgTableName: "ropidgtfs_precomputed_trip_schedule",
|
|
212
167
|
},
|
|
213
168
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RopidGTFSPrecomputed.js","sourceRoot":"","sources":["../../../src/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.ts"],"names":[],"mappings":";;;AAAA,mEAAsG;AAEtG,MAAM,0BAA0B,GAAyB;IACrD,IAAI,EAAE,qBAAS,CAAC,IAAI;IACpB,QAAQ,EAAE,qBAAS,CAAC,OAAO;IAC3B,UAAU,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;CACpC,CAAC;AAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"RopidGTFSPrecomputed.js","sourceRoot":"","sources":["../../../src/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.ts"],"names":[],"mappings":";;;AAAA,mEAAsG;AAEtG,MAAM,0BAA0B,GAAyB;IACrD,IAAI,EAAE,qBAAS,CAAC,IAAI;IACpB,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