"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RopidGTFS = void 0;
const ropid_departures_presets_1 = require("../ropid-departures-presets");
const RopidGTFSCisStopGroups_1 = require("./RopidGTFSCisStopGroups");
const RopidGTFSCisStops_1 = require("./RopidGTFSCisStops");
const RopidGTFSOisMapping_1 = require("./RopidGTFSOisMapping");
const RopidGTFSPrecomputed_1 = require("./RopidGTFSPrecomputed");
const RopidGTFSRunNumbers_1 = require("./RopidGTFSRunNumbers");
const sequelize_1 = __importDefault(require("@golemio/core/dist/shared/sequelize"));
const RopidGtfsSchedule_1 = require("./RopidGtfsSchedule");
// SDMA = Sequelize DefineModelAttributes
const outputTripsStopTimesViewSDMA = {
    bikes_allowed: sequelize_1.default.INTEGER,
    block_id: sequelize_1.default.STRING,
    direction_id: sequelize_1.default.INTEGER,
    exceptional: sequelize_1.default.INTEGER,
    route_id: sequelize_1.default.STRING,
    service_id: sequelize_1.default.STRING,
    shape_id: sequelize_1.default.STRING,
    trip_headsign: sequelize_1.default.STRING,
    trip_id: sequelize_1.default.STRING,
    wheelchair_accessible: sequelize_1.default.INTEGER,
    stop_times_arrival_time: sequelize_1.default.STRING,
    stop_times_arrival_time_seconds: sequelize_1.default.INTEGER,
    stop_times_departure_time: sequelize_1.default.STRING,
    stop_times_departure_time_seconds: sequelize_1.default.INTEGER,
    stop_times_shape_dist_traveled: sequelize_1.default.DOUBLE,
    stop_times_stop_id: sequelize_1.default.STRING,
    stop_times_stop_sequence: sequelize_1.default.INTEGER,
    stop_times_stop_headsign: sequelize_1.default.STRING,
    stop_times_trip_id: sequelize_1.default.STRING,
    stop_times_stop_stop_id: sequelize_1.default.STRING,
    stop_times_stop_stop_lat: sequelize_1.default.DOUBLE,
    stop_times_stop_stop_lon: sequelize_1.default.DOUBLE,
};
const outputTripsShapesViewSDMA = {
    bikes_allowed: sequelize_1.default.INTEGER,
    block_id: sequelize_1.default.STRING,
    direction_id: sequelize_1.default.INTEGER,
    exceptional: sequelize_1.default.INTEGER,
    route_id: sequelize_1.default.STRING,
    service_id: sequelize_1.default.STRING,
    shape_id: sequelize_1.default.STRING,
    trip_headsign: sequelize_1.default.STRING,
    trip_id: sequelize_1.default.STRING,
    wheelchair_accessible: sequelize_1.default.INTEGER,
    shapes_shape_dist_traveled: sequelize_1.default.DOUBLE,
    shapes_shape_id: sequelize_1.default.STRING,
    shapes_shape_pt_lat: sequelize_1.default.DOUBLE,
    shapes_shape_pt_lon: sequelize_1.default.DOUBLE,
    shapes_shape_pt_sequence: sequelize_1.default.INTEGER,
};
const forExport = {
    name: "RopidGTFS",
    ...RopidGtfsSchedule_1.RopidGTFSSchedule,
    ...RopidGTFSPrecomputed_1.RopidGTFSPrecomputed,
    metadata: {
        name: "RopidGTFSMetadata",
        pgTableName: "ropidgtfs_metadata",
    },
    tripsShapesView: {
        name: "RopidGTFSTripsShapesView",
        outputSequelizeAttributes: outputTripsShapesViewSDMA,
        pgTableName: "v_ropidgtfs_trips_shapes_view",
    },
    tripsStopTimesView: {
        name: "RopidGTFSTripsStopTimesView",
        outputSequelizeAttributes: outputTripsStopTimesViewSDMA,
        pgTableName: "v_ropidgtfs_trips_stop_times_view",
    },
    cis_stops: RopidGTFSCisStops_1.RopidGTFSCisStops,
    cis_stop_groups: RopidGTFSCisStopGroups_1.RopidGTFSCisStopGroups,
    run_numbers: RopidGTFSRunNumbers_1.RopidGTFSRunNumbers,
    ois: RopidGTFSOisMapping_1.RopidGTFSOisMapping,
    departuresPresets: ropid_departures_presets_1.RopidDeparturesPresets,
};
exports.RopidGTFS = forExport;
//# sourceMappingURL=index.js.map