import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { LatestHeadlinesGetResponse } from '../models'; import { LatestHeadlinesPostResponse } from '../models'; import { LatestHeadlinesRequest } from '../models'; import { RankedOnly } from '../models'; /** * LatestHeadlinesApi - axios parameter creator * @export */ export declare const LatestHeadlinesApiAxiosParamCreator: (configuration?: Configuration) => { /** * This endpoint allows you to get latest headlines. You need to specify since when you want to get the latest headlines. You can also filter by language, country, source, and more. * @summary [Get] Search For Latest Headlines Request * @param {string} [when] * @param {boolean} [byParseDate] * @param {string} [sortBy] * @param {any} [lang] * @param {any} [notLang] * @param {any} [countries] * @param {any} [notCountries] * @param {any} [sources] * @param {any} [predefinedSources] * @param {any} [notSources] * @param {any} [notAuthorName] * @param {RankedOnly} [rankedOnly] * @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} [iabTags] * @param {any} [notIabTags] * @param {*} [options] Override http request option. * @throws {RequiredError} */ get: (when?: string, byParseDate?: boolean, sortBy?: string, lang?: any, notLang?: any, countries?: any, notCountries?: any, sources?: any, predefinedSources?: any, notSources?: any, notAuthorName?: any, rankedOnly?: RankedOnly, 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, iabTags?: any, notIabTags?: any, options?: AxiosRequestConfig) => Promise; /** * This endpoint allows you to get latest headlines. You need to specify since when you want to get the latest headlines. You can also filter by language, country, source, and more. * @summary [Post] Search For Latest Headlines Request * @param {LatestHeadlinesRequest} latestHeadlinesRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ post: (latestHeadlinesRequest: LatestHeadlinesRequest, options?: AxiosRequestConfig) => Promise; }; /** * LatestHeadlinesApi - functional programming interface * @export */ export declare const LatestHeadlinesApiFp: (configuration?: Configuration) => { /** * This endpoint allows you to get latest headlines. You need to specify since when you want to get the latest headlines. You can also filter by language, country, source, and more. * @summary [Get] Search For Latest Headlines Request * @param {LatestHeadlinesApiGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ get(requestParameters?: LatestHeadlinesApiGetRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * This endpoint allows you to get latest headlines. You need to specify since when you want to get the latest headlines. You can also filter by language, country, source, and more. * @summary [Post] Search For Latest Headlines Request * @param {LatestHeadlinesApiPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ post(requestParameters: LatestHeadlinesApiPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * LatestHeadlinesApi - factory interface * @export */ export declare const LatestHeadlinesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * This endpoint allows you to get latest headlines. You need to specify since when you want to get the latest headlines. You can also filter by language, country, source, and more. * @summary [Get] Search For Latest Headlines Request * @param {LatestHeadlinesApiGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ get(requestParameters?: LatestHeadlinesApiGetRequest, options?: AxiosRequestConfig): AxiosPromise; /** * This endpoint allows you to get latest headlines. You need to specify since when you want to get the latest headlines. You can also filter by language, country, source, and more. * @summary [Post] Search For Latest Headlines Request * @param {LatestHeadlinesApiPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ post(requestParameters: LatestHeadlinesApiPostRequest, options?: AxiosRequestConfig): AxiosPromise; }; /** * Request parameters for get operation in LatestHeadlinesApi. * @export * @interface LatestHeadlinesApiGetRequest */ export type LatestHeadlinesApiGetRequest = { /** * * @type {string} * @memberof LatestHeadlinesApiGet */ readonly when?: string; /** * * @type {boolean} * @memberof LatestHeadlinesApiGet */ readonly byParseDate?: boolean; /** * * @type {string} * @memberof LatestHeadlinesApiGet */ readonly sortBy?: string; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly lang?: any; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly notLang?: any; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly countries?: any; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly notCountries?: any; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly sources?: any; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly predefinedSources?: any; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly notSources?: any; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly notAuthorName?: any; /** * * @type {RankedOnly} * @memberof LatestHeadlinesApiGet */ readonly rankedOnly?: RankedOnly; /** * * @type {boolean} * @memberof LatestHeadlinesApiGet */ readonly isHeadline?: boolean; /** * * @type {boolean} * @memberof LatestHeadlinesApiGet */ readonly isOpinion?: boolean; /** * * @type {boolean} * @memberof LatestHeadlinesApiGet */ readonly isPaidContent?: boolean; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly parentUrl?: any; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly allLinks?: any; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly allDomainLinks?: any; /** * * @type {number} * @memberof LatestHeadlinesApiGet */ readonly wordCountMin?: number; /** * * @type {number} * @memberof LatestHeadlinesApiGet */ readonly wordCountMax?: number; /** * * @type {number} * @memberof LatestHeadlinesApiGet */ readonly page?: number; /** * * @type {number} * @memberof LatestHeadlinesApiGet */ readonly pageSize?: number; /** * * @type {string} * @memberof LatestHeadlinesApiGet */ readonly clusteringVariable?: string; /** * * @type {boolean} * @memberof LatestHeadlinesApiGet */ readonly clusteringEnabled?: boolean; /** * * @type {number} * @memberof LatestHeadlinesApiGet */ readonly clusteringThreshold?: number; /** * * @type {boolean} * @memberof LatestHeadlinesApiGet */ readonly includeNlpData?: boolean; /** * * @type {boolean} * @memberof LatestHeadlinesApiGet */ readonly hasNlp?: boolean; /** * * @type {string} * @memberof LatestHeadlinesApiGet */ readonly theme?: string; /** * * @type {string} * @memberof LatestHeadlinesApiGet */ readonly notTheme?: string; /** * * @type {string} * @memberof LatestHeadlinesApiGet */ readonly orgEntityName?: string; /** * * @type {string} * @memberof LatestHeadlinesApiGet */ readonly perEntityName?: string; /** * * @type {string} * @memberof LatestHeadlinesApiGet */ readonly locEntityName?: string; /** * * @type {string} * @memberof LatestHeadlinesApiGet */ readonly miscEntityName?: string; /** * * @type {number} * @memberof LatestHeadlinesApiGet */ readonly titleSentimentMin?: number; /** * * @type {number} * @memberof LatestHeadlinesApiGet */ readonly titleSentimentMax?: number; /** * * @type {number} * @memberof LatestHeadlinesApiGet */ readonly contentSentimentMin?: number; /** * * @type {number} * @memberof LatestHeadlinesApiGet */ readonly contentSentimentMax?: number; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly iptcTags?: any; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly notIptcTags?: any; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly iabTags?: any; /** * * @type {any} * @memberof LatestHeadlinesApiGet */ readonly notIabTags?: any; }; /** * Request parameters for post operation in LatestHeadlinesApi. * @export * @interface LatestHeadlinesApiPostRequest */ export type LatestHeadlinesApiPostRequest = {} & LatestHeadlinesRequest; /** * LatestHeadlinesApiGenerated - object-oriented interface * @export * @class LatestHeadlinesApiGenerated * @extends {BaseAPI} */ export declare class LatestHeadlinesApiGenerated extends BaseAPI { /** * This endpoint allows you to get latest headlines. You need to specify since when you want to get the latest headlines. You can also filter by language, country, source, and more. * @summary [Get] Search For Latest Headlines Request * @param {LatestHeadlinesApiGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LatestHeadlinesApiGenerated */ get(requestParameters?: LatestHeadlinesApiGetRequest, options?: AxiosRequestConfig): Promise>; /** * This endpoint allows you to get latest headlines. You need to specify since when you want to get the latest headlines. You can also filter by language, country, source, and more. * @summary [Post] Search For Latest Headlines Request * @param {LatestHeadlinesApiPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LatestHeadlinesApiGenerated */ post(requestParameters: LatestHeadlinesApiPostRequest, options?: AxiosRequestConfig): Promise>; }