@golemio/pid 2.13.6-dev.1310475463 → 2.13.6-dev.1313672574

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 (124) hide show
  1. package/db/example/02_pid_line_example_115.sql +148 -0
  2. package/db/migrations/postgresql/20240523123717-add-stop-name-and-gps-to-history-data.js +53 -0
  3. package/db/migrations/postgresql/20240529165139-gtfs-index-optimization.js +53 -0
  4. package/db/migrations/postgresql/sqls/20240523123717-add-stop-name-and-gps-to-history-data-down.sql +107 -0
  5. package/db/migrations/postgresql/sqls/20240523123717-add-stop-name-and-gps-to-history-data-up.sql +118 -0
  6. package/db/migrations/postgresql/sqls/20240529165139-gtfs-index-optimization-down.sql +2 -0
  7. package/db/migrations/postgresql/sqls/20240529165139-gtfs-index-optimization-up.sql +2 -0
  8. package/dist/helpers/PassengerTransferEnums.d.ts +20 -0
  9. package/dist/helpers/PassengerTransferEnums.js +26 -0
  10. package/dist/helpers/PassengerTransferEnums.js.map +1 -0
  11. package/dist/integration-engine/ropid-gtfs/workers/presets/tasks/CheckForNewDeparturesPresetsTask.js +0 -1
  12. package/dist/integration-engine/ropid-gtfs/workers/presets/tasks/CheckForNewDeparturesPresetsTask.js.map +1 -1
  13. package/dist/integration-engine/ropid-gtfs/workers/presets/tasks/DownloadDeparturesPresetsTask.js +0 -1
  14. package/dist/integration-engine/ropid-gtfs/workers/presets/tasks/DownloadDeparturesPresetsTask.js.map +1 -1
  15. package/dist/output-gateway/departure-boards/DepartureBoardsRouter.d.ts +1 -0
  16. package/dist/output-gateway/departure-boards/DepartureBoardsRouter.js +9 -6
  17. package/dist/output-gateway/departure-boards/DepartureBoardsRouter.js.map +1 -1
  18. package/dist/output-gateway/pid/PIDRouter.d.ts +1 -0
  19. package/dist/output-gateway/pid/PIDRouter.js +9 -9
  20. package/dist/output-gateway/pid/PIDRouter.js.map +1 -1
  21. package/dist/output-gateway/public/controllers/v1/PublicGtfsController.d.ts +6 -0
  22. package/dist/output-gateway/public/controllers/v1/PublicGtfsController.js +44 -0
  23. package/dist/output-gateway/public/controllers/v1/PublicGtfsController.js.map +1 -0
  24. package/dist/output-gateway/public/controllers/v1/interfaces/PublicParamsInterfaces.d.ts +4 -0
  25. package/dist/output-gateway/public/domain/ITripScopeHandler.d.ts +7 -0
  26. package/dist/output-gateway/public/domain/{ITripScopeHandlerFactory.js → ITripScopeHandler.js} +1 -1
  27. package/dist/output-gateway/public/domain/ITripScopeHandler.js.map +1 -0
  28. package/dist/output-gateway/public/domain/PublicApiGtfsTripLookupInterfaces.d.ts +35 -0
  29. package/dist/output-gateway/public/domain/PublicApiGtfsTripLookupInterfaces.js +3 -0
  30. package/dist/output-gateway/public/domain/PublicApiGtfsTripLookupInterfaces.js.map +1 -0
  31. package/dist/output-gateway/public/ioc/Di.js +34 -8
  32. package/dist/output-gateway/public/ioc/Di.js.map +1 -1
  33. package/dist/output-gateway/public/ioc/OgModuleToken.d.ts +10 -0
  34. package/dist/output-gateway/public/ioc/OgModuleToken.js +14 -0
  35. package/dist/output-gateway/public/ioc/OgModuleToken.js.map +1 -1
  36. package/dist/output-gateway/public/routers/v1/PublicDeparturesRouter.d.ts +2 -1
  37. package/dist/output-gateway/public/routers/v1/PublicDeparturesRouter.js +8 -4
  38. package/dist/output-gateway/public/routers/v1/PublicDeparturesRouter.js.map +1 -1
  39. package/dist/output-gateway/public/routers/v1/PublicGtfsRouter.d.ts +11 -0
  40. package/dist/output-gateway/public/routers/v1/PublicGtfsRouter.js +27 -0
  41. package/dist/output-gateway/public/routers/v1/PublicGtfsRouter.js.map +1 -0
  42. package/dist/output-gateway/public/routers/v1/PublicVehiclePositionsRouter.d.ts +2 -1
  43. package/dist/output-gateway/public/routers/v1/PublicVehiclePositionsRouter.js +9 -3
  44. package/dist/output-gateway/public/routers/v1/PublicVehiclePositionsRouter.js.map +1 -1
  45. package/dist/output-gateway/public/service/facade/DetailedTripFacade.d.ts +2 -2
  46. package/dist/output-gateway/public/service/facade/DetailedTripFacade.js.map +1 -1
  47. package/dist/output-gateway/public/service/facade/GtfsTripLookupFacade.d.ts +10 -0
  48. package/dist/output-gateway/public/service/facade/GtfsTripLookupFacade.js +50 -0
  49. package/dist/output-gateway/public/service/facade/GtfsTripLookupFacade.js.map +1 -0
  50. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.d.ts +11 -0
  51. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.js +43 -0
  52. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.js.map +1 -0
  53. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/AbstractGtfsTripScopeHandler.d.ts +6 -0
  54. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/AbstractGtfsTripScopeHandler.js +7 -0
  55. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/AbstractGtfsTripScopeHandler.js.map +1 -0
  56. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/InfoTripScopeHandler.d.ts +9 -0
  57. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/InfoTripScopeHandler.js +35 -0
  58. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/InfoTripScopeHandler.js.map +1 -0
  59. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/ShapesTripScopeHandler.d.ts +9 -0
  60. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/ShapesTripScopeHandler.js +36 -0
  61. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/ShapesTripScopeHandler.js.map +1 -0
  62. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/StopTimesTripScopeHandler.d.ts +9 -0
  63. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/StopTimesTripScopeHandler.js +38 -0
  64. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/StopTimesTripScopeHandler.js.map +1 -0
  65. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/VehicleDescriptorTripScopeHandler.d.ts +9 -0
  66. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/VehicleDescriptorTripScopeHandler.js +35 -0
  67. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/strategy/VehicleDescriptorTripScopeHandler.js.map +1 -0
  68. package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHandlerFactory.d.ts +4 -5
  69. package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHandlerFactory.js +6 -6
  70. package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHandlerFactory.js.map +1 -1
  71. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/{AbstractTripScopeHandler.d.ts → AbstractDetailedTripScopeHandler.d.ts} +2 -1
  72. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/AbstractDetailedTripScopeHandler.js +7 -0
  73. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/AbstractDetailedTripScopeHandler.js.map +1 -0
  74. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/InfoTripScopeHandler.d.ts +2 -2
  75. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/InfoTripScopeHandler.js +2 -2
  76. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/InfoTripScopeHandler.js.map +1 -1
  77. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/ShapesTripScopeHandler.d.ts +2 -2
  78. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/ShapesTripScopeHandler.js +2 -2
  79. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/ShapesTripScopeHandler.js.map +1 -1
  80. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/StopTimesTripScopeHandler.d.ts +2 -2
  81. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/StopTimesTripScopeHandler.js +2 -2
  82. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/StopTimesTripScopeHandler.js.map +1 -1
  83. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/VehicleDescriptorTripScopeHandler.d.ts +2 -2
  84. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/VehicleDescriptorTripScopeHandler.js +2 -2
  85. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/VehicleDescriptorTripScopeHandler.js.map +1 -1
  86. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripInfoTransformation.d.ts +15 -0
  87. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripInfoTransformation.js +35 -0
  88. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripInfoTransformation.js.map +1 -0
  89. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripShapesTransformation.d.ts +7 -0
  90. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripShapesTransformation.js +30 -0
  91. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripShapesTransformation.js.map +1 -0
  92. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsVehicleDescriptorTransformation.d.ts +10 -0
  93. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsVehicleDescriptorTransformation.js +33 -0
  94. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsVehicleDescriptorTransformation.js.map +1 -0
  95. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicTripStopTimesTransformation.d.ts +8 -0
  96. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicTripStopTimesTransformation.js +46 -0
  97. package/dist/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicTripStopTimesTransformation.js.map +1 -0
  98. package/dist/output-gateway/ropid-gtfs/GTFSRouter.d.ts +2 -1
  99. package/dist/output-gateway/ropid-gtfs/GTFSRouter.js +30 -27
  100. package/dist/output-gateway/ropid-gtfs/GTFSRouter.js.map +1 -1
  101. package/dist/output-gateway/ropid-gtfs/data-access/GtfsTripScheduleRepository.d.ts +8 -0
  102. package/dist/output-gateway/ropid-gtfs/data-access/GtfsTripScheduleRepository.js +22 -0
  103. package/dist/output-gateway/ropid-gtfs/data-access/GtfsTripScheduleRepository.js.map +1 -0
  104. package/dist/output-gateway/ropid-gtfs/models/GTFSStopTimesModel.js +2 -1
  105. package/dist/output-gateway/ropid-gtfs/models/GTFSStopTimesModel.js.map +1 -1
  106. package/dist/output-gateway/ropid-gtfs/models/GTFSTripsModel.d.ts +9 -1
  107. package/dist/output-gateway/ropid-gtfs/models/GTFSTripsModel.js +93 -2
  108. package/dist/output-gateway/ropid-gtfs/models/GTFSTripsModel.js.map +1 -1
  109. package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.d.ts +1 -0
  110. package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js +27 -9
  111. package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js.map +1 -1
  112. package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.js +8 -2
  113. package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.js.map +1 -1
  114. package/dist/schema-definitions/ropid-gtfs/RopidGTFSRunNumbers.d.ts +1 -1
  115. package/dist/schema-definitions/ropid-gtfs/interfaces/ITripWithOptionalAssociationsDto.d.ts +19 -0
  116. package/dist/schema-definitions/ropid-gtfs/interfaces/ITripWithOptionalAssociationsDto.js +3 -0
  117. package/dist/schema-definitions/ropid-gtfs/interfaces/ITripWithOptionalAssociationsDto.js.map +1 -0
  118. package/docs/implementation_documentation.md +10 -1
  119. package/docs/openapi-output.yaml +151 -13
  120. package/package.json +2 -2
  121. package/dist/output-gateway/public/domain/ITripScopeHandlerFactory.d.ts +0 -5
  122. package/dist/output-gateway/public/domain/ITripScopeHandlerFactory.js.map +0 -1
  123. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/AbstractTripScopeHandler.js +0 -7
  124. package/dist/output-gateway/public/service/helpers/trip-scope/strategy/AbstractTripScopeHandler.js.map +0 -1
