/**
 * Cardano Wallet Backend API
 * <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
 *
 * OpenAPI spec version: 2021.3.4
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */ import globalAxios , { AxiosPromise , AxiosInstance } from 'axios' ; import { Configuration } from '../configuration' ; import { BASE_PATH , COLLECTION_FORMATS , RequestArgs , BaseAPI , RequiredError } from '../base' ; import { BadRequest } from '../models' ; import { InlineResponse20016 } from '../models' ; import { NotAcceptable } from '../models' ; export export const UtilsApiAxiosParamCreator = function ( configuration ? ) { return { summary param { string } url param { * } options throws getCurrentSmashHealth : async ( url ? , options = { } ) : Promise < RequestArgs > => { const localVarPath = `/smash/health` ; const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( url !== undefined ) { localVarQueryParameter [ 'url' ] = url ; } const query = new URLSearchParams ( localVarUrlObj . search ) ; for ( const key in localVarQueryParameter ) { query . set ( key , localVarQueryParameter [ key ] ) ; } for ( const key in options . query ) { query . set ( key , options . query [ key ] ) ; } localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : localVarUrlObj . pathname + localVarUrlObj . search + localVarUrlObj . hash , options : localVarRequestOptions , } ; } , } ; } ; export export const UtilsApiFp = function ( configuration ? ) { return { summary param { string } url param { * } options throws async getCurrentSmashHealth ( url ? , options ? ) { const localVarAxiosArgs = await UtilsApiAxiosParamCreator ( configuration ) . getCurrentSmashHealth ( url , options ) ; return ( axios = globalAxios , basePath = BASE_PATH ) => { const axiosRequestArgs = { ... localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ; return axios . request ( axiosRequestArgs ) ; } ; } , } ; } ; export export const UtilsApiFactory = function ( configuration ? , basePath ? , axios ? ) { return { summary param { string } url param { * } options throws getCurrentSmashHealth ( url ? , options ? ) { return UtilsApiFp ( configuration ) . getCurrentSmashHealth ( url , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , } ; } ; export class extends BaseAPI export class UtilsApi extends BaseAPI { summary param { string } url param { * } options throws memberof public getCurrentSmashHealth ( url ? , options ? ) { return UtilsApiFp ( this . configuration ) . getCurrentSmashHealth ( url , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } }