@golemio/pid 2.8.1-dev.943156853 → 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.
Files changed (75) hide show
  1. package/db/example/12_metro_line_A_gtfs_trips.sql +0 -4
  2. package/dist/integration-engine/index.js +0 -2
  3. package/dist/integration-engine/index.js.map +1 -1
  4. package/dist/integration-engine/queueDefinitions.js +50 -0
  5. package/dist/integration-engine/queueDefinitions.js.map +1 -1
  6. package/dist/integration-engine/ropid-gtfs/LegacyRopidGTFSWorker.d.ts +63 -0
  7. package/dist/integration-engine/ropid-gtfs/LegacyRopidGTFSWorker.js +541 -3
  8. package/dist/integration-engine/ropid-gtfs/LegacyRopidGTFSWorker.js.map +1 -1
  9. package/dist/integration-engine/ropid-gtfs/data-access/cache/StaticFileRedisRepository.js +4 -18
  10. package/dist/integration-engine/ropid-gtfs/data-access/cache/StaticFileRedisRepository.js.map +1 -1
  11. package/dist/integration-engine/ropid-gtfs/interfaces/ICheckForNewDataInput.js.map +1 -0
  12. package/dist/integration-engine/ropid-gtfs/transformations/RopidGTFSTransformation.js +3 -16
  13. package/dist/integration-engine/ropid-gtfs/transformations/RopidGTFSTransformation.js.map +1 -1
  14. package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/tasks/GenerateFilesTask.js +1 -1
  15. package/dist/output-gateway/pid/helpers/DepartureBoardMapper.d.ts +3 -3
  16. package/dist/output-gateway/pid/helpers/DepartureBoardMapper.js +3 -21
  17. package/dist/output-gateway/pid/helpers/DepartureBoardMapper.js.map +1 -1
  18. package/dist/output-gateway/pid/index.d.ts +2 -3
  19. package/dist/output-gateway/pid/index.js +1 -1
  20. package/dist/output-gateway/pid/index.js.map +1 -1
  21. package/dist/schema-definitions/ropid-gtfs/models/precomputed/interfaces/IDeparturesModel.d.ts +2 -3
  22. package/docs/implementation_documentation.md +37 -39
  23. package/docs/openapi-output.yaml +2 -2
  24. package/package.json +3 -3
  25. package/dist/helpers/AccessibilityEnums.d.ts +0 -16
  26. package/dist/helpers/AccessibilityEnums.js +0 -22
  27. package/dist/helpers/AccessibilityEnums.js.map +0 -1
  28. package/dist/integration-engine/ropid-gtfs/ioc/Di.d.ts +0 -3
  29. package/dist/integration-engine/ropid-gtfs/ioc/Di.js +0 -29
  30. package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +0 -1
  31. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +0 -8
  32. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +0 -12
  33. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +0 -1
  34. package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.d.ts +0 -5
  35. package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js +0 -23
  36. package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js.map +0 -1
  37. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.d.ts +0 -12
  38. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.js +0 -61
  39. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.js.map +0 -1
  40. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.d.ts +0 -14
  41. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js +0 -93
  42. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js.map +0 -1
  43. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/DownloadDatasetsTask.d.ts +0 -19
  44. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/DownloadDatasetsTask.js +0 -152
  45. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/DownloadDatasetsTask.js.map +0 -1
  46. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.d.ts +0 -11
  47. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.js +0 -57
  48. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshPrecomputedTablesTask.js.map +0 -1
  49. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.d.ts +0 -21
  50. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.js +0 -160
  51. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.js.map +0 -1
  52. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.d.ts +0 -24
  53. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.js +0 -36
  54. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/HelperTypes.js.map +0 -1
  55. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.d.ts +0 -12
  56. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.js +0 -67
  57. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/PrecomputedTablesFacade.js.map +0 -1
  58. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.d.ts +0 -13
  59. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js +0 -102
  60. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js.map +0 -1
  61. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/ICheckForNewDataInput.js.map +0 -1
  62. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/IDatasetsInput.d.ts +0 -4
  63. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/IDatasetsInput.js +0 -3
  64. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/IDatasetsInput.js.map +0 -1
  65. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CachedDatasetSchema.d.ts +0 -8
  66. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CachedDatasetSchema.js +0 -40
  67. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CachedDatasetSchema.js.map +0 -1
  68. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CheckForNewDataMessageValidation.d.ts +0 -4
  69. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CheckForNewDataMessageValidation.js +0 -22
  70. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/CheckForNewDataMessageValidation.js.map +0 -1
  71. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/DownloadDataInputSchema.d.ts +0 -5
  72. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/DownloadDataInputSchema.js +0 -23
  73. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/schema/DownloadDataInputSchema.js.map +0 -1
  74. /package/dist/integration-engine/ropid-gtfs/{workers/timetables/tasks/interfaces → interfaces}/ICheckForNewDataInput.d.ts +0 -0
  75. /package/dist/integration-engine/ropid-gtfs/{workers/timetables/tasks/interfaces → interfaces}/ICheckForNewDataInput.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"TransformAndSaveDataTask.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/TransformAndSaveDataTask.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0C;AAC1C,+EAAoE;AACpE,yCAA8F;AAE9F,kFAAqF;AACrF,wCAA2D;AAC3D,kFAAqF;AACrF,0CAA2D;AAC3D,8EAA8D;AAC9D,mEAAuC;AACvC,6EAAiF;AAGjF,wEAAqE;AAGrE,8FAA2F;AAC3F,2EAA6E;AAC7E,6EAAwE;AACxE,mFAAkF;AAElF,qDAAmD;AACn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,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;qBAC1F;iBACJ;gBAAC,OAAO,GAAG,EAAE;oBACV,YAAY,GAAG,GAAG,CAAC,OAAO,CAAC;iBAC9B;aACJ;YAED,IAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,OAAO,CAAC,oCAAsB,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;CA0FJ;AArKD,4DAqKC"}
