@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.
Files changed (47) hide show
  1. package/dist/builds/browser.d.ts +5 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +5 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/{client-abtesting.cjs.js → client-abtesting.cjs} +324 -318
  6. package/dist/client-abtesting.esm.browser.js +507 -547
  7. package/dist/client-abtesting.esm.node.js +324 -316
  8. package/dist/client-abtesting.umd.js +2 -2
  9. package/dist/model/aBTest.d.ts +35 -39
  10. package/dist/model/aBTest.d.ts.map +1 -1
  11. package/dist/model/aBTestResponse.d.ts +14 -14
  12. package/dist/model/aBTestResponse.d.ts.map +1 -1
  13. package/dist/model/abTestsVariant.d.ts +14 -14
  14. package/dist/model/abTestsVariant.d.ts.map +1 -1
  15. package/dist/model/abTestsVariantSearchParams.d.ts +3 -3
  16. package/dist/model/abTestsVariantSearchParams.d.ts.map +1 -1
  17. package/dist/model/addABTestsRequest.d.ts +15 -15
  18. package/dist/model/addABTestsRequest.d.ts.map +1 -1
  19. package/dist/model/addABTestsVariant.d.ts +3 -3
  20. package/dist/model/addABTestsVariant.d.ts.map +1 -1
  21. package/dist/model/clientMethodProps.d.ts +108 -100
  22. package/dist/model/clientMethodProps.d.ts.map +1 -1
  23. package/dist/model/customSearchParams.d.ts +6 -3
  24. package/dist/model/customSearchParams.d.ts.map +1 -1
  25. package/dist/model/errorBase.d.ts +6 -6
  26. package/dist/model/errorBase.d.ts.map +1 -1
  27. package/dist/model/index.d.ts +11 -11
  28. package/dist/model/listABTestsResponse.d.ts +15 -15
  29. package/dist/model/listABTestsResponse.d.ts.map +1 -1
  30. package/dist/model/variant.d.ts +58 -50
  31. package/dist/model/variant.d.ts.map +1 -1
  32. package/dist/src/abtestingClient.d.ts +126 -124
  33. package/dist/src/abtestingClient.d.ts.map +1 -1
  34. package/index.js +1 -1
  35. package/model/aBTest.ts +9 -14
  36. package/model/aBTestResponse.ts +4 -4
  37. package/model/abTestsVariant.ts +4 -4
  38. package/model/abTestsVariantSearchParams.ts +1 -1
  39. package/model/addABTestsRequest.ts +4 -4
  40. package/model/addABTestsVariant.ts +1 -1
  41. package/model/clientMethodProps.ts +23 -15
  42. package/model/customSearchParams.ts +4 -1
  43. package/model/errorBase.ts +1 -1
  44. package/model/index.ts +1 -1
  45. package/model/listABTestsResponse.ts +4 -4
  46. package/model/variant.ts +23 -13
  47. package/package.json +30 -13
@@ -1,15 +1,15 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
8
+ * Path of the endpoint, anything after \"/1\" must be specified.
9
9
  */
10
10
  path: string;
11
11
  /**
12
- * Query parameters to be applied to the current query.
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
- * The A/B test ID.
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
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
32
+ * Path of the endpoint, anything after \"/1\" must be specified.
33
33
  */
34
34
  path: string;
35
35
  /**
36
- * Query parameters to be applied to the current query.
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
- * The A/B test ID.
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. Limit is the size of the page.
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
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
78
+ * Path of the endpoint, anything after \"/1\" must be specified.
71
79
  */
72
80
  path: string;
73
81
  /**
74
- * Query parameters to be applied to the current query.
82
+ * Query parameters to apply to the current query.
75
83
  */
76
84
  parameters?: Record<string, any>;
77
85
  /**
78
- * The parameters to send with the custom request.
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
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
96
+ * Path of the endpoint, anything after \"/1\" must be specified.
89
97
  */
90
98
  path: string;
91
99
  /**
92
- * Query parameters to be applied to the current query.
100
+ * Query parameters to apply to the current query.
93
101
  */
94
102
  parameters?: Record<string, any>;
95
103
  /**
96
- * The parameters to send with the custom request.
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
- * The A/B test ID.
114
+ * Unique A/B test ID.
107
115
  */
108
116
  id: number;
109
117
  };
@@ -1,5 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  };
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- * List of A/B tests.
7
+ * A/B tests.
8
8
  */
9
9
  abtests: ABTest[];
10
10
 
11
11
  /**
12
- * Number of A/B tests found for the app.
12
+ * Number of A/B tests implemented.
13
13
  */
14
14
  count: number;
15
15
 
16
16
  /**
17
- * Number of A/B tests retrievable.
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
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- * Average click position for the variant.
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
- * Distinct click count for the variant.
10
+ * Number of click events for this variant.
11
11
  */
12
12
  clickCount: number;
13
13
 
14
14
  /**
15
- * Click through rate for the variant.
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
- * Distinct conversion count for the variant.
20
+ * Number of click events for this variant.
21
21
  */
22
22
  conversionCount: number;
23
23
 
24
24
  /**
25
- * Conversion rate for the variant.
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
- * The A/B test description.
30
+ * A/B test description.
31
31
  */
32
32
  description: string;
33
33
 
34
34
  /**
35
- * The index performing the A/B test.
35
+ * A/B test index.
36
36
  */
37
37
  index: string;
38
38
 
39
39
  /**
40
- * The number of occurrences.
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
- * The number of search during the A/B test.
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
- * The number of tracked search click.
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
- * The traffic percentage for the A/B test.
65
+ * A/B test traffic percentage.
56
66
  */
57
67
  trafficPercentage: number;
58
68
 
59
69
  /**
60
- * The number of user during the A/B test.
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.8",
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
- "main": "index.js",
9
- "jsdelivr": "dist/client-abtesting.umd.js",
10
- "unpkg": "dist/client-abtesting.umd.js",
11
- "module": "dist/client-abtesting.esm.node.js",
12
- "browser": "dist/client-abtesting.umd.js",
13
- "types": "index.d.ts",
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.8",
26
- "@algolia/requester-browser-xhr": "5.0.0-alpha.8",
27
- "@algolia/requester-node-http": "5.0.0-alpha.8"
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": "16.11.47",
31
- "rollup": "2.77.2",
32
- "typescript": "4.7.4"
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"