UNPKG

@golemio/pid

Version:
23 lines (22 loc) 1.04 kB
import { IStopCacheDto, IStopDto } from "../../schema-definitions/ropid-gtfs/interfaces/IStopDto"; import { IModel, PostgresModel } from "@golemio/core/dist/integration-engine"; import { IValidator } from "@golemio/core/dist/shared/golemio-validator"; import Sequelize from "@golemio/core/dist/shared/sequelize"; export declare class RopidGTFSStopsModel extends PostgresModel implements IModel { /** Model name */ name: string; /** The Sequelize Model */ sequelizeModel: Sequelize.ModelCtor<any>; /** The Sequelize Model for temporary table */ protected tmpSequelizeModel: Sequelize.ModelCtor<any> | null; /** Validation helper */ protected validator: IValidator; /** Type/Strategy of saving the data */ protected savingType: "insertOnly" | "insertOrUpdate"; constructor(); getAll: () => Promise<IStopDto[]>; /** * Retrieve all stops data needed for cache where location_type is 0 and computed_cis_stop_id is not null */ getStopsForCache: () => Promise<IStopCacheDto[]>; }