Skip to content

Commit 0d11c4c

Browse files
fix(specs): returns an response [skip-bc] (generated)
algolia/api-clients-automation#4107 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 9f0e330 commit 0d11c4c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/Search/SearchClient.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,14 +1027,14 @@ open class SearchClient {
10271027

10281028
/// - parameter indexName: (path) Name of the index on which to perform the operation.
10291029
/// - parameter deleteByParams: (body)
1030-
/// - returns: SearchDeletedAtResponse
1030+
/// - returns: UpdatedAtResponse
10311031
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
10321032
open func deleteBy(
10331033
indexName: String,
10341034
deleteByParams: DeleteByParams,
10351035
requestOptions: RequestOptions? = nil
1036-
) async throws -> SearchDeletedAtResponse {
1037-
let response: Response<SearchDeletedAtResponse> = try await deleteByWithHTTPInfo(
1036+
) async throws -> UpdatedAtResponse {
1037+
let response: Response<UpdatedAtResponse> = try await deleteByWithHTTPInfo(
10381038
indexName: indexName,
10391039
deleteByParams: deleteByParams,
10401040
requestOptions: requestOptions
@@ -1056,13 +1056,13 @@ open class SearchClient {
10561056
// - parameter indexName: (path) Name of the index on which to perform the operation.
10571057
//
10581058
// - parameter deleteByParams: (body)
1059-
// - returns: RequestBuilder<SearchDeletedAtResponse>
1059+
// - returns: RequestBuilder<UpdatedAtResponse>
10601060

10611061
open func deleteByWithHTTPInfo(
10621062
indexName: String,
10631063
deleteByParams: DeleteByParams,
10641064
requestOptions userRequestOptions: RequestOptions? = nil
1065-
) async throws -> Response<SearchDeletedAtResponse> {
1065+
) async throws -> Response<UpdatedAtResponse> {
10661066
guard !indexName.isEmpty else {
10671067
throw AlgoliaError.invalidArgument("indexName", "deleteBy")
10681068
}

0 commit comments

Comments
 (0)