import { BaseResource } from '@gitbeaker/requester-utils'; import { RequestHelper } from '../infrastructure'; import type { BaseRequestOptions, GitlabAPIResponse, PaginationRequestOptions, PaginationTypes, } from '../infrastructure'; export interface ExperimentGateSchema { key: string; value: boolean | number; } export interface ExperimentSchema extends Record { key: string; definition: { name: string; introduced_by_url: string; rollout_issue_url: string; milestone: string; type: string; group: string; default_enabled: boolean; }; current_status: { state: string; gates?: ExperimentGateSchema[]; }; } export class Experiments extends BaseResource { all( options?: PaginationRequestOptions

& BaseRequestOptions, ): Promise> { return RequestHelper.get()(this, 'experiments', options); } }