UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

23 lines 922 B
import * as runtime from '../runtime.js'; import { GetAccountFromJSON } from '../models/index.js'; export class AccountApi extends runtime.BaseAPI { async getAccountRaw(initOverrides) { const queryParameters = {}; const headerParameters = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['api-key'] = await this.configuration.apiKey('api-key'); } const response = await this.request({ path: `/account`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => GetAccountFromJSON(jsonValue)); } async getAccount(initOverrides) { const response = await this.getAccountRaw(initOverrides); return await response.value(); } } //# sourceMappingURL=AccountApi.js.map