@algolia/client-abtesting 5.0.0-alpha.8 → 5.0.0-alpha.81
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/builds/browser.d.ts +5 -5
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +5 -5
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/{client-abtesting.cjs.js → client-abtesting.cjs} +324 -318
- package/dist/client-abtesting.esm.browser.js +507 -547
- package/dist/client-abtesting.esm.node.js +324 -316
- package/dist/client-abtesting.umd.js +2 -2
- package/dist/model/aBTest.d.ts +35 -39
- package/dist/model/aBTest.d.ts.map +1 -1
- package/dist/model/aBTestResponse.d.ts +14 -14
- package/dist/model/aBTestResponse.d.ts.map +1 -1
- package/dist/model/abTestsVariant.d.ts +14 -14
- package/dist/model/abTestsVariant.d.ts.map +1 -1
- package/dist/model/abTestsVariantSearchParams.d.ts +3 -3
- package/dist/model/abTestsVariantSearchParams.d.ts.map +1 -1
- package/dist/model/addABTestsRequest.d.ts +15 -15
- package/dist/model/addABTestsRequest.d.ts.map +1 -1
- package/dist/model/addABTestsVariant.d.ts +3 -3
- package/dist/model/addABTestsVariant.d.ts.map +1 -1
- package/dist/model/clientMethodProps.d.ts +108 -100
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/customSearchParams.d.ts +6 -3
- package/dist/model/customSearchParams.d.ts.map +1 -1
- package/dist/model/errorBase.d.ts +6 -6
- package/dist/model/errorBase.d.ts.map +1 -1
- package/dist/model/index.d.ts +11 -11
- package/dist/model/listABTestsResponse.d.ts +15 -15
- package/dist/model/listABTestsResponse.d.ts.map +1 -1
- package/dist/model/variant.d.ts +58 -50
- package/dist/model/variant.d.ts.map +1 -1
- package/dist/src/abtestingClient.d.ts +126 -124
- package/dist/src/abtestingClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/model/aBTest.ts +9 -14
- package/model/aBTestResponse.ts +4 -4
- package/model/abTestsVariant.ts +4 -4
- package/model/abTestsVariantSearchParams.ts +1 -1
- package/model/addABTestsRequest.ts +4 -4
- package/model/addABTestsVariant.ts +1 -1
- package/model/clientMethodProps.ts +23 -15
- package/model/customSearchParams.ts +4 -1
- package/model/errorBase.ts +1 -1
- package/model/index.ts +1 -1
- package/model/listABTestsResponse.ts +4 -4
- package/model/variant.ts +23 -13
- package/package.json +30 -13
|
@@ -1,15 +1,15 @@
|
|
|
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
|
* Properties for the `del` method.
|
|
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,9 +57,17 @@ 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
|
+
/**
|
|
64
|
+
* Only return A/B tests for indices starting with this prefix.
|
|
65
|
+
*/
|
|
66
|
+
indexPrefix?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Only return A/B tests for indices ending with this suffix.
|
|
69
|
+
*/
|
|
70
|
+
indexSuffix?: string;
|
|
63
71
|
};
|
|
64
72
|
|
|
65
73
|
/**
|
|
@@ -67,15 +75,15 @@ export type ListABTestsProps = {
|
|
|
67
75
|
*/
|
|
68
76
|
export type PostProps = {
|
|
69
77
|
/**
|
|
70
|
-
*
|
|
78
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
71
79
|
*/
|
|
72
80
|
path: string;
|
|
73
81
|
/**
|
|
74
|
-
* Query parameters to
|
|
82
|
+
* Query parameters to apply to the current query.
|
|
75
83
|
*/
|
|
76
84
|
parameters?: Record<string, any>;
|
|
77
85
|
/**
|
|
78
|
-
*
|
|
86
|
+
* Parameters to send with the custom request.
|
|
79
87
|
*/
|
|
80
88
|
body?: Record<string, any>;
|
|
81
89
|
};
|
|
@@ -85,15 +93,15 @@ export type PostProps = {
|
|
|
85
93
|
*/
|
|
86
94
|
export type PutProps = {
|
|
87
95
|
/**
|
|
88
|
-
*
|
|
96
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
89
97
|
*/
|
|
90
98
|
path: string;
|
|
91
99
|
/**
|
|
92
|
-
* Query parameters to
|
|
100
|
+
* Query parameters to apply to the current query.
|
|
93
101
|
*/
|
|
94
102
|
parameters?: Record<string, any>;
|
|
95
103
|
/**
|
|
96
|
-
*
|
|
104
|
+
* Parameters to send with the custom request.
|
|
97
105
|
*/
|
|
98
106
|
body?: Record<string, any>;
|
|
99
107
|
};
|
|
@@ -103,7 +111,7 @@ export type PutProps = {
|
|
|
103
111
|
*/
|
|
104
112
|
export type StopABTestProps = {
|
|
105
113
|
/**
|
|
106
|
-
*
|
|
114
|
+
* Unique A/B test ID.
|
|
107
115
|
*/
|
|
108
116
|
id: number;
|
|
109
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
|
};
|
package/model/errorBase.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
|
* Error.
|
package/model/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
4
|
export * from './aBTestResponse';
|
|
@@ -1,20 +1,20 @@
|
|
|
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
|
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
|
};
|
package/model/variant.ts
CHANGED
|
@@ -1,63 +1,73 @@
|
|
|
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 type Variant = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Variant\'s [average click position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position).
|
|
6
6
|
*/
|
|
7
7
|
averageClickPosition: number;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Number of click events for this variant.
|
|
11
11
|
*/
|
|
12
12
|
clickCount: number;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Variant\'s [click-through rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
16
16
|
*/
|
|
17
17
|
clickThroughRate: number;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Number of click events for this variant.
|
|
21
21
|
*/
|
|
22
22
|
conversionCount: number;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Variant\'s [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
|
|
26
26
|
*/
|
|
27
27
|
conversionRate: number;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* A/B test description.
|
|
31
31
|
*/
|
|
32
32
|
description: string;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* A/B test index.
|
|
36
36
|
*/
|
|
37
37
|
index: string;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for that variant.
|
|
41
41
|
*/
|
|
42
42
|
noResultCount: number;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* 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`.
|
|
46
|
+
*/
|
|
47
|
+
outlierTrackedSearchesCount: number;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 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.
|
|
51
|
+
*/
|
|
52
|
+
outlierUsersCount: number;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Number of searches carried out during the A/B test.
|
|
46
56
|
*/
|
|
47
57
|
searchCount: number;
|
|
48
58
|
|
|
49
59
|
/**
|
|
50
|
-
*
|
|
60
|
+
* Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
|
|
51
61
|
*/
|
|
52
62
|
trackedSearchCount: number;
|
|
53
63
|
|
|
54
64
|
/**
|
|
55
|
-
*
|
|
65
|
+
* A/B test traffic percentage.
|
|
56
66
|
*/
|
|
57
67
|
trafficPercentage: number;
|
|
58
68
|
|
|
59
69
|
/**
|
|
60
|
-
*
|
|
70
|
+
* Number of users during the A/B test.
|
|
61
71
|
*/
|
|
62
72
|
userCount: number;
|
|
63
73
|
};
|
package/package.json
CHANGED
|
@@ -1,16 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/client-abtesting",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.81",
|
|
4
4
|
"description": "JavaScript client for client-abtesting",
|
|
5
5
|
"repository": "algolia/algoliasearch-client-javascript",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Algolia",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"node": {
|
|
12
|
+
"import": "./dist/client-abtesting.esm.node.js",
|
|
13
|
+
"module": "./dist/client-abtesting.esm.node.js",
|
|
14
|
+
"require": "./dist/client-abtesting.cjs",
|
|
15
|
+
"default": "./dist/client-abtesting.cjs"
|
|
16
|
+
},
|
|
17
|
+
"default": {
|
|
18
|
+
"umd": "./dist/client-abtesting.umd.js",
|
|
19
|
+
"module": "./dist/client-abtesting.esm.browser.js",
|
|
20
|
+
"import": "./dist/client-abtesting.esm.browser.js",
|
|
21
|
+
"default": "./dist/client-abtesting.umd.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"./src/*": "./src/*.ts",
|
|
25
|
+
"./model": "./model/index.ts"
|
|
26
|
+
},
|
|
27
|
+
"jsdelivr": "./dist/client-abtesting.umd.js",
|
|
28
|
+
"unpkg": "./dist/client-abtesting.umd.js",
|
|
29
|
+
"browser": "./dist/client-abtesting.umd.js",
|
|
30
|
+
"types": "./index.d.ts",
|
|
14
31
|
"files": [
|
|
15
32
|
"dist",
|
|
16
33
|
"model",
|
|
@@ -22,14 +39,14 @@
|
|
|
22
39
|
"clean": "rm -rf ./dist || true"
|
|
23
40
|
},
|
|
24
41
|
"dependencies": {
|
|
25
|
-
"@algolia/client-common": "5.0.0-alpha.
|
|
26
|
-
"@algolia/requester-browser-xhr": "5.0.0-alpha.
|
|
27
|
-
"@algolia/requester-node-http": "5.0.0-alpha.
|
|
42
|
+
"@algolia/client-common": "5.0.0-alpha.81",
|
|
43
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.81",
|
|
44
|
+
"@algolia/requester-node-http": "5.0.0-alpha.81"
|
|
28
45
|
},
|
|
29
46
|
"devDependencies": {
|
|
30
|
-
"@types/node": "
|
|
31
|
-
"rollup": "
|
|
32
|
-
"typescript": "
|
|
47
|
+
"@types/node": "18.17.12",
|
|
48
|
+
"rollup": "3.28.1",
|
|
49
|
+
"typescript": "5.2.2"
|
|
33
50
|
},
|
|
34
51
|
"engines": {
|
|
35
52
|
"node": ">= 14.0.0"
|