import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { From } from '../models'; import { RankedOnly } from '../models'; import { SearchGetResponse } from '../models'; import { SearchPostResponse } from '../models'; import { SearchRequest } from '../models'; import { To } from '../models'; /** * SearchApi - axios parameter creator * @export */ export declare const SearchApiAxiosParamCreator: (configuration?: Configuration) => { /** * This endpoint allows you to search for articles. You can search for articles by keyword, language, country, source, and more. * @summary [Get] Search For Articles Request * @param {string} q * @param {string} [searchIn] * @param {any} [predefinedSources] * @param {any} [sources] * @param {any} [notSources] * @param {any} [lang] * @param {any} [notLang] * @param {any} [countries] * @param {any} [notCountries] * @param {any} [notAuthorName] * @param {From} [from] * @param {To} [to] * @param {string} [publishedDatePrecision] * @param {boolean} [byParseDate] * @param {string} [sortBy] * @param {RankedOnly} [rankedOnly] * @param {number} [fromRank] * @param {number} [toRank] * @param {boolean} [isHeadline] * @param {boolean} [isOpinion] * @param {boolean} [isPaidContent] * @param {any} [parentUrl] * @param {any} [allLinks] * @param {any} [allDomainLinks] * @param {number} [wordCountMin] * @param {number} [wordCountMax] * @param {number} [page] * @param {number} [pageSize] * @param {string} [clusteringVariable] * @param {boolean} [clusteringEnabled] * @param {number} [clusteringThreshold] * @param {boolean} [includeNlpData] * @param {boolean} [hasNlp] * @param {string} [theme] * @param {string} [notTheme] * @param {string} [orgEntityName] * @param {string} [perEntityName] * @param {string} [locEntityName] * @param {string} [miscEntityName] * @param {number} [titleSentimentMin] * @param {number} [titleSentimentMax] * @param {number} [contentSentimentMin] * @param {number} [contentSentimentMax] * @param {any} [iptcTags] * @param {any} [notIptcTags] * @param {any} [sourceName] * @param {any} [iabTags] * @param {any} [notIabTags] * @param {boolean} [excludeDuplicates] * @param {boolean} [additionalDomainInfo] * @param {boolean} [isNewsDomain] * @param {any} [newsDomainType] * @param {any} [newsType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ get: (q: string, searchIn?: string, predefinedSources?: any, sources?: any, notSources?: any, lang?: any, notLang?: any, countries?: any, notCountries?: any, notAuthorName?: any, from?: From, to?: To, publishedDatePrecision?: string, byParseDate?: boolean, sortBy?: string, rankedOnly?: RankedOnly, fromRank?: number, toRank?: number, isHeadline?: boolean, isOpinion?: boolean, isPaidContent?: boolean, parentUrl?: any, allLinks?: any, allDomainLinks?: any, wordCountMin?: number, wordCountMax?: number, page?: number, pageSize?: number, clusteringVariable?: string, clusteringEnabled?: boolean, clusteringThreshold?: number, includeNlpData?: boolean, hasNlp?: boolean, theme?: string, notTheme?: string, orgEntityName?: string, perEntityName?: string, locEntityName?: string, miscEntityName?: string, titleSentimentMin?: number, titleSentimentMax?: number, contentSentimentMin?: number, contentSentimentMax?: number, iptcTags?: any, notIptcTags?: any, sourceName?: any, iabTags?: any, notIabTags?: any, excludeDuplicates?: boolean, additionalDomainInfo?: boolean, isNewsDomain?: boolean, newsDomainType?: any, newsType?: any, options?: AxiosRequestConfig) => Promise; /** * This endpoint allows you to search for articles. You can search for articles by keyword, language, country, source, and more. * @summary [Post] Search For Articles Request * @param {SearchRequest} searchRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ post: (searchRequest: SearchRequest, options?: AxiosRequestConfig) => Promise; }; /** * SearchApi - functional programming interface * @export */ export declare const SearchApiFp: (configuration?: Configuration) => { /** * This endpoint allows you to search for articles. You can search for articles by keyword, language, country, source, and more. * @summary [Get] Search For Articles Request * @param {SearchApiGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ get(requestParameters: SearchApiGetRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * This endpoint allows you to search for articles. You can search for articles by keyword, language, country, source, and more. * @summary [Post] Search For Articles Request * @param {SearchApiPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ post(requestParameters: SearchApiPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * SearchApi - factory interface * @export */ export declare const SearchApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * This endpoint allows you to search for articles. You can search for articles by keyword, language, country, source, and more. * @summary [Get] Search For Articles Request * @param {SearchApiGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ get(requestParameters: SearchApiGetRequest, options?: AxiosRequestConfig): AxiosPromise; /** * This endpoint allows you to search for articles. You can search for articles by keyword, language, country, source, and more. * @summary [Post] Search For Articles Request * @param {SearchApiPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ post(requestParameters: SearchApiPostRequest, options?: AxiosRequestConfig): AxiosPromise; }; /** * Request parameters for get operation in SearchApi. * @export * @interface SearchApiGetRequest */ export type SearchApiGetRequest = { /** * * @type {string} * @memberof SearchApiGet */ readonly q: string; /** * * @type {string} * @memberof SearchApiGet */ readonly searchIn?: string; /** * * @type {any} * @memberof SearchApiGet */ readonly predefinedSources?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly sources?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly notSources?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly lang?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly notLang?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly countries?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly notCountries?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly notAuthorName?: any; /** * * @type {From} * @memberof SearchApiGet */ readonly from?: From; /** * * @type {To} * @memberof SearchApiGet */ readonly to?: To; /** * * @type {string} * @memberof SearchApiGet */ readonly publishedDatePrecision?: string; /** * * @type {boolean} * @memberof SearchApiGet */ readonly byParseDate?: boolean; /** * * @type {string} * @memberof SearchApiGet */ readonly sortBy?: string; /** * * @type {RankedOnly} * @memberof SearchApiGet */ readonly rankedOnly?: RankedOnly; /** * * @type {number} * @memberof SearchApiGet */ readonly fromRank?: number; /** * * @type {number} * @memberof SearchApiGet */ readonly toRank?: number; /** * * @type {boolean} * @memberof SearchApiGet */ readonly isHeadline?: boolean; /** * * @type {boolean} * @memberof SearchApiGet */ readonly isOpinion?: boolean; /** * * @type {boolean} * @memberof SearchApiGet */ readonly isPaidContent?: boolean; /** * * @type {any} * @memberof SearchApiGet */ readonly parentUrl?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly allLinks?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly allDomainLinks?: any; /** * * @type {number} * @memberof SearchApiGet */ readonly wordCountMin?: number; /** * * @type {number} * @memberof SearchApiGet */ readonly wordCountMax?: number; /** * * @type {number} * @memberof SearchApiGet */ readonly page?: number; /** * * @type {number} * @memberof SearchApiGet */ readonly pageSize?: number; /** * * @type {string} * @memberof SearchApiGet */ readonly clusteringVariable?: string; /** * * @type {boolean} * @memberof SearchApiGet */ readonly clusteringEnabled?: boolean; /** * * @type {number} * @memberof SearchApiGet */ readonly clusteringThreshold?: number; /** * * @type {boolean} * @memberof SearchApiGet */ readonly includeNlpData?: boolean; /** * * @type {boolean} * @memberof SearchApiGet */ readonly hasNlp?: boolean; /** * * @type {string} * @memberof SearchApiGet */ readonly theme?: string; /** * * @type {string} * @memberof SearchApiGet */ readonly notTheme?: string; /** * * @type {string} * @memberof SearchApiGet */ readonly orgEntityName?: string; /** * * @type {string} * @memberof SearchApiGet */ readonly perEntityName?: string; /** * * @type {string} * @memberof SearchApiGet */ readonly locEntityName?: string; /** * * @type {string} * @memberof SearchApiGet */ readonly miscEntityName?: string; /** * * @type {number} * @memberof SearchApiGet */ readonly titleSentimentMin?: number; /** * * @type {number} * @memberof SearchApiGet */ readonly titleSentimentMax?: number; /** * * @type {number} * @memberof SearchApiGet */ readonly contentSentimentMin?: number; /** * * @type {number} * @memberof SearchApiGet */ readonly contentSentimentMax?: number; /** * * @type {any} * @memberof SearchApiGet */ readonly iptcTags?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly notIptcTags?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly sourceName?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly iabTags?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly notIabTags?: any; /** * * @type {boolean} * @memberof SearchApiGet */ readonly excludeDuplicates?: boolean; /** * * @type {boolean} * @memberof SearchApiGet */ readonly additionalDomainInfo?: boolean; /** * * @type {boolean} * @memberof SearchApiGet */ readonly isNewsDomain?: boolean; /** * * @type {any} * @memberof SearchApiGet */ readonly newsDomainType?: any; /** * * @type {any} * @memberof SearchApiGet */ readonly newsType?: any; }; /** * Request parameters for post operation in SearchApi. * @export * @interface SearchApiPostRequest */ export type SearchApiPostRequest = {} & SearchRequest; /** * SearchApiGenerated - object-oriented interface * @export * @class SearchApiGenerated * @extends {BaseAPI} */ export declare class SearchApiGenerated extends BaseAPI { /** * This endpoint allows you to search for articles. You can search for articles by keyword, language, country, source, and more. * @summary [Get] Search For Articles Request * @param {SearchApiGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SearchApiGenerated */ get(requestParameters: SearchApiGetRequest, options?: AxiosRequestConfig): Promise>; /** * This endpoint allows you to search for articles. You can search for articles by keyword, language, country, source, and more. * @summary [Post] Search For Articles Request * @param {SearchApiPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SearchApiGenerated */ post(requestParameters: SearchApiPostRequest, options?: AxiosRequestConfig): Promise>; }