@algolia/client-abtesting 5.0.0-alpha.10 → 5.0.0-alpha.100
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} +330 -318
- package/dist/client-abtesting.esm.browser.js +541 -553
- package/dist/client-abtesting.esm.node.js +330 -316
- package/dist/client-abtesting.umd.js +2 -2
- package/dist/model/aBTest.d.ts +51 -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/currenciesValue.d.ts +19 -0
- package/dist/model/currenciesValue.d.ts.map +1 -0
- 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/filterEffects.d.ts +10 -0
- package/dist/model/filterEffects.d.ts.map +1 -0
- package/dist/model/filterEffectsEmptySearch.d.ts +14 -0
- package/dist/model/filterEffectsEmptySearch.d.ts.map +1 -0
- package/dist/model/filterEffectsOutliers.d.ts +14 -0
- package/dist/model/filterEffectsOutliers.d.ts.map +1 -0
- package/dist/model/index.d.ts +15 -11
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/listABTestsResponse.d.ts +15 -15
- package/dist/model/listABTestsResponse.d.ts.map +1 -1
- package/dist/model/variant.d.ts +77 -50
- package/dist/model/variant.d.ts.map +1 -1
- package/dist/src/abtestingClient.d.ts +132 -124
- package/dist/src/abtestingClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/model/aBTest.ts +25 -10
- 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 +54 -46
- package/model/currenciesValue.ts +23 -0
- package/model/customSearchParams.ts +4 -1
- package/model/errorBase.ts +1 -1
- package/model/filterEffects.ts +13 -0
- package/model/filterEffectsEmptySearch.ts +16 -0
- package/model/filterEffectsOutliers.ts +16 -0
- package/model/index.ts +5 -1
- package/model/listABTestsResponse.ts +4 -4
- package/model/variant.ts +48 -13
- package/package.json +30 -13
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Outliers removed from the A/B test as a result of configuration settings.
|
|
3
|
+
*/
|
|
4
|
+
export type FilterEffectsOutliers = {
|
|
5
|
+
/**
|
|
6
|
+
* Number of users removed from the A/B test.
|
|
7
|
+
*/
|
|
8
|
+
usersCount?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Number of tracked searches removed from the A/B test.
|
|
11
|
+
*/
|
|
12
|
+
trackedSearchesCount?: number;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=filterEffectsOutliers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterEffectsOutliers.d.ts","sourceRoot":"","sources":["../../model/filterEffectsOutliers.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC"}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
export * from './aBTest';
|
|
2
|
-
export * from './aBTestResponse';
|
|
3
|
-
export * from './abTestsVariant';
|
|
4
|
-
export * from './abTestsVariantSearchParams';
|
|
5
|
-
export * from './addABTestsRequest';
|
|
6
|
-
export * from './addABTestsVariant';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
1
|
+
export * from './aBTest';
|
|
2
|
+
export * from './aBTestResponse';
|
|
3
|
+
export * from './abTestsVariant';
|
|
4
|
+
export * from './abTestsVariantSearchParams';
|
|
5
|
+
export * from './addABTestsRequest';
|
|
6
|
+
export * from './addABTestsVariant';
|
|
7
|
+
export * from './currenciesValue';
|
|
8
|
+
export * from './customSearchParams';
|
|
9
|
+
export * from './errorBase';
|
|
10
|
+
export * from './filterEffects';
|
|
11
|
+
export * from './filterEffectsEmptySearch';
|
|
12
|
+
export * from './filterEffectsOutliers';
|
|
13
|
+
export * from './listABTestsResponse';
|
|
14
|
+
export * from './variant';
|
|
15
|
+
export * from './clientMethodProps';
|
|
12
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { ABTest } from './aBTest';
|
|
2
|
-
export
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
abtests: ABTest[];
|
|
7
|
-
/**
|
|
8
|
-
* Number of A/B tests
|
|
9
|
-
*/
|
|
10
|
-
count: number;
|
|
11
|
-
/**
|
|
12
|
-
* Number of A/B tests
|
|
13
|
-
*/
|
|
14
|
-
total: number;
|
|
15
|
-
};
|
|
1
|
+
import type { ABTest } from './aBTest';
|
|
2
|
+
export type ListABTestsResponse = {
|
|
3
|
+
/**
|
|
4
|
+
* A/B tests.
|
|
5
|
+
*/
|
|
6
|
+
abtests: ABTest[];
|
|
7
|
+
/**
|
|
8
|
+
* Number of A/B tests implemented.
|
|
9
|
+
*/
|
|
10
|
+
count: number;
|
|
11
|
+
/**
|
|
12
|
+
* Number of retrievable A/B tests.
|
|
13
|
+
*/
|
|
14
|
+
total: number;
|
|
15
|
+
};
|
|
16
16
|
//# sourceMappingURL=listABTestsResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listABTestsResponse.d.ts","sourceRoot":"","sources":["../../model/listABTestsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,
|
|
1
|
+
{"version":3,"file":"listABTestsResponse.d.ts","sourceRoot":"","sources":["../../model/listABTestsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
package/dist/model/variant.d.ts
CHANGED
|
@@ -1,51 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1
|
+
import type { CurrenciesValue } from './currenciesValue';
|
|
2
|
+
import type { FilterEffects } from './filterEffects';
|
|
3
|
+
export type Variant = {
|
|
4
|
+
/**
|
|
5
|
+
* Number of add-to-cart events for this variant.
|
|
6
|
+
*/
|
|
7
|
+
addToCartCount: number;
|
|
8
|
+
/**
|
|
9
|
+
* Variant\'s [add-to-cart rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#add-to-cart-rate).
|
|
10
|
+
*/
|
|
11
|
+
addToCartRate: number;
|
|
12
|
+
/**
|
|
13
|
+
* Variant\'s [average click position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position).
|
|
14
|
+
*/
|
|
15
|
+
averageClickPosition: number;
|
|
16
|
+
/**
|
|
17
|
+
* Number of click events for this variant.
|
|
18
|
+
*/
|
|
19
|
+
clickCount: number;
|
|
20
|
+
/**
|
|
21
|
+
* Variant\'s [click-through rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
22
|
+
*/
|
|
23
|
+
clickThroughRate: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of click events for this variant.
|
|
26
|
+
*/
|
|
27
|
+
conversionCount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Variant\'s [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
|
|
30
|
+
*/
|
|
31
|
+
conversionRate: number;
|
|
32
|
+
/**
|
|
33
|
+
* A/B test currencies.
|
|
34
|
+
*/
|
|
35
|
+
currencies: Record<string, CurrenciesValue>;
|
|
36
|
+
/**
|
|
37
|
+
* A/B test description.
|
|
38
|
+
*/
|
|
39
|
+
description: string;
|
|
40
|
+
filterEffects?: FilterEffects;
|
|
41
|
+
/**
|
|
42
|
+
* A/B test index.
|
|
43
|
+
*/
|
|
44
|
+
index: string;
|
|
45
|
+
/**
|
|
46
|
+
* Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for that variant.
|
|
47
|
+
*/
|
|
48
|
+
noResultCount: number;
|
|
49
|
+
/**
|
|
50
|
+
* Number of purchase events for this variant.
|
|
51
|
+
*/
|
|
52
|
+
purchaseCount: number;
|
|
53
|
+
/**
|
|
54
|
+
* Variant\'s [purchase rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#purchase-rate).
|
|
55
|
+
*/
|
|
56
|
+
purchaseRate: number;
|
|
57
|
+
/**
|
|
58
|
+
* Number of searches carried out during the A/B test.
|
|
59
|
+
*/
|
|
60
|
+
searchCount: number;
|
|
61
|
+
/**
|
|
62
|
+
* Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
|
|
63
|
+
*/
|
|
64
|
+
trackedSearchCount: number;
|
|
65
|
+
/**
|
|
66
|
+
* A/B test traffic percentage.
|
|
67
|
+
*/
|
|
68
|
+
trafficPercentage: number;
|
|
69
|
+
/**
|
|
70
|
+
* Number of users during the A/B test.
|
|
71
|
+
*/
|
|
72
|
+
userCount: number;
|
|
73
|
+
/**
|
|
74
|
+
* Number of users that performed a tracked search during the A/B test.
|
|
75
|
+
*/
|
|
76
|
+
trackedUserCount: number;
|
|
77
|
+
};
|
|
51
78
|
//# 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,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,OAAO,GAAG;IACpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;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,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAE5C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;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;IAElB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC"}
|
|
@@ -1,125 +1,133 @@
|
|
|
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 {
|
|
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
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* @param
|
|
47
|
-
* @param
|
|
48
|
-
* @param
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* @param
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* @param
|
|
65
|
-
* @param
|
|
66
|
-
* @param
|
|
67
|
-
* @param
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* @param
|
|
75
|
-
* @param
|
|
76
|
-
* @param
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* @
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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 { CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, DeleteABTestProps, GetABTestProps, ListABTestsProps, StopABTestProps } from '../model/clientMethodProps';
|
|
6
|
+
import type { ListABTestsResponse } from '../model/listABTestsResponse';
|
|
7
|
+
export declare const apiClientVersion = "5.0.0-alpha.100";
|
|
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
|
+
* Required API Key ACLs:
|
|
37
|
+
* - editSettings.
|
|
38
|
+
*
|
|
39
|
+
* @param addABTestsRequest - The addABTestsRequest object.
|
|
40
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
41
|
+
*/
|
|
42
|
+
addABTests(addABTestsRequest: AddABTestsRequest, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
45
|
+
*
|
|
46
|
+
* @param customDelete - The customDelete object.
|
|
47
|
+
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
48
|
+
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
49
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
50
|
+
*/
|
|
51
|
+
customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
52
|
+
/**
|
|
53
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
54
|
+
*
|
|
55
|
+
* @param customGet - The customGet object.
|
|
56
|
+
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
57
|
+
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
58
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
59
|
+
*/
|
|
60
|
+
customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
61
|
+
/**
|
|
62
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
63
|
+
*
|
|
64
|
+
* @param customPost - The customPost object.
|
|
65
|
+
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
66
|
+
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
67
|
+
* @param customPost.body - Parameters to send with the custom request.
|
|
68
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
69
|
+
*/
|
|
70
|
+
customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
71
|
+
/**
|
|
72
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
73
|
+
*
|
|
74
|
+
* @param customPut - The customPut object.
|
|
75
|
+
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
76
|
+
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
77
|
+
* @param customPut.body - Parameters to send with the custom request.
|
|
78
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
79
|
+
*/
|
|
80
|
+
customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
81
|
+
/**
|
|
82
|
+
* Delete an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
|
|
83
|
+
*
|
|
84
|
+
* Required API Key ACLs:
|
|
85
|
+
* - editSettings.
|
|
86
|
+
*
|
|
87
|
+
* @param deleteABTest - The deleteABTest object.
|
|
88
|
+
* @param deleteABTest.id - Unique A/B test ID.
|
|
89
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
90
|
+
*/
|
|
91
|
+
deleteABTest({ id }: DeleteABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* 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).
|
|
94
|
+
*
|
|
95
|
+
* Required API Key ACLs:
|
|
96
|
+
* - analytics.
|
|
97
|
+
*
|
|
98
|
+
* @param getABTest - The getABTest object.
|
|
99
|
+
* @param getABTest.id - Unique A/B test ID.
|
|
100
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
101
|
+
*/
|
|
102
|
+
getABTest({ id }: GetABTestProps, requestOptions?: RequestOptions): Promise<ABTest>;
|
|
103
|
+
/**
|
|
104
|
+
* List all A/B tests.
|
|
105
|
+
*
|
|
106
|
+
* Required API Key ACLs:
|
|
107
|
+
* - analytics.
|
|
108
|
+
*
|
|
109
|
+
* @param listABTests - The listABTests object.
|
|
110
|
+
* @param listABTests.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
111
|
+
* @param listABTests.limit - Number of records to return (page size).
|
|
112
|
+
* @param listABTests.indexPrefix - Only return A/B tests for indices starting with this prefix.
|
|
113
|
+
* @param listABTests.indexSuffix - Only return A/B tests for indices ending with this suffix.
|
|
114
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
115
|
+
*/
|
|
116
|
+
listABTests({ offset, limit, indexPrefix, indexSuffix }?: ListABTestsProps, requestOptions?: RequestOptions | undefined): Promise<ListABTestsResponse>;
|
|
117
|
+
/**
|
|
118
|
+
* 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).
|
|
119
|
+
*
|
|
120
|
+
* Required API Key ACLs:
|
|
121
|
+
* - editSettings.
|
|
122
|
+
*
|
|
123
|
+
* @param stopABTest - The stopABTest object.
|
|
124
|
+
* @param stopABTest.id - Unique A/B test ID.
|
|
125
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
126
|
+
*/
|
|
127
|
+
stopABTest({ id }: StopABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* The client type.
|
|
131
|
+
*/
|
|
132
|
+
export type AbtestingClient = ReturnType<typeof createAbtestingClient>;
|
|
125
133
|
//# 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,
|
|
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,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,eAAe,EAChB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAElD,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;;;;;;;;OAQG;kCAEkB,iBAAiB,mBACnB,cAAc,GAC9B,QAAQ,cAAc,CAAC;IAsC1B;;;;;;;OAOG;uCAEqB,iBAAiB,mBACtB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAqB/B;;;;;;;OAOG;oCAEqB,cAAc,mBACnB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAqB/B;;;;;;;;OAQG;2CAE2B,eAAe,mBAC1B,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;;OAQG;0CAE2B,cAAc,mBACzB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;;;OASG;yBAEO,iBAAiB,mBACR,cAAc,GAC9B,QAAQ,cAAc,CAAC;IAwB1B;;;;;;;;;OASG;sBAEO,cAAc,mBACL,cAAc,GAC9B,QAAQ,MAAM,CAAC;IAsBlB;;;;;;;;;;;;OAYG;8DAE4C,gBAAgB,mBAC7C,cAAc,GAAG,SAAS,GACzC,QAAQ,mBAAmB,CAAC;IA+B/B;;;;;;;;;OASG;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,50 +1,65 @@
|
|
|
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
|
-
* A/B test significance based on conversion
|
|
17
|
+
* [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 conversion. A value of 0.95 or over is considered to be _significant_.
|
|
18
18
|
*/
|
|
19
19
|
conversionSignificance: number;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* [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 add-to-cart data. A value of 0.95 or over is considered to be _significant_.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
addToCartSignificance: number;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* [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 purchase data. A value of 0.95 or over is considered to be _significant_.
|
|
28
|
+
*/
|
|
29
|
+
purchaseSignificance: number;
|
|
25
30
|
|
|
26
31
|
/**
|
|
27
|
-
*
|
|
32
|
+
* [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 revenue data. A value of 0.95 or over is considered to be _significant_.
|
|
33
|
+
*/
|
|
34
|
+
revenueSignificance: Record<string, number>;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Update date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
28
38
|
*/
|
|
29
39
|
updatedAt: string;
|
|
30
40
|
|
|
31
41
|
/**
|
|
32
|
-
* Creation date
|
|
42
|
+
* Creation date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
33
43
|
*/
|
|
34
44
|
createdAt: string;
|
|
35
45
|
|
|
46
|
+
/**
|
|
47
|
+
* End date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
48
|
+
*/
|
|
49
|
+
endAt: string;
|
|
50
|
+
|
|
36
51
|
/**
|
|
37
52
|
* A/B test name.
|
|
38
53
|
*/
|
|
39
54
|
name: string;
|
|
40
55
|
|
|
41
56
|
/**
|
|
42
|
-
*
|
|
57
|
+
* A/B test status.
|
|
43
58
|
*/
|
|
44
59
|
status: string;
|
|
45
60
|
|
|
46
61
|
/**
|
|
47
|
-
*
|
|
62
|
+
* A/B test variants.
|
|
48
63
|
*/
|
|
49
64
|
variants: Variant[];
|
|
50
65
|
};
|
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
|
};
|