-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: generated code for commit 2ac508f. [skip ci]
Co-authored-by: Mouaad Aallam <mouaad.aallam@algolia.com>
- Loading branch information
1 parent
2ac508f
commit 5494994
Showing
75 changed files
with
2,850 additions
and
2,769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/facet_hits.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
// ignore_for_file: unused_element | ||
|
||
import 'package:json_annotation/json_annotation.dart'; | ||
|
||
part 'facet_hits.g.dart'; | ||
|
||
@JsonSerializable() | ||
final class FacetHits { | ||
/// Returns a new [FacetHits] instance. | ||
const FacetHits({ | ||
required this.value, | ||
required this.highlighted, | ||
required this.count, | ||
}); | ||
|
||
/// Facet value. | ||
@JsonKey(name: r'value') | ||
final String value; | ||
|
||
/// Markup text with `facetQuery` matches highlighted. | ||
@JsonKey(name: r'highlighted') | ||
final String highlighted; | ||
|
||
/// Number of records containing this facet value. This takes into account the extra search parameters specified in the query. Like for a regular search query, the [counts may not be exhaustive](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-). | ||
@JsonKey(name: r'count') | ||
final int count; | ||
|
||
@override | ||
bool operator ==(Object other) => | ||
identical(this, other) || | ||
other is FacetHits && | ||
other.value == value && | ||
other.highlighted == highlighted && | ||
other.count == count; | ||
|
||
@override | ||
int get hashCode => value.hashCode + highlighted.hashCode + count.hashCode; | ||
|
||
factory FacetHits.fromJson(Map<String, dynamic> json) => | ||
_$FacetHitsFromJson(json); | ||
|
||
Map<String, dynamic> toJson() => _$FacetHitsToJson(this); | ||
|
||
@override | ||
String toString() { | ||
return toJson().toString(); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/facet_hits.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
...ch-client-dart/packages/algoliasearch/lib/src/model/search_for_facet_values_response.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
// ignore_for_file: unused_element | ||
import 'package:algoliasearch/src/model/facet_hits.dart'; | ||
|
||
import 'package:json_annotation/json_annotation.dart'; | ||
|
||
part 'search_for_facet_values_response.g.dart'; | ||
|
||
@JsonSerializable() | ||
final class SearchForFacetValuesResponse { | ||
/// Returns a new [SearchForFacetValuesResponse] instance. | ||
const SearchForFacetValuesResponse({ | ||
required this.facetHits, | ||
}); | ||
|
||
@JsonKey(name: r'facetHits') | ||
final List<FacetHits> facetHits; | ||
|
||
@override | ||
bool operator ==(Object other) => | ||
identical(this, other) || | ||
other is SearchForFacetValuesResponse && other.facetHits == facetHits; | ||
|
||
@override | ||
int get hashCode => facetHits.hashCode; | ||
|
||
factory SearchForFacetValuesResponse.fromJson(Map<String, dynamic> json) => | ||
_$SearchForFacetValuesResponseFromJson(json); | ||
|
||
Map<String, dynamic> toJson() => _$SearchForFacetValuesResponseToJson(this); | ||
|
||
@override | ||
String toString() { | ||
return toJson().toString(); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...-client-dart/packages/algoliasearch/lib/src/model/search_for_facet_values_response.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
...ts/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_responses.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
...ts/algoliasearch-client-dart/packages/client_search/lib/src/model/search_responses.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
clients/algoliasearch-client-go/algolia/search/model_search_responses.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.