Skip to content

Commit a5319e4

Browse files
algolia-botraed667
andcommitted
feat(specs): add (optional) _automaticInsights to search result (#3688) (generated) [skip ci]
Co-authored-by: Raed <[email protected]>
1 parent 46d9d8f commit a5319e4

File tree

79 files changed

+718
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+718
-84
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendationsResults.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,13 @@ public RecommendationsResults(int processingTimeMS, int page, int nbHits, int nb
208208
[JsonPropertyName("queryID")]
209209
public string QueryID { get; set; }
210210

211+
/// <summary>
212+
/// Whether automatic events collection is enabled for the application.
213+
/// </summary>
214+
/// <value>Whether automatic events collection is enabled for the application.</value>
215+
[JsonPropertyName("_automaticInsights")]
216+
public bool? AutomaticInsights { get; set; }
217+
211218
/// <summary>
212219
/// Page of search results to retrieve.
213220
/// </summary>
@@ -274,6 +281,7 @@ public override string ToString()
274281
sb.Append(" ServerUsed: ").Append(ServerUsed).Append("\n");
275282
sb.Append(" UserData: ").Append(UserData).Append("\n");
276283
sb.Append(" QueryID: ").Append(QueryID).Append("\n");
284+
sb.Append(" AutomaticInsights: ").Append(AutomaticInsights).Append("\n");
277285
sb.Append(" Page: ").Append(Page).Append("\n");
278286
sb.Append(" NbHits: ").Append(NbHits).Append("\n");
279287
sb.Append(" NbPages: ").Append(NbPages).Append("\n");
@@ -329,6 +337,7 @@ public override bool Equals(object obj)
329337
(ServerUsed == input.ServerUsed || (ServerUsed != null && ServerUsed.Equals(input.ServerUsed))) &&
330338
(UserData == input.UserData || (UserData != null && UserData.Equals(input.UserData))) &&
331339
(QueryID == input.QueryID || (QueryID != null && QueryID.Equals(input.QueryID))) &&
340+
(AutomaticInsights == input.AutomaticInsights || AutomaticInsights.Equals(input.AutomaticInsights)) &&
332341
(Page == input.Page || Page.Equals(input.Page)) &&
333342
(NbHits == input.NbHits || NbHits.Equals(input.NbHits)) &&
334343
(NbPages == input.NbPages || NbPages.Equals(input.NbPages)) &&
@@ -417,6 +426,7 @@ public override int GetHashCode()
417426
{
418427
hashCode = (hashCode * 59) + QueryID.GetHashCode();
419428
}
429+
hashCode = (hashCode * 59) + AutomaticInsights.GetHashCode();
420430
hashCode = (hashCode * 59) + Page.GetHashCode();
421431
hashCode = (hashCode * 59) + NbHits.GetHashCode();
422432
hashCode = (hashCode * 59) + NbPages.GetHashCode();

clients/algoliasearch-client-csharp/algoliasearch/Models/Search/BrowseResponse.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ public BrowseResponse(int processingTimeMS, List<T> hits, string query, string v
204204
[JsonPropertyName("queryID")]
205205
public string QueryID { get; set; }
206206

207+
/// <summary>
208+
/// Whether automatic events collection is enabled for the application.
209+
/// </summary>
210+
/// <value>Whether automatic events collection is enabled for the application.</value>
211+
[JsonPropertyName("_automaticInsights")]
212+
public bool? AutomaticInsights { get; set; }
213+
207214
/// <summary>
208215
/// Page of search results to retrieve.
209216
/// </summary>
@@ -292,6 +299,7 @@ public override string ToString()
292299
sb.Append(" ServerUsed: ").Append(ServerUsed).Append("\n");
293300
sb.Append(" UserData: ").Append(UserData).Append("\n");
294301
sb.Append(" QueryID: ").Append(QueryID).Append("\n");
302+
sb.Append(" AutomaticInsights: ").Append(AutomaticInsights).Append("\n");
295303
sb.Append(" Page: ").Append(Page).Append("\n");
296304
sb.Append(" NbHits: ").Append(NbHits).Append("\n");
297305
sb.Append(" NbPages: ").Append(NbPages).Append("\n");
@@ -350,6 +358,7 @@ public override bool Equals(object obj)
350358
(ServerUsed == input.ServerUsed || (ServerUsed != null && ServerUsed.Equals(input.ServerUsed))) &&
351359
(UserData == input.UserData || (UserData != null && UserData.Equals(input.UserData))) &&
352360
(QueryID == input.QueryID || (QueryID != null && QueryID.Equals(input.QueryID))) &&
361+
(AutomaticInsights == input.AutomaticInsights || AutomaticInsights.Equals(input.AutomaticInsights)) &&
353362
(Page == input.Page || Page.Equals(input.Page)) &&
354363
(NbHits == input.NbHits || NbHits.Equals(input.NbHits)) &&
355364
(NbPages == input.NbPages || NbPages.Equals(input.NbPages)) &&
@@ -441,6 +450,7 @@ public override int GetHashCode()
441450
{
442451
hashCode = (hashCode * 59) + QueryID.GetHashCode();
443452
}
453+
hashCode = (hashCode * 59) + AutomaticInsights.GetHashCode();
444454
hashCode = (hashCode * 59) + Page.GetHashCode();
445455
hashCode = (hashCode * 59) + NbHits.GetHashCode();
446456
hashCode = (hashCode * 59) + NbPages.GetHashCode();

clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchResponse.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ public SearchResponse(int processingTimeMS, int page, int nbHits, int nbPages, i
216216
[JsonPropertyName("queryID")]
217217
public string QueryID { get; set; }
218218

219+
/// <summary>
220+
/// Whether automatic events collection is enabled for the application.
221+
/// </summary>
222+
/// <value>Whether automatic events collection is enabled for the application.</value>
223+
[JsonPropertyName("_automaticInsights")]
224+
public bool? AutomaticInsights { get; set; }
225+
219226
/// <summary>
220227
/// Page of search results to retrieve.
221228
/// </summary>
@@ -303,6 +310,7 @@ public override string ToString()
303310
sb.Append(" ServerUsed: ").Append(ServerUsed).Append("\n");
304311
sb.Append(" UserData: ").Append(UserData).Append("\n");
305312
sb.Append(" QueryID: ").Append(QueryID).Append("\n");
313+
sb.Append(" AutomaticInsights: ").Append(AutomaticInsights).Append("\n");
306314
sb.Append(" Page: ").Append(Page).Append("\n");
307315
sb.Append(" NbHits: ").Append(NbHits).Append("\n");
308316
sb.Append(" NbPages: ").Append(NbPages).Append("\n");
@@ -361,6 +369,7 @@ public override bool Equals(object obj)
361369
(ServerUsed == input.ServerUsed || (ServerUsed != null && ServerUsed.Equals(input.ServerUsed))) &&
362370
(UserData == input.UserData || (UserData != null && UserData.Equals(input.UserData))) &&
363371
(QueryID == input.QueryID || (QueryID != null && QueryID.Equals(input.QueryID))) &&
372+
(AutomaticInsights == input.AutomaticInsights || AutomaticInsights.Equals(input.AutomaticInsights)) &&
364373
(Page == input.Page || Page.Equals(input.Page)) &&
365374
(NbHits == input.NbHits || NbHits.Equals(input.NbHits)) &&
366375
(NbPages == input.NbPages || NbPages.Equals(input.NbPages)) &&
@@ -452,6 +461,7 @@ public override int GetHashCode()
452461
{
453462
hashCode = (hashCode * 59) + QueryID.GetHashCode();
454463
}
464+
hashCode = (hashCode * 59) + AutomaticInsights.GetHashCode();
455465
hashCode = (hashCode * 59) + Page.GetHashCode();
456466
hashCode = (hashCode * 59) + NbHits.GetHashCode();
457467
hashCode = (hashCode * 59) + NbPages.GetHashCode();

clients/algoliasearch-client-dart/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
}

clients/algoliasearch-client-dart/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.

clients/algoliasearch-client-dart/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 +

clients/algoliasearch-client-dart/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.

clients/algoliasearch-client-dart/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 +

clients/algoliasearch-client-dart/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.

clients/algoliasearch-client-dart/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 +

clients/algoliasearch-client-dart/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.

0 commit comments

Comments
 (0)