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) 724 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProjectsRepository = void 0; const base_repository_1 = require("./base.repository"); const api_1 = require("../generated/api"); class ProjectsRepository extends base_repository_1.BaseRepository { async getProject(id) { const api = this.api(); const result = await api.getProject(id); return result.data.project; } async listProjects(limit, offset) { const api = this.api(); const result = await api.listProjects(limit, offset); return result.data; } api() { return new api_1.ProjectsApi(this.apiConfig()); } } exports.ProjectsRepository = ProjectsRepository;