@algolia/client-abtesting 5.0.0-alpha.99 → 5.0.0-beta.10

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 (56) hide show
  1. package/LICENSE +21 -0
  2. package/dist/builds/browser.d.ts +22 -3
  3. package/dist/builds/browser.d.ts.map +1 -1
  4. package/dist/builds/node.d.ts +22 -3
  5. package/dist/builds/node.d.ts.map +1 -1
  6. package/dist/client-abtesting.cjs +51 -42
  7. package/dist/client-abtesting.esm.browser.js +47 -50
  8. package/dist/client-abtesting.esm.node.js +51 -42
  9. package/dist/client-abtesting.umd.js +2 -2
  10. package/dist/model/aBTest.d.ts +14 -29
  11. package/dist/model/aBTest.d.ts.map +1 -1
  12. package/dist/model/aBTestConfiguration.d.ts +12 -0
  13. package/dist/model/aBTestConfiguration.d.ts.map +1 -0
  14. package/dist/model/aBTestResponse.d.ts +3 -3
  15. package/dist/model/abTestsVariant.d.ts +3 -3
  16. package/dist/model/addABTestsRequest.d.ts +1 -1
  17. package/dist/model/clientMethodProps.d.ts +7 -7
  18. package/dist/model/{currenciesValue.d.ts → currency.d.ts} +2 -2
  19. package/dist/model/currency.d.ts.map +1 -0
  20. package/dist/model/customSearchParams.d.ts +1 -1
  21. package/dist/model/effect.d.ts +5 -0
  22. package/dist/model/effect.d.ts.map +1 -0
  23. package/dist/model/emptySearch.d.ts +10 -0
  24. package/dist/model/emptySearch.d.ts.map +1 -0
  25. package/dist/model/index.d.ts +7 -1
  26. package/dist/model/index.d.ts.map +1 -1
  27. package/dist/model/listABTestsResponse.d.ts +2 -2
  28. package/dist/model/listABTestsResponse.d.ts.map +1 -1
  29. package/dist/model/minimumDetectableEffect.d.ts +12 -0
  30. package/dist/model/minimumDetectableEffect.d.ts.map +1 -0
  31. package/dist/model/outliers.d.ts +10 -0
  32. package/dist/model/outliers.d.ts.map +1 -0
  33. package/dist/model/status.d.ts +5 -0
  34. package/dist/model/status.d.ts.map +1 -0
  35. package/dist/model/variant.d.ts +29 -25
  36. package/dist/model/variant.d.ts.map +1 -1
  37. package/dist/src/abtestingClient.d.ts +28 -26
  38. package/dist/src/abtestingClient.d.ts.map +1 -1
  39. package/model/aBTest.ts +15 -29
  40. package/model/aBTestConfiguration.ts +16 -0
  41. package/model/aBTestResponse.ts +3 -3
  42. package/model/abTestsVariant.ts +3 -3
  43. package/model/addABTestsRequest.ts +1 -1
  44. package/model/clientMethodProps.ts +7 -7
  45. package/model/{currenciesValue.ts → currency.ts} +1 -1
  46. package/model/customSearchParams.ts +1 -1
  47. package/model/effect.ts +10 -0
  48. package/model/emptySearch.ts +11 -0
  49. package/model/index.ts +7 -1
  50. package/model/listABTestsResponse.ts +2 -2
  51. package/model/minimumDetectableEffect.ts +15 -0
  52. package/model/outliers.ts +11 -0
  53. package/model/status.ts +6 -0
  54. package/model/variant.ts +30 -25
  55. package/package.json +11 -8
  56. package/dist/model/currenciesValue.d.ts.map +0 -1
package/model/variant.ts CHANGED
@@ -1,6 +1,6 @@
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 { CurrenciesValue } from './currenciesValue';
3
+ import type { Currency } from './currency';
4
4
  import type { FilterEffects } from './filterEffects';
5
5
 
