@golemio/pid 5.12.0 → 5.12.1-dev.2542808115

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 (93) hide show
  1. package/db/example/00_clear_test_data.sql +2 -1
  2. package/db/example/23_presets_routes_test_data.sql +10 -0
  3. package/db/migrations/postgresql/20260504000000-add-off-track-to-future-stop-times.js +53 -0
  4. package/db/migrations/postgresql/20260506163840-create-presets-routes-table.js +49 -0
  5. package/db/migrations/postgresql/sqls/20260504000000-add-off-track-to-future-stop-times-down.sql +92 -0
  6. package/db/migrations/postgresql/sqls/20260504000000-add-off-track-to-future-stop-times-up.sql +97 -0
  7. package/db/migrations/postgresql/sqls/20260506163840-create-presets-routes-table-down.sql +1 -0
  8. package/db/migrations/postgresql/sqls/20260506163840-create-presets-routes-table-up.sql +11 -0
  9. package/dist/integration-engine/jis/repositories/JISInfotextsPresetsRepository.d.ts +10 -1
  10. package/dist/integration-engine/jis/repositories/JISInfotextsPresetsRepository.js +16 -6
  11. package/dist/integration-engine/jis/repositories/JISInfotextsPresetsRepository.js.map +1 -1
  12. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +3 -1
  13. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +15 -2
  14. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +1 -1
  15. package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.d.ts +6 -15
  16. package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js +12 -20
  17. package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js.map +1 -1
  18. package/dist/integration-engine/jis/repositories/RopidDeparturesPresetsRoutesRepository.d.ts +19 -0
  19. package/dist/integration-engine/jis/repositories/RopidDeparturesPresetsRoutesRepository.js +107 -0
  20. package/dist/integration-engine/jis/repositories/RopidDeparturesPresetsRoutesRepository.js.map +1 -0
  21. package/dist/integration-engine/jis/services/JISInfotextsDataService.d.ts +2 -5
  22. package/dist/integration-engine/jis/services/JISInfotextsDataService.js +2 -5
  23. package/dist/integration-engine/jis/services/JISInfotextsDataService.js.map +1 -1
  24. package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js +2 -2
  25. package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js.map +1 -1
  26. package/dist/integration-engine/ropid-gtfs/data-access/precomputed/DeparturesRepository.js +3 -0
  27. package/dist/integration-engine/ropid-gtfs/data-access/precomputed/DeparturesRepository.js.map +1 -1
  28. package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.d.ts +4 -1
  29. package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.js +12 -3
  30. package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.js.map +1 -1
  31. package/dist/integration-engine/ropid-gtfs/interfaces/IPublicDepartureDto.d.ts +3 -0
  32. package/dist/integration-engine/ropid-gtfs/ioc/Di.js +2 -0
  33. package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +1 -1
  34. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +1 -0
  35. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +1 -0
  36. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +1 -1
  37. package/dist/integration-engine/ropid-gtfs/transformations/PublicDepartureCacheTransformation.js +11 -0
  38. package/dist/integration-engine/ropid-gtfs/transformations/PublicDepartureCacheTransformation.js.map +1 -1
  39. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RemapPresetsToGtfsStopsTask.js +1 -0
  40. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RemapPresetsToGtfsStopsTask.js.map +1 -1
  41. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +1 -0
  42. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
  43. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/BasePositionsManager.js +1 -1
  44. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/BasePositionsManager.js.map +1 -1
  45. package/dist/output-gateway/pid/data-access/RopidDeparturesPresetRepository.d.ts +3 -1
  46. package/dist/output-gateway/pid/data-access/RopidDeparturesPresetRepository.js +25 -9
  47. package/dist/output-gateway/pid/data-access/RopidDeparturesPresetRepository.js.map +1 -1
  48. package/dist/output-gateway/pid/data-access/RopidDeparturesPresetsRoutesRepository.d.ts +13 -0
  49. package/dist/output-gateway/pid/data-access/RopidDeparturesPresetsRoutesRepository.js +40 -0
  50. package/dist/output-gateway/pid/data-access/RopidDeparturesPresetsRoutesRepository.js.map +1 -0
  51. package/dist/output-gateway/pid/domain/DeparturesPresetInterfaces.d.ts +9 -0
  52. package/dist/output-gateway/pid/ioc/Di.js +2 -0
  53. package/dist/output-gateway/pid/ioc/Di.js.map +1 -1
  54. package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +1 -0
  55. package/dist/output-gateway/pid/ioc/OgPidToken.js +1 -0
  56. package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -1
  57. package/dist/output-gateway/pid/service/transformations/RopidDeparturesPresetTransformation.js +13 -0
  58. package/dist/output-gateway/pid/service/transformations/RopidDeparturesPresetTransformation.js.map +1 -1
  59. package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js +2 -2
  60. package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js.map +1 -1
  61. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.d.ts +1 -3
  62. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextPreset.d.ts +3 -0
  63. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextPreset.js +3 -0
  64. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextPreset.js.map +1 -0
  65. package/dist/schema-definitions/jis/datasources/interfaces/index.d.ts +1 -0
  66. package/dist/schema-definitions/jis/datasources/interfaces/index.js +1 -0
  67. package/dist/schema-definitions/jis/datasources/interfaces/index.js.map +1 -1
  68. package/dist/schema-definitions/jis/models/JISInfotextsModel.d.ts +2 -0
  69. package/dist/schema-definitions/jis/models/JISInfotextsModel.js.map +1 -1
  70. package/dist/schema-definitions/jis/models/RopidDeparturesPresetsRoutesModel.d.ts +15 -0
  71. package/dist/schema-definitions/jis/models/RopidDeparturesPresetsRoutesModel.js +57 -0
  72. package/dist/schema-definitions/jis/models/RopidDeparturesPresetsRoutesModel.js.map +1 -0
  73. package/dist/schema-definitions/jis/models/interfaces/IPresetsRoutes.d.ts +7 -0
  74. package/dist/schema-definitions/jis/models/interfaces/IPresetsRoutes.js +3 -0
  75. package/dist/schema-definitions/jis/models/interfaces/IPresetsRoutes.js.map +1 -0
  76. package/dist/schema-definitions/jis/models/interfaces/index.d.ts +1 -0
  77. package/dist/schema-definitions/jis/models/interfaces/index.js +1 -0
  78. package/dist/schema-definitions/jis/models/interfaces/index.js.map +1 -1
  79. package/dist/schema-definitions/ropid-departures-presets/RopidDeparturesPresetsOutputSchemas.d.ts +1 -0
  80. package/dist/schema-definitions/ropid-departures-presets/RopidDeparturesPresetsOutputSchemas.js +1 -0
  81. package/dist/schema-definitions/ropid-departures-presets/RopidDeparturesPresetsOutputSchemas.js.map +1 -1
  82. package/dist/schema-definitions/ropid-departures-presets/index.d.ts +1 -0
  83. package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.d.ts +2 -0
  84. package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.js.map +1 -1
  85. package/dist/schema-definitions/ropid-gtfs/redis/interfaces/IPublicGtfsDepartureCacheDto.d.ts +5 -0
  86. package/dist/schema-definitions/ropid-gtfs/redis/schemas/PublicGtfsDepartureDtoSchema.js +10 -0
  87. package/dist/schema-definitions/ropid-gtfs/redis/schemas/PublicGtfsDepartureDtoSchema.js.map +1 -1
  88. package/docs/asyncapi.yaml +16 -5
  89. package/docs/cache/types/redis.md +4 -0
  90. package/docs/implementation_documentation.md +2 -2
  91. package/docs/openapi-input.yaml +14 -3
  92. package/docs/openapi-output.yaml +19 -0
  93. package/package.json +7 -7
