@algolia/recommend 5.0.0-alpha.11 → 5.0.0-alpha.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builds/browser.d.ts +23 -5
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +23 -5
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/model/advancedSyntaxFeatures.d.ts +1 -1
- package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -1
- package/dist/model/alternativesAsExact.d.ts +1 -1
- package/dist/model/alternativesAsExact.d.ts.map +1 -1
- package/dist/model/aroundPrecision.d.ts +6 -0
- package/dist/model/aroundPrecision.d.ts.map +1 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts +14 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
- package/dist/model/aroundRadius.d.ts +5 -5
- package/dist/model/aroundRadius.d.ts.map +1 -1
- package/dist/model/aroundRadiusAll.d.ts +4 -1
- package/dist/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/model/autoFacetFilter.d.ts +14 -0
- package/dist/model/autoFacetFilter.d.ts.map +1 -0
- package/dist/model/baseRecommendRequest.d.ts +16 -17
- package/dist/model/baseRecommendRequest.d.ts.map +1 -1
- package/dist/model/baseSearchParams.d.ts +3 -3
- package/dist/model/baseSearchParams.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +114 -122
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +109 -101
- package/dist/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/model/boughtTogetherQuery.d.ts +4 -0
- package/dist/model/boughtTogetherQuery.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +127 -60
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/condition.d.ts +14 -0
- package/dist/model/condition.d.ts.map +1 -0
- package/dist/model/consequence.d.ts +18 -0
- package/dist/model/consequence.d.ts.map +1 -0
- package/dist/model/deletedAtResponse.d.ts +14 -0
- package/dist/model/deletedAtResponse.d.ts.map +1 -0
- package/dist/model/distinct.d.ts +4 -4
- package/dist/model/distinct.d.ts.map +1 -1
- package/dist/model/errorBase.d.ts +6 -6
- package/dist/model/errorBase.d.ts.map +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
- package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
- package/dist/model/exhaustive.d.ts +26 -0
- package/dist/model/exhaustive.d.ts.map +1 -0
- package/dist/model/facetFilters.d.ts +5 -5
- package/dist/model/facetFilters.d.ts.map +1 -1
- package/dist/model/facetOrdering.d.ts +12 -12
- package/dist/model/facetOrdering.d.ts.map +1 -1
- package/dist/model/facets.d.ts +9 -9
- package/dist/model/facets.d.ts.map +1 -1
- package/dist/model/facetsStats.d.ts +18 -18
- package/dist/model/facetsStats.d.ts.map +1 -1
- package/dist/model/fallbackParams.d.ts +3 -0
- package/dist/model/fallbackParams.d.ts.map +1 -0
- package/dist/model/fbtModel.d.ts +5 -0
- package/dist/model/fbtModel.d.ts.map +1 -0
- package/dist/model/frequentlyBoughtTogether.d.ts +9 -0
- package/dist/model/frequentlyBoughtTogether.d.ts.map +1 -0
- package/dist/model/getRecommendTaskResponse.d.ts +5 -0
- package/dist/model/getRecommendTaskResponse.d.ts.map +1 -0
- package/dist/model/getRecommendationsParams.d.ts +10 -10
- package/dist/model/getRecommendationsParams.d.ts.map +1 -1
- package/dist/model/getRecommendationsResponse.d.ts +4 -4
- package/dist/model/getRecommendationsResponse.d.ts.map +1 -1
- package/dist/model/hideConsequenceObject.d.ts +10 -0
- package/dist/model/hideConsequenceObject.d.ts.map +1 -0
- package/dist/model/highlightResult.d.ts +2 -2
- package/dist/model/highlightResult.d.ts.map +1 -1
- package/dist/model/highlightResultOption.d.ts +19 -19
- package/dist/model/highlightResultOption.d.ts.map +1 -1
- package/dist/model/ignorePlurals.d.ts +5 -4
- package/dist/model/ignorePlurals.d.ts.map +1 -1
- package/dist/model/index.d.ts +92 -53
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +159 -160
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/model/lookingSimilar.d.ts +11 -0
- package/dist/model/lookingSimilar.d.ts.map +1 -0
- package/dist/model/lookingSimilarModel.d.ts +5 -0
- package/dist/model/lookingSimilarModel.d.ts.map +1 -0
- package/dist/model/lookingSimilarQuery.d.ts +4 -0
- package/dist/model/lookingSimilarQuery.d.ts.map +1 -0
- package/dist/model/matchLevel.d.ts +4 -4
- package/dist/model/matchLevel.d.ts.map +1 -1
- package/dist/model/matchedGeoLocation.d.ts +14 -14
- package/dist/model/matchedGeoLocation.d.ts.map +1 -1
- package/dist/model/mixedSearchFilters.d.ts +1 -1
- package/dist/model/mixedSearchFilters.d.ts.map +1 -1
- package/dist/model/mode.d.ts +5 -0
- package/dist/model/mode.d.ts.map +1 -0
- package/dist/model/numericFilters.d.ts +5 -5
- package/dist/model/numericFilters.d.ts.map +1 -1
- package/dist/model/optionalFilters.d.ts +5 -5
- package/dist/model/optionalFilters.d.ts.map +1 -1
- package/dist/model/paramsConsequence.d.ts +19 -0
- package/dist/model/paramsConsequence.d.ts.map +1 -0
- package/dist/model/personalization.d.ts +14 -14
- package/dist/model/personalization.d.ts.map +1 -1
- package/dist/model/promoteConsequenceObject.d.ts +14 -0
- package/dist/model/promoteConsequenceObject.d.ts.map +1 -0
- package/dist/model/queryType.d.ts +4 -4
- package/dist/model/queryType.d.ts.map +1 -1
- package/dist/model/rankingInfo.d.ts +53 -50
- package/dist/model/rankingInfo.d.ts.map +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +5 -5
- package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
- package/dist/model/recommendHit.d.ts +26 -26
- package/dist/model/recommendHit.d.ts.map +1 -1
- package/dist/model/recommendModels.d.ts +2 -0
- package/dist/model/recommendModels.d.ts.map +1 -0
- package/dist/model/recommendRule.d.ts +24 -0
- package/dist/model/recommendRule.d.ts.map +1 -0
- package/dist/model/recommendRuleMetadata.d.ts +10 -0
- package/dist/model/recommendRuleMetadata.d.ts.map +1 -0
- package/dist/model/recommendationsHit.d.ts +4 -0
- package/dist/model/recommendationsHit.d.ts.map +1 -0
- package/dist/model/recommendationsHits.d.ts +5 -0
- package/dist/model/recommendationsHits.d.ts.map +1 -0
- package/dist/model/recommendationsRequest.d.ts +7 -3
- package/dist/model/recommendationsRequest.d.ts.map +1 -1
- package/dist/model/recommendationsResults.d.ts +4 -0
- package/dist/model/recommendationsResults.d.ts.map +1 -0
- package/dist/model/recommendedForYou.d.ts +7 -0
- package/dist/model/recommendedForYou.d.ts.map +1 -0
- package/dist/model/recommendedForYouModel.d.ts +5 -0
- package/dist/model/recommendedForYouModel.d.ts.map +1 -0
- package/dist/model/recommendedForYouQuery.d.ts +4 -0
- package/dist/model/recommendedForYouQuery.d.ts.map +1 -0
- package/dist/model/redirect.d.ts +8 -0
- package/dist/model/redirect.d.ts.map +1 -0
- package/dist/model/redirectRuleIndexMetadata.d.ts +21 -0
- package/dist/model/redirectRuleIndexMetadata.d.ts.map +1 -0
- package/dist/model/redirectRuleIndexMetadataData.d.ts +7 -0
- package/dist/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
- package/dist/model/relatedModel.d.ts +5 -0
- package/dist/model/relatedModel.d.ts.map +1 -0
- package/dist/model/relatedProducts.d.ts +11 -0
- package/dist/model/relatedProducts.d.ts.map +1 -0
- package/dist/model/relatedQuery.d.ts +4 -0
- package/dist/model/relatedQuery.d.ts.map +1 -0
- package/dist/model/removeStopWords.d.ts +5 -4
- package/dist/model/removeStopWords.d.ts.map +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +4 -4
- package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
- package/dist/model/renderingContent.d.ts +7 -7
- package/dist/model/renderingContent.d.ts.map +1 -1
- package/dist/model/searchParams.d.ts +3 -0
- package/dist/model/searchParams.d.ts.map +1 -0
- package/dist/model/searchParamsObject.d.ts +3 -3
- package/dist/model/searchParamsObject.d.ts.map +1 -1
- package/dist/model/searchParamsQuery.d.ts +6 -6
- package/dist/model/searchParamsQuery.d.ts.map +1 -1
- package/dist/model/searchRecommendRulesParams.d.ts +38 -0
- package/dist/model/searchRecommendRulesParams.d.ts.map +1 -0
- package/dist/model/searchRecommendRulesResponse.d.ts +20 -0
- package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -0
- package/dist/model/semanticSearch.d.ts +10 -0
- package/dist/model/semanticSearch.d.ts.map +1 -0
- package/dist/model/snippetResult.d.ts +2 -2
- package/dist/model/snippetResult.d.ts.map +1 -1
- package/dist/model/snippetResultOption.d.ts +11 -11
- package/dist/model/snippetResultOption.d.ts.map +1 -1
- package/dist/model/sortRemainingBy.d.ts +4 -4
- package/dist/model/sortRemainingBy.d.ts.map +1 -1
- package/dist/model/supportedLanguage.d.ts +5 -0
- package/dist/model/supportedLanguage.d.ts.map +1 -0
- package/dist/model/tagFilters.d.ts +5 -5
- package/dist/model/tagFilters.d.ts.map +1 -1
- package/dist/model/taskStatus.d.ts +5 -0
- package/dist/model/taskStatus.d.ts.map +1 -0
- package/dist/model/trendingFacetHit.d.ts +18 -0
- package/dist/model/trendingFacetHit.d.ts.map +1 -0
- package/dist/model/trendingFacets.d.ts +11 -0
- package/dist/model/trendingFacets.d.ts.map +1 -0
- package/dist/model/trendingFacetsModel.d.ts +5 -0
- package/dist/model/trendingFacetsModel.d.ts.map +1 -0
- package/dist/model/trendingFacetsQuery.d.ts +4 -0
- package/dist/model/trendingFacetsQuery.d.ts.map +1 -0
- package/dist/model/trendingItems.d.ts +15 -0
- package/dist/model/trendingItems.d.ts.map +1 -0
- package/dist/model/trendingItemsModel.d.ts +5 -0
- package/dist/model/trendingItemsModel.d.ts.map +1 -0
- package/dist/model/trendingItemsQuery.d.ts +4 -0
- package/dist/model/trendingItemsQuery.d.ts.map +1 -0
- package/dist/model/typoTolerance.d.ts +5 -5
- package/dist/model/typoTolerance.d.ts.map +1 -1
- package/dist/model/typoToleranceEnum.d.ts +4 -1
- package/dist/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/model/value.d.ts +8 -8
- package/dist/model/value.d.ts.map +1 -1
- package/dist/recommend.cjs +390 -0
- package/dist/recommend.esm.browser.js +589 -475
- package/dist/recommend.esm.node.js +379 -235
- package/dist/recommend.umd.js +2 -2
- package/dist/src/recommendClient.d.ts +131 -81
- package/dist/src/recommendClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/model/advancedSyntaxFeatures.ts +1 -1
- package/model/alternativesAsExact.ts +1 -1
- package/model/aroundPrecision.ts +8 -0
- package/model/aroundPrecisionFromValueInner.ts +16 -0
- package/model/aroundRadius.ts +2 -2
- package/model/aroundRadiusAll.ts +4 -1
- package/model/autoFacetFilter.ts +16 -0
- package/model/baseRecommendRequest.ts +6 -8
- package/model/baseSearchParams.ts +1 -1
- package/model/baseSearchParamsWithoutQuery.ts +36 -46
- package/model/baseSearchResponse.ts +42 -31
- package/model/boughtTogetherQuery.ts +7 -0
- package/model/clientMethodProps.ts +91 -19
- package/model/condition.ts +16 -0
- package/model/consequence.ts +22 -0
- package/model/deletedAtResponse.ts +16 -0
- package/model/distinct.ts +2 -2
- package/model/errorBase.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +2 -2
- package/model/exhaustive.ts +31 -0
- package/model/facetFilters.ts +2 -2
- package/model/facetOrdering.ts +3 -3
- package/model/facets.ts +3 -3
- package/model/facetsStats.ts +5 -5
- package/model/fallbackParams.ts +5 -0
- package/model/fbtModel.ts +6 -0
- package/model/frequentlyBoughtTogether.ts +12 -0
- package/model/getRecommendTaskResponse.ts +7 -0
- package/model/getRecommendationsParams.ts +3 -3
- package/model/getRecommendationsResponse.ts +3 -3
- package/model/hideConsequenceObject.ts +11 -0
- package/model/highlightResult.ts +5 -2
- package/model/highlightResultOption.ts +4 -4
- package/model/ignorePlurals.ts +5 -3
- package/model/index.ts +48 -9
- package/model/indexSettingsAsSearchParams.ts +54 -54
- package/model/lookingSimilar.ts +15 -0
- package/model/lookingSimilarModel.ts +6 -0
- package/model/lookingSimilarQuery.ts +6 -0
- package/model/matchLevel.ts +2 -2
- package/model/matchedGeoLocation.ts +1 -1
- package/model/mixedSearchFilters.ts +1 -1
- package/model/mode.ts +6 -0
- package/model/numericFilters.ts +2 -2
- package/model/optionalFilters.ts +2 -2
- package/model/paramsConsequence.ts +23 -0
- package/model/personalization.ts +1 -1
- package/model/promoteConsequenceObject.ts +16 -0
- package/model/queryType.ts +2 -2
- package/model/rankingInfo.ts +11 -8
- package/model/reRankingApplyFilter.ts +2 -2
- package/model/recommendHit.ts +6 -6
- package/model/recommendModels.ts +7 -0
- package/model/recommendRule.ts +31 -0
- package/model/recommendRuleMetadata.ts +11 -0
- package/model/recommendationsHit.ts +6 -0
- package/model/recommendationsHits.ts +7 -0
- package/model/recommendationsRequest.ts +14 -4
- package/model/recommendationsResults.ts +6 -0
- package/model/recommendedForYou.ts +10 -0
- package/model/recommendedForYouModel.ts +6 -0
- package/model/recommendedForYouQuery.ts +6 -0
- package/model/redirect.ts +10 -0
- package/model/redirectRuleIndexMetadata.ts +27 -0
- package/model/redirectRuleIndexMetadataData.ts +8 -0
- package/model/relatedModel.ts +6 -0
- package/model/relatedProducts.ts +15 -0
- package/model/relatedQuery.ts +6 -0
- package/model/removeStopWords.ts +5 -3
- package/model/removeWordsIfNoResults.ts +2 -2
- package/model/renderingContent.ts +2 -2
- package/model/searchParams.ts +5 -0
- package/model/searchParamsObject.ts +1 -1
- package/model/searchParamsQuery.ts +2 -2
- package/model/searchRecommendRulesParams.ts +46 -0
- package/model/searchRecommendRulesResponse.ts +25 -0
- package/model/semanticSearch.ts +11 -0
- package/model/snippetResult.ts +5 -2
- package/model/snippetResultOption.ts +3 -3
- package/model/sortRemainingBy.ts +2 -2
- package/model/supportedLanguage.ts +74 -0
- package/model/tagFilters.ts +2 -2
- package/model/taskStatus.ts +6 -0
- package/model/trendingFacetHit.ts +21 -0
- package/model/trendingFacets.ts +15 -0
- package/model/trendingFacetsModel.ts +6 -0
- package/model/trendingFacetsQuery.ts +6 -0
- package/model/trendingItems.ts +20 -0
- package/model/trendingItemsModel.ts +6 -0
- package/model/trendingItemsQuery.ts +6 -0
- package/model/typoTolerance.ts +2 -2
- package/model/typoToleranceEnum.ts +4 -1
- package/model/value.ts +2 -2
- package/package.json +10 -9
- package/dist/model/baseRecommendationRequest.d.ts +0 -9
- package/dist/model/baseRecommendationRequest.d.ts.map +0 -1
- package/dist/model/baseTrendingRequest.d.ts +0 -13
- package/dist/model/baseTrendingRequest.d.ts.map +0 -1
- package/dist/model/recommendHits.d.ts +0 -5
- package/dist/model/recommendHits.d.ts.map +0 -1
- package/dist/model/recommendationModels.d.ts +0 -5
- package/dist/model/recommendationModels.d.ts.map +0 -1
- package/dist/model/recommendationRequest.d.ts +0 -4
- package/dist/model/recommendationRequest.d.ts.map +0 -1
- package/dist/model/recommendationsResponse.d.ts +0 -4
- package/dist/model/recommendationsResponse.d.ts.map +0 -1
- package/dist/model/trendingModels.d.ts +0 -5
- package/dist/model/trendingModels.d.ts.map +0 -1
- package/dist/model/trendingRequest.d.ts +0 -4
- package/dist/model/trendingRequest.d.ts.map +0 -1
- package/dist/recommend.cjs.js +0 -248
- package/model/baseRecommendationRequest.ts +0 -12
- package/model/baseTrendingRequest.ts +0 -17
- package/model/recommendHits.ts +0 -7
- package/model/recommendationModels.ts +0 -6
- package/model/recommendationRequest.ts +0 -7
- package/model/recommendationsResponse.ts +0 -6
- package/model/trendingModels.ts +0 -6
- package/model/trendingRequest.ts +0 -6
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
//
|
|
1
|
+
// 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.
|
|
2
2
|
|
|
3
|
+
import type { AroundPrecision } from './aroundPrecision';
|
|
3
4
|
import type { AroundRadius } from './aroundRadius';
|
|
4
5
|
import type { FacetFilters } from './facetFilters';
|
|
5
6
|
import type { NumericFilters } from './numericFilters';
|
|
6
7
|
import type { OptionalFilters } from './optionalFilters';
|
|
7
|
-
import type { ReRankingApplyFilter } from './reRankingApplyFilter';
|
|
8
8
|
import type { TagFilters } from './tagFilters';
|
|
9
9
|
|
|
10
10
|
export type BaseSearchParamsWithoutQuery = {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Keywords to be used instead of the search query to conduct a more broader search. Using the `similarQuery` parameter changes other settings: - `queryType` is set to `prefixNone`. - `removeStopWords` is set to true. - `words` is set as the first ranking criterion. - All remaining words are treated as `optionalWords`. Since the `similarQuery` is supposed to do a broad search, they usually return many results. Combine it with `filters` to narrow down the list of results.
|
|
13
13
|
*/
|
|
14
14
|
similarQuery?: string;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Filter the
|
|
17
|
+
* Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
|
|
18
18
|
*/
|
|
19
19
|
filters?: string;
|
|
20
20
|
|
|
@@ -27,131 +27,121 @@ export type BaseSearchParamsWithoutQuery = {
|
|
|
27
27
|
tagFilters?: TagFilters;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Whether to sum all filter scores. If true, all filter scores are summed. Otherwise, the maximum filter score is kept. For more information, see [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores).
|
|
31
31
|
*/
|
|
32
32
|
sumOrFiltersScores?: boolean;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Restricts a search to a subset of your searchable attributes.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
restrictSearchableAttributes?: string[];
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Facets for which to retrieve facet values that match the search criteria and the number of matching facet values. To retrieve all facets, use the wildcard character `*`. For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
facets?: string[];
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Whether faceting should be applied after deduplication with `distinct`. This leads to accurate facet counts when using faceting in combination with `distinct`. It\'s usually better to use `afterDistinct` modifiers in the `attributesForFaceting` setting, as `facetingAfterDistinct` only computes correct facet counts if all records have the same facet values for the `attributeForDistinct`.
|
|
46
46
|
*/
|
|
47
47
|
facetingAfterDistinct?: boolean;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
sortFacetValuesBy?: string;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Specify the page to retrieve.
|
|
50
|
+
* Page of search results to retrieve.
|
|
56
51
|
*/
|
|
57
52
|
page?: number;
|
|
58
53
|
|
|
59
54
|
/**
|
|
60
|
-
*
|
|
55
|
+
* Position of the first hit to retrieve.
|
|
61
56
|
*/
|
|
62
57
|
offset?: number;
|
|
63
58
|
|
|
64
59
|
/**
|
|
65
|
-
*
|
|
60
|
+
* Number of hits to retrieve (used in combination with `offset`).
|
|
66
61
|
*/
|
|
67
62
|
length?: number;
|
|
68
63
|
|
|
69
64
|
/**
|
|
70
|
-
*
|
|
65
|
+
* Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
|
|
71
66
|
*/
|
|
72
67
|
aroundLatLng?: string;
|
|
73
68
|
|
|
74
69
|
/**
|
|
75
|
-
*
|
|
70
|
+
* Whether to obtain the coordinates from the request\'s IP address.
|
|
76
71
|
*/
|
|
77
72
|
aroundLatLngViaIP?: boolean;
|
|
78
73
|
|
|
79
74
|
aroundRadius?: AroundRadius;
|
|
80
75
|
|
|
81
|
-
|
|
82
|
-
* Precision of geo search (in meters), to add grouping by geo location to the ranking formula.
|
|
83
|
-
*/
|
|
84
|
-
aroundPrecision?: number;
|
|
76
|
+
aroundPrecision?: AroundPrecision;
|
|
85
77
|
|
|
86
78
|
/**
|
|
87
|
-
* Minimum radius (in meters)
|
|
79
|
+
* Minimum radius (in meters) for a search around a location when `aroundRadius` isn\'t set.
|
|
88
80
|
*/
|
|
89
81
|
minimumAroundRadius?: number;
|
|
90
82
|
|
|
91
83
|
/**
|
|
92
|
-
*
|
|
84
|
+
* Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
|
|
93
85
|
*/
|
|
94
|
-
insideBoundingBox?: number[];
|
|
86
|
+
insideBoundingBox?: number[][];
|
|
95
87
|
|
|
96
88
|
/**
|
|
97
|
-
*
|
|
89
|
+
* Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored, if you also specify `insideBoundingBox`.
|
|
98
90
|
*/
|
|
99
|
-
insidePolygon?: number[];
|
|
91
|
+
insidePolygon?: number[][];
|
|
100
92
|
|
|
101
93
|
/**
|
|
102
|
-
*
|
|
94
|
+
* ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches): - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets `removeWordsIfNoResults` to `allOptional`. - Adds a `natural_language` attribute to `ruleContexts` and `analyticsTags`.
|
|
103
95
|
*/
|
|
104
96
|
naturalLanguages?: string[];
|
|
105
97
|
|
|
106
98
|
/**
|
|
107
|
-
*
|
|
99
|
+
* Assigns a rule context to the search query. [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) are strings that you can use to trigger matching rules.
|
|
108
100
|
*/
|
|
109
101
|
ruleContexts?: string[];
|
|
110
102
|
|
|
111
103
|
/**
|
|
112
|
-
*
|
|
104
|
+
* Impact that Personalization should have on this search. The higher this value is, the more Personalization determines the ranking compared to other factors. For more information, see [Understanding Personalization impact](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
|
|
113
105
|
*/
|
|
114
106
|
personalizationImpact?: number;
|
|
115
107
|
|
|
116
108
|
/**
|
|
117
|
-
*
|
|
109
|
+
* Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
|
|
118
110
|
*/
|
|
119
111
|
userToken?: string;
|
|
120
112
|
|
|
121
113
|
/**
|
|
122
|
-
*
|
|
114
|
+
* Whether the search response should include detailed ranking information.
|
|
123
115
|
*/
|
|
124
116
|
getRankingInfo?: boolean;
|
|
125
117
|
|
|
126
118
|
/**
|
|
127
|
-
*
|
|
119
|
+
* Whether to take into account an index\'s synonyms for this search.
|
|
120
|
+
*/
|
|
121
|
+
synonyms?: boolean;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Whether to include a `queryID` attribute in the response. The query ID is a unique identifier for a search query and is required for tracking [click and conversion events](https://www.algolia.com/guides/sending-events/getting-started/).
|
|
128
125
|
*/
|
|
129
126
|
clickAnalytics?: boolean;
|
|
130
127
|
|
|
131
128
|
/**
|
|
132
|
-
* Whether
|
|
129
|
+
* Whether this search will be included in Analytics.
|
|
133
130
|
*/
|
|
134
131
|
analytics?: boolean;
|
|
135
132
|
|
|
136
133
|
/**
|
|
137
|
-
*
|
|
134
|
+
* Tags to apply to the query for [segmenting analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
|
|
138
135
|
*/
|
|
139
136
|
analyticsTags?: string[];
|
|
140
137
|
|
|
141
138
|
/**
|
|
142
|
-
* Whether to include
|
|
139
|
+
* Whether to include this search when calculating processing-time percentiles.
|
|
143
140
|
*/
|
|
144
141
|
percentileComputation?: boolean;
|
|
145
142
|
|
|
146
143
|
/**
|
|
147
|
-
* Whether
|
|
144
|
+
* Whether to enable A/B testing for this search.
|
|
148
145
|
*/
|
|
149
146
|
enableABTest?: boolean;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Whether this search should use AI Re-Ranking.
|
|
153
|
-
*/
|
|
154
|
-
enableReRanking?: boolean;
|
|
155
|
-
|
|
156
|
-
reRankingApplyFilter?: ReRankingApplyFilter | null;
|
|
157
147
|
};
|
|
@@ -1,46 +1,50 @@
|
|
|
1
|
-
//
|
|
1
|
+
// 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.
|
|
2
2
|
|
|
3
|
+
import type { Exhaustive } from './exhaustive';
|
|
3
4
|
import type { FacetsStats } from './facetsStats';
|
|
5
|
+
import type { Redirect } from './redirect';
|
|
4
6
|
import type { RenderingContent } from './renderingContent';
|
|
5
7
|
|
|
6
|
-
export type BaseSearchResponse = {
|
|
8
|
+
export type BaseSearchResponse = Record<string, any> & {
|
|
7
9
|
/**
|
|
8
|
-
*
|
|
10
|
+
* A/B test ID. This is only included in the response for indices that are part of an A/B test.
|
|
9
11
|
*/
|
|
10
12
|
abTestID?: number;
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
15
|
+
* Variant ID. This is only included in the response for indices that are part of an A/B test.
|
|
14
16
|
*/
|
|
15
17
|
abTestVariantID?: number;
|
|
16
18
|
|
|
17
19
|
/**
|
|
18
|
-
*
|
|
20
|
+
* Computed geographical location.
|
|
19
21
|
*/
|
|
20
22
|
aroundLatLng?: string;
|
|
21
23
|
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
25
|
+
* Distance from a central coordinate provided by `aroundLatLng`.
|
|
24
26
|
*/
|
|
25
27
|
automaticRadius?: string;
|
|
26
28
|
|
|
29
|
+
exhaustive?: Exhaustive;
|
|
30
|
+
|
|
27
31
|
/**
|
|
28
|
-
*
|
|
32
|
+
* See the `facetsCount` field of the `exhaustive` object in the response.
|
|
29
33
|
*/
|
|
30
34
|
exhaustiveFacetsCount?: boolean;
|
|
31
35
|
|
|
32
36
|
/**
|
|
33
|
-
*
|
|
37
|
+
* See the `nbHits` field of the `exhaustive` object in the response.
|
|
34
38
|
*/
|
|
35
|
-
exhaustiveNbHits
|
|
39
|
+
exhaustiveNbHits?: boolean;
|
|
36
40
|
|
|
37
41
|
/**
|
|
38
|
-
*
|
|
42
|
+
* See the `typo` field of the `exhaustive` object in the response.
|
|
39
43
|
*/
|
|
40
44
|
exhaustiveTypo?: boolean;
|
|
41
45
|
|
|
42
46
|
/**
|
|
43
|
-
*
|
|
47
|
+
* Facet counts.
|
|
44
48
|
*/
|
|
45
49
|
facets?: Record<string, Record<string, number>>;
|
|
46
50
|
|
|
@@ -50,7 +54,7 @@ export type BaseSearchResponse = {
|
|
|
50
54
|
facets_stats?: Record<string, FacetsStats>;
|
|
51
55
|
|
|
52
56
|
/**
|
|
53
|
-
*
|
|
57
|
+
* Number of hits per page.
|
|
54
58
|
*/
|
|
55
59
|
hitsPerPage: number;
|
|
56
60
|
|
|
@@ -60,42 +64,37 @@ export type BaseSearchResponse = {
|
|
|
60
64
|
index?: string;
|
|
61
65
|
|
|
62
66
|
/**
|
|
63
|
-
* Index name used for the query.
|
|
67
|
+
* Index name used for the query. During A/B testing, the targeted index isn\'t always the index used by the query.
|
|
64
68
|
*/
|
|
65
69
|
indexUsed?: string;
|
|
66
70
|
|
|
67
71
|
/**
|
|
68
|
-
*
|
|
72
|
+
* Warnings about the query.
|
|
69
73
|
*/
|
|
70
74
|
message?: string;
|
|
71
75
|
|
|
72
76
|
/**
|
|
73
|
-
* Number of hits
|
|
77
|
+
* Number of results (hits).
|
|
74
78
|
*/
|
|
75
79
|
nbHits: number;
|
|
76
80
|
|
|
77
81
|
/**
|
|
78
|
-
* Number of pages
|
|
82
|
+
* Number of pages of results.
|
|
79
83
|
*/
|
|
80
84
|
nbPages: number;
|
|
81
85
|
|
|
82
86
|
/**
|
|
83
|
-
*
|
|
87
|
+
* Number of hits selected and sorted by the relevant sort algorithm.
|
|
84
88
|
*/
|
|
85
89
|
nbSortedHits?: number;
|
|
86
90
|
|
|
87
91
|
/**
|
|
88
|
-
*
|
|
92
|
+
* Page of search results to retrieve.
|
|
89
93
|
*/
|
|
90
94
|
page: number;
|
|
91
95
|
|
|
92
96
|
/**
|
|
93
|
-
*
|
|
94
|
-
*/
|
|
95
|
-
params: string;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* The query string that will be searched, after normalization.
|
|
97
|
+
* Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.
|
|
99
98
|
*/
|
|
100
99
|
parsedQuery?: string;
|
|
101
100
|
|
|
@@ -105,24 +104,36 @@ export type BaseSearchResponse = {
|
|
|
105
104
|
processingTimeMS: number;
|
|
106
105
|
|
|
107
106
|
/**
|
|
108
|
-
*
|
|
107
|
+
* Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
|
|
109
108
|
*/
|
|
110
|
-
|
|
109
|
+
processingTimingsMS?: Record<string, any>;
|
|
111
110
|
|
|
112
111
|
/**
|
|
113
|
-
*
|
|
112
|
+
* Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set.
|
|
114
113
|
*/
|
|
115
114
|
queryAfterRemoval?: string;
|
|
116
115
|
|
|
116
|
+
redirect?: Redirect;
|
|
117
|
+
|
|
118
|
+
renderingContent?: RenderingContent;
|
|
119
|
+
|
|
117
120
|
/**
|
|
118
|
-
*
|
|
121
|
+
* Time the server took to process the request, in milliseconds.
|
|
122
|
+
*/
|
|
123
|
+
serverTimeMS?: number;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Host name of the server that processed the request.
|
|
119
127
|
*/
|
|
120
128
|
serverUsed?: string;
|
|
121
129
|
|
|
122
130
|
/**
|
|
123
|
-
*
|
|
131
|
+
* An object with custom data. You can store up to 32 kB as custom data.
|
|
124
132
|
*/
|
|
125
|
-
userData?:
|
|
133
|
+
userData?: any | null;
|
|
126
134
|
|
|
127
|
-
|
|
135
|
+
/**
|
|
136
|
+
* Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
|
|
137
|
+
*/
|
|
138
|
+
queryID?: string;
|
|
128
139
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// 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.
|
|
2
|
+
|
|
3
|
+
import type { BaseRecommendRequest } from './baseRecommendRequest';
|
|
4
|
+
import type { FrequentlyBoughtTogether } from './frequentlyBoughtTogether';
|
|
5
|
+
|
|
6
|
+
export type BoughtTogetherQuery = BaseRecommendRequest &
|
|
7
|
+
FrequentlyBoughtTogether;
|
|
@@ -1,65 +1,137 @@
|
|
|
1
|
-
//
|
|
1
|
+
// 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.
|
|
2
|
+
|
|
3
|
+
import type { RecommendModels } from './recommendModels';
|
|
4
|
+
import type { SearchRecommendRulesParams } from './searchRecommendRulesParams';
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
|
-
* Properties for the `
|
|
7
|
+
* Properties for the `customDelete` method.
|
|
5
8
|
*/
|
|
6
|
-
export type
|
|
9
|
+
export type CustomDeleteProps = {
|
|
7
10
|
/**
|
|
8
|
-
*
|
|
11
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
9
12
|
*/
|
|
10
13
|
path: string;
|
|
11
14
|
/**
|
|
12
|
-
* Query parameters to
|
|
15
|
+
* Query parameters to apply to the current query.
|
|
13
16
|
*/
|
|
14
17
|
parameters?: Record<string, any>;
|
|
15
18
|
};
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
|
-
* Properties for the `
|
|
21
|
+
* Properties for the `customGet` method.
|
|
19
22
|
*/
|
|
20
|
-
export type
|
|
23
|
+
export type CustomGetProps = {
|
|
21
24
|
/**
|
|
22
|
-
*
|
|
25
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
23
26
|
*/
|
|
24
27
|
path: string;
|
|
25
28
|
/**
|
|
26
|
-
* Query parameters to
|
|
29
|
+
* Query parameters to apply to the current query.
|
|
27
30
|
*/
|
|
28
31
|
parameters?: Record<string, any>;
|
|
29
32
|
};
|
|
30
33
|
|
|
31
34
|
/**
|
|
32
|
-
* Properties for the `
|
|
35
|
+
* Properties for the `customPost` method.
|
|
33
36
|
*/
|
|
34
|
-
export type
|
|
37
|
+
export type CustomPostProps = {
|
|
35
38
|
/**
|
|
36
|
-
*
|
|
39
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
37
40
|
*/
|
|
38
41
|
path: string;
|
|
39
42
|
/**
|
|
40
|
-
* Query parameters to
|
|
43
|
+
* Query parameters to apply to the current query.
|
|
41
44
|
*/
|
|
42
45
|
parameters?: Record<string, any>;
|
|
43
46
|
/**
|
|
44
|
-
*
|
|
47
|
+
* Parameters to send with the custom request.
|
|
45
48
|
*/
|
|
46
49
|
body?: Record<string, any>;
|
|
47
50
|
};
|
|
48
51
|
|
|
49
52
|
/**
|
|
50
|
-
* Properties for the `
|
|
53
|
+
* Properties for the `customPut` method.
|
|
51
54
|
*/
|
|
52
|
-
export type
|
|
55
|
+
export type CustomPutProps = {
|
|
53
56
|
/**
|
|
54
|
-
*
|
|
57
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
55
58
|
*/
|
|
56
59
|
path: string;
|
|
57
60
|
/**
|
|
58
|
-
* Query parameters to
|
|
61
|
+
* Query parameters to apply to the current query.
|
|
59
62
|
*/
|
|
60
63
|
parameters?: Record<string, any>;
|
|
61
64
|
/**
|
|
62
|
-
*
|
|
65
|
+
* Parameters to send with the custom request.
|
|
63
66
|
*/
|
|
64
67
|
body?: Record<string, any>;
|
|
65
68
|
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Properties for the `deleteRecommendRule` method.
|
|
72
|
+
*/
|
|
73
|
+
export type DeleteRecommendRuleProps = {
|
|
74
|
+
/**
|
|
75
|
+
* Name of the index on which to perform the operation.
|
|
76
|
+
*/
|
|
77
|
+
indexName: string;
|
|
78
|
+
/**
|
|
79
|
+
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
80
|
+
*/
|
|
81
|
+
model: RecommendModels;
|
|
82
|
+
/**
|
|
83
|
+
* Unique record identifier.
|
|
84
|
+
*/
|
|
85
|
+
objectID: string;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Properties for the `getRecommendRule` method.
|
|
90
|
+
*/
|
|
91
|
+
export type GetRecommendRuleProps = {
|
|
92
|
+
/**
|
|
93
|
+
* Name of the index on which to perform the operation.
|
|
94
|
+
*/
|
|
95
|
+
indexName: string;
|
|
96
|
+
/**
|
|
97
|
+
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
98
|
+
*/
|
|
99
|
+
model: RecommendModels;
|
|
100
|
+
/**
|
|
101
|
+
* Unique record identifier.
|
|
102
|
+
*/
|
|
103
|
+
objectID: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Properties for the `getRecommendStatus` method.
|
|
108
|
+
*/
|
|
109
|
+
export type GetRecommendStatusProps = {
|
|
110
|
+
/**
|
|
111
|
+
* Name of the index on which to perform the operation.
|
|
112
|
+
*/
|
|
113
|
+
indexName: string;
|
|
114
|
+
/**
|
|
115
|
+
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
116
|
+
*/
|
|
117
|
+
model: RecommendModels;
|
|
118
|
+
/**
|
|
119
|
+
* Unique task identifier.
|
|
120
|
+
*/
|
|
121
|
+
taskID: number;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Properties for the `searchRecommendRules` method.
|
|
126
|
+
*/
|
|
127
|
+
export type SearchRecommendRulesProps = {
|
|
128
|
+
/**
|
|
129
|
+
* Name of the index on which to perform the operation.
|
|
130
|
+
*/
|
|
131
|
+
indexName: string;
|
|
132
|
+
/**
|
|
133
|
+
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
134
|
+
*/
|
|
135
|
+
model: RecommendModels;
|
|
136
|
+
searchRecommendRulesParams?: SearchRecommendRulesParams;
|
|
137
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// 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.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Condition that triggers the rule. If not specified, the rule is triggered for all recommendations.
|
|
5
|
+
*/
|
|
6
|
+
export type Condition = {
|
|
7
|
+
/**
|
|
8
|
+
* Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
|
|
9
|
+
*/
|
|
10
|
+
filters?: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
|
|
14
|
+
*/
|
|
15
|
+
context?: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// 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.
|
|
2
|
+
|
|
3
|
+
import type { HideConsequenceObject } from './hideConsequenceObject';
|
|
4
|
+
import type { ParamsConsequence } from './paramsConsequence';
|
|
5
|
+
import type { PromoteConsequenceObject } from './promoteConsequenceObject';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Effect of the rule.
|
|
9
|
+
*/
|
|
10
|
+
export type Consequence = {
|
|
11
|
+
/**
|
|
12
|
+
* Exclude items from recommendations.
|
|
13
|
+
*/
|
|
14
|
+
hide?: HideConsequenceObject[];
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Place items at specific positions in the list of recommendations.
|
|
18
|
+
*/
|
|
19
|
+
promote?: PromoteConsequenceObject[];
|
|
20
|
+
|
|
21
|
+
params?: ParamsConsequence;
|
|
22
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// 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.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Response, taskID, and deletion timestamp.
|
|
5
|
+
*/
|
|
6
|
+
export type DeletedAtResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`.
|
|
9
|
+
*/
|
|
10
|
+
taskID: number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Date and time when the object was deleted, in RFC 3339 format.
|
|
14
|
+
*/
|
|
15
|
+
deletedAt: string;
|
|
16
|
+
};
|
package/model/distinct.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//
|
|
1
|
+
// 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.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Determines how many records of a group are included in the search results. Records with the same value for the `attributeForDistinct` attribute are considered a group. The `distinct` setting controls how many members of the group are returned. This is useful for [deduplication and grouping](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature). The `distinct` setting is ignored if `attributeForDistinct` is not set.
|
|
5
5
|
*/
|
|
6
6
|
export type Distinct = boolean | number;
|
package/model/errorBase.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// 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.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Error.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//
|
|
1
|
+
// 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.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the search query has only one word. - `attribute`. The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for \"road\" will match the value \"road\", but not \"road trip\". - `none`. The Exact ranking criterion is ignored on single-word searches. - `word`. The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. Only exact matches will be highlighted, partial and prefix matches won\'t.
|
|
5
5
|
*/
|
|
6
6
|
export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// 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.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Whether certain properties of the search response are calculated exhaustive (exact) or approximated.
|
|
5
|
+
*/
|
|
6
|
+
export type Exhaustive = {
|
|
7
|
+
/**
|
|
8
|
+
* Whether the facet count is exhaustive (`true`) or approximate (`false`). See the [related discussion](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
|
|
9
|
+
*/
|
|
10
|
+
facetsCount?: boolean;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The value is `false` if not all facet values are retrieved.
|
|
14
|
+
*/
|
|
15
|
+
facetValues?: boolean;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Whether the `nbHits` is exhaustive (`true`) or approximate (`false`). When the query takes more than 50ms to be processed, the engine makes an approximation. This can happen when using complex filters on millions of records, when typo-tolerance was not exhaustive, or when enough hits have been retrieved (for example, after the engine finds 10,000 exact matches). `nbHits` is reported as non-exhaustive whenever an approximation is made, even if the approximation didn’t, in the end, impact the exhaustivity of the query.
|
|
19
|
+
*/
|
|
20
|
+
nbHits?: boolean;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Rules matching exhaustivity. The value is `false` if rules were enable for this query, and could not be fully processed due a timeout. This is generally caused by the number of alternatives (such as typos) which is too large.
|
|
24
|
+
*/
|
|
25
|
+
rulesMatch?: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Whether the typo search was exhaustive (`true`) or approximate (`false`). An approximation is done when the typo search query part takes more than 10% of the query budget (ie. 5ms by default) to be processed (this can happen when a lot of typo alternatives exist for the query). This field will not be included when typo-tolerance is entirely disabled.
|
|
29
|
+
*/
|
|
30
|
+
typo?: boolean;
|
|
31
|
+
};
|