Skip to content

Commit a934c4e

Browse files
committed
fix(specs): multiple clients fixes (#3971) (generated) [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 519fd98 commit a934c4e

File tree

113 files changed

+870
-231
lines changed

Some content is hidden

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

113 files changed

+870
-231
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/ABTestConfiguration.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,8 @@ public partial class ABTestConfiguration
1919
/// <summary>
2020
/// Initializes a new instance of the ABTestConfiguration class.
2121
/// </summary>
22-
[JsonConstructor]
23-
public ABTestConfiguration() { }
24-
/// <summary>
25-
/// Initializes a new instance of the ABTestConfiguration class.
26-
/// </summary>
27-
/// <param name="outliers">outliers (required).</param>
28-
public ABTestConfiguration(Outliers outliers)
22+
public ABTestConfiguration()
2923
{
30-
Outliers = outliers ?? throw new ArgumentNullException(nameof(outliers));
3124
}
3225

3326
/// <summary>

clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/Variant.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,18 @@ public Variant() { }
2727
/// <param name="addToCartCount">Number of add-to-cart events for this variant. (required).</param>
2828
/// <param name="clickCount">Number of click events for this variant. (required).</param>
2929
/// <param name="conversionCount">Number of click events for this variant. (required).</param>
30-
/// <param name="description">Description for this variant. (required).</param>
3130
/// <param name="index">Index name of the A/B test variant (case-sensitive). (required).</param>
3231
/// <param name="noResultCount">Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for this variant. (required).</param>
3332
/// <param name="purchaseCount">Number of purchase events for this variant. (required).</param>
3433
/// <param name="searchCount">Number of searches for this variant. (required).</param>
3534
/// <param name="trafficPercentage">Percentage of search requests each variant receives. (required).</param>
3635
/// <param name="userCount">Number of users that made searches to this variant. (required).</param>
3736
/// <param name="trackedUserCount">Number of users that made tracked searches to this variant. (required).</param>
38-
public Variant(int addToCartCount, int clickCount, int conversionCount, string description, string index, int? noResultCount, int purchaseCount, int? searchCount, int trafficPercentage, int? userCount, int? trackedUserCount)
37+
public Variant(int addToCartCount, int clickCount, int conversionCount, string index, int? noResultCount, int purchaseCount, int? searchCount, int trafficPercentage, int? userCount, int? trackedUserCount)
3938
{
4039
AddToCartCount = addToCartCount;
4140
ClickCount = clickCount;
4241
ConversionCount = conversionCount;
43-
Description = description ?? throw new ArgumentNullException(nameof(description));
4442
Index = index ?? throw new ArgumentNullException(nameof(index));
4543
NoResultCount = noResultCount ?? throw new ArgumentNullException(nameof(noResultCount));
4644
PurchaseCount = purchaseCount;

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ public RecommendationsResults(int processingTimeMS, List<RecommendationsHit> hit
6666
[JsonPropertyName("exhaustive")]
6767
public Exhaustive Exhaustive { get; set; }
6868

69+
/// <summary>
70+
/// Rules applied to the query.
71+
/// </summary>
72+
/// <value>Rules applied to the query.</value>
73+
[JsonPropertyName("appliedRules")]
74+
public List<object> AppliedRules { get; set; }
75+
6976
/// <summary>
7077
/// See the `facetsCount` field of the `exhaustive` object in the response.
7178
/// </summary>
@@ -254,6 +261,7 @@ public override string ToString()
254261
sb.Append(" AroundLatLng: ").Append(AroundLatLng).Append("\n");
255262
sb.Append(" AutomaticRadius: ").Append(AutomaticRadius).Append("\n");
256263
sb.Append(" Exhaustive: ").Append(Exhaustive).Append("\n");
264+
sb.Append(" AppliedRules: ").Append(AppliedRules).Append("\n");
257265
sb.Append(" ExhaustiveFacetsCount: ").Append(ExhaustiveFacetsCount).Append("\n");
258266
sb.Append(" ExhaustiveNbHits: ").Append(ExhaustiveNbHits).Append("\n");
259267
sb.Append(" ExhaustiveTypo: ").Append(ExhaustiveTypo).Append("\n");
@@ -310,6 +318,7 @@ public override bool Equals(object obj)
310318
(AroundLatLng == input.AroundLatLng || (AroundLatLng != null && AroundLatLng.Equals(input.AroundLatLng))) &&
311319
(AutomaticRadius == input.AutomaticRadius || (AutomaticRadius != null && AutomaticRadius.Equals(input.AutomaticRadius))) &&
312320
(Exhaustive == input.Exhaustive || (Exhaustive != null && Exhaustive.Equals(input.Exhaustive))) &&
321+
(AppliedRules == input.AppliedRules || AppliedRules != null && input.AppliedRules != null && AppliedRules.SequenceEqual(input.AppliedRules)) &&
313322
(ExhaustiveFacetsCount == input.ExhaustiveFacetsCount || ExhaustiveFacetsCount.Equals(input.ExhaustiveFacetsCount)) &&
314323
(ExhaustiveNbHits == input.ExhaustiveNbHits || ExhaustiveNbHits.Equals(input.ExhaustiveNbHits)) &&
315324
(ExhaustiveTypo == input.ExhaustiveTypo || ExhaustiveTypo.Equals(input.ExhaustiveTypo)) &&
@@ -360,6 +369,10 @@ public override int GetHashCode()
360369
{
361370
hashCode = (hashCode * 59) + Exhaustive.GetHashCode();
362371
}
372+
if (AppliedRules != null)
373+
{
374+
hashCode = (hashCode * 59) + AppliedRules.GetHashCode();
375+
}
363376
hashCode = (hashCode * 59) + ExhaustiveFacetsCount.GetHashCode();
364377
hashCode = (hashCode * 59) + ExhaustiveNbHits.GetHashCode();
365378
hashCode = (hashCode * 59) + ExhaustiveTypo.GetHashCode();

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ public BrowseResponse(int processingTimeMS, List<T> hits, string query, string v
7070
[JsonPropertyName("exhaustive")]
7171
public Exhaustive Exhaustive { get; set; }
7272

73+
/// <summary>
74+
/// Rules applied to the query.
75+
/// </summary>
76+
/// <value>Rules applied to the query.</value>
77+
[JsonPropertyName("appliedRules")]
78+
public List<object> AppliedRules { get; set; }
79+
7380
/// <summary>
7481
/// See the `facetsCount` field of the `exhaustive` object in the response.
7582
/// </summary>
@@ -280,6 +287,7 @@ public override string ToString()
280287
sb.Append(" AroundLatLng: ").Append(AroundLatLng).Append("\n");
281288
sb.Append(" AutomaticRadius: ").Append(AutomaticRadius).Append("\n");
282289
sb.Append(" Exhaustive: ").Append(Exhaustive).Append("\n");
290+
sb.Append(" AppliedRules: ").Append(AppliedRules).Append("\n");
283291
sb.Append(" ExhaustiveFacetsCount: ").Append(ExhaustiveFacetsCount).Append("\n");
284292
sb.Append(" ExhaustiveNbHits: ").Append(ExhaustiveNbHits).Append("\n");
285293
sb.Append(" ExhaustiveTypo: ").Append(ExhaustiveTypo).Append("\n");
@@ -339,6 +347,7 @@ public override bool Equals(object obj)
339347
(AroundLatLng == input.AroundLatLng || (AroundLatLng != null && AroundLatLng.Equals(input.AroundLatLng))) &&
340348
(AutomaticRadius == input.AutomaticRadius || (AutomaticRadius != null && AutomaticRadius.Equals(input.AutomaticRadius))) &&
341349
(Exhaustive == input.Exhaustive || (Exhaustive != null && Exhaustive.Equals(input.Exhaustive))) &&
350+
(AppliedRules == input.AppliedRules || AppliedRules != null && input.AppliedRules != null && AppliedRules.SequenceEqual(input.AppliedRules)) &&
342351
(ExhaustiveFacetsCount == input.ExhaustiveFacetsCount || ExhaustiveFacetsCount.Equals(input.ExhaustiveFacetsCount)) &&
343352
(ExhaustiveNbHits == input.ExhaustiveNbHits || ExhaustiveNbHits.Equals(input.ExhaustiveNbHits)) &&
344353
(ExhaustiveTypo == input.ExhaustiveTypo || ExhaustiveTypo.Equals(input.ExhaustiveTypo)) &&
@@ -392,6 +401,10 @@ public override int GetHashCode()
392401
{
393402
hashCode = (hashCode * 59) + Exhaustive.GetHashCode();
394403
}
404+
if (AppliedRules != null)
405+
{
406+
hashCode = (hashCode * 59) + AppliedRules.GetHashCode();
407+
}
395408
hashCode = (hashCode * 59) + ExhaustiveFacetsCount.GetHashCode();
396409
hashCode = (hashCode * 59) + ExhaustiveNbHits.GetHashCode();
397410
hashCode = (hashCode * 59) + ExhaustiveTypo.GetHashCode();

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ public GetApiKeyResponse() { }
2424
/// <summary>
2525
/// Initializes a new instance of the GetApiKeyResponse class.
2626
/// </summary>
27+
/// <param name="value">API key. (required).</param>
2728
/// <param name="createdAt">Timestamp when the object was created, in milliseconds since the Unix epoch. (required).</param>
2829
/// <param name="acl">Permissions that determine the type of API requests this key can make. The required ACL is listed in each endpoint's reference. For more information, see [access control list](https://www.algolia.com/doc/guides/security/api-keys/#access-control-list-acl). (required).</param>
29-
public GetApiKeyResponse(long createdAt, List<Acl> acl)
30+
public GetApiKeyResponse(string value, long createdAt, List<Acl> acl)
3031
{
32+
Value = value ?? throw new ArgumentNullException(nameof(value));
3133
CreatedAt = createdAt;
3234
Acl = acl ?? throw new ArgumentNullException(nameof(acl));
3335
}

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,8 @@ public partial class GetObjectsResponse<T>
1919
/// <summary>
2020
/// Initializes a new instance of the GetObjectsResponse class.
2121
/// </summary>
22-
[JsonConstructor]
23-
public GetObjectsResponse() { }
24-
/// <summary>
25-
/// Initializes a new instance of the GetObjectsResponse class.
26-
/// </summary>
27-
/// <param name="results">Retrieved records. (required).</param>
28-
public GetObjectsResponse(List<T> results)
22+
public GetObjectsResponse()
2923
{
30-
Results = results ?? throw new ArgumentNullException(nameof(results));
3124
}
3225

3326
/// <summary>

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ public SearchResponse(int processingTimeMS, List<T> hits, string query, string v
7474
[JsonPropertyName("exhaustive")]
7575
public Exhaustive Exhaustive { get; set; }
7676

77+
/// <summary>
78+
/// Rules applied to the query.
79+
/// </summary>
80+
/// <value>Rules applied to the query.</value>
81+
[JsonPropertyName("appliedRules")]
82+
public List<object> AppliedRules { get; set; }
83+
7784
/// <summary>
7885
/// See the `facetsCount` field of the `exhaustive` object in the response.
7986
/// </summary>
@@ -283,6 +290,7 @@ public override string ToString()
283290
sb.Append(" AroundLatLng: ").Append(AroundLatLng).Append("\n");
284291
sb.Append(" AutomaticRadius: ").Append(AutomaticRadius).Append("\n");
285292
sb.Append(" Exhaustive: ").Append(Exhaustive).Append("\n");
293+
sb.Append(" AppliedRules: ").Append(AppliedRules).Append("\n");
286294
sb.Append(" ExhaustiveFacetsCount: ").Append(ExhaustiveFacetsCount).Append("\n");
287295
sb.Append(" ExhaustiveNbHits: ").Append(ExhaustiveNbHits).Append("\n");
288296
sb.Append(" ExhaustiveTypo: ").Append(ExhaustiveTypo).Append("\n");
@@ -342,6 +350,7 @@ public override bool Equals(object obj)
342350
(AroundLatLng == input.AroundLatLng || (AroundLatLng != null && AroundLatLng.Equals(input.AroundLatLng))) &&
343351
(AutomaticRadius == input.AutomaticRadius || (AutomaticRadius != null && AutomaticRadius.Equals(input.AutomaticRadius))) &&
344352
(Exhaustive == input.Exhaustive || (Exhaustive != null && Exhaustive.Equals(input.Exhaustive))) &&
353+
(AppliedRules == input.AppliedRules || AppliedRules != null && input.AppliedRules != null && AppliedRules.SequenceEqual(input.AppliedRules)) &&
345354
(ExhaustiveFacetsCount == input.ExhaustiveFacetsCount || ExhaustiveFacetsCount.Equals(input.ExhaustiveFacetsCount)) &&
346355
(ExhaustiveNbHits == input.ExhaustiveNbHits || ExhaustiveNbHits.Equals(input.ExhaustiveNbHits)) &&
347356
(ExhaustiveTypo == input.ExhaustiveTypo || ExhaustiveTypo.Equals(input.ExhaustiveTypo)) &&
@@ -395,6 +404,10 @@ public override int GetHashCode()
395404
{
396405
hashCode = (hashCode * 59) + Exhaustive.GetHashCode();
397406
}
407+
if (AppliedRules != null)
408+
{
409+
hashCode = (hashCode * 59) + AppliedRules.GetHashCode();
410+
}
398411
hashCode = (hashCode * 59) + ExhaustiveFacetsCount.GetHashCode();
399412
hashCode = (hashCode * 59) + ExhaustiveNbHits.GetHashCode();
400413
hashCode = (hashCode * 59) + ExhaustiveTypo.GetHashCode();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ part 'base_get_api_key_response.g.dart';
99
final class BaseGetApiKeyResponse {
1010
/// Returns a new [BaseGetApiKeyResponse] instance.
1111
const BaseGetApiKeyResponse({
12-
this.value,
12+
required this.value,
1313
required this.createdAt,
1414
});
1515

1616
/// API key.
1717
@JsonKey(name: r'value')
18-
final String? value;
18+
final String value;
1919

2020
/// Timestamp when the object was created, in milliseconds since the Unix epoch.
2121
@JsonKey(name: r'createdAt')

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

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
1919
this.aroundLatLng,
2020
this.automaticRadius,
2121
this.exhaustive,
22+
this.appliedRules,
2223
this.exhaustiveFacetsCount,
2324
this.exhaustiveNbHits,
2425
this.exhaustiveTypo,
@@ -62,6 +63,10 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
6263
@JsonKey(name: r'exhaustive')
6364
final Exhaustive? exhaustive;
6465

66+
/// Rules applied to the query.
67+
@JsonKey(name: r'appliedRules')
68+
final List<Object>? appliedRules;
69+
6570
/// See the `facetsCount` field of the `exhaustive` object in the response.
6671
@Deprecated('exhaustiveFacetsCount has been deprecated')
6772
@JsonKey(name: r'exhaustiveFacetsCount')
@@ -152,6 +157,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
152157
other.aroundLatLng == aroundLatLng &&
153158
other.automaticRadius == automaticRadius &&
154159
other.exhaustive == exhaustive &&
160+
other.appliedRules == appliedRules &&
155161
other.exhaustiveFacetsCount == exhaustiveFacetsCount &&
156162
other.exhaustiveNbHits == exhaustiveNbHits &&
157163
other.exhaustiveTypo == exhaustiveTypo &&
@@ -181,6 +187,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
181187
aroundLatLng.hashCode +
182188
automaticRadius.hashCode +
183189
exhaustive.hashCode +
190+
appliedRules.hashCode +
184191
exhaustiveFacetsCount.hashCode +
185192
exhaustiveNbHits.hashCode +
186193
exhaustiveTypo.hashCode +
@@ -214,6 +221,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
214221
aroundLatLng: instance.aroundLatLng,
215222
automaticRadius: instance.automaticRadius,
216223
exhaustive: instance.exhaustive,
224+
appliedRules: instance.appliedRules,
217225
exhaustiveFacetsCount: instance.exhaustiveFacetsCount,
218226
exhaustiveNbHits: instance.exhaustiveNbHits,
219227
exhaustiveTypo: instance.exhaustiveTypo,

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

Lines changed: 4 additions & 0 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/browse_response.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ final class BrowseResponse {
1919
this.aroundLatLng,
2020
this.automaticRadius,
2121
this.exhaustive,
22+
this.appliedRules,
2223
this.exhaustiveFacetsCount,
2324
this.exhaustiveNbHits,
2425
this.exhaustiveTypo,
@@ -69,6 +70,10 @@ final class BrowseResponse {
6970
@JsonKey(name: r'exhaustive')
7071
final Exhaustive? exhaustive;
7172

73+
/// Rules applied to the query.
74+
@JsonKey(name: r'appliedRules')
75+
final List<Object>? appliedRules;
76+
7277
/// See the `facetsCount` field of the `exhaustive` object in the response.
7378
@Deprecated('exhaustiveFacetsCount has been deprecated')
7479
@JsonKey(name: r'exhaustiveFacetsCount')
@@ -194,6 +199,7 @@ final class BrowseResponse {
194199
other.aroundLatLng == aroundLatLng &&
195200
other.automaticRadius == automaticRadius &&
196201
other.exhaustive == exhaustive &&
202+
other.appliedRules == appliedRules &&
197203
other.facets == facets &&
198204
other.facetsStats == facetsStats &&
199205
other.index == index &&
@@ -227,6 +233,7 @@ final class BrowseResponse {
227233
aroundLatLng.hashCode +
228234
automaticRadius.hashCode +
229235
exhaustive.hashCode +
236+
appliedRules.hashCode +
230237
facets.hashCode +
231238
facetsStats.hashCode +
232239
index.hashCode +

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

Lines changed: 3 additions & 0 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/get_api_key_response.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ part 'get_api_key_response.g.dart';
1010
final class GetApiKeyResponse {
1111
/// Returns a new [GetApiKeyResponse] instance.
1212
const GetApiKeyResponse({
13-
this.value,
13+
required this.value,
1414
required this.createdAt,
1515
required this.acl,
1616
this.description,
@@ -24,7 +24,7 @@ final class GetApiKeyResponse {
2424

2525
/// API key.
2626
@JsonKey(name: r'value')
27-
final String? value;
27+
final String value;
2828

2929
/// Timestamp when the object was created, in milliseconds since the Unix epoch.
3030
@JsonKey(name: r'createdAt')

0 commit comments

Comments
 (0)