Comparing version 10.0.0-beta.15 to 10.0.0-beta.16
@@ -1,2 +0,2 @@ | ||
import { CategoryCode, EndpointDescription, HistoricalFilter, News, RestResponse, RestResponseError, RestResponseSuccess, Source } from "./types"; | ||
import { CategoryCode, EndpointDescription, HistoricalFilter, News, RestResponse, RestResponseError, RestResponseSuccess, SourceDetails } from "./types"; | ||
export declare class Api { | ||
@@ -10,3 +10,3 @@ private apikey; | ||
getCategoryCodes(source: string): Promise<CategoryCode[]>; | ||
getSources(): Promise<Source[]>; | ||
getSources(): Promise<SourceDetails[]>; | ||
get<T>(path: string, params?: any, errorHandler?: (apiResponse: RestResponseError<T>) => void): Promise<RestResponse<T>>; | ||
@@ -13,0 +13,0 @@ post<T, Z>(path: string, body: T, errorHandler?: (apiResponse: RestResponseError<Z>) => void): Promise<RestResponseSuccess<Z>>; |
export { Or, And, Text, Ciks, Tickers, Sources, CategoryCodes } from "./filters"; | ||
export { Api } from "./api"; | ||
export { WsApi } from "./wsApi"; | ||
export { News, Filter, TextOptions, WebsocketResponse, WebsocketErrorResponse, ConnectOptions, HistoricalFilter, RestResponse, RestResponseSuccess, RestResponseError } from "./types"; | ||
export { News, Filter, TextOptions, WebsocketResponse, WebsocketErrorResponse, ConnectOptions, HistoricalFilter, RestResponse, RestResponseSuccess, RestResponseError, CategoryCode, SourceDetails } from "./types"; | ||
export { Source, WebsocketMethod, WebsocketResponseType, FilterAction, Field } from "./enums"; |
@@ -138,4 +138,4 @@ /// <reference types="ws" /> | ||
} | ||
export interface Source { | ||
export interface SourceDetails { | ||
code: string; | ||
} |
{ | ||
"name": "newsware", | ||
"version": "10.0.0-beta.15", | ||
"version": "10.0.0-beta.16", | ||
"description": "Typescript client for interacting with the Newsware API", | ||
@@ -5,0 +5,0 @@ "main": "lib/src/index.js", |
@@ -9,3 +9,3 @@ import { | ||
RestResponseSuccess, | ||
Source | ||
SourceDetails | ||
} from "./types" | ||
@@ -43,4 +43,4 @@ import { Endpoint } from "./enums" | ||
async getSources(): Promise<Source[]> { | ||
return (await (this.get<Source[]>('/sources'))).data; | ||
async getSources(): Promise<SourceDetails[]> { | ||
return (await (this.get<SourceDetails[]>('/sources'))).data; | ||
} | ||
@@ -47,0 +47,0 @@ |
@@ -1,4 +0,4 @@ | ||
export {Or, And, Text, Ciks, Tickers, Sources, CategoryCodes} from "./filters"; | ||
export {Api} from "./api" | ||
export {WsApi} from "./wsApi" | ||
export { Or, And, Text, Ciks, Tickers, Sources, CategoryCodes } from "./filters"; | ||
export { Api } from "./api" | ||
export { WsApi } from "./wsApi" | ||
export { | ||
@@ -14,4 +14,6 @@ News, | ||
RestResponseSuccess, | ||
RestResponseError | ||
RestResponseError, | ||
CategoryCode, | ||
SourceDetails | ||
} from "./types" | ||
export {Source, WebsocketMethod, WebsocketResponseType, FilterAction, Field} from "./enums" | ||
export { Source, WebsocketMethod, WebsocketResponseType, FilterAction, Field } from "./enums" |
@@ -157,4 +157,4 @@ import { CloseEvent } from "isomorphic-ws" | ||
export interface Source { | ||
export interface SourceDetails { | ||
code: string | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95358
1898