UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
203 lines (202 loc) 4.85 kB
/** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.18.6 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Classification } from './Classification'; import type { Entities1 } from './Entities1'; import type { GraphRelationships } from './GraphRelationships'; import type { ReportingVoice1 } from './ReportingVoice1'; /** * * @export * @interface SearchResponseDictItem1 */ export interface SearchResponseDictItem1 { /** * * @type {string} * @memberof SearchResponseDictItem1 */ articleUrl: string; /** * * @type {string} * @memberof SearchResponseDictItem1 */ articleId: string; /** * * @type {Classification} * @memberof SearchResponseDictItem1 */ classification: Classification; /** * * @type {string} * @memberof SearchResponseDictItem1 */ country: string; /** * * @type {string} * @memberof SearchResponseDictItem1 */ sourceId: string; /** * * @type {number} * @memberof SearchResponseDictItem1 */ pageRank: number; /** * * @type {string} * @memberof SearchResponseDictItem1 */ domainUrl: string; /** * * @type {string} * @memberof SearchResponseDictItem1 */ engTitle: string; /** * * @type {Entities1} * @memberof SearchResponseDictItem1 */ entities: Entities1; /** * * @type {string} * @memberof SearchResponseDictItem1 */ imageUrl?: string; /** * * @type {Array<string>} * @memberof SearchResponseDictItem1 */ keywords: Array<string>; /** * * @type {string} * @memberof SearchResponseDictItem1 */ language: string; /** * * @type {Date} * @memberof SearchResponseDictItem1 */ pubDate: Date; /** * * @type {string} * @memberof SearchResponseDictItem1 */ summary: string; /** * * @type {string} * @memberof SearchResponseDictItem1 */ title: string; /** * * @type {number} * @memberof SearchResponseDictItem1 */ sentiment: number; /** * * @type {number} * @memberof SearchResponseDictItem1 */ centroidDistance: number; /** * * @type {number} * @memberof SearchResponseDictItem1 */ clusterProbability: number; /** * * @type {string} * @memberof SearchResponseDictItem1 */ markdownCitation?: string; /** * * @type {string} * @memberof SearchResponseDictItem1 */ provocative?: SearchResponseDictItem1ProvocativeEnum; /** * * @type {ReportingVoice1} * @memberof SearchResponseDictItem1 */ reportingVoice?: ReportingVoice1; /** * * @type {GraphRelationships} * @memberof SearchResponseDictItem1 */ entityRelationGraph?: GraphRelationships; /** * * @type {object} * @memberof SearchResponseDictItem1 */ geoCoordinates?: object; /** * * @type {string} * @memberof SearchResponseDictItem1 */ continent?: SearchResponseDictItem1ContinentEnum; /** * * @type {string} * @memberof SearchResponseDictItem1 */ asStringKey: string; } /** * @export */ export declare const SearchResponseDictItem1ProvocativeEnum: { readonly Unknown: "unknown"; readonly Low: "low"; readonly Medium: "medium"; readonly High: "high"; }; export type SearchResponseDictItem1ProvocativeEnum = typeof SearchResponseDictItem1ProvocativeEnum[keyof typeof SearchResponseDictItem1ProvocativeEnum]; /** * @export */ export declare const SearchResponseDictItem1ContinentEnum: { readonly Africa: "Africa"; readonly Asia: "Asia"; readonly Europe: "Europe"; readonly MiddleEast: "Middle East"; readonly NorthAmerica: "North America"; readonly SouthAmerica: "South America"; readonly Oceania: "Oceania"; }; export type SearchResponseDictItem1ContinentEnum = typeof SearchResponseDictItem1ContinentEnum[keyof typeof SearchResponseDictItem1ContinentEnum]; /** * Check if a given object implements the SearchResponseDictItem1 interface. */ export declare function instanceOfSearchResponseDictItem1(value: object): boolean; export declare function SearchResponseDictItem1FromJSON(json: any): SearchResponseDictItem1; export declare function SearchResponseDictItem1FromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResponseDictItem1; export declare function SearchResponseDictItem1ToJSON(value?: SearchResponseDictItem1 | null): any;