@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
package/dist/model/variant.d.ts
CHANGED
|
@@ -1,51 +1,59 @@
|
|
|
1
|
-
export
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
*/
|
|
5
|
-
averageClickPosition: number;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
clickCount: number;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
clickThroughRate: number;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
conversionCount: number;
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
conversionRate: number;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
description: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
index: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
noResultCount: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
|
|
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,
|
|
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
|
-
export declare const REGIONS: readonly ["de", "us"];
|
|
9
|
-
export
|
|
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
|
|
35
|
-
*
|
|
36
|
-
* @summary Create
|
|
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 -
|
|
47
|
-
* @param del.parameters - Query parameters to
|
|
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
|
|
53
|
-
*
|
|
54
|
-
* @summary Delete
|
|
55
|
-
* @param deleteABTest - The deleteABTest object.
|
|
56
|
-
* @param deleteABTest.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 -
|
|
66
|
-
* @param get.parameters - Query parameters to
|
|
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
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* @summary Get
|
|
74
|
-
* @param getABTest - The getABTest object.
|
|
75
|
-
* @param getABTest.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
|
-
*
|
|
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
|
|
86
|
-
* @param
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* @
|
|
95
|
-
* @param post
|
|
96
|
-
* @param post.
|
|
97
|
-
* @param
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* @
|
|
106
|
-
* @param put
|
|
107
|
-
* @param put.
|
|
108
|
-
* @param
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* @
|
|
117
|
-
* @param
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,eAAO,MAAM,gBAAgB,
|
|
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,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,eAAO,MAAM,gBAAgB,mBAAmB,CAAC;AAEjD,eAAO,MAAM,OAAO,uBAAwB,CAAC;AAC7C,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAW9C,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,YAAY,EACpB,QAAQ,EACR,aAAa,EACb,MAAM,EAAE,YAAY,EACpB,GAAG,OAAO,EACX,EAAE,mBAAmB,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;;IAwBxC;;OAEG;;IAGH;;OAEG;kBACW,QAAQ,IAAI,CAAC;IAO3B;;OAEG;;IAKH;;;;;OAKG;6BACsB,MAAM,YAAY,MAAM,GAAG,IAAI;IAIxD;;;;;;OAMG;kCAEkB,iBAAiB,mBACnB,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
|
|
2
|
+
module.exports = require('./dist/client-abtesting.cjs');
|
package/model/aBTest.ts
CHANGED
|
@@ -1,35 +1,30 @@
|
|
|
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 { 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
|
@@ -1,18 +1,18 @@
|
|
|
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 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
|
@@ -1,18 +1,18 @@
|
|
|
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 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
|
};
|
|
@@ -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
|
import type { AbTestsVariant } from './abTestsVariant';
|
|
4
4
|
import type { CustomSearchParams } from './customSearchParams';
|
|
@@ -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
|
import type { AddABTestsVariant } from './addABTestsVariant';
|
|
4
4
|
|
|
@@ -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
|
};
|
|
@@ -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
|
import type { AbTestsVariant } from './abTestsVariant';
|
|
4
4
|
import type { AbTestsVariantSearchParams } from './abTestsVariantSearchParams';
|