UNPKG

growthbook

Version:

The GrowthBook command-line interface (CLI) for working with the GrowthBook A/B testing, feature flagging, and experimentation platform

22 lines (21 loc) 806 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SdkConnectionsRepository = void 0; const base_repository_1 = require("./base.repository"); const api_1 = require("../generated/api"); class SdkConnectionsRepository extends base_repository_1.BaseRepository { async getSdkConnection(id) { const api = this.api(); const result = await api.getSdkConnection(id); return result.data.sdkConnection; } async listSdkConnections(limit, offset, projectId) { const api = this.api(); const result = await api.listSdkConnections(limit, offset, projectId); return result.data; } api() { return new api_1.SdkConnectionsApi(this.apiConfig()); } } exports.SdkConnectionsRepository = SdkConnectionsRepository;