Skip to content

Commit

Permalink
chore: generated code for commit 280228b. [skip ci]
Browse files Browse the repository at this point in the history
Co-authored-by: Mouaad Aallam <mouaad.aallam@algolia.com>
  • Loading branch information
algolia-bot and aallam committed Aug 1, 2023
1 parent 280228b commit d8adcf0
Show file tree
Hide file tree
Showing 693 changed files with 34,860 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ final class SearchClient implements ApiClient {
/// This method allow you to send requests to the Algolia REST API.
///
/// Parameters:
/// * [path] - Path of the endpoint, anything after \"/1\" must be specified.
/// * [parameters] - Query parameters to apply to the current query.
/// * [body] - Parameters to send with the custom request.
/// * [path] Path of the endpoint, anything after \"/1\" must be specified.
/// * [parameters] Query parameters to apply to the current query.
/// * [body] Parameters to send with the custom request.
/// * [requestOptions] additional request configuration.
Future<Object> post({
required String path,
Expand Down Expand Up @@ -85,7 +85,7 @@ final class SearchClient implements ApiClient {
/// Send multiple search queries to one or more indices.
///
/// Parameters:
/// * [searchMethodParams] - Query requests and strategies. Results will be received in the same order as the queries.
/// * [searchMethodParams] Query requests and strategies. Results will be received in the same order as the queries.
/// * [requestOptions] additional request configuration.
Future<SearchResponses> search({
required SearchMethodParams searchMethodParams,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import 'package:algoliasearch/src/model/acl.dart';
import 'package:algoliasearch/src/model/action.dart';
import 'package:algoliasearch/src/model/add_api_key_response.dart';
import 'package:algoliasearch/src/model/advanced_syntax_features.dart';
import 'package:algoliasearch/src/model/alternatives_as_exact.dart';
import 'package:algoliasearch/src/model/anchoring.dart';
import 'package:algoliasearch/src/model/api_key.dart';
import 'package:algoliasearch/src/model/around_radius_all.dart';
import 'package:algoliasearch/src/model/automatic_facet_filter.dart';
import 'package:algoliasearch/src/model/base_get_api_key_response.dart';
import 'package:algoliasearch/src/model/base_index_settings.dart';
Expand All @@ -10,17 +16,23 @@ import 'package:algoliasearch/src/model/base_search_response_redirect.dart';
import 'package:algoliasearch/src/model/browse_params_object.dart';
import 'package:algoliasearch/src/model/browse_response.dart';
import 'package:algoliasearch/src/model/built_in_operation.dart';
import 'package:algoliasearch/src/model/built_in_operation_type.dart';
import 'package:algoliasearch/src/model/condition.dart';
import 'package:algoliasearch/src/model/consequence.dart';
import 'package:algoliasearch/src/model/consequence_hide.dart';
import 'package:algoliasearch/src/model/consequence_params.dart';
import 'package:algoliasearch/src/model/consequence_query_object.dart';
import 'package:algoliasearch/src/model/cursor.dart';
import 'package:algoliasearch/src/model/delete_by_params.dart';
import 'package:algoliasearch/src/model/dictionary_action.dart';
import 'package:algoliasearch/src/model/dictionary_entry.dart';
import 'package:algoliasearch/src/model/dictionary_entry_state.dart';
import 'package:algoliasearch/src/model/dictionary_language.dart';
import 'package:algoliasearch/src/model/dictionary_type.dart';
import 'package:algoliasearch/src/model/edit.dart';
import 'package:algoliasearch/src/model/edit_type.dart';
import 'package:algoliasearch/src/model/error_base.dart';
import 'package:algoliasearch/src/model/exact_on_single_word_query.dart';
import 'package:algoliasearch/src/model/facet_hits.dart';
import 'package:algoliasearch/src/model/facet_ordering.dart';
import 'package:algoliasearch/src/model/facets.dart';
Expand All @@ -34,16 +46,23 @@ import 'package:algoliasearch/src/model/index_settings_as_search_params.dart';
import 'package:algoliasearch/src/model/index_settings_as_search_params_semantic_search.dart';
import 'package:algoliasearch/src/model/languages.dart';
import 'package:algoliasearch/src/model/list_indices_response.dart';
import 'package:algoliasearch/src/model/log_type.dart';
import 'package:algoliasearch/src/model/match_level.dart';
import 'package:algoliasearch/src/model/matched_geo_location.dart';
import 'package:algoliasearch/src/model/mode.dart';
import 'package:algoliasearch/src/model/operation_type.dart';
import 'package:algoliasearch/src/model/params.dart';
import 'package:algoliasearch/src/model/personalization.dart';
import 'package:algoliasearch/src/model/promote_object_id.dart';
import 'package:algoliasearch/src/model/promote_object_ids.dart';
import 'package:algoliasearch/src/model/query_type.dart';
import 'package:algoliasearch/src/model/ranking_info.dart';
import 'package:algoliasearch/src/model/redirect_rule_index_metadata.dart';
import 'package:algoliasearch/src/model/redirect_rule_index_metadata_data.dart';
import 'package:algoliasearch/src/model/remove_words_if_no_results.dart';
import 'package:algoliasearch/src/model/rendering_content.dart';
import 'package:algoliasearch/src/model/rule.dart';
import 'package:algoliasearch/src/model/scope_type.dart';
import 'package:algoliasearch/src/model/search_for_facet_values_response.dart';
import 'package:algoliasearch/src/model/search_for_facets.dart';
import 'package:algoliasearch/src/model/search_for_facets_options.dart';
Expand All @@ -56,12 +75,19 @@ import 'package:algoliasearch/src/model/search_params_query.dart';
import 'package:algoliasearch/src/model/search_params_string.dart';
import 'package:algoliasearch/src/model/search_response.dart';
import 'package:algoliasearch/src/model/search_responses.dart';
import 'package:algoliasearch/src/model/search_strategy.dart';
import 'package:algoliasearch/src/model/search_synonyms_response.dart';
import 'package:algoliasearch/src/model/search_type_default.dart';
import 'package:algoliasearch/src/model/search_type_facet.dart';
import 'package:algoliasearch/src/model/snippet_result_option.dart';
import 'package:algoliasearch/src/model/sort_remaining_by.dart';
import 'package:algoliasearch/src/model/source.dart';
import 'package:algoliasearch/src/model/standard_entries.dart';
import 'package:algoliasearch/src/model/synonym_hit.dart';
import 'package:algoliasearch/src/model/synonym_type.dart';
import 'package:algoliasearch/src/model/task_status.dart';
import 'package:algoliasearch/src/model/time_range.dart';
import 'package:algoliasearch/src/model/typo_tolerance_enum.dart';
import 'package:algoliasearch/src/model/updated_rule_response.dart';
import 'package:algoliasearch/src/model/user_id.dart';
import 'package:algoliasearch/src/model/value.dart';
Expand All @@ -86,16 +112,22 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
case 'double':
return (value is double ? value : double.parse('$value')) as ReturnType;
case 'Acl':
return Acl.fromJson(value) as ReturnType;
case 'Action':
return Action.fromJson(value) as ReturnType;
case 'AddApiKeyResponse':
return AddApiKeyResponse.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'AdvancedSyntaxFeatures':
return AdvancedSyntaxFeatures.fromJson(value) as ReturnType;
case 'AlternativesAsExact':
return AlternativesAsExact.fromJson(value) as ReturnType;
case 'Anchoring':
return Anchoring.fromJson(value) as ReturnType;
case 'ApiKey':
return ApiKey.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'AroundRadiusAll':
return AroundRadiusAll.fromJson(value) as ReturnType;
case 'AutomaticFacetFilter':
return AutomaticFacetFilter.fromJson(value as Map<String, dynamic>)
as ReturnType;
Expand Down Expand Up @@ -127,6 +159,7 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
return BuiltInOperation.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'BuiltInOperationType':
return BuiltInOperationType.fromJson(value) as ReturnType;
case 'Condition':
return Condition.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'Consequence':
Expand All @@ -146,20 +179,25 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
return DeleteByParams.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'DictionaryAction':
return DictionaryAction.fromJson(value) as ReturnType;
case 'DictionaryEntry':
return DictionaryEntry.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'DictionaryEntryState':
return DictionaryEntryState.fromJson(value) as ReturnType;
case 'DictionaryLanguage':
return DictionaryLanguage.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'DictionaryType':
return DictionaryType.fromJson(value) as ReturnType;
case 'Edit':
return Edit.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'EditType':
return EditType.fromJson(value) as ReturnType;
case 'ErrorBase':
return ErrorBase.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'ExactOnSingleWordQuery':
return ExactOnSingleWordQuery.fromJson(value) as ReturnType;
case 'FacetHits':
return FacetHits.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'FacetOrdering':
Expand Down Expand Up @@ -194,12 +232,16 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
return ListIndicesResponse.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'LogType':
return LogType.fromJson(value) as ReturnType;
case 'MatchLevel':
return MatchLevel.fromJson(value) as ReturnType;
case 'MatchedGeoLocation':
return MatchedGeoLocation.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'Mode':
return Mode.fromJson(value) as ReturnType;
case 'OperationType':
return OperationType.fromJson(value) as ReturnType;
case 'Params':
return Params.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'Personalization':
Expand All @@ -212,6 +254,7 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
return PromoteObjectIDs.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'QueryType':
return QueryType.fromJson(value) as ReturnType;
case 'RankingInfo':
return RankingInfo.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'RedirectRuleIndexMetadata':
Expand All @@ -221,12 +264,14 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
return RedirectRuleIndexMetadataData.fromJson(
value as Map<String, dynamic>) as ReturnType;
case 'RemoveWordsIfNoResults':
return RemoveWordsIfNoResults.fromJson(value) as ReturnType;
case 'RenderingContent':
return RenderingContent.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'Rule':
return Rule.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'ScopeType':
return ScopeType.fromJson(value) as ReturnType;
case 'SearchForFacetValuesResponse':
return SearchForFacetValuesResponse.fromJson(
value as Map<String, dynamic>) as ReturnType;
Expand Down Expand Up @@ -263,15 +308,19 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
return SearchResponses.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'SearchStrategy':
return SearchStrategy.fromJson(value) as ReturnType;
case 'SearchSynonymsResponse':
return SearchSynonymsResponse.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'SearchTypeDefault':
return SearchTypeDefault.fromJson(value) as ReturnType;
case 'SearchTypeFacet':
return SearchTypeFacet.fromJson(value) as ReturnType;
case 'SnippetResultOption':
return SnippetResultOption.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'SortRemainingBy':
return SortRemainingBy.fromJson(value) as ReturnType;
case 'Source':
return Source.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'StandardEntries':
Expand All @@ -280,10 +329,13 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
case 'SynonymHit':
return SynonymHit.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'SynonymType':
return SynonymType.fromJson(value) as ReturnType;
case 'TaskStatus':
return TaskStatus.fromJson(value) as ReturnType;
case 'TimeRange':
return TimeRange.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'TypoToleranceEnum':
return TypoToleranceEnum.fromJson(value) as ReturnType;
case 'UpdatedRuleResponse':
return UpdatedRuleResponse.fromJson(value as Map<String, dynamic>)
as ReturnType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ enum Acl {

dynamic toJson() => raw;

static Acl fromJson(dynamic json) {
for (final value in values) {
if (value.raw == json) return value;
}
throw ArgumentError.value(json, "raw", "No enum value with that value");
}

@override
String toString() => raw.toString();
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ enum Action {

dynamic toJson() => raw;

static Action fromJson(dynamic json) {
for (final value in values) {
if (value.raw == json) return value;
}
throw ArgumentError.value(json, "raw", "No enum value with that value");
}

@override
String toString() => raw.toString();
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ enum AdvancedSyntaxFeatures {

dynamic toJson() => raw;

static AdvancedSyntaxFeatures fromJson(dynamic json) {
for (final value in values) {
if (value.raw == json) return value;
}
throw ArgumentError.value(json, "raw", "No enum value with that value");
}

@override
String toString() => raw.toString();
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ enum AlternativesAsExact {

dynamic toJson() => raw;

static AlternativesAsExact fromJson(dynamic json) {
for (final value in values) {
if (value.raw == json) return value;
}
throw ArgumentError.value(json, "raw", "No enum value with that value");
}

@override
String toString() => raw.toString();
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ enum Anchoring {

dynamic toJson() => raw;

static Anchoring fromJson(dynamic json) {
for (final value in values) {
if (value.raw == json) return value;
}
throw ArgumentError.value(json, "raw", "No enum value with that value");
}

@override
String toString() => raw.toString();
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ enum AroundRadiusAll {

dynamic toJson() => raw;

static AroundRadiusAll fromJson(dynamic json) {
for (final value in values) {
if (value.raw == json) return value;
}
throw ArgumentError.value(json, "raw", "No enum value with that value");
}

@override
String toString() => raw.toString();
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,31 @@ final class BaseSearchParams {
@JsonKey(name: r'filters')
final String? filters;

/// One of types:
/// - [List<List<String>>]
/// - [String]
/// - [List<String>]
@JsonKey(name: r'facetFilters')
final dynamic facetFilters;

/// One of types:
/// - [List<List<String>>]
/// - [String]
/// - [List<String>]
@JsonKey(name: r'optionalFilters')
final dynamic optionalFilters;

/// One of types:
/// - [List<List<String>>]
/// - [String]
/// - [List<String>]
@JsonKey(name: r'numericFilters')
final dynamic numericFilters;

/// One of types:
/// - [List<List<String>>]
/// - [String]
/// - [List<String>]
@JsonKey(name: r'tagFilters')
final dynamic tagFilters;

Expand Down Expand Up @@ -111,6 +127,9 @@ final class BaseSearchParams {
@JsonKey(name: r'aroundLatLngViaIP')
final bool? aroundLatLngViaIP;

/// One of types:
/// - [AroundRadiusAll]
/// - [int]
@JsonKey(name: r'aroundRadius')
final dynamic aroundRadius;

Expand Down Expand Up @@ -175,6 +194,10 @@ final class BaseSearchParams {
@JsonKey(name: r'enableReRanking')
final bool? enableReRanking;

/// One of types:
/// - [List<List<String>>]
/// - [String]
/// - [List<String>]
@JsonKey(name: r'reRankingApplyFilter')
final dynamic reRankingApplyFilter;

Expand Down
Loading

0 comments on commit d8adcf0

Please sign in to comment.