@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,51 +1,59 @@
1
- export declare type Variant = {
2
- /**
3
- * Average click position for the variant.
4
- */
5
- averageClickPosition: number;
6
- /**
7
- * Distinct click count for the variant.
8
- */
9
- clickCount: number;
10
- /**
11
- * Click through rate for the variant.
12
- */
13
- clickThroughRate: number;
14
- /**
15
- * Distinct conversion count for the variant.
16
- */
17
- conversionCount: number;
18
- /**
19
- * Conversion rate for the variant.
20
- */
21
- conversionRate: number;
22
- /**
23
- * The A/B test description.
24
- */
25
- description: string;
26
- /**
27
- * The index performing the A/B test.
28
- */
29
- index: string;
30
- /**
31
- * The number of occurrences.
32
- */
33
- noResultCount: number;
34
- /**
35
- * The number of search during the A/B test.
36
- */
37
- searchCount: number;
38
- /**
39
- * The number of tracked search click.
40
- */
41
- trackedSearchCount: number;
42
- /**
43
- * The traffic percentage for the A/B test.
44
- */
45
- trafficPercentage: number;
46
- /**
47
- * The number of user during the A/B test.
48
- */
49
- userCount: number;
50
- };
1
+ export type Variant = {
2
+ /**
3
+ * Variant\'s [average click position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position).
4
+ */
5
+ averageClickPosition: number;
6
+ /**
7
+ * Number of click events for this variant.
8
+ */
9
+ clickCount: number;
10
+ /**
11
+ * Variant\'s [click-through rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
12
+ */
13
+ clickThroughRate: number;
14
+ /**
15
+ * Number of click events for this variant.
16
+ */
17
+ conversionCount: number;
18
+ /**
19
+ * Variant\'s [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
20
+ */
21
+ conversionRate: number;
22
+ /**
23
+ * A/B test description.
24
+ */
25
+ description: string;
26
+ /**
27
+ * A/B test index.
28
+ */
29
+ index: string;
30
+ /**
31
+ * Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for that variant.
32
+ */
33
+ noResultCount: number;
34
+ /**
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
+ */
37
+ outlierTrackedSearchesCount: number;
38
+ /**
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
+ */
41
+ outlierUsersCount: number;
42
+ /**
43
+ * Number of searches carried out during the A/B test.
44
+ */
45
+ searchCount: number;
46
+ /**
47
+ * Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
48
+ */
49
+ trackedSearchCount: number;
50
+ /**
51
+ * A/B test traffic percentage.
52
+ */
53
+ trafficPercentage: number;
54
+ /**
55
+ * Number of users during the A/B test.
56
+ */
57
+ userCount: number;
58
+ };
51
59
  //# sourceMappingURL=variant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"variant.d.ts","sourceRoot":"","sources":["../../model/variant.ts"],"names":[],"mappings":"AAEA,oBAAY,OAAO,GAAG;IACpB;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"variant.d.ts","sourceRoot":"","sources":["../../model/variant.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GAAG;IACpB;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,125 +1,127 @@