@@ -0,0 +1,15 @@
1
+ import { IPublicApiGtfsTripScopeInfo } from "../../../domain/PublicApiGtfsTripLookupInterfaces";
2
+ import { ITripWithDefinedRouteDto } from "../../../../../schema-definitions/ropid-gtfs/interfaces/ITripWithOptionalAssociationsDto";
3
+ import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
4
+ export declare class PublicGtfsTripInfoTransformation extends AbstractTransformation<ITripWithDefinedRouteDto, IPublicApiGtfsTripScopeInfo> {
5
+ name: string;
6
+ protected transformInternal: (gtfsTrip: ITripWithDefinedRouteDto) => {
7
+ gtfs_trip_id: string;
8
+ route_type: string;
9
+ route_short_name: string;
10
+ shape_id: string;
11
+ origin_route_name: string;
12
+ run_number: number | null;
13
+ trip_headsign: string;
14
+ };
15
+ }
@@ -0,0 +1,35 @@
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.PublicGtfsTripInfoTransformation = void 0;
10
+ const RouteTypeEnums_1 = require("../../../../../helpers/RouteTypeEnums");
11
+ const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
12
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
13
+ let PublicGtfsTripInfoTransformation = exports.PublicGtfsTripInfoTransformation = class PublicGtfsTripInfoTransformation extends AbstractTransformation_1.AbstractTransformation {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.name = "GtfsTripInfoTransformation";
17
+ this.transformInternal = (gtfsTrip) => {
18
+ var _a, _b, _c;
19
+ const routeType = gtfsTrip.route.route_type;
20
+ return {
21
+ gtfs_trip_id: gtfsTrip.trip_id,
22
+ route_type: ((_a = RouteTypeEnums_1.GTFSRouteTypeEnum[routeType !== null && routeType !== void 0 ? routeType : 1700]) !== null && _a !== void 0 ? _a : RouteTypeEnums_1.GTFSRouteTypeEnum[1700]).toLowerCase(),
23
+ route_short_name: gtfsTrip.route.route_short_name,
24
+ shape_id: gtfsTrip.shape_id,
25
+ origin_route_name: gtfsTrip.route.route_id.substring(1),
26
+ run_number: (_c = (_b = gtfsTrip.schedule) === null || _b === void 0 ? void 0 : _b.run_number) !== null && _c !== void 0 ? _c : null,
27
+ trip_headsign: gtfsTrip.trip_headsign,
28
+ };
29
+ };
30
+ }
31
+ };
32
+ exports.PublicGtfsTripInfoTransformation = PublicGtfsTripInfoTransformation = __decorate([
33
+ (0, tsyringe_1.injectable)()
34
+ ], PublicGtfsTripInfoTransformation);
35
+ //# sourceMappingURL=PublicGtfsTripInfoTransformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublicGtfsTripInfoTransformation.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripInfoTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAAA,0EAA4D;AAG5D,6GAA0G;AAC1G,iEAAgE;AAGzD,IAAM,gCAAgC,8CAAtC,MAAM,gCAAiC,SAAQ,+CAGrD;IAHM;;QAII,SAAI,GAAG,4BAA4B,CAAC;QAEjC,sBAAiB,GAAG,CAAC,QAAkC,EAAE,EAAE;;YACjE,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC;YAC5C,OAAO;gBACH,YAAY,EAAE,QAAQ,CAAC,OAAO;gBAC9B,UAAU,EAAE,CAAC,MAAA,kCAAiB,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,IAAI,CAAC,mCAAI,kCAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE;gBAC3F,gBAAgB,EAAE,QAAQ,CAAC,KAAK,CAAC,gBAAgB;gBACjD,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,iBAAiB,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;gBACvD,UAAU,EAAE,MAAA,MAAA,QAAQ,CAAC,QAAQ,0CAAE,UAAU,mCAAI,IAAI;gBACjD,aAAa,EAAE,QAAQ,CAAC,aAAa;aACxC,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;2CAlBY,gCAAgC;IAD5C,IAAA,qBAAU,GAAE;GACA,gCAAgC,CAkB5C"}
@@ -0,0 +1,7 @@
1
+ import { IShapeDto } from "../../../../../schema-definitions/ropid-gtfs/interfaces/IShapeDto";
2
+ import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
3
+ import { IGeoJSONFeature } from "@golemio/core/dist/output-gateway";
4
+ export declare class PublicGtfsTripShapesTransformation extends AbstractTransformation<IShapeDto, IGeoJSONFeature> {
5
+ name: string;
6
+ protected transformInternal: (shape: IShapeDto) => IGeoJSONFeature;
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.PublicGtfsTripShapesTransformation = void 0;
10
+ const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
11
+ const output_gateway_1 = require("@golemio/core/dist/output-gateway");
12
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
13
+ let PublicGtfsTripShapesTransformation = exports.PublicGtfsTripShapesTransformation = class PublicGtfsTripShapesTransformation extends AbstractTransformation_1.AbstractTransformation {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.name = "GtfsTripShapesTransformation";
17
+ this.transformInternal = (shape) => {
18
+ const properties = {
19
+ shape_dist_traveled: shape.shape_dist_traveled,
20
+ lng: shape.shape_pt_lon,
21
+ lat: shape.shape_pt_lat,
22
+ };
23
+ return (0, output_gateway_1.buildGeojsonFeature)(properties, "lng", "lat", true);
24
+ };
25
+ }
26
+ };
27
+ exports.PublicGtfsTripShapesTransformation = PublicGtfsTripShapesTransformation = __decorate([
28
+ (0, tsyringe_1.injectable)()
29
+ ], PublicGtfsTripShapesTransformation);
30
+ //# sourceMappingURL=PublicGtfsTripShapesTransformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublicGtfsTripShapesTransformation.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsTripShapesTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAEA,6GAA0G;AAC1G,sEAAyF;AACzF,iEAAgE;AAGzD,IAAM,kCAAkC,gDAAxC,MAAM,kCAAmC,SAAQ,+CAAkD;IAAnG;;QACI,SAAI,GAAG,8BAA8B,CAAC;QAEnC,sBAAiB,GAAG,CAAC,KAAgB,EAAE,EAAE;YAC/C,MAAM,UAAU,GAA0E;gBACtF,mBAAmB,EAAE,KAAK,CAAC,mBAAmB;gBAC9C,GAAG,EAAE,KAAK,CAAC,YAAY;gBACvB,GAAG,EAAE,KAAK,CAAC,YAAY;aAC1B,CAAC;YAEF,OAAO,IAAA,oCAAmB,EAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;QAC/D,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;6CAZY,kCAAkC;IAD9C,IAAA,qBAAU,GAAE;GACA,kCAAkC,CAY9C"}
@@ -0,0 +1,10 @@
1
+ import { IPublicApiGtfsTripScopeDescriptor } from "../../../domain/PublicApiGtfsTripLookupInterfaces";
2
+ import { ITripWithOptionalAssociationsDto } from "../../../../../schema-definitions/ropid-gtfs/interfaces/ITripWithOptionalAssociationsDto";
3
+ import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
4
+ export declare class PublicGtfsVehicleDescriptorTransformation extends AbstractTransformation<ITripWithOptionalAssociationsDto, IPublicApiGtfsTripScopeDescriptor> {
5
+ name: string;
6
+ protected transformInternal: (gtfsTrip: ITripWithOptionalAssociationsDto) => {
7
+ is_wheelchair_accessible: boolean | null;
8
+ };
9
+ private isVehicleWheelchairAccessible;
10
+ }
@@ -0,0 +1,33 @@
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.PublicGtfsVehicleDescriptorTransformation = void 0;
10
+ const AccessibilityEnums_1 = require("../../../../../helpers/AccessibilityEnums");
11
+ const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
12
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
13
+ let PublicGtfsVehicleDescriptorTransformation = exports.PublicGtfsVehicleDescriptorTransformation = class PublicGtfsVehicleDescriptorTransformation extends AbstractTransformation_1.AbstractTransformation {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.name = "GtfsVehicleDescriptorTransformation";
17
+ this.transformInternal = (gtfsTrip) => {
18
+ return {
19
+ is_wheelchair_accessible: this.isVehicleWheelchairAccessible(gtfsTrip),
20
+ };
21
+ };
22
+ this.isVehicleWheelchairAccessible = ({ wheelchair_accessible }) => {
23
+ if (wheelchair_accessible === null || wheelchair_accessible === AccessibilityEnums_1.GtfsTripWheelchairAccessEnum.NoInformation) {
24
+ return null;
25
+ }
26
+ return wheelchair_accessible === AccessibilityEnums_1.GtfsTripWheelchairAccessEnum.AccessibleVehicle;
27
+ };
28
+ }
29
+ };
30
+ exports.PublicGtfsVehicleDescriptorTransformation = PublicGtfsVehicleDescriptorTransformation = __decorate([
31
+ (0, tsyringe_1.injectable)()
32
+ ], PublicGtfsVehicleDescriptorTransformation);
33
+ //# sourceMappingURL=PublicGtfsVehicleDescriptorTransformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublicGtfsVehicleDescriptorTransformation.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicGtfsVehicleDescriptorTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kFAA2E;AAG3E,6GAA0G;AAC1G,iEAAgE;AAGzD,IAAM,yCAAyC,uDAA/C,MAAM,yCAA0C,SAAQ,+CAG9D;IAHM;;QAII,SAAI,GAAG,qCAAqC,CAAC;QAE1C,sBAAiB,GAAG,CAAC,QAA0C,EAAE,EAAE;YACzE,OAAO;gBACH,wBAAwB,EAAE,IAAI,CAAC,6BAA6B,CAAC,QAAQ,CAAC;aACzE,CAAC;QACN,CAAC,CAAC;QAEM,kCAA6B,GAAG,CAAC,EAAE,qBAAqB,EAAoC,EAAkB,EAAE;YACpH,IAAI,qBAAqB,KAAK,IAAI,IAAI,qBAAqB,KAAK,iDAA4B,CAAC,aAAa,EAAE;gBACxG,OAAO,IAAI,CAAC;aACf;YAED,OAAO,qBAAqB,KAAK,iDAA4B,CAAC,iBAAiB,CAAC;QACpF,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;oDAnBY,yCAAyC;IADrD,IAAA,qBAAU,GAAE;GACA,yCAAyC,CAmBrD"}
@@ -0,0 +1,8 @@
1
+ import { IStopTimeWithStopDto } from "../../../../../schema-definitions/ropid-gtfs/interfaces/ITripWithOptionalAssociationsDto";
2
+ import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
3
+ import { IGeoJSONFeature } from "@golemio/core/dist/output-gateway";
4
+ export declare class PublicGtfsTripStopTimesTransformation extends AbstractTransformation<IStopTimeWithStopDto, IGeoJSONFeature> {
5
+ name: string;
6
+ protected transformInternal: (stopTime: IStopTimeWithStopDto) => IGeoJSONFeature;
7
+ private isStopWheelchairAccessible;
8
+ }
@@ -0,0 +1,46 @@
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.PublicGtfsTripStopTimesTransformation = void 0;
10
+ const AccessibilityEnums_1 = require("../../../../../helpers/AccessibilityEnums");
11
+ const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
12
+ const output_gateway_1 = require("@golemio/core/dist/output-gateway");
13
+ const luxon_1 = require("@golemio/core/dist/shared/luxon");
14
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
15
+ let PublicGtfsTripStopTimesTransformation = exports.PublicGtfsTripStopTimesTransformation = class PublicGtfsTripStopTimesTransformation extends AbstractTransformation_1.AbstractTransformation {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.name = "GtfsTripStopTimesTransformation";
19
+ this.transformInternal = (stopTime) => {
20
+ const stop = stopTime.stop;
21
+ const startDateTime = luxon_1.DateTime.now().startOf("day");
22
+ const properties = {
23
+ stop_name: stop.stop_name,
24
+ stop_sequence: stopTime.stop_sequence,
25
+ zone_id: stop.zone_id,
26
+ is_wheelchair_accessible: this.isStopWheelchairAccessible(stop),
27
+ shape_dist_traveled: stopTime.shape_dist_traveled,
28
+ arrival_time: startDateTime.plus({ seconds: stopTime.arrival_time_seconds }).toFormat("HH:mm:ss"),
29
+ departure_time: startDateTime.plus({ seconds: stopTime.departure_time_seconds }).toFormat("HH:mm:ss"),
30
+ lng: stop.stop_lon,
31
+ lat: stop.stop_lat,
32
+ };
33
+ return (0, output_gateway_1.buildGeojsonFeature)(properties, "lng", "lat", true);
34
+ };
35
+ this.isStopWheelchairAccessible = ({ wheelchair_boarding }) => {
36
+ if (wheelchair_boarding === null || wheelchair_boarding === AccessibilityEnums_1.GtfsStopWheelchairBoardingEnum.NoInformation) {
37
+ return null;
38
+ }
39
+ return wheelchair_boarding === AccessibilityEnums_1.GtfsStopWheelchairBoardingEnum.AccessibleStation;
40
+ };
41
+ }
42
+ };
43
+ exports.PublicGtfsTripStopTimesTransformation = PublicGtfsTripStopTimesTransformation = __decorate([
44
+ (0, tsyringe_1.injectable)()
45
+ ], PublicGtfsTripStopTimesTransformation);
46
+ //# sourceMappingURL=PublicTripStopTimesTransformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublicTripStopTimesTransformation.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/service/transformations/gtfs-trip-scopes/PublicTripStopTimesTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kFAA6E;AAI7E,6GAA0G;AAC1G,sEAAyF;AACzF,2DAA2D;AAC3D,iEAAgE;AAGzD,IAAM,qCAAqC,mDAA3C,MAAM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A,qBAAU,GAAE;GACA,qCAAqC,CA6BjD"}
@@ -5,8 +5,8 @@
5
5
  * Handles web logic (http request, response). Sets response headers, handles error responses.
