@golemio/pid 3.9.4 → 3.9.5-dev.1737746150

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 (87) hide show
  1. package/db/example/00_clear_test_data.sql +2 -1
  2. package/db/example/03_ropidgtfs_dump.sql +50 -50
  3. package/db/example/21_ropid_departures_presets_ropidgtfs_stops.sql +6 -0
  4. package/db/migrations/postgresql/20250312125125-create-presets-ropidgtfs-stops-table.js +53 -0
  5. package/db/migrations/postgresql/20250320145302-create-get-stops-by-asw-fnc.js +53 -0
  6. package/db/migrations/postgresql/sqls/20250312125125-create-presets-ropidgtfs-stops-table-down.sql +1 -0
  7. package/db/migrations/postgresql/sqls/20250312125125-create-presets-ropidgtfs-stops-table-up.sql +7 -0
  8. package/db/migrations/postgresql/sqls/20250320145302-create-get-stops-by-asw-fnc-down.sql +1 -0
  9. package/db/migrations/postgresql/sqls/20250320145302-create-get-stops-by-asw-fnc-up.sql +13 -0
  10. package/dist/helpers/GtfsStopParser.d.ts +6 -0
  11. package/dist/helpers/GtfsStopParser.js +44 -0
  12. package/dist/helpers/GtfsStopParser.js.map +1 -0
  13. package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js +0 -1
  14. package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js.map +1 -1
  15. package/dist/integration-engine/jis/repositories/RopidDeparturesPresetsRopidGTFSStopsRepository.d.ts +13 -0
  16. package/dist/integration-engine/jis/repositories/RopidDeparturesPresetsRopidGTFSStopsRepository.js +39 -0
  17. package/dist/integration-engine/jis/repositories/RopidDeparturesPresetsRopidGTFSStopsRepository.js.map +1 -0
  18. package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js +2 -2
  19. package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js.map +1 -1
  20. package/dist/integration-engine/ropid-gtfs/data-access/DeparturePresetsRepository.d.ts +2 -0
  21. package/dist/integration-engine/ropid-gtfs/data-access/DeparturePresetsRepository.js +15 -6
  22. package/dist/integration-engine/ropid-gtfs/data-access/DeparturePresetsRepository.js.map +1 -1
  23. package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.d.ts +8 -1
  24. package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.js +39 -5
  25. package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.js.map +1 -1
  26. package/dist/integration-engine/ropid-gtfs/ioc/Di.js +6 -0
  27. package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +1 -1
  28. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +2 -0
  29. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +2 -0
  30. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +1 -1
  31. package/dist/integration-engine/ropid-gtfs/workers/presets/tasks/DownloadDeparturesPresetsTask.js.map +1 -1
  32. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +3 -1
  33. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
  34. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js +1 -1
  35. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/PropagateTrainDelayTask.js.map +1 -1
  36. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js +1 -1
  37. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js.map +1 -1
  38. package/dist/output-gateway/pid/controllers/v3/V3DeparturesPresetController.d.ts +8 -0
  39. package/dist/output-gateway/pid/controllers/v3/V3DeparturesPresetController.js +44 -0
  40. package/dist/output-gateway/pid/controllers/v3/V3DeparturesPresetController.js.map +1 -0
  41. package/dist/output-gateway/pid/data-access/RopidDeparturesPresetRepository.d.ts +14 -0
  42. package/dist/output-gateway/pid/data-access/RopidDeparturesPresetRepository.js +82 -0
  43. package/dist/output-gateway/pid/data-access/RopidDeparturesPresetRepository.js.map +1 -0
  44. package/dist/output-gateway/pid/data-access/RopidDeparturesPresetsRopidGTFSStopsRepository.d.ts +13 -0
  45. package/dist/output-gateway/pid/data-access/RopidDeparturesPresetsRopidGTFSStopsRepository.js +39 -0
  46. package/dist/output-gateway/pid/data-access/RopidDeparturesPresetsRopidGTFSStopsRepository.js.map +1 -0
  47. package/dist/output-gateway/pid/domain/DeparturesPresetInterfaces.d.ts +6 -0
  48. package/dist/output-gateway/pid/domain/DeparturesPresetInterfaces.js +3 -0
  49. package/dist/output-gateway/pid/domain/DeparturesPresetInterfaces.js.map +1 -0
  50. package/dist/output-gateway/pid/ioc/Di.js +12 -0
  51. package/dist/output-gateway/pid/ioc/Di.js.map +1 -1
  52. package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +6 -0
  53. package/dist/output-gateway/pid/ioc/OgPidToken.js +6 -0
  54. package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -1
  55. package/dist/output-gateway/pid/routers/v3/V3PIDRouter.d.ts +1 -0
  56. package/dist/output-gateway/pid/routers/v3/V3PIDRouter.js +4 -0
  57. package/dist/output-gateway/pid/routers/v3/V3PIDRouter.js.map +1 -1
  58. package/dist/output-gateway/pid/service/facade/RopidDeparturesPresetFacade.d.ts +9 -0
  59. package/dist/output-gateway/pid/service/facade/RopidDeparturesPresetFacade.js +37 -0
  60. package/dist/output-gateway/pid/service/facade/RopidDeparturesPresetFacade.js.map +1 -0
  61. package/dist/output-gateway/pid/service/transformations/RopidDeparturesPresetTransformation.d.ts +7 -0
  62. package/dist/output-gateway/pid/service/transformations/RopidDeparturesPresetTransformation.js +30 -0
  63. package/dist/output-gateway/pid/service/transformations/RopidDeparturesPresetTransformation.js.map +1 -0
  64. package/dist/output-gateway/ropid-gtfs/models/GTFSStopModel.d.ts +1 -3
  65. package/dist/output-gateway/ropid-gtfs/models/GTFSStopModel.js +4 -30
  66. package/dist/output-gateway/ropid-gtfs/models/GTFSStopModel.js.map +1 -1
  67. package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js +2 -2
  68. package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js.map +1 -1
  69. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.d.ts +1 -1
  70. package/dist/schema-definitions/jis/models/RopidDeparturesPresetsRopidGTFSStopsModel.d.ts +12 -0
  71. package/dist/schema-definitions/jis/models/RopidDeparturesPresetsRopidGTFSStopsModel.js +41 -0
  72. package/dist/schema-definitions/jis/models/RopidDeparturesPresetsRopidGTFSStopsModel.js.map +1 -0
  73. package/dist/schema-definitions/jis/models/interfaces/IPresetsGtfsStops.d.ts +4 -0
  74. package/dist/schema-definitions/jis/models/interfaces/IPresetsGtfsStops.js +3 -0
  75. package/dist/schema-definitions/jis/models/interfaces/IPresetsGtfsStops.js.map +1 -0
  76. package/dist/schema-definitions/jis/models/interfaces/IPresetsRopidGTFSStops.d.ts +7 -0
  77. package/dist/schema-definitions/jis/models/interfaces/IPresetsRopidGTFSStops.js +3 -0
  78. package/dist/schema-definitions/jis/models/interfaces/IPresetsRopidGTFSStops.js.map +1 -0
  79. package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.d.ts +19 -0
  80. package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.js +64 -0
  81. package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.js.map +1 -0
  82. package/dist/schema-definitions/ropid-departures-presets/models/interfaces/IRopidDeparturesPresets.d.ts +9 -0
  83. package/dist/schema-definitions/ropid-departures-presets/models/interfaces/IRopidDeparturesPresets.js +3 -0
  84. package/dist/schema-definitions/ropid-departures-presets/models/interfaces/IRopidDeparturesPresets.js.map +1 -0
  85. package/docs/asyncapi.yaml +29 -10
  86. package/docs/openapi-output.yaml +39 -0
  87. package/package.json +2 -2
