// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. import type { AnalysisMethod } from '../model/analysisMethod'; import type { Direction } from '../model/direction'; import type { MetricName } from '../model/metricName'; import type { SaveSettingsRequest } from '../model/saveSettingsRequest'; /** * Properties for the `applyVariantSettings` method. */ export type ApplyVariantSettingsProps = { /** * Unique A/B test identifier. */ id: number; /** * One-based index of the A/B test variant. The control is variant 1. */ variantId: number; }; /** * Properties for the `customDelete` method. */ export type CustomDeleteProps = { /** * Path of the endpoint, for example `1/newFeature`. */ path: string; /** * Query parameters to apply to the current query. */ parameters?: { [key: string]: any } | undefined; }; /** * Properties for the `customGet` method. */ export type CustomGetProps = { /** * Path of the endpoint, for example `1/newFeature`. */ path: string; /** * Query parameters to apply to the current query. */ parameters?: { [key: string]: any } | undefined; }; /** * Properties for the `customPost` method. */ export type CustomPostProps = { /** * Path of the endpoint, for example `1/newFeature`. */ path: string; /** * Query parameters to apply to the current query. */ parameters?: { [key: string]: any } | undefined; /** * Parameters to send with the custom request. */ body?: Record | undefined; }; /** * Properties for the `customPut` method. */ export type CustomPutProps = { /** * Path of the endpoint, for example `1/newFeature`. */ path: string; /** * Query parameters to apply to the current query. */ parameters?: { [key: string]: any } | undefined; /** * Parameters to send with the custom request. */ body?: Record | undefined; }; /** * Properties for the `deleteABTest` method. */ export type DeleteABTestProps = { /** * Unique A/B test identifier. */ id: number; }; /** * Properties for the `getABTest` method. */ export type GetABTestProps = { /** * Unique A/B test identifier. */ id: number; /** * Statistical analysis results to include, as a comma-separated list. When omitted, each test uses its configured method, or `frequentist` if no method is configured. Request both methods to include both sets of available results. This doesn\'t change the test configuration or compute missing results. Duplicate values aren\'t allowed. */ methods?: Array | undefined; }; /** * Properties for the `getABTestSettings` method. */ export type GetABTestSettingsProps = { /** * Unique A/B test identifier. */ id: number; }; /** * Properties for the `getTimeseries` method. */ export type GetTimeseriesProps = { /** * Unique A/B test identifier. */ id: number; /** * Start date of the period to analyze, in `YYYY-MM-DD` format. */ startDate?: string | undefined; /** * End date of the period to analyze, in `YYYY-MM-DD` format. */ endDate?: string | undefined; /** * Metrics to retrieve, as a comma-separated list. If not specified, all metrics are returned. */ metric?: Array | undefined; /** * Statistical analysis results to include, as a comma-separated list. When omitted, each test uses its configured method, or `frequentist` if no method is configured. Request both methods to include both sets of available results. This doesn\'t change the test configuration or compute missing results. Duplicate values aren\'t allowed. */ methods?: Array | undefined; }; /** * Properties for the `listABTests` method. */ export type ListABTestsProps = { /** * Position of the first item to return. */ offset?: number | undefined; /** * Number of items to return. */ limit?: number | undefined; /** * Index name prefix. Only A/B tests for indices starting with this string are included in the response. */ indexPrefix?: string | undefined; /** * Index name suffix. Only A/B tests for indices ending with this string are included in the response. */ indexSuffix?: string | undefined; /** * Sort order for A/B tests by start date. Use \'asc\' for ascending or \'desc\' for descending. Active A/B tests are always listed first. */ direction?: Direction | undefined; /** * Statistical analysis results to include, as a comma-separated list. When omitted, each test uses its configured method, or `frequentist` if no method is configured. Request both methods to include both sets of available results. This doesn\'t change the test configuration or compute missing results. Duplicate values aren\'t allowed. */ methods?: Array | undefined; }; /** * Properties for the `saveVariantSettings` method. */ export type SaveVariantSettingsProps = { /** * Unique A/B test identifier. */ id: number; /** * One-based index of the A/B test variant. The control is variant 1. */ variantId: number; saveSettingsRequest: SaveSettingsRequest; }; /** * Properties for the `stopABTest` method. */ export type StopABTestProps = { /** * Unique A/B test identifier. */ id: number; };