@ohm-vision/kiwi-tequila-api
Version:
Unofficial wrapper for Kiwi (tequila) API
35 lines • 1.81 kB
TypeScript
import { AxiosRequestConfig } from "axios";
import { SearchMultiCityBodyDto, SearchMultiCityParamsDto, SearchNomadBodyDto, SearchNomadParamsDto, SearchSingleCityDto } from "../dtos";
import { SearchMultiCityResponse, SearchNomadResponse, SearchSingleCityResponse } from "../responses";
export declare class SearchApi {
private readonly config;
constructor(config: AxiosRequestConfig);
/**
* A single flights search. Please note, that only active
* parameters have been described in this document. Parameters
* that are not described are deprecated.
*
* @param params
*/
singlecity(dto: SearchSingleCityDto): Promise<SearchSingleCityResponse>;
/**
* This call is able to do multi-city searches in parallel. The single
* search queries don't have to be connected in any way.
* * It accepts the same parameters as the /search API call. These parameters
* are to be used in the body of the request not in the URL.
* * To do a request, send a POST json payload with a list of API parameters
* for each search query.
* * The maximum number of segments in each request is 9 (If a higher number
* of routes is requested in /flights_multi POST method, all that they receive
* is an empty result - []).
* * In the response root, the results field contains a list of responses for
* the posted queries. Every single element contains the same response as it
* would if /search API call were used.
* @param body
* @param params
* @returns
*/
multicity(dto: SearchMultiCityBodyDto, params?: SearchMultiCityParamsDto): Promise<SearchMultiCityResponse>;
nomad(dto: SearchNomadBodyDto, params: SearchNomadParamsDto): Promise<SearchNomadResponse>;
}
//# sourceMappingURL=search.api.d.ts.map