@@ -9,24 +9,30 @@ exports.OgPidToken = {
9
9
  DeparturesRepository: Symbol(),
10
10
  RunTripsRedisRepository: Symbol(),
11
11
  PublicVehiclePositionsRepository: Symbol(),
12
+ RopidDeparturesPresetRepository: Symbol(),
13
+ RopidDeparturesPresetsRopidGTFSStopsRepository: Symbol(),
12
14
  //#endregion
13
15
  //#region Transformations
14
16
  JISInfotextDepartureTransformation: Symbol(),
15
17
  JISInfotextTransferTransformation: Symbol(),
16
18
  JISInfotextOverviewTransformation: Symbol(),
17
19
  TransferDepartureTransformation: Symbol(),
20
+ RopidDeparturesPresetTransformation: Symbol(),
18
21
  //#endregion
19
22
  //#region Facade
20
23
  StopFacade: Symbol(),
21
24
  InfotextFacade: Symbol(),
22
25
  TransferFacade: Symbol(),
26
+ RopidDeparturesPresetFacade: Symbol(),
23
27
  //#endregion
24
28
  //#region Controllers
25
29
  V3TransferBoardsController: Symbol(),
26
30
  V3InfotextsController: Symbol(),
31
+ V3RopidDeparturesPresetController: Symbol(),
27
32
  //#endregion
28
33
  //#region Helpers
29
34
  JISInfotextStopSuppressionFilter: Symbol(),
35
+ GtfsStopParser: Symbol(),
30
36
  //#endregion
31
37
  };
