@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
257 lines (256 loc) • 6.72 kB
TypeScript
/**
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.21.1
* 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 { Assets } from './Assets';
import type { Classification } from './Classification';
import type { AsknewsApiSchemaV1CommonGraphRelationships } from './AsknewsApiSchemaV1CommonGraphRelationships';
import type { GeoCoordinate } from './GeoCoordinate';
import type { ReportingVoice1 } from './ReportingVoice1';
import type { Entities } from './Entities';
/**
*
* @export
* @interface SearchResponseDictItem
*/
export interface SearchResponseDictItem {
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
articleUrl: string;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
articleId: string;
/**
*
* @type {Classification}
* @memberof SearchResponseDictItem
*/
classification: Classification;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
country: string;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
sourceId: string;
/**
*
* @type {number}
* @memberof SearchResponseDictItem
*/
pageRank: number;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
domainUrl: string;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
engTitle: string;
/**
*
* @type {Entities}
* @memberof SearchResponseDictItem
*/
entities: Entities;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
imageUrl?: string | null;
/**
*
* @type {Array<string>}
* @memberof SearchResponseDictItem
*/
keywords: Array<string>;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
language: string;
/**
*
* @type {Date}
* @memberof SearchResponseDictItem
*/
pubDate: Date;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
summary: string;
/**
*
* @type {Array<string>}
* @memberof SearchResponseDictItem
*/
keyPoints?: Array<string> | null;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
title: string;
/**
*
* @type {number}
* @memberof SearchResponseDictItem
*/
sentiment: number;
/**
*
* @type {number}
* @memberof SearchResponseDictItem
*/
centroidDistance: number;
/**
*
* @type {number}
* @memberof SearchResponseDictItem
*/
clusterProbability: number;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
markdownCitation?: string;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
provocative?: SearchResponseDictItemProvocativeEnum;
/**
*
* @type {ReportingVoice1}
* @memberof SearchResponseDictItem
*/
reportingVoice?: ReportingVoice1;
/**
*
* @type {AsknewsApiSchemaV1CommonGraphRelationships}
* @memberof SearchResponseDictItem
*/
entityRelationGraph?: AsknewsApiSchemaV1CommonGraphRelationships | null;
/**
*
* @type {{ [key: string]: GeoCoordinate; }}
* @memberof SearchResponseDictItem
*/
geoCoordinates?: {
[key: string]: GeoCoordinate;
} | null;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
continent?: SearchResponseDictItemContinentEnum | null;
/**
*
* @type {Assets}
* @memberof SearchResponseDictItem
*/
assets?: Assets | null;
/**
*
* @type {Array<string>}
* @memberof SearchResponseDictItem
*/
socialEmbeds?: Array<string> | null;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
bias?: SearchResponseDictItemBiasEnum | null;
/**
*
* @type {string}
* @memberof SearchResponseDictItem
*/
asStringKey: string;
}
/**
* @export
*/
export declare const SearchResponseDictItemProvocativeEnum: {
readonly Unknown: "unknown";
readonly Low: "low";
readonly Medium: "medium";
readonly High: "high";
};
export type SearchResponseDictItemProvocativeEnum = typeof SearchResponseDictItemProvocativeEnum[keyof typeof SearchResponseDictItemProvocativeEnum];
/**
* @export
*/
export declare const SearchResponseDictItemContinentEnum: {
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 SearchResponseDictItemContinentEnum = typeof SearchResponseDictItemContinentEnum[keyof typeof SearchResponseDictItemContinentEnum];
/**
* @export
*/
export declare const SearchResponseDictItemBiasEnum: {
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 SearchResponseDictItemBiasEnum = typeof SearchResponseDictItemBiasEnum[keyof typeof SearchResponseDictItemBiasEnum];
/**
* Check if a given object implements the SearchResponseDictItem interface.
*/
export declare function instanceOfSearchResponseDictItem(value: object): value is SearchResponseDictItem;
export declare function SearchResponseDictItemFromJSON(json: any): SearchResponseDictItem;
export declare function SearchResponseDictItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResponseDictItem;
export declare function SearchResponseDictItemToJSON(json: any): SearchResponseDictItem;
export declare function SearchResponseDictItemToJSONTyped(value?: SearchResponseDictItem | null, ignoreDiscriminator?: boolean): any;