UNPKG

lambdaorm-client-node

Version:
44 lines 1.78 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.GeneralApiService = void 0; class GeneralApiService { // eslint-disable-next-line no-useless-constructor constructor(generalApi) { this.generalApi = generalApi; } version() { return __awaiter(this, void 0, void 0, function* () { const result = yield this.generalApi.ping(); return result.data; }); } ping() { return __awaiter(this, void 0, void 0, function* () { const result = yield this.generalApi.ping(); return result.data; }); } health() { return __awaiter(this, void 0, void 0, function* () { const result = yield this.generalApi.health(); return result.data; }); } metrics() { return __awaiter(this, void 0, void 0, function* () { const result = yield this.generalApi.metrics(); return result.data; }); } } exports.GeneralApiService = GeneralApiService; //# sourceMappingURL=GeneralApiService.js.map