1
- import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
2
- import type { ABTest } from '../model/aBTest';
3
- import type { ABTestResponse } from '../model/aBTestResponse';
4
- import type { AddABTestsRequest } from '../model/addABTestsRequest';
5
- import type { DelProps, DeleteABTestProps, GetProps, GetABTestProps, ListABTestsProps, PostProps, PutProps, StopABTestProps } from '../model/clientMethodProps';
6
- import type { ListABTestsResponse } from '../model/listABTestsResponse';
7
- export declare const apiClientVersion = "5.0.0-alpha.8";
8
- export declare const REGIONS: readonly ["de", "us"];
9
- export declare type Region = typeof REGIONS[number];
10
- export declare function createAbtestingClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
11
- region?: Region;
12
- }): {
13
- transporter: import("@algolia/client-common").Transporter;
14
- /**
15
- * The `appId` currently in use.
16
- */
17
- appId: string;
18
- /**
19
- * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
20
- */
21
- clearCache(): Promise<void>;
22
- /**
23
- * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
24
- */
25
- readonly _ua: string;
26
- /**
27
- * Adds a `segment` to the `x-algolia-agent` sent with every requests.
28
- *
29
- * @param segment - The algolia agent (user-agent) segment to add.
30
- * @param version - The version of the agent.
31
- */
32
- addAlgoliaAgent(segment: string, version?: string): void;
33
- /**
34
- * Creates a new A/B test with provided configuration. You can set an A/B test on two different indices with different settings, or on the same index with different search parameters by providing a customSearchParameters setting on one of the variants.
35
- *
36
- * @summary Create a test.
37
- * @param addABTestsRequest - The addABTestsRequest object.
38
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
39
- */
40
- addABTests(addABTestsRequest: AddABTestsRequest, requestOptions?: RequestOptions): Promise<ABTestResponse>;
41
- /**
42
- * This method allow you to send requests to the Algolia REST API.
43
- *
44
- * @summary Send requests to the Algolia REST API.
45
- * @param del - The del object.
46
- * @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
47
- * @param del.parameters - Query parameters to be applied to the current query.
48
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
49
- */
50
- del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
51
- /**
52
- * Delete a test.
53
- *
54
- * @summary Delete a test.
55
- * @param deleteABTest - The deleteABTest object.
56
- * @param deleteABTest.id - The A/B test ID.
57
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
58
- */
59
- deleteABTest({ id }: DeleteABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
60
- /**
61
- * This method allow you to send requests to the Algolia REST API.
62
- *
63
- * @summary Send requests to the Algolia REST API.
64
- * @param get - The get object.
65
- * @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
66
- * @param get.parameters - Query parameters to be applied to the current query.
67
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
68
- */
69
- get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
70
- /**
71
- * Returns metadata and metrics for an A/B test.
72
- *
73
- * @summary Get a test.
74
- * @param getABTest - The getABTest object.
75
- * @param getABTest.id - The A/B test ID.
76
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
77
- */
78
- getABTest({ id }: GetABTestProps, requestOptions?: RequestOptions): Promise<ABTest>;
79
- /**
80
- * Fetch all existing A/B tests for App that are available for the current API Key. When no data has been processed, the metrics will be returned as null.
81
- *
82
- * @summary List all tests.
83
- * @param listABTests - The listABTests object.
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. Limit is the size of the page.
86
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
87
- */
88
- listABTests({ offset, limit }: ListABTestsProps, requestOptions?: RequestOptions): Promise<ListABTestsResponse>;
89
- /**
90
- * This method allow you to send requests to the Algolia REST API.
91
- *
92
- * @summary Send requests to the Algolia REST API.
93
- * @param post - The post object.
94
- * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
95
- * @param post.parameters - Query parameters to be applied to the current query.
96
- * @param post.body - The parameters to send with the custom request.
97
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
98
- */
99
- post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
100
- /**
101
- * This method allow you to send requests to the Algolia REST API.
102
- *
103
- * @summary Send requests to the Algolia REST API.
104
- * @param put - The put object.
105
- * @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
106
- * @param put.parameters - Query parameters to be applied to the current query.
107
- * @param put.body - The parameters to send with the custom request.
108
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
109
- */
110
- put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
111
- /**
112
- * Marks the A/B test as stopped. At this point, the test is over and cannot be restarted. As a result, your application is back to normal: index A will perform as usual, receiving 100% of all search requests. Associated metadata and metrics are still stored.
113
- *
114
- * @summary Stop a test.
115
- * @param stopABTest - The stopABTest object.
116
- * @param stopABTest.id - The A/B test ID.
117
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
118
- */
119
- stopABTest({ id }: StopABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
120
- };
121
- /**
122
- * The client type.
123
- */
124
- export declare type AbtestingClient = ReturnType<typeof createAbtestingClient>;
1
+ import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
2
+ import type { ABTest } from '../model/aBTest';
3
+ import type { ABTestResponse } from '../model/aBTestResponse';
4
+ import type { AddABTestsRequest } from '../model/addABTestsRequest';
5
+ import type { DelProps, DeleteABTestProps, GetProps, GetABTestProps, ListABTestsProps, PostProps, PutProps, StopABTestProps } from '../model/clientMethodProps';
6
+ import type { ListABTestsResponse } from '../model/listABTestsResponse';
7
+ export declare const apiClientVersion = "5.0.0-alpha.81";
8
+ export declare const REGIONS: readonly ["de", "us"];
9
+ export type Region = (typeof REGIONS)[number];
10
+ export declare function createAbtestingClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
11
+ region?: Region;
12
+ }): {
13
+ transporter: import("@algolia/client-common").Transporter;
14
+ /**
15
+ * The `appId` currently in use.
16
+ */
17
+ appId: string;
18
+ /**
19
+ * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
20
+ */
21
+ clearCache(): Promise<void>;
22
+ /**
23
+ * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
24
+ */
25
+ readonly _ua: string;
26
+ /**
27
+ * Adds a `segment` to the `x-algolia-agent` sent with every requests.
28
+ *
29
+ * @param segment - The algolia agent (user-agent) segment to add.
30
+ * @param version - The version of the agent.
31
+ */
32
+ addAlgoliaAgent(segment: string, version?: string): void;
33
+ /**
34
+ * Creates an A/B test.
35
+ *
36
+ * @summary Create an A/B test.
37
+ * @param addABTestsRequest - The addABTestsRequest object.
38
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
39
+ */
40
+ addABTests(addABTestsRequest: AddABTestsRequest, requestOptions?: RequestOptions): Promise<ABTestResponse>;
41
+ /**
42
+ * This method allow you to send requests to the Algolia REST API.
43
+ *
44
+ * @summary Send requests to the Algolia REST API.
45
+ * @param del - The del object.
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
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
49
+ */
50
+ del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
51
+ /**
52
+ * Delete an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
53
+ *
54
+ * @summary Delete an A/B test.
55
+ * @param deleteABTest - The deleteABTest object.
56
+ * @param deleteABTest.id - Unique A/B test ID.
57
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
58
+ */
59
+ deleteABTest({ id }: DeleteABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
60
+ /**
61
+ * This method allow you to send requests to the Algolia REST API.
62
+ *
63
+ * @summary Send requests to the Algolia REST API.
64
+ * @param get - The get object.
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
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
68
+ */
69
+ get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
70
+ /**
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
+ *
73
+ * @summary Get A/B test details.
74
+ * @param getABTest - The getABTest object.
75
+ * @param getABTest.id - Unique A/B test ID.
76
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
77
+ */
78
+ getABTest({ id }: GetABTestProps, requestOptions?: RequestOptions): Promise<ABTest>;
79
+ /**
80
+ * List all A/B tests.
81
+ *
82
+ * @summary List all A/B tests.
83
+ * @param listABTests - The listABTests object.
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 (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
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
89
+ */
90
+ listABTests({ offset, limit, indexPrefix, indexSuffix }?: ListABTestsProps, requestOptions?: RequestOptions | undefined): Promise<ListABTestsResponse>;
91
+ /**
92
+ * This method allow you to send requests to the Algolia REST API.
93
+ *
94
+ * @summary Send requests to the Algolia REST API.
95
+ * @param post - The post object.
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
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
100
+ */
101
+ post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
102
+ /**
103
+ * This method allow you to send requests to the Algolia REST API.
104
+ *
105
+ * @summary Send requests to the Algolia REST API.
106
+ * @param put - The put object.
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
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
111
+ */
112
+ put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
113
+ /**
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
+ *
116
+ * @summary Stop an A/B test.
117
+ * @param stopABTest - The stopABTest object.
118
+ * @param stopABTest.id - Unique A/B test ID.
119
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
120
+ */
121
+ stopABTest({ id }: StopABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
122
+ };
123
+ /**
124
+ * The client type.
125
+ */
126
+ export type AbtestingClient = ReturnType<typeof createAbtestingClient>;
125
127
  //# sourceMappingURL=abtestingClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"abtestingClient.d.ts","sourceRoot":"","sources":["../../src/abtestingClient.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,mBAAmB,EAInB,cAAc,EAEf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,eAAe,EAChB,MAAM,4BAA4B,CAAC;AACpC,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ACnB,cAAc,GAC9B,QAAQ,cAAc,CAAC;IAsC1B;;;;;;;;OAQG;8BAEqB,QAAQ,mBACb,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAmB/B;;;;;;;OAOG;yBAEO,iBAAiB,mBACR,cAAc,GAC9B,QAAQ,cAAc,CAAC;IAwB1B;;;;;;;;OAQG;8BAEqB,QAAQ,mBACb,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAmB/B;;;;;;;OAOG;sBAEO,cAAc,mBACL,cAAc,GAC9B,QAAQ,MAAM,CAAC;IAsBlB;;;;;;;;;;OAUG;8DAE4C,gBAAgB,mBAC7C,cAAc,GAAG,SAAS,GACzC,QAAQ,mBAAmB,CAAC;IA+B/B;;;;;;;;;OASG;qCAE2B,SAAS,mBACpB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAoB/B;;;;;;;;;OASG;oCAE2B,QAAQ,mBACnB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAoB/B;;;;;;;OAOG;uBAEO,eAAe,mBACN,cAAc,GAC9B,QAAQ,cAAc,CAAC;EAwB7B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // eslint-disable-next-line import/no-commonjs,import/extensions
2
- module.exports = require('./dist/client-abtesting.cjs.js');
2
+ module.exports = require('./dist/client-abtesting.cjs');
package/model/aBTest.ts CHANGED
@@ -1,35 +1,30 @@
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 { Variant } from './variant';
4
4
 
5
5
  export type ABTest = {
6
6
  /**
7
- * The A/B test ID.
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. Should be > 0.95 to be considered significant (no matter which variant is winning).
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
- * A/B test significance based on conversion data. Should be > 0.95 to be considered significant (no matter which variant is winning).
17
+ * End date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
18
18
  */
19
- conversionSignificance: number;
19
+ conversionSignificance: string;
20
20
 
21
21
  /**
22
- * End date for the A/B test expressed as YYYY-MM-DDThh:mm:ssZ.
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 for the A/B test expressed as YYYY-MM-DDThh:mm:ssZ.
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
- * Status of the A/B test.
37
+ * A/B test status.
43
38
  */
44
39
  status: string;
45
40
 
46
41
  /**
47
- * List of A/B test variant.
42
+ * A/B test variants.
48
43
  */
49
44
  variants: Variant[];
50
45
  };
@@ -1,18 +1,18 @@
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 ABTestResponse = {
4
4
  /**
5
- * The index performing the A/B test.
5
+ * A/B test index.
6
6
  */
7
7
  index: string;
8
8
 
9
9
  /**
10
- * The A/B test ID.
10
+ * Unique A/B test ID.
11
11
  */
12
12
  abTestID: number;
13
13
 
14
14
  /**
15
- * TaskID of the task to wait for.
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
  };
@@ -1,18 +1,18 @@
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 AbTestsVariant = {
4
4
  /**
5
- * The index performing the A/B test.
5
+ * A/B test index.
6
6
  */
7
7
  index: string;
8
8
 
9
9
  /**
10
- * The traffic percentage for the A/B test.
10
+ * A/B test traffic percentage.
11
11
  */
12
12
  trafficPercentage: number;
13
13
 
14
14
  /**
15
- * The A/B test description.
15
+ * A/B test description.
16
16
  */
17
17
  description?: string;
18
18
  };
@@ -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
  import type { AbTestsVariant } from './abTestsVariant';
4
4
  import type { CustomSearchParams } from './customSearchParams';
@@ -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
  import type { AddABTestsVariant } from './addABTestsVariant';
4
4
 
@@ -9,12 +9,12 @@ export type AddABTestsRequest = {
9
9
  name: string;
10
10
 
11
11
  /**
12
- * List of 2 variants for the A/B test.
12
+ * A/B test variants.
13
13
  */
14
- variant: AddABTestsVariant[];
14
+ variants: AddABTestsVariant[];
15
15
 
16
16
  /**
17
- * End date for the A/B test expressed as YYYY-MM-DDThh:mm:ssZ.
17
+ * End date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
18
18
  */
19
19
  endAt: string;
20
20
  };
@@ -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
  import type { AbTestsVariant } from './abTestsVariant';
4
4
  import type { AbTestsVariantSearchParams } from './abTestsVariantSearchParams';