@algolia/client-abtesting 5.2.5 → 5.3.0
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/browser.d.ts +186 -66
- package/dist/builds/browser.js +43 -33
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/node.cjs +43 -33
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +43 -33
- package/dist/builds/node.js.map +1 -1
- package/dist/node.d.cts +187 -67
- package/dist/node.d.ts +187 -67
- package/dist/src/abtestingClient.cjs +43 -33
- package/dist/src/abtestingClient.cjs.map +1 -1
- package/dist/src/abtestingClient.js +43 -33
- package/dist/src/abtestingClient.js.map +1 -1
- package/package.json +4 -4
package/dist/node.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _algolia_client_common from '@algolia/client-common';
|
|
2
|
-
import { ClientOptions } from '@algolia/client-common';
|
|
2
|
+
import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for handling empty searches.
|
|
@@ -276,54 +276,6 @@ type AddABTestsRequest = {
|
|
|
276
276
|
endAt: string;
|
|
277
277
|
};
|
|
278
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
279
|
/**
|
|
328
280
|
* Properties for the `customDelete` method.
|
|
329
281
|
*/
|
|
@@ -433,30 +385,198 @@ type StopABTestProps = {
|
|
|
433
385
|
id: number;
|
|
434
386
|
};
|
|
435
387
|
|
|
436
|
-
|
|
388
|
+
type ListABTestsResponse = {
|
|
389
|
+
/**
|
|
390
|
+
* A/B tests.
|
|
391
|
+
*/
|
|
392
|
+
abtests: ABTest[] | null;
|
|
393
|
+
/**
|
|
394
|
+
* Number of A/B tests.
|
|
395
|
+
*/
|
|
396
|
+
count: number;
|
|
397
|
+
/**
|
|
398
|
+
* Number of retrievable A/B tests.
|
|
399
|
+
*/
|
|
400
|
+
total: number;
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
type ScheduleABTestResponse = {
|
|
404
|
+
/**
|
|
405
|
+
* Unique scheduled A/B test identifier.
|
|
406
|
+
*/
|
|
407
|
+
abTestScheduleID: number;
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
type ScheduleABTestsRequest = {
|
|
411
|
+
/**
|
|
412
|
+
* A/B test name.
|
|
413
|
+
*/
|
|
414
|
+
name: string;
|
|
415
|
+
/**
|
|
416
|
+
* A/B test variants.
|
|
417
|
+
*/
|
|
418
|
+
variants: AddABTestsVariant[];
|
|
419
|
+
/**
|
|
420
|
+
* Date and time when the A/B test is scheduled to start, in RFC 3339 format.
|
|
421
|
+
*/
|
|
422
|
+
scheduledAt: string;
|
|
423
|
+
/**
|
|
424
|
+
* End date and time of the A/B test, in RFC 3339 format.
|
|
425
|
+
*/
|
|
426
|
+
endAt: string;
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
declare const apiClientVersion = "5.3.0";
|
|
437
430
|
declare const REGIONS: readonly ["de", "us"];
|
|
438
431
|
type Region = (typeof REGIONS)[number];
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
*/
|
|
443
|
-
type AbtestingClient = ReturnType<typeof abtestingClient>;
|
|
444
|
-
declare function abtestingClient(appId: string, apiKey: string, region?: Region, options?: ClientOptions): {
|
|
432
|
+
declare function createAbtestingClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
|
|
433
|
+
region?: Region;
|
|
434
|
+
}): {
|
|
445
435
|
transporter: _algolia_client_common.Transporter;
|
|
436
|
+
/**
|
|
437
|
+
* The `appId` currently in use.
|
|
438
|
+
*/
|
|
446
439
|
appId: string;
|
|
440
|
+
/**
|
|
441
|
+
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
442
|
+
*/
|
|
447
443
|
clearCache(): Promise<void>;
|
|
448
|
-
|
|
444
|
+
/**
|
|
445
|
+
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
446
|
+
*/
|
|
447
|
+
readonly _ua: string;
|
|
448
|
+
/**
|
|
449
|
+
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
450
|
+
*
|
|
451
|
+
* @param segment - The algolia agent (user-agent) segment to add.
|
|
452
|
+
* @param version - The version of the agent.
|
|
453
|
+
*/
|
|
449
454
|
addAlgoliaAgent(segment: string, version?: string): void;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
455
|
+
/**
|
|
456
|
+
* Helper method to switch the API key used to authenticate the requests.
|
|
457
|
+
*
|
|
458
|
+
* @param params - Method params.
|
|
459
|
+
* @param params.apiKey - The new API Key to use.
|
|
460
|
+
*/
|
|
461
|
+
setClientApiKey({ apiKey }: {
|
|
462
|
+
apiKey: string;
|
|
463
|
+
}): void;
|
|
464
|
+
/**
|
|
465
|
+
* Creates a new A/B test.
|
|
466
|
+
*
|
|
467
|
+
* Required API Key ACLs:
|
|
468
|
+
* - editSettings.
|
|
469
|
+
*
|
|
470
|
+
* @param addABTestsRequest - The addABTestsRequest object.
|
|
471
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
472
|
+
*/
|
|
473
|
+
addABTests(addABTestsRequest: AddABTestsRequest, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
|
474
|
+
/**
|
|
475
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
476
|
+
*
|
|
477
|
+
* @param customDelete - The customDelete object.
|
|
478
|
+
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
479
|
+
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
480
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
481
|
+
*/
|
|
482
|
+
customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
483
|
+
/**
|
|
484
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
485
|
+
*
|
|
486
|
+
* @param customGet - The customGet object.
|
|
487
|
+
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
488
|
+
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
489
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
490
|
+
*/
|
|
491
|
+
customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
492
|
+
/**
|
|
493
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
494
|
+
*
|
|
495
|
+
* @param customPost - The customPost object.
|
|
496
|
+
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
497
|
+
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
498
|
+
* @param customPost.body - Parameters to send with the custom request.
|
|
499
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
500
|
+
*/
|
|
501
|
+
customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
502
|
+
/**
|
|
503
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
504
|
+
*
|
|
505
|
+
* @param customPut - The customPut object.
|
|
506
|
+
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
507
|
+
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
508
|
+
* @param customPut.body - Parameters to send with the custom request.
|
|
509
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
510
|
+
*/
|
|
511
|
+
customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
512
|
+
/**
|
|
513
|
+
* Deletes an A/B test by its ID.
|
|
514
|
+
*
|
|
515
|
+
* Required API Key ACLs:
|
|
516
|
+
* - editSettings.
|
|
517
|
+
*
|
|
518
|
+
* @param deleteABTest - The deleteABTest object.
|
|
519
|
+
* @param deleteABTest.id - Unique A/B test identifier.
|
|
520
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
521
|
+
*/
|
|
522
|
+
deleteABTest({ id }: DeleteABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
|
523
|
+
/**
|
|
524
|
+
* Retrieves the details for an A/B test by its ID.
|
|
525
|
+
*
|
|
526
|
+
* Required API Key ACLs:
|
|
527
|
+
* - analytics.
|
|
528
|
+
*
|
|
529
|
+
* @param getABTest - The getABTest object.
|
|
530
|
+
* @param getABTest.id - Unique A/B test identifier.
|
|
531
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
532
|
+
*/
|
|
533
|
+
getABTest({ id }: GetABTestProps, requestOptions?: RequestOptions): Promise<ABTest>;
|
|
534
|
+
/**
|
|
535
|
+
* Lists all A/B tests you configured for this application.
|
|
536
|
+
*
|
|
537
|
+
* Required API Key ACLs:
|
|
538
|
+
* - analytics.
|
|
539
|
+
*
|
|
540
|
+
* @param listABTests - The listABTests object.
|
|
541
|
+
* @param listABTests.offset - Position of the first item to return.
|
|
542
|
+
* @param listABTests.limit - Number of items to return.
|
|
543
|
+
* @param listABTests.indexPrefix - Index name prefix. Only A/B tests for indices starting with this string are included in the response.
|
|
544
|
+
* @param listABTests.indexSuffix - Index name suffix. Only A/B tests for indices ending with this string are included in the response.
|
|
545
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
546
|
+
*/
|
|
547
|
+
listABTests({ offset, limit, indexPrefix, indexSuffix }?: ListABTestsProps, requestOptions?: RequestOptions | undefined): Promise<ListABTestsResponse>;
|
|
548
|
+
/**
|
|
549
|
+
* Schedule an A/B test to be started at a later time.
|
|
550
|
+
*
|
|
551
|
+
* Required API Key ACLs:
|
|
552
|
+
* - editSettings.
|
|
553
|
+
*
|
|
554
|
+
* @param scheduleABTestsRequest - The scheduleABTestsRequest object.
|
|
555
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
556
|
+
*/
|
|
557
|
+
scheduleABTest(scheduleABTestsRequest: ScheduleABTestsRequest, requestOptions?: RequestOptions): Promise<ScheduleABTestResponse>;
|
|
558
|
+
/**
|
|
559
|
+
* Stops an A/B test by its ID. You can\'t restart stopped A/B tests.
|
|
560
|
+
*
|
|
561
|
+
* Required API Key ACLs:
|
|
562
|
+
* - editSettings.
|
|
563
|
+
*
|
|
564
|
+
* @param stopABTest - The stopABTest object.
|
|
565
|
+
* @param stopABTest.id - Unique A/B test identifier.
|
|
566
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
567
|
+
*/
|
|
568
|
+
stopABTest({ id }: StopABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
|
460
569
|
};
|
|
461
570
|
|
|
571
|
+
/**
|
|
572
|
+
* Error.
|
|
573
|
+
*/
|
|
574
|
+
type ErrorBase = Record<string, any> & {
|
|
575
|
+
message?: string;
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
type AbtestingClient = ReturnType<typeof createAbtestingClient>;
|
|
579
|
+
|
|
580
|
+
declare function abtestingClient(appId: string, apiKey: string, region?: Region, options?: ClientOptions): AbtestingClient;
|
|
581
|
+
|
|
462
582
|
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 };
|
package/dist/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _algolia_client_common from '@algolia/client-common';
|
|
2
|
-
import { ClientOptions } from '@algolia/client-common';
|
|
2
|
+
import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for handling empty searches.
|
|
@@ -276,54 +276,6 @@ type AddABTestsRequest = {
|
|
|
276
276
|
endAt: string;
|
|
277
277
|
};
|
|
278
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
279
|
/**
|
|
328
280
|
* Properties for the `customDelete` method.
|
|
329
281
|
*/
|
|
@@ -433,30 +385,198 @@ type StopABTestProps = {
|
|
|
433
385
|
id: number;
|
|
434
386
|
};
|
|
435
387
|
|
|
436
|
-
|
|
388
|
+
type ListABTestsResponse = {
|
|
389
|
+
/**
|
|
390
|
+
* A/B tests.
|
|
391
|
+
*/
|
|
392
|
+
abtests: ABTest[] | null;
|
|
393
|
+
/**
|
|
394
|
+
* Number of A/B tests.
|
|
395
|
+
*/
|
|
396
|
+
count: number;
|
|
397
|
+
/**
|
|
398
|
+
* Number of retrievable A/B tests.
|
|
399
|
+
*/
|
|
400
|
+
total: number;
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
type ScheduleABTestResponse = {
|
|
404
|
+
/**
|
|
405
|
+
* Unique scheduled A/B test identifier.
|
|
406
|
+
*/
|
|
407
|
+
abTestScheduleID: number;
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
type ScheduleABTestsRequest = {
|
|
411
|
+
/**
|
|
412
|
+
* A/B test name.
|
|
413
|
+
*/
|
|
414
|
+
name: string;
|
|
415
|
+
/**
|
|
416
|
+
* A/B test variants.
|
|
417
|
+
*/
|
|
418
|
+
variants: AddABTestsVariant[];
|
|
419
|
+
/**
|
|
420
|
+
* Date and time when the A/B test is scheduled to start, in RFC 3339 format.
|
|
421
|
+
*/
|
|
422
|
+
scheduledAt: string;
|
|
423
|
+
/**
|
|
424
|
+
* End date and time of the A/B test, in RFC 3339 format.
|
|
425
|
+
*/
|
|
426
|
+
endAt: string;
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
declare const apiClientVersion = "5.3.0";
|
|
437
430
|
declare const REGIONS: readonly ["de", "us"];
|
|
438
431
|
type Region = (typeof REGIONS)[number];
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
*/
|
|
443
|
-
type AbtestingClient = ReturnType<typeof abtestingClient>;
|
|
444
|
-
declare function abtestingClient(appId: string, apiKey: string, region?: Region, options?: ClientOptions): {
|
|
432
|
+
declare function createAbtestingClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
|
|
433
|
+
region?: Region;
|
|
434
|
+
}): {
|
|
445
435
|
transporter: _algolia_client_common.Transporter;
|
|
436
|
+
/**
|
|
437
|
+
* The `appId` currently in use.
|
|
438
|
+
*/
|
|
446
439
|
appId: string;
|
|
440
|
+
/**
|
|
441
|
+
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
442
|
+
*/
|
|
447
443
|
clearCache(): Promise<void>;
|
|
448
|
-
|
|
444
|
+
/**
|
|
445
|
+
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
446
|
+
*/
|
|
447
|
+
readonly _ua: string;
|
|
448
|
+
/**
|
|
449
|
+
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
450
|
+
*
|
|
451
|
+
* @param segment - The algolia agent (user-agent) segment to add.
|
|
452
|
+
* @param version - The version of the agent.
|
|
453
|
+
*/
|
|
449
454
|
addAlgoliaAgent(segment: string, version?: string): void;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
455
|
+
/**
|
|
456
|
+
* Helper method to switch the API key used to authenticate the requests.
|
|
457
|
+
*
|
|
458
|
+
* @param params - Method params.
|
|
459
|
+
* @param params.apiKey - The new API Key to use.
|
|
460
|
+
*/
|
|
461
|
+
setClientApiKey({ apiKey }: {
|
|
462
|
+
apiKey: string;
|
|
463
|
+
}): void;
|
|
464
|
+
/**
|
|
465
|
+
* Creates a new A/B test.
|
|
466
|
+
*
|
|
467
|
+
* Required API Key ACLs:
|
|
468
|
+
* - editSettings.
|
|
469
|
+
*
|
|
470
|
+
* @param addABTestsRequest - The addABTestsRequest object.
|
|
471
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
472
|
+
*/
|
|
473
|
+
addABTests(addABTestsRequest: AddABTestsRequest, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
|
474
|
+
/**
|
|
475
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
476
|
+
*
|
|
477
|
+
* @param customDelete - The customDelete object.
|
|
478
|
+
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
479
|
+
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
480
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
481
|
+
*/
|
|
482
|
+
customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
483
|
+
/**
|
|
484
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
485
|
+
*
|
|
486
|
+
* @param customGet - The customGet object.
|
|
487
|
+
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
488
|
+
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
489
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
490
|
+
*/
|
|
491
|
+
customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
492
|
+
/**
|
|
493
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
494
|
+
*
|
|
495
|
+
* @param customPost - The customPost object.
|
|
496
|
+
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
497
|
+
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
498
|
+
* @param customPost.body - Parameters to send with the custom request.
|
|
499
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
500
|
+
*/
|
|
501
|
+
customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
502
|
+
/**
|
|
503
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
504
|
+
*
|
|
505
|
+
* @param customPut - The customPut object.
|
|
506
|
+
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
507
|
+
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
508
|
+
* @param customPut.body - Parameters to send with the custom request.
|
|
509
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
510
|
+
*/
|
|
511
|
+
customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
512
|
+
/**
|
|
513
|
+
* Deletes an A/B test by its ID.
|
|
514
|
+
*
|
|
515
|
+
* Required API Key ACLs:
|
|
516
|
+
* - editSettings.
|
|
517
|
+
*
|
|
518
|
+
* @param deleteABTest - The deleteABTest object.
|
|
519
|
+
* @param deleteABTest.id - Unique A/B test identifier.
|
|
520
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
521
|
+
*/
|
|
522
|
+
deleteABTest({ id }: DeleteABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
|
523
|
+
/**
|
|
524
|
+
* Retrieves the details for an A/B test by its ID.
|
|
525
|
+
*
|
|
526
|
+
* Required API Key ACLs:
|
|
527
|
+
* - analytics.
|
|
528
|
+
*
|
|
529
|
+
* @param getABTest - The getABTest object.
|
|
530
|
+
* @param getABTest.id - Unique A/B test identifier.
|
|
531
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
532
|
+
*/
|
|
533
|
+
getABTest({ id }: GetABTestProps, requestOptions?: RequestOptions): Promise<ABTest>;
|
|
534
|
+
/**
|
|
535
|
+
* Lists all A/B tests you configured for this application.
|
|
536
|
+
*
|
|
537
|
+
* Required API Key ACLs:
|
|
538
|
+
* - analytics.
|
|
539
|
+
*
|
|
540
|
+
* @param listABTests - The listABTests object.
|
|
541
|
+
* @param listABTests.offset - Position of the first item to return.
|
|
542
|
+
* @param listABTests.limit - Number of items to return.
|
|
543
|
+
* @param listABTests.indexPrefix - Index name prefix. Only A/B tests for indices starting with this string are included in the response.
|
|
544
|
+
* @param listABTests.indexSuffix - Index name suffix. Only A/B tests for indices ending with this string are included in the response.
|
|
545
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
546
|
+
*/
|
|
547
|
+
listABTests({ offset, limit, indexPrefix, indexSuffix }?: ListABTestsProps, requestOptions?: RequestOptions | undefined): Promise<ListABTestsResponse>;
|
|
548
|
+
/**
|
|
549
|
+
* Schedule an A/B test to be started at a later time.
|
|
550
|
+
*
|
|
551
|
+
* Required API Key ACLs:
|
|
552
|
+
* - editSettings.
|
|
553
|
+
*
|
|
554
|
+
* @param scheduleABTestsRequest - The scheduleABTestsRequest object.
|
|
555
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
556
|
+
*/
|
|
557
|
+
scheduleABTest(scheduleABTestsRequest: ScheduleABTestsRequest, requestOptions?: RequestOptions): Promise<ScheduleABTestResponse>;
|
|
558
|
+
/**
|
|
559
|
+
* Stops an A/B test by its ID. You can\'t restart stopped A/B tests.
|
|
560
|
+
*
|
|
561
|
+
* Required API Key ACLs:
|
|
562
|
+
* - editSettings.
|
|
563
|
+
*
|
|
564
|
+
* @param stopABTest - The stopABTest object.
|
|
565
|
+
* @param stopABTest.id - Unique A/B test identifier.
|
|
566
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
567
|
+
*/
|
|
568
|
+
stopABTest({ id }: StopABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
|
|
460
569
|
};
|
|
461
570
|
|
|
571
|
+
/**
|
|
572
|
+
* Error.
|
|
573
|
+
*/
|
|
574
|
+
type ErrorBase = Record<string, any> & {
|
|
575
|
+
message?: string;
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
type AbtestingClient = ReturnType<typeof createAbtestingClient>;
|
|
579
|
+
|
|
580
|
+
declare function abtestingClient(appId: string, apiKey: string, region?: Region, options?: ClientOptions): AbtestingClient;
|
|
581
|
+
|
|
462
582
|
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 };
|