Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Update types/api for latest [email protected] (#2412)
Browse files Browse the repository at this point in the history
  • Loading branch information
veado authored Oct 5, 2022
1 parent b38d661 commit fdc5081
Show file tree
Hide file tree
Showing 54 changed files with 159 additions and 50 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"generate:types": "yarn generate:types:midgard && yarn generate:types:thornode",
"generate:types:midgard": "yarn clean:types:midgard && TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://midgard.ninerealms.com/v2/swagger.json -g typescript-rxjs -o ./src/renderer/types/generated/midgard --reserved-words-mappings in=in --enable-post-process-file",
"clean:types:midgard": "rimraf ./src/renderer/types/generated/midgard",
"generate:types:thornode": "yarn clean:types:thornode && TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.95.0/openapi/openapi.yaml -g typescript-rxjs -o ./src/renderer/types/generated/thornode --enable-post-process-file --skip-validate-spec",
"generate:types:thornode": "yarn clean:types:thornode && TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.97.2/openapi/openapi.yaml -g typescript-rxjs -o ./src/renderer/types/generated/thornode --enable-post-process-file --skip-validate-spec",
"clean:types:thornode": "rimraf ./src/renderer/types/generated/thornode",
"storybook": "sb dev -p 9009 --no-manager-cache",
"build-storybook": "sb build",
Expand Down
67 changes: 67 additions & 0 deletions src/renderer/types/generated/thornode/apis/BucketsApi.ts
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,
});
};

}
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/HealthApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/MimirApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/NetworkApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/NodesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/POLApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/PoolsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/QueueApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/TSSApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/ThornamesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/VaultsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
1 change: 1 addition & 0 deletions src/renderer/types/generated/thornode/apis/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './BucketsApi';
export * from './HealthApi';
export * from './LiquidityProvidersApi';
export * from './MimirApi';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
40 changes: 40 additions & 0 deletions src/renderer/types/generated/thornode/models/Bucket.ts
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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/models/Coin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/models/LastBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/models/MimirVote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/models/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/models/NodeJail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Loading

0 comments on commit fdc5081

Please sign in to comment.