Skip to content

Commit d413a30

Browse files
algolia-botraed667
andcommitted
feat(specs): add (optional) _automaticInsights to search result (generated)
algolia/api-clients-automation#3688 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Raed <[email protected]>
1 parent d079be2 commit d413a30

18 files changed

+132
-9
lines changed

packages/algoliasearch/lib/src/model/base_search_response.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
3838
this.serverUsed,
3939
this.userData,
4040
this.queryID,
41+
this.automaticInsights,
4142
Map<String, dynamic> additionalProperties = const {},
4243
}) : super(additionalProperties);
4344

@@ -138,6 +139,10 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
138139
@JsonKey(name: r'queryID')
139140
final String? queryID;
140141

142+
/// Whether automatic events collection is enabled for the application.
143+
@JsonKey(name: r'_automaticInsights')
144+
final bool? automaticInsights;
145+
141146
@override
142147
bool operator ==(Object other) =>
143148
identical(this, other) ||
@@ -166,6 +171,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
166171
other.serverUsed == serverUsed &&
167172
other.userData == userData &&
168173
other.queryID == queryID &&
174+
other.automaticInsights == automaticInsights &&
169175
const MapEquality<String, dynamic>().equals(this, this);
170176

171177
@override
@@ -194,6 +200,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
194200
serverUsed.hashCode +
195201
userData.hashCode +
196202
queryID.hashCode +
203+
automaticInsights.hashCode +
197204
const MapEquality<String, dynamic>().hash(this);
198205

199206
factory BaseSearchResponse.fromJson(Map<String, dynamic> json) {
@@ -226,6 +233,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
226233
serverUsed: instance.serverUsed,
227234
userData: instance.userData,
228235
queryID: instance.queryID,
236+
automaticInsights: instance.automaticInsights,
229237
additionalProperties: additionalProperties,
230238
);
231239
}

