Skip to content

Commit 74bf49a

Browse files
chore: generated code for commit 31ba7f6. [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 31ba7f6 commit 74bf49a

File tree

53 files changed

+260
-243
lines changed

Some content is hidden

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

53 files changed

+260
-243
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,9 @@ public TrendingItems() { }
3030
/// <summary>
3131
/// Initializes a new instance of the TrendingItems class.
3232
/// </summary>
33-
/// <param name="facetName">Facet attribute. To be used in combination with &#x60;facetValue&#x60;. If specified, only recommendations matching the facet filter will be returned. (required).</param>
34-
/// <param name="facetValue">Facet value. To be used in combination with &#x60;facetName&#x60;. If specified, only recommendations matching the facet filter will be returned. (required).</param>
3533
/// <param name="model">model (required).</param>
36-
public TrendingItems(string facetName, string facetValue, TrendingItemsModel? model)
34+
public TrendingItems(TrendingItemsModel? model)
3735
{
38-
FacetName = facetName ?? throw new ArgumentNullException(nameof(facetName));
39-
FacetValue = facetValue ?? throw new ArgumentNullException(nameof(facetValue));
4036
Model = model;
4137
}
4238

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,11 @@ public TrendingItemsQuery() { }
3232
/// </summary>
3333
/// <param name="indexName">Index name (case-sensitive). (required).</param>
3434
/// <param name="threshold">Minimum score a recommendation must have to be included in the response. (required).</param>
35-
/// <param name="facetName">Facet attribute. To be used in combination with &#x60;facetValue&#x60;. If specified, only recommendations matching the facet filter will be returned. (required).</param>
36-
/// <param name="facetValue">Facet value. To be used in combination with &#x60;facetName&#x60;. If specified, only recommendations matching the facet filter will be returned. (required).</param>
3735
/// <param name="model">model (required).</param>
38-
public TrendingItemsQuery(string indexName, double threshold, string facetName, string facetValue, TrendingItemsModel? model)
36+
public TrendingItemsQuery(string indexName, double threshold, TrendingItemsModel? model)
3937
{
4038
IndexName = indexName ?? throw new ArgumentNullException(nameof(indexName));
4139
Threshold = threshold;
42-
FacetName = facetName ?? throw new ArgumentNullException(nameof(facetName));
43-
FacetValue = facetValue ?? throw new ArgumentNullException(nameof(facetValue));
4440
Model = model;
4541
}
4642

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ part 'trending_items.g.dart';
1111
final class TrendingItems {
1212
/// Returns a new [TrendingItems] instance.
1313
const TrendingItems({
14-
required this.facetName,
15-
required this.facetValue,
14+
this.facetName,
15+
this.facetValue,
1616
required this.model,
1717
this.fallbackParameters,
1818
});
1919

2020
/// Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.
2121
@JsonKey(name: r'facetName')
22-
final String facetName;
22+
final String? facetName;
2323

2424
/// Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned.
2525
@JsonKey(name: r'facetValue')
26-
final String facetValue;
26+
final String? facetValue;
2727

2828
@JsonKey(name: r'model')
2929
final TrendingItemsModel model;

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

Lines changed: 6 additions & 7 deletions
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/trending_items_query.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ final class TrendingItemsQuery {
1616
required this.threshold,
1717
this.maxRecommendations,
1818
this.queryParameters,
19-
required this.facetName,
20-
required this.facetValue,
19+
this.facetName,
20+
this.facetValue,
2121
required this.model,
2222
this.fallbackParameters,
2323
});
@@ -43,11 +43,11 @@ final class TrendingItemsQuery {
4343

4444
/// Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.
4545
@JsonKey(name: r'facetName')
46-
final String facetName;
46+
final String? facetName;
4747

4848
/// Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned.
4949
@JsonKey(name: r'facetValue')
50-
final String facetValue;
50+
final String? facetValue;
5151

5252
@JsonKey(name: r'model')
5353
final TrendingItemsModel model;

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

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

clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/trending_items.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ part 'trending_items.g.dart';
1111
final class TrendingItems {
1212
/// Returns a new [TrendingItems] instance.
1313
const TrendingItems({
14-
required this.facetName,
15-
required this.facetValue,
14+
this.facetName,
15+
this.facetValue,
1616
required this.model,
1717
this.fallbackParameters,
1818
});
1919

2020
/// Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.
2121
@JsonKey(name: r'facetName')
22-
final String facetName;
22+
final String? facetName;
2323

2424
/// Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned.
2525
@JsonKey(name: r'facetValue')
26-
final String facetValue;
26+
final String? facetValue;
2727

2828
@JsonKey(name: r'model')
2929
final TrendingItemsModel model;

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

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

clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/trending_items_query.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ final class TrendingItemsQuery {
1616
required this.threshold,
1717
this.maxRecommendations,
1818
this.queryParameters,
19-
required this.facetName,
20-
required this.facetValue,
19+
this.facetName,
20+
this.facetValue,
2121
required this.model,
2222
this.fallbackParameters,
2323
});
@@ -43,11 +43,11 @@ final class TrendingItemsQuery {
4343

4444
/// Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.
4545
@JsonKey(name: r'facetName')
46-
final String facetName;
46+
final String? facetName;
4747

4848
/// Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned.
4949
@JsonKey(name: r'facetValue')
50-
final String facetValue;
50+
final String? facetValue;
5151

5252
@JsonKey(name: r'model')
5353
final TrendingItemsModel model;

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

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

clients/algoliasearch-client-go/algolia/recommend/model_trending_items.go

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

0 commit comments

Comments
 (0)