@@ -0,0 +1,7 @@
1
+ export interface IRopidDeparturesPresetsRoutes {
2
+ preset_id: number;
3
+ stop_id: string;
4
+ route_id: string;
5
+ route_type: number;
6
+ route_short_name: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IPresetsRoutes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPresetsRoutes.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/models/interfaces/IPresetsRoutes.ts"],"names":[],"mappings":""}
@@ -4,3 +4,4 @@ export * from "./IJISInfotext";
4
4
  export * from "./IJISInfotextsPresets";
5
5
  export * from "./IJISInfotextsRopidGTFSStops";
6
6
  export * from "./IJISTranslationText";
7
+ export * from "./IPresetsRoutes";
@@ -20,4 +20,5 @@ __exportStar(require("./IJISInfotext"), exports);
20
20
  __exportStar(require("./IJISInfotextsPresets"), exports);
21
21
  __exportStar(require("./IJISInfotextsRopidGTFSStops"), exports);
22
22
  __exportStar(require("./IJISTranslationText"), exports);
23
+ __exportStar(require("./IPresetsRoutes"), exports);
23
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/models/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,8DAA4C;AAC5C,iDAA+B;AAC/B,yDAAuC;AACvC,gEAA8C;AAC9C,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/models/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,8DAA4C;AAC5C,iDAA+B;AAC/B,yDAAuC;AACvC,gEAA8C;AAC9C,wDAAsC;AACtC,mDAAiC"}
@@ -19,6 +19,7 @@ declare const outputPresetsJsonSchema: {
19
19
  type: string;
20
20
  };
21
21
  };
