Skip to content

Commit a8f8480

Browse files
algolia-botFluf22
andcommitted
fix(specs): update search api specs [skip-bc] (generated)
algolia/api-clients-automation#3760 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent 8b0b34a commit a8f8480

15 files changed

+149
-123
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ final class RecommendationsResults {
3838
this.userData,
3939
this.queryID,
4040
this.automaticInsights,
41-
required this.page,
42-
required this.nbHits,
43-
required this.nbPages,
44-
required this.hitsPerPage,
41+
this.page,
42+
this.nbHits,
43+
this.nbPages,
44+
this.hitsPerPage,
4545
required this.hits,
4646
});
4747

@@ -149,21 +149,21 @@ final class RecommendationsResults {
149149
/// Page of search results to retrieve.
150150
// minimum: 0
151151
@JsonKey(name: r'page')
152-
final int page;
152+
final int? page;
153153

154154
/// Number of results (hits).
155155
@JsonKey(name: r'nbHits')
156-
final int nbHits;
156+
final int? nbHits;
157157

158158
/// Number of pages of results.
159159
@JsonKey(name: r'nbPages')
160-
final int nbPages;
160+
final int? nbPages;
161161

162162
/// Number of hits per page.
163163
// minimum: 1
164164
// maximum: 1000
165165
@JsonKey(name: r'hitsPerPage')
166-
final int hitsPerPage;
166+
final int? hitsPerPage;
167167

168168
/// One of types:
169169
/// - [RecommendHit]

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

Lines changed: 8 additions & 8 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_pagination.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,30 @@ part 'search_pagination.g.dart';
99
final class SearchPagination {
1010
/// Returns a new [SearchPagination] instance.
1111
const SearchPagination({
12-
required this.page,
13-
required this.nbHits,
14-
required this.nbPages,
15-
required this.hitsPerPage,
12+
this.page,
13+
this.nbHits,
14+
this.nbPages,
15+
this.hitsPerPage,
1616
});
1717

1818
/// Page of search results to retrieve.
1919
// minimum: 0
2020
@JsonKey(name: r'page')
21-
final int page;
21+
final int? page;
2222

2323
/// Number of results (hits).
2424
@JsonKey(name: r'nbHits')
25-
final int nbHits;
25+
final int? nbHits;
2626

2727
/// Number of pages of results.
2828
@JsonKey(name: r'nbPages')
29-
final int nbPages;
29+
final int? nbPages;
3030

3131
/// Number of hits per page.
3232
// minimum: 1
3333
// maximum: 1000
3434
@JsonKey(name: r'hitsPerPage')
35-
final int hitsPerPage;
35+
final int? hitsPerPage;
3636

3737
@override
3838
bool operator ==(Object other) =>

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

Lines changed: 19 additions & 11 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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ final class SearchResponse {
3939
this.userData,
4040
this.queryID,
4141
this.automaticInsights,
42-
required this.page,
43-
required this.nbHits,
44-
required this.nbPages,
45-
required this.hitsPerPage,
42+
this.page,
43+
this.nbHits,
44+
this.nbPages,
45+
this.hitsPerPage,
4646
required this.hits,
4747
required this.query,
4848
required this.params,
@@ -152,21 +152,21 @@ final class SearchResponse {
152152
/// Page of search results to retrieve.
153153
// minimum: 0
154154
@JsonKey(name: r'page')
155-
final int page;
155+
final int? page;
156156

157157
/// Number of results (hits).
158158
@JsonKey(name: r'nbHits')
159-
final int nbHits;
159+
final int? nbHits;
160160

161161
/// Number of pages of results.
162162
@JsonKey(name: r'nbPages')
163-
final int nbPages;
163+
final int? nbPages;
164164

165165
/// Number of hits per page.
166166
// minimum: 1
167167
// maximum: 1000
168168
@JsonKey(name: r'hitsPerPage')
169-
final int hitsPerPage;
169+
final int? hitsPerPage;
170170

171171
/// Search results (hits). Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting.
172172
@JsonKey(name: r'hits')

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

Lines changed: 8 additions & 8 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/recommendations_results.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ final class RecommendationsResults {
3838
this.userData,
3939
this.queryID,
4040
this.automaticInsights,
41-
required this.page,
42-
required this.nbHits,
43-
required this.nbPages,
44-
required this.hitsPerPage,
41+
this.page,
42+
this.nbHits,
43+
this.nbPages,
44+
this.hitsPerPage,
4545
required this.hits,
4646
});
4747

@@ -149,21 +149,21 @@ final class RecommendationsResults {
149149
/// Page of search results to retrieve.
150150
// minimum: 0
151151
@JsonKey(name: r'page')
152-
final int page;
152+
final int? page;
153153

154154
/// Number of results (hits).
155155
@JsonKey(name: r'nbHits')
156-
final int nbHits;
156+
final int? nbHits;
157157

158158
/// Number of pages of results.
159159
@JsonKey(name: r'nbPages')
160-
final int nbPages;
160+
final int? nbPages;
161161

162162
/// Number of hits per page.
163163
// minimum: 1
164164
// maximum: 1000
165165
@JsonKey(name: r'hitsPerPage')
166-
final int hitsPerPage;
166+
final int? hitsPerPage;
167167

168168
/// One of types:
169169
/// - [RecommendHit]

packages/client_recommend/lib/src/model/recommendations_results.g.dart

Lines changed: 8 additions & 8 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/search_pagination.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,30 @@ part 'search_pagination.g.dart';
99
final class SearchPagination {
1010
/// Returns a new [SearchPagination] instance.
1111
const SearchPagination({
12-
required this.page,
13-
required this.nbHits,
14-
required this.nbPages,
15-
required this.hitsPerPage,
12+
this.page,
13+
this.nbHits,
14+
this.nbPages,
15+
this.hitsPerPage,
1616
});
1717

1818
/// Page of search results to retrieve.
1919
// minimum: 0
2020
@JsonKey(name: r'page')
21-
final int page;
21+
final int? page;
2222

2323
/// Number of results (hits).
2424
@JsonKey(name: r'nbHits')
25-
final int nbHits;
25+
final int? nbHits;
2626

2727
/// Number of pages of results.
2828
@JsonKey(name: r'nbPages')
29-
final int nbPages;
29+
final int? nbPages;
3030

3131
/// Number of hits per page.
3232
// minimum: 1
3333
// maximum: 1000
3434
@JsonKey(name: r'hitsPerPage')
35-
final int hitsPerPage;
35+
final int? hitsPerPage;
3636

3737
@override
3838
bool operator ==(Object other) =>

packages/client_recommend/lib/src/model/search_pagination.g.dart

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

0 commit comments

Comments
 (0)