Skip to content

Commit

Permalink
chore: generated code for commit 756f19a. [skip ci]
Browse files Browse the repository at this point in the history
Co-authored-by: Clément Denoix <flydesigned@gmail.com>
  • Loading branch information
algolia-bot and clemfromspace committed Oct 2, 2023
1 parent 756f19a commit 86d5931
Show file tree
Hide file tree
Showing 97 changed files with 299 additions and 1,346 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ final class BaseIndexSettings {
this.searchableAttributes,
this.userData,
this.customNormalization,
this.attributeForDistinct,
});

/// Creates [replicas](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/), which are copies of a primary index with the same records but different settings.
Expand Down Expand Up @@ -86,6 +87,10 @@ final class BaseIndexSettings {
@JsonKey(name: r'customNormalization')
final Map<String, Map<String, String>>? customNormalization;

/// Name of the deduplication attribute to be used with Algolia's [_distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).
@JsonKey(name: r'attributeForDistinct')
final String? attributeForDistinct;

@override
bool operator ==(Object other) =>
identical(this, other) ||
Expand All @@ -106,7 +111,8 @@ final class BaseIndexSettings {
other.separatorsToIndex == separatorsToIndex &&
other.searchableAttributes == searchableAttributes &&
other.userData == userData &&
other.customNormalization == customNormalization;
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct;

@override
int get hashCode =>
Expand All @@ -124,7 +130,8 @@ final class BaseIndexSettings {
separatorsToIndex.hashCode +
searchableAttributes.hashCode +
(userData == null ? 0 : userData.hashCode) +
customNormalization.hashCode;
customNormalization.hashCode +
attributeForDistinct.hashCode;

factory BaseIndexSettings.fromJson(Map<String, dynamic> json) =>
_$BaseIndexSettingsFromJson(json);
Expand Down

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 @@ -85,7 +85,6 @@ final class BrowseParamsObject {
this.alternativesAsExact,
this.advancedSyntaxFeatures,
this.distinct,
this.attributeForDistinct,
this.replaceSynonymsInHighlight,
this.minProximity,
this.responseFields,
Expand Down Expand Up @@ -395,10 +394,6 @@ final class BrowseParamsObject {
@JsonKey(name: r'distinct')
final dynamic distinct;

/// Name of the deduplication attribute to be used with Algolia's [_distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).
@JsonKey(name: r'attributeForDistinct')
final String? attributeForDistinct;

/// Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
@JsonKey(name: r'replaceSynonymsInHighlight')
final bool? replaceSynonymsInHighlight;
Expand Down Expand Up @@ -522,7 +517,6 @@ final class BrowseParamsObject {
other.alternativesAsExact == alternativesAsExact &&
other.advancedSyntaxFeatures == advancedSyntaxFeatures &&
other.distinct == distinct &&
other.attributeForDistinct == attributeForDistinct &&
other.replaceSynonymsInHighlight == replaceSynonymsInHighlight &&
other.minProximity == minProximity &&
other.responseFields == responseFields &&
Expand Down Expand Up @@ -606,7 +600,6 @@ final class BrowseParamsObject {
alternativesAsExact.hashCode +
advancedSyntaxFeatures.hashCode +
distinct.hashCode +
attributeForDistinct.hashCode +
replaceSynonymsInHighlight.hashCode +
minProximity.hashCode +
responseFields.hashCode +
Expand Down

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 @@ -84,7 +84,6 @@ final class ConsequenceParams {
this.alternativesAsExact,
this.advancedSyntaxFeatures,
this.distinct,
this.attributeForDistinct,
this.replaceSynonymsInHighlight,
this.minProximity,
this.responseFields,
Expand Down Expand Up @@ -392,10 +391,6 @@ final class ConsequenceParams {
@JsonKey(name: r'distinct')
final dynamic distinct;

/// Name of the deduplication attribute to be used with Algolia's [_distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).
@JsonKey(name: r'attributeForDistinct')
final String? attributeForDistinct;

/// Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
@JsonKey(name: r'replaceSynonymsInHighlight')
final bool? replaceSynonymsInHighlight;
Expand Down Expand Up @@ -532,7 +527,6 @@ final class ConsequenceParams {
other.alternativesAsExact == alternativesAsExact &&
other.advancedSyntaxFeatures == advancedSyntaxFeatures &&
other.distinct == distinct &&
other.attributeForDistinct == attributeForDistinct &&
other.replaceSynonymsInHighlight == replaceSynonymsInHighlight &&
other.minProximity == minProximity &&
other.responseFields == responseFields &&
Expand Down Expand Up @@ -617,7 +611,6 @@ final class ConsequenceParams {
alternativesAsExact.hashCode +
advancedSyntaxFeatures.hashCode +
distinct.hashCode +
attributeForDistinct.hashCode +
replaceSynonymsInHighlight.hashCode +
minProximity.hashCode +
responseFields.hashCode +
Expand Down

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 @@ -32,6 +32,7 @@ final class IndexSettings {
this.searchableAttributes,
this.userData,
this.customNormalization,
this.attributeForDistinct,
this.attributesForFaceting,
this.attributesToRetrieve,
this.ranking,
Expand Down Expand Up @@ -67,7 +68,6 @@ final class IndexSettings {
this.alternativesAsExact,
this.advancedSyntaxFeatures,
this.distinct,
this.attributeForDistinct,
this.replaceSynonymsInHighlight,
this.minProximity,
this.responseFields,
Expand Down Expand Up @@ -140,6 +140,10 @@ final class IndexSettings {
@JsonKey(name: r'customNormalization')
final Map<String, Map<String, String>>? customNormalization;

/// Name of the deduplication attribute to be used with Algolia's [_distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).
@JsonKey(name: r'attributeForDistinct')
final String? attributeForDistinct;

/// Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/) and the [modifiers](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) that can be applied: `filterOnly`, `searchable`, and `afterDistinct`.
@JsonKey(name: r'attributesForFaceting')
final List<String>? attributesForFaceting;
Expand Down Expand Up @@ -285,10 +289,6 @@ final class IndexSettings {
@JsonKey(name: r'distinct')
final dynamic distinct;

/// Name of the deduplication attribute to be used with Algolia's [_distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).
@JsonKey(name: r'attributeForDistinct')
final String? attributeForDistinct;

/// Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
@JsonKey(name: r'replaceSynonymsInHighlight')
final bool? replaceSynonymsInHighlight;
Expand Down Expand Up @@ -355,6 +355,7 @@ final class IndexSettings {
other.searchableAttributes == searchableAttributes &&
other.userData == userData &&
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
other.attributesForFaceting == attributesForFaceting &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
Expand Down Expand Up @@ -392,7 +393,6 @@ final class IndexSettings {
other.alternativesAsExact == alternativesAsExact &&
other.advancedSyntaxFeatures == advancedSyntaxFeatures &&
other.distinct == distinct &&
other.attributeForDistinct == attributeForDistinct &&
other.replaceSynonymsInHighlight == replaceSynonymsInHighlight &&
other.minProximity == minProximity &&
other.responseFields == responseFields &&
Expand Down Expand Up @@ -422,6 +422,7 @@ final class IndexSettings {
searchableAttributes.hashCode +
(userData == null ? 0 : userData.hashCode) +
customNormalization.hashCode +
attributeForDistinct.hashCode +
attributesForFaceting.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
Expand Down Expand Up @@ -457,7 +458,6 @@ final class IndexSettings {
alternativesAsExact.hashCode +
advancedSyntaxFeatures.hashCode +
distinct.hashCode +
attributeForDistinct.hashCode +
replaceSynonymsInHighlight.hashCode +
minProximity.hashCode +
responseFields.hashCode +
Expand Down

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 @@ -52,7 +52,6 @@ final class IndexSettingsAsSearchParams {
this.alternativesAsExact,
this.advancedSyntaxFeatures,
this.distinct,
this.attributeForDistinct,
this.replaceSynonymsInHighlight,
this.minProximity,
this.responseFields,
Expand Down Expand Up @@ -210,10 +209,6 @@ final class IndexSettingsAsSearchParams {
@JsonKey(name: r'distinct')
final dynamic distinct;

/// Name of the deduplication attribute to be used with Algolia's [_distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).
@JsonKey(name: r'attributeForDistinct')
final String? attributeForDistinct;

/// Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
@JsonKey(name: r'replaceSynonymsInHighlight')
final bool? replaceSynonymsInHighlight;
Expand Down Expand Up @@ -300,7 +295,6 @@ final class IndexSettingsAsSearchParams {
other.alternativesAsExact == alternativesAsExact &&
other.advancedSyntaxFeatures == advancedSyntaxFeatures &&
other.distinct == distinct &&
other.attributeForDistinct == attributeForDistinct &&
other.replaceSynonymsInHighlight == replaceSynonymsInHighlight &&
other.minProximity == minProximity &&
other.responseFields == responseFields &&
Expand Down Expand Up @@ -350,7 +344,6 @@ final class IndexSettingsAsSearchParams {
alternativesAsExact.hashCode +
advancedSyntaxFeatures.hashCode +
distinct.hashCode +
attributeForDistinct.hashCode +
replaceSynonymsInHighlight.hashCode +
minProximity.hashCode +
responseFields.hashCode +
Expand Down

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 @@ -87,7 +87,6 @@ final class SearchForFacets {
this.alternativesAsExact,
this.advancedSyntaxFeatures,
this.distinct,
this.attributeForDistinct,
this.replaceSynonymsInHighlight,
this.minProximity,
this.responseFields,
Expand Down Expand Up @@ -404,10 +403,6 @@ final class SearchForFacets {
@JsonKey(name: r'distinct')
final dynamic distinct;

/// Name of the deduplication attribute to be used with Algolia's [_distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).
@JsonKey(name: r'attributeForDistinct')
final String? attributeForDistinct;

/// Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
@JsonKey(name: r'replaceSynonymsInHighlight')
final bool? replaceSynonymsInHighlight;
Expand Down Expand Up @@ -543,7 +538,6 @@ final class SearchForFacets {
other.alternativesAsExact == alternativesAsExact &&
other.advancedSyntaxFeatures == advancedSyntaxFeatures &&
other.distinct == distinct &&
other.attributeForDistinct == attributeForDistinct &&
other.replaceSynonymsInHighlight == replaceSynonymsInHighlight &&
other.minProximity == minProximity &&
other.responseFields == responseFields &&
Expand Down Expand Up @@ -631,7 +625,6 @@ final class SearchForFacets {
alternativesAsExact.hashCode +
advancedSyntaxFeatures.hashCode +
distinct.hashCode +
attributeForDistinct.hashCode +
replaceSynonymsInHighlight.hashCode +
minProximity.hashCode +
responseFields.hashCode +
Expand Down

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

Loading

0 comments on commit 86d5931

Please sign in to comment.