@goperigon/perigon-ts 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/V1Api.d.ts +1380 -0
- package/dist/apis/V1Api.d.ts.map +1 -0
- package/dist/apis/V1Api.js +1270 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.d.ts.map +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/esm/apis/V1Api.d.ts +1380 -0
- package/dist/esm/apis/V1Api.d.ts.map +1 -0
- package/dist/esm/apis/V1Api.js +1233 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.d.ts.map +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AllEndpointSortBy.d.ts +31 -0
- package/dist/esm/models/AllEndpointSortBy.d.ts.map +1 -0
- package/dist/esm/models/AllEndpointSortBy.js +48 -0
- package/dist/esm/models/Article.d.ts +303 -0
- package/dist/esm/models/Article.d.ts.map +1 -0
- package/dist/esm/models/Article.js +199 -0
- package/dist/esm/models/ArticleSearchFilter.d.ts +286 -0
- package/dist/esm/models/ArticleSearchFilter.d.ts.map +1 -0
- package/dist/esm/models/ArticleSearchFilter.js +150 -0
- package/dist/esm/models/ArticleSearchParams.d.ts +88 -0
- package/dist/esm/models/ArticleSearchParams.d.ts.map +1 -0
- package/dist/esm/models/ArticleSearchParams.js +72 -0
- package/dist/esm/models/AuthException.d.ts +140 -0
- package/dist/esm/models/AuthException.d.ts.map +1 -0
- package/dist/esm/models/AuthException.js +137 -0
- package/dist/esm/models/AuthExceptionCause.d.ts +46 -0
- package/dist/esm/models/AuthExceptionCause.d.ts.map +1 -0
- package/dist/esm/models/AuthExceptionCause.js +50 -0
- package/dist/esm/models/AuthExceptionCauseStackTraceInner.d.ts +75 -0
- package/dist/esm/models/AuthExceptionCauseStackTraceInner.d.ts.map +1 -0
- package/dist/esm/models/AuthExceptionCauseStackTraceInner.js +55 -0
- package/dist/esm/models/AuthExceptionSuppressedInner.d.ts +46 -0
- package/dist/esm/models/AuthExceptionSuppressedInner.d.ts.map +1 -0
- package/dist/esm/models/AuthExceptionSuppressedInner.js +50 -0
- package/dist/esm/models/CategoryHolder.d.ts +33 -0
- package/dist/esm/models/CategoryHolder.d.ts.map +1 -0
- package/dist/esm/models/CategoryHolder.js +41 -0
- package/dist/esm/models/CategoryWithScoreHolder.d.ts +39 -0
- package/dist/esm/models/CategoryWithScoreHolder.d.ts.map +1 -0
- package/dist/esm/models/CategoryWithScoreHolder.js +43 -0
- package/dist/esm/models/Company.d.ts +209 -0
- package/dist/esm/models/Company.d.ts.map +1 -0
- package/dist/esm/models/Company.js +107 -0
- package/dist/esm/models/CompanyCount.d.ts +57 -0
- package/dist/esm/models/CompanyCount.d.ts.map +1 -0
- package/dist/esm/models/CompanyCount.js +49 -0
- package/dist/esm/models/CompanyHolder.d.ts +51 -0
- package/dist/esm/models/CompanyHolder.d.ts.map +1 -0
- package/dist/esm/models/CompanyHolder.js +47 -0
- package/dist/esm/models/CompanySearchResult.d.ts +46 -0
- package/dist/esm/models/CompanySearchResult.d.ts.map +1 -0
- package/dist/esm/models/CompanySearchResult.js +52 -0
- package/dist/esm/models/Coordinate.d.ts +39 -0
- package/dist/esm/models/Coordinate.d.ts.map +1 -0
- package/dist/esm/models/Coordinate.js +43 -0
- package/dist/esm/models/CoordinateFilter.d.ts +45 -0
- package/dist/esm/models/CoordinateFilter.d.ts.map +1 -0
- package/dist/esm/models/CoordinateFilter.js +45 -0
- package/dist/esm/models/EntityHolder.d.ts +45 -0
- package/dist/esm/models/EntityHolder.d.ts.map +1 -0
- package/dist/esm/models/EntityHolder.js +45 -0
- package/dist/esm/models/EventTypeHolder.d.ts +39 -0
- package/dist/esm/models/EventTypeHolder.d.ts.map +1 -0
- package/dist/esm/models/EventTypeHolder.js +43 -0
- package/dist/esm/models/IdNameHolder.d.ts +39 -0
- package/dist/esm/models/IdNameHolder.d.ts.map +1 -0
- package/dist/esm/models/IdNameHolder.js +43 -0
- package/dist/esm/models/IllegalParameterException.d.ts +60 -0
- package/dist/esm/models/IllegalParameterException.d.ts.map +1 -0
- package/dist/esm/models/IllegalParameterException.js +62 -0
- package/dist/esm/models/ImageHolder.d.ts +33 -0
- package/dist/esm/models/ImageHolder.d.ts.map +1 -0
- package/dist/esm/models/ImageHolder.js +41 -0
- package/dist/esm/models/InternalErrorException.d.ts +60 -0
- package/dist/esm/models/InternalErrorException.d.ts.map +1 -0
- package/dist/esm/models/InternalErrorException.js +62 -0
- package/dist/esm/models/InternalErrorExceptionCause.d.ts +46 -0
- package/dist/esm/models/InternalErrorExceptionCause.d.ts.map +1 -0
- package/dist/esm/models/InternalErrorExceptionCause.js +50 -0
- package/dist/esm/models/InternalErrorExceptionCauseStackTraceInner.d.ts +75 -0
- package/dist/esm/models/InternalErrorExceptionCauseStackTraceInner.d.ts.map +1 -0
- package/dist/esm/models/InternalErrorExceptionCauseStackTraceInner.js +55 -0
- package/dist/esm/models/InternalErrorExceptionSuppressedInner.d.ts +46 -0
- package/dist/esm/models/InternalErrorExceptionSuppressedInner.d.ts.map +1 -0
- package/dist/esm/models/InternalErrorExceptionSuppressedInner.js +50 -0
- package/dist/esm/models/Journalist.d.ts +185 -0
- package/dist/esm/models/Journalist.d.ts.map +1 -0
- package/dist/esm/models/Journalist.js +119 -0
- package/dist/esm/models/JournalistSearchResult.d.ts +46 -0
- package/dist/esm/models/JournalistSearchResult.d.ts.map +1 -0
- package/dist/esm/models/JournalistSearchResult.js +52 -0
- package/dist/esm/models/KeyPoint.d.ts +39 -0
- package/dist/esm/models/KeyPoint.d.ts.map +1 -0
- package/dist/esm/models/KeyPoint.js +43 -0
- package/dist/esm/models/KeywordHolder.d.ts +39 -0
- package/dist/esm/models/KeywordHolder.d.ts.map +1 -0
- package/dist/esm/models/KeywordHolder.js +43 -0
- package/dist/esm/models/LabelHolder.d.ts +33 -0
- package/dist/esm/models/LabelHolder.d.ts.map +1 -0
- package/dist/esm/models/LabelHolder.js +41 -0
- package/dist/esm/models/LocationCount.d.ts +57 -0
- package/dist/esm/models/LocationCount.d.ts.map +1 -0
- package/dist/esm/models/LocationCount.js +49 -0
- package/dist/esm/models/LocationHolder.d.ts +57 -0
- package/dist/esm/models/LocationHolder.d.ts.map +1 -0
- package/dist/esm/models/LocationHolder.js +49 -0
- package/dist/esm/models/NameCount.d.ts +39 -0
- package/dist/esm/models/NameCount.d.ts.map +1 -0
- package/dist/esm/models/NameCount.js +43 -0
- package/dist/esm/models/NewsCluster.d.ts +253 -0
- package/dist/esm/models/NewsCluster.d.ts.map +1 -0
- package/dist/esm/models/NewsCluster.js +191 -0
- package/dist/esm/models/NotFoundException.d.ts +60 -0
- package/dist/esm/models/NotFoundException.d.ts.map +1 -0
- package/dist/esm/models/NotFoundException.js +62 -0
- package/dist/esm/models/PeopleSearchResult.d.ts +46 -0
- package/dist/esm/models/PeopleSearchResult.d.ts.map +1 -0
- package/dist/esm/models/PeopleSearchResult.js +52 -0
- package/dist/esm/models/Person.d.ts +116 -0
- package/dist/esm/models/Person.d.ts.map +1 -0
- package/dist/esm/models/Person.js +90 -0
- package/dist/esm/models/PersonCount.d.ts +45 -0
- package/dist/esm/models/PersonCount.d.ts.map +1 -0
- package/dist/esm/models/PersonCount.js +45 -0
- package/dist/esm/models/PersonHolder.d.ts +39 -0
- package/dist/esm/models/PersonHolder.d.ts.map +1 -0
- package/dist/esm/models/PersonHolder.js +43 -0
- package/dist/esm/models/Place.d.ts +118 -0
- package/dist/esm/models/Place.d.ts.map +1 -0
- package/dist/esm/models/Place.js +72 -0
- package/dist/esm/models/QuerySearchResult.d.ts +46 -0
- package/dist/esm/models/QuerySearchResult.d.ts.map +1 -0
- package/dist/esm/models/QuerySearchResult.js +52 -0
- package/dist/esm/models/Question.d.ts +45 -0
- package/dist/esm/models/Question.d.ts.map +1 -0
- package/dist/esm/models/Question.js +45 -0
- package/dist/esm/models/RecordStatHolder.d.ts +39 -0
- package/dist/esm/models/RecordStatHolder.d.ts.map +1 -0
- package/dist/esm/models/RecordStatHolder.js +43 -0
- package/dist/esm/models/ScoredArticle.d.ts +40 -0
- package/dist/esm/models/ScoredArticle.d.ts.map +1 -0
- package/dist/esm/models/ScoredArticle.js +44 -0
- package/dist/esm/models/SentimentHolder.d.ts +45 -0
- package/dist/esm/models/SentimentHolder.d.ts.map +1 -0
- package/dist/esm/models/SentimentHolder.js +45 -0
- package/dist/esm/models/SortBy.d.ts +29 -0
- package/dist/esm/models/SortBy.d.ts.map +1 -0
- package/dist/esm/models/SortBy.js +46 -0
- package/dist/esm/models/Source.d.ts +168 -0
- package/dist/esm/models/Source.d.ts.map +1 -0
- package/dist/esm/models/Source.js +116 -0
- package/dist/esm/models/SourceHolder.d.ts +46 -0
- package/dist/esm/models/SourceHolder.d.ts.map +1 -0
- package/dist/esm/models/SourceHolder.js +48 -0
- package/dist/esm/models/SourceLocation.d.ts +58 -0
- package/dist/esm/models/SourceLocation.d.ts.map +1 -0
- package/dist/esm/models/SourceLocation.js +52 -0
- package/dist/esm/models/SourceSearchResult.d.ts +46 -0
- package/dist/esm/models/SourceSearchResult.d.ts.map +1 -0
- package/dist/esm/models/SourceSearchResult.js +52 -0
- package/dist/esm/models/SourceTopStatHolder.d.ts +39 -0
- package/dist/esm/models/SourceTopStatHolder.d.ts.map +1 -0
- package/dist/esm/models/SourceTopStatHolder.js +43 -0
- package/dist/esm/models/StorySearchResult.d.ts +46 -0
- package/dist/esm/models/StorySearchResult.d.ts.map +1 -0
- package/dist/esm/models/StorySearchResult.js +52 -0
- package/dist/esm/models/SummaryBody.d.ts +111 -0
- package/dist/esm/models/SummaryBody.d.ts.map +1 -0
- package/dist/esm/models/SummaryBody.js +86 -0
- package/dist/esm/models/SummarySearchResult.d.ts +52 -0
- package/dist/esm/models/SummarySearchResult.d.ts.map +1 -0
- package/dist/esm/models/SummarySearchResult.js +56 -0
- package/dist/esm/models/SymbolHolder.d.ts +51 -0
- package/dist/esm/models/SymbolHolder.d.ts.map +1 -0
- package/dist/esm/models/SymbolHolder.js +47 -0
- package/dist/esm/models/TooManyRequestsException.d.ts +140 -0
- package/dist/esm/models/TooManyRequestsException.d.ts.map +1 -0
- package/dist/esm/models/TooManyRequestsException.js +137 -0
- package/dist/esm/models/TooManyRequestsExceptionCause.d.ts +46 -0
- package/dist/esm/models/TooManyRequestsExceptionCause.d.ts.map +1 -0
- package/dist/esm/models/TooManyRequestsExceptionCause.js +50 -0
- package/dist/esm/models/TooManyRequestsExceptionCauseStackTraceInner.d.ts +75 -0
- package/dist/esm/models/TooManyRequestsExceptionCauseStackTraceInner.d.ts.map +1 -0
- package/dist/esm/models/TooManyRequestsExceptionCauseStackTraceInner.js +55 -0
- package/dist/esm/models/TooManyRequestsExceptionSuppressedInner.d.ts +46 -0
- package/dist/esm/models/TooManyRequestsExceptionSuppressedInner.d.ts.map +1 -0
- package/dist/esm/models/TooManyRequestsExceptionSuppressedInner.js +50 -0
- package/dist/esm/models/TopicDto.d.ts +58 -0
- package/dist/esm/models/TopicDto.d.ts.map +1 -0
- package/dist/esm/models/TopicDto.js +54 -0
- package/dist/esm/models/TopicHolder.d.ts +33 -0
- package/dist/esm/models/TopicHolder.d.ts.map +1 -0
- package/dist/esm/models/TopicHolder.js +41 -0
- package/dist/esm/models/TopicLabels.d.ts +39 -0
- package/dist/esm/models/TopicLabels.d.ts.map +1 -0
- package/dist/esm/models/TopicLabels.js +43 -0
- package/dist/esm/models/TopicSearchResult.d.ts +40 -0
- package/dist/esm/models/TopicSearchResult.d.ts.map +1 -0
- package/dist/esm/models/TopicSearchResult.js +48 -0
- package/dist/esm/models/VectorSearchResult.d.ts +40 -0
- package/dist/esm/models/VectorSearchResult.d.ts.map +1 -0
- package/dist/esm/models/VectorSearchResult.js +48 -0
- package/dist/esm/models/WebResources.d.ts +129 -0
- package/dist/esm/models/WebResources.d.ts.map +1 -0
- package/dist/esm/models/WebResources.js +73 -0
- package/dist/esm/models/WikidataDateHolder.d.ts +39 -0
- package/dist/esm/models/WikidataDateHolder.d.ts.map +1 -0
- package/dist/esm/models/WikidataDateHolder.js +43 -0
- package/dist/esm/models/WikidataLabelHolder.d.ts +39 -0
- package/dist/esm/models/WikidataLabelHolder.d.ts.map +1 -0
- package/dist/esm/models/WikidataLabelHolder.js +43 -0
- package/dist/esm/models/WikidataPoliticalPartyHolder.d.ts +52 -0
- package/dist/esm/models/WikidataPoliticalPartyHolder.d.ts.map +1 -0
- package/dist/esm/models/WikidataPoliticalPartyHolder.js +52 -0
- package/dist/esm/models/WikidataPositionHolder.d.ts +59 -0
- package/dist/esm/models/WikidataPositionHolder.d.ts.map +1 -0
- package/dist/esm/models/WikidataPositionHolder.js +57 -0
- package/dist/esm/models/index.d.ts +64 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +65 -0
- package/dist/esm/runtime.d.ts +180 -0
- package/dist/esm/runtime.d.ts.map +1 -0
- package/dist/esm/runtime.js +322 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/models/AllEndpointSortBy.d.ts +31 -0
- package/dist/models/AllEndpointSortBy.d.ts.map +1 -0
- package/dist/models/AllEndpointSortBy.js +56 -0
- package/dist/models/Article.d.ts +303 -0
- package/dist/models/Article.d.ts.map +1 -0
- package/dist/models/Article.js +206 -0
- package/dist/models/ArticleSearchFilter.d.ts +286 -0
- package/dist/models/ArticleSearchFilter.d.ts.map +1 -0
- package/dist/models/ArticleSearchFilter.js +157 -0
- package/dist/models/ArticleSearchParams.d.ts +88 -0
- package/dist/models/ArticleSearchParams.d.ts.map +1 -0
- package/dist/models/ArticleSearchParams.js +79 -0
- package/dist/models/AuthException.d.ts +140 -0
- package/dist/models/AuthException.d.ts.map +1 -0
- package/dist/models/AuthException.js +145 -0
- package/dist/models/AuthExceptionCause.d.ts +46 -0
- package/dist/models/AuthExceptionCause.d.ts.map +1 -0
- package/dist/models/AuthExceptionCause.js +57 -0
- package/dist/models/AuthExceptionCauseStackTraceInner.d.ts +75 -0
- package/dist/models/AuthExceptionCauseStackTraceInner.d.ts.map +1 -0
- package/dist/models/AuthExceptionCauseStackTraceInner.js +62 -0
- package/dist/models/AuthExceptionSuppressedInner.d.ts +46 -0
- package/dist/models/AuthExceptionSuppressedInner.d.ts.map +1 -0
- package/dist/models/AuthExceptionSuppressedInner.js +57 -0
- package/dist/models/CategoryHolder.d.ts +33 -0
- package/dist/models/CategoryHolder.d.ts.map +1 -0
- package/dist/models/CategoryHolder.js +48 -0
- package/dist/models/CategoryWithScoreHolder.d.ts +39 -0
- package/dist/models/CategoryWithScoreHolder.d.ts.map +1 -0
- package/dist/models/CategoryWithScoreHolder.js +50 -0
- package/dist/models/Company.d.ts +209 -0
- package/dist/models/Company.d.ts.map +1 -0
- package/dist/models/Company.js +114 -0
- package/dist/models/CompanyCount.d.ts +57 -0
- package/dist/models/CompanyCount.d.ts.map +1 -0
- package/dist/models/CompanyCount.js +56 -0
- package/dist/models/CompanyHolder.d.ts +51 -0
- package/dist/models/CompanyHolder.d.ts.map +1 -0
- package/dist/models/CompanyHolder.js +54 -0
- package/dist/models/CompanySearchResult.d.ts +46 -0
- package/dist/models/CompanySearchResult.d.ts.map +1 -0
- package/dist/models/CompanySearchResult.js +59 -0
- package/dist/models/Coordinate.d.ts +39 -0
- package/dist/models/Coordinate.d.ts.map +1 -0
- package/dist/models/Coordinate.js +50 -0
- package/dist/models/CoordinateFilter.d.ts +45 -0
- package/dist/models/CoordinateFilter.d.ts.map +1 -0
- package/dist/models/CoordinateFilter.js +52 -0
- package/dist/models/EntityHolder.d.ts +45 -0
- package/dist/models/EntityHolder.d.ts.map +1 -0
- package/dist/models/EntityHolder.js +52 -0
- package/dist/models/EventTypeHolder.d.ts +39 -0
- package/dist/models/EventTypeHolder.d.ts.map +1 -0
- package/dist/models/EventTypeHolder.js +50 -0
- package/dist/models/IdNameHolder.d.ts +39 -0
- package/dist/models/IdNameHolder.d.ts.map +1 -0
- package/dist/models/IdNameHolder.js +50 -0
- package/dist/models/IllegalParameterException.d.ts +60 -0
- package/dist/models/IllegalParameterException.d.ts.map +1 -0
- package/dist/models/IllegalParameterException.js +69 -0
- package/dist/models/ImageHolder.d.ts +33 -0
- package/dist/models/ImageHolder.d.ts.map +1 -0
- package/dist/models/ImageHolder.js +48 -0
- package/dist/models/InternalErrorException.d.ts +60 -0
- package/dist/models/InternalErrorException.d.ts.map +1 -0
- package/dist/models/InternalErrorException.js +69 -0
- package/dist/models/InternalErrorExceptionCause.d.ts +46 -0
- package/dist/models/InternalErrorExceptionCause.d.ts.map +1 -0
- package/dist/models/InternalErrorExceptionCause.js +57 -0
- package/dist/models/InternalErrorExceptionCauseStackTraceInner.d.ts +75 -0
- package/dist/models/InternalErrorExceptionCauseStackTraceInner.d.ts.map +1 -0
- package/dist/models/InternalErrorExceptionCauseStackTraceInner.js +62 -0
- package/dist/models/InternalErrorExceptionSuppressedInner.d.ts +46 -0
- package/dist/models/InternalErrorExceptionSuppressedInner.d.ts.map +1 -0
- package/dist/models/InternalErrorExceptionSuppressedInner.js +57 -0
- package/dist/models/Journalist.d.ts +185 -0
- package/dist/models/Journalist.d.ts.map +1 -0
- package/dist/models/Journalist.js +126 -0
- package/dist/models/JournalistSearchResult.d.ts +46 -0
- package/dist/models/JournalistSearchResult.d.ts.map +1 -0
- package/dist/models/JournalistSearchResult.js +59 -0
- package/dist/models/KeyPoint.d.ts +39 -0
- package/dist/models/KeyPoint.d.ts.map +1 -0
- package/dist/models/KeyPoint.js +50 -0
- package/dist/models/KeywordHolder.d.ts +39 -0
- package/dist/models/KeywordHolder.d.ts.map +1 -0
- package/dist/models/KeywordHolder.js +50 -0
- package/dist/models/LabelHolder.d.ts +33 -0
- package/dist/models/LabelHolder.d.ts.map +1 -0
- package/dist/models/LabelHolder.js +48 -0
- package/dist/models/LocationCount.d.ts +57 -0
- package/dist/models/LocationCount.d.ts.map +1 -0
- package/dist/models/LocationCount.js +56 -0
- package/dist/models/LocationHolder.d.ts +57 -0
- package/dist/models/LocationHolder.d.ts.map +1 -0
- package/dist/models/LocationHolder.js +56 -0
- package/dist/models/NameCount.d.ts +39 -0
- package/dist/models/NameCount.d.ts.map +1 -0
- package/dist/models/NameCount.js +50 -0
- package/dist/models/NewsCluster.d.ts +253 -0
- package/dist/models/NewsCluster.d.ts.map +1 -0
- package/dist/models/NewsCluster.js +198 -0
- package/dist/models/NotFoundException.d.ts +60 -0
- package/dist/models/NotFoundException.d.ts.map +1 -0
- package/dist/models/NotFoundException.js +69 -0
- package/dist/models/PeopleSearchResult.d.ts +46 -0
- package/dist/models/PeopleSearchResult.d.ts.map +1 -0
- package/dist/models/PeopleSearchResult.js +59 -0
- package/dist/models/Person.d.ts +116 -0
- package/dist/models/Person.d.ts.map +1 -0
- package/dist/models/Person.js +97 -0
- package/dist/models/PersonCount.d.ts +45 -0
- package/dist/models/PersonCount.d.ts.map +1 -0
- package/dist/models/PersonCount.js +52 -0
- package/dist/models/PersonHolder.d.ts +39 -0
- package/dist/models/PersonHolder.d.ts.map +1 -0
- package/dist/models/PersonHolder.js +50 -0
- package/dist/models/Place.d.ts +118 -0
- package/dist/models/Place.d.ts.map +1 -0
- package/dist/models/Place.js +79 -0
- package/dist/models/QuerySearchResult.d.ts +46 -0
- package/dist/models/QuerySearchResult.d.ts.map +1 -0
- package/dist/models/QuerySearchResult.js +59 -0
- package/dist/models/Question.d.ts +45 -0
- package/dist/models/Question.d.ts.map +1 -0
- package/dist/models/Question.js +52 -0
- package/dist/models/RecordStatHolder.d.ts +39 -0
- package/dist/models/RecordStatHolder.d.ts.map +1 -0
- package/dist/models/RecordStatHolder.js +50 -0
- package/dist/models/ScoredArticle.d.ts +40 -0
- package/dist/models/ScoredArticle.d.ts.map +1 -0
- package/dist/models/ScoredArticle.js +51 -0
- package/dist/models/SentimentHolder.d.ts +45 -0
- package/dist/models/SentimentHolder.d.ts.map +1 -0
- package/dist/models/SentimentHolder.js +52 -0
- package/dist/models/SortBy.d.ts +29 -0
- package/dist/models/SortBy.d.ts.map +1 -0
- package/dist/models/SortBy.js +54 -0
- package/dist/models/Source.d.ts +168 -0
- package/dist/models/Source.d.ts.map +1 -0
- package/dist/models/Source.js +123 -0
- package/dist/models/SourceHolder.d.ts +46 -0
- package/dist/models/SourceHolder.d.ts.map +1 -0
- package/dist/models/SourceHolder.js +55 -0
- package/dist/models/SourceLocation.d.ts +58 -0
- package/dist/models/SourceLocation.d.ts.map +1 -0
- package/dist/models/SourceLocation.js +59 -0
- package/dist/models/SourceSearchResult.d.ts +46 -0
- package/dist/models/SourceSearchResult.d.ts.map +1 -0
- package/dist/models/SourceSearchResult.js +59 -0
- package/dist/models/SourceTopStatHolder.d.ts +39 -0
- package/dist/models/SourceTopStatHolder.d.ts.map +1 -0
- package/dist/models/SourceTopStatHolder.js +50 -0
- package/dist/models/StorySearchResult.d.ts +46 -0
- package/dist/models/StorySearchResult.d.ts.map +1 -0
- package/dist/models/StorySearchResult.js +59 -0
- package/dist/models/SummaryBody.d.ts +111 -0
- package/dist/models/SummaryBody.d.ts.map +1 -0
- package/dist/models/SummaryBody.js +94 -0
- package/dist/models/SummarySearchResult.d.ts +52 -0
- package/dist/models/SummarySearchResult.d.ts.map +1 -0
- package/dist/models/SummarySearchResult.js +63 -0
- package/dist/models/SymbolHolder.d.ts +51 -0
- package/dist/models/SymbolHolder.d.ts.map +1 -0
- package/dist/models/SymbolHolder.js +54 -0
- package/dist/models/TooManyRequestsException.d.ts +140 -0
- package/dist/models/TooManyRequestsException.d.ts.map +1 -0
- package/dist/models/TooManyRequestsException.js +145 -0
- package/dist/models/TooManyRequestsExceptionCause.d.ts +46 -0
- package/dist/models/TooManyRequestsExceptionCause.d.ts.map +1 -0
- package/dist/models/TooManyRequestsExceptionCause.js +57 -0
- package/dist/models/TooManyRequestsExceptionCauseStackTraceInner.d.ts +75 -0
- package/dist/models/TooManyRequestsExceptionCauseStackTraceInner.d.ts.map +1 -0
- package/dist/models/TooManyRequestsExceptionCauseStackTraceInner.js +62 -0
- package/dist/models/TooManyRequestsExceptionSuppressedInner.d.ts +46 -0
- package/dist/models/TooManyRequestsExceptionSuppressedInner.d.ts.map +1 -0
- package/dist/models/TooManyRequestsExceptionSuppressedInner.js +57 -0
- package/dist/models/TopicDto.d.ts +58 -0
- package/dist/models/TopicDto.d.ts.map +1 -0
- package/dist/models/TopicDto.js +61 -0
- package/dist/models/TopicHolder.d.ts +33 -0
- package/dist/models/TopicHolder.d.ts.map +1 -0
- package/dist/models/TopicHolder.js +48 -0
- package/dist/models/TopicLabels.d.ts +39 -0
- package/dist/models/TopicLabels.d.ts.map +1 -0
- package/dist/models/TopicLabels.js +50 -0
- package/dist/models/TopicSearchResult.d.ts +40 -0
- package/dist/models/TopicSearchResult.d.ts.map +1 -0
- package/dist/models/TopicSearchResult.js +55 -0
- package/dist/models/VectorSearchResult.d.ts +40 -0
- package/dist/models/VectorSearchResult.d.ts.map +1 -0
- package/dist/models/VectorSearchResult.js +55 -0
- package/dist/models/WebResources.d.ts +129 -0
- package/dist/models/WebResources.d.ts.map +1 -0
- package/dist/models/WebResources.js +80 -0
- package/dist/models/WikidataDateHolder.d.ts +39 -0
- package/dist/models/WikidataDateHolder.d.ts.map +1 -0
- package/dist/models/WikidataDateHolder.js +50 -0
- package/dist/models/WikidataLabelHolder.d.ts +39 -0
- package/dist/models/WikidataLabelHolder.d.ts.map +1 -0
- package/dist/models/WikidataLabelHolder.js +50 -0
- package/dist/models/WikidataPoliticalPartyHolder.d.ts +52 -0
- package/dist/models/WikidataPoliticalPartyHolder.d.ts.map +1 -0
- package/dist/models/WikidataPoliticalPartyHolder.js +59 -0
- package/dist/models/WikidataPositionHolder.d.ts +59 -0
- package/dist/models/WikidataPositionHolder.d.ts.map +1 -0
- package/dist/models/WikidataPositionHolder.js +64 -0
- package/dist/models/index.d.ts +64 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +81 -0
- package/dist/runtime.d.ts +180 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +338 -0
- package/package.json +6 -1
package/dist/runtime.js
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Perigon API
|
|
6
|
+
* The Perigon API provides access to comprehensive news and web content data. To use the API, simply sign up for a Perigon Business Solutions account to obtain your API key. Your available features may vary based on your plan. See the Authentication section for details on how to use your API key.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: data@perigon.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
|
|
26
|
+
exports.querystring = querystring;
|
|
27
|
+
exports.exists = exists;
|
|
28
|
+
exports.mapValues = mapValues;
|
|
29
|
+
exports.canConsumeForm = canConsumeForm;
|
|
30
|
+
exports.BASE_PATH = "https://api.perigon.io".replace(/\/+$/, "");
|
|
31
|
+
class Configuration {
|
|
32
|
+
constructor(configuration = {}) {
|
|
33
|
+
this.configuration = configuration;
|
|
34
|
+
}
|
|
35
|
+
set config(configuration) {
|
|
36
|
+
this.configuration = configuration;
|
|
37
|
+
}
|
|
38
|
+
get basePath() {
|
|
39
|
+
var _a;
|
|
40
|
+
return (_a = this.configuration.basePath) !== null && _a !== void 0 ? _a : exports.BASE_PATH;
|
|
41
|
+
}
|
|
42
|
+
get fetchApi() {
|
|
43
|
+
return this.configuration.fetchApi;
|
|
44
|
+
}
|
|
45
|
+
get middleware() {
|
|
46
|
+
return this.configuration.middleware || [];
|
|
47
|
+
}
|
|
48
|
+
get queryParamsStringify() {
|
|
49
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
50
|
+
}
|
|
51
|
+
/* ---------- bearer / oauth2 - */
|
|
52
|
+
get accessToken() {
|
|
53
|
+
const t = this.configuration.apiKey;
|
|
54
|
+
return t ? (typeof t === "function" ? t : () => __awaiter(this, void 0, void 0, function* () { return t; })) : undefined;
|
|
55
|
+
}
|
|
56
|
+
get headers() {
|
|
57
|
+
return this.configuration.headers;
|
|
58
|
+
}
|
|
59
|
+
get credentials() {
|
|
60
|
+
return this.configuration.credentials;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.Configuration = Configuration;
|
|
64
|
+
exports.DefaultConfig = new Configuration();
|
|
65
|
+
/**
|
|
66
|
+
* This is the base class for all generated API classes.
|
|
67
|
+
*/
|
|
68
|
+
class BaseAPI {
|
|
69
|
+
constructor(configuration = exports.DefaultConfig) {
|
|
70
|
+
this.configuration = configuration;
|
|
71
|
+
this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
let fetchParams = { url, init };
|
|
73
|
+
for (const middleware of this.middleware) {
|
|
74
|
+
if (middleware.pre) {
|
|
75
|
+
fetchParams =
|
|
76
|
+
(yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
let response = undefined;
|
|
80
|
+
try {
|
|
81
|
+
response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
82
|
+
}
|
|
83
|
+
catch (e) {
|
|
84
|
+
for (const middleware of this.middleware) {
|
|
85
|
+
if (middleware.onError) {
|
|
86
|
+
response =
|
|
87
|
+
(yield middleware.onError({
|
|
88
|
+
fetch: this.fetchApi,
|
|
89
|
+
url: fetchParams.url,
|
|
90
|
+
init: fetchParams.init,
|
|
91
|
+
error: e,
|
|
92
|
+
response: response ? response.clone() : undefined,
|
|
93
|
+
})) || response;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if (response === undefined) {
|
|
97
|
+
if (e instanceof Error) {
|
|
98
|
+
throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
throw e;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
for (const middleware of this.middleware) {
|
|
106
|
+
if (middleware.post) {
|
|
107
|
+
response =
|
|
108
|
+
(yield middleware.post({
|
|
109
|
+
fetch: this.fetchApi,
|
|
110
|
+
url: fetchParams.url,
|
|
111
|
+
init: fetchParams.init,
|
|
112
|
+
response: response.clone(),
|
|
113
|
+
})) || response;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return response;
|
|
117
|
+
});
|
|
118
|
+
this.middleware = configuration.middleware;
|
|
119
|
+
}
|
|
120
|
+
withMiddleware(...middlewares) {
|
|
121
|
+
const next = this.clone();
|
|
122
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
123
|
+
return next;
|
|
124
|
+
}
|
|
125
|
+
withPreMiddleware(...preMiddlewares) {
|
|
126
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
127
|
+
return this.withMiddleware(...middlewares);
|
|
128
|
+
}
|
|
129
|
+
withPostMiddleware(...postMiddlewares) {
|
|
130
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
131
|
+
return this.withMiddleware(...middlewares);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Check if the given MIME is a JSON MIME.
|
|
135
|
+
* JSON MIME examples:
|
|
136
|
+
* application/json
|
|
137
|
+
* application/json; charset=UTF8
|
|
138
|
+
* APPLICATION/JSON
|
|
139
|
+
* application/vnd.company+json
|
|
140
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
141
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
142
|
+
*/
|
|
143
|
+
isJsonMime(mime) {
|
|
144
|
+
if (!mime) {
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
147
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
148
|
+
}
|
|
149
|
+
request(context, initOverrides) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
const { url, init } = yield this.createFetchParams(context, initOverrides);
|
|
152
|
+
const response = yield this.fetchApi(url, init);
|
|
153
|
+
if (response && response.status >= 200 && response.status < 300) {
|
|
154
|
+
return response;
|
|
155
|
+
}
|
|
156
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
createFetchParams(context, initOverrides) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
let url = this.configuration.basePath + context.path;
|
|
162
|
+
if (context.query !== undefined &&
|
|
163
|
+
Object.keys(context.query).length !== 0) {
|
|
164
|
+
// only add the querystring to the URL if there are query parameters.
|
|
165
|
+
// this is done to avoid urls ending with a "?" character which buggy webservers
|
|
166
|
+
// do not handle correctly sometimes.
|
|
167
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
168
|
+
}
|
|
169
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
170
|
+
Object.keys(headers).forEach((key) => headers[key] === undefined ? delete headers[key] : {});
|
|
171
|
+
const initOverrideFn = typeof initOverrides === "function"
|
|
172
|
+
? initOverrides
|
|
173
|
+
: () => __awaiter(this, void 0, void 0, function* () { return initOverrides; });
|
|
174
|
+
const initParams = {
|
|
175
|
+
method: context.method,
|
|
176
|
+
headers,
|
|
177
|
+
body: context.body,
|
|
178
|
+
credentials: this.configuration.credentials,
|
|
179
|
+
};
|
|
180
|
+
const overriddenInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({
|
|
181
|
+
init: initParams,
|
|
182
|
+
context,
|
|
183
|
+
})));
|
|
184
|
+
let body;
|
|
185
|
+
if (isFormData(overriddenInit.body) ||
|
|
186
|
+
overriddenInit.body instanceof URLSearchParams ||
|
|
187
|
+
isBlob(overriddenInit.body)) {
|
|
188
|
+
body = overriddenInit.body;
|
|
189
|
+
}
|
|
190
|
+
else if (this.isJsonMime(headers["Content-Type"])) {
|
|
191
|
+
body = JSON.stringify(overriddenInit.body);
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
body = overriddenInit.body;
|
|
195
|
+
}
|
|
196
|
+
const init = Object.assign(Object.assign({}, overriddenInit), { body });
|
|
197
|
+
return { url, init };
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
202
|
+
* and then shallow cloning data members.
|
|
203
|
+
*/
|
|
204
|
+
clone() {
|
|
205
|
+
const constructor = this.constructor;
|
|
206
|
+
const next = new constructor(this.configuration);
|
|
207
|
+
next.middleware = this.middleware.slice();
|
|
208
|
+
return next;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
exports.BaseAPI = BaseAPI;
|
|
212
|
+
BaseAPI.jsonRegex = new RegExp("^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
213
|
+
function isBlob(value) {
|
|
214
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
215
|
+
}
|
|
216
|
+
function isFormData(value) {
|
|
217
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
218
|
+
}
|
|
219
|
+
class ResponseError extends Error {
|
|
220
|
+
constructor(response, msg) {
|
|
221
|
+
super(msg);
|
|
222
|
+
this.response = response;
|
|
223
|
+
this.name = "ResponseError";
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
exports.ResponseError = ResponseError;
|
|
227
|
+
class FetchError extends Error {
|
|
228
|
+
constructor(cause, msg) {
|
|
229
|
+
super(msg);
|
|
230
|
+
this.cause = cause;
|
|
231
|
+
this.name = "FetchError";
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
exports.FetchError = FetchError;
|
|
235
|
+
class RequiredError extends Error {
|
|
236
|
+
constructor(field, msg) {
|
|
237
|
+
super(msg);
|
|
238
|
+
this.field = field;
|
|
239
|
+
this.name = "RequiredError";
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
exports.RequiredError = RequiredError;
|
|
243
|
+
exports.COLLECTION_FORMATS = {
|
|
244
|
+
csv: ",",
|
|
245
|
+
ssv: " ",
|
|
246
|
+
tsv: "\t",
|
|
247
|
+
pipes: "|",
|
|
248
|
+
};
|
|
249
|
+
function querystring(params, prefix = "") {
|
|
250
|
+
return Object.keys(params)
|
|
251
|
+
.map((key) => querystringSingleKey(key, params[key], prefix))
|
|
252
|
+
.filter((part) => part.length > 0)
|
|
253
|
+
.join("&");
|
|
254
|
+
}
|
|
255
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
256
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
257
|
+
if (value instanceof Array) {
|
|
258
|
+
const multiValue = value
|
|
259
|
+
.map((singleValue) => encodeURIComponent(String(singleValue)))
|
|
260
|
+
.join(`&${encodeURIComponent(fullKey)}=`);
|
|
261
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
262
|
+
}
|
|
263
|
+
if (value instanceof Set) {
|
|
264
|
+
const valueAsArray = Array.from(value);
|
|
265
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
266
|
+
}
|
|
267
|
+
if (value instanceof Date) {
|
|
268
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
269
|
+
}
|
|
270
|
+
if (value instanceof Object) {
|
|
271
|
+
return querystring(value, fullKey);
|
|
272
|
+
}
|
|
273
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
274
|
+
}
|
|
275
|
+
function exists(json, key) {
|
|
276
|
+
const value = json[key];
|
|
277
|
+
return value !== null && value !== undefined;
|
|
278
|
+
}
|
|
279
|
+
function mapValues(data, fn) {
|
|
280
|
+
const result = {};
|
|
281
|
+
for (const key of Object.keys(data)) {
|
|
282
|
+
result[key] = fn(data[key]);
|
|
283
|
+
}
|
|
284
|
+
return result;
|
|
285
|
+
}
|
|
286
|
+
function canConsumeForm(consumes) {
|
|
287
|
+
for (const consume of consumes) {
|
|
288
|
+
if ("multipart/form-data" === consume.contentType) {
|
|
289
|
+
return true;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
return false;
|
|
293
|
+
}
|
|
294
|
+
class JSONApiResponse {
|
|
295
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
296
|
+
this.raw = raw;
|
|
297
|
+
this.transformer = transformer;
|
|
298
|
+
}
|
|
299
|
+
value() {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
return this.transformer(yield this.raw.json());
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
exports.JSONApiResponse = JSONApiResponse;
|
|
306
|
+
class VoidApiResponse {
|
|
307
|
+
constructor(raw) {
|
|
308
|
+
this.raw = raw;
|
|
309
|
+
}
|
|
310
|
+
value() {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
312
|
+
return undefined;
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
exports.VoidApiResponse = VoidApiResponse;
|
|
317
|
+
class BlobApiResponse {
|
|
318
|
+
constructor(raw) {
|
|
319
|
+
this.raw = raw;
|
|
320
|
+
}
|
|
321
|
+
value() {
|
|
322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
323
|
+
return yield this.raw.blob();
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
exports.BlobApiResponse = BlobApiResponse;
|
|
328
|
+
class TextApiResponse {
|
|
329
|
+
constructor(raw) {
|
|
330
|
+
this.raw = raw;
|
|
331
|
+
}
|
|
332
|
+
value() {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
return yield this.raw.text();
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
exports.TextApiResponse = TextApiResponse;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goperigon/perigon-ts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "OpenAPI client for @goperigon/perigon-ts",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"repository": {
|
|
@@ -12,6 +12,11 @@
|
|
|
12
12
|
"typings": "./dist/index.d.ts",
|
|
13
13
|
"module": "./dist/esm/index.js",
|
|
14
14
|
"sideEffects": false,
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
15
20
|
"scripts": {
|
|
16
21
|
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
17
22
|
"test": "jest --coverage",
|