Skip to content

Commit

Permalink
fix(specs): update search api specs [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3760

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
  • Loading branch information
algolia-bot and Fluf22 committed Sep 16, 2024
1 parent 8b0b34a commit a8f8480
Show file tree
Hide file tree
Showing 15 changed files with 149 additions and 123 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ final class RecommendationsResults {
this.userData,
this.queryID,
this.automaticInsights,
required this.page,
required this.nbHits,
required this.nbPages,
required this.hitsPerPage,
this.page,
this.nbHits,
this.nbPages,
this.hitsPerPage,
required this.hits,
});

Expand Down Expand Up @@ -149,21 +149,21 @@ final class RecommendationsResults {
/// Page of search results to retrieve.
// minimum: 0
@JsonKey(name: r'page')
final int page;
final int? page;

/// Number of results (hits).
@JsonKey(name: r'nbHits')
final int nbHits;
final int? nbHits;

/// Number of pages of results.
@JsonKey(name: r'nbPages')
final int nbPages;
final int? nbPages;

/// Number of hits per page.
// minimum: 1
// maximum: 1000
@JsonKey(name: r'hitsPerPage')
final int hitsPerPage;
final int? hitsPerPage;

/// One of types:
/// - [RecommendHit]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions packages/algoliasearch/lib/src/model/search_pagination.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,30 @@ part 'search_pagination.g.dart';
final class SearchPagination {
/// Returns a new [SearchPagination] instance.
const SearchPagination({
required this.page,
required this.nbHits,
required this.nbPages,
required this.hitsPerPage,
this.page,
this.nbHits,
this.nbPages,
this.hitsPerPage,
});

/// Page of search results to retrieve.
// minimum: 0
@JsonKey(name: r'page')
final int page;
final int? page;

/// Number of results (hits).
@JsonKey(name: r'nbHits')
final int nbHits;
final int? nbHits;

/// Number of pages of results.
@JsonKey(name: r'nbPages')
final int nbPages;
final int? nbPages;

/// Number of hits per page.
// minimum: 1
// maximum: 1000
@JsonKey(name: r'hitsPerPage')
final int hitsPerPage;
final int? hitsPerPage;

@override
bool operator ==(Object other) =>
Expand Down
30 changes: 19 additions & 11 deletions packages/algoliasearch/lib/src/model/search_pagination.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions packages/algoliasearch/lib/src/model/search_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ final class SearchResponse {
this.userData,
this.queryID,
this.automaticInsights,
required this.page,
required this.nbHits,
required this.nbPages,
required this.hitsPerPage,
this.page,
this.nbHits,
this.nbPages,
this.hitsPerPage,
required this.hits,
required this.query,
required this.params,
Expand Down Expand Up @@ -152,21 +152,21 @@ final class SearchResponse {
/// Page of search results to retrieve.
// minimum: 0
@JsonKey(name: r'page')
final int page;
final int? page;

/// Number of results (hits).
@JsonKey(name: r'nbHits')
final int nbHits;
final int? nbHits;

/// Number of pages of results.
@JsonKey(name: r'nbPages')
final int nbPages;
final int? nbPages;

/// Number of hits per page.
// minimum: 1
// maximum: 1000
@JsonKey(name: r'hitsPerPage')
final int hitsPerPage;
final int? hitsPerPage;

/// Search results (hits). Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting.
@JsonKey(name: r'hits')
Expand Down
16 changes: 8 additions & 8 deletions packages/algoliasearch/lib/src/model/search_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ final class RecommendationsResults {
this.userData,
this.queryID,
this.automaticInsights,
required this.page,
required this.nbHits,
required this.nbPages,
required this.hitsPerPage,
this.page,
this.nbHits,
this.nbPages,
this.hitsPerPage,
required this.hits,
});

Expand Down Expand Up @@ -149,21 +149,21 @@ final class RecommendationsResults {
/// Page of search results to retrieve.
// minimum: 0
@JsonKey(name: r'page')
final int page;
final int? page;

/// Number of results (hits).
@JsonKey(name: r'nbHits')
final int nbHits;
final int? nbHits;

/// Number of pages of results.
@JsonKey(name: r'nbPages')
final int nbPages;
final int? nbPages;

/// Number of hits per page.
// minimum: 1
// maximum: 1000
@JsonKey(name: r'hitsPerPage')
final int hitsPerPage;
final int? hitsPerPage;

/// One of types:
/// - [RecommendHit]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions packages/client_recommend/lib/src/model/search_pagination.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,30 @@ part 'search_pagination.g.dart';
final class SearchPagination {
/// Returns a new [SearchPagination] instance.
const SearchPagination({
required this.page,
required this.nbHits,
required this.nbPages,
required this.hitsPerPage,
this.page,
this.nbHits,
this.nbPages,
this.hitsPerPage,
});

/// Page of search results to retrieve.
// minimum: 0
@JsonKey(name: r'page')
final int page;
final int? page;

/// Number of results (hits).
@JsonKey(name: r'nbHits')
final int nbHits;
final int? nbHits;

/// Number of pages of results.
@JsonKey(name: r'nbPages')
final int nbPages;
final int? nbPages;

/// Number of hits per page.
// minimum: 1
// maximum: 1000
@JsonKey(name: r'hitsPerPage')
final int hitsPerPage;
final int? hitsPerPage;

@override
bool operator ==(Object other) =>
Expand Down
30 changes: 19 additions & 11 deletions packages/client_recommend/lib/src/model/search_pagination.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a8f8480

Please sign in to comment.