Skip to content

Commit

Permalink
release(0.2.21): Release typescript-fetch SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin committed Nov 18, 2024
1 parent 5d74665 commit 47f8830
Show file tree
Hide file tree
Showing 125 changed files with 139 additions and 126 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## @emergentmethods/asknews-typescript-sdk@0.2.20
## @emergentmethods/asknews-typescript-sdk@0.2.21

Typescript SDK for the AskNews API.
This SDK utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
Expand All @@ -21,7 +21,7 @@ It can be used in both TypeScript and JavaScript. In TypeScript, the definition
### Installation

```
npm install @emergentmethods/[email protected].20 --save
npm install @emergentmethods/[email protected].21 --save
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emergentmethods/asknews-typescript-sdk",
"version": "0.2.20",
"version": "0.2.21",
"description": "Typescript SDK for AskNews API",
"author": "Emergent Methods <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/apis/AnalyticsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/apis/ChatApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/apis/ForecastApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/apis/GraphApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
15 changes: 14 additions & 1 deletion src/apis/NewsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -96,6 +96,7 @@ export interface SearchNewsRequest {
nArticles?: number;
startTimestamp?: number;
endTimestamp?: number;
timeFilter?: SearchNewsTimeFilterEnum;
returnType?: SearchNewsReturnTypeEnum;
historical?: boolean;
method?: SearchNewsMethodEnum;
Expand Down Expand Up @@ -237,6 +238,10 @@ export class NewsApi extends runtime.BaseAPI {
queryParameters['end_timestamp'] = requestParameters['endTimestamp'];
}

if (requestParameters['timeFilter'] != null) {
queryParameters['time_filter'] = requestParameters['timeFilter'];
}

if (requestParameters['returnType'] != null) {
queryParameters['return_type'] = requestParameters['returnType'];
}
Expand Down Expand Up @@ -386,6 +391,14 @@ export const GetSourcesReportSamplingEnum = {
_1d: '1d'
} as const;
export type GetSourcesReportSamplingEnum = typeof GetSourcesReportSamplingEnum[keyof typeof GetSourcesReportSamplingEnum];
/**
* @export
*/
export const SearchNewsTimeFilterEnum = {
CrawlDate: 'crawl_date',
PubDate: 'pub_date'
} as const;
export type SearchNewsTimeFilterEnum = typeof SearchNewsTimeFilterEnum[keyof typeof SearchNewsTimeFilterEnum];
/**
* @export
*/
Expand Down
2 changes: 1 addition & 1 deletion src/apis/PingApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/apis/ProfileApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/apis/RedditApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/apis/StoriesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/apis/WebsearchApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel11.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel12.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel13.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel14.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel15.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel16.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel17.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel18.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel19.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel21.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel22.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel23.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel24.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel25.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel26.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel27.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel28.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel29.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel30.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel31.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel32.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel33.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/models/AbcAPIErrorModel34.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.14.6
* The version of the OpenAPI document: 0.14.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit 47f8830

Please sign in to comment.