22
+ additionalProperties: boolean;
22
23
  };
23
24
  };
24
25
  export { outputPresetsJsonSchema };
@@ -22,6 +22,7 @@ const outputPresetsJsonSchema = {
22
22
  type: "string",
23
23
  },
24
24
  },
25
+ additionalProperties: true,
25
26
  },
26
27
  };
27
28
  exports.outputPresetsJsonSchema = outputPresetsJsonSchema;
@@ -1 +1 @@
1
- {"version":3,"file":"RopidDeparturesPresetsOutputSchemas.js","sourceRoot":"","sources":["../../../src/schema-definitions/ropid-departures-presets/RopidDeparturesPresetsOutputSchemas.ts"],"names":[],"mappings":";;;AAAA,MAAM,uBAAuB,GAAG;IAC5B,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,WAAW,EAAE;gBACT,IAAI,EAAE,SAAS;aAClB;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,gBAAgB,EAAE;gBACd,IAAI,EAAE,QAAQ;aACjB;YACD,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;CACJ,CAAC;AAEO,0DAAuB"}
1
+ {"version":3,"file":"RopidDeparturesPresetsOutputSchemas.js","sourceRoot":"","sources":["../../../src/schema-definitions/ropid-departures-presets/RopidDeparturesPresetsOutputSchemas.ts"],"names":[],"mappings":";;;AAAA,MAAM,uBAAuB,GAAG;IAC5B,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,WAAW,EAAE;gBACT,IAAI,EAAE,SAAS;aAClB;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,gBAAgB,EAAE;gBACd,IAAI,EAAE,QAAQ;aACjB;YACD,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;aACjB;SACJ;QACD,oBAAoB,EAAE,IAAI;KAC7B;CACJ,CAAC;AAEO,0DAAuB"}
@@ -38,6 +38,7 @@ declare const forExport: {
38
38
  type: string;
39
39
  };
40
40
  };
41
+ additionalProperties: boolean;
41
42
  };
42
43
  };
43
44
  outputSequelizeAttributes: import("sequelize/types/model").ModelAttributes<any, IRopidDeparturesPresetsOutput>;
@@ -1,6 +1,7 @@
1
1
  import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
2
2
  import { CreationOptional, InferAttributes, InferCreationAttributes, Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
3
3
  import { IRopidDeparturesPresets } from "./interfaces/IRopidDeparturesPresets";
4
+ import { RopidDeparturesPresetsRoutesModel } from "../../jis/models/RopidDeparturesPresetsRoutesModel";
4
5
  import { StopDto } from "../../ropid-gtfs/models/StopDto";
5
6
  export declare class RopidDeparturesPresetsModel extends Model<InferAttributes<RopidDeparturesPresetsModel>, InferCreationAttributes<RopidDeparturesPresetsModel>> implements IRopidDeparturesPresets {
6
7
  static tableName: string;
@@ -14,6 +15,7 @@ export declare class RopidDeparturesPresetsModel extends Model<InferAttributes<R
14
15
  created_at: CreationOptional<Date>;
15
16
  updated_at: CreationOptional<Date>;
16
17
  stops?: StopDto[];
18
+ stops_routes?: RopidDeparturesPresetsRoutesModel[];
17
19
  static attributeModel: ModelAttributes<RopidDeparturesPresetsModel>;
18
20
  static jsonSchema: JSONSchemaType<IRopidDeparturesPresets[]>;
19
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RopidDeparturesPresetsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.ts"],"names":[],"mappings":";;;AACA,mEAO6C;AAI7C,MAAa,2BACT,SAAQ,iBAAyG;;AADrH,kEAkEC;AA9DiB,qCAAS,GAAG,0BAA0B,CAAC;AAcvC,0CAAc,GAAiD;IACzE,EAAE,EAAE;QACA,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,IAAI;KACtB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;QAC3B,MAAM,EAAE,IAAI;KACf;IACD,WAAW,EAAE,qBAAS,CAAC,QAAQ;IAC/B,KAAK,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;IAC5B,gBAAgB,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;IACvC,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,IAAI,CAAC;IAC5B,UAAU,EAAE,qBAAS,CAAC,OAAO;CAChC,CAAC;AAEY,sCAAU,GAA8C;IAClE,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,EAAE,EAAE;gBACA,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;aACjB;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,gBAAgB,EAAE;gBACd,IAAI,EAAE,QAAQ;aACjB;YACD,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,SAAS;aAClB;SACJ;QACD,QAAQ,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,YAAY,CAAC;QAC1F,oBAAoB,EAAE,KAAK;KAC9B;CACJ,CAAC"}
1
+ {"version":3,"file":"RopidDeparturesPresetsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.ts"],"names":[],"mappings":";;;AACA,mEAO6C;AAK7C,MAAa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ible?: GtfsTripWheelchairAccessEnum | null;
19
19
  direction_id?: number | null;
20
+ flags?: {
21
+ night?: number;
22
+ reg?: number;
23
+ subst?: number;
24
+ };
20
25
  }
@@ -99,6 +99,16 @@ const publicGtfsDepartureDtoSchema = {
99
99
  },
100
100
  ],