6
6
  */
7
7
  /// <reference types="express" />
8
- import { NextFunction, Request, Response, Router } from "@golemio/core/dist/shared/express";
9
8
  import { BaseRouter } from "@golemio/core/dist/output-gateway/routes/BaseRouter";
9
+ import { NextFunction, Request, Response, Router } from "@golemio/core/dist/shared/express";
10
10
  import { GTFSCalendarModel } from "./models/GTFSCalendarModel";
11
11
  import { GTFSRoutesModel } from "./models/GTFSRoutesModel";
12
12
  import { GTFSShapesModel } from "./models/GTFSShapesModel";
@@ -15,6 +15,7 @@ import { GTFSStopTimesModel } from "./models/GTFSStopTimesModel";
15
15
  import { GTFSTripsModel } from "./models/GTFSTripsModel";
16
16
  export declare class GTFSRouter extends BaseRouter {
17
17
  router: Router;
18
+ private cacheHeaderMiddleware;
18
19
  protected tripModel: GTFSTripsModel;
19
20
  protected serviceModel: GTFSCalendarModel;
20
21
  protected stopModel: GTFSStopModel;
@@ -19,16 +19,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.gtfsRouter = exports.GTFSRouter = void 0;
22
- const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
22
+ const ParamValidatorManager_1 = require("../pid/helpers/ParamValidatorManager");
23
+ const Geo_1 = require("@golemio/core/dist/output-gateway/Geo");
24
+ const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
25
+ const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
26
+ const BaseRouter_1 = require("@golemio/core/dist/output-gateway/routes/BaseRouter");
23
27
  const express_1 = require("@golemio/core/dist/shared/express");
24
28
  const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
29
+ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
25
30
  const moment_timezone_1 = __importDefault(require("@golemio/core/dist/shared/moment-timezone"));
26
- const Geo_1 = require("@golemio/core/dist/output-gateway/Geo");
27
- const redis_1 = require("@golemio/core/dist/output-gateway/redis");
28
- const BaseRouter_1 = require("@golemio/core/dist/output-gateway/routes/BaseRouter");
29
- const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
30
31
  const models_1 = require("./models");
31
- const ParamValidatorManager_1 = require("../pid/helpers/ParamValidatorManager");
32
32
  class GTFSRouter extends BaseRouter_1.BaseRouter {
33
33
  constructor() {
34
34
  super();
@@ -197,28 +197,30 @@ class GTFSRouter extends BaseRouter_1.BaseRouter {
197
197
  * Initiates all routes. Should respond with correct data to a HTTP requests to all routes.
198
198
  */
199
199
  this.initRoutes = () => {
200
- this.initTripsEndpoints("1 minute");
201
- this.initStopsEndpoints("1 minute");
202
- this.initStopTimesEndpoints("1 minute");
203
- this.initRoutesEndpoints("1 minute");
204
- this.initShapesEndpoints("1 minute");
205
- this.initServicesEndpoints("1 minute");
200
+ const maxAge = 4 * 60 * 60; // 4 hours
201
+ const staleWhileRevalidate = 60; // 1 minute
202
+ this.initTripsEndpoints(maxAge, staleWhileRevalidate);
203
+ this.initStopsEndpoints(maxAge, staleWhileRevalidate);
204
+ this.initStopTimesEndpoints(maxAge, staleWhileRevalidate);
205
+ this.initRoutesEndpoints(maxAge, staleWhileRevalidate);
206
+ this.initShapesEndpoints(maxAge, staleWhileRevalidate);
207
+ this.initServicesEndpoints(maxAge, staleWhileRevalidate);
206
208
  };
207
- this.initRoutesEndpoints = (expire) => {
208
- this.router.get("/routes", Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("GTFSRouter"), (0, redis_1.useCacheMiddleware)(expire), this.GetAllRoutes);
209
- this.router.get("/routes/:id", (0, express_validator_1.param)("id").exists(), (0, redis_1.useCacheMiddleware)(expire), this.GetOneRoute);
209
+ this.initRoutesEndpoints = (maxAge, staleWhileRevalidate) => {
210
+ this.router.get("/routes", Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("GTFSRouter"), this.cacheHeaderMiddleware.getMiddleware(maxAge, staleWhileRevalidate), this.GetAllRoutes);
211
+ this.router.get("/routes/:id", (0, express_validator_1.param)("id").exists(), this.cacheHeaderMiddleware.getMiddleware(maxAge, staleWhileRevalidate), this.GetOneRoute);
210
212
  };
211
- this.initServicesEndpoints = (expire) => {
212
- this.router.get("/services", (0, express_validator_1.query)("date").optional().isISO8601().custom(ParamValidatorManager_1.ParamValidatorManager.getDateValidator()).not().isArray(), Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("GTFSRouter"), (0, redis_1.useCacheMiddleware)(expire), this.GetAllServices);
213
+ this.initServicesEndpoints = (maxAge, staleWhileRevalidate) => {
214
+ this.router.get("/services", (0, express_validator_1.query)("date").optional().isISO8601().custom(ParamValidatorManager_1.ParamValidatorManager.getDateValidator()).not().isArray(), Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("GTFSRouter"), this.cacheHeaderMiddleware.getMiddleware(maxAge, staleWhileRevalidate), this.GetAllServices);
213
215
  };
214
- this.initShapesEndpoints = (expire) => {
215
- this.router.get("/shapes/:id", Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("GTFSRouter"), (0, express_validator_1.param)("id").exists(), (0, redis_1.useCacheMiddleware)(expire), this.GetAllShapes);
216
+ this.initShapesEndpoints = (maxAge, staleWhileRevalidate) => {
217
+ this.router.get("/shapes/:id", Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("GTFSRouter"), (0, express_validator_1.param)("id").exists(), this.cacheHeaderMiddleware.getMiddleware(maxAge, staleWhileRevalidate), this.GetAllShapes);
216
218
  };
217
- this.initTripsEndpoints = (expire) => {
218
- this.router.get("/trips", (0, express_validator_1.query)("stopId").optional().not().isArray(), this.tripInclusions, Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("GTFSRouter"), (0, redis_1.useCacheMiddleware)(expire), this.GetAllTrips);
219
- this.router.get("/trips/:id", (0, express_validator_1.param)("id").exists(), this.tripInclusions, Validation_1.checkErrors, (0, redis_1.useCacheMiddleware)(expire), this.GetOneTrip);
219
+ this.initTripsEndpoints = (maxAge, staleWhileRevalidate) => {
220
+ this.router.get("/trips", (0, express_validator_1.query)("stopId").optional().not().isArray(), this.tripInclusions, Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("GTFSRouter"), this.cacheHeaderMiddleware.getMiddleware(maxAge, staleWhileRevalidate), this.GetAllTrips);
221
+ this.router.get("/trips/:id", (0, express_validator_1.param)("id").exists(), this.tripInclusions, Validation_1.checkErrors, this.cacheHeaderMiddleware.getMiddleware(maxAge, staleWhileRevalidate), this.GetOneTrip);
220
222
  };
221
- this.initStopsEndpoints = (expire) => {
223
+ this.initStopsEndpoints = (maxAge, staleWhileRevalidate) => {
222
224
  this.router.get("/stops", [
223
225
  (0, express_validator_1.query)("latlng").optional().isLatLong().not().isArray(),
224
226
  (0, express_validator_1.query)("range").optional().isNumeric().not().isArray(),
@@ -226,10 +228,10 @@ class GTFSRouter extends BaseRouter_1.BaseRouter {
226
228
  (0, express_validator_1.query)("aswIds").optional().not().isEmpty({ ignore_whitespace: true }),
227
229
  (0, express_validator_1.query)("cisIds").optional().isInt(),
228
230
  (0, express_validator_1.query)("ids").optional().not().isEmpty({ ignore_whitespace: true }),
229
- ], Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("GTFSRouter"), (0, redis_1.useCacheMiddleware)(expire), this.GetAllStops);
230
- this.router.get("/stops/:id", [(0, express_validator_1.param)("id").exists()], Validation_1.checkErrors, (0, redis_1.useCacheMiddleware)(expire), this.GetOneStop);
231
+ ], Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("GTFSRouter"), this.cacheHeaderMiddleware.getMiddleware(maxAge, staleWhileRevalidate), this.GetAllStops);
232
+ this.router.get("/stops/:id", [(0, express_validator_1.param)("id").exists()], Validation_1.checkErrors, this.cacheHeaderMiddleware.getMiddleware(maxAge, staleWhileRevalidate), this.GetOneStop);
231
233
  };
232
- this.initStopTimesEndpoints = (expire) => {
234
+ this.initStopTimesEndpoints = (maxAge, staleWhileRevalidate) => {
233
235
  this.router.get("/stoptimes/:stopId", this.stopTimesHandlers, Validation_1.pagination, (0, Validation_1.paginationLimitMiddleware)("GTFSRouter"), Validation_1.checkErrors, (req, res, next) => {
234
236
  if (req.query.from &&
235
237
  req.query.to &&
@@ -237,8 +239,9 @@ class GTFSRouter extends BaseRouter_1.BaseRouter {
237
239
  throw new golemio_errors_1.GeneralError("Validation error", "GTFSRouter", new Error("'to' cannot be later than 'from'"), 400);
238
240
  }
239
241
  return next();
240
- }, (0, redis_1.useCacheMiddleware)(expire), this.GetAllStopTimes);
242
+ }, this.cacheHeaderMiddleware.getMiddleware(maxAge, staleWhileRevalidate), this.GetAllStopTimes);
241
243
  };
244
+ this.cacheHeaderMiddleware = ioc_1.OutputGatewayContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
242
245
  this.tripModel = models_1.models.GTFSTripsModel;
243
246
  this.stopModel = models_1.models.GTFSStopModel;
244
247
  this.stopTimeModel = models_1.models.GTFSStopTimesModel;
@@ -1 +1 @@
1
- {"version":3,"file":"GTFSRouter.js","sourceRoot":"","sources":["../../../src/output-gateway/ropid-gtfs/GTFSRouter.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;AAEH,6EAAwE;AACxE,+DAA4F;AAC5F,mFAAkF;AAClF,gGAA+D;AAC/D,+DAAyE;AACzE,mEAA6E;AAC7E,oFAAiF;AACjF,6EAAkH;AAClH,qCAAkC;AAOlC,gFAA8E;AAE9E,MAAa,UAAW,SAAQ,uBAAU;IA+BtC;QACI,KAAK,EAAE,CAAC;QA/BZ,iDAAiD;QAC1C,WAAM,GAAW,IAAA,gBAAM,GAAE,CAAC;QASjC,wDAAwD;QAChD,cAAS,GAAG,+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AO,CAAC,IAAA,yBAAM,EAAC,GAAG,CAAC,KAAK,CAAC,EAAY,EAAE,SAAS,CAAC,CAAC,EAChG;oBACE,MAAM,IAAI,6BAAY,CAAC,kBAAkB,EAAE,YAAY,EAAE,IAAI,KAAK,CAAC,kCAAkC,CAAC,EAAE,GAAG,CAAC,CAAC;iBAChH;gBACD,OAAO,IAAI,EAAE,CAAC;YAClB,CAAC,EACD,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACtE,IAAI,CAAC,eAAe,CACvB,CAAC;QACN,CAAC,CAAC;QA1RE,IAAI,CAAC,qBAAqB,GAAG,4BAAsB,CAAC,OAAO,CAAwB,oBAAc,CAAC,qBAAqB,CAAC,CAAC;QACzH,IAAI,CAAC,SAAS,GAAG,eAAM,CAAC,cAAc,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,eAAM,CAAC,aAAa,CAAC;QACtC,IAAI,CAAC,aAAa,GAAG,eAAM,CAAC,kBAAkB,CAAC;QAC/C,IAAI,CAAC,UAAU,GAAG,eAAM,CAAC,eAAe,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,eAAM,CAAC,eAAe,CAAC;QACzC,IAAI,CAAC,YAAY,GAAG,eAAM,CAAC,iBAAiB,CAAC;QAC7C,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CAmRJ;AA7TD,gCA6TC;AAED,MAAM,UAAU,GAAW,IAAI,UAAU,EAAE,CAAC,MAAM,CAAC;AAE1C,gCAAU"}
@@ -0,0 +1,8 @@
1
+ import { AbstractBasicRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractBasicRepository";
2
+ import { ModelStatic } from "@golemio/core/dist/shared/sequelize";
3
+ export declare class GtfsTripScheduleRepository extends AbstractBasicRepository {
4
+ schema: string;
5
+ tableName: any;
6
+ sequelizeModel: ModelStatic<any>;
7
+ constructor();
8
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GtfsTripScheduleRepository = void 0;
4
+ const const_1 = require("../../../schema-definitions/const");
5
+ const ropid_gtfs_1 = require("../../../schema-definitions/ropid-gtfs");
6
+ const AbstractBasicRepository_1 = require("@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractBasicRepository");
7
+ const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
8
+ const Di_1 = require("@golemio/core/dist/output-gateway/ioc/Di");
9
+ class GtfsTripScheduleRepository extends AbstractBasicRepository_1.AbstractBasicRepository {
10
+ constructor() {
11
+ const connector = Di_1.OutputGatewayContainer.resolve(CoreToken_1.CoreToken.PostgresConnector);
12
+ const logger = Di_1.OutputGatewayContainer.resolve(CoreToken_1.CoreToken.Logger);
13
+ super(connector, logger);
14
+ this.schema = const_1.PG_SCHEMA;
15
+ this.tableName = ropid_gtfs_1.RopidGTFS.tripSchedule.pgTableName;
16
+ this.sequelizeModel = connector
17
+ .getConnection()
18
+ .define(this.tableName, ropid_gtfs_1.RopidGTFS.tripSchedule.outputSequelizeAttributes, { schema: this.schema });
19
+ }
20
+ }
21
+ exports.GtfsTripScheduleRepository = GtfsTripScheduleRepository;
22
+ //# sourceMappingURL=GtfsTripScheduleRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GtfsTripScheduleRepository.js","sourceRoot":"","sources":["../../../../src/output-gateway/ropid-gtfs/data-access/GtfsTripScheduleRepository.ts"],"names":[],"mappings":";;;AAAA,6DAAuC;AACvC,uEAA4C;AAG5C,kIAA+H;AAC/H,wEAAqE;AACrE,iEAAkF;AAGlF,MAAa,0BAA2B,SAAQ,iDAAuB;IAKnE;QACI,MAAM,SAAS,GAAG,2BAAsB,CAAC,OAAO,CAAqB,qBAAS,CAAC,iBAAiB,CAAC,CAAC;QAClG,MAAM,MAAM,GAAG,2BAAsB,CAAC,OAAO,CAAU,qBAAS,CAAC,MAAM,CAAC,CAAC;QACzE,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAPtB,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,sBAAS,CAAC,YAAY,CAAC,WAAW,CAAC;QAQlD,IAAI,CAAC,cAAc,GAAG,SAAS;aAC1B,aAAa,EAAE;aACf,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,sBAAS,CAAC,YAAY,CAAC,yBAAyB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3G,CAAC;CACJ;AAdD,gEAcC"}
@@ -83,7 +83,8 @@ class GTFSStopTimesModel extends output_gateway_1.SequelizeModel {
83
83
  try {
84
84
  return yield this.sequelizeModel.findAll({
85
85
  attributes: {
86
- exclude: ["computed_dwell_time_seconds"],
86
+ // Exclude computed fields from the response
87
+ exclude: ["computed_dwell_time_seconds", "arrival_time_seconds", "departure_time_seconds", "timepoint"],
87
88
  },
88
89
  include,
89
90
  limit,
@@ -1 +1 @@
1
- {"version":3,"file":"GTFSStopTimesModel.js","sourceRoot":"","sources":["../../../../src/output-gateway/ropid-gtfs/models/GTFSStopTimesModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAAuC;AACvC,uEAA4C;AAC5C,6FAAmE;AACnE,sEAAmE;AACnE,6EAAoF;AACpF,oFAA6E;AAG7E,gEAAgG;AAEhG,MAAa,kBAAmB,SAAQ,+BAAc;IAElD;QACI,KAAK,CAAC,sBAAS,CAAC,UAAU,CAAC,IAAI,EAAE,sBAAS,CAAC,UAAU,CAAC,WAAW,EAAE,2BAAY,CAAC,cAAc,EAAE;YAC5F,MAAM,EAAE,iBAAS;SACpB,CAAC,CAAC;QAIA,cAAS,GAAG,CAAC,MAAmB,EAAE,EAAE;YACvC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,cAAc,EAAE;gBAChE,UAAU,EAAE,SAAS;aACxB,CAAC,CAAC;YAEH,IAAI,CAAC,cAAc,CAAC,SAAS,CA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EAAE,KAAK,CAAC;qBAC5B;oBACD,KAAK;iBACR,CAAC,CAAC;aACN;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aAC5E;QACL,CAAC,CAAA,CAAC;QAEK,WAAM,GAAG,CAAC,EAAO,EAAgB,EAAE;YACtC,MAAM,IAAI,2BAAU,CAAC,wBAAwB,CAAC,CAAC;QACnD,CAAC,CAAC;QA/FE,IAAI,CAAC,WAAW,GAAG,4BAAsB,CAAC,OAAO,CAAqB,oBAAc,CAAC,gBAAgB,CAAC,CAAC;IAC3G,CAAC;;AAPL,gDA2GC;AAJkB,wCAAqB,GAAG,CAAC,IAAY,EAAE,QAAqB,EAA2B,EAAE;IACpG,oCAAoC;IACpC,OAAO,mBAAS,CAAC,OAAO,CAAC,IAAI,IAAI,WAAW,QAAQ,uCAAuC,CAAC,CAAC;AACjG,CAAC,AAHmC,CAGlC"}
@@ -1,6 +1,9 @@
1
+ import { ITripWithOptionalAssociationsDto } from "../../../schema-definitions/ropid-gtfs/interfaces/ITripWithOptionalAssociationsDto";
1
2
  import { SequelizeModel } from "@golemio/core/dist/output-gateway/models";
3
+ import Sequelize from "@golemio/core/dist/shared/sequelize";
2
4
  export declare class GTFSTripsModel extends SequelizeModel {
3
5
  private dbConnector;
6
+ private tripScheduleRepository;
4
7
  constructor();
5
8
  Associate: (models: any) => void;
6
9
  /** Retrieves all gtfs trips
@@ -37,6 +40,10 @@ export declare class GTFSTripsModel extends SequelizeModel {
37
40
  stopTimes?: boolean;
38
41
  date?: string;
39
42
  }) => Promise<object>;
43
+ getOneForPublicGtfsLookup: (id: string, options?: {
44
+ shouldIncludeStopTimes?: boolean;
45
+ shouldIncludeShapes?: boolean;
46
+ }) => Promise<ITripWithOptionalAssociationsDto | null>;
40
47
  /** Prepare ORM query with selected params
41
48
  * @param {object} options Options object with params
42
49
  * @param {boolean} [options.route] Enhance response with route data
@@ -54,7 +61,8 @@ export declare class GTFSTripsModel extends SequelizeModel {
54
61
  stops?: boolean;
55
62
  stopTimes?: boolean;
56
63
  date?: string;
57
- }) => any;
64
+ }) => Sequelize.Includeable[];
65
+ private getInclusionsForPublicGtfsLookup;
58
66
  /**
59
67
  * Convert a single db result to proper output format with all its included sub-elements
60
68
  * @param {object} trip Trip object