Skip to content

Commit

Permalink
fix(specs): saveRule response type [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4170

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Nov 26, 2024
1 parent 3a600b7 commit 4d28633
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 87 deletions.
1 change: 0 additions & 1 deletion packages/client_search/lib/algolia_client_search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ export 'src/model/typo_tolerance_enum.dart';
export 'src/model/update_api_key_response.dart';
export 'src/model/updated_at_response.dart';
export 'src/model/updated_at_with_object_id_response.dart';
export 'src/model/updated_rule_response.dart';
export 'src/model/user_highlight_result.dart';
export 'src/model/user_hit.dart';
export 'src/model/user_id.dart';
Expand Down
7 changes: 3 additions & 4 deletions packages/client_search/lib/src/api/search_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ import 'package:algolia_client_search/src/model/synonym_hit.dart';
import 'package:algolia_client_search/src/model/update_api_key_response.dart';
import 'package:algolia_client_search/src/model/updated_at_response.dart';
import 'package:algolia_client_search/src/model/updated_at_with_object_id_response.dart';
import 'package:algolia_client_search/src/model/updated_rule_response.dart';
import 'package:algolia_client_search/src/model/user_id.dart';

final class SearchClient implements ApiClient {
Expand Down Expand Up @@ -1770,7 +1769,7 @@ final class SearchClient implements ApiClient {
/// * [rule]
/// * [forwardToReplicas] Whether changes are applied to replica indices.
/// * [requestOptions] additional request configuration.
Future<UpdatedRuleResponse> saveRule({
Future<UpdatedAtResponse> saveRule({
required String indexName,
required String objectID,
required Rule rule,
Expand Down Expand Up @@ -1801,9 +1800,9 @@ final class SearchClient implements ApiClient {
request: request,
options: requestOptions,
);
return deserialize<UpdatedRuleResponse, UpdatedRuleResponse>(
return deserialize<UpdatedAtResponse, UpdatedAtResponse>(
response,
'UpdatedRuleResponse',
'UpdatedAtResponse',
growable: true,
);
}
Expand Down
4 changes: 0 additions & 4 deletions packages/client_search/lib/src/deserialize.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ import 'package:algolia_client_search/src/model/typo_tolerance_enum.dart';
import 'package:algolia_client_search/src/model/update_api_key_response.dart';
import 'package:algolia_client_search/src/model/updated_at_response.dart';
import 'package:algolia_client_search/src/model/updated_at_with_object_id_response.dart';
import 'package:algolia_client_search/src/model/updated_rule_response.dart';
import 'package:algolia_client_search/src/model/user_highlight_result.dart';
import 'package:algolia_client_search/src/model/user_hit.dart';
import 'package:algolia_client_search/src/model/user_id.dart';
Expand Down Expand Up @@ -565,9 +564,6 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
case 'UpdatedAtWithObjectIdResponse':
return UpdatedAtWithObjectIdResponse.fromJson(
value as Map<String, dynamic>) as ReturnType;
case 'UpdatedRuleResponse':
return UpdatedRuleResponse.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'UserHighlightResult':
return UserHighlightResult.fromJson(value as Map<String, dynamic>)
as ReturnType;
Expand Down
49 changes: 0 additions & 49 deletions packages/client_search/lib/src/model/updated_rule_response.dart

This file was deleted.

29 changes: 0 additions & 29 deletions packages/client_search/lib/src/model/updated_rule_response.g.dart

This file was deleted.

0 comments on commit 4d28633

Please sign in to comment.