Skip to content

Commit 59f37ed

Browse files
committed
fix(specs): multiple clients fixes (generated)
algolia/api-clients-automation#3971 Co-authored-by: algolia-bot <[email protected]>
1 parent 287cd4f commit 59f37ed

28 files changed

+143
-53
lines changed

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')

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.

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,

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.

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 +

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.

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')

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

Lines changed: 6 additions & 5 deletions
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
@@ -18,6 +18,7 @@ final class RecommendationsResults {
1818
this.aroundLatLng,
1919
this.automaticRadius,
2020
this.exhaustive,
21+
this.appliedRules,
2122
this.exhaustiveFacetsCount,
2223
this.exhaustiveNbHits,
2324
this.exhaustiveTypo,
@@ -65,6 +66,10 @@ final class RecommendationsResults {
6566
@JsonKey(name: r'exhaustive')
6667
final Exhaustive? exhaustive;
6768

69+
/// Rules applied to the query.
70+
@JsonKey(name: r'appliedRules')
71+
final List<Object>? appliedRules;
72+
6873
/// See the `facetsCount` field of the `exhaustive` object in the response.
6974
@Deprecated('exhaustiveFacetsCount has been deprecated')
7075
@JsonKey(name: r'exhaustiveFacetsCount')
@@ -180,6 +185,7 @@ final class RecommendationsResults {
180185
other.aroundLatLng == aroundLatLng &&
181186
other.automaticRadius == automaticRadius &&
182187
other.exhaustive == exhaustive &&
188+
other.appliedRules == appliedRules &&
183189
other.facets == facets &&
184190
other.facetsStats == facetsStats &&
185191
other.index == index &&
@@ -210,6 +216,7 @@ final class RecommendationsResults {
210216
aroundLatLng.hashCode +
211217
automaticRadius.hashCode +
212218
exhaustive.hashCode +
219+
appliedRules.hashCode +
213220
facets.hashCode +
214221
facetsStats.hashCode +
215222
index.hashCode +

packages/algoliasearch/lib/src/model/recommendations_results.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.

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

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

72+
/// Rules applied to the query.
73+
@JsonKey(name: r'appliedRules')
74+
final List<Object>? appliedRules;
75+
7176
/// See the `facetsCount` field of the `exhaustive` object in the response.
7277
@Deprecated('exhaustiveFacetsCount has been deprecated')
7378
@JsonKey(name: r'exhaustiveFacetsCount')
@@ -189,6 +194,7 @@ final class SearchResponse {
189194
other.aroundLatLng == aroundLatLng &&
190195
other.automaticRadius == automaticRadius &&
191196
other.exhaustive == exhaustive &&
197+
other.appliedRules == appliedRules &&
192198
other.facets == facets &&
193199
other.facetsStats == facetsStats &&
194200
other.index == index &&
@@ -221,6 +227,7 @@ final class SearchResponse {
221227
aroundLatLng.hashCode +
222228
automaticRadius.hashCode +
223229
exhaustive.hashCode +
230+
appliedRules.hashCode +
224231
facets.hashCode +
225232
facetsStats.hashCode +
226233
index.hashCode +

packages/algoliasearch/lib/src/model/search_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.

packages/client_recommend/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,

packages/client_recommend/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.

0 commit comments

Comments
 (0)