@spasea/uz-booking-client
Version:
Unofficial UZ api client
25 lines (24 loc) • 1.22 kB
TypeScript
import Requestable from '../lib/requestable';
export default class Coach extends Requestable {
/**
* Construct station class.
* @param {string} [lang] - language
* @param {auth} [auth] - the credentials to authenticate to UzBoojking. If auth is
* not provided requests will be made unauthenticated
* @param {string} [apiBase] - the base UzBooking API URL
*/
constructor(lang: string, auth: any, apiBase: string);
/**
* List coaches in wagon
* @param {number} from - departure station id
* @param {number} to - target station id
* @param {string} date - departure date
* @param {string} trainNumber - train number
* @param {number} wagonNum - wagon number
* @param {string} wagonType - wagon type
* @param {string} wagonClass - wagon class
* @param {Function} cb - callback function
* @returns {Promise} - the promise for the http request
*/
list(from: number, to: number, date: string, trainNumber: string, wagonNum: number, wagonType: string, wagonClass: string, callback?: (error: Error, data?: object, response?: object) => any): Promise<import("axios").AxiosResponse<any, any>>;
}