@algolia/client-abtesting 5.0.0-alpha.73 → 5.0.0-alpha.75
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.js +29 -31
- package/dist/client-abtesting.esm.browser.js +29 -29
- package/dist/client-abtesting.esm.node.js +29 -29
- package/dist/client-abtesting.umd.js +2 -2
- package/dist/model/aBTest.d.ts +8 -12
- package/dist/model/aBTest.d.ts.map +1 -1
- package/dist/model/aBTestResponse.d.ts +3 -3
- package/dist/model/abTestsVariant.d.ts +3 -3
- package/dist/model/addABTestsRequest.d.ts +3 -3
- package/dist/model/addABTestsRequest.d.ts.map +1 -1
- package/dist/model/clientMethodProps.d.ts +16 -16
- package/dist/model/customSearchParams.d.ts +3 -0
- package/dist/model/customSearchParams.d.ts.map +1 -1
- package/dist/model/listABTestsResponse.d.ts +3 -3
- package/dist/model/variant.d.ts +14 -14
- package/dist/src/abtestingClient.d.ts +27 -27
- package/model/aBTest.ts +8 -13
- package/model/aBTestResponse.ts +3 -3
- package/model/abTestsVariant.ts +3 -3
- package/model/addABTestsRequest.ts +3 -3
- package/model/clientMethodProps.ts +16 -16
- package/model/customSearchParams.ts +3 -0
- package/model/listABTestsResponse.ts +3 -3
- package/model/variant.ts +14 -14
- package/package.json +8 -7
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type DelProps = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
7
7
|
*/
|
|
8
8
|
path: string;
|
|
9
9
|
/**
|
|
10
|
-
* Query parameters to
|
|
10
|
+
* Query parameters to apply to the current query.
|
|
11
11
|
*/
|
|
12
12
|
parameters?: Record<string, any>;
|
|
13
13
|
};
|
|
@@ -16,7 +16,7 @@ export type DelProps = {
|
|
|
16
16
|
*/
|
|
17
17
|
export type DeleteABTestProps = {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Unique A/B test ID.
|
|
20
20
|
*/
|
|
21
21
|
id: number;
|
|
22
22
|
};
|
|
@@ -25,11 +25,11 @@ export type DeleteABTestProps = {
|
|
|
25
25
|
*/
|
|
26
26
|
export type GetProps = {
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
29
29
|
*/
|
|
30
30
|
path: string;
|
|
31
31
|
/**
|
|
32
|
-
* Query parameters to
|
|
32
|
+
* Query parameters to apply to the current query.
|
|
33
33
|
*/
|
|
34
34
|
parameters?: Record<string, any>;
|
|
35
35
|
};
|
|
@@ -38,7 +38,7 @@ export type GetProps = {
|
|
|
38
38
|
*/
|
|
39
39
|
export type GetABTestProps = {
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Unique A/B test ID.
|
|
42
42
|
*/
|
|
43
43
|
id: number;
|
|
44
44
|
};
|
|
@@ -51,15 +51,15 @@ export type ListABTestsProps = {
|
|
|
51
51
|
*/
|
|
52
52
|
offset?: number;
|
|
53
53
|
/**
|
|
54
|
-
* Number of records to return
|
|
54
|
+
* Number of records to return (page size).
|
|
55
55
|
*/
|
|
56
56
|
limit?: number;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Only return A/B tests for indices starting with this prefix.
|
|
59
59
|
*/
|
|
60
60
|
indexPrefix?: string;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Only return A/B tests for indices ending with this suffix.
|
|
63
63
|
*/
|
|
64
64
|
indexSuffix?: string;
|
|
65
65
|
};
|
|
@@ -68,15 +68,15 @@ export type ListABTestsProps = {
|
|
|
68
68
|
*/
|
|
69
69
|
export type PostProps = {
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
72
72
|
*/
|
|
73
73
|
path: string;
|
|
74
74
|
/**
|
|
75
|
-
* Query parameters to
|
|
75
|
+
* Query parameters to apply to the current query.
|
|
76
76
|
*/
|
|
77
77
|
parameters?: Record<string, any>;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Parameters to send with the custom request.
|
|
80
80
|
*/
|
|
81
81
|
body?: Record<string, any>;
|
|
82
82
|
};
|
|
@@ -85,15 +85,15 @@ export type PostProps = {
|
|
|
85
85
|
*/
|
|
86
86
|
export type PutProps = {
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
89
89
|
*/
|
|
90
90
|
path: string;
|
|
91
91
|
/**
|
|
92
|
-
* Query parameters to
|
|
92
|
+
* Query parameters to apply to the current query.
|
|
93
93
|
*/
|
|
94
94
|
parameters?: Record<string, any>;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Parameters to send with the custom request.
|
|
97
97
|
*/
|
|
98
98
|
body?: Record<string, any>;
|
|
99
99
|
};
|
|
@@ -102,7 +102,7 @@ export type PutProps = {
|
|
|
102
102
|
*/
|
|
103
103
|
export type StopABTestProps = {
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Unique A/B test ID.
|
|
106
106
|
*/
|
|
107
107
|
id: number;
|
|
108
108
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Applies search parameters from [a restricted set of options](https://www.algolia.com/doc/api-reference/api-methods/add-ab-test/#method-param-customsearchparameters). Only use this parameter if the two variants use the same index.
|
|
3
|
+
*/
|
|
1
4
|
export type CustomSearchParams = {
|
|
2
5
|
customSearchParameters: Record<string, any>;
|
|
3
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customSearchParams.d.ts","sourceRoot":"","sources":["../../model/customSearchParams.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7C,CAAC"}
|
|
1
|
+
{"version":3,"file":"customSearchParams.d.ts","sourceRoot":"","sources":["../../model/customSearchParams.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7C,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { ABTest } from './aBTest';
|
|
2
2
|
export type ListABTestsResponse = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* A/B tests.
|
|
5
5
|
*/
|
|
6
6
|
abtests: ABTest[];
|
|
7
7
|
/**
|
|
8
|
-
* Number of A/B tests
|
|
8
|
+
* Number of A/B tests implemented.
|
|
9
9
|
*/
|
|
10
10
|
count: number;
|
|
11
11
|
/**
|
|
12
|
-
* Number of A/B tests
|
|
12
|
+
* Number of retrievable A/B tests.
|
|
13
13
|
*/
|
|
14
14
|
total: number;
|
|
15
15
|
};
|
package/dist/model/variant.d.ts
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
export type Variant = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Variant\'s [average click position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position).
|
|
4
4
|
*/
|
|
5
5
|
averageClickPosition: number;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Number of click events for this variant.
|
|
8
8
|
*/
|
|
9
9
|
clickCount: number;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Variant\'s [click-through rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
12
12
|
*/
|
|
13
13
|
clickThroughRate: number;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Number of click events for this variant.
|
|
16
16
|
*/
|
|
17
17
|
conversionCount: number;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Variant\'s [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
|
|
20
20
|
*/
|
|
21
21
|
conversionRate: number;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* A/B test description.
|
|
24
24
|
*/
|
|
25
25
|
description: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* A/B test index.
|
|
28
28
|
*/
|
|
29
29
|
index: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for that variant.
|
|
32
32
|
*/
|
|
33
33
|
noResultCount: number;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Number of tracked searches attributed to [outlier traffic](https://www.algolia.com/doc/guides/ab-testing/how-to-read-your-a-b-test-results/#is-the-split-off) that were removed from the A/B test. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
|
|
36
36
|
*/
|
|
37
37
|
outlierTrackedSearchesCount: number;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Number of users attributed to [outlier traffic](https://www.algolia.com/doc/guides/ab-testing/how-to-read-your-a-b-test-results/#is-the-split-off) that were removed from the A/B test.
|
|
40
40
|
*/
|
|
41
41
|
outlierUsersCount: number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Number of searches carried out during the A/B test.
|
|
44
44
|
*/
|
|
45
45
|
searchCount: number;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
|
|
48
48
|
*/
|
|
49
49
|
trackedSearchCount: number;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* A/B test traffic percentage.
|
|
52
52
|
*/
|
|
53
53
|
trafficPercentage: number;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Number of users during the A/B test.
|
|
56
56
|
*/
|
|
57
57
|
userCount: number;
|
|
58
58
|
};
|
|
@@ -4,7 +4,7 @@ import type { ABTestResponse } from '../model/aBTestResponse';
|
|
|
4
4
|
import type { AddABTestsRequest } from '../model/addABTestsRequest';
|
|
5
5
|
import type { DelProps, DeleteABTestProps, GetProps, GetABTestProps, ListABTestsProps, PostProps, PutProps, 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.75";
|
|
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,9 +31,9 @@ export declare function createAbtestingClient({ appId: appIdOption, apiKey: apiK
|
|
|
31
31
|
*/
|
|
32
32
|
addAlgoliaAgent(segment: string, version?: string): void;
|
|
33
33
|
/**
|
|
34
|
-
* Creates
|
|
34
|
+
* Creates an A/B test.
|
|
35
35
|
*
|
|
36
|
-
* @summary Create
|
|
36
|
+
* @summary Create an A/B test.
|
|
37
37
|
* @param addABTestsRequest - The addABTestsRequest object.
|
|
38
38
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
39
39
|
*/
|
|
@@ -43,17 +43,17 @@ export declare function createAbtestingClient({ appId: appIdOption, apiKey: apiK
|
|
|
43
43
|
*
|
|
44
44
|
* @summary Send requests to the Algolia REST API.
|
|
45
45
|
* @param del - The del object.
|
|
46
|
-
* @param del.path -
|
|
47
|
-
* @param del.parameters - Query parameters to
|
|
46
|
+
* @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
47
|
+
* @param del.parameters - Query parameters to apply to the current query.
|
|
48
48
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
49
49
|
*/
|
|
50
50
|
del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
51
51
|
/**
|
|
52
|
-
* Delete
|
|
52
|
+
* Delete an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
|
|
53
53
|
*
|
|
54
|
-
* @summary Delete
|
|
54
|
+
* @summary Delete an A/B test.
|
|
55
55
|
* @param deleteABTest - The deleteABTest object.
|
|
56
|
-
* @param deleteABTest.id -
|
|
56
|
+
* @param deleteABTest.id - Unique A/B test ID.
|
|
57
57
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
58
58
|
*/
|
|
59
59
|
deleteABTest({ id }: DeleteABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
|
@@ -62,29 +62,29 @@ export declare function createAbtestingClient({ appId: appIdOption, apiKey: apiK
|
|
|
62
62
|
*
|
|
63
63
|
* @summary Send requests to the Algolia REST API.
|
|
64
64
|
* @param get - The get object.
|
|
65
|
-
* @param get.path -
|
|
66
|
-
* @param get.parameters - Query parameters to
|
|
65
|
+
* @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
66
|
+
* @param get.parameters - Query parameters to apply to the current query.
|
|
67
67
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
68
68
|
*/
|
|
69
69
|
get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Get specific details for an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
|
|
72
72
|
*
|
|
73
|
-
* @summary Get
|
|
73
|
+
* @summary Get A/B test details.
|
|
74
74
|
* @param getABTest - The getABTest object.
|
|
75
|
-
* @param getABTest.id -
|
|
75
|
+
* @param getABTest.id - Unique A/B test ID.
|
|
76
76
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
77
77
|
*/
|
|
78
78
|
getABTest({ id }: GetABTestProps, requestOptions?: RequestOptions): Promise<ABTest>;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* List all A/B tests.
|
|
81
81
|
*
|
|
82
|
-
* @summary List all tests.
|
|
82
|
+
* @summary List all A/B tests.
|
|
83
83
|
* @param listABTests - The listABTests object.
|
|
84
84
|
* @param listABTests.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
85
|
-
* @param listABTests.limit - Number of records to return
|
|
86
|
-
* @param listABTests.indexPrefix -
|
|
87
|
-
* @param listABTests.indexSuffix -
|
|
85
|
+
* @param listABTests.limit - Number of records to return (page size).
|
|
86
|
+
* @param listABTests.indexPrefix - Only return A/B tests for indices starting with this prefix.
|
|
87
|
+
* @param listABTests.indexSuffix - Only return A/B tests for indices ending with this suffix.
|
|
88
88
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
89
89
|
*/
|
|
90
90
|
listABTests({ offset, limit, indexPrefix, indexSuffix }?: ListABTestsProps, requestOptions?: RequestOptions | undefined): Promise<ListABTestsResponse>;
|
|
@@ -93,9 +93,9 @@ export declare function createAbtestingClient({ appId: appIdOption, apiKey: apiK
|
|
|
93
93
|
*
|
|
94
94
|
* @summary Send requests to the Algolia REST API.
|
|
95
95
|
* @param post - The post object.
|
|
96
|
-
* @param post.path -
|
|
97
|
-
* @param post.parameters - Query parameters to
|
|
98
|
-
* @param post.body -
|
|
96
|
+
* @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
97
|
+
* @param post.parameters - Query parameters to apply to the current query.
|
|
98
|
+
* @param post.body - Parameters to send with the custom request.
|
|
99
99
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
100
100
|
*/
|
|
101
101
|
post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
@@ -104,18 +104,18 @@ export declare function createAbtestingClient({ appId: appIdOption, apiKey: apiK
|
|
|
104
104
|
*
|
|
105
105
|
* @summary Send requests to the Algolia REST API.
|
|
106
106
|
* @param put - The put object.
|
|
107
|
-
* @param put.path -
|
|
108
|
-
* @param put.parameters - Query parameters to
|
|
109
|
-
* @param put.body -
|
|
107
|
+
* @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
108
|
+
* @param put.parameters - Query parameters to apply to the current query.
|
|
109
|
+
* @param put.body - Parameters to send with the custom request.
|
|
110
110
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
111
111
|
*/
|
|
112
112
|
put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* If stopped, the test is over and can\'t be restarted. There is now only one index, receiving 100% of all search requests. The data gathered for stopped A/B tests is retained. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
|
|
115
115
|
*
|
|
116
|
-
* @summary Stop
|
|
116
|
+
* @summary Stop an A/B test.
|
|
117
117
|
* @param stopABTest - The stopABTest object.
|
|
118
|
-
* @param stopABTest.id -
|
|
118
|
+
* @param stopABTest.id - Unique A/B test ID.
|
|
119
119
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
120
120
|
*/
|
|
121
121
|
stopABTest({ id }: StopABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
package/model/aBTest.ts
CHANGED
|
@@ -4,32 +4,27 @@ import type { Variant } from './variant';
|
|
|
4
4
|
|
|
5
5
|
export type ABTest = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Unique A/B test ID.
|
|
8
8
|
*/
|
|
9
9
|
abTestID: number;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* A/B test significance based on click data.
|
|
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
13
|
*/
|
|
14
14
|
clickSignificance: number;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* End date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
18
18
|
*/
|
|
19
|
-
conversionSignificance:
|
|
19
|
+
conversionSignificance: string;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
endAt: string;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Update date for the A/B test expressed as YYYY-MM-DDThh:mm:ssZ.
|
|
22
|
+
* Update date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
28
23
|
*/
|
|
29
24
|
updatedAt: string;
|
|
30
25
|
|
|
31
26
|
/**
|
|
32
|
-
* Creation date
|
|
27
|
+
* Creation date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
33
28
|
*/
|
|
34
29
|
createdAt: string;
|
|
35
30
|
|
|
@@ -39,12 +34,12 @@ export type ABTest = {
|
|
|
39
34
|
name: string;
|
|
40
35
|
|
|
41
36
|
/**
|
|
42
|
-
*
|
|
37
|
+
* A/B test status.
|
|
43
38
|
*/
|
|
44
39
|
status: string;
|
|
45
40
|
|
|
46
41
|
/**
|
|
47
|
-
*
|
|
42
|
+
* A/B test variants.
|
|
48
43
|
*/
|
|
49
44
|
variants: Variant[];
|
|
50
45
|
};
|
package/model/aBTestResponse.ts
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
export type ABTestResponse = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* A/B test index.
|
|
6
6
|
*/
|
|
7
7
|
index: string;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Unique A/B test ID.
|
|
11
11
|
*/
|
|
12
12
|
abTestID: number;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the `task` operation and this `taskID`.
|
|
16
16
|
*/
|
|
17
17
|
taskID: number;
|
|
18
18
|
};
|
package/model/abTestsVariant.ts
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
export type AbTestsVariant = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* A/B test index.
|
|
6
6
|
*/
|
|
7
7
|
index: string;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* A/B test traffic percentage.
|
|
11
11
|
*/
|
|
12
12
|
trafficPercentage: number;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* A/B test description.
|
|
16
16
|
*/
|
|
17
17
|
description?: string;
|
|
18
18
|
};
|
|
@@ -9,12 +9,12 @@ export type AddABTestsRequest = {
|
|
|
9
9
|
name: string;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* A/B test variants.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
variants: AddABTestsVariant[];
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* End date
|
|
17
|
+
* End date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
18
18
|
*/
|
|
19
19
|
endAt: string;
|
|
20
20
|
};
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export type DelProps = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
9
9
|
*/
|
|
10
10
|
path: string;
|
|
11
11
|
/**
|
|
12
|
-
* Query parameters to
|
|
12
|
+
* Query parameters to apply to the current query.
|
|
13
13
|
*/
|
|
14
14
|
parameters?: Record<string, any>;
|
|
15
15
|
};
|
|
@@ -19,7 +19,7 @@ export type DelProps = {
|
|
|
19
19
|
*/
|
|
20
20
|
export type DeleteABTestProps = {
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Unique A/B test ID.
|
|
23
23
|
*/
|
|
24
24
|
id: number;
|
|
25
25
|
};
|
|
@@ -29,11 +29,11 @@ export type DeleteABTestProps = {
|
|
|
29
29
|
*/
|
|
30
30
|
export type GetProps = {
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
33
33
|
*/
|
|
34
34
|
path: string;
|
|
35
35
|
/**
|
|
36
|
-
* Query parameters to
|
|
36
|
+
* Query parameters to apply to the current query.
|
|
37
37
|
*/
|
|
38
38
|
parameters?: Record<string, any>;
|
|
39
39
|
};
|
|
@@ -43,7 +43,7 @@ export type GetProps = {
|
|
|
43
43
|
*/
|
|
44
44
|
export type GetABTestProps = {
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Unique A/B test ID.
|
|
47
47
|
*/
|
|
48
48
|
id: number;
|
|
49
49
|
};
|
|
@@ -57,15 +57,15 @@ export type ListABTestsProps = {
|
|
|
57
57
|
*/
|
|
58
58
|
offset?: number;
|
|
59
59
|
/**
|
|
60
|
-
* Number of records to return
|
|
60
|
+
* Number of records to return (page size).
|
|
61
61
|
*/
|
|
62
62
|
limit?: number;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Only return A/B tests for indices starting with this prefix.
|
|
65
65
|
*/
|
|
66
66
|
indexPrefix?: string;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Only return A/B tests for indices ending with this suffix.
|
|
69
69
|
*/
|
|
70
70
|
indexSuffix?: string;
|
|
71
71
|
};
|
|
@@ -75,15 +75,15 @@ export type ListABTestsProps = {
|
|
|
75
75
|
*/
|
|
76
76
|
export type PostProps = {
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
79
79
|
*/
|
|
80
80
|
path: string;
|
|
81
81
|
/**
|
|
82
|
-
* Query parameters to
|
|
82
|
+
* Query parameters to apply to the current query.
|
|
83
83
|
*/
|
|
84
84
|
parameters?: Record<string, any>;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Parameters to send with the custom request.
|
|
87
87
|
*/
|
|
88
88
|
body?: Record<string, any>;
|
|
89
89
|
};
|
|
@@ -93,15 +93,15 @@ export type PostProps = {
|
|
|
93
93
|
*/
|
|
94
94
|
export type PutProps = {
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
97
97
|
*/
|
|
98
98
|
path: string;
|
|
99
99
|
/**
|
|
100
|
-
* Query parameters to
|
|
100
|
+
* Query parameters to apply to the current query.
|
|
101
101
|
*/
|
|
102
102
|
parameters?: Record<string, any>;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Parameters to send with the custom request.
|
|
105
105
|
*/
|
|
106
106
|
body?: Record<string, any>;
|
|
107
107
|
};
|
|
@@ -111,7 +111,7 @@ export type PutProps = {
|
|
|
111
111
|
*/
|
|
112
112
|
export type StopABTestProps = {
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* Unique A/B test ID.
|
|
115
115
|
*/
|
|
116
116
|
id: number;
|
|
117
117
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
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
|
+
/**
|
|
4
|
+
* Applies search parameters from [a restricted set of options](https://www.algolia.com/doc/api-reference/api-methods/add-ab-test/#method-param-customsearchparameters). Only use this parameter if the two variants use the same index.
|
|
5
|
+
*/
|
|
3
6
|
export type CustomSearchParams = {
|
|
4
7
|
customSearchParameters: Record<string, any>;
|
|
5
8
|
};
|
|
@@ -4,17 +4,17 @@ import type { ABTest } from './aBTest';
|
|
|
4
4
|
|
|
5
5
|
export type ListABTestsResponse = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* A/B tests.
|
|
8
8
|
*/
|
|
9
9
|
abtests: ABTest[];
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Number of A/B tests
|
|
12
|
+
* Number of A/B tests implemented.
|
|
13
13
|
*/
|
|
14
14
|
count: number;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Number of A/B tests
|
|
17
|
+
* Number of retrievable A/B tests.
|
|
18
18
|
*/
|
|
19
19
|
total: number;
|
|
20
20
|
};
|