101
101
  },
102
+ flags: {
103
+ type: "object",
104
+ nullable: true,
105
+ properties: {
106
+ night: { type: "number", nullable: true },
107
+ reg: { type: "number", nullable: true },
108
+ subst: { type: "number", nullable: true },
109
+ },
110
+ additionalProperties: false,
111
+ },
102
112
  },
103
113
  required: [
104
114
  "stop_id",
@@ -1 +1 @@
1
- {"version":3,"file":"PublicGtfsDepartureDtoSchema.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/ropid-gtfs/redis/schemas/PublicGtfsDepartureDtoSchema.ts"],"names":[],"mappings":";;;AAGA,MAAM,4BAA4B,GAAmD;IACjF,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,wBAAwB;IAC/B,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;aACjB;YACD,kBAAkB,EAAE;gBAChB,IAAI,EAAE,QAAQ;aACjB;YACD,gBAAgB,EAAE;gBACd,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,gBAAgB,EAAE;gBACd,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;aACjB;YACD,aAAa,EAAE;gBACX,IAAI,EAAE,QAAQ;aACjB;YACD,aAAa,EAAE;gBACX,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wB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AQ,EAAE;6BACnC;4BACD,oBAAoB,EAAE,KAAK;4BAC3B,QAAQ,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;yBAC7C;qBACJ;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,qBAAqB,EAAE;gBACnB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC;aACxB;YACD,YAAY,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,UAAU,EAAE;oBACR,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;oBACzC,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;oBACvC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;iBAC5C;gBACD,oBAAoB,EAAE,KAAK;aAC9B;SACJ;QACD,QAAQ,EAAE;YACN,SAAS;YACT,oBAAoB;YACpB,kBAAkB;YAClB,kBAAkB;YAClB,YAAY;YACZ,SAAS;YACT,eAAe;YACf,eAAe;YACf,eAAe;SAClB;KACJ;CACJ,CAAC;AACuC,oEAA4B"}
@@ -1959,19 +1959,31 @@ components:
1959
1959
  description: Localized descriptions of the infotext
1960
1960
  informed_entity:
1961
1961
  type: object
1962
+ nullable: true
1962
1963
  properties:
1963
1964
  stops:
1964
1965
  type: array
1966
+ nullable: true
1965
1967
  items:
1966
1968
  type: object
1967
1969
  properties:
1968
- stop_id:
1970
+ id:
1969
1971
  type: string
1970
1972
  description: Unique identifier for the stop
1971
1973
  required:
1972
- - stop_id
1973
- required:
1974
- - stops
1974
+ - id
1975
+ presets:
1976
+ type: array
1977
+ nullable: true
1978
+ description: Departure presets connected to this infotext (optional, migration period)
1979
+ items:
1980
+ type: object
1981
+ properties:
1982
+ route_name:
1983
+ type: string
1984
+ description: Route name of the departure preset (ropid_departures_presets.route_name)
1985
+ required:
1986
+ - route_name
1975
1987
  created_timestamp:
