Skip to content

Commit 98c5675

Browse files
feat(javascript): add replaceAllObjectsWithTransformation (generated)
algolia/api-clients-automation#5008 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 4de5c4a commit 98c5675

File tree

4 files changed

+97
-0
lines changed

4 files changed

+97
-0
lines changed

packages/client_search/lib/algolia_client_search.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export 'src/model/remove_user_id_response.dart';
112112
export 'src/model/remove_words_if_no_results.dart';
113113
export 'src/model/rendering_content.dart';
114114
export 'src/model/replace_all_objects_response.dart';
115+
export 'src/model/replace_all_objects_with_transformation_response.dart';
115116
export 'src/model/replace_source_response.dart';
116117
export 'src/model/rule.dart';
117118
export 'src/model/save_object_response.dart';

packages/client_search/lib/src/deserialize.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ import 'package:algolia_client_search/src/model/remove_user_id_response.dart';
105105
import 'package:algolia_client_search/src/model/remove_words_if_no_results.dart';
106106
import 'package:algolia_client_search/src/model/rendering_content.dart';
107107
import 'package:algolia_client_search/src/model/replace_all_objects_response.dart';
108+
import 'package:algolia_client_search/src/model/replace_all_objects_with_transformation_response.dart';
108109
import 'package:algolia_client_search/src/model/replace_source_response.dart';
109110
import 'package:algolia_client_search/src/model/rule.dart';
110111
import 'package:algolia_client_search/src/model/save_object_response.dart';
@@ -450,6 +451,9 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
450451
case 'ReplaceAllObjectsResponse':
451452
return ReplaceAllObjectsResponse.fromJson(value as Map<String, dynamic>)
452453
as ReturnType;
454+
case 'ReplaceAllObjectsWithTransformationResponse':
455+
return ReplaceAllObjectsWithTransformationResponse.fromJson(
456+
value as Map<String, dynamic>) as ReturnType;
453457
case 'ReplaceSourceResponse':
454458
return ReplaceSourceResponse.fromJson(value as Map<String, dynamic>)
455459
as ReturnType;
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
// ignore_for_file: unused_element
3+
import 'package:algolia_client_search/src/model/updated_at_response.dart';
4+
import 'package:algolia_client_search/src/model/watch_response.dart';
5+
6+
import 'package:json_annotation/json_annotation.dart';
7+
8+
part 'replace_all_objects_with_transformation_response.g.dart';
9+
10+
@JsonSerializable()
11+
final class ReplaceAllObjectsWithTransformationResponse {
12+
/// Returns a new [ReplaceAllObjectsWithTransformationResponse] instance.
13+
const ReplaceAllObjectsWithTransformationResponse({
14+
required this.copyOperationResponse,
15+
required this.watchResponses,
16+
required this.moveOperationResponse,
17+
});
18+
19+
@JsonKey(name: r'copyOperationResponse')
20+
final UpdatedAtResponse copyOperationResponse;
21+
22+
/// The response of the `push` request(s).
23+
@JsonKey(name: r'watchResponses')
24+
final List<WatchResponse> watchResponses;
25+
26+
@JsonKey(name: r'moveOperationResponse')
27+
final UpdatedAtResponse moveOperationResponse;
28+
29+
@override
30+
bool operator ==(Object other) =>
31+
identical(this, other) ||
32+
other is ReplaceAllObjectsWithTransformationResponse &&
33+
other.copyOperationResponse == copyOperationResponse &&
34+
other.watchResponses == watchResponses &&
35+
other.moveOperationResponse == moveOperationResponse;
36+
37+
@override
38+
int get hashCode =>
39+
copyOperationResponse.hashCode +
40+
watchResponses.hashCode +
41+
moveOperationResponse.hashCode;
42+
43+
factory ReplaceAllObjectsWithTransformationResponse.fromJson(
44+
Map<String, dynamic> json) =>
45+
_$ReplaceAllObjectsWithTransformationResponseFromJson(json);
46+
47+
Map<String, dynamic> toJson() =>
48+
_$ReplaceAllObjectsWithTransformationResponseToJson(this);
49+
50+
@override
51+
String toString() {
52+
return toJson().toString();
53+
}
54+
}

packages/client_search/lib/src/model/replace_all_objects_with_transformation_response.g.dart

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)