@algolia/client-abtesting 5.2.2 → 5.2.4-beta.2
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/README.md +2 -2
- package/dist/browser.d.ts +462 -0
- package/dist/builds/browser.js +391 -0
- package/dist/builds/browser.js.map +1 -0
- package/dist/builds/browser.min.js +2 -0
- package/dist/builds/browser.min.js.map +1 -0
- package/dist/builds/browser.umd.js +12 -0
- package/dist/builds/node.cjs +409 -0
- package/dist/builds/node.cjs.map +1 -0
- package/dist/builds/node.js +389 -0
- package/dist/builds/node.js.map +1 -0
- package/dist/node.d.cts +462 -0
- package/dist/node.d.ts +462 -0
- package/dist/src/abtestingClient.cjs +376 -0
- package/dist/src/abtestingClient.cjs.map +1 -0
- package/dist/src/abtestingClient.js +349 -0
- package/dist/src/abtestingClient.js.map +1 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +27 -27
- package/dist/builds/browser.d.ts +0 -26
- package/dist/builds/browser.d.ts.map +0 -1
- package/dist/builds/node.d.ts +0 -26
- package/dist/builds/node.d.ts.map +0 -1
- package/dist/client-abtesting.cjs +0 -376
- package/dist/client-abtesting.esm.browser.js +0 -1050
- package/dist/client-abtesting.esm.node.js +0 -373
- package/dist/client-abtesting.umd.js +0 -2
- package/dist/model/aBTest.d.ts +0 -37
- package/dist/model/aBTest.d.ts.map +0 -1
- package/dist/model/aBTestConfiguration.d.ts +0 -12
- package/dist/model/aBTestConfiguration.d.ts.map +0 -1
- package/dist/model/aBTestResponse.d.ts +0 -15
- package/dist/model/aBTestResponse.d.ts.map +0 -1
- package/dist/model/abTestsVariant.d.ts +0 -15
- package/dist/model/abTestsVariant.d.ts.map +0 -1
- package/dist/model/abTestsVariantSearchParams.d.ts +0 -4
- package/dist/model/abTestsVariantSearchParams.d.ts.map +0 -1
- package/dist/model/addABTestsRequest.d.ts +0 -16
- package/dist/model/addABTestsRequest.d.ts.map +0 -1
- package/dist/model/addABTestsVariant.d.ts +0 -4
- package/dist/model/addABTestsVariant.d.ts.map +0 -1
- package/dist/model/clientMethodProps.d.ts +0 -109
- package/dist/model/clientMethodProps.d.ts.map +0 -1
- package/dist/model/currency.d.ts +0 -19
- package/dist/model/currency.d.ts.map +0 -1
- package/dist/model/customSearchParams.d.ts +0 -7
- package/dist/model/customSearchParams.d.ts.map +0 -1
- package/dist/model/effect.d.ts +0 -5
- package/dist/model/effect.d.ts.map +0 -1
- package/dist/model/emptySearch.d.ts +0 -10
- package/dist/model/emptySearch.d.ts.map +0 -1
- package/dist/model/emptySearchFilter.d.ts +0 -14
- package/dist/model/emptySearchFilter.d.ts.map +0 -1
- package/dist/model/errorBase.d.ts +0 -7
- package/dist/model/errorBase.d.ts.map +0 -1
- package/dist/model/filterEffects.d.ts +0 -10
- package/dist/model/filterEffects.d.ts.map +0 -1
- package/dist/model/index.d.ts +0 -24
- package/dist/model/index.d.ts.map +0 -1
- package/dist/model/listABTestsResponse.d.ts +0 -16
- package/dist/model/listABTestsResponse.d.ts.map +0 -1
- package/dist/model/minimumDetectableEffect.d.ts +0 -12
- package/dist/model/minimumDetectableEffect.d.ts.map +0 -1
- package/dist/model/outliers.d.ts +0 -10
- package/dist/model/outliers.d.ts.map +0 -1
- package/dist/model/outliersFilter.d.ts +0 -14
- package/dist/model/outliersFilter.d.ts.map +0 -1
- package/dist/model/scheduleABTestResponse.d.ts +0 -7
- package/dist/model/scheduleABTestResponse.d.ts.map +0 -1
- package/dist/model/scheduleABTestsRequest.d.ts +0 -20
- package/dist/model/scheduleABTestsRequest.d.ts.map +0 -1
- package/dist/model/status.d.ts +0 -5
- package/dist/model/status.d.ts.map +0 -1
- package/dist/model/variant.d.ts +0 -82
- package/dist/model/variant.d.ts.map +0 -1
- package/dist/src/abtestingClient.d.ts +0 -141
- package/dist/src/abtestingClient.d.ts.map +0 -1
package/dist/node.d.ts
ADDED
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
import * as _algolia_client_common from '@algolia/client-common';
|
|
2
|
+
import { ClientOptions } from '@algolia/client-common';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Configuration for handling empty searches.
|
|
6
|
+
*/
|
|
7
|
+
type EmptySearch = {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to exclude empty searches when calculating A/B test results.
|
|
10
|
+
*/
|
|
11
|
+
exclude?: boolean;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Metric for which you want to detect the smallest relative difference.
|
|
16
|
+
*/
|
|
17
|
+
type Effect = 'addToCartRate' | 'clickThroughRate' | 'conversionRate' | 'purchaseRate';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Configuration for the smallest difference between test variants you want to detect.
|
|
21
|
+
*/
|
|
22
|
+
type MinimumDetectableEffect = {
|
|
23
|
+
/**
|
|
24
|
+
* Smallest difference in an observable metric between variants. For example, to detect a 10% difference between variants, set this value to 0.1.
|
|
25
|
+
*/
|
|
26
|
+
size?: number;
|
|
27
|
+
effect?: Effect;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Configuration for handling outliers.
|
|
32
|
+
*/
|
|
33
|
+
type Outliers = {
|
|
34
|
+
/**
|
|
35
|
+
* Whether to exclude outliers when calculating A/B test results.
|
|
36
|
+
*/
|
|
37
|
+
exclude?: boolean;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* A/B test configuration.
|
|
42
|
+
*/
|
|
43
|
+
type ABTestConfiguration = {
|
|
44
|
+
outliers: Outliers;
|
|
45
|
+
emptySearch?: EmptySearch;
|
|
46
|
+
minimumDetectableEffect?: MinimumDetectableEffect;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* A/B test status. - `active`. The A/B test is live and search traffic is split between the two variants. - `stopped`. You stopped the A/B test. The A/B test data is still available for analysis. - `expired`. The A/B test was automatically stopped after reaching its end date. - `failed`. Creating the A/B test failed.
|
|
51
|
+
*/
|
|
52
|
+
type Status = 'active' | 'expired' | 'failed' | 'stopped';
|
|
53
|
+
|
|
54
|
+
type Currency = {
|
|
55
|
+
/**
|
|
56
|
+
* Currency code.
|
|
57
|
+
*/
|
|
58
|
+
currency?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Revenue for this currency.
|
|
61
|
+
*/
|
|
62
|
+
revenue?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Mean for this currency.
|
|
65
|
+
*/
|
|
66
|
+
mean?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Standard deviation for this currency.
|
|
69
|
+
*/
|
|
70
|
+
standardDeviation?: number;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Empty searches removed from the A/B test as a result of configuration settings.
|
|
75
|
+
*/
|
|
76
|
+
type EmptySearchFilter = {
|
|
77
|
+
/**
|
|
78
|
+
* Number of users removed from the A/B test.
|
|
79
|
+
*/
|
|
80
|
+
usersCount?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Number of tracked searches removed from the A/B test.
|
|
83
|
+
*/
|
|
84
|
+
trackedSearchesCount?: number;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Outliers removed from the A/B test as a result of configuration settings.
|
|
89
|
+
*/
|
|
90
|
+
type OutliersFilter = {
|
|
91
|
+
/**
|
|
92
|
+
* Number of users removed from the A/B test.
|
|
93
|
+
*/
|
|
94
|
+
usersCount?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Number of tracked searches removed from the A/B test.
|
|
97
|
+
*/
|
|
98
|
+
trackedSearchesCount?: number;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* A/B test filter effects resulting from configuration settings.
|
|
103
|
+
*/
|
|
104
|
+
type FilterEffects = {
|
|
105
|
+
outliers?: OutliersFilter;
|
|
106
|
+
emptySearch?: EmptySearchFilter;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
type Variant = {
|
|
110
|
+
/**
|
|
111
|
+
* Number of add-to-cart events for this variant.
|
|
112
|
+
*/
|
|
113
|
+
addToCartCount: number;
|
|
114
|
+
/**
|
|
115
|
+
* [Add-to-cart rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#add-to-cart-rate) for this variant.
|
|
116
|
+
*/
|
|
117
|
+
addToCartRate?: number | null;
|
|
118
|
+
/**
|
|
119
|
+
* [Average click position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position) for this variant.
|
|
120
|
+
*/
|
|
121
|
+
averageClickPosition?: number | null;
|
|
122
|
+
/**
|
|
123
|
+
* Number of click events for this variant.
|
|
124
|
+
*/
|
|
125
|
+
clickCount: number;
|
|
126
|
+
/**
|
|
127
|
+
* [Click-through rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate) for this variant.
|
|
128
|
+
*/
|
|
129
|
+
clickThroughRate?: number | null;
|
|
130
|
+
/**
|
|
131
|
+
* Number of click events for this variant.
|
|
132
|
+
*/
|
|
133
|
+
conversionCount: number;
|
|
134
|
+
/**
|
|
135
|
+
* [Conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate) for this variant.
|
|
136
|
+
*/
|
|
137
|
+
conversionRate?: number | null;
|
|
138
|
+
/**
|
|
139
|
+
* A/B test currencies.
|
|
140
|
+
*/
|
|
141
|
+
currencies?: Record<string, Currency>;
|
|
142
|
+
/**
|
|
143
|
+
* Description for this variant.
|
|
144
|
+
*/
|
|
145
|
+
description: string;
|
|
146
|
+
/**
|
|
147
|
+
* 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.
|
|
148
|
+
*/
|
|
149
|
+
estimatedSampleSize?: number;
|
|
150
|
+
filterEffects?: FilterEffects;
|
|
151
|
+
/**
|
|
152
|
+
* Index name of the A/B test variant (case-sensitive).
|
|
153
|
+
*/
|
|
154
|
+
index: string;
|
|
155
|
+
/**
|
|
156
|
+
* Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for this variant.
|
|
157
|
+
*/
|
|
158
|
+
noResultCount: number | null;
|
|
159
|
+
/**
|
|
160
|
+
* Number of purchase events for this variant.
|
|
161
|
+
*/
|
|
162
|
+
purchaseCount: number;
|
|
163
|
+
/**
|
|
164
|
+
* [Purchase rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#purchase-rate) for this variant.
|
|
165
|
+
*/
|
|
166
|
+
purchaseRate?: number | null;
|
|
167
|
+
/**
|
|
168
|
+
* Number of searches for this variant.
|
|
169
|
+
*/
|
|
170
|
+
searchCount: number | null;
|
|
171
|
+
/**
|
|
172
|
+
* Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
|
|
173
|
+
*/
|
|
174
|
+
trackedSearchCount?: number;
|
|
175
|
+
/**
|
|
176
|
+
* Percentage of search requests each variant receives.
|
|
177
|
+
*/
|
|
178
|
+
trafficPercentage: number;
|
|
179
|
+
/**
|
|
180
|
+
* Number of users that made searches to this variant.
|
|
181
|
+
*/
|
|
182
|
+
userCount: number | null;
|
|
183
|
+
/**
|
|
184
|
+
* Number of users that made tracked searches to this variant.
|
|
185
|
+
*/
|
|
186
|
+
trackedUserCount: number | null;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
type ABTest = {
|
|
190
|
+
/**
|
|
191
|
+
* Unique A/B test identifier.
|
|
192
|
+
*/
|
|
193
|
+
abTestID: number;
|
|
194
|
+
clickSignificance?: number | null;
|
|
195
|
+
conversionSignificance?: number | null;
|
|
196
|
+
addToCartSignificance?: number | null;
|
|
197
|
+
purchaseSignificance?: number | null;
|
|
198
|
+
revenueSignificance?: Record<string, number> | null;
|
|
199
|
+
/**
|
|
200
|
+
* Date and time when the A/B test was last updated, in RFC 3339 format.
|
|
201
|
+
*/
|
|
202
|
+
updatedAt: string;
|
|
203
|
+
/**
|
|
204
|
+
* Date and time when the A/B test was created, in RFC 3339 format.
|
|
205
|
+
*/
|
|
206
|
+
createdAt: string;
|
|
207
|
+
/**
|
|
208
|
+
* End date and time of the A/B test, in RFC 3339 format.
|
|
209
|
+
*/
|
|
210
|
+
endAt: string;
|
|
211
|
+
/**
|
|
212
|
+
* A/B test name.
|
|
213
|
+
*/
|
|
214
|
+
name: string;
|
|
215
|
+
status: Status;
|
|
216
|
+
/**
|
|
217
|
+
* A/B test variants. The first variant is your _control_ index, typically your production index. The second variant is an index with changed settings that you want to test against the control.
|
|
218
|
+
*/
|
|
219
|
+
variants: Variant[];
|
|
220
|
+
configuration?: ABTestConfiguration;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
type ABTestResponse = {
|
|
224
|
+
/**
|
|
225
|
+
* Index name of the A/B test variant (case-sensitive).
|
|
226
|
+
*/
|
|
227
|
+
index: string;
|
|
228
|
+
/**
|
|
229
|
+
* Unique A/B test identifier.
|
|
230
|
+
*/
|
|
231
|
+
abTestID: number;
|
|
232
|
+
/**
|
|
233
|
+
* 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](#tag/Indices/operation/getTask) and this `taskID`.
|
|
234
|
+
*/
|
|
235
|
+
taskID: number;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
type AbTestsVariant = {
|
|
239
|
+
/**
|
|
240
|
+
* Index name of the A/B test variant (case-sensitive).
|
|
241
|
+
*/
|
|
242
|
+
index: string;
|
|
243
|
+
/**
|
|
244
|
+
* Percentage of search requests each variant receives.
|
|
245
|
+
*/
|
|
246
|
+
trafficPercentage: number;
|
|
247
|
+
/**
|
|
248
|
+
* Description for this variant.
|
|
249
|
+
*/
|
|
250
|
+
description?: string;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Search parameters to add to the test variant. Only use this parameter if the two variants use the same index.
|
|
255
|
+
*/
|
|
256
|
+
type CustomSearchParams = {
|
|
257
|
+
customSearchParameters: Record<string, unknown>;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
type AbTestsVariantSearchParams = AbTestsVariant & CustomSearchParams;
|
|
261
|
+
|
|
262
|
+
type AddABTestsVariant = AbTestsVariant | AbTestsVariantSearchParams;
|
|
263
|
+
|
|
264
|
+
type AddABTestsRequest = {
|
|
265
|
+
/**
|
|
266
|
+
* A/B test name.
|
|
267
|
+
*/
|
|
268
|
+
name: string;
|
|
269
|
+
/**
|
|
270
|
+
* A/B test variants.
|
|
271
|
+
*/
|
|
272
|
+
variants: AddABTestsVariant[];
|
|
273
|
+
/**
|
|
274
|
+
* End date and time of the A/B test, in RFC 3339 format.
|
|
275
|
+
*/
|
|
276
|
+
endAt: string;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Error.
|
|
281
|
+
*/
|
|
282
|
+
type ErrorBase = Record<string, any> & {
|
|
283
|
+
message?: string;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
type ListABTestsResponse = {
|
|
287
|
+
/**
|
|
288
|
+
* A/B tests.
|
|
289
|
+
*/
|
|
290
|
+
abtests: ABTest[] | null;
|
|
291
|
+
/**
|
|
292
|
+
* Number of A/B tests.
|
|
293
|
+
*/
|
|
294
|
+
count: number;
|
|
295
|
+
/**
|
|
296
|
+
* Number of retrievable A/B tests.
|
|
297
|
+
*/
|
|
298
|
+
total: number;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
type ScheduleABTestResponse = {
|
|
302
|
+
/**
|
|
303
|
+
* Unique scheduled A/B test identifier.
|
|
304
|
+
*/
|
|
305
|
+
abTestScheduleID: number;
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
type ScheduleABTestsRequest = {
|
|
309
|
+
/**
|
|
310
|
+
* A/B test name.
|
|
311
|
+
*/
|
|
312
|
+
name: string;
|
|
313
|
+
/**
|
|
314
|
+
* A/B test variants.
|
|
315
|
+
*/
|
|
316
|
+
variants: AddABTestsVariant[];
|
|
317
|
+
/**
|
|
318
|
+
* Date and time when the A/B test is scheduled to start, in RFC 3339 format.
|
|
319
|
+
*/
|
|
320
|
+
scheduledAt: string;
|
|
321
|
+
/**
|
|
322
|
+
* End date and time of the A/B test, in RFC 3339 format.
|
|
323
|
+
*/
|
|
324
|
+
endAt: string;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Properties for the `customDelete` method.
|
|
329
|
+
*/
|
|
330
|
+
type CustomDeleteProps = {
|
|
331
|
+
/**
|
|
332
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
333
|
+
*/
|
|
334
|
+
path: string;
|
|
335
|
+
/**
|
|
336
|
+
* Query parameters to apply to the current query.
|
|
337
|
+
*/
|
|
338
|
+
parameters?: Record<string, any>;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* Properties for the `customGet` method.
|
|
342
|
+
*/
|
|
343
|
+
type CustomGetProps = {
|
|
344
|
+
/**
|
|
345
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
346
|
+
*/
|
|
347
|
+
path: string;
|
|
348
|
+
/**
|
|
349
|
+
* Query parameters to apply to the current query.
|
|
350
|
+
*/
|
|
351
|
+
parameters?: Record<string, any>;
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* Properties for the `customPost` method.
|
|
355
|
+
*/
|
|
356
|
+
type CustomPostProps = {
|
|
357
|
+
/**
|
|
358
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
359
|
+
*/
|
|
360
|
+
path: string;
|
|
361
|
+
/**
|
|
362
|
+
* Query parameters to apply to the current query.
|
|
363
|
+
*/
|
|
364
|
+
parameters?: Record<string, any>;
|
|
365
|
+
/**
|
|
366
|
+
* Parameters to send with the custom request.
|
|
367
|
+
*/
|
|
368
|
+
body?: Record<string, unknown>;
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* Properties for the `customPut` method.
|
|
372
|
+
*/
|
|
373
|
+
type CustomPutProps = {
|
|
374
|
+
/**
|
|
375
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
376
|
+
*/
|
|
377
|
+
path: string;
|
|
378
|
+
/**
|
|
379
|
+
* Query parameters to apply to the current query.
|
|
380
|
+
*/
|
|
381
|
+
parameters?: Record<string, any>;
|
|
382
|
+
/**
|
|
383
|
+
* Parameters to send with the custom request.
|
|
384
|
+
*/
|
|
385
|
+
body?: Record<string, unknown>;
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* Properties for the `deleteABTest` method.
|
|
389
|
+
*/
|
|
390
|
+
type DeleteABTestProps = {
|
|
391
|
+
/**
|
|
392
|
+
* Unique A/B test identifier.
|
|
393
|
+
*/
|
|
394
|
+
id: number;
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* Properties for the `getABTest` method.
|
|
398
|
+
*/
|
|
399
|
+
type GetABTestProps = {
|
|
400
|
+
/**
|
|
401
|
+
* Unique A/B test identifier.
|
|
402
|
+
*/
|
|
403
|
+
id: number;
|
|
404
|
+
};
|
|
405
|
+
/**
|
|
406
|
+
* Properties for the `listABTests` method.
|
|
407
|
+
*/
|
|
408
|
+
type ListABTestsProps = {
|
|
409
|
+
/**
|
|
410
|
+
* Position of the first item to return.
|
|
411
|
+
*/
|
|
412
|
+
offset?: number;
|
|
413
|
+
/**
|
|
414
|
+
* Number of items to return.
|
|
415
|
+
*/
|
|
416
|
+
limit?: number;
|
|
417
|
+
/**
|
|
418
|
+
* Index name prefix. Only A/B tests for indices starting with this string are included in the response.
|
|
419
|
+
*/
|
|
420
|
+
indexPrefix?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Index name suffix. Only A/B tests for indices ending with this string are included in the response.
|
|
423
|
+
*/
|
|
424
|
+
indexSuffix?: string;
|
|
425
|
+
};
|
|
426
|
+
/**
|
|
427
|
+
* Properties for the `stopABTest` method.
|
|
428
|
+
*/
|
|
429
|
+
type StopABTestProps = {
|
|
430
|
+
/**
|
|
431
|
+
* Unique A/B test identifier.
|
|
432
|
+
*/
|
|
433
|
+
id: number;
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
declare const apiClientVersion = "5.2.4";
|
|
437
|
+
declare const REGIONS: readonly ["de", "us"];
|
|
438
|
+
type Region = (typeof REGIONS)[number];
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* The client type.
|
|
442
|
+
*/
|
|
443
|
+
type AbtestingClient = ReturnType<typeof abtestingClient>;
|
|
444
|
+
declare function abtestingClient(appId: string, apiKey: string, region?: Region, options?: ClientOptions): {
|
|
445
|
+
transporter: _algolia_client_common.Transporter;
|
|
446
|
+
appId: string;
|
|
447
|
+
clearCache(): Promise<void>;
|
|
448
|
+
_ua: string;
|
|
449
|
+
addAlgoliaAgent(segment: string, version?: string): void;
|
|
450
|
+
addABTests(addABTestsRequest: AddABTestsRequest, requestOptions?: _algolia_client_common.RequestOptions): Promise<ABTestResponse>;
|
|
451
|
+
customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
|
|
452
|
+
customGet({ path, parameters }: CustomGetProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
|
|
453
|
+
customPost({ path, parameters, body }: CustomPostProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
|
|
454
|
+
customPut({ path, parameters, body }: CustomPutProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
|
|
455
|
+
deleteABTest({ id }: DeleteABTestProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<ABTestResponse>;
|
|
456
|
+
getABTest({ id }: GetABTestProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<ABTest>;
|
|
457
|
+
listABTests({ offset, limit, indexPrefix, indexSuffix }?: ListABTestsProps, requestOptions?: _algolia_client_common.RequestOptions | undefined): Promise<ListABTestsResponse>;
|
|
458
|
+
scheduleABTest(scheduleABTestsRequest: ScheduleABTestsRequest, requestOptions?: _algolia_client_common.RequestOptions): Promise<ScheduleABTestResponse>;
|
|
459
|
+
stopABTest({ id }: StopABTestProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<ABTestResponse>;
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
export { type ABTest, type ABTestConfiguration, type ABTestResponse, type AbTestsVariant, type AbTestsVariantSearchParams, type AbtestingClient, type AddABTestsRequest, type AddABTestsVariant, type Currency, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type CustomSearchParams, type DeleteABTestProps, type Effect, type EmptySearch, type EmptySearchFilter, type ErrorBase, type FilterEffects, type GetABTestProps, type ListABTestsProps, type ListABTestsResponse, type MinimumDetectableEffect, type Outliers, type OutliersFilter, type Region, type ScheduleABTestResponse, type ScheduleABTestsRequest, type Status, type StopABTestProps, type Variant, abtestingClient, apiClientVersion };
|