Skip to content

Commit f963a1d

Browse files
feat(specs): deprecates /2 abtests endpoints (generated)
algolia/api-clients-automation#6921 Co-authored-by: algolia-api-clients-automation-bot[bot] <288895823+algolia-api-clients-automation-bot[bot]@users.noreply.github.com> Co-authored-by: My Lan Aragon <mylan.aragon@algolia.com>
1 parent ff559ad commit f963a1d

1 file changed

Lines changed: 36 additions & 12 deletions

File tree

packages/client-abtesting/src/abtestingClient.ts

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,12 @@ export function createAbtestingClient({
121121
},
122122

123123
/**
124-
* Creates a new A/B test.
124+
* This endpoint is deprecated. Use the A/B Testing API v3 instead. Replaced by `POST /3/abtests`. Creates a new A/B test.
125125
*
126126
* Required API Key ACLs:
127127
* - editSettings
128+
*
129+
* @deprecated
128130
* @param addABTestsRequest - The addABTestsRequest object.
129131
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
130132
*/
@@ -150,12 +152,14 @@ export function createAbtestingClient({
150152
return transporter.request(request, requestOptions);
151153
},
152154
/**
153-
* Creates a new A/B test.
155+
* This endpoint is deprecated. Use the A/B Testing API v3 instead. Replaced by `POST /3/abtests`. Creates a new A/B test.
154156
*
155157
* 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.
156158
*
157159
* Required API Key ACLs:
158160
* - editSettings
161+
*
162+
* @deprecated
159163
* @param addABTestsRequest - The addABTestsRequest object.
160164
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
161165
* @see addABTests for the plain version.
@@ -415,10 +419,12 @@ export function createAbtestingClient({
415419
},
416420

417421
/**
418-
* Deletes an A/B test by its ID.
422+
* This endpoint is deprecated. Use the A/B Testing API v3 instead. Replaced by `DELETE /3/abtests/{id}`. Deletes an A/B test by its ID.
419423
*
420424
* Required API Key ACLs:
421425
* - editSettings
426+
*
427+
* @deprecated
422428
* @param deleteABTest - The deleteABTest object.
423429
* @param deleteABTest.id - Unique A/B test identifier.
424430
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -440,12 +446,14 @@ export function createAbtestingClient({
440446
return transporter.request(request, requestOptions);
441447
},
442448
/**
443-
* Deletes an A/B test by its ID.
449+
* This endpoint is deprecated. Use the A/B Testing API v3 instead. Replaced by `DELETE /3/abtests/{id}`. Deletes an A/B test by its ID.
444450
*
445451
* 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.
446452
*
447453
* Required API Key ACLs:
448454
* - editSettings
455+
*
456+
* @deprecated
449457
* @param deleteABTest - The deleteABTest object.
450458
* @param deleteABTest.id - Unique A/B test identifier.
451459
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -472,10 +480,12 @@ export function createAbtestingClient({
472480
},
473481

474482
/**
475-
* 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.
483+
* This endpoint is deprecated. Use the A/B Testing API v3 instead. Replaced by `POST /3/abtests/estimate`. 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.
476484
*
477485
* Required API Key ACLs:
478486
* - analytics
487+
*
488+
* @deprecated
479489
* @param estimateABTestRequest - The estimateABTestRequest object.
480490
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
481491
*/
@@ -503,12 +513,14 @@ export function createAbtestingClient({
503513
return transporter.request(request, requestOptions);
504514
},
505515
/**
506-
* 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.
516+
* This endpoint is deprecated. Use the A/B Testing API v3 instead. Replaced by `POST /3/abtests/estimate`. 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.
507517
*
508518
* 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.
509519
*
510520
* Required API Key ACLs:
511521
* - analytics
522+
*
523+
* @deprecated
512524
* @param estimateABTestRequest - The estimateABTestRequest object.
513525
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
514526
* @see estimateABTest for the plain version.
@@ -542,10 +554,12 @@ export function createAbtestingClient({
542554
},
543555

544556
/**
545-
* Retrieves the details for an A/B test by its ID.
557+
* This endpoint is deprecated. Use the A/B Testing API v3 instead. Replaced by `GET /3/abtests/{id}`. Retrieves the details for an A/B test by its ID.
546558
*
547559
* Required API Key ACLs:
548560
* - analytics
561+
*
562+
* @deprecated
549563
* @param getABTest - The getABTest object.
550564
* @param getABTest.id - Unique A/B test identifier.
551565
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -567,12 +581,14 @@ export function createAbtestingClient({
567581
return transporter.request(request, requestOptions);
568582
},
569583
/**
570-
* Retrieves the details for an A/B test by its ID.
584+
* This endpoint is deprecated. Use the A/B Testing API v3 instead. Replaced by `GET /3/abtests/{id}`. Retrieves the details for an A/B test by its ID.
571585
*
572586
* 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.
573587
*
574588
* Required API Key ACLs:
575589
* - analytics
590+
*
591+
* @deprecated
576592
* @param getABTest - The getABTest object.
577593
* @param getABTest.id - Unique A/B test identifier.
578594
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -599,10 +615,12 @@ export function createAbtestingClient({
599615
},
600616

601617
/**
602-
* Lists all A/B tests you configured for this application.
618+
* This endpoint is deprecated. Use the A/B Testing API v3 instead. Replaced by `GET /3/abtests`. Lists all A/B tests you configured for this application.
603619
*
604620
* Required API Key ACLs:
605621
* - analytics
622+
*
623+
* @deprecated
606624
* @param listABTests - The listABTests object.
607625
* @param listABTests.offset - Position of the first item to return.
608626
* @param listABTests.limit - Number of items to return.
@@ -644,12 +662,14 @@ export function createAbtestingClient({
644662
return transporter.request(request, requestOptions);
645663
},
646664
/**
647-
* Lists all A/B tests you configured for this application.
665+
* This endpoint is deprecated. Use the A/B Testing API v3 instead. Replaced by `GET /3/abtests`. Lists all A/B tests you configured for this application.
648666
*
649667
* 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.
650668
*
651669
* Required API Key ACLs:
652670
* - analytics
671+
*
672+
* @deprecated
653673
* @param listABTests - The listABTests object.
654674
* @param listABTests.offset - Position of the first item to return.
655675
* @param listABTests.limit - Number of items to return.
@@ -693,10 +713,12 @@ export function createAbtestingClient({
693713
},
694714

695715
/**
696-
* Stops an A/B test by its ID. You can\'t restart stopped A/B tests.
716+
* This endpoint is deprecated. Use the A/B Testing API v3 instead. Replaced by `POST /3/abtests/{id}/stop`. Stops an A/B test by its ID. You can\'t restart stopped A/B tests.
697717
*
698718
* Required API Key ACLs:
699719
* - editSettings
720+
*
721+
* @deprecated
700722
* @param stopABTest - The stopABTest object.
701723
* @param stopABTest.id - Unique A/B test identifier.
702724
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -718,12 +740,14 @@ export function createAbtestingClient({
718740
return transporter.request(request, requestOptions);
719741
},
720742
/**
721-
* Stops an A/B test by its ID. You can\'t restart stopped A/B tests.
743+
* This endpoint is deprecated. Use the A/B Testing API v3 instead. Replaced by `POST /3/abtests/{id}/stop`. Stops an A/B test by its ID. You can\'t restart stopped A/B tests.
722744
*
723745
* 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.
724746
*
725747
* Required API Key ACLs:
726748
* - editSettings
749+
*
750+
* @deprecated
727751
* @param stopABTest - The stopABTest object.
728752
* @param stopABTest.id - Unique A/B test identifier.
729753
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.

0 commit comments

Comments
 (0)