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) 824 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VisualChangesetsRepository = void 0; const base_repository_1 = require("./base.repository"); const api_1 = require("../generated/api"); class VisualChangesetsRepository extends base_repository_1.BaseRepository { async getVisualChangeset(id, includeExperiment) { const api = this.api(); const result = await api.getVisualChangeset(id, includeExperiment); return result.data; } async listVisualChangesets(experimentId) { const api = this.api(); const result = await api.listVisualChangesets(experimentId); return result.data; } api() { return new api_1.VisualChangesetsApi(this.apiConfig()); } } exports.VisualChangesetsRepository = VisualChangesetsRepository;