Skip to content

Commit f2925e8

Browse files
feat(specs): add user metrics to abtesting-v3 timeseries enum (generated)
algolia/api-clients-automation#7181 Co-authored-by: algolia-api-clients-automation-bot[bot] <288895823+algolia-api-clients-automation-bot[bot]@users.noreply.github.com> Co-authored-by: Steven Evans <steven.evans@algolia.com>
1 parent 61bc3e1 commit f2925e8

4 files changed

Lines changed: 30 additions & 6 deletions

File tree

‎packages/abtesting/model/clientMethodProps.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export type GetTimeseriesProps = {
134134
*/
135135
endDate?: string | undefined;
136136
/**
137-
* List of metrics to retrieve. If not specified, all metrics are returned.
137+
* Metrics to retrieve, as a comma-separated list. If not specified, all metrics are returned.
138138
*/
139139
metric?: Array<MetricName> | undefined;
140140
/**

‎packages/abtesting/model/metricName.ts‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,20 @@ export type MetricName =
1818
| 'average_click_position'
1919
| 'revenue'
2020
| 'revenue_per_search'
21-
| 'average_order_value';
21+
| 'average_order_value'
22+
| 'clicked_users_count'
23+
| 'converted_users_count'
24+
| 'add_to_cart_users_count'
25+
| 'purchase_users_count'
26+
| 'users_with_no_results_count'
27+
| 'clicked_users_rate'
28+
| 'converted_users_rate'
29+
| 'add_to_cart_users_rate'
30+
| 'purchase_users_rate'
31+
| 'avg_click_through_rate_per_user'
32+
| 'avg_conversion_rate_per_user'
33+
| 'avg_purchase_rate_per_user'
34+
| 'avg_add_to_cart_rate_per_user'
35+
| 'avg_click_position_per_user'
36+
| 'winsorized_revenue_per_user'
37+
| 'winsorized_revenue_per_purchaser';
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
// 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.
22

33
/**
4-
* Primary metric for Bayesian analysis. Required when `method` is `bayesian`. When `method` is omitted and the test defaults to `bayesian`, the default primary metric is `conversion_rate`, or the first metric in `metrics` that supports Bayesian analysis if `metrics` doesn\'t include conversion rate. If the request includes a non-empty `metrics` list, this metric must be in that list. Revenue per search requires access to revenue analytics.
4+
* Primary metric for Bayesian analysis. Required when `method` is `bayesian`. When `method` is omitted and the test defaults to `bayesian`, the default primary metric is `conversion_rate`, or the first metric in `metrics` that supports Bayesian analysis if `metrics` doesn\'t include conversion rate. If the request includes a non-empty `metrics` list, this metric must be in that list. User-level rates (`*_users_rate`) are the share of tracked users with at least one such search. Add-to-cart rates, purchase rates, and revenue per search require access to revenue analytics.
55
*/
66
export type PrimaryMetric =
7-
'add_to_cart_rate' | 'click_through_rate' | 'conversion_rate' | 'purchase_rate' | 'revenue_per_search';
7+
| 'add_to_cart_rate'
8+
| 'click_through_rate'
9+
| 'conversion_rate'
10+
| 'purchase_rate'
11+
| 'revenue_per_search'
12+
| 'add_to_cart_users_rate'
13+
| 'clicked_users_rate'
14+
| 'converted_users_rate'
15+
| 'purchase_users_rate';

‎packages/abtesting/src/abtestingV3Client.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ export function createAbtestingV3Client({
754754
* @param getTimeseries.id - Unique A/B test identifier.
755755
* @param getTimeseries.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
756756
* @param getTimeseries.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
757-
* @param getTimeseries.metric - List of metrics to retrieve. If not specified, all metrics are returned.
757+
* @param getTimeseries.metric - Metrics to retrieve, as a comma-separated list. If not specified, all metrics are returned.
758758
* @param getTimeseries.methods - 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.
759759
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
760760
*/
@@ -804,7 +804,7 @@ export function createAbtestingV3Client({
804804
* @param getTimeseries.id - Unique A/B test identifier.
805805
* @param getTimeseries.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
806806
* @param getTimeseries.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
807-
* @param getTimeseries.metric - List of metrics to retrieve. If not specified, all metrics are returned.
807+
* @param getTimeseries.metric - Metrics to retrieve, as a comma-separated list. If not specified, all metrics are returned.
808808
* @param getTimeseries.methods - 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.
809809
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
810810
* @see getTimeseries for the plain version.

0 commit comments

Comments
 (0)