1976
1988
  type: string
1977
1989
  format: date-time
@@ -1986,6 +1998,5 @@ components:
1986
1998
  - display_type
1987
1999
  - active_period
1988
2000
  - description_text
1989
- - informed_entity
1990
2001
  - created_timestamp
1991
2002
  - last_modified_timestamp
@@ -312,6 +312,10 @@ flowchart TD
312
312
  - Přednačítá se z tabulky `ropidgtfs_precomputed_trip_connections` (původně z `transfers.txt` kde `transfer_type = 1`), JOIN na odjezdy přes `to_trip_id` a `to_stop_id`
313
313
  - `wheelchair_accessible` – přístupnost vozidla pro vozíčkáře z GTFS `trips.txt` (`0` = bez informace, `1` = přístupné, `2` = nepřístupné), nebo `null`
314
314
  - `direction_id` – směr jízdy z GTFS `trips.txt` (`0` nebo `1`), nebo `null`; využívá se při seskupování odjezdů podle směru a filtrování opačného směru v přestupních tabulích
315
+ - `flags` – nepovinný objekt s příznaky spoje, vyplněn pouze pokud má alespoň jeden z příznaků hodnotu `1` (zdroj `ropidgtfs_departures.is_night/is_regional/is_substitute_transport`); v objektu se objeví pouze pravdivé klíče:
316
+ - `night` (`1`) – noční spoj
317
+ - `reg` (`1`) – regionální spoj
318
+ - `subst` (`1`) – náhradní doprava
315
319
  - Existuje záznam pro každou zastávku v GTFS. Pokud v ní ale není žádný odjezd, je vyplněný pouze jeden prázdný member - detekce validní zastávky bez odjezdu
316
320
  - TTL 7 hodin
317
321
  - Retence dat aktivní, jednou za hodinu se smažou všechny odjezdy starší než 3 hodiny
@@ -1514,7 +1514,7 @@ Worker má na starost stahování VYMI (JIS) událostí a infotextů, jejich tra
1514
1514
  - `gtfsTripStopsCache:*` – předpočítaný seznam zastávek spoje (`[stop_id, stop_name][]`), používáno ve filtru směru linek (`findRelevantTripIdsFromLines`)
1515
1515
  - `gtfsDelayComputation:*` – predikovaný čas příjezdu vozidla na zastávku
1516
1516
  - `vpPublicCache:*` – aktuální poloha a zpoždění vozidla
1517
- - `gtfsPublicDepartureCache:*` – statické odjezdy ze zastávek (vč. `connections` a `wheelchair_accessible`)
1517
+ - `gtfsPublicDepartureCache:*` – statické odjezdy ze zastávek (vč. `connections`, `wheelchair_accessible` a volitelných `flags`)
1518
1518
  - `vpPublicStopTimeCache:*` – live zastávkové časy pro spoje se známou polohou (platform_code u vlaků)
1519
1519
  - `jisCache:*` – aktivní infotexty pro dané zastávky
1520
1520
  - načítání odjezdů z cache (`gtfsPublicDepartureCache`)
@@ -1558,7 +1558,7 @@ Worker má na starost stahování VYMI (JIS) událostí a infotextů, jejich tra
1558
1558
  - `gtfsStopsCache:*` – převod ASW node ID na GTFS stop_id
1559
1559
  - `gtfsDelayComputation:*` – zjištění zastávek spoje a predikovaného času příjezdu
1560
1560
  - `vpPublicCache:*` – aktuální poloha a zpoždění vozidla
1561
- - `gtfsPublicDepartureCache:*` – statické odjezdy ze zastávek (vč. `connections` a `wheelchair_accessible`)
1561
+ - `gtfsPublicDepartureCache:*` – statické odjezdy ze zastávek (vč. `connections`, `wheelchair_accessible` a volitelných `flags`)
1562
1562
  - `vpPublicStopTimeCache:*` – live zastávkové časy pro spoje se známou polohou
1563
1563
  - `jisCache:*` – aktivní infotexty pro dané zastávky
1564
1564
  - načítání odjezdů z cache (`gtfsPublicDepartureCache`)
@@ -786,9 +786,11 @@ components:
786
786
  description: Localized descriptions of the infotext
787
787
  informed_entity:
788
788
  type: object
789
+ nullable: true
789
790
  properties:
