import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { AuthorSearchRequest } from '../models'; import { AuthorsGetResponse } from '../models'; import { AuthorsPostResponse } from '../models'; import { From } from '../models'; import { RankedOnly } from '../models'; import { To } from '../models'; /** * AuthorsApi - axios parameter creator * @export */ export declare const AuthorsApiAxiosParamCreator: (configuration?: Configuration) => { /** * This endpoint allows you to search for articles by author. You need to specify the author name. You can also filter by language, country, source, and more. * @summary [Get] Search By Author Request * @param {string} authorName * @param {string} [notAuthorName] * @param {any} [sources] * @param {any} [predefinedSources] * @param {any} [notSources] * @param {any} [lang] * @param {any} [notLang] * @param {any} [countries] * @param {any} [notCountries] * @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 {boolean} [includeNlpData] * @param {boolean} [hasNlp] * @param {string} [theme] * @param {string} [notTheme] * @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: (authorName: string, notAuthorName?: string, sources?: any, predefinedSources?: any, notSources?: any, lang?: any, notLang?: any, countries?: any, notCountries?: 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, includeNlpData?: boolean, hasNlp?: boolean, theme?: string, notTheme?: 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 search for articles by author. You need to specify the author name. You can also filter by language, country, source, and more. * @summary [Post] Search By Author Request * @param {AuthorSearchRequest} authorSearchRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ post: (authorSearchRequest: AuthorSearchRequest, options?: AxiosRequestConfig) => Promise; }; /** * AuthorsApi - functional programming interface * @export */ export declare const AuthorsApiFp: (configuration?: Configuration) => { /** * This endpoint allows you to search for articles by author. You need to specify the author name. You can also filter by language, country, source, and more. * @summary [Get] Search By Author Request * @param {AuthorsApiGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ get(requestParameters: AuthorsApiGetRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * This endpoint allows you to search for articles by author. You need to specify the author name. You can also filter by language, country, source, and more. * @summary [Post] Search By Author Request * @param {AuthorsApiPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ post(requestParameters: AuthorsApiPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * AuthorsApi - factory interface * @export */ export declare const AuthorsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * This endpoint allows you to search for articles by author. You need to specify the author name. You can also filter by language, country, source, and more. * @summary [Get] Search By Author Request * @param {AuthorsApiGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ get(requestParameters: AuthorsApiGetRequest, options?: AxiosRequestConfig): AxiosPromise; /** * This endpoint allows you to search for articles by author. You need to specify the author name. You can also filter by language, country, source, and more. * @summary [Post] Search By Author Request * @param {AuthorsApiPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ post(requestParameters: AuthorsApiPostRequest, options?: AxiosRequestConfig): AxiosPromise; }; /** * Request parameters for get operation in AuthorsApi. * @export * @interface AuthorsApiGetRequest */ export type AuthorsApiGetRequest = { /** * * @type {string} * @memberof AuthorsApiGet */ readonly authorName: string; /** * * @type {string} * @memberof AuthorsApiGet */ readonly notAuthorName?: string; /** * * @type {any} * @memberof AuthorsApiGet */ readonly sources?: any; /** * * @type {any} * @memberof AuthorsApiGet */ readonly predefinedSources?: any; /** * * @type {any} * @memberof AuthorsApiGet */ readonly notSources?: any; /** * * @type {any} * @memberof AuthorsApiGet */ readonly lang?: any; /** * * @type {any} * @memberof AuthorsApiGet */ readonly notLang?: any; /** * * @type {any} * @memberof AuthorsApiGet */ readonly countries?: any; /** * * @type {any} * @memberof AuthorsApiGet */ readonly notCountries?: any; /** * * @type {From} * @memberof AuthorsApiGet */ readonly from?: From; /** * * @type {To} * @memberof AuthorsApiGet */ readonly to?: To; /** * * @type {string} * @memberof AuthorsApiGet */ readonly publishedDatePrecision?: string; /** * * @type {boolean} * @memberof AuthorsApiGet */ readonly byParseDate?: boolean; /** * * @type {string} * @memberof AuthorsApiGet */ readonly sortBy?: string; /** * * @type {RankedOnly} * @memberof AuthorsApiGet */ readonly rankedOnly?: RankedOnly; /** * * @type {number} * @memberof AuthorsApiGet */ readonly fromRank?: number; /** * * @type {number} * @memberof AuthorsApiGet */ readonly toRank?: number; /** * * @type {boolean} * @memberof AuthorsApiGet */ readonly isHeadline?: boolean; /** * * @type {boolean} * @memberof AuthorsApiGet */ readonly isOpinion?: boolean; /** * * @type {boolean} * @memberof AuthorsApiGet */ readonly isPaidContent?: boolean; /** * * @type {any} * @memberof AuthorsApiGet */ readonly parentUrl?: any; /** * * @type {any} * @memberof AuthorsApiGet */ readonly allLinks?: any; /** * * @type {any} * @memberof AuthorsApiGet */ readonly allDomainLinks?: any; /** * * @type {number} * @memberof AuthorsApiGet */ readonly wordCountMin?: number; /** * * @type {number} * @memberof AuthorsApiGet */ readonly wordCountMax?: number; /** * * @type {number} * @memberof AuthorsApiGet */ readonly page?: number; /** * * @type {number} * @memberof AuthorsApiGet */ readonly pageSize?: number; /** * * @type {boolean} * @memberof AuthorsApiGet */ readonly includeNlpData?: boolean; /** * * @type {boolean} * @memberof AuthorsApiGet */ readonly hasNlp?: boolean; /** * * @type {string} * @memberof AuthorsApiGet */ readonly theme?: string; /** * * @type {string} * @memberof AuthorsApiGet */ readonly notTheme?: string; /** * * @type {number} * @memberof AuthorsApiGet */ readonly titleSentimentMin?: number; /** * * @type {number} * @memberof AuthorsApiGet */ readonly titleSentimentMax?: number; /** * * @type {number} * @memberof AuthorsApiGet */ readonly contentSentimentMin?: number; /** * * @type {number} * @memberof AuthorsApiGet */ readonly contentSentimentMax?: number; /** * * @type {any} * @memberof AuthorsApiGet */ readonly iptcTags?: any; /** * * @type {any} * @memberof AuthorsApiGet */ readonly notIptcTags?: any; /** * * @type {any} * @memberof AuthorsApiGet */ readonly iabTags?: any; /** * * @type {any} * @memberof AuthorsApiGet */ readonly notIabTags?: any; }; /** * Request parameters for post operation in AuthorsApi. * @export * @interface AuthorsApiPostRequest */ export type AuthorsApiPostRequest = {} & AuthorSearchRequest; /** * AuthorsApiGenerated - object-oriented interface * @export * @class AuthorsApiGenerated * @extends {BaseAPI} */ export declare class AuthorsApiGenerated extends BaseAPI { /** * This endpoint allows you to search for articles by author. You need to specify the author name. You can also filter by language, country, source, and more. * @summary [Get] Search By Author Request * @param {AuthorsApiGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthorsApiGenerated */ get(requestParameters: AuthorsApiGetRequest, options?: AxiosRequestConfig): Promise>; /** * This endpoint allows you to search for articles by author. You need to specify the author name. You can also filter by language, country, source, and more. * @summary [Post] Search By Author Request * @param {AuthorsApiPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthorsApiGenerated */ post(requestParameters: AuthorsApiPostRequest, options?: AxiosRequestConfig): Promise>; }