@@ -33,13 +33,13 @@ open class AbtestingClient {
33
33
}
34
34
35
35
/// - parameter addABTestsRequest: (body)
36
- /// - returns: ABTestResponse
36
+ /// - returns: AbtestingABTestResponse
37
37
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
38
38
open func addABTests(
39
- addABTestsRequest: AddABTestsRequest ,
39
+ addABTestsRequest: AbtestingAddABTestsRequest ,
40
40
requestOptions: RequestOptions ? = nil
41
- ) async throws -> ABTestResponse {
42
- let response : Response < ABTestResponse > = try await addABTestsWithHTTPInfo (
41
+ ) async throws -> AbtestingABTestResponse {
42
+ let response : Response < AbtestingABTestResponse > = try await addABTestsWithHTTPInfo (
43
43
addABTestsRequest: addABTestsRequest,
44
44
requestOptions: requestOptions
45
45
)
@@ -56,12 +56,12 @@ open class AbtestingClient {
56
56
// - editSettings
57
57
//
58
58
// - parameter addABTestsRequest: (body)
59
- // - returns: RequestBuilder<ABTestResponse >
59
+ // - returns: RequestBuilder<AbtestingABTestResponse >
60
60
61
61
open func addABTestsWithHTTPInfo(
62
- addABTestsRequest: AddABTestsRequest ,
62
+ addABTestsRequest: AbtestingAddABTestsRequest ,
63
63
requestOptions userRequestOptions: RequestOptions ? = nil
64
- ) async throws -> Response < ABTestResponse > {
64
+ ) async throws -> Response < AbtestingABTestResponse > {
65
65
let resourcePath = " /2/abtests "
66
66
let body = addABTestsRequest
67
67
let queryParameters : [ String : Any ? ] ? = nil
@@ -354,10 +354,10 @@ open class AbtestingClient {
354
354
}
355
355
356
356
/// - parameter id: (path) Unique A/B test identifier.
357
- /// - returns: ABTestResponse
357
+ /// - returns: AbtestingABTestResponse
358
358
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
359
- open func deleteABTest( id: Int , requestOptions: RequestOptions ? = nil ) async throws -> ABTestResponse {
360
- let response : Response < ABTestResponse > = try await deleteABTestWithHTTPInfo (
359
+ open func deleteABTest( id: Int , requestOptions: RequestOptions ? = nil ) async throws -> AbtestingABTestResponse {
360
+ let response : Response < AbtestingABTestResponse > = try await deleteABTestWithHTTPInfo (
361
361
id: id,
362
362
requestOptions: requestOptions
363
363
)
@@ -374,12 +374,12 @@ open class AbtestingClient {
374
374
// - editSettings
375
375
//
376
376
// - parameter id: (path) Unique A/B test identifier.
377
- // - returns: RequestBuilder<ABTestResponse >
377
+ // - returns: RequestBuilder<AbtestingABTestResponse >
378
378
379
379
open func deleteABTestWithHTTPInfo(
380
380
id: Int ,
381
381
requestOptions userRequestOptions: RequestOptions ? = nil
382
- ) async throws -> Response < ABTestResponse > {
382
+ ) async throws -> Response < AbtestingABTestResponse > {
383
383
var resourcePath = " /2/abtests/{id} "
384
384
let idPreEscape = " \( APIHelper . mapValueToPathItem ( id) ) "
385
385
let idPostEscape = idPreEscape. addingPercentEncoding ( withAllowedCharacters: . urlPathAlgoliaAllowed) ?? " "
@@ -403,13 +403,13 @@ open class AbtestingClient {
403
403
}
404
404
405
405
/// - parameter estimateABTestRequest: (body)
406
- /// - returns: EstimateABTestResponse
406
+ /// - returns: AbtestingEstimateABTestResponse
407
407
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
408
408
open func estimateABTest(
409
- estimateABTestRequest: EstimateABTestRequest ,
409
+ estimateABTestRequest: AbtestingEstimateABTestRequest ,
410
410
requestOptions: RequestOptions ? = nil
411
- ) async throws -> EstimateABTestResponse {
412
- let response : Response < EstimateABTestResponse > = try await estimateABTestWithHTTPInfo (
411
+ ) async throws -> AbtestingEstimateABTestResponse {
412
+ let response : Response < AbtestingEstimateABTestResponse > = try await estimateABTestWithHTTPInfo (
413
413
estimateABTestRequest: estimateABTestRequest,
414
414
requestOptions: requestOptions
415
415
)
@@ -427,12 +427,12 @@ open class AbtestingClient {
427
427
// - analytics
428
428
//
429
429
// - parameter estimateABTestRequest: (body)
430
- // - returns: RequestBuilder<EstimateABTestResponse >
430
+ // - returns: RequestBuilder<AbtestingEstimateABTestResponse >
431
431
432
432
open func estimateABTestWithHTTPInfo(
433
- estimateABTestRequest: EstimateABTestRequest ,
433
+ estimateABTestRequest: AbtestingEstimateABTestRequest ,
434
434
requestOptions userRequestOptions: RequestOptions ? = nil
435
- ) async throws -> Response < EstimateABTestResponse > {
435
+ ) async throws -> Response < AbtestingEstimateABTestResponse > {
436
436
let resourcePath = " /2/abtests/estimate "
437
437
let body = estimateABTestRequest
438
438
let queryParameters : [ String : Any ? ] ? = nil
@@ -453,10 +453,13 @@ open class AbtestingClient {
453
453
}
454
454
455
455
/// - parameter id: (path) Unique A/B test identifier.
456
- /// - returns: ABTest
456
+ /// - returns: AbtestingABTest
457
457
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
458
- open func getABTest( id: Int , requestOptions: RequestOptions ? = nil ) async throws -> ABTest {
459
- let response : Response < ABTest > = try await getABTestWithHTTPInfo ( id: id, requestOptions: requestOptions)
458
+ open func getABTest( id: Int , requestOptions: RequestOptions ? = nil ) async throws -> AbtestingABTest {
459
+ let response : Response < AbtestingABTest > = try await getABTestWithHTTPInfo (
460
+ id: id,
461
+ requestOptions: requestOptions
462
+ )
460
463
461
464
guard let body = response. body else {
462
465
throw AlgoliaError . missingData
@@ -470,12 +473,12 @@ open class AbtestingClient {
470
473
// - analytics
471
474
//
472
475
// - parameter id: (path) Unique A/B test identifier.
473
- // - returns: RequestBuilder<ABTest >
476
+ // - returns: RequestBuilder<AbtestingABTest >
474
477
475
478
open func getABTestWithHTTPInfo(
476
479
id: Int ,
477
480
requestOptions userRequestOptions: RequestOptions ? = nil
478
- ) async throws -> Response < ABTest > {
481
+ ) async throws -> Response < AbtestingABTest > {
479
482
var resourcePath = " /2/abtests/{id} "
480
483
let idPreEscape = " \( APIHelper . mapValueToPathItem ( id) ) "
481
484
let idPostEscape = idPreEscape. addingPercentEncoding ( withAllowedCharacters: . urlPathAlgoliaAllowed) ?? " "
@@ -504,16 +507,16 @@ open class AbtestingClient {
504
507
/// included in the response. (optional)
505
508
/// - parameter indexSuffix: (query) Index name suffix. Only A/B tests for indices ending with this string are
506
509
/// included in the response. (optional)
507
- /// - returns: ListABTestsResponse
510
+ /// - returns: AbtestingListABTestsResponse
508
511
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
509
512
open func listABTests(
510
513
offset: Int ? = nil ,
511
514
limit: Int ? = nil ,
512
515
indexPrefix: String ? = nil ,
513
516
indexSuffix: String ? = nil ,
514
517
requestOptions: RequestOptions ? = nil
515
- ) async throws -> ListABTestsResponse {
516
- let response : Response < ListABTestsResponse > = try await listABTestsWithHTTPInfo (
518
+ ) async throws -> AbtestingListABTestsResponse {
519
+ let response : Response < AbtestingListABTestsResponse > = try await listABTestsWithHTTPInfo (
517
520
offset: offset,
518
521
limit: limit,
519
522
indexPrefix: indexPrefix,
@@ -541,15 +544,15 @@ open class AbtestingClient {
541
544
//
542
545
// - parameter indexSuffix: (query) Index name suffix. Only A/B tests for indices ending with this string are
543
546
// included in the response. (optional)
544
- // - returns: RequestBuilder<ListABTestsResponse >
547
+ // - returns: RequestBuilder<AbtestingListABTestsResponse >
545
548
546
549
open func listABTestsWithHTTPInfo(
547
550
offset: Int ? = nil ,
548
551
limit: Int ? = nil ,
549
552
indexPrefix: String ? = nil ,
550
553
indexSuffix: String ? = nil ,
551
554
requestOptions userRequestOptions: RequestOptions ? = nil
552
- ) async throws -> Response < ListABTestsResponse > {
555
+ ) async throws -> Response < AbtestingListABTestsResponse > {
553
556
let resourcePath = " /2/abtests "
554
557
let body : AnyCodable ? = nil
555
558
let queryParameters : [ String : Any ? ] = [
@@ -575,13 +578,13 @@ open class AbtestingClient {
575
578
}
576
579
577
580
/// - parameter scheduleABTestsRequest: (body)
578
- /// - returns: ScheduleABTestResponse
581
+ /// - returns: AbtestingScheduleABTestResponse
579
582
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
580
583
open func scheduleABTest(
581
- scheduleABTestsRequest: ScheduleABTestsRequest ,
584
+ scheduleABTestsRequest: AbtestingScheduleABTestsRequest ,
582
585
requestOptions: RequestOptions ? = nil
583
- ) async throws -> ScheduleABTestResponse {
584
- let response : Response < ScheduleABTestResponse > = try await scheduleABTestWithHTTPInfo (
586
+ ) async throws -> AbtestingScheduleABTestResponse {
587
+ let response : Response < AbtestingScheduleABTestResponse > = try await scheduleABTestWithHTTPInfo (
585
588
scheduleABTestsRequest: scheduleABTestsRequest,
586
589
requestOptions: requestOptions
587
590
)
@@ -598,12 +601,12 @@ open class AbtestingClient {
598
601
// - editSettings
599
602
//
600
603
// - parameter scheduleABTestsRequest: (body)
601
- // - returns: RequestBuilder<ScheduleABTestResponse >
604
+ // - returns: RequestBuilder<AbtestingScheduleABTestResponse >
602
605
603
606
open func scheduleABTestWithHTTPInfo(
604
- scheduleABTestsRequest: ScheduleABTestsRequest ,
607
+ scheduleABTestsRequest: AbtestingScheduleABTestsRequest ,
605
608
requestOptions userRequestOptions: RequestOptions ? = nil
606
- ) async throws -> Response < ScheduleABTestResponse > {
609
+ ) async throws -> Response < AbtestingScheduleABTestResponse > {
607
610
let resourcePath = " /2/abtests/schedule "
608
611
let body = scheduleABTestsRequest
609
612
let queryParameters : [ String : Any ? ] ? = nil
@@ -624,10 +627,10 @@ open class AbtestingClient {
624
627
}
625
628
626
629
/// - parameter id: (path) Unique A/B test identifier.
627
- /// - returns: ABTestResponse
630
+ /// - returns: AbtestingABTestResponse
628
631
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
629
- open func stopABTest( id: Int , requestOptions: RequestOptions ? = nil ) async throws -> ABTestResponse {
630
- let response : Response < ABTestResponse > = try await stopABTestWithHTTPInfo (
632
+ open func stopABTest( id: Int , requestOptions: RequestOptions ? = nil ) async throws -> AbtestingABTestResponse {
633
+ let response : Response < AbtestingABTestResponse > = try await stopABTestWithHTTPInfo (
631
634
id: id,
632
635
requestOptions: requestOptions
633
636
)
@@ -644,12 +647,12 @@ open class AbtestingClient {
644
647
// - editSettings
645
648
//
646
649
// - parameter id: (path) Unique A/B test identifier.
647
- // - returns: RequestBuilder<ABTestResponse >
650
+ // - returns: RequestBuilder<AbtestingABTestResponse >
648
651
649
652
open func stopABTestWithHTTPInfo(
650
653
id: Int ,
651
654
requestOptions userRequestOptions: RequestOptions ? = nil
652
- ) async throws -> Response < ABTestResponse > {
655
+ ) async throws -> Response < AbtestingABTestResponse > {
653
656
var resourcePath = " /2/abtests/{id}/stop "
654
657
let idPreEscape = " \( APIHelper . mapValueToPathItem ( id) ) "
655
658
let idPostEscape = idPreEscape. addingPercentEncoding ( withAllowedCharacters: . urlPathAlgoliaAllowed) ?? " "
0 commit comments