@golemio/pid
Version:
Golemio PID Module
26 lines (25 loc) • 887 B
TypeScript
import { SequelizeModel } from "@golemio/core/dist/output-gateway";
export declare class GTFSRoutesModel extends SequelizeModel {
constructor();
/** Retrieves all gtfs routes
* @param {object} [options] Options object with params
* @param {number} [options.limit] Limit
* @param {number} [options.offset] Offset
* @returns Array of the retrieved records
*/
GetAll: (options?: {
limit?: number;
offset?: number;
}) => Promise<any>;
/** Retrieves specific gtfs routes
* @param {string} id Id of the route
* @returns Object of the retrieved record or null
*/
GetOne: (id: string) => Promise<any>;
/**
* Convert a single db result to proper output format with all tranformation
* @param {object} route Route object
* @returns A converted item of the result
*/
private ConvertItem;
}