@shinkashi/insight-sdk
Version:
Solution Insight SDK for JavaScript
19 lines (18 loc) • 554 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InsightACMPEnvService = void 0;
class InsightACMPEnvService {
constructor(cmp) {
this.cmp = cmp;
}
;
async get() {
//Get Env info from acmp api
const response = await this.cmp.ax.get("/functions/acmp/env");
if (response.status !== 200) {
throw new Error(`API Error ${response.status}: ${response.data}`);
}
return response.data;
}
}
exports.InsightACMPEnvService = InsightACMPEnvService;