790
791
  stops:
791
792
  type: array
793
+ nullable: true
792
794
  items:
793
795
  type: object
794
796
  properties:
@@ -797,8 +799,18 @@ components:
797
799
  description: Unique identifier for the stop
798
800
  required:
799
801
  - id
800
- required:
801
- - stops
802
+ presets:
803
+ type: array
804
+ nullable: true
805
+ description: Departure presets connected to this infotext (optional, migration period)
806
+ items:
807
+ type: object
808
+ properties:
809
+ route_name:
810
+ type: string
811
+ description: Route name of the departure preset (ropid_departures_presets.route_name)
812
+ required:
813
+ - route_name
802
814
  created_timestamp:
803
815
  type: string
804
816
  format: date-time
@@ -813,7 +825,6 @@ components:
813
825
  - display_type
814
826
  - active_period
815
827
  - description_text
816
- - informed_entity
817
828
  - created_timestamp
818
829
  - last_modified_timestamp
819
830
  examples:
@@ -1291,6 +1291,25 @@ paths:
1291
1291
  items:
1292
1292
  type: string
1293
1293
  example: ["U454Z301"]
1294
+ stops_routes:
1295
+ type: array
1296
+ items:
1297
+ type: object
1298
+ properties:
1299
+ stop_id:
1300
+ type: string
1301
+ example: "U454Z301"
1302
+ routes:
1303
+ type: array
1304
+ items:
1305
+ type: object
1306
+ properties:
1307
+ type:
1308
+ type: integer
1309
+ example: 0
1310
+ name:
1311
+ type: string
1312
+ example: "S7"
1294
1313
 
1295
1314
  /v4/pid/transferboards:
1296
1315
  get:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/pid",
3
- "version": "5.12.0",
3
+ "version": "5.12.1-dev.2542808115",
4
4
  "description": "Golemio PID Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "url": "https://gitlab.com/operator-ict/golemio/code/modules/pid"
34
34
  },
35
35
  "engines": {
36
- "node": ">=20.0.0",
36
+ "node": ">=22.0.0",
37
37
  "npm": ">=8.0.0"
38
38
  },
39
39
  "devDependencies": {
@@ -41,14 +41,14 @@
41
41
  "@commitlint/cli": "^11.0.0",
42
42
  "@commitlint/config-conventional": "^11.0.0",
43
43
  "@golemio/cli": "1.11.2",
44
- "@golemio/core": "3.1.0",
44
+ "@golemio/core": "3.1.0-dev.2514160696",
45
45
  "@golemio/db-common": "1.2.2",
46
46
  "@golemio/eslint-config": "1.1.3",
47
47
  "@swc/core": "^1.15.10",
48
48
  "@types/chai": "4.2.3",
49
49
  "@types/chai-as-promised": "7.1.2",
50
50
  "@types/mocha": "^10.0.10",
51
- "@types/node": "^20.12.7",
51
+ "@types/node": "^22.19.18",
52
52
  "@types/pg-copy-streams": "^1.2.5",
53
53
  "@types/sinon": "^9.0.10",
54
54
  "@types/supertest": "^2.0.10",
@@ -61,7 +61,7 @@
61
61
  "dotenv": "^8.2.0",
62
62
  "eslint": "^8.1.1",
63
63
  "husky": "^4.3.7",
64
- "mocha": "^10.0.0",
64
+ "mocha": "^11.7.5",
65
65
  "npm-run-all": "^4.1.5",
66
66
  "nyc": "^17.1.0",
67
67
  "prettier": "^2.5.1",
@@ -73,12 +73,12 @@
73
73
  "ts-node": "^10.9.2",
74
74
  "ts-patch": "^3.3.0",
75
75
  "tsconfig-paths": "^4.2.0",
76
- "typedoc": "^0.28.14",
76
+ "typedoc": "0.28.19",
77
77
  "typescript": "^5.9.3",
78
78
  "typescript-transform-paths": "^3.5.5"
79
79
  },
80
80
  "peerDependencies": {
81
- "@golemio/core": "^3.0.1-dev.2 || ^3.0.0 || ^2.0.1"
81
+ "@golemio/core": "^3.0.7-dev.2 || ^3.1.0-dev.2 || ^3.0.0"
82
82
  },
83
83
  "dependencies": {
84
84
  "@golemio/ovapi-gtfs-realtime-bindings": "1.4.0",