32
38
  //# sourceMappingURL=OgPidToken.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OgPidToken.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/ioc/OgPidToken.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACtB,sBAAsB;IACtB,sBAAsB,EAAE,MAAM,EAAE;IAChC,mCAAmC,EAAE,MAAM,EAAE;IAC7C,qBAAqB,EAAE,MAAM,EAAE;IAC/B,oBAAoB,EAAE,MAAM,EAAE;IAC9B,uBAAuB,EAAE,MAAM,EAAE;IACjC,gCAAgC,EAAE,MAAM,EAAE;IAC1C,YAAY;IAEZ,yBAAyB;IACzB,kCAAkC,EAAE,MAAM,EAAE;IAC5C,iCAAiC,EAAE,MAAM,EAAE;IAC3C,iCAAiC,EAAE,MAAM,EAAE;IAC3C,+BAA+B,EAAE,MAAM,EAAE;IACzC,YAAY;IAEZ,gBAA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AAE;IACxB,YAAY;CACf,CAAC"}
@@ -4,6 +4,7 @@ export declare class V3PIDRouter extends AbstractRouter {
4
4
  private readonly cacheHeaderMiddleware;
5
5
  private readonly transferBoardsController;
6
6
  private readonly infotextsController;
7
+ private readonly ropidDeparturesPresetController;
7
8
  constructor();
8
9
  protected initRoutes: () => void;
9
10
  private registerInfotextsRoutes;
@@ -29,10 +29,14 @@ class V3PIDRouter extends AbstractRouter_1.AbstractRouter {
29
29
  this.router.get("/infotexts", Validation_1.checkErrors,
30
30
  // max-age 10 seconds, stale-while-revalidate 10 seconds
31
31
  this.cacheHeaderMiddleware.getMiddleware(10, 10), this.infotextsController.getJisInfotexts);
32
+ this.router.get("/departurepresets", Validation_1.checkErrors,
33
+ // max-age 10 seconds, stale-while-revalidate 10 seconds
34
+ this.cacheHeaderMiddleware.getMiddleware(10, 10), this.ropidDeparturesPresetController.getDeparturesPresets);
32
35
  };
33
36
  this.cacheHeaderMiddleware = Di_1.OgPidContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
34
37
  this.transferBoardsController = Di_1.OgPidContainer.resolve(OgPidToken_1.OgPidToken.V3TransferBoardsController);
35
38
  this.infotextsController = Di_1.OgPidContainer.resolve(OgPidToken_1.OgPidToken.V3InfotextsController);
39
+ this.ropidDeparturesPresetController = Di_1.OgPidContainer.resolve(OgPidToken_1.OgPidToken.V3RopidDeparturesPresetController);
36
40
  this.initRoutes();
37
41
  }
