@golemio/pid 3.9.4-dev.1714786001 → 3.9.4-dev.1732067049
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/21_ropid_departures_presets_ropidgtfs_stops.sql +6 -0
- package/db/migrations/postgresql/20250312125125-create-presets-ropidgtfs-stops-table.js +53 -0
- package/db/migrations/postgresql/sqls/20250312125125-create-presets-ropidgtfs-stops-table-down.sql +1 -0
- package/db/migrations/postgresql/sqls/20250312125125-create-presets-ropidgtfs-stops-table-up.sql +7 -0
- package/dist/helpers/DateTimeUtils.d.ts +17 -0
- package/dist/helpers/DateTimeUtils.js +18 -10
- package/dist/helpers/DateTimeUtils.js.map +1 -1
- package/dist/helpers/GtfsStopParser.d.ts +6 -0
- package/dist/helpers/GtfsStopParser.js +44 -0
- package/dist/helpers/GtfsStopParser.js.map +1 -0
- package/dist/integration-engine/jis/repositories/RopidDeparturesPresetsRopidGTFSStopsRepository.d.ts +13 -0
- package/dist/integration-engine/jis/repositories/RopidDeparturesPresetsRopidGTFSStopsRepository.js +39 -0
- package/dist/integration-engine/jis/repositories/RopidDeparturesPresetsRopidGTFSStopsRepository.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/data-access/DeparturePresetsRepository.d.ts +2 -0
- package/dist/integration-engine/ropid-gtfs/data-access/DeparturePresetsRepository.js +15 -6
- package/dist/integration-engine/ropid-gtfs/data-access/DeparturePresetsRepository.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.d.ts +8 -1
- package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.js +39 -5
- package/dist/integration-engine/ropid-gtfs/facade/DeparturePresetsFacade.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js +6 -0
- 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/presets/tasks/DownloadDeparturesPresetsTask.js.map +1 -1
- package/dist/output-gateway/pid/controllers/v3/V3DeparturesPresetController.d.ts +8 -0
- package/dist/output-gateway/pid/controllers/v3/V3DeparturesPresetController.js +44 -0
- package/dist/output-gateway/pid/controllers/v3/V3DeparturesPresetController.js.map +1 -0
- package/dist/output-gateway/pid/data-access/RopidDeparturesPresetRepository.d.ts +14 -0
- package/dist/output-gateway/pid/data-access/RopidDeparturesPresetRepository.js +82 -0
- package/dist/output-gateway/pid/data-access/RopidDeparturesPresetRepository.js.map +1 -0
- package/dist/output-gateway/pid/data-access/RopidDeparturesPresetsRopidGTFSStopsRepository.d.ts +13 -0
- package/dist/output-gateway/pid/data-access/RopidDeparturesPresetsRopidGTFSStopsRepository.js +39 -0
- package/dist/output-gateway/pid/data-access/RopidDeparturesPresetsRopidGTFSStopsRepository.js.map +1 -0
- package/dist/output-gateway/pid/domain/DeparturesPresetInterfaces.d.ts +6 -0
- package/dist/output-gateway/pid/domain/DeparturesPresetInterfaces.js +3 -0
- package/dist/output-gateway/pid/domain/DeparturesPresetInterfaces.js.map +1 -0
- package/dist/output-gateway/pid/ioc/Di.js +12 -0
- package/dist/output-gateway/pid/ioc/Di.js.map +1 -1
- package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +6 -0
- package/dist/output-gateway/pid/ioc/OgPidToken.js +6 -0
- package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -1
- package/dist/output-gateway/pid/routers/v3/V3PIDRouter.d.ts +1 -0
- package/dist/output-gateway/pid/routers/v3/V3PIDRouter.js +4 -0
- package/dist/output-gateway/pid/routers/v3/V3PIDRouter.js.map +1 -1
- package/dist/output-gateway/pid/service/facade/RopidDeparturesPresetFacade.d.ts +9 -0
- package/dist/output-gateway/pid/service/facade/RopidDeparturesPresetFacade.js +37 -0
- package/dist/output-gateway/pid/service/facade/RopidDeparturesPresetFacade.js.map +1 -0
- package/dist/output-gateway/pid/service/transformations/RopidDeparturesPresetTransformation.d.ts +7 -0
- package/dist/output-gateway/pid/service/transformations/RopidDeparturesPresetTransformation.js +30 -0
- package/dist/output-gateway/pid/service/transformations/RopidDeparturesPresetTransformation.js.map +1 -0
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/StopTimesTripScopeHandler.js +2 -1
- package/dist/output-gateway/public/service/helpers/trip-scope/strategy/StopTimesTripScopeHandler.js.map +1 -1
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPTripStopTimesTransformation.d.ts +8 -2
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPTripStopTimesTransformation.js +4 -3
- package/dist/output-gateway/public/service/transformations/scopes/PublicVPTripStopTimesTransformation.js.map +1 -1
- package/dist/output-gateway/ropid-gtfs/models/GTFSStopModel.d.ts +1 -3
- package/dist/output-gateway/ropid-gtfs/models/GTFSStopModel.js +4 -30
- package/dist/output-gateway/ropid-gtfs/models/GTFSStopModel.js.map +1 -1
- package/dist/schema-definitions/jis/models/RopidDeparturesPresetsRopidGTFSStopsModel.d.ts +12 -0
- package/dist/schema-definitions/jis/models/RopidDeparturesPresetsRopidGTFSStopsModel.js +41 -0
- package/dist/schema-definitions/jis/models/RopidDeparturesPresetsRopidGTFSStopsModel.js.map +1 -0
- package/dist/schema-definitions/jis/models/interfaces/IPresetsGtfsStops.d.ts +4 -0
- package/dist/schema-definitions/jis/models/interfaces/IPresetsGtfsStops.js +3 -0
- package/dist/schema-definitions/jis/models/interfaces/IPresetsGtfsStops.js.map +1 -0
- package/dist/schema-definitions/jis/models/interfaces/IPresetsRopidGTFSStops.d.ts +7 -0
- package/dist/schema-definitions/jis/models/interfaces/IPresetsRopidGTFSStops.js +3 -0
- package/dist/schema-definitions/jis/models/interfaces/IPresetsRopidGTFSStops.js.map +1 -0
- package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.d.ts +19 -0
- package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.js +64 -0
- package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.js.map +1 -0
- package/dist/schema-definitions/ropid-departures-presets/models/interfaces/IRopidDeparturesPresets.d.ts +9 -0
- package/dist/schema-definitions/ropid-departures-presets/models/interfaces/IRopidDeparturesPresets.js +3 -0
- package/dist/schema-definitions/ropid-departures-presets/models/interfaces/IRopidDeparturesPresets.js.map +1 -0
- package/docs/openapi-output.yaml +39 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GTFSStopModel.js","sourceRoot":"","sources":["../../../../src/output-gateway/ropid-gtfs/models/GTFSStopModel.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA0D;AAC1D,6DAAuC;AACvC,uEAA4C;AAC5C,mFAAyD;AAEzD,wEAAqE;AACrE,+DAK+C;AAC/C,+DAA+E;AAC/E,qEAA0E;AAC1E,6EAAwE;AACxE,
|
|
1
|
+
{"version":3,"file":"GTFSStopModel.js","sourceRoot":"","sources":["../../../../src/output-gateway/ropid-gtfs/models/GTFSStopModel.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA0D;AAC1D,6DAAuC;AACvC,uEAA4C;AAC5C,mFAAyD;AAEzD,wEAAqE;AACrE,+DAK+C;AAC/C,+DAA+E;AAC/E,qEAA0E;AAC1E,6EAAwE;AACxE,oFAA6G;AAG7G,yDAAoD;AACpD,yCAAgD;AAEhD,MAAa,aAAc,SAAQ,uBAAc;IAK7C;QACI,KAAK,CAAC,sBAAS,CAAC,KAAK,CAAC,IAAI,EAAE,sBAAS,CAAC,KAAK,CAAC,WAAW,EAAE,iBAAO,CAAC,cAAc,EAAE;YAC7E,MAAM,EAAE,iBAAS;SACpB,CAAC,CAAC;QAPU,qBAAgB,GAAoC,EAAE,CAAC;QAmCjE,cAAS,GAA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,EAAE,KAAK;aAClB,CAAC,CAAC;SACN;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,IAAI,6BAAY,CAAC,gBAAgB,EAAE,eAAe,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;SACvE;QAED,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAA,mCAA6B,EAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IACxG,CAAC;IAmDO,0BAA0B,CAAC,UAA8B;QAC7D,6CAA6C;QAC7C,yCAAyC;QACzC,iEAAiE;QACjE,0FAA0F;QAC1F,uCAAuC;QACvC,8CAA8C;QAC9C,MAAM,OAAO,GAAmB;YAC5B,EAAE,EAAE,YAAY;YAChB,KAAK,EAAE,IAAI,CAAC,cAAc;YAC1B,UAAU,EAAE,EAAE;YACd,EAAE,EAAE;gBACA,WAAW,EAAE;oBACT,CAAC,mBAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,mBAAS,CAAC,GAAG,CAAC,GAAG,sBAAS,CAAC,KAAK,CAAC,WAAW,cAAc,CAAC;iBACjF;aACJ;YACD,KAAK,EAAE,UAAU;SACpB,CAAC;QAEF,MAAM,KAAK,GAAuB;YAC9B,CAAC,mBAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;gBACf,UAAU;gBACV;oBACI,WAAW,EAAE,EAAE,CAAC,mBAAS,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE;iBAC3C;aACJ;SACJ,CAAC;QAEF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;CACJ;AAtPD,sCAsPC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
+
import { CreationOptional, InferAttributes, InferCreationAttributes, Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
+
import { IRopidDeparturesPresetsRopidGTFSStops } from "./interfaces/IPresetsGtfsStops";
|
|
4
|
+
export declare class RopidDeparturesPresetsRopidGTFSStopsModel extends Model<InferAttributes<RopidDeparturesPresetsRopidGTFSStopsModel>, InferCreationAttributes<RopidDeparturesPresetsRopidGTFSStopsModel>> implements IRopidDeparturesPresetsRopidGTFSStops {
|
|
5
|
+
static tableName: string;
|
|
6
|
+
preset_id: number;
|
|
7
|
+
stop_id: string;
|
|
8
|
+
created_at: CreationOptional<Date>;
|
|
9
|
+
updated_at: CreationOptional<Date>;
|
|
10
|
+
static attributeModel: ModelAttributes<RopidDeparturesPresetsRopidGTFSStopsModel>;
|
|
11
|
+
static jsonSchema: JSONSchemaType<IRopidDeparturesPresetsRopidGTFSStops[]>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RopidDeparturesPresetsRopidGTFSStopsModel = void 0;
|
|
4
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
+
class RopidDeparturesPresetsRopidGTFSStopsModel extends sequelize_1.Model {
|
|
6
|
+
}
|
|
7
|
+
exports.RopidDeparturesPresetsRopidGTFSStopsModel = RopidDeparturesPresetsRopidGTFSStopsModel;
|
|
8
|
+
RopidDeparturesPresetsRopidGTFSStopsModel.tableName = "ropid_departures_presets_ropidgtfs_stops";
|
|
9
|
+
RopidDeparturesPresetsRopidGTFSStopsModel.attributeModel = {
|
|
10
|
+
preset_id: {
|
|
11
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
12
|
+
primaryKey: true,
|
|
13
|
+
allowNull: false,
|
|
14
|
+
},
|
|
15
|
+
stop_id: {
|
|
16
|
+
primaryKey: true,
|
|
17
|
+
type: sequelize_1.DataTypes.STRING(50),
|
|
18
|
+
allowNull: false,
|
|
19
|
+
},
|
|
20
|
+
created_at: {
|
|
21
|
+
type: sequelize_1.DataTypes.DATE,
|
|
22
|
+
allowNull: false,
|
|
23
|
+
},
|
|
24
|
+
updated_at: {
|
|
25
|
+
type: sequelize_1.DataTypes.DATE,
|
|
26
|
+
allowNull: false,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
RopidDeparturesPresetsRopidGTFSStopsModel.jsonSchema = {
|
|
30
|
+
type: "array",
|
|
31
|
+
items: {
|
|
32
|
+
type: "object",
|
|
33
|
+
properties: {
|
|
34
|
+
preset_id: { type: "number" },
|
|
35
|
+
stop_id: { type: "string" },
|
|
36
|
+
},
|
|
37
|
+
additionalProperties: false,
|
|
38
|
+
required: ["preset_id", "stop_id"],
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=RopidDeparturesPresetsRopidGTFSStopsModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RopidDeparturesPresetsRopidGTFSStopsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/models/RopidDeparturesPresetsRopidGTFSStopsModel.ts"],"names":[],"mappings":";;;AACA,mEAO6C;AAG7C,MAAa,yCACT,SAAQ,iBAGP;;AAJL,8FA+CC;AAxCiB,mDAAS,GAAG,0CAA0C,CAAC;AAOvD,wDAAc,GAA+D;IACvF,SAAS,EAAE;QACP,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;KACnB;IACD,OAAO,EAAE;QACL,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1B,SAAS,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;CACJ,CAAC;AAEY,oDAAU,GAA4D;IAChF,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC9B;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC;KACrC;CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPresetsGtfsStops.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/models/interfaces/IPresetsGtfsStops.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPresetsRopidGTFSStops.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/models/interfaces/IPresetsRopidGTFSStops.ts"],"names":[],"mappings":""}
|
package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
+
import { CreationOptional, InferAttributes, InferCreationAttributes, Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
+
import { IRopidDeparturesPresets } from "./interfaces/IRopidDeparturesPresets";
|
|
4
|
+
import { StopDto } from "../../ropid-gtfs/models/StopDto";
|
|
5
|
+
export declare class RopidDeparturesPresetsModel extends Model<InferAttributes<RopidDeparturesPresetsModel>, InferCreationAttributes<RopidDeparturesPresetsModel>> implements IRopidDeparturesPresets {
|
|
6
|
+
static tableName: string;
|
|
7
|
+
id: number;
|
|
8
|
+
route_name: string;
|
|
9
|
+
api_version: number;
|
|
10
|
+
route: string;
|
|
11
|
+
url_query_params: string;
|
|
12
|
+
note: string;
|
|
13
|
+
is_testing: boolean;
|
|
14
|
+
created_at: CreationOptional<Date>;
|
|
15
|
+
updated_at: CreationOptional<Date>;
|
|
16
|
+
stops?: StopDto[];
|
|
17
|
+
static attributeModel: ModelAttributes<RopidDeparturesPresetsModel>;
|
|
18
|
+
static jsonSchema: JSONSchemaType<IRopidDeparturesPresets[]>;
|
|
19
|
+
}
|
package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RopidDeparturesPresetsModel = void 0;
|
|
4
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
+
class RopidDeparturesPresetsModel extends sequelize_1.Model {
|
|
6
|
+
}
|
|
7
|
+
exports.RopidDeparturesPresetsModel = RopidDeparturesPresetsModel;
|
|
8
|
+
RopidDeparturesPresetsModel.tableName = "ropid_departures_presets";
|
|
9
|
+
RopidDeparturesPresetsModel.attributeModel = {
|
|
10
|
+
id: {
|
|
11
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
12
|
+
primaryKey: true,
|
|
13
|
+
autoIncrement: true,
|
|
14
|
+
},
|
|
15
|
+
route_name: {
|
|
16
|
+
type: sequelize_1.DataTypes.STRING(100),
|
|
17
|
+
unique: true,
|
|
18
|
+
},
|
|
19
|
+
api_version: sequelize_1.DataTypes.SMALLINT,
|
|
20
|
+
route: sequelize_1.DataTypes.STRING(100),
|
|
21
|
+
url_query_params: sequelize_1.DataTypes.STRING(400),
|
|
22
|
+
note: sequelize_1.DataTypes.STRING(1000),
|
|
23
|
+
is_testing: sequelize_1.DataTypes.BOOLEAN,
|
|
24
|
+
created_at: {
|
|
25
|
+
type: sequelize_1.DataTypes.DATE,
|
|
26
|
+
allowNull: false,
|
|
27
|
+
},
|
|
28
|
+
updated_at: {
|
|
29
|
+
type: sequelize_1.DataTypes.DATE,
|
|
30
|
+
allowNull: false,
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
RopidDeparturesPresetsModel.jsonSchema = {
|
|
34
|
+
type: "array",
|
|
35
|
+
items: {
|
|
36
|
+
type: "object",
|
|
37
|
+
properties: {
|
|
38
|
+
id: {
|
|
39
|
+
type: "number",
|
|
40
|
+
},
|
|
41
|
+
route_name: {
|
|
42
|
+
type: "string",
|
|
43
|
+
},
|
|
44
|
+
api_version: {
|
|
45
|
+
type: "number",
|
|
46
|
+
},
|
|
47
|
+
route: {
|
|
48
|
+
type: "string",
|
|
49
|
+
},
|
|
50
|
+
url_query_params: {
|
|
51
|
+
type: "string",
|
|
52
|
+
},
|
|
53
|
+
note: {
|
|
54
|
+
type: "string",
|
|
55
|
+
},
|
|
56
|
+
is_testing: {
|
|
57
|
+
type: "boolean",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
required: ["route_name", "api_version", "route", "url_query_params", "note", "is_testing"],
|
|
61
|
+
additionalProperties: false,
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=RopidDeparturesPresetsModel.js.map
|
package/dist/schema-definitions/ropid-departures-presets/models/RopidDeparturesPresetsModel.js.map
ADDED
|
@@ -0,0 +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,kEA0EC;AAtEiB,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;IAC7B,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,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IRopidDeparturesPresets.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/ropid-departures-presets/models/interfaces/IRopidDeparturesPresets.ts"],"names":[],"mappings":""}
|
package/docs/openapi-output.yaml
CHANGED
|
@@ -33,6 +33,8 @@ tags:
|
|
|
33
33
|
|
|
34
34
|
- name: 🚏 PID Departure Boards (v3)
|
|
35
35
|
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" /> <img src="https://img.shields.io/badge/stability-experimental-orange" alt="golemioapi-stability-badge" />
|
|
36
|
+
- name: 🚏 PID Departure Boards (v3) - internal
|
|
37
|
+
description: Endpoints for internal use
|
|
36
38
|
|
|
37
39
|
- name: 🗓️ Public GTFS Static Lookup (v2)
|
|
38
40
|
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" />
|
|
@@ -1332,6 +1334,43 @@ paths:
|
|
|
1332
1334
|
$ref: "#/components/responses/UnauthorizedError"
|
|
1333
1335
|
"404":
|
|
1334
1336
|
description: Not found
|
|
1337
|
+
/v3/pid/departurepresets:
|
|
1338
|
+
get:
|
|
1339
|
+
summary: Get ROPID departures presets linked with gtfs stops
|
|
1340
|
+
tags:
|
|
1341
|
+
- 🚏 PID Departure Boards (v3) - internal
|
|
1342
|
+
|
|
1343
|
+
responses:
|
|
1344
|
+
200:
|
|
1345
|
+
|
|
1346
|
+
description: A list of ROPID departures presets linked with gtfs stops
|
|
1347
|
+
headers:
|
|
1348
|
+
Cache-Control:
|
|
1349
|
+
description: Cache control directive for caching proxies
|
|
1350
|
+
schema:
|
|
1351
|
+
type: string
|
|
1352
|
+
example: public, s-maxage=25, stale-while-revalidate=10
|
|
1353
|
+
content:
|
|
1354
|
+
application/json:
|
|
1355
|
+
schema:
|
|
1356
|
+
type: array
|
|
1357
|
+
items:
|
|
1358
|
+
type: object
|
|
1359
|
+
properties:
|
|
1360
|
+
note:
|
|
1361
|
+
type: string
|
|
1362
|
+
example: "Nádraží Klánovice vlaky"
|
|
1363
|
+
route_name:
|
|
1364
|
+
type: string
|
|
1365
|
+
example: "nadrazi-klanovice-vlaky-xxxx"
|
|
1366
|
+
is_testing:
|
|
1367
|
+
type: boolean
|
|
1368
|
+
example: false
|
|
1369
|
+
stops:
|
|
1370
|
+
type: array
|
|
1371
|
+
items:
|
|
1372
|
+
type: string
|
|
1373
|
+
example: ["U454Z301"]
|
|
1335
1374
|
|
|
1336
1375
|
/v2/public/gtfs/trips/{gtfsTripId}:
|
|
1337
1376
|
get:
|