@algolia/client-abtesting 5.0.0-alpha.110 → 5.0.0-alpha.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client-abtesting.cjs +11 -11
- package/dist/client-abtesting.esm.browser.js +13 -16
- package/dist/client-abtesting.esm.node.js +11 -11
- package/dist/client-abtesting.umd.js +2 -2
- package/dist/model/aBTest.d.ts +9 -24
- package/dist/model/aBTest.d.ts.map +1 -1
- package/dist/model/aBTestConfiguration.d.ts +12 -0
- package/dist/model/aBTestConfiguration.d.ts.map +1 -0
- package/dist/model/aBTestResponse.d.ts +2 -2
- package/dist/model/abTestsVariant.d.ts +3 -3
- package/dist/model/addABTestsRequest.d.ts +1 -1
- package/dist/model/clientMethodProps.d.ts +5 -5
- package/dist/model/customSearchParams.d.ts +1 -1
- package/dist/model/effect.d.ts +5 -0
- package/dist/model/effect.d.ts.map +1 -0
- package/dist/model/emptySearch.d.ts +10 -0
- package/dist/model/emptySearch.d.ts.map +1 -0
- package/dist/model/index.d.ts +6 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/listABTestsResponse.d.ts +1 -1
- package/dist/model/minimumDetectableEffect.d.ts +12 -0
- package/dist/model/minimumDetectableEffect.d.ts.map +1 -0
- package/dist/model/outliers.d.ts +10 -0
- package/dist/model/outliers.d.ts.map +1 -0
- package/dist/model/status.d.ts +5 -0
- package/dist/model/status.d.ts.map +1 -0
- package/dist/model/variant.d.ts +13 -13
- package/dist/src/abtestingClient.d.ts +11 -11
- package/model/aBTest.ts +10 -24
- package/model/aBTestConfiguration.ts +16 -0
- package/model/aBTestResponse.ts +2 -2
- package/model/abTestsVariant.ts +3 -3
- package/model/addABTestsRequest.ts +1 -1
- package/model/clientMethodProps.ts +5 -5
- package/model/customSearchParams.ts +1 -1
- package/model/effect.ts +10 -0
- package/model/emptySearch.ts +11 -0
- package/model/index.ts +6 -0
- package/model/listABTestsResponse.ts +1 -1
- package/model/minimumDetectableEffect.ts +15 -0
- package/model/outliers.ts +11 -0
- package/model/status.ts +6 -0
- package/model/variant.ts +13 -13
- package/package.json +7 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../model/status.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC"}
|
package/dist/model/variant.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ export type Variant = {
|
|
|
6
6
|
*/
|
|
7
7
|
addToCartCount: number;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* [Add-to-cart rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#add-to-cart-rate) for this variant.
|
|
10
10
|
*/
|
|
11
11
|
addToCartRate: number | null;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* [Average click position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position) for this variant.
|
|
14
14
|
*/
|
|
15
15
|
averageClickPosition: number | null;
|
|
16
16
|
/**
|
|
@@ -18,7 +18,7 @@ export type Variant = {
|
|
|
18
18
|
*/
|
|
19
19
|
clickCount: number;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* [Click-through rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate) for this variant.
|
|
22
22
|
*/
|
|
23
23
|
clickThroughRate: number | null;
|
|
24
24
|
/**
|
|
@@ -26,7 +26,7 @@ export type Variant = {
|
|
|
26
26
|
*/
|
|
27
27
|
conversionCount: number;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* [Conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate) for this variant.
|
|
30
30
|
*/
|
|
31
31
|
conversionRate: number | null;
|
|
32
32
|
/**
|
|
@@ -34,20 +34,20 @@ export type Variant = {
|
|
|
34
34
|
*/
|
|
35
35
|
currencies?: Record<string, Currency>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Description for this variant.
|
|
38
38
|
*/
|
|
39
39
|
description: string;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Estimated number of searches required to achieve the desired statistical significance. The A/B test configuration must include a `mininmumDetectableEffect` setting for this number to be included in the response.
|
|
42
42
|
*/
|
|
43
43
|
estimatedSampleSize?: number;
|
|
44
44
|
filterEffects?: FilterEffects;
|
|
45
45
|
/**
|
|
46
|
-
* A/B test
|
|
46
|
+
* Index name of the A/B test variant (case-sensitive).
|
|
47
47
|
*/
|
|
48
48
|
index: string;
|
|
49
49
|
/**
|
|
50
|
-
* Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for
|
|
50
|
+
* Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for this variant.
|
|
51
51
|
*/
|
|
52
52
|
noResultCount: number | null;
|
|
53
53
|
/**
|
|
@@ -55,11 +55,11 @@ export type Variant = {
|
|
|
55
55
|
*/
|
|
56
56
|
purchaseCount: number;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* [Purchase rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#purchase-rate) for this variant.
|
|
59
59
|
*/
|
|
60
60
|
purchaseRate: number | null;
|
|
61
61
|
/**
|
|
62
|
-
* Number of searches
|
|
62
|
+
* Number of searches for this variant.
|
|
63
63
|
*/
|
|
64
64
|
searchCount: number | null;
|
|
65
65
|
/**
|
|
@@ -67,15 +67,15 @@ export type Variant = {
|
|
|
67
67
|
*/
|
|
68
68
|
trackedSearchCount?: number;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Percentage of search requests each variant receives.
|
|
71
71
|
*/
|
|
72
72
|
trafficPercentage: number;
|
|
73
73
|
/**
|
|
74
|
-
* Number of users
|
|
74
|
+
* Number of users that made searches to this variant.
|
|
75
75
|
*/
|
|
76
76
|
userCount: number | null;
|
|
77
77
|
/**
|
|
78
|
-
* Number of users that
|
|
78
|
+
* Number of users that made tracked searches to this variant.
|
|
79
79
|
*/
|
|
80
80
|
trackedUserCount: number | null;
|
|
81
81
|
};
|
|
@@ -4,7 +4,7 @@ import type { ABTestResponse } from '../model/aBTestResponse';
|
|
|
4
4
|
import type { AddABTestsRequest } from '../model/addABTestsRequest';
|
|
5
5
|
import type { CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, DeleteABTestProps, GetABTestProps, ListABTestsProps, StopABTestProps } from '../model/clientMethodProps';
|
|
6
6
|
import type { ListABTestsResponse } from '../model/listABTestsResponse';
|
|
7
|
-
export declare const apiClientVersion = "5.0.0-alpha.
|
|
7
|
+
export declare const apiClientVersion = "5.0.0-alpha.112";
|
|
8
8
|
export declare const REGIONS: readonly ["de", "us"];
|
|
9
9
|
export type Region = (typeof REGIONS)[number];
|
|
10
10
|
export declare function createAbtestingClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
|
|
@@ -31,7 +31,7 @@ export declare function createAbtestingClient({ appId: appIdOption, apiKey: apiK
|
|
|
31
31
|
*/
|
|
32
32
|
addAlgoliaAgent(segment: string, version?: string): void;
|
|
33
33
|
/**
|
|
34
|
-
* Creates
|
|
34
|
+
* Creates a new A/B test.
|
|
35
35
|
*
|
|
36
36
|
* Required API Key ACLs:
|
|
37
37
|
* - editSettings.
|
|
@@ -79,29 +79,29 @@ export declare function createAbtestingClient({ appId: appIdOption, apiKey: apiK
|
|
|
79
79
|
*/
|
|
80
80
|
customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Deletes an A/B test by its ID.
|
|
83
83
|
*
|
|
84
84
|
* Required API Key ACLs:
|
|
85
85
|
* - editSettings.
|
|
86
86
|
*
|
|
87
87
|
* @param deleteABTest - The deleteABTest object.
|
|
88
|
-
* @param deleteABTest.id - Unique A/B test
|
|
88
|
+
* @param deleteABTest.id - Unique A/B test identifier.
|
|
89
89
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
90
90
|
*/
|
|
91
91
|
deleteABTest({ id }: DeleteABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* Retrieves the details for an A/B test by its ID.
|
|
94
94
|
*
|
|
95
95
|
* Required API Key ACLs:
|
|
96
96
|
* - analytics.
|
|
97
97
|
*
|
|
98
98
|
* @param getABTest - The getABTest object.
|
|
99
|
-
* @param getABTest.id - Unique A/B test
|
|
99
|
+
* @param getABTest.id - Unique A/B test identifier.
|
|
100
100
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
101
101
|
*/
|
|
102
102
|
getABTest({ id }: GetABTestProps, requestOptions?: RequestOptions): Promise<ABTest>;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Lists all A/B tests you configured for this application.
|
|
105
105
|
*
|
|
106
106
|
* Required API Key ACLs:
|
|
107
107
|
* - analytics.
|
|
@@ -109,19 +109,19 @@ export declare function createAbtestingClient({ appId: appIdOption, apiKey: apiK
|
|
|
109
109
|
* @param listABTests - The listABTests object.
|
|
110
110
|
* @param listABTests.offset - Position of the first item to return.
|
|
111
111
|
* @param listABTests.limit - Number of items to return.
|
|
112
|
-
* @param listABTests.indexPrefix - Only
|
|
113
|
-
* @param listABTests.indexSuffix - Only
|
|
112
|
+
* @param listABTests.indexPrefix - Index name prefix. Only A/B tests for indices starting with this string are included in the response.
|
|
113
|
+
* @param listABTests.indexSuffix - Index name suffix. Only A/B tests for indices ending with this string are included in the response.
|
|
114
114
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
115
115
|
*/
|
|
116
116
|
listABTests({ offset, limit, indexPrefix, indexSuffix }?: ListABTestsProps, requestOptions?: RequestOptions | undefined): Promise<ListABTestsResponse>;
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* Stops an A/B test by its ID. You can\'t restart stopped A/B tests.
|
|
119
119
|
*
|
|
120
120
|
* Required API Key ACLs:
|
|
121
121
|
* - editSettings.
|
|
122
122
|
*
|
|
123
123
|
* @param stopABTest - The stopABTest object.
|
|
124
|
-
* @param stopABTest.id - Unique A/B test
|
|
124
|
+
* @param stopABTest.id - Unique A/B test identifier.
|
|
125
125
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
126
126
|
*/
|
|
127
127
|
stopABTest({ id }: StopABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
package/model/aBTest.ts
CHANGED
|
@@ -1,50 +1,37 @@
|
|
|
1
1
|
// 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.
|
|
2
2
|
|
|
3
|
+
import type { ABTestConfiguration } from './aBTestConfiguration';
|
|
4
|
+
import type { Status } from './status';
|
|
3
5
|
import type { Variant } from './variant';
|
|
4
6
|
|
|
5
7
|
export type ABTest = {
|
|
6
8
|
/**
|
|
7
|
-
* Unique A/B test
|
|
9
|
+
* Unique A/B test identifier.
|
|
8
10
|
*/
|
|
9
11
|
abTestID: number;
|
|
10
12
|
|
|
11
|
-
/**
|
|
12
|
-
* [A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on click data. A value of 0.95 or over is considered to be _significant_.
|
|
13
|
-
*/
|
|
14
13
|
clickSignificance: number | null;
|
|
15
14
|
|
|
16
|
-
/**
|
|
17
|
-
* [A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on conversion. A value of 0.95 or over is considered to be _significant_.
|
|
18
|
-
*/
|
|
19
15
|
conversionSignificance: number | null;
|
|
20
16
|
|
|
21
|
-
/**
|
|
22
|
-
* [A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on add-to-cart data. A value of 0.95 or over is considered to be _significant_.
|
|
23
|
-
*/
|
|
24
17
|
addToCartSignificance: number | null;
|
|
25
18
|
|
|
26
|
-
/**
|
|
27
|
-
* [A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on purchase data. A value of 0.95 or over is considered to be _significant_.
|
|
28
|
-
*/
|
|
29
19
|
purchaseSignificance: number | null;
|
|
30
20
|
|
|
31
|
-
/**
|
|
32
|
-
* [A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on revenue data. A value of 0.95 or over is considered to be _significant_.
|
|
33
|
-
*/
|
|
34
21
|
revenueSignificance: Record<string, number> | null;
|
|
35
22
|
|
|
36
23
|
/**
|
|
37
|
-
*
|
|
24
|
+
* Date and time when the A/B test was last updated, in RFC 3339 format.
|
|
38
25
|
*/
|
|
39
26
|
updatedAt: string;
|
|
40
27
|
|
|
41
28
|
/**
|
|
42
|
-
*
|
|
29
|
+
* Date and time when the A/B test was created, in RFC 3339 format.
|
|
43
30
|
*/
|
|
44
31
|
createdAt: string;
|
|
45
32
|
|
|
46
33
|
/**
|
|
47
|
-
* End date
|
|
34
|
+
* End date and time of the A/B test, in RFC 3339 format.
|
|
48
35
|
*/
|
|
49
36
|
endAt: string;
|
|
50
37
|
|
|
@@ -53,13 +40,12 @@ export type ABTest = {
|
|
|
53
40
|
*/
|
|
54
41
|
name: string;
|
|
55
42
|
|
|
56
|
-
|
|
57
|
-
* A/B test status.
|
|
58
|
-
*/
|
|
59
|
-
status: string;
|
|
43
|
+
status: Status;
|
|
60
44
|
|
|
61
45
|
/**
|
|
62
|
-
* A/B test variants.
|
|
46
|
+
* A/B test variants. The first variant is your _control_ index, typically your production index. The second variant is an index with changed settings that you want to test against the control.
|
|
63
47
|
*/
|
|
64
48
|
variants: Variant[];
|
|
49
|
+
|
|
50
|
+
configuration?: ABTestConfiguration;
|
|
65
51
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// 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.
|
|
2
|
+
|
|
3
|
+
import type { EmptySearch } from './emptySearch';
|
|
4
|
+
import type { MinimumDetectableEffect } from './minimumDetectableEffect';
|
|
5
|
+
import type { Outliers } from './outliers';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A/B test configuration.
|
|
9
|
+
*/
|
|
10
|
+
export type ABTestConfiguration = {
|
|
11
|
+
outliers: Outliers;
|
|
12
|
+
|
|
13
|
+
emptySearch?: EmptySearch;
|
|
14
|
+
|
|
15
|
+
minimumDetectableEffect?: MinimumDetectableEffect;
|
|
16
|
+
};
|
package/model/aBTestResponse.ts
CHANGED
package/model/abTestsVariant.ts
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
export type AbTestsVariant = {
|
|
4
4
|
/**
|
|
5
|
-
* A/B test
|
|
5
|
+
* Index name of the A/B test variant (case-sensitive).
|
|
6
6
|
*/
|
|
7
7
|
index: string;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Percentage of search requests each variant receives.
|
|
11
11
|
*/
|
|
12
12
|
trafficPercentage: number;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Description for this variant.
|
|
16
16
|
*/
|
|
17
17
|
description?: string;
|
|
18
18
|
};
|
|
@@ -69,7 +69,7 @@ export type CustomPutProps = {
|
|
|
69
69
|
*/
|
|
70
70
|
export type DeleteABTestProps = {
|
|
71
71
|
/**
|
|
72
|
-
* Unique A/B test
|
|
72
|
+
* Unique A/B test identifier.
|
|
73
73
|
*/
|
|
74
74
|
id: number;
|
|
75
75
|
};
|
|
@@ -79,7 +79,7 @@ export type DeleteABTestProps = {
|
|
|
79
79
|
*/
|
|
80
80
|
export type GetABTestProps = {
|
|
81
81
|
/**
|
|
82
|
-
* Unique A/B test
|
|
82
|
+
* Unique A/B test identifier.
|
|
83
83
|
*/
|
|
84
84
|
id: number;
|
|
85
85
|
};
|
|
@@ -97,11 +97,11 @@ export type ListABTestsProps = {
|
|
|
97
97
|
*/
|
|
98
98
|
limit?: number;
|
|
99
99
|
/**
|
|
100
|
-
* Only
|
|
100
|
+
* Index name prefix. Only A/B tests for indices starting with this string are included in the response.
|
|
101
101
|
*/
|
|
102
102
|
indexPrefix?: string;
|
|
103
103
|
/**
|
|
104
|
-
* Only
|
|
104
|
+
* Index name suffix. Only A/B tests for indices ending with this string are included in the response.
|
|
105
105
|
*/
|
|
106
106
|
indexSuffix?: string;
|
|
107
107
|
};
|
|
@@ -111,7 +111,7 @@ export type ListABTestsProps = {
|
|
|
111
111
|
*/
|
|
112
112
|
export type StopABTestProps = {
|
|
113
113
|
/**
|
|
114
|
-
* Unique A/B test
|
|
114
|
+
* Unique A/B test identifier.
|
|
115
115
|
*/
|
|
116
116
|
id: number;
|
|
117
117
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// 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.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Search parameters to add to the test variant. Only use this parameter if the two variants use the same index.
|
|
5
5
|
*/
|
|
6
6
|
export type CustomSearchParams = {
|
|
7
7
|
customSearchParameters: Record<string, any>;
|
package/model/effect.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// 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.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Metric for which you want to detect the smallest relative difference.
|
|
5
|
+
*/
|
|
6
|
+
export type Effect =
|
|
7
|
+
| 'addToCartRate'
|
|
8
|
+
| 'clickThroughRate'
|
|
9
|
+
| 'conversionRate'
|
|
10
|
+
| 'purchaseRate';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// 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.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for handling empty searches.
|
|
5
|
+
*/
|
|
6
|
+
export type EmptySearch = {
|
|
7
|
+
/**
|
|
8
|
+
* Whether to exclude empty searches when calculating A/B test results.
|
|
9
|
+
*/
|
|
10
|
+
exclude?: boolean;
|
|
11
|
+
};
|
package/model/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// 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.
|
|
2
2
|
|
|
3
3
|
export * from './aBTest';
|
|
4
|
+
export * from './aBTestConfiguration';
|
|
4
5
|
export * from './aBTestResponse';
|
|
5
6
|
export * from './abTestsVariant';
|
|
6
7
|
export * from './abTestsVariantSearchParams';
|
|
@@ -8,10 +9,15 @@ export * from './addABTestsRequest';
|
|
|
8
9
|
export * from './addABTestsVariant';
|
|
9
10
|
export * from './currency';
|
|
10
11
|
export * from './customSearchParams';
|
|
12
|
+
export * from './effect';
|
|
13
|
+
export * from './emptySearch';
|
|
11
14
|
export * from './errorBase';
|
|
12
15
|
export * from './filterEffects';
|
|
13
16
|
export * from './filterEffectsEmptySearch';
|
|
14
17
|
export * from './filterEffectsOutliers';
|
|
15
18
|
export * from './listABTestsResponse';
|
|
19
|
+
export * from './minimumDetectableEffect';
|
|
20
|
+
export * from './outliers';
|
|
21
|
+
export * from './status';
|
|
16
22
|
export * from './variant';
|
|
17
23
|
export * from './clientMethodProps';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// 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.
|
|
2
|
+
|
|
3
|
+
import type { Effect } from './effect';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Configuration for the smallest difference between test variants you want to detect.
|
|
7
|
+
*/
|
|
8
|
+
export type MinimumDetectableEffect = {
|
|
9
|
+
/**
|
|
10
|
+
* Smallest difference in an observable metric between variants. For example, to detect a 10% difference between variants, set this value to 0.1.
|
|
11
|
+
*/
|
|
12
|
+
size?: number;
|
|
13
|
+
|
|
14
|
+
effect?: Effect;
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// 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.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for handling outliers.
|
|
5
|
+
*/
|
|
6
|
+
export type Outliers = {
|
|
7
|
+
/**
|
|
8
|
+
* Whether to exclude outliers when calculating A/B test results.
|
|
9
|
+
*/
|
|
10
|
+
exclude?: boolean;
|
|
11
|
+
};
|
package/model/status.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// 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.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A/B test status. - `active`. The A/B test is live and search traffic is split between the two variants. - `stopped`. You stopped the A/B test. The A/B test data is still available for analysis. - `expired`. The A/B test was automatically stopped after reaching its end date. - `failed`. Creating the A/B test failed.
|
|
5
|
+
*/
|
|
6
|
+
export type Status = 'active' | 'expired' | 'failed' | 'stopped';
|
package/model/variant.ts
CHANGED
|
@@ -10,12 +10,12 @@ export type Variant = {
|
|
|
10
10
|
addToCartCount: number;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* [Add-to-cart rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#add-to-cart-rate) for this variant.
|
|
14
14
|
*/
|
|
15
15
|
addToCartRate: number | null;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* [Average click position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position) for this variant.
|
|
19
19
|
*/
|
|
20
20
|
averageClickPosition: number | null;
|
|
21
21
|
|
|
@@ -25,7 +25,7 @@ export type Variant = {
|
|
|
25
25
|
clickCount: number;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* [Click-through rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate) for this variant.
|
|
29
29
|
*/
|
|
30
30
|
clickThroughRate: number | null;
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ export type Variant = {
|
|
|
35
35
|
conversionCount: number;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* [Conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate) for this variant.
|
|
39
39
|
*/
|
|
40
40
|
conversionRate: number | null;
|
|
41
41
|
|
|
@@ -45,24 +45,24 @@ export type Variant = {
|
|
|
45
45
|
currencies?: Record<string, Currency>;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Description for this variant.
|
|
49
49
|
*/
|
|
50
50
|
description: string;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Estimated number of searches required to achieve the desired statistical significance. The A/B test configuration must include a `mininmumDetectableEffect` setting for this number to be included in the response.
|
|
54
54
|
*/
|
|
55
55
|
estimatedSampleSize?: number;
|
|
56
56
|
|
|
57
57
|
filterEffects?: FilterEffects;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* A/B test
|
|
60
|
+
* Index name of the A/B test variant (case-sensitive).
|
|
61
61
|
*/
|
|
62
62
|
index: string;
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for
|
|
65
|
+
* Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for this variant.
|
|
66
66
|
*/
|
|
67
67
|
noResultCount: number | null;
|
|
68
68
|
|
|
@@ -72,12 +72,12 @@ export type Variant = {
|
|
|
72
72
|
purchaseCount: number;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* [Purchase rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#purchase-rate) for this variant.
|
|
76
76
|
*/
|
|
77
77
|
purchaseRate: number | null;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* Number of searches
|
|
80
|
+
* Number of searches for this variant.
|
|
81
81
|
*/
|
|
82
82
|
searchCount: number | null;
|
|
83
83
|
|
|
@@ -87,17 +87,17 @@ export type Variant = {
|
|
|
87
87
|
trackedSearchCount?: number;
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Percentage of search requests each variant receives.
|
|
91
91
|
*/
|
|
92
92
|
trafficPercentage: number;
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
|
-
* Number of users
|
|
95
|
+
* Number of users that made searches to this variant.
|
|
96
96
|
*/
|
|
97
97
|
userCount: number | null;
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
|
-
* Number of users that
|
|
100
|
+
* Number of users that made tracked searches to this variant.
|
|
101
101
|
*/
|
|
102
102
|
trackedUserCount: number | null;
|
|
103
103
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/client-abtesting",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.112",
|
|
4
4
|
"description": "JavaScript client for client-abtesting",
|
|
5
5
|
"repository": "algolia/algoliasearch-client-javascript",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"clean": "rm -rf ./dist || true"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@algolia/client-common": "5.0.0-alpha.
|
|
43
|
-
"@algolia/requester-browser-xhr": "5.0.0-alpha.
|
|
44
|
-
"@algolia/requester-node-http": "5.0.0-alpha.
|
|
42
|
+
"@algolia/client-common": "5.0.0-alpha.113",
|
|
43
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.113",
|
|
44
|
+
"@algolia/requester-node-http": "5.0.0-alpha.113"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/node": "20.
|
|
48
|
-
"rollup": "4.
|
|
49
|
-
"typescript": "5.4.
|
|
47
|
+
"@types/node": "20.12.7",
|
|
48
|
+
"rollup": "4.14.2",
|
|
49
|
+
"typescript": "5.4.5"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">= 14.0.0"
|