@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
270 lines (269 loc) • 7.1 kB
TypeScript
/**
* AskNews API
* AskNews API [](https://status.asknews.app/status/prod)
*
* The version of the OpenAPI document: 0.24.22
* 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 { GeoCoordinate1 } from './GeoCoordinate1';
import type { Entities1 } from './Entities1';
import type { Classification } from './Classification';
import type { Assets1 } from './Assets1';
import type { Author1 } from './Author1';
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 | null;
/**
*
* @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 {Array<string>}
* @memberof SearchResponseDictItem1
*/
keyPoints?: Array<string> | null;
/**
*
* @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 | null;
/**
*
* @type {{ [key: string]: GeoCoordinate1; }}
* @memberof SearchResponseDictItem1
*/
geoCoordinates?: {
[key: string]: GeoCoordinate1;
} | null;
/**
*
* @type {string}
* @memberof SearchResponseDictItem1
*/
continent?: SearchResponseDictItem1ContinentEnum | null;
/**
*
* @type {Assets1}
* @memberof SearchResponseDictItem1
*/
assets?: Assets1 | null;
/**
*
* @type {Array<string>}
* @memberof SearchResponseDictItem1
*/
socialEmbeds?: Array<string> | null;
/**
*
* @type {string}
* @memberof SearchResponseDictItem1
*/
bias?: SearchResponseDictItem1BiasEnum | null;
/**
*
* @type {Array<Author1>}
* @memberof SearchResponseDictItem1
*/
authors?: Array<Author1> | null;
/**
*
* @type {string}
* @memberof SearchResponseDictItem1
*/
fullText?: string | null;
/**
*
* @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];
/**
* @export
*/
export declare const SearchResponseDictItem1BiasEnum: {
readonly Political: "Political";
readonly Gender: "Gender";
readonly Cultural: "Cultural";
readonly Age: "Age";
readonly Religious: "Religious";
readonly Statement: "Statement";
readonly IllogicalClaims: "Illogical Claims";
readonly Slant: "Slant";
readonly SourceSelection: "Source Selection";
readonly OmissionOfSourceAttribution: "Omission of Source Attribution";
readonly Spin: "Spin";
readonly Sensationalism: "Sensationalism";
readonly Negativity: "Negativity";
readonly SubjectiveAdjectives: "Subjective Adjectives";
readonly AdHominem: "Ad Hominem";
readonly MindReading: "Mind Reading";
readonly OpinionAsFact: "Opinion-as-Fact";
readonly None: "None";
readonly Unknown: "Unknown";
};
export type SearchResponseDictItem1BiasEnum = typeof SearchResponseDictItem1BiasEnum[keyof typeof SearchResponseDictItem1BiasEnum];
/**
* Check if a given object implements the SearchResponseDictItem1 interface.
*/
export declare function instanceOfSearchResponseDictItem1(value: object): value is SearchResponseDictItem1;
export declare function SearchResponseDictItem1FromJSON(json: any): SearchResponseDictItem1;
export declare function SearchResponseDictItem1FromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResponseDictItem1;
export declare function SearchResponseDictItem1ToJSON(json: any): SearchResponseDictItem1;
export declare function SearchResponseDictItem1ToJSONTyped(value?: SearchResponseDictItem1 | null, ignoreDiscriminator?: boolean): any;