packages/algoliasearch/lib/src/model/base_search_response.g.dart

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/algoliasearch/lib/src/model/browse_response.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ final class BrowseResponse {
3838
this.serverUsed,
3939
this.userData,
4040
this.queryID,
41+
this.automaticInsights,
4142
this.page,
4243
this.nbHits,
4344
this.nbPages,
@@ -145,6 +146,10 @@ final class BrowseResponse {
145146
@JsonKey(name: r'queryID')
146147
final String? queryID;
147148

149+
/// Whether automatic events collection is enabled for the application.
150+
@JsonKey(name: r'_automaticInsights')
151+
final bool? automaticInsights;
152+
148153
/// Page of search results to retrieve.
149154
// minimum: 0
150155
@JsonKey(name: r'page')
@@ -205,6 +210,7 @@ final class BrowseResponse {
205210
other.serverUsed == serverUsed &&
206211
other.userData == userData &&
207212
other.queryID == queryID &&
213+
other.automaticInsights == automaticInsights &&
208214
other.page == page &&
209215
other.nbHits == nbHits &&
210216
other.nbPages == nbPages &&
@@ -237,6 +243,7 @@ final class BrowseResponse {
237243
serverUsed.hashCode +
238244
userData.hashCode +
239245
queryID.hashCode +
246+
automaticInsights.hashCode +
240247
page.hashCode +
241248
nbHits.hashCode +
242249
nbPages.hashCode +

packages/algoliasearch/lib/src/model/browse_response.g.dart

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/algoliasearch/lib/src/model/recommendations_results.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ final class RecommendationsResults {
3737
this.serverUsed,
3838
this.userData,
3939
this.queryID,
40+
this.automaticInsights,
4041
required this.page,
4142
required this.nbHits,
4243
required this.nbPages,
@@ -141,6 +142,10 @@ final class RecommendationsResults {
141142
@JsonKey(name: r'queryID')
142143
final String? queryID;
143144

145+
/// Whether automatic events collection is enabled for the application.
146+
@JsonKey(name: r'_automaticInsights')
147+
final bool? automaticInsights;
148+
144149
/// Page of search results to retrieve.
145150
// minimum: 0
146151
@JsonKey(name: r'page')
@@ -191,6 +196,7 @@ final class RecommendationsResults {
191196
other.serverUsed == serverUsed &&
192197
other.userData == userData &&
193198
other.queryID == queryID &&
199+
other.automaticInsights == automaticInsights &&
194200
other.page == page &&
195201
other.nbHits == nbHits &&
196202
other.nbPages == nbPages &&
@@ -220,6 +226,7 @@ final class RecommendationsResults {
220226
serverUsed.hashCode +
221227
userData.hashCode +
222228
queryID.hashCode +
229+
automaticInsights.hashCode +
223230
page.hashCode +
224231
nbHits.hashCode +
225232
nbPages.hashCode +

packages/algoliasearch/lib/src/model/recommendations_results.g.dart

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/algoliasearch/lib/src/model/search_response.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ final class SearchResponse {
3838
this.serverUsed,
3939
this.userData,
4040
this.queryID,
41+
this.automaticInsights,
4142
required this.page,
4243
required this.nbHits,
4344
required this.nbPages,
@@ -144,6 +145,10 @@ final class SearchResponse {
144145
@JsonKey(name: r'queryID')
145146
final String? queryID;
146147

148+
/// Whether automatic events collection is enabled for the application.
149+
@JsonKey(name: r'_automaticInsights')
150+
final bool? automaticInsights;
151+
147152
/// Page of search results to retrieve.
148153
// minimum: 0
149154
@JsonKey(name: r'page')
@@ -200,6 +205,7 @@ final class SearchResponse {
200205
other.serverUsed == serverUsed &&
201206
other.userData == userData &&
202207
other.queryID == queryID &&
208+
other.automaticInsights == automaticInsights &&
203209
other.page == page &&
204210
other.nbHits == nbHits &&
205211
other.nbPages == nbPages &&
@@ -231,6 +237,7 @@ final class SearchResponse {
231237
serverUsed.hashCode +
232238
userData.hashCode +
233239
queryID.hashCode +
240+
automaticInsights.hashCode +
234241
page.hashCode +
235242
nbHits.hashCode +
236243
nbPages.hashCode +

packages/algoliasearch/lib/src/model/search_response.g.dart

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/client_recommend/lib/src/model/base_search_response.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
3838
this.serverUsed,
3939
this.userData,
4040
this.queryID,
41+
this.automaticInsights,
4142
Map<String, dynamic> additionalProperties = const {},
4243
}) : super(additionalProperties);
4344

@@ -138,6 +139,10 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
138139
@JsonKey(name: r'queryID')
139140
final String? queryID;
140141

142+
/// Whether automatic events collection is enabled for the application.
143+
@JsonKey(name: r'_automaticInsights')
144+
final bool? automaticInsights;
145+
141146
@override
142147
bool operator ==(Object other) =>
143148
identical(this, other) ||
@@ -166,6 +171,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
166171
other.serverUsed == serverUsed &&
167172
other.userData == userData &&
168173
other.queryID == queryID &&
174+
other.automaticInsights == automaticInsights &&
169175
const MapEquality<String, dynamic>().equals(this, this);
170176

171177
@override
@@ -194,6 +200,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
194200
serverUsed.hashCode +
195201
userData.hashCode +
196202
queryID.hashCode +
203+
automaticInsights.hashCode +
197204
const MapEquality<String, dynamic>().hash(this);
198205

199206
factory BaseSearchResponse.fromJson(Map<String, dynamic> json) {
@@ -226,6 +233,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
226233
serverUsed: instance.serverUsed,
227234
userData: instance.userData,
228235
queryID: instance.queryID,
236+
automaticInsights: instance.automaticInsights,
229237
additionalProperties: additionalProperties,
230238
);
231239
}

packages/client_recommend/lib/src/model/base_search_response.g.dart

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/client_recommend/lib/src/model/recommendations_results.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ final class RecommendationsResults {
3737
this.serverUsed,
3838
this.userData,
3939
this.queryID,
40+
this.automaticInsights,
4041
required this.page,
4142
required this.nbHits,
4243
required this.nbPages,
@@ -141,6 +142,10 @@ final class RecommendationsResults {
141142
@JsonKey(name: r'queryID')
142143
final String? queryID;
143144

145+
/// Whether automatic events collection is enabled for the application.
146+
@JsonKey(name: r'_automaticInsights')
147+
final bool? automaticInsights;
148+
144149
/// Page of search results to retrieve.
145150
// minimum: 0
146151
@JsonKey(name: r'page')
@@ -191,6 +196,7 @@ final class RecommendationsResults {
191196
other.serverUsed == serverUsed &&
192197
other.userData == userData &&
193198
other.queryID == queryID &&
199+
other.automaticInsights == automaticInsights &&
194200
other.page == page &&
195201
other.nbHits == nbHits &&
196202
other.nbPages == nbPages &&
@@ -220,6 +226,7 @@ final class RecommendationsResults {
220226
serverUsed.hashCode +
221227
userData.hashCode +
222228
queryID.hashCode +
229+
automaticInsights.hashCode +
223230
page.hashCode +
224231
nbHits.hashCode +
225232
nbPages.hashCode +

0 commit comments

Comments
 (0)