38
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"V3PIDRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/routers/v3/V3PIDRouter.ts"],"names":[],"mappings":";;;AAEA,+EAA8E;AAC9E,qCAAgD;AAChD,qDAAoD;AACpD,yDAAoD;AACpD,sFAAmF;AAEnF,6EAA2E;AAC3E,+DAAuE;AACvE,+DAA2D;AAC3D,mFAAoE;AACpE,6CAAmD;AAEnD,MAAa,WAAY,SAAQ,+BAAc;IAM3C;QACI,KAAK,CAAC,wBAAY,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etRepository } from "../../data-access/RopidDeparturesPresetRepository";
2
+ import { RopidDeparturesPresetTransformation } from "../transformations/RopidDeparturesPresetTransformation";
3
+ import { IDeparturesPresetOutputDto } from "../../domain/DeparturesPresetInterfaces";
4
+ export declare class RopidDeparturesPresetFacade {
5
+ private ropidDeparturesPresetRepository;
6
+ private ropidDeparturesPresetTransformation;
7
+ constructor(ropidDeparturesPresetRepository: RopidDeparturesPresetRepository, ropidDeparturesPresetTransformation: RopidDeparturesPresetTransformation);
8
+ getRopidDeparturesPreset(): Promise<IDeparturesPresetOutputDto[]>;
9
+ }
@@ -0,0 +1,37 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.RopidDeparturesPresetFacade = void 0;
16
+ const RopidDeparturesPresetRepository_1 = require("../../data-access/RopidDeparturesPresetRepository");
17
+ const OgPidToken_1 = require("../../ioc/OgPidToken");
18
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
19
+ const RopidDeparturesPresetTransformation_1 = require("../transformations/RopidDeparturesPresetTransformation");
20
+ let RopidDeparturesPresetFacade = exports.RopidDeparturesPresetFacade = class RopidDeparturesPresetFacade {
21
+ constructor(ropidDeparturesPresetRepository, ropidDeparturesPresetTransformation) {
22
+ this.ropidDeparturesPresetRepository = ropidDeparturesPresetRepository;
23
+ this.ropidDeparturesPresetTransformation = ropidDeparturesPresetTransformation;
24
+ }
25
+ async getRopidDeparturesPreset() {
26
+ const presets = await this.ropidDeparturesPresetRepository.getAllWithStops();
27
+ return this.ropidDeparturesPresetTransformation.transformArray(presets);
28
+ }
29
+ };
30
+ exports.RopidDeparturesPresetFacade = RopidDeparturesPresetFacade = __decorate([
31
+ (0, tsyringe_1.injectable)(),
32
+ __param(0, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.RopidDeparturesPresetRepository)),
33
+ __param(1, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.RopidDeparturesPresetTransformation)),
34
+ __metadata("design:paramtypes", [RopidDeparturesPresetRepository_1.RopidDeparturesPresetRepository,
35
+ RopidDeparturesPresetTransformation_1.RopidDeparturesPresetTransformation])
36
+ ], RopidDeparturesPresetFacade);
37
+ //# sourceMappingURL=RopidDeparturesPresetFacade.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RopidDeparturesPresetFacade.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/facade/RopidDeparturesPresetFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uGAAsG;AACtG,qDAAoD;AACpD,iEAAwE;AACxE,gHAA6G;AAItG,IAAM,2BAA2B,yCAAjC,MAAM,2BAA2B;IACpC,YAEY,+BAAgE,EAEhE,mCAAwE;QAFxE,oCAA+B,GAA/B,+BAA+B,CAAiC;QAEhE,wCAAmC,GAAnC,mCAAmC,CAAqC;IACjF,CAAC;IAEJ,KAAK,CAAC,wBAAwB;QAC1B,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,+BAA+B,CAAC,eAAe,EAAE,CAAC;QAE7E,OAAO,IAAI,CAAC,mCAAmC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAC5E,CAAC;CACJ,CAAA;sCAbY,2BAA2B;IADvC,IAAA,qBAAU,GAAE;IAGJ,WAAA,IAAA,iBAAM,EAAC,uBAAU,CAAC,+BAA+B,CAAC,CAAA;IAElD,WAAA,IAAA,iBAAM,EAAC,uBAAU,CAAC,mCAAmC,CAAC,CAAA;qCADd,iEAA+B;QAE3B,yEAAmC;GAL3E,2BAA2B,CAavC"}
@@ -0,0 +1,7 @@
1
+ import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
2
+ import { IDeparturesPresetOutputDto } from "../../domain/DeparturesPresetInterfaces";
3
+ import { RopidDeparturesPresetsModel } from "../../../../schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel";
4
+ export declare class RopidDeparturesPresetTransformation extends AbstractTransformation<RopidDeparturesPresetsModel, IDeparturesPresetOutputDto> {
5
+ name: string;
6
+ protected transformInternal: (preset: RopidDeparturesPresetsModel) => IDeparturesPresetOutputDto;
7
+ }
@@ -0,0 +1,30 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.RopidDeparturesPresetTransformation = void 0;
10
+ const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
11
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
12
+ let RopidDeparturesPresetTransformation = exports.RopidDeparturesPresetTransformation = class RopidDeparturesPresetTransformation extends AbstractTransformation_1.AbstractTransformation {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.name = "RopidDeparturesPresetTransformation";
16
+ this.transformInternal = (preset) => {
17
+ const stops = preset.stops ?? [];
18
+ return {
19
+ note: preset.note,
20
+ route_name: preset.route_name,
21
+ is_testing: preset.is_testing,
22
+ stops: stops.map(({ stop_id }) => stop_id),
23
+ };
24
+ };
25
+ }
26
+ };
27
+ exports.RopidDeparturesPresetTransformation = RopidDeparturesPresetTransformation = __decorate([
28
+ (0, tsyringe_1.injectable)()
29
+ ], RopidDeparturesPresetTransformation);
30
+ //# sourceMappingURL=RopidDeparturesPresetTransformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RopidDeparturesPresetTransformation.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/transformations/RopidDeparturesPresetTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6GAA0G;AAC1G,iEAAgE;AAKzD,IAAM,mCAAmC,iDAAzC,MAAM,mCAAoC,SAAQ,+CAGxD;IAHM;;QAII,SAAI,GAAG,qCAAqC,CAAC;QAE1C,sBAAiB,GAAG,CAAC,MAAmC,EAA8B,EAAE;YAC9F,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;YACjC,OAAO;gBACH,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,UAAU,EAAE,MAAM,CAAC,UAAU;gBAC7B,UAAU,EAAE,MAAM,CAAC,UAAU;gBAC7B,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC;aAC7C,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;8CAfY,mCAAmC;IAD/C,IAAA,qBAAU,GAAE;GACA,mCAAmC,CAe/C"}
@@ -4,6 +4,7 @@ import { GetAllOptions, IGTFSStopGetAllOutput } from "./GTFSStopModelInterfaces"
4
4
  export declare class GTFSStopModel extends SequelizeModel {
5
5
  private readonly outputAttributes;
6
6
  private cisStopsModel;
7
+ private gtfsStopParser;
7
8
  constructor();
8
9
  Associate: () => void;
9
10
  /**
@@ -18,9 +19,6 @@ export declare class GTFSStopModel extends SequelizeModel {
18
19
  * Retrieve specific gtfs stop
19
20
  */
20
21
  GetOne: (id: string) => Promise<IGeoJSONFeature | null>;
21
- private isValidInteger;
22
- private validateAswId;
23
- private prepareAswWhereOptions;
24
22
  private prepareCisStops;
25
23
  private prepareFindOptionsForMetro;
26
24
  }
