@golemio/pid 2.7.11 → 2.7.12-dev.935052944
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/dist/integration-engine/index.js +2 -0
- package/dist/integration-engine/index.js.map +1 -1
- package/dist/integration-engine/queueDefinitions.js +0 -50
- package/dist/integration-engine/queueDefinitions.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/LegacyRopidGTFSWorker.d.ts +0 -63
- package/dist/integration-engine/ropid-gtfs/LegacyRopidGTFSWorker.js +3 -541
- package/dist/integration-engine/ropid-gtfs/LegacyRopidGTFSWorker.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/data-access/cache/StaticFileRedisRepository.js +18 -4
- package/dist/integration-engine/ropid-gtfs/data-access/cache/StaticFileRedisRepository.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/ioc/Di.d.ts +3 -0
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js +29 -0
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +8 -0
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +12 -0
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/transformations/RopidGTFSTransformation.js +16 -3
- package/dist/integration-engine/ropid-gtfs/transformations/RopidGTFSTransformation.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.d.ts +5 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js +23 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.d.ts +12 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.js +61 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.d.ts +14 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js +93 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/DownloadDatasetsTask.d.ts +19 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/DownloadDatasetsTask.js +152 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/DownloadDatasetsTask.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.d.ts +11 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.js +57 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.d.ts +21 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.js +160 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.d.ts +24 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.js +36 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.d.ts +12 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.js +67 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.d.ts +13 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js +102 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/ICheckForNewDataInput.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/IDatasetsInput.d.ts +4 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/IDatasetsInput.js +3 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/IDatasetsInput.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CachedDatasetSchema.d.ts +8 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CachedDatasetSchema.js +40 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CachedDatasetSchema.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CheckForNewDataMessageValidation.d.ts +4 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CheckForNewDataMessageValidation.js +22 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CheckForNewDataMessageValidation.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/DownloadDataInputSchema.d.ts +5 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/DownloadDataInputSchema.js +23 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/DownloadDataInputSchema.js.map +1 -0
- package/dist/output-gateway/pid/controllers/DepartureBoardsController.js +1 -2
- package/dist/output-gateway/pid/controllers/DepartureBoardsController.js.map +1 -1
- package/dist/output-gateway/pid/controllers/InfotextsController.js +1 -1
- package/dist/output-gateway/pid/controllers/InfotextsController.js.map +1 -1
- package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js +4 -5
- package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js.map +1 -1
- package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js +1 -2
- package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js.map +1 -1
- package/docs/implementation_documentation.md +39 -37
- package/package.json +2 -2
- package/dist/integration-engine/ropid-gtfs/interfaces/ICheckForNewDataInput.js.map +0 -1
- /package/dist/integration-engine/ropid-gtfs/{interfaces → workers/timetables/tasks/interfaces}/ICheckForNewDataInput.d.ts +0 -0
- /package/dist/integration-engine/ropid-gtfs/{interfaces → workers/timetables/tasks/interfaces}/ICheckForNewDataInput.js +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -15,7 +15,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.DepartureBoardsController = void 0;
|
|
16
16
|
const moment_timezone_1 = __importDefault(require("@golemio/core/dist/shared/moment-timezone"));
|
|
17
17
|
const trace_provider_1 = require("@golemio/core/dist/monitoring/opentelemetry/trace-provider");
|
|
18
|
-
const config_1 = require("@golemio/core/dist/output-gateway/config");
|
|
19
18
|
const shared_1 = require("../../shared");
|
|
20
19
|
const models_1 = require("../models");
|
|
21
20
|
const dto_1 = require("../dto");
|
|
@@ -38,7 +37,7 @@ class DepartureBoardsController {
|
|
|
38
37
|
? (0, moment_timezone_1.default)(query.timeFrom)
|
|
39
38
|
: moment_timezone_1.default.tz(query.timeFrom, preferredTimezone)
|
|
40
39
|
: undefined;
|
|
41
|
-
const span = (0, trace_provider_1.createChildSpan)("DepartureBoardsController.getDepartureBoard"
|
|
40
|
+
const span = (0, trace_provider_1.createChildSpan)("DepartureBoardsController.getDepartureBoard");
|
|
42
41
|
try {
|
|
43
42
|
const data = yield this.departureBoardsModel.GetAll({
|
|
44
43
|
aswIds: query.aswIds,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepartureBoardsController.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/controllers/DepartureBoardsController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gGAA2E;AAE3E,+FAA6F;
|
|
1
|
+
{"version":3,"file":"DepartureBoardsController.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/controllers/DepartureBoardsController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gGAA2E;AAE3E,+FAA6F;AAE7F,yCAA8C;AAC9C,sCAAyD;AACzD,gCAAkF;AAElF,MAAa,yBAAyB;IAGlC;QAIO,sBAAiB,GAAmB,CAAO,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;;YAChE,MAAM,KAAK,GAAG,yBAAgB,CAAC,sBAAsB,CAAC,6BAAuB,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;YAC1F,MAAM,iBAAiB,GAAG,yBAAgB,CAAC,oBAAoB,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;YAEzF,oDAAoD;YACpD,cAAc;YACd,uBAAuB;YACvB,0BAA0B;YAC1B,yBAAyB;YACzB,4BAA4B;YAC5B,MAAM,qBAAqB,GAAW,uDAAuD,CAAC;YAC9F,+DAA+D;YAC/D,MAAM,QAAQ,GAAuB,KAAK,CAAC,QAAQ;gBAC/C,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,qBAAqB,CAAC;oBACzC,CAAC,CAAC,IAAA,yBAAM,EAAC,KAAK,CAAC,QAAQ,CAAC;oBACxB,CAAC,CAAC,yBAAM,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,iBAAiB,CAAC;gBAClD,CAAC,CAAC,SAAS,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AuB,EAAE,CAAC;IAC9D,CAAC;CAkDJ;AAvDD,8DAuDC"}
|
|
@@ -16,7 +16,7 @@ const models_1 = require("../models");
|
|
|
16
16
|
class InfotextsController {
|
|
17
17
|
constructor() {
|
|
18
18
|
this.getInfotexts = (_req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
const span = (0, trace_provider_1.createChildSpan)("InfotextsController.getInfotexts"
|
|
19
|
+
const span = (0, trace_provider_1.createChildSpan)("InfotextsController.getInfotexts");
|
|
20
20
|
try {
|
|
21
21
|
const preferredTimezone = config_1.config.vehiclePositions.defaultTimezone;
|
|
22
22
|
const data = yield this.eventsStopsModel.GetAllWithRoutes(preferredTimezone);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfotextsController.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/controllers/InfotextsController.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,+FAA6F;AAC7F,qEAAkE;AAClE,sCAA2D;AAE3D,MAAa,mBAAmB;IAG5B;QAIO,iBAAY,GAAmB,CAAO,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YAC5D,MAAM,IAAI,GAAG,IAAA,gCAAe,EAAC,kCAAkC,
|
|
1
|
+
{"version":3,"file":"InfotextsController.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/controllers/InfotextsController.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,+FAA6F;AAC7F,qEAAkE;AAClE,sCAA2D;AAE3D,MAAa,mBAAmB;IAG5B;QAIO,iBAAY,GAAmB,CAAO,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YAC5D,MAAM,IAAI,GAAG,IAAA,gCAAe,EAAC,kCAAkC,CAAC,CAAC;YAEjE,IAAI;gBACA,MAAM,iBAAiB,GAAG,eAAM,CAAC,gBAAgB,CAAC,eAAe,CAAC;gBAClE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;gBAC7E,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aAC9B;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;oBAAS;gBACN,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,EAAE,CAAC;aACf;QACL,CAAC,CAAA,CAAC;QAfE,IAAI,CAAC,gBAAgB,GAAG,IAAI,kCAAyB,EAAE,CAAC;IAC5D,CAAC;CAeJ;AApBD,kDAoBC"}
|
|
@@ -19,7 +19,6 @@ const models_1 = require("../../ropid-gtfs/models");
|
|
|
19
19
|
const _1 = require(".");
|
|
20
20
|
const __1 = require("..");
|
|
21
21
|
const data_access_1 = require("../data-access");
|
|
22
|
-
const config_1 = require("@golemio/core/dist/output-gateway/config");
|
|
23
22
|
const trace_provider_1 = require("@golemio/core/dist/monitoring/opentelemetry/trace-provider");
|
|
24
23
|
const PIDDepartureModel_1 = __importDefault(require("./helpers/PIDDepartureModel"));
|
|
25
24
|
class PIDDepartureBoardsModel {
|
|
@@ -35,7 +34,7 @@ class PIDDepartureBoardsModel {
|
|
|
35
34
|
const minutesOffset = options.timeFrom ? options.timeFrom.diff(currentMoment, "minutes") : 0;
|
|
36
35
|
// Combination of ?minutesBefore > 0 and ?skip=atStop is not supported, fall back to 0
|
|
37
36
|
const minutesBefore = options.skip.includes(__1.DepartureSkip.AT_STOP) && options.minutesBefore > 0 ? 0 : options.minutesBefore;
|
|
38
|
-
const spanStops = (0, trace_provider_1.createChildSpan)("PIDRouter.DB.stops"
|
|
37
|
+
const spanStops = (0, trace_provider_1.createChildSpan)("PIDRouter.DB.stops");
|
|
39
38
|
spanStops === null || spanStops === void 0 ? void 0 : spanStops.setAttributes(Object.assign(Object.assign({}, options), { timeFrom: (_a = options.timeFrom) === null || _a === void 0 ? void 0 : _a.toString() }));
|
|
40
39
|
const stopsToInclude = yield models_1.models.GTFSStopModel.GetAll({
|
|
41
40
|
includeMetroTrains: options.includeMetroTrains,
|
|
@@ -56,7 +55,7 @@ class PIDDepartureBoardsModel {
|
|
|
56
55
|
}
|
|
57
56
|
const stopsIds = stopsToInclude.map((e) => e.stop_id);
|
|
58
57
|
spanStops === null || spanStops === void 0 ? void 0 : spanStops.end();
|
|
59
|
-
const spanVymi = (0, trace_provider_1.createChildSpan)("PIDRouter.DB.vymi"
|
|
58
|
+
const spanVymi = (0, trace_provider_1.createChildSpan)("PIDRouter.DB.vymi");
|
|
60
59
|
let infotextsToInclude;
|
|
61
60
|
try {
|
|
62
61
|
infotextsToInclude = yield this.ropidVYMIEventsStopsModel.GetAllDistinctWithEvents(stopsIds, (_b = options.timeFrom) !== null && _b !== void 0 ? _b : currentMoment, options.timezone);
|
|
@@ -65,7 +64,7 @@ class PIDDepartureBoardsModel {
|
|
|
65
64
|
throw new golemio_errors_1.GeneralError("Database error", "DepartureBoardsModel", err, 500);
|
|
66
65
|
}
|
|
67
66
|
spanVymi === null || spanVymi === void 0 ? void 0 : spanVymi.end();
|
|
68
|
-
const spanDirections = (0, trace_provider_1.createChildSpan)("PIDRouter.DB.directions"
|
|
67
|
+
const spanDirections = (0, trace_provider_1.createChildSpan)("PIDRouter.DB.directions");
|
|
69
68
|
let departuresDirections;
|
|
70
69
|
try {
|
|
71
70
|
departuresDirections = yield this.ropidDeparturesDirectionsModel.GetAll(stopsIds);
|
|
@@ -84,7 +83,7 @@ class PIDDepartureBoardsModel {
|
|
|
84
83
|
mode: options.mode,
|
|
85
84
|
isAirCondition: !!options.airCondition,
|
|
86
85
|
});
|
|
87
|
-
const spanDepartures = (0, trace_provider_1.createChildSpan)("PIDRouter.DB.departures"
|
|
86
|
+
const spanDepartures = (0, trace_provider_1.createChildSpan)("PIDRouter.DB.departures");
|
|
88
87
|
const res = {
|
|
89
88
|
departures: new PIDDepartureModel_1.default(results, {
|
|
90
89
|
limit: options.limit,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PIDDepartureBoardsModel.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/models/PIDDepartureBoardsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6EAAwE;AACxE,gGAA2E;AAC3E,oDAA+C;AAC/C,wBAA8E;AAC9E,0BAAmF;AAEnF,gDAA2D;
|
|
1
|
+
{"version":3,"file":"PIDDepartureBoardsModel.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/models/PIDDepartureBoardsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6EAAwE;AACxE,gGAA2E;AAC3E,oDAA+C;AAC/C,wBAA8E;AAC9E,0BAAmF;AAEnF,gDAA2D;AAE3D,+FAA6F;AAE7F,oFAA6D;AAE7D,MAAM,uBAAuB;IAMzB;QALQ,kBAAa,GAAG,GAAG,CAAC;QAW5B;;;WAGG;QACI,WAAM,GAAG,CAAO,OAkBtB,EAAgB,EAAE;;YACf,MAAM,aAAa,GAAG,IAAA,yBAAM,GAAE,CAAC;YAC/B,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC7F,sFAAsF;YACtF,MAAM,aAAa,GACf,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,iBAAa,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;YAE1G,MAAM,SAAS,GAAG,IAAA,gCAAe,EAAC,oBAAoB,CAAC,CAAC;YACxD,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,aAAa,CAAC,gCAAK,OAAO,KAAE,QAAQ,EAAE,MAAA,OAAO,CAAC,QAAQ,0CAAE,QAAQ,EAAE,GAAoB,CAAC,CAAC;YACnG,MAAM,cAAc,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EAAE;oBACZ,SAAS,EAAE,kBAAkB;oBAC7B,KAAK,EAAE,cAAc;iBACxB,CAAC;gBACF,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,EAAE,CAAC;gBACtB,OAAO,GAAG,CAAC;aACd;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,gBAAgB,EAAE,sBAAsB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aAC9E;QACL,CAAC,CAAA,CAAC;QApHE,IAAI,CAAC,yBAAyB,GAAG,IAAI,4BAAyB,EAAE,CAAC;QACjE,IAAI,CAAC,8BAA8B,GAAG,IAAI,iCAA8B,EAAE,CAAC;QAC3E,IAAI,CAAC,oBAAoB,GAAG,IAAI,kCAAoB,EAAE,CAAC;IAC3D,CAAC;CAkHJ;AAEQ,0DAAuB"}
|
|
@@ -21,7 +21,6 @@ exports.vehiclepositionsRouter = exports.VehiclePositionsRouter = void 0;
|
|
|
21
21
|
const shared_1 = require("../shared");
|
|
22
22
|
const constants_1 = require("../shared/constants");
|
|
23
23
|
const trace_provider_1 = require("@golemio/core/dist/monitoring/opentelemetry/trace-provider");
|
|
24
|
-
const config_1 = require("@golemio/core/dist/output-gateway/config");
|
|
25
24
|
const redis_1 = require("@golemio/core/dist/output-gateway/redis");
|
|
26
25
|
const Utils_1 = require("@golemio/core/dist/output-gateway/Utils");
|
|
27
26
|
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
@@ -35,7 +34,7 @@ class VehiclePositionsRouter {
|
|
|
35
34
|
constructor() {
|
|
36
35
|
this.GetAll = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
37
36
|
const preferredTimezone = shared_1.RopidRouterUtils.getPreferredTimezone(req.query.preferredTimezone);
|
|
38
|
-
const span = (0, trace_provider_1.createChildSpan)("VehiclePositionsRouter.GetAll"
|
|
37
|
+
const span = (0, trace_provider_1.createChildSpan)("VehiclePositionsRouter.GetAll");
|
|
39
38
|
try {
|
|
40
39
|
const result = yield this.tripWithPositionRepository.GetAll({
|
|
41
40
|
cisTripNumber: Number(req.query.cisTripNumber) || undefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VehiclePositionsRouter.js","sourceRoot":"","sources":["../../../src/output-gateway/vehicle-positions/VehiclePositionsRouter.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;AAEH,sCAA8C;AAC9C,mDAAwD;AACxD,+FAA6F;
|
|
1
|
+
{"version":3,"file":"VehiclePositionsRouter.js","sourceRoot":"","sources":["../../../src/output-gateway/vehicle-positions/VehiclePositionsRouter.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;AAEH,sCAA8C;AAC9C,mDAAwD;AACxD,+FAA6F;AAE7F,mEAA6F;AAC7F,mEAAiF;AACjF,6EAAkH;AAClH,+DAA4G;AAC5G,mFAA2E;AAC3E,6EAAwE;AACxE,gGAA+D;AAC/D,+BAAiC;AACjC,+CAA6C;AAG7C,MAAa,sBAAsB;IAI/B;QAMO,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,MAAM,iBAAiB,GAAG,yBAAgB,CAAC,oBAAoB,CAAC,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;YAC7F,MAAM,IAAI,GAAG,IAAA,gCAAe,EAAC,+BAA+B,CAAC,CAAC;YAC9D,IAAI;gBACA,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC;oBACxD,aAAa,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,SAAS;oBAC3D,kBAAkB,EAAE,IAAA,8BAAsB,EAAC,GAAG,CAAC,KAAK,CAAC,kBAA4B,CAAC;oBAClF,gBAAgB,EAAE,IAAA,8BAAsB,EAAC,GAAG,CAAC,KAAK,CAAC,gBAA0B,CAAC;oBAC9E,gBAAgB,EAAE,I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AI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC;CA2GJ;AAnHD,wDAmHC;AAED,MAAM,sBAAsB,GAAW,IAAI,sBAAsB,EAAE,CAAC,MAAM,CAAC;AAClE,wDAAsB"}
|
|
@@ -367,9 +367,42 @@ Všechny tabulky se nachází ve schématu `pid`
|
|
|
367
367
|
|
|
368
368
|
### _LegacyRopidGTFSWorker_
|
|
369
369
|
|
|
370
|
-
Worker má na starost
|
|
370
|
+
Worker má na starost aktualizaci presets číselníků
|
|
371
371
|
|
|
372
|
-
####
|
|
372
|
+
#### _checkForNewDeparturesPresets()_
|
|
373
|
+
|
|
374
|
+
- vstupní rabbitmq fronta
|
|
375
|
+
- název: vehicle-positions.ropidgtfs.checkForNewDeparturesPresets
|
|
376
|
+
- TTL: 4 minuty
|
|
377
|
+
- parametry: žádné
|
|
378
|
+
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
379
|
+
- název: vehicle-positions.ropidgtfs.downloadDeparturesPresets
|
|
380
|
+
- datové zdroje
|
|
381
|
+
- ROPID FTP
|
|
382
|
+
- transformace
|
|
383
|
+
- žádné
|
|
384
|
+
- data modely
|
|
385
|
+
- RopidGTFSMetadataModel `ropidgtfs_metadata`
|
|
386
|
+
|
|
387
|
+
#### _downloadDeparturesPresets()_
|
|
388
|
+
|
|
389
|
+
- vstupní rabbitmq fronta
|
|
390
|
+
- název: vehicle-positions.ropidgtfs.downloadDeparturesPresets
|
|
391
|
+
- TTL: 4 minuty
|
|
392
|
+
- parametry: žádné
|
|
393
|
+
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
394
|
+
- žádné
|
|
395
|
+
- datové zdroje
|
|
396
|
+
- ROPID FTP
|
|
397
|
+
- transformace
|
|
398
|
+
- [RopidDeparturesPresetsTransformation](https://gitlab.com/operator-ict/golemio/code/modules/pid/-/blob/development/src/integration-engine/ropid-gtfs/transformations/RopidDeparturesPresetsTransformation.ts)
|
|
399
|
+
- data modely
|
|
400
|
+
- RopidGTFSMetadataModel `ropidgtfs_metadata`,
|
|
401
|
+
- RopidDeparturesPresetsModel `ropid_departures_presets`
|
|
402
|
+
|
|
403
|
+
### TimetableWorker
|
|
404
|
+
|
|
405
|
+
#### task _CheckForNewData_
|
|
373
406
|
|
|
374
407
|
- vstupní rabbitmq fronta
|
|
375
408
|
- název: vehicle-positions.ropidgtfs.checkForNewData
|
|
@@ -384,7 +417,7 @@ Worker má na starost kontrolu a aktualizaci všech číselníků
|
|
|
384
417
|
- data modely
|
|
385
418
|
- RopidGTFSMetadataModel `ropidgtfs_metadata`
|
|
386
419
|
|
|
387
|
-
####
|
|
420
|
+
#### task _DownloadDatasets_
|
|
388
421
|
|
|
389
422
|
- vstupní rabbitmq fronta
|
|
390
423
|
- název: vehicle-positions.ropidgtfs.downloadDatasets
|
|
@@ -400,7 +433,7 @@ Worker má na starost kontrolu a aktualizaci všech číselníků
|
|
|
400
433
|
- data modely
|
|
401
434
|
- RopidGTFSMetadataModel `ropidgtfs_metadata`
|
|
402
435
|
|
|
403
|
-
####
|
|
436
|
+
#### task _TransformAndSaveData_
|
|
404
437
|
|
|
405
438
|
- vstupní rabbitmq fronta
|
|
406
439
|
- název: vehicle-positions.ropidgtfs.transformAndSaveData
|
|
@@ -430,7 +463,7 @@ Worker má na starost kontrolu a aktualizaci všech číselníků
|
|
|
430
463
|
- RopidGTFSOisModel `ropidgtfs_ois`
|
|
431
464
|
- RopidGTFSRunNumbersModel `ropidgtfs_run_numbers`
|
|
432
465
|
|
|
433
|
-
####
|
|
466
|
+
#### task _CheckSavedRowsAndReplaceTables_
|
|
434
467
|
|
|
435
468
|
- vstupní rabbitmq fronta
|
|
436
469
|
- název: vehicle-positions.ropidgtfs.checkSavedRowsAndReplaceTables
|
|
@@ -463,7 +496,7 @@ Worker má na starost kontrolu a aktualizaci všech číselníků
|
|
|
463
496
|
- RopidGTFSPrecomputedDeparturesModel `ropidgtfs_precomputed_departures`
|
|
464
497
|
- RopidGTFSPrecomputedTripScheduleModel `ropidgtfs_precomputed_trip_schedule`
|
|
465
498
|
|
|
466
|
-
####
|
|
499
|
+
#### task _RefreshPrecomputedTables_
|
|
467
500
|
|
|
468
501
|
- vstupní rabbitmq fronta
|
|
469
502
|
- název: vehicle-positions.ropidgtfs.refreshPrecomputedTables
|
|
@@ -482,37 +515,6 @@ Worker má na starost kontrolu a aktualizaci všech číselníků
|
|
|
482
515
|
- RopidGTFSPrecomputedDeparturesModel `ropidgtfs_precomputed_departures`
|
|
483
516
|
- RopidGTFSPrecomputedTripScheduleModel `ropidgtfs_precomputed_trip_schedule`
|
|
484
517
|
|
|
485
|
-
#### _checkForNewDeparturesPresets()_
|
|
486
|
-
|
|
487
|
-
- vstupní rabbitmq fronta
|
|
488
|
-
- název: vehicle-positions.ropidgtfs.checkForNewDeparturesPresets
|
|
489
|
-
- TTL: 4 minuty
|
|
490
|
-
- parametry: žádné
|
|
491
|
-
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
492
|
-
- název: vehicle-positions.ropidgtfs.downloadDeparturesPresets
|
|
493
|
-
- datové zdroje
|
|
494
|
-
- ROPID FTP
|
|
495
|
-
- transformace
|
|
496
|
-
- žádné
|
|
497
|
-
- data modely
|
|
498
|
-
- RopidGTFSMetadataModel `ropidgtfs_metadata`
|
|
499
|
-
|
|
500
|
-
#### _downloadDeparturesPresets()_
|
|
501
|
-
|
|
502
|
-
- vstupní rabbitmq fronta
|
|
503
|
-
- název: vehicle-positions.ropidgtfs.downloadDeparturesPresets
|
|
504
|
-
- TTL: 4 minuty
|
|
505
|
-
- parametry: žádné
|
|
506
|
-
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
507
|
-
- žádné
|
|
508
|
-
- datové zdroje
|
|
509
|
-
- ROPID FTP
|
|
510
|
-
- transformace
|
|
511
|
-
- [RopidDeparturesPresetsTransformation](https://gitlab.com/operator-ict/golemio/code/modules/pid/-/blob/development/src/integration-engine/ropid-gtfs/transformations/RopidDeparturesPresetsTransformation.ts)
|
|
512
|
-
- data modely
|
|
513
|
-
- RopidGTFSMetadataModel `ropidgtfs_metadata`,
|
|
514
|
-
- RopidDeparturesPresetsModel `ropid_departures_presets`
|
|
515
|
-
|
|
516
518
|
### PresetWorker
|
|
517
519
|
|
|
518
520
|
#### _Task ~ SavePresetsDataTask_
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/pid",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.12-dev.935052944",
|
|
4
4
|
"description": "Golemio PID Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@commitlint/cli": "^11.0.0",
|
|
40
40
|
"@commitlint/config-conventional": "^11.0.0",
|
|
41
41
|
"@golemio/cli": "1.4.4",
|
|
42
|
-
"@golemio/core": "1.8.
|
|
42
|
+
"@golemio/core": "1.8.5-dev.933723309",
|
|
43
43
|
"@golemio/db-common": "1.1.1",
|
|
44
44
|
"@golemio/eslint-config": "1.1.1",
|
|
45
45
|
"@types/amqplib": "^0.5.17",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICheckForNewDataInput.js","sourceRoot":"","sources":["../../../../src/integration-engine/ropid-gtfs/interfaces/ICheckForNewDataInput.ts"],"names":[],"mappings":""}
|
|
File without changes
|