This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update types/api for latest [email protected] (#2412)
- Loading branch information
Showing
54 changed files
with
159 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// tslint:disable | ||
/** | ||
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { Observable } from 'rxjs'; | ||
import { BaseAPI, HttpQuery, throwIfNullOrUndefined, encodeURI } from '../runtime'; | ||
import { | ||
Bucket, | ||
} from '../models'; | ||
|
||
export interface BucketRequest { | ||
asset: string; | ||
height?: number; | ||
} | ||
|
||
export interface BucketsRequest { | ||
height?: number; | ||
} | ||
|
||
/** | ||
* no description | ||
*/ | ||
export class BucketsApi extends BaseAPI { | ||
|
||
/** | ||
* Returns the bucket information for the provided asset. | ||
*/ | ||
bucket = ({ asset, height }: BucketRequest): Observable<Bucket> => { | ||
throwIfNullOrUndefined(asset, 'bucket'); | ||
|
||
const query: HttpQuery = {}; | ||
|
||
if (height != null) { query['height'] = height; } | ||
|
||
return this.request<Bucket>({ | ||
path: '/thorchain/bucket/{asset}'.replace('{asset}', encodeURI(asset)), | ||
method: 'GET', | ||
query, | ||
}); | ||
}; | ||
|
||
/** | ||
* Returns the bucket information for all assets. | ||
*/ | ||
buckets = ({ height }: BucketsRequest): Observable<Array<Bucket>> => { | ||
|
||
const query: HttpQuery = {}; | ||
|
||
if (height != null) { query['height'] = height; } | ||
|
||
return this.request<Array<Bucket>>({ | ||
path: '/thorchain/buckets', | ||
method: 'GET', | ||
query, | ||
}); | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// tslint:disable | ||
/** | ||
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
/** | ||
* @export | ||
* @interface Bucket | ||
*/ | ||
export interface Bucket { | ||
/** | ||
* @type {string} | ||
* @memberof Bucket | ||
*/ | ||
balance_asset: string; | ||
/** | ||
* @type {string} | ||
* @memberof Bucket | ||
*/ | ||
asset: string; | ||
/** | ||
* the total pool liquidity provider units | ||
* @type {string} | ||
* @memberof Bucket | ||
*/ | ||
LP_units: string; | ||
/** | ||
* @type {string} | ||
* @memberof Bucket | ||
*/ | ||
status: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Thornode API | ||
* Thornode REST API. | ||
* | ||
* The version of the OpenAPI document: 1.89.0 | ||
* The version of the OpenAPI document: 1.97.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
Oops, something went wrong.