UNPKG

nmkr-studio-api

Version:

Typesafe API Client to work with the NMKR Studio V2 API

40 lines 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MiscService = void 0; class MiscService { constructor(httpRequest) { this.httpRequest = httpRequest; } /** * Returns a list of current or upcoming mints * @returns PublicMintsClass Returns an array of PublicMintsClass * @throws ApiError */ getV2GetPublicMints() { return this.httpRequest.request({ method: 'GET', url: '/v2/GetPublicMints', errors: { 429: `Too Many Requests`, 500: `Internal Server Error`, }, }); } /** * Returns a the State of the Servers * @returns ServerStateClass Returns an array of ServerStateClass * @throws ApiError */ getV2GetServerState() { return this.httpRequest.request({ method: 'GET', url: '/v2/GetServerState', errors: { 429: `Too Many Requests`, 500: `Internal Server Error`, }, }); } } exports.MiscService = MiscService; //# sourceMappingURL=MiscService.js.map