@@ -1,24 +0,0 @@
1
- import { DatasetEnum } from "../../../../RopidGTFSMetadataModel";
2
- import { DatasetModelName } from "../../../../../../schema-definitions/ropid-gtfs";
3
- import { IDataSource } from "@golemio/core/dist/integration-engine/datasources/IDataSource";
4
- import { IFile } from "@golemio/core/dist/integration-engine/datasources/protocol-strategy/IProtocolStrategy";
5
- import { ITransformation } from "@golemio/core/dist/integration-engine/transformations/ITransformation";
6
- export declare const ORIGIN_HOSTNAME_HEADER = "x-origin-hostname";
7
- export type ICachedFileMeta = Omit<IFile, "data">;
8
- export type ICachedDataset = ICachedFileMeta & {
9
- dataset: GTFSDatasets;
10
- };
11
- export declare enum CacheContentType {
12
- CSV = "CSV",
13
- JSON = "JSON"
14
- }
15
- export type GTFSDatasets = Exclude<DatasetEnum, DatasetEnum.DEPARTURES_PRESETS>;
16
- export type DatasetMap = {
17
- [key in GTFSDatasets]: {
18
- datasource: IDataSource;
19
- transformation: ITransformation;
20
- cacheContentType: CacheContentType;
21
- };
22
- };
23
- export declare const isCachedDataset: (obj: any) => obj is ICachedDataset;
24
- export declare const datasetFileModelMap: (dataset: GTFSDatasets, name: string) => DatasetModelName | DatasetModelName[];
@@ -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
@@ -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,wEAAqE;AAErE,iEAAwE;AAGjE,IAAM,uBAAuB,qCAA7B,MAAM,uBAAuB;IAOhC,YAAsC,MAAgC;QAAf,WAAM,GAAN,MAAM,CAAS;QAQ/D,0CAAqC,GAAG,CAAO,iBAAwC,EAAiB,EAAE;YAC7G,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,iCAAiC,IAAI,CAAC,0BAA0B,CAAC,WAAW,CAAC,GAAG,6CAAqB,CAAC,GAAG,EAAE,CAC9G,CAAC;YACF,MAAM,IAAI,CAAC,0BAA0B,C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AAC;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,aAAa,EAAE,CAAC;YAEhD,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;QA1CE,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;CAsCJ,CAAA;kCAnDY,uBAAuB;IADnC,IAAA,qBAAU,GAAE;IAQI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAP5B,uBAAuB,CAmDnC"}
@@ -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
- }
@@ -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
@@ -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,g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W,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,oCAAW,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,oCAAW,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,oCAAW,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;CACJ,CAAA;2BA9GY,gBAAgB;IAD5B,IAAA,qBAAU,GAAE;;GACA,gBAAgB,CA8G5B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ICheckForNewDataInput.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/ICheckForNewDataInput.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { GTFSDatasets } from "../helpers/HelperTypes";
2
- export interface IDatasetsInput {
3
- datasets: GTFSDatasets[];
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IDatasetsInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IDatasetsInput.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/interfaces/IDatasetsInput.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- import { GTFSDatasets, ICachedDataset } from "../helpers/HelperTypes";
2
- export declare class CachedDatasetSchema implements ICachedDataset {
3
- filepath: string;
4
- name: string;
5
- mtime?: string | undefined;
6
- type?: string | undefined;
7
- dataset: GTFSDatasets;
8
- }
@@ -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,4 +0,0 @@
1
- import { ICheckForNewDataInput } from "../interfaces/ICheckForNewDataInput";
2
- export declare class CheckForNewDataMessageValidation implements ICheckForNewDataInput {
3
- forceRefresh?: boolean | undefined;
4
- }
@@ -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,5 +0,0 @@
1
- import { GTFSDatasets } from "../helpers/HelperTypes";
2
- import { IDatasetsInput } from "../interfaces/IDatasetsInput";
3
- export declare class DatasetsInputSchema implements IDatasetsInput {
4
- datasets: GTFSDatasets[];
5
- }
@@ -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"}