@@ -14,7 +14,8 @@ const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
14
14
  const models_1 = require("@golemio/core/dist/output-gateway/models");
15
15
  const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
16
16
  const sequelize_1 = __importDefault(require("@golemio/core/dist/shared/sequelize"));
17
- const const_2 = require("../../../const");
17
+ const OgPidToken_1 = require("../../pid/ioc/OgPidToken");
18
+ const Di_1 = require("../../pid/ioc/Di");
18
19
  class GTFSStopModel extends models_1.SequelizeModel {
19
20
  constructor() {
20
21
  super(ropid_gtfs_1.RopidGTFS.stops.name, ropid_gtfs_1.RopidGTFS.stops.pgTableName, StopDto_1.StopDto.attributeModel, {
@@ -73,6 +74,7 @@ class GTFSStopModel extends models_1.SequelizeModel {
73
74
  return stops;
74
75
  };
75
76
  const connector = ioc_1.OutputGatewayContainer.resolve(CoreToken_1.CoreToken.PostgresConnector);
77
+ this.gtfsStopParser = Di_1.OgPidContainer.resolve(OgPidToken_1.OgPidToken.GtfsStopParser);
76
78
  this.outputAttributes = Object.keys(StopDto_1.StopDto.attributeModel);
77
79
  const notUsedColumns = [
78
80
  "stop_code",
@@ -99,7 +101,7 @@ class GTFSStopModel extends models_1.SequelizeModel {
99
101
  let where = {};
100
102
  let allGtfsIds = [];
101
103
  if (options.aswIds && options.aswIds.length > 0) {
102
- where[sequelize_1.default.Op.or] = this.prepareAswWhereOptions(options.aswIds);
104
+ where[sequelize_1.default.Op.or] = this.gtfsStopParser.prepareAswWhereOptions(options.aswIds);
103
105
  }
104
106
  if (options.cisIds && options.cisIds.length > 0) {
105
107
  let stops;
@@ -182,34 +184,6 @@ class GTFSStopModel extends models_1.SequelizeModel {
182
184
  }
183
185
  return options.returnRaw ? data : (0, Geo_1.buildGeojsonFeatureCollection)(data, "stop_lon", "stop_lat", true);
184
186
  }
185
- isValidInteger(value) {
186
- if (value === null)
187
- return true;
188
- return value >= const_2.PG_INT_MIN && value <= const_2.PG_INT_MAX;
189
- }
190
- validateAswId(aswId, nodeId, stopId) {
191
- const nodeIdNum = Number(nodeId);
192
- const stopIdNum = stopId ? Number(stopId) : null;
193
- if (!this.isValidInteger(nodeIdNum) || !this.isValidInteger(stopIdNum)) {
194
- throw new golemio_errors_1.GeneralError(`Invalid ASW ID: ${aswId}`, this.constructor.name, `Invalid ASW ID: ${aswId}`, 400);
195
- }
196
- }
197
- prepareAswWhereOptions(aswIds) {
198
- let aswWhereOptions = [];
199
- for (const aswId of aswIds) {
200
- let aswIdLike = aswId.replaceAll("_", "/");
201
- if (aswIdLike.slice(-1) === "/") {
202
- aswIdLike = aswIdLike.slice(0, -1);
203
- }
204
- const [nodeId, stopId] = aswIdLike.split("/");
205
- if (!nodeId) {
206
- continue;
207
- }
208
- this.validateAswId(aswId, nodeId, stopId);
209
- aswWhereOptions.push(sequelize_1.default.and(sequelize_1.default.where(sequelize_1.default.col("asw_node_id"), "=", nodeId), stopId && sequelize_1.default.where(sequelize_1.default.col("asw_stop_id"), "=", stopId)));
210
- }
211
- return aswWhereOptions;
212
- }
213
187
  prepareFindOptionsForMetro(innerWhere) {
214
188
  // Select metro and train stops within a node
215
189
  // matching the previous where criteria
@@ -1 +1 @@
1
- {"version":3,"file":"GTFSStopModel.js","sourceRoot":"","sources":["../../../../src/output-gateway/ropid-gtfs/models/GTFSStopModel.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA0D;AAC1D,6DAAuC;AACvC,uEAA4C;AAC5C,mFAAyD;AAEzD,wEAAqE;AACrE,+DAK+C;AAC/C,+DAA+E;AAC/E,qEAA0E;AAC1E,6EAAwE;AACx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vC,8CAA8C;QAC9C,MAAM,OAAO,GAAmB;YAC5B,EAAE,EAAE,YAAY;YAChB,KAAK,EAAE,IAAI,CAAC,cAAc;YAC1B,UAAU,EAAE,EAAE;YACd,EAAE,EAAE;gBACA,WAAW,EAAE;oBACT,CAAC,mBAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,mBAAS,CAAC,GAAG,CAAC,GAAG,sBAAS,CAAC,KAAK,CAAC,WAAW,cAAc,CAAC;iBACjF;aACJ;YACD,KAAK,EAAE,UAAU;SACpB,CAAC;QAEF,MAAM,KAAK,GAAuB;YAC9B,CAAC,mBAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;gBACf,UAAU;gBACV;oBACI,WAAW,EAAE,EAAE,CAAC,mBAAS,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE;iBAC3C;aACJ;SACJ,CAAC;QAEF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;CACJ;AAtPD,sCAsPC"}
@@ -43,10 +43,10 @@ exports.jisInfotextsJsonSchema = {
43
43
  items: {
44
44
  type: "object",
45
45
  properties: {
46
- stop_id: { type: "string" },
46
+ id: { type: "string" },
47
47
  },
48
48
  additionalProperties: false,
49
- required: ["stop_id"],
49
+ required: ["id"],
50
50
  },
51
51
  },
52
52
  },
@@ -1 +1 @@
1
- {"version":3,"file":"JISInfotextsJsonSchema.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/datasources/JISInfotextsJsonSchema.ts"],"names":[],"mappings":";;;AAAA,sHAA2F;AAI9E,QAAA,sBAAsB,GAAmC;IAClE,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACtB,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,iDAAqB,CAAC,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ACD,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;YAC1D,uBAAuB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;SACnE;QACD,QAAQ,EAAE;YACN,IAAI;YACJ,gBAAgB;YAChB,cAAc;YACd,eAAe;YACf,kBAAkB;YAClB,mBAAmB;YACnB,yBAAyB;SAC5B;KACJ;CACJ,CAAC"}
1
+ {"version":3,"file":"JISInfotextsJsonSchema.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/datasources/JISInfotextsJsonSchema.ts"],"names":[],"mappings":";;;AAAA,sHAA2F;AAI9E,QAAA,sBAAsB,GAAmC;IAClE,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACtB,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,iDAAqB,CAAC,EAAE;YAC9E,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE;YAC7D,aAAa,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;oBAC9C,GAAG,EAAE;wBACD,KAAK,EAAE;4BACH,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;4BACvC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;yBACnC;qBACJ;iBACJ;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;aACtB;YACD,gBAAgB,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACtB,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;iBACxE;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,IAAI,CAAC;aACnB;YACD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,UAAU,EAAE;oBACR,KAAK,EAAE;wBACH,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,IAAI;wBACd,KAAK,EAAE;4BACH,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;6BACzB;4BACD,oBAAoB,EAAE,KAAK;4BAC3B,QAAQ,EAAE,CAAC,IAAI,CAAC;yBACnB;qBACJ;iBACJ;gBACD,oBAAoB,EAAE,KAAK;aAC9B;YACD,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;YAC1D,uBAAuB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;SACnE;QACD,QAAQ,EAAE;YACN,IAAI;YACJ,gBAAgB;YAChB,cAAc;YACd,eAAe;YACf,kBAAkB;YAClB,mBAAmB;YACnB,yBAAyB;SAC5B;KACJ;CACJ,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export interface IJISInfotextStop {
2
- stop_id: string;
2
+ id: string;
3
3
  }
@@ -0,0 +1,12 @@
1
+ import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
2
+ import { CreationOptional, InferAttributes, InferCreationAttributes, Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
3
+ import { IRopidDeparturesPresetsRopidGTFSStops } from "./interfaces/IPresetsGtfsStops";
4
+ export declare class RopidDeparturesPresetsRopidGTFSStopsModel extends Model<InferAttributes<RopidDeparturesPresetsRopidGTFSStopsModel>, InferCreationAttributes<RopidDeparturesPresetsRopidGTFSStopsModel>> implements IRopidDeparturesPresetsRopidGTFSStops {
5
+ static tableName: string;
6
+ preset_id: number;
7
+ stop_id: string;
8
+ created_at: CreationOptional<Date>;
9
+ updated_at: CreationOptional<Date>;
10
+ static attributeModel: ModelAttributes<RopidDeparturesPresetsRopidGTFSStopsModel>;
11
+ static jsonSchema: JSONSchemaType<IRopidDeparturesPresetsRopidGTFSStops[]>;
12
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RopidDeparturesPresetsRopidGTFSStopsModel = void 0;
4
+ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ class RopidDeparturesPresetsRopidGTFSStopsModel extends sequelize_1.Model {
6
+ }
7
+ exports.RopidDeparturesPresetsRopidGTFSStopsModel = RopidDeparturesPresetsRopidGTFSStopsModel;
8
+ RopidDeparturesPresetsRopidGTFSStopsModel.tableName = "ropid_departures_presets_ropidgtfs_stops";
9
+ RopidDeparturesPresetsRopidGTFSStopsModel.attributeModel = {
10
+ preset_id: {
11
+ type: sequelize_1.DataTypes.INTEGER,
12
+ primaryKey: true,
13
+ allowNull: false,
14
+ },
15
+ stop_id: {
16
+ primaryKey: true,
17
+ type: sequelize_1.DataTypes.STRING(50),
18
+ allowNull: false,
19
+ },
20
+ created_at: {
21
+ type: sequelize_1.DataTypes.DATE,
22
+ allowNull: false,
23
+ },
24
+ updated_at: {
25
+ type: sequelize_1.DataTypes.DATE,
26
+ allowNull: false,
27
+ },
28
+ };
29
+ RopidDeparturesPresetsRopidGTFSStopsModel.jsonSchema = {
30
+ type: "array",
31
+ items: {
32
+ type: "object",
33
+ properties: {
34
+ preset_id: { type: "number" },
35
+ stop_id: { type: "string" },
36
+ },
37
+ additionalProperties: false,
38
+ required: ["preset_id", "stop_id"],
39
+ },
40
+ };
41
+ //# sourceMappingURL=RopidDeparturesPresetsRopidGTFSStopsModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RopidDeparturesPresetsRopidGTFSStopsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/models/RopidDeparturesPresetsRopidGTFSStopsModel.ts"],"names":[],"mappings":";;;AACA,mEAO6C;AAG7C,MAAa,yCACT,SAAQ,iBAGP;;AAJL,8FA+CC;AAxCiB,mDAAS,GAAG,0CAA0C,CAAC;AAOvD,wDAAc,GAA+D;IACvF,SAAS,EAAE;QACP,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;KACnB;IACD,OAAO,EAAE;QACL,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1B,SAAS,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;CACJ,CAAC;AAEY,oDAAU,GAA4D;IAChF,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC9B;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC;KACrC;CACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface IRopidDeparturesPresetsRopidGTFSStops {
2
+ preset_id: number;
3
+ stop_id: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IPresetsGtfsStops.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPresetsGtfsStops.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/models/interfaces/IPresetsGtfsStops.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface IRopidDeparturesPresetsRopidGTFSStops {
2
+ id: string;
3
+ stop_id: string;
4
+ preset_id: string;
5
+ created_timestamp: Date;
6
+ updated_timestamp: Date;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IPresetsRopidGTFSStops.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPresetsRopidGTFSStops.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/models/interfaces/IPresetsRopidGTFSStops.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
2
+ import { CreationOptional, InferAttributes, InferCreationAttributes, Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
3
+ import { IRopidDeparturesPresets } from "./interfaces/IRopidDeparturesPresets";
4
+ import { StopDto } from "../../ropid-gtfs/models/StopDto";
5
+ export declare class RopidDeparturesPresetsModel extends Model<InferAttributes<RopidDeparturesPresetsModel>, InferCreationAttributes<RopidDeparturesPresetsModel>> implements IRopidDeparturesPresets {
6
+ static tableName: string;
7
+ id: number;
8
+ route_name: string;
9
+ api_version: number;
10
+ route: string;
11
+ url_query_params: string;
12
+ note: string;
13
+ is_testing: boolean;
14
+ created_at: CreationOptional<Date>;
15
+ updated_at: CreationOptional<Date>;
16
+ stops?: StopDto[];
17
+ static attributeModel: ModelAttributes<RopidDeparturesPresetsModel>;
18
+ static jsonSchema: JSONSchemaType<IRopidDeparturesPresets[]>;
19
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RopidDeparturesPresetsModel = void 0;
4
+ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ class RopidDeparturesPresetsModel extends sequelize_1.Model {
6
+ }
7
+ exports.RopidDeparturesPresetsModel = RopidDeparturesPresetsModel;
8
+ RopidDeparturesPresetsModel.tableName = "ropid_departures_presets";
9
+ RopidDeparturesPresetsModel.attributeModel = {
10
+ id: {
11
+ type: sequelize_1.DataTypes.INTEGER,
12
+ primaryKey: true,
13
+ autoIncrement: true,
14
+ },
15
+ route_name: {
16
+ type: sequelize_1.DataTypes.STRING(100),
17
+ unique: true,
18
+ },
19
+ api_version: sequelize_1.DataTypes.SMALLINT,
20
+ route: sequelize_1.DataTypes.STRING(100),
21
+ url_query_params: sequelize_1.DataTypes.STRING(400),
22
+ note: sequelize_1.DataTypes.STRING(1000),
23
+ is_testing: sequelize_1.DataTypes.BOOLEAN,
24
+ created_at: {
25
+ type: sequelize_1.DataTypes.DATE,
26
+ allowNull: false,
27
+ },
28
+ updated_at: {
29
+ type: sequelize_1.DataTypes.DATE,
30
+ allowNull: false,
31
+ },
32
+ };
33
+ RopidDeparturesPresetsModel.jsonSchema = {
34
+ type: "array",
35
+ items: {
36
+ type: "object",
37
+ properties: {
38
+ id: {
39
+ type: "number",
40
+ },
41
+ route_name: {
42
+ type: "string",
43
+ },
44
+ api_version: {
45
+ type: "number",
46
+ },
47
+ route: {
48
+ type: "string",
49
+ },
50
+ url_query_params: {
51
+ type: "string",
52
+ },
53
+ note: {
54
+ type: "string",
55
+ },
56
+ is_testing: {
57
+ type: "boolean",
58
+ },
59
+ },
60
+ required: ["route_name", "api_version", "route", "url_query_params", "note", "is_testing"],
61
+ additionalProperties: false,
62
+ },
63
+ };
64
+ //# sourceMappingURL=RopidDeparturesPresetsModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RopidDeparturesPresetsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.ts"],"names":[],"mappings":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YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,YAAY,CAAC;QAC1F,oBAAoB,EAAE,KAAK;KAC9B;CACJ,CAAC"}
@@ -0,0 +1,9 @@
1
+ export interface IRopidDeparturesPresets {
2
+ id: number;
3
+ route_name: string;
4
+ api_version: number;
5
+ route: string;
6
+ url_query_params: string;
7
+ note: string;
8
+ is_testing: boolean;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IRopidDeparturesPresets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRopidDeparturesPresets.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/ropid-departures-presets/models/interfaces/IRopidDeparturesPresets.ts"],"names":[],"mappings":""}
@@ -468,20 +468,39 @@ components:
468
468
  IUpdateGTFSTripIdData:
469
469
  type: object
470
470
  properties:
471
+ cis_line_short_name:
472
+ type: [string, "null"]
471
473
  id:
472
- type: string
474
+ type: [string]
475
+ start_asw_stop_id:
476
+ type: [string, "null"]
477
+ start_cis_stop_id:
478
+ type: [integer, "null"]
479
+ start_cis_stop_platform_code:
480
+ type: [string, "null"]
473
481
  start_timestamp:
474
- type: string
475
- nullable: true
476
- run_number:
477
- type: number
478
- nullable: true
482
+ type: [string, "null"]
483
+ format: date-time
484
+ agency_name_real:
485
+ type: [string, "null"]
486
+ agency_name_scheduled:
487
+ type: [string, "null"]
488
+ cis_line_id:
489
+ type: [string, "null"]
490
+ cis_trip_number:
491
+ type: [integer, "null"]
479
492
  origin_route_name:
480
- type: string
481
- nullable: true
493
+ type: [string, "null"]
494
+ run_number:
495
+ type: [integer, "null"]
496
+ start_time:
497
+ type: [string, "null"]
482
498
  vehicle_registration_number:
483
- type: number
484
- nullable: true
499
+ type: [integer, "null"]
500
+ vehicle_type_id:
501
+ type: [integer, "null"]
502
+ wheelchair_accessible:
503
+ type: [boolean, "null"]
485
504
  IPositionTransformationResult:
486
505
  type: object
487
506
  properties: