Skip to content

Commit ce1f8fd

Browse files
Merge branch 'main' into fix/recommend-remove-private-beta-endpoint (generated)
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent a1b0cf4 commit ce1f8fd

File tree

59 files changed

+17
-2684
lines changed

Some content is hidden

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

59 files changed

+17
-2684
lines changed

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

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,6 @@ public RecommendationsRequest(LookingSimilarQuery actualInstance)
7070
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
7171
}
7272

73-
/// <summary>
74-
/// Initializes a new instance of the RecommendationsRequest class
75-
/// with a RecommendedForYouQuery
76-
/// </summary>
77-
/// <param name="actualInstance">An instance of RecommendedForYouQuery.</param>
78-
public RecommendationsRequest(RecommendedForYouQuery actualInstance)
79-
{
80-
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
81-
}
82-
8373

8474
/// <summary>
8575
/// Gets or Sets ActualInstance
@@ -136,16 +126,6 @@ public LookingSimilarQuery AsLookingSimilarQuery()
136126
return (LookingSimilarQuery)ActualInstance;
137127
}
138128

139-
/// <summary>
140-
/// Get the actual instance of `RecommendedForYouQuery`. If the actual instance is not `RecommendedForYouQuery`,
141-
/// the InvalidClassException will be thrown
142-
/// </summary>
143-
/// <returns>An instance of RecommendedForYouQuery</returns>
144-
public RecommendedForYouQuery AsRecommendedForYouQuery()
145-
{
146-
return (RecommendedForYouQuery)ActualInstance;
147-
}
148-
149129

150130
/// <summary>
151131
/// Check if the actual instance is of `BoughtTogetherQuery` type.
@@ -192,15 +172,6 @@ public bool IsLookingSimilarQuery()
192172
return ActualInstance.GetType() == typeof(LookingSimilarQuery);
193173
}
194174

195-
/// <summary>
196-
/// Check if the actual instance is of `RecommendedForYouQuery` type.
197-
/// </summary>
198-
/// <returns>Whether or not the instance is the type</returns>
199-
public bool IsRecommendedForYouQuery()
200-
{
201-
return ActualInstance.GetType() == typeof(RecommendedForYouQuery);
202-
}
203-
204175
/// <summary>
205176
/// Returns the string presentation of the object
206177
/// </summary>
@@ -345,18 +316,6 @@ public override RecommendationsRequest Read(ref Utf8JsonReader reader, Type type
345316
System.Diagnostics.Debug.WriteLine($"Failed to deserialize into LookingSimilarQuery: {exception}");
346317
}
347318
}
348-
if (root.ValueKind == JsonValueKind.Object)
349-
{
350-
try
351-
{
352-
return new RecommendationsRequest(jsonDocument.Deserialize<RecommendedForYouQuery>(JsonConfig.Options));
353-
}
354-
catch (Exception exception)
355-
{
356-
// deserialization failed, try the next one
357-
System.Diagnostics.Debug.WriteLine($"Failed to deserialize into RecommendedForYouQuery: {exception}");
358-
}
359-
}
360319
throw new InvalidDataException($"The JSON string cannot be deserialized into any schema defined.");
361320
}
362321

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

Lines changed: 0 additions & 27 deletions
This file was deleted.

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

Lines changed: 0 additions & 153 deletions
This file was deleted.

clients/algoliasearch-client-dart/packages/algoliasearch/lib/algoliasearch_lite.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ export 'src/model/recommend_index_settings.dart';
6666
export 'src/model/recommend_search_params.dart';
6767
export 'src/model/recommendations_hits.dart';
6868
export 'src/model/recommendations_results.dart';
69-
export 'src/model/recommended_for_you.dart';
70-
export 'src/model/recommended_for_you_model.dart';
71-
export 'src/model/recommended_for_you_query.dart';
7269
export 'src/model/redirect.dart';
7370
export 'src/model/redirect_rule_index_data.dart';
7471
export 'src/model/redirect_rule_index_metadata.dart';

clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/deserialize.dart

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ import 'package:algoliasearch/src/model/recommend_index_settings.dart';
5959
import 'package:algoliasearch/src/model/recommend_search_params.dart';
6060
import 'package:algoliasearch/src/model/recommendations_hits.dart';
6161
import 'package:algoliasearch/src/model/recommendations_results.dart';
62-
import 'package:algoliasearch/src/model/recommended_for_you.dart';
63-
import 'package:algoliasearch/src/model/recommended_for_you_model.dart';
64-
import 'package:algoliasearch/src/model/recommended_for_you_query.dart';
6562
import 'package:algoliasearch/src/model/redirect.dart';
6663
import 'package:algoliasearch/src/model/redirect_rule_index_data.dart';
6764
import 'package:algoliasearch/src/model/redirect_rule_index_metadata.dart';
@@ -279,14 +276,6 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
279276
case 'RecommendationsResults':
280277
return RecommendationsResults.fromJson(value as Map<String, dynamic>)
281278
as ReturnType;
282-
case 'RecommendedForYou':
283-
return RecommendedForYou.fromJson(value as Map<String, dynamic>)
284-
as ReturnType;
285-
case 'RecommendedForYouModel':
286-
return RecommendedForYouModel.fromJson(value) as ReturnType;
287-
case 'RecommendedForYouQuery':
288-
return RecommendedForYouQuery.fromJson(value as Map<String, dynamic>)
289-
as ReturnType;
290279
case 'Redirect':
291280
return Redirect.fromJson(value as Map<String, dynamic>) as ReturnType;
292281
case 'RedirectRuleIndexData':

clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/get_recommendations_params.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ final class GetRecommendationsParams {
1717
/// - [LookingSimilarQuery]
1818
/// - [RelatedQuery]
1919
/// - [TrendingItemsQuery]
20-
/// - [RecommendedForYouQuery]
2120
/// - [TrendingFacetsQuery]
2221
/// - [BoughtTogetherQuery]
2322
@JsonKey(name: r'requests')

clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommended_for_you.dart

Lines changed: 0 additions & 43 deletions
This file was deleted.

clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommended_for_you.g.dart

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)