6
6
  export type Variant = {
@@ -10,14 +10,14 @@ export type Variant = {
10
10
  addToCartCount: number;
11
11
 
12
12
  /**
13
- * Variant\'s [add-to-cart rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#add-to-cart-rate).
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
- addToCartRate: number;
15
+ addToCartRate: number | null;
16
16
 
17
17
  /**
18
- * Variant\'s [average click position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position).
18
+ * [Average click position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position) for this variant.
19
19
  */
20
- averageClickPosition: number;
20
+ averageClickPosition: number | null;
21
21
 
22
22
  /**
23
23
  * Number of click events for this variant.
@@ -25,9 +25,9 @@ export type Variant = {
25
25
  clickCount: number;
26
26
 
27
27
  /**
28
- * Variant\'s [click-through rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
28
+ * [Click-through rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate) for this variant.
29
29
  */
30
- clickThroughRate: number;
30
+ clickThroughRate: number | null;
31
31
 
32
32
  /**
33
33
  * Number of click events for this variant.
@@ -35,31 +35,36 @@ export type Variant = {
35
35
  conversionCount: number;
36
36
 
37
37
  /**
38
- * Variant\'s [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
38
+ * [Conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate) for this variant.
39
39
  */
40
- conversionRate: number;
40
+ conversionRate: number | null;
41
41
 
42
42
  /**
43
43
  * A/B test currencies.
44
44
  */
45
- currencies: Record<string, CurrenciesValue>;
45
+ currencies?: Record<string, Currency>;
46
46
 
47
47
  /**
48
- * A/B test description.
48
+ * Description for this variant.
49
49
  */
50
50
  description: string;
51
51
 
52
+ /**
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
+ */
55
+ estimatedSampleSize?: number;
56
+
52
57
  filterEffects?: FilterEffects;
53
58
 
54
59
  /**
55
- * A/B test index.
60
+ * Index name of the A/B test variant (case-sensitive).
56
61
  */
57
62
  index: string;
58
63
 
59
64
  /**
60
- * Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for that variant.
65
+ * Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for this variant.
61
66
  */
62
- noResultCount: number;
67
+ noResultCount: number | null;
63
68
 
64
69
  /**
65
70
  * Number of purchase events for this variant.
@@ -67,32 +72,32 @@ export type Variant = {
67
72
  purchaseCount: number;
68
73
 
69
74
  /**
70
- * Variant\'s [purchase rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#purchase-rate).
75
+ * [Purchase rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#purchase-rate) for this variant.
71
76
  */
72
- purchaseRate: number;
77
+ purchaseRate: number | null;
73
78
 
74
79
  /**
75
- * Number of searches carried out during the A/B test.
80
+ * Number of searches for this variant.
76
81
  */
77
- searchCount: number;
82
+ searchCount: number | null;
78
83
 
79
84
  /**
80
- * Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
85
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
81
86
  */
82
- trackedSearchCount: number;
87
+ trackedSearchCount?: number;
83
88
 
84
89
  /**
85
- * A/B test traffic percentage.
90
+ * Percentage of search requests each variant receives.
86
91
  */
87
92
  trafficPercentage: number;
88
93
 
89
94
  /**
90
- * Number of users during the A/B test.
95
+ * Number of users that made searches to this variant.
91
96
  */
92
- userCount: number;
97
+ userCount: number | null;
93
98
 
94
99
  /**
95
- * Number of users that performed a tracked search during the A/B test.
100
+ * Number of users that made tracked searches to this variant.
96
101
  */
97
- trackedUserCount: number;
102
+ trackedUserCount: number | null;
98
103
  };
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@algolia/client-abtesting",
3
- "version": "5.0.0-alpha.99",
3
+ "version": "5.0.0-beta.10",
4
4
  "description": "JavaScript client for client-abtesting",
5
- "repository": "algolia/algoliasearch-client-javascript",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
8
+ },
6
9
  "license": "MIT",
7
10
  "author": "Algolia",
8
11
  "type": "module",
@@ -39,14 +42,14 @@
39
42
  "clean": "rm -rf ./dist || true"
40
43
  },
41
44
  "dependencies": {
42
- "@algolia/client-common": "5.0.0-alpha.100",
43
- "@algolia/requester-browser-xhr": "5.0.0-alpha.100",
44
- "@algolia/requester-node-http": "5.0.0-alpha.100"
45
+ "@algolia/client-common": "5.0.0-beta.11",
46
+ "@algolia/requester-browser-xhr": "5.0.0-beta.11",
47
+ "@algolia/requester-node-http": "5.0.0-beta.11"
45
48
  },
46
49
  "devDependencies": {
47
- "@types/node": "20.11.0",
48
- "rollup": "4.9.6",
49
- "typescript": "5.3.3"
50
+ "@types/node": "20.14.10",
51
+ "rollup": "4.18.0",
52
+ "typescript": "5.5.3"
50
53
  },
51
54
  "engines": {
52
55
  "node": ">= 14.0.0"
@@ -1 +0,0 @@
1
- {"version":3,"file":"currenciesValue.d.ts","sourceRoot":"","sources":["../../model/currenciesValue.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}