@golemio/pid 5.11.0 → 5.11.1-dev.2517197535
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db/example/00_clear_test_data.sql +2 -1
- package/db/example/23_presets_routes_test_data.sql +10 -0
- package/db/migrations/postgresql/20260504000000-add-off-track-to-future-stop-times.js +53 -0
- package/db/migrations/postgresql/20260506163840-create-presets-routes-table.js +49 -0
- package/db/migrations/postgresql/sqls/20260504000000-add-off-track-to-future-stop-times-down.sql +92 -0
- package/db/migrations/postgresql/sqls/20260504000000-add-off-track-to-future-stop-times-up.sql +97 -0
- package/db/migrations/postgresql/sqls/20260506163840-create-presets-routes-table-down.sql +1 -0
- package/db/migrations/postgresql/sqls/20260506163840-create-presets-routes-table-up.sql +11 -0
- package/dist/integration-engine/jis/repositories/JISInfotextsPresetsRepository.d.ts +10 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsPresetsRepository.js +16 -6
- package/dist/integration-engine/jis/repositories/JISInfotextsPresetsRepository.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +3 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +15 -2
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.d.ts +6 -15
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js +12 -20
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js.map +1 -1
- package/dist/integration-engine/jis/repositories/RopidDeparturesPresetsRoutesRepository.d.ts +19 -0
- package/dist/integration-engine/jis/repositories/RopidDeparturesPresetsRoutesRepository.js +107 -0
- package/dist/integration-engine/jis/repositories/RopidDeparturesPresetsRoutesRepository.js.map +1 -0
- package/dist/integration-engine/jis/services/JISInfotextsDataService.d.ts +2 -5
- package/dist/integration-engine/jis/services/JISInfotextsDataService.js +2 -5
- package/dist/integration-engine/jis/services/JISInfotextsDataService.js.map +1 -1
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js +2 -2
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.d.ts +5 -1
- package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.js +17 -5
- package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js +9 -5
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +2 -0
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +2 -0
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RemapPresetsToGtfsStopsTask.d.ts +9 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RemapPresetsToGtfsStopsTask.js +39 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RemapPresetsToGtfsStopsTask.js.map +1 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +1 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/BasePositionsManager.js +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/BasePositionsManager.js.map +1 -1
- package/dist/output-gateway/pid/data-access/RopidDeparturesPresetRepository.d.ts +3 -1
- package/dist/output-gateway/pid/data-access/RopidDeparturesPresetRepository.js +25 -9
- package/dist/output-gateway/pid/data-access/RopidDeparturesPresetRepository.js.map +1 -1
- package/dist/output-gateway/pid/data-access/RopidDeparturesPresetsRoutesRepository.d.ts +13 -0
- package/dist/output-gateway/pid/data-access/RopidDeparturesPresetsRoutesRepository.js +40 -0
- package/dist/output-gateway/pid/data-access/RopidDeparturesPresetsRoutesRepository.js.map +1 -0
- package/dist/output-gateway/pid/domain/DeparturesPresetInterfaces.d.ts +9 -0
- package/dist/output-gateway/pid/ioc/Di.js +2 -0
- package/dist/output-gateway/pid/ioc/Di.js.map +1 -1
- package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +1 -0
- package/dist/output-gateway/pid/ioc/OgPidToken.js +1 -0
- package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -1
- package/dist/output-gateway/pid/service/transformations/RopidDeparturesPresetTransformation.js +13 -0
- package/dist/output-gateway/pid/service/transformations/RopidDeparturesPresetTransformation.js.map +1 -1
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js +2 -2
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js.map +1 -1
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.d.ts +1 -3
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextPreset.d.ts +3 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextPreset.js +3 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextPreset.js.map +1 -0
- package/dist/schema-definitions/jis/datasources/interfaces/index.d.ts +1 -0
- package/dist/schema-definitions/jis/datasources/interfaces/index.js +1 -0
- package/dist/schema-definitions/jis/datasources/interfaces/index.js.map +1 -1
- package/dist/schema-definitions/jis/models/JISInfotextsModel.d.ts +2 -0
- package/dist/schema-definitions/jis/models/JISInfotextsModel.js.map +1 -1
- package/dist/schema-definitions/jis/models/RopidDeparturesPresetsRoutesModel.d.ts +15 -0
- package/dist/schema-definitions/jis/models/RopidDeparturesPresetsRoutesModel.js +57 -0
- package/dist/schema-definitions/jis/models/RopidDeparturesPresetsRoutesModel.js.map +1 -0
- package/dist/schema-definitions/jis/models/interfaces/IPresetsRoutes.d.ts +7 -0
- package/dist/schema-definitions/jis/models/interfaces/IPresetsRoutes.js +3 -0
- package/dist/schema-definitions/jis/models/interfaces/IPresetsRoutes.js.map +1 -0
- package/dist/schema-definitions/jis/models/interfaces/index.d.ts +1 -0
- package/dist/schema-definitions/jis/models/interfaces/index.js +1 -0
- package/dist/schema-definitions/jis/models/interfaces/index.js.map +1 -1
- package/dist/schema-definitions/ropid-departures-presets/RopidDeparturesPresetsOutputSchemas.d.ts +1 -0
- package/dist/schema-definitions/ropid-departures-presets/RopidDeparturesPresetsOutputSchemas.js +1 -0
- package/dist/schema-definitions/ropid-departures-presets/RopidDeparturesPresetsOutputSchemas.js.map +1 -1
- package/dist/schema-definitions/ropid-departures-presets/index.d.ts +1 -0
- package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.d.ts +2 -0
- package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.js.map +1 -1
- package/docs/asyncapi.yaml +16 -5
- package/docs/implementation_documentation.md +21 -0
- package/docs/openapi-input.yaml +14 -3
- package/docs/openapi-output.yaml +19 -0
- package/package.json +7 -7
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
+
import { CreationOptional, InferAttributes, InferCreationAttributes, Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
+
import { IRopidDeparturesPresetsRoutes } from "./interfaces/IPresetsRoutes";
|
|
4
|
+
export declare class RopidDeparturesPresetsRoutesModel extends Model<InferAttributes<RopidDeparturesPresetsRoutesModel>, InferCreationAttributes<RopidDeparturesPresetsRoutesModel>> implements IRopidDeparturesPresetsRoutes {
|
|
5
|
+
static tableName: string;
|
|
6
|
+
preset_id: number;
|
|
7
|
+
stop_id: string;
|
|
8
|
+
route_id: string;
|
|
9
|
+
route_type: number;
|
|
10
|
+
route_short_name: string;
|
|
11
|
+
created_at: CreationOptional<Date>;
|
|
12
|
+
updated_at: CreationOptional<Date>;
|
|
13
|
+
static attributeModel: ModelAttributes<RopidDeparturesPresetsRoutesModel>;
|
|
14
|
+
static jsonSchema: JSONSchemaType<IRopidDeparturesPresetsRoutes[]>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RopidDeparturesPresetsRoutesModel = void 0;
|
|
4
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
+
class RopidDeparturesPresetsRoutesModel extends sequelize_1.Model {
|
|
6
|
+
}
|
|
7
|
+
exports.RopidDeparturesPresetsRoutesModel = RopidDeparturesPresetsRoutesModel;
|
|
8
|
+
RopidDeparturesPresetsRoutesModel.tableName = "ropid_departures_presets_routes";
|
|
9
|
+
RopidDeparturesPresetsRoutesModel.attributeModel = {
|
|
10
|
+
preset_id: {
|
|
11
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
12
|
+
primaryKey: true,
|
|
13
|
+
allowNull: false,
|
|
14
|
+
},
|
|
15
|
+
stop_id: {
|
|
16
|
+
type: sequelize_1.DataTypes.STRING(50),
|
|
17
|
+
primaryKey: true,
|
|
18
|
+
allowNull: false,
|
|
19
|
+
},
|
|
20
|
+
route_id: {
|
|
21
|
+
type: sequelize_1.DataTypes.STRING(50),
|
|
22
|
+
primaryKey: true,
|
|
23
|
+
allowNull: false,
|
|
24
|
+
},
|
|
25
|
+
route_type: {
|
|
26
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
27
|
+
allowNull: false,
|
|
28
|
+
},
|
|
29
|
+
route_short_name: {
|
|
30
|
+
type: sequelize_1.DataTypes.STRING(50),
|
|
31
|
+
allowNull: false,
|
|
32
|
+
},
|
|
33
|
+
created_at: {
|
|
34
|
+
type: sequelize_1.DataTypes.DATE,
|
|
35
|
+
allowNull: false,
|
|
36
|
+
},
|
|
37
|
+
updated_at: {
|
|
38
|
+
type: sequelize_1.DataTypes.DATE,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
RopidDeparturesPresetsRoutesModel.jsonSchema = {
|
|
43
|
+
type: "array",
|
|
44
|
+
items: {
|
|
45
|
+
type: "object",
|
|
46
|
+
properties: {
|
|
47
|
+
preset_id: { type: "number" },
|
|
48
|
+
stop_id: { type: "string" },
|
|
49
|
+
route_id: { type: "string" },
|
|
50
|
+
route_type: { type: "number" },
|
|
51
|
+
route_short_name: { type: "string" },
|
|
52
|
+
},
|
|
53
|
+
additionalProperties: false,
|
|
54
|
+
required: ["preset_id", "stop_id", "route_id", "route_type", "route_short_name"],
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=RopidDeparturesPresetsRoutesModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RopidDeparturesPresetsRoutesModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/models/RopidDeparturesPresetsRoutesModel.ts"],"names":[],"mappings":";;;AACA,mEAO6C;AAG7C,MAAa,iCACT,SAAQ,iBAAqH;;AADjI,8EA+DC;AA3DiB,2CAAS,GAAG,iCAAiC,CAAC;AAU9C,gDAAc,GAAuD;IAC/E,SAAS,EAAE;QACP,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;KACnB;IACD,OAAO,EAAE;QACL,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1B,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;KACnB;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1B,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,QAAQ;QACxB,SAAS,EAAE,KAAK;KACnB;IACD,gBAAgB,EAAE;QACd,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,4CAAU,GAAoD;IACxE,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;YAC3B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC9B,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACvC;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,kBAAkB,CAAC;KACnF;CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPresetsRoutes.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/models/interfaces/IPresetsRoutes.ts"],"names":[],"mappings":""}
|
|
@@ -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"}
|
package/dist/schema-definitions/ropid-departures-presets/RopidDeparturesPresetsOutputSchemas.js.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RopidDeparturesPresetsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.ts"],"names":[],"mappings":";;;AACA,mEAO6C;
|
|
1
|
+
{"version":3,"file":"RopidDeparturesPresetsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.ts"],"names":[],"mappings":";;;AACA,mEAO6C;AAK7C,MAAa,2BACT,SAAQ,iBAAyG;;AADrH,kEAmEC;AA/DiB,qCAAS,GAAG,0BAA0B,CAAC;AAevC,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"}
|
package/docs/asyncapi.yaml
CHANGED
|
@@ -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
|
-
|
|
1970
|
+
id:
|
|
1969
1971
|
type: string
|
|
1970
1972
|
description: Unique identifier for the stop
|
|
1971
1973
|
required:
|
|
1972
|
-
-
|
|
1973
|
-
|
|
1974
|
-
|
|
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
|
|
@@ -544,6 +544,9 @@ Všechny tabulky se nachází ve schématu `pid`
|
|
|
544
544
|
- název: vehicle-positions.ropidgtfs.refreshPrecomputedTables
|
|
545
545
|
- název: vehicle-positions.ropidgtfs.refreshPublicGtfsDepartureCache
|
|
546
546
|
- název: vehicle-positions.vehiclepositions.refreshGTFSTripData
|
|
547
|
+
- název: vehicle-positions.ropidgtfs.refreshGtfsStopsCache
|
|
548
|
+
- název: vehicle-positions.ropidgtfs.refreshGtfsTripStopsCache
|
|
549
|
+
- název: vehicle-positions.ropidgtfs.remapPresetsToGtfsStops
|
|
547
550
|
- datové zdroje
|
|
548
551
|
- ROPID FTP
|
|
549
552
|
- transformace
|
|
@@ -636,6 +639,24 @@ Task se stará o aktualizaci statickych dat. Pouští se po dokončení načten
|
|
|
636
639
|
```
|
|
637
640
|
`road` pokrývá autobusy i trolejbusy (evidenční čísla se mohou překrývat s tramvajemi, proto jsou oddělena). `routeIds` je whitelist číselných identifikátorů náhradních nebo dočasných linek (např. náhradní autobus za metro při výluce nebo mimořádné události), které se mají zobrazovat i bez platného JŘ spoje.
|
|
638
641
|
|
|
642
|
+
#### task _RemapPresetsToGtfsStopsTask_
|
|
643
|
+
|
|
644
|
+
Task přemapuje departure presety na aktuální GTFS zastávky a uloží výsledek do databáze. Pouští se automaticky po každém načtení nových GTFS dat.
|
|
645
|
+
|
|
646
|
+
- vstupní rabbitmq fronta
|
|
647
|
+
- název: vehicle-positions.ropidgtfs.remapPresetsToGtfsStops
|
|
648
|
+
- TTL: 59 minut
|
|
649
|
+
- parametry: žádné
|
|
650
|
+
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
651
|
+
- žádné
|
|
652
|
+
- datové zdroje
|
|
653
|
+
- žádné
|
|
654
|
+
- transformace
|
|
655
|
+
- žádné
|
|
656
|
+
- data modely
|
|
657
|
+
- RopidDeparturesPresetsModel `ropid_departures_presets`
|
|
658
|
+
- RopidDeparturesPresetsRopidGTFSStopsModel `ropid_departures_presets_ropidgtfs_stops`
|
|
659
|
+
|
|
639
660
|
#### task _EnsureCacheTask_
|
|
640
661
|
|
|
641
662
|
Task slouží jako ruční spouštěč obnovení všech cache. Nespouští se automaticky – pouze manuálním odesláním zprávy do fronty.
|
package/docs/openapi-input.yaml
CHANGED
|
@@ -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
|
-
|
|
801
|
-
|
|
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:
|
package/docs/openapi-output.yaml
CHANGED
|
@@ -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.11.
|
|
3
|
+
"version": "5.11.1-dev.2517197535",
|
|
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": ">=
|
|
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": "^
|
|
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": "^
|
|
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": "
|
|
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 || ^
|
|
81
|
+
"@golemio/core": "^3.0.1-dev.2 || ^3.0.0 || ^3.1.0-dev.2"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@golemio/ovapi-gtfs-realtime-bindings": "1.4.0",
|