@algolia/abtesting 1.21.2 → 1.22.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/node.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _algolia_client_common from '@algolia/client-common';
2
- import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';
2
+ import { CreateClientOptions, RequestOptions, AlgoliaHttpResponse, ClientOptions } from '@algolia/client-common';
3
3
 
4
4
  /**
5
5
  * Multiple-testing correction method applied when evaluating metric significance.
@@ -512,14 +512,14 @@ type StopABTestProps = {
512
512
  id: number;
513
513
  };
514
514
 
515
- declare const apiClientVersion = "1.21.2";
515
+ declare const apiClientVersion = "1.22.0";
516
516
  declare const REGIONS: readonly ["de", "us"];
517
517
  type Region = (typeof REGIONS)[number];
518
518
  type RegionOptions = {
519
519
  region?: Region | undefined;
520
520
  };
521
521
  declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & RegionOptions): {
522
- transporter: _algolia_client_common.Transporter;
522
+ transporter: _algolia_client_common.TransporterWithHttpInfo;
523
523
  /**
524
524
  * The `appId` currently in use.
525
525
  */
@@ -561,6 +561,18 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
561
561
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
562
562
  */
563
563
  addABTests(addABTestsRequest: AddABTestsRequest, requestOptions?: RequestOptions): Promise<ABTestResponse>;
564
+ /**
565
+ * Creates a new A/B test.
566
+ *
567
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
568
+ *
569
+ * Required API Key ACLs:
570
+ * - editSettings
571
+ * @param addABTestsRequest - The addABTestsRequest object.
572
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
573
+ * @see addABTests for the plain version.
574
+ */
575
+ addABTestsWithHTTPInfo(addABTestsRequest: AddABTestsRequest, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<ABTestResponse>>;
564
576
  /**
565
577
  * This method lets you send requests to the Algolia REST API.
566
578
  * @param customDelete - The customDelete object.
@@ -569,6 +581,17 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
569
581
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
570
582
  */
571
583
  customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
584
+ /**
585
+ * This method lets you send requests to the Algolia REST API.
586
+ *
587
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
588
+ * @param customDelete - The customDelete object.
589
+ * @param customDelete.path - Path of the endpoint, for example `1/newFeature`.
590
+ * @param customDelete.parameters - Query parameters to apply to the current query.
591
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
592
+ * @see customDelete for the plain version.
593
+ */
594
+ customDeleteWithHTTPInfo({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Record<string, unknown>>>;
572
595
  /**
573
596
  * This method lets you send requests to the Algolia REST API.
574
597
  * @param customGet - The customGet object.
@@ -577,6 +600,17 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
577
600
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
578
601
  */
579
602
  customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
603
+ /**
604
+ * This method lets you send requests to the Algolia REST API.
605
+ *
606
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
607
+ * @param customGet - The customGet object.
608
+ * @param customGet.path - Path of the endpoint, for example `1/newFeature`.
609
+ * @param customGet.parameters - Query parameters to apply to the current query.
610
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
611
+ * @see customGet for the plain version.
612
+ */
613
+ customGetWithHTTPInfo({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Record<string, unknown>>>;
580
614
  /**
581
615
  * This method lets you send requests to the Algolia REST API.
582
616
  * @param customPost - The customPost object.
@@ -586,6 +620,18 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
586
620
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
587
621
  */
588
622
  customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
623
+ /**
624
+ * This method lets you send requests to the Algolia REST API.
625
+ *
626
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
627
+ * @param customPost - The customPost object.
628
+ * @param customPost.path - Path of the endpoint, for example `1/newFeature`.
629
+ * @param customPost.parameters - Query parameters to apply to the current query.
630
+ * @param customPost.body - Parameters to send with the custom request.
631
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
632
+ * @see customPost for the plain version.
633
+ */
634
+ customPostWithHTTPInfo({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Record<string, unknown>>>;
589
635
  /**
590
636
  * This method lets you send requests to the Algolia REST API.
591
637
  * @param customPut - The customPut object.
@@ -595,6 +641,18 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
595
641
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
596
642
  */
597
643
  customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
644
+ /**
645
+ * This method lets you send requests to the Algolia REST API.
646
+ *
647
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
648
+ * @param customPut - The customPut object.
649
+ * @param customPut.path - Path of the endpoint, for example `1/newFeature`.
650
+ * @param customPut.parameters - Query parameters to apply to the current query.
651
+ * @param customPut.body - Parameters to send with the custom request.
652
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
653
+ * @see customPut for the plain version.
654
+ */
655
+ customPutWithHTTPInfo({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Record<string, unknown>>>;
598
656
  /**
599
657
  * Deletes an A/B test by its ID.
600
658
  *
@@ -605,6 +663,19 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
605
663
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
606
664
  */
607
665
  deleteABTest({ id }: DeleteABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
666
+ /**
667
+ * Deletes an A/B test by its ID.
668
+ *
669
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
670
+ *
671
+ * Required API Key ACLs:
672
+ * - editSettings
673
+ * @param deleteABTest - The deleteABTest object.
674
+ * @param deleteABTest.id - Unique A/B test identifier.
675
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
676
+ * @see deleteABTest for the plain version.
677
+ */
678
+ deleteABTestWithHTTPInfo({ id }: DeleteABTestProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<ABTestResponse>>;
608
679
  /**
609
680
  * Given the traffic percentage and the expected effect size, this endpoint estimates the sample size and duration of an A/B test based on historical traffic.
610
681
  *
@@ -614,6 +685,18 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
614
685
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
615
686
  */
616
687
  estimateABTest(estimateABTestRequest: EstimateABTestRequest, requestOptions?: RequestOptions): Promise<EstimateABTestResponse>;
688
+ /**
689
+ * Given the traffic percentage and the expected effect size, this endpoint estimates the sample size and duration of an A/B test based on historical traffic.
690
+ *
691
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
692
+ *
693
+ * Required API Key ACLs:
694
+ * - analytics
695
+ * @param estimateABTestRequest - The estimateABTestRequest object.
696
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
697
+ * @see estimateABTest for the plain version.
698
+ */
699
+ estimateABTestWithHTTPInfo(estimateABTestRequest: EstimateABTestRequest, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<EstimateABTestResponse>>;
617
700
  /**
618
701
  * Retrieves the details for an A/B test by its ID.
619
702
  *
@@ -624,6 +707,19 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
624
707
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
625
708
  */
626
709
  getABTest({ id }: GetABTestProps, requestOptions?: RequestOptions): Promise<ABTest>;
710
+ /**
711
+ * Retrieves the details for an A/B test by its ID.
712
+ *
713
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
714
+ *
715
+ * Required API Key ACLs:
716
+ * - analytics
717
+ * @param getABTest - The getABTest object.
718
+ * @param getABTest.id - Unique A/B test identifier.
719
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
720
+ * @see getABTest for the plain version.
721
+ */
722
+ getABTestWithHTTPInfo({ id }: GetABTestProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<ABTest>>;
627
723
  /**
628
724
  * Retrieves timeseries for an A/B test by its ID.
629
725
  *
@@ -637,6 +733,22 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
637
733
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
638
734
  */
639
735
  getTimeseries({ id, startDate, endDate, metric }: GetTimeseriesProps, requestOptions?: RequestOptions): Promise<Timeseries>;
736
+ /**
737
+ * Retrieves timeseries for an A/B test by its ID.
738
+ *
739
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
740
+ *
741
+ * Required API Key ACLs:
742
+ * - analytics
743
+ * @param getTimeseries - The getTimeseries object.
744
+ * @param getTimeseries.id - Unique A/B test identifier.
745
+ * @param getTimeseries.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
746
+ * @param getTimeseries.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
747
+ * @param getTimeseries.metric - List of metrics to retrieve. If not specified, all metrics are returned.
748
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
749
+ * @see getTimeseries for the plain version.
750
+ */
751
+ getTimeseriesWithHTTPInfo({ id, startDate, endDate, metric }: GetTimeseriesProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Timeseries>>;
640
752
  /**
641
753
  * Lists all A/B tests you configured for this application.
642
754
  *
@@ -651,6 +763,23 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
651
763
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
652
764
  */
653
765
  listABTests({ offset, limit, indexPrefix, indexSuffix, direction }?: ListABTestsProps, requestOptions?: RequestOptions | undefined): Promise<ListABTestsResponse>;
766
+ /**
767
+ * Lists all A/B tests you configured for this application.
768
+ *
769
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
770
+ *
771
+ * Required API Key ACLs:
772
+ * - analytics
773
+ * @param listABTests - The listABTests object.
774
+ * @param listABTests.offset - Position of the first item to return.
775
+ * @param listABTests.limit - Number of items to return.
776
+ * @param listABTests.indexPrefix - Index name prefix. Only A/B tests for indices starting with this string are included in the response.
777
+ * @param listABTests.indexSuffix - Index name suffix. Only A/B tests for indices ending with this string are included in the response.
778
+ * @param listABTests.direction - Sort order for A/B tests by start date. Use \'asc\' for ascending or \'desc\' for descending. Active A/B tests are always listed first.
779
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
780
+ * @see listABTests for the plain version.
781
+ */
782
+ listABTestsWithHTTPInfo({ offset, limit, indexPrefix, indexSuffix, direction }?: ListABTestsProps, requestOptions?: RequestOptions | undefined): Promise<AlgoliaHttpResponse<ListABTestsResponse>>;
654
783
  /**
655
784
  * Stops an A/B test by its ID. You can\'t restart stopped A/B tests.
656
785
  *
@@ -661,6 +790,19 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
661
790
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
662
791
  */
663
792
  stopABTest({ id }: StopABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
793
+ /**
794
+ * Stops an A/B test by its ID. You can\'t restart stopped A/B tests.
795
+ *
796
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
797
+ *
798
+ * Required API Key ACLs:
799
+ * - editSettings
800
+ * @param stopABTest - The stopABTest object.
801
+ * @param stopABTest.id - Unique A/B test identifier.
802
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
803
+ * @see stopABTest for the plain version.
804
+ */
805
+ stopABTestWithHTTPInfo({ id }: StopABTestProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<ABTestResponse>>;
664
806
  };
665
807
 
666
808
  /**
package/dist/node.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _algolia_client_common from '@algolia/client-common';
2
- import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';
2
+ import { CreateClientOptions, RequestOptions, AlgoliaHttpResponse, ClientOptions } from '@algolia/client-common';
3
3
 
4
4
  /**
5
5
  * Multiple-testing correction method applied when evaluating metric significance.
@@ -512,14 +512,14 @@ type StopABTestProps = {
512
512
  id: number;
513
513
  };
514
514
 
515
- declare const apiClientVersion = "1.21.2";
515
+ declare const apiClientVersion = "1.22.0";
516
516
  declare const REGIONS: readonly ["de", "us"];
517
517
  type Region = (typeof REGIONS)[number];
518
518
  type RegionOptions = {
519
519
  region?: Region | undefined;
520
520
  };
521
521
  declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & RegionOptions): {
522
- transporter: _algolia_client_common.Transporter;
522
+ transporter: _algolia_client_common.TransporterWithHttpInfo;
523
523
  /**
524
524
  * The `appId` currently in use.
525
525
  */
@@ -561,6 +561,18 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
561
561
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
562
562
  */
563
563
  addABTests(addABTestsRequest: AddABTestsRequest, requestOptions?: RequestOptions): Promise<ABTestResponse>;
564
+ /**
565
+ * Creates a new A/B test.
566
+ *
567
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
568
+ *
569
+ * Required API Key ACLs:
570
+ * - editSettings
571
+ * @param addABTestsRequest - The addABTestsRequest object.
572
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
573
+ * @see addABTests for the plain version.
574
+ */
575
+ addABTestsWithHTTPInfo(addABTestsRequest: AddABTestsRequest, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<ABTestResponse>>;
564
576
  /**
565
577
  * This method lets you send requests to the Algolia REST API.
566
578
  * @param customDelete - The customDelete object.
@@ -569,6 +581,17 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
569
581
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
570
582
  */
571
583
  customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
584
+ /**
585
+ * This method lets you send requests to the Algolia REST API.
586
+ *
587
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
588
+ * @param customDelete - The customDelete object.
589
+ * @param customDelete.path - Path of the endpoint, for example `1/newFeature`.
590
+ * @param customDelete.parameters - Query parameters to apply to the current query.
591
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
592
+ * @see customDelete for the plain version.
593
+ */
594
+ customDeleteWithHTTPInfo({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Record<string, unknown>>>;
572
595
  /**
573
596
  * This method lets you send requests to the Algolia REST API.
574
597
  * @param customGet - The customGet object.
@@ -577,6 +600,17 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
577
600
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
578
601
  */
579
602
  customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
603
+ /**
604
+ * This method lets you send requests to the Algolia REST API.
605
+ *
606
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
607
+ * @param customGet - The customGet object.
608
+ * @param customGet.path - Path of the endpoint, for example `1/newFeature`.
609
+ * @param customGet.parameters - Query parameters to apply to the current query.
610
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
611
+ * @see customGet for the plain version.
612
+ */
613
+ customGetWithHTTPInfo({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Record<string, unknown>>>;
580
614
  /**
581
615
  * This method lets you send requests to the Algolia REST API.
582
616
  * @param customPost - The customPost object.
@@ -586,6 +620,18 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
586
620
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
587
621
  */
588
622
  customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
623
+ /**
624
+ * This method lets you send requests to the Algolia REST API.
625
+ *
626
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
627
+ * @param customPost - The customPost object.
628
+ * @param customPost.path - Path of the endpoint, for example `1/newFeature`.
629
+ * @param customPost.parameters - Query parameters to apply to the current query.
630
+ * @param customPost.body - Parameters to send with the custom request.
631
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
632
+ * @see customPost for the plain version.
633
+ */
634
+ customPostWithHTTPInfo({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Record<string, unknown>>>;
589
635
  /**
590
636
  * This method lets you send requests to the Algolia REST API.
591
637
  * @param customPut - The customPut object.
@@ -595,6 +641,18 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
595
641
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
596
642
  */
597
643
  customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
644
+ /**
645
+ * This method lets you send requests to the Algolia REST API.
646
+ *
647
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
648
+ * @param customPut - The customPut object.
649
+ * @param customPut.path - Path of the endpoint, for example `1/newFeature`.
650
+ * @param customPut.parameters - Query parameters to apply to the current query.
651
+ * @param customPut.body - Parameters to send with the custom request.
652
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
653
+ * @see customPut for the plain version.
654
+ */
655
+ customPutWithHTTPInfo({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Record<string, unknown>>>;
598
656
  /**
599
657
  * Deletes an A/B test by its ID.
600
658
  *
@@ -605,6 +663,19 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
605
663
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
606
664
  */
607
665
  deleteABTest({ id }: DeleteABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
666
+ /**
667
+ * Deletes an A/B test by its ID.
668
+ *
669
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
670
+ *
671
+ * Required API Key ACLs:
672
+ * - editSettings
673
+ * @param deleteABTest - The deleteABTest object.
674
+ * @param deleteABTest.id - Unique A/B test identifier.
675
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
676
+ * @see deleteABTest for the plain version.
677
+ */
678
+ deleteABTestWithHTTPInfo({ id }: DeleteABTestProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<ABTestResponse>>;
608
679
  /**
609
680
  * Given the traffic percentage and the expected effect size, this endpoint estimates the sample size and duration of an A/B test based on historical traffic.
610
681
  *
@@ -614,6 +685,18 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
614
685
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
615
686
  */
616
687
  estimateABTest(estimateABTestRequest: EstimateABTestRequest, requestOptions?: RequestOptions): Promise<EstimateABTestResponse>;
688
+ /**
689
+ * Given the traffic percentage and the expected effect size, this endpoint estimates the sample size and duration of an A/B test based on historical traffic.
690
+ *
691
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
692
+ *
693
+ * Required API Key ACLs:
694
+ * - analytics
695
+ * @param estimateABTestRequest - The estimateABTestRequest object.
696
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
697
+ * @see estimateABTest for the plain version.
698
+ */
699
+ estimateABTestWithHTTPInfo(estimateABTestRequest: EstimateABTestRequest, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<EstimateABTestResponse>>;
617
700
  /**
618
701
  * Retrieves the details for an A/B test by its ID.
619
702
  *
@@ -624,6 +707,19 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
624
707
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
625
708
  */
626
709
  getABTest({ id }: GetABTestProps, requestOptions?: RequestOptions): Promise<ABTest>;
710
+ /**
711
+ * Retrieves the details for an A/B test by its ID.
712
+ *
713
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
714
+ *
715
+ * Required API Key ACLs:
716
+ * - analytics
717
+ * @param getABTest - The getABTest object.
718
+ * @param getABTest.id - Unique A/B test identifier.
719
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
720
+ * @see getABTest for the plain version.
721
+ */
722
+ getABTestWithHTTPInfo({ id }: GetABTestProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<ABTest>>;
627
723
  /**
628
724
  * Retrieves timeseries for an A/B test by its ID.
629
725
  *
@@ -637,6 +733,22 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
637
733
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
638
734
  */
639
735
  getTimeseries({ id, startDate, endDate, metric }: GetTimeseriesProps, requestOptions?: RequestOptions): Promise<Timeseries>;
736
+ /**
737
+ * Retrieves timeseries for an A/B test by its ID.
738
+ *
739
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
740
+ *
741
+ * Required API Key ACLs:
742
+ * - analytics
743
+ * @param getTimeseries - The getTimeseries object.
744
+ * @param getTimeseries.id - Unique A/B test identifier.
745
+ * @param getTimeseries.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
746
+ * @param getTimeseries.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
747
+ * @param getTimeseries.metric - List of metrics to retrieve. If not specified, all metrics are returned.
748
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
749
+ * @see getTimeseries for the plain version.
750
+ */
751
+ getTimeseriesWithHTTPInfo({ id, startDate, endDate, metric }: GetTimeseriesProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Timeseries>>;
640
752
  /**
641
753
  * Lists all A/B tests you configured for this application.
642
754
  *
@@ -651,6 +763,23 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
651
763
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
652
764
  */
653
765
  listABTests({ offset, limit, indexPrefix, indexSuffix, direction }?: ListABTestsProps, requestOptions?: RequestOptions | undefined): Promise<ListABTestsResponse>;
766
+ /**
767
+ * Lists all A/B tests you configured for this application.
768
+ *
769
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
770
+ *
771
+ * Required API Key ACLs:
772
+ * - analytics
773
+ * @param listABTests - The listABTests object.
774
+ * @param listABTests.offset - Position of the first item to return.
775
+ * @param listABTests.limit - Number of items to return.
776
+ * @param listABTests.indexPrefix - Index name prefix. Only A/B tests for indices starting with this string are included in the response.
777
+ * @param listABTests.indexSuffix - Index name suffix. Only A/B tests for indices ending with this string are included in the response.
778
+ * @param listABTests.direction - Sort order for A/B tests by start date. Use \'asc\' for ascending or \'desc\' for descending. Active A/B tests are always listed first.
779
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
780
+ * @see listABTests for the plain version.
781
+ */
782
+ listABTestsWithHTTPInfo({ offset, limit, indexPrefix, indexSuffix, direction }?: ListABTestsProps, requestOptions?: RequestOptions | undefined): Promise<AlgoliaHttpResponse<ListABTestsResponse>>;
654
783
  /**
655
784
  * Stops an A/B test by its ID. You can\'t restart stopped A/B tests.
656
785
  *
@@ -661,6 +790,19 @@ declare function createAbtestingV3Client({ appId: appIdOption, apiKey: apiKeyOpt
661
790
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
662
791
  */
663
792
  stopABTest({ id }: StopABTestProps, requestOptions?: RequestOptions): Promise<ABTestResponse>;
793
+ /**
794
+ * Stops an A/B test by its ID. You can\'t restart stopped A/B tests.
795
+ *
796
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
797
+ *
798
+ * Required API Key ACLs:
799
+ * - editSettings
800
+ * @param stopABTest - The stopABTest object.
801
+ * @param stopABTest.id - Unique A/B test identifier.
802
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
803
+ * @see stopABTest for the plain version.
804
+ */
805
+ stopABTestWithHTTPInfo({ id }: StopABTestProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<ABTestResponse>>;
664
806
  };
665
807
 
666
808
  /**