@algolia/recommend 5.0.0-alpha.1 → 5.0.0-alpha.100
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 +5 -5
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +5 -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/anchoring.d.ts +5 -0
- package/dist/model/anchoring.d.ts.map +1 -0
- package/dist/model/aroundPrecision.d.ts +6 -0
- package/dist/model/aroundPrecision.d.ts.map +1 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts +5 -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 +1 -1
- package/dist/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/model/automaticFacetFilter.d.ts +18 -0
- package/dist/model/automaticFacetFilter.d.ts.map +1 -0
- package/dist/model/automaticFacetFilters.d.ts +6 -0
- package/dist/model/automaticFacetFilters.d.ts.map +1 -0
- package/dist/model/baseRecommendRequest.d.ts +14 -17
- package/dist/model/baseRecommendRequest.d.ts.map +1 -1
- package/dist/model/baseRecommendationsQuery.d.ts +12 -0
- package/dist/model/baseRecommendationsQuery.d.ts.map +1 -0
- package/dist/model/baseRecommendedForYouQuery.d.ts +8 -0
- package/dist/model/baseRecommendedForYouQuery.d.ts.map +1 -0
- package/dist/model/baseRecommendedForYouQueryParameters.d.ts +7 -0
- package/dist/model/baseRecommendedForYouQueryParameters.d.ts.map +1 -0
- package/dist/model/baseSearchParams.d.ts +3 -3
- package/dist/model/baseSearchParams.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +118 -122
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +105 -101
- package/dist/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/model/baseTrendingFacetsQuery.d.ts +9 -0
- package/dist/model/baseTrendingFacetsQuery.d.ts.map +1 -0
- package/dist/model/baseTrendingItemsQuery.d.ts +16 -0
- package/dist/model/baseTrendingItemsQuery.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 +17 -0
- package/dist/model/condition.d.ts.map +1 -0
- package/dist/model/consequence.d.ts +26 -0
- package/dist/model/consequence.d.ts.map +1 -0
- package/dist/model/consequenceHide.d.ts +10 -0
- package/dist/model/consequenceHide.d.ts.map +1 -0
- package/dist/model/consequenceParams.d.ts +5 -0
- package/dist/model/consequenceParams.d.ts.map +1 -0
- package/dist/model/consequenceQuery.d.ts +6 -0
- package/dist/model/consequenceQuery.d.ts.map +1 -0
- package/dist/model/consequenceQueryObject.d.ts +12 -0
- package/dist/model/consequenceQueryObject.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 +5 -0
- package/dist/model/distinct.d.ts.map +1 -0
- package/dist/model/edit.d.ts +13 -0
- package/dist/model/edit.d.ts.map +1 -0
- package/dist/model/editType.d.ts +5 -0
- package/dist/model/editType.d.ts.map +1 -0
- 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/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/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 +4 -4
- package/dist/model/ignorePlurals.d.ts.map +1 -1
- package/dist/model/index.d.ts +94 -52
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +162 -158
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- 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/params.d.ts +13 -0
- package/dist/model/params.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/promote.d.ts +4 -0
- package/dist/model/promote.d.ts.map +1 -0
- package/dist/model/promoteObjectID.d.ts +14 -0
- package/dist/model/promoteObjectID.d.ts.map +1 -0
- package/dist/model/promoteObjectIDs.d.ts +14 -0
- package/dist/model/promoteObjectIDs.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 +50 -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/recommendationModels.d.ts +4 -4
- package/dist/model/recommendationModels.d.ts.map +1 -1
- package/dist/model/recommendationsHit.d.ts +4 -0
- package/dist/model/recommendationsHit.d.ts.map +1 -0
- package/dist/model/recommendationsHits.d.ts +13 -0
- package/dist/model/recommendationsHits.d.ts.map +1 -0
- package/dist/model/recommendationsQuery.d.ts +4 -0
- package/dist/model/recommendationsQuery.d.ts.map +1 -0
- package/dist/model/recommendationsRequest.d.ts +5 -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/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/recommendedForYouQueryParameters.d.ts +4 -0
- package/dist/model/recommendedForYouQueryParameters.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/removeStopWords.d.ts +4 -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/ruleResponse.d.ts +27 -0
- package/dist/model/ruleResponse.d.ts.map +1 -0
- package/dist/model/ruleResponseMetadata.d.ts +7 -0
- package/dist/model/ruleResponseMetadata.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 +26 -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/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/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/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 +1 -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 +387 -0
- package/dist/recommend.esm.browser.js +588 -460
- package/dist/recommend.esm.node.js +376 -222
- package/dist/recommend.umd.js +2 -2
- package/dist/src/recommendClient.d.ts +135 -70
- 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/anchoring.ts +6 -0
- package/model/aroundPrecision.ts +8 -0
- package/model/aroundPrecisionFromValueInner.ts +7 -0
- package/model/aroundRadius.ts +2 -2
- package/model/aroundRadiusAll.ts +1 -1
- package/model/automaticFacetFilter.ts +21 -0
- package/model/automaticFacetFilters.ts +8 -0
- package/model/baseRecommendRequest.ts +7 -9
- package/model/baseRecommendationsQuery.ts +17 -0
- package/model/baseRecommendedForYouQuery.ts +12 -0
- package/model/baseRecommendedForYouQueryParameters.ts +8 -0
- package/model/baseSearchParams.ts +1 -1
- package/model/baseSearchParamsWithoutQuery.ts +69 -42
- package/model/baseSearchResponse.ts +61 -31
- package/model/baseTrendingFacetsQuery.ts +12 -0
- package/model/baseTrendingItemsQuery.ts +22 -0
- package/model/clientMethodProps.ts +91 -19
- package/model/condition.ts +22 -0
- package/model/consequence.ts +32 -0
- package/model/consequenceHide.ts +11 -0
- package/model/consequenceParams.ts +9 -0
- package/model/consequenceQuery.ts +8 -0
- package/model/consequenceQueryObject.ts +15 -0
- package/model/deletedAtResponse.ts +16 -0
- package/model/distinct.ts +6 -0
- package/model/edit.ts +17 -0
- package/model/editType.ts +6 -0
- 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 +4 -3
- package/model/facets.ts +2 -2
- package/model/facetsStats.ts +8 -5
- package/model/getRecommendTaskResponse.ts +7 -0
- package/model/getRecommendationsParams.ts +3 -3
- package/model/getRecommendationsResponse.ts +3 -3
- package/model/highlightResult.ts +5 -2
- package/model/highlightResultOption.ts +5 -2
- package/model/ignorePlurals.ts +2 -2
- package/model/index.ts +50 -8
- package/model/indexSettingsAsSearchParams.ts +92 -44
- package/model/matchLevel.ts +1 -1
- package/model/matchedGeoLocation.ts +3 -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/params.ts +18 -0
- package/model/personalization.ts +3 -1
- package/model/promote.ts +6 -0
- package/model/promoteObjectID.ts +16 -0
- package/model/promoteObjectIDs.ts +16 -0
- package/model/queryType.ts +2 -2
- package/model/rankingInfo.ts +13 -1
- package/model/reRankingApplyFilter.ts +2 -2
- package/model/recommendHit.ts +9 -4
- package/model/recommendModels.ts +7 -0
- package/model/recommendationModels.ts +2 -2
- package/model/recommendationsHit.ts +6 -0
- package/model/recommendationsHits.ts +17 -0
- package/model/recommendationsQuery.ts +7 -0
- package/model/recommendationsRequest.ts +10 -4
- package/model/recommendationsResults.ts +6 -0
- package/model/recommendedForYouModel.ts +6 -0
- package/model/recommendedForYouQuery.ts +7 -0
- package/model/recommendedForYouQueryParameters.ts +7 -0
- package/model/redirect.ts +10 -0
- package/model/redirectRuleIndexMetadata.ts +27 -0
- package/model/redirectRuleIndexMetadataData.ts +8 -0
- package/model/removeStopWords.ts +2 -2
- package/model/removeWordsIfNoResults.ts +2 -2
- package/model/renderingContent.ts +2 -2
- package/model/ruleResponse.ts +34 -0
- package/model/ruleResponseMetadata.ts +8 -0
- package/model/searchParamsObject.ts +1 -1
- package/model/searchParamsQuery.ts +2 -2
- package/model/searchRecommendRulesParams.ts +31 -0
- package/model/searchRecommendRulesResponse.ts +25 -0
- package/model/semanticSearch.ts +11 -0
- package/model/snippetResult.ts +5 -2
- package/model/snippetResultOption.ts +3 -2
- package/model/sortRemainingBy.ts +2 -2
- package/model/tagFilters.ts +2 -2
- package/model/taskStatus.ts +6 -0
- package/model/trendingFacetHit.ts +21 -0
- package/model/trendingFacetsModel.ts +6 -0
- package/model/trendingFacetsQuery.ts +7 -0
- package/model/trendingItemsModel.ts +6 -0
- package/model/trendingItemsQuery.ts +6 -0
- package/model/typoTolerance.ts +2 -2
- package/model/typoToleranceEnum.ts +1 -1
- package/model/value.ts +2 -1
- package/package.json +32 -13
- 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/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 -235
- package/model/baseRecommendationRequest.ts +0 -11
- package/model/baseTrendingRequest.ts +0 -15
- package/model/recommendHits.ts +0 -7
- 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,125 +1,152 @@
|
|
|
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
|
-
* Overrides the query parameter and performs a more generic search
|
|
12
|
+
* Overrides the query parameter and performs a more generic search.
|
|
13
13
|
*/
|
|
14
14
|
similarQuery?: string;
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
|
-
* Filter the query with numeric, facet
|
|
17
|
+
* [Filter](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) the query with numeric, facet, or tag filters.
|
|
17
18
|
*/
|
|
18
19
|
filters?: string;
|
|
20
|
+
|
|
19
21
|
facetFilters?: FacetFilters;
|
|
22
|
+
|
|
20
23
|
optionalFilters?: OptionalFilters;
|
|
24
|
+
|
|
21
25
|
numericFilters?: NumericFilters;
|
|
26
|
+
|
|
22
27
|
tagFilters?: TagFilters;
|
|
28
|
+
|
|
23
29
|
/**
|
|
24
|
-
* Determines how to calculate
|
|
30
|
+
* Determines how to calculate [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores). If `false`, maximum score is kept. If `true`, score is summed.
|
|
25
31
|
*/
|
|
26
32
|
sumOrFiltersScores?: boolean;
|
|
33
|
+
|
|
27
34
|
/**
|
|
28
|
-
*
|
|
35
|
+
* Restricts a query to only look at a subset of your [searchable attributes](https://www.algolia.com/doc/guides/managing-results/must-do/searchable-attributes/).
|
|
29
36
|
*/
|
|
30
|
-
|
|
37
|
+
restrictSearchableAttributes?: string[];
|
|
38
|
+
|
|
31
39
|
/**
|
|
32
|
-
*
|
|
40
|
+
* Returns [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts), their facet values, and the number of matching facet values.
|
|
33
41
|
*/
|
|
34
|
-
|
|
42
|
+
facets?: string[];
|
|
43
|
+
|
|
35
44
|
/**
|
|
36
|
-
*
|
|
45
|
+
* Forces faceting to be applied after [de-duplication](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/) (with the distinct feature). Alternatively, the `afterDistinct` [modifier](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) of `attributesForFaceting` allows for more granular control.
|
|
37
46
|
*/
|
|
38
47
|
facetingAfterDistinct?: boolean;
|
|
48
|
+
|
|
39
49
|
/**
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
sortFacetValuesBy?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Specify the page to retrieve.
|
|
50
|
+
* Page to retrieve (the first page is `0`, not `1`).
|
|
45
51
|
*/
|
|
46
52
|
page?: number;
|
|
53
|
+
|
|
47
54
|
/**
|
|
48
|
-
*
|
|
55
|
+
* Specifies the offset of the first hit to return. > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length).
|
|
49
56
|
*/
|
|
50
57
|
offset?: number;
|
|
58
|
+
|
|
51
59
|
/**
|
|
52
|
-
*
|
|
60
|
+
* Sets the number of hits to retrieve (for use with `offset`). > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length).
|
|
53
61
|
*/
|
|
54
62
|
length?: number;
|
|
63
|
+
|
|
55
64
|
/**
|
|
56
|
-
* Search for entries around a central geolocation, enabling a
|
|
65
|
+
* Search for entries [around a central location](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filter-around-a-central-point), enabling a geographical search within a circular area.
|
|
57
66
|
*/
|
|
58
67
|
aroundLatLng?: string;
|
|
68
|
+
|
|
59
69
|
/**
|
|
60
|
-
* Search for entries around a
|
|
70
|
+
* Search for entries around a location. The location is automatically computed from the requester\'s IP address.
|
|
61
71
|
*/
|
|
62
72
|
aroundLatLngViaIP?: boolean;
|
|
73
|
+
|
|
63
74
|
aroundRadius?: AroundRadius;
|
|
75
|
+
|
|
76
|
+
aroundPrecision?: AroundPrecision;
|
|
77
|
+
|
|
64
78
|
/**
|
|
65
|
-
*
|
|
66
|
-
*/
|
|
67
|
-
aroundPrecision?: number;
|
|
68
|
-
/**
|
|
69
|
-
* Minimum radius (in meters) used for a geo search when aroundRadius is not set.
|
|
79
|
+
* Minimum radius (in meters) used for a geographical search when `aroundRadius` isn\'t set.
|
|
70
80
|
*/
|
|
71
81
|
minimumAroundRadius?: number;
|
|
82
|
+
|
|
72
83
|
/**
|
|
73
|
-
* Search inside a rectangular area (in
|
|
84
|
+
* Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
|
|
74
85
|
*/
|
|
75
|
-
insideBoundingBox?: number[];
|
|
86
|
+
insideBoundingBox?: number[][];
|
|
87
|
+
|
|
76
88
|
/**
|
|
77
|
-
* Search inside a polygon (in
|
|
89
|
+
* Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
|
|
78
90
|
*/
|
|
79
|
-
insidePolygon?: number[];
|
|
91
|
+
insidePolygon?: number[][];
|
|
92
|
+
|
|
80
93
|
/**
|
|
81
|
-
*
|
|
94
|
+
* Changes the default values of parameters that work best for a natural language query, such as `ignorePlurals`, `removeStopWords`, `removeWordsIfNoResults`, `analyticsTags`, and `ruleContexts`. These parameters work well together when the query consists of fuller natural language strings instead of keywords, for example when processing voice search queries.
|
|
82
95
|
*/
|
|
83
96
|
naturalLanguages?: string[];
|
|
97
|
+
|
|
84
98
|
/**
|
|
85
|
-
*
|
|
99
|
+
* Assigns [rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) to search queries.
|
|
86
100
|
*/
|
|
87
101
|
ruleContexts?: string[];
|
|
102
|
+
|
|
88
103
|
/**
|
|
89
|
-
*
|
|
104
|
+
* Defines how much [Personalization affects results](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
|
|
90
105
|
*/
|
|
91
106
|
personalizationImpact?: number;
|
|
107
|
+
|
|
92
108
|
/**
|
|
93
|
-
* Associates a
|
|
109
|
+
* Associates a [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/) with the current search.
|
|
94
110
|
*/
|
|
95
111
|
userToken?: string;
|
|
112
|
+
|
|
96
113
|
/**
|
|
97
|
-
*
|
|
114
|
+
* Incidates whether the search response includes [detailed ranking information](https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/understanding-the-api-response/#ranking-information).
|
|
98
115
|
*/
|
|
99
116
|
getRankingInfo?: boolean;
|
|
117
|
+
|
|
100
118
|
/**
|
|
101
|
-
*
|
|
119
|
+
* Enriches the API\'s response with information about how the query was processed.
|
|
120
|
+
*/
|
|
121
|
+
explain?: string[];
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Whether to take into account an index\'s synonyms for a particular search.
|
|
125
|
+
*/
|
|
126
|
+
synonyms?: boolean;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Indicates whether a query ID parameter is included in the search response. This is required for [tracking click and conversion events](https://www.algolia.com/doc/guides/sending-events/concepts/event-types/#events-related-to-algolia-requests).
|
|
102
130
|
*/
|
|
103
131
|
clickAnalytics?: boolean;
|
|
132
|
+
|
|
104
133
|
/**
|
|
105
|
-
*
|
|
134
|
+
* Indicates whether this query will be included in [analytics](https://www.algolia.com/doc/guides/search-analytics/guides/exclude-queries/).
|
|
106
135
|
*/
|
|
107
136
|
analytics?: boolean;
|
|
137
|
+
|
|
108
138
|
/**
|
|
109
|
-
*
|
|
139
|
+
* Tags to apply to the query for [segmenting analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
|
|
110
140
|
*/
|
|
111
141
|
analyticsTags?: string[];
|
|
142
|
+
|
|
112
143
|
/**
|
|
113
144
|
* Whether to include or exclude a query from the processing-time percentile computation.
|
|
114
145
|
*/
|
|
115
146
|
percentileComputation?: boolean;
|
|
147
|
+
|
|
116
148
|
/**
|
|
117
|
-
*
|
|
149
|
+
* Incidates whether this search will be considered in A/B testing.
|
|
118
150
|
*/
|
|
119
151
|
enableABTest?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Whether this search should use AI Re-Ranking.
|
|
122
|
-
*/
|
|
123
|
-
enableReRanking?: boolean;
|
|
124
|
-
reRankingApplyFilter?: ReRankingApplyFilter | null;
|
|
125
152
|
};
|
|
@@ -1,104 +1,134 @@
|
|
|
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;
|
|
13
|
+
|
|
11
14
|
/**
|
|
12
|
-
*
|
|
15
|
+
* Variant ID. This is only included in the response for indices that are part of an A/B test.
|
|
13
16
|
*/
|
|
14
17
|
abTestVariantID?: number;
|
|
18
|
+
|
|
15
19
|
/**
|
|
16
|
-
*
|
|
20
|
+
* Computed geographical location.
|
|
17
21
|
*/
|
|
18
22
|
aroundLatLng?: string;
|
|
23
|
+
|
|
19
24
|
/**
|
|
20
|
-
*
|
|
25
|
+
* Automatically-computed radius.
|
|
21
26
|
*/
|
|
22
27
|
automaticRadius?: string;
|
|
28
|
+
|
|
29
|
+
exhaustive?: Exhaustive;
|
|
30
|
+
|
|
23
31
|
/**
|
|
24
|
-
*
|
|
32
|
+
* See the `facetsCount` field of the `exhaustive` object in the response.
|
|
25
33
|
*/
|
|
26
34
|
exhaustiveFacetsCount?: boolean;
|
|
35
|
+
|
|
27
36
|
/**
|
|
28
|
-
*
|
|
37
|
+
* See the `nbHits` field of the `exhaustive` object in the response.
|
|
29
38
|
*/
|
|
30
|
-
exhaustiveNbHits
|
|
39
|
+
exhaustiveNbHits?: boolean;
|
|
40
|
+
|
|
31
41
|
/**
|
|
32
|
-
*
|
|
42
|
+
* See the `typo` field of the `exhaustive` object in the response.
|
|
33
43
|
*/
|
|
34
|
-
exhaustiveTypo
|
|
44
|
+
exhaustiveTypo?: boolean;
|
|
45
|
+
|
|
35
46
|
/**
|
|
36
|
-
*
|
|
47
|
+
* Mapping of each facet name to the corresponding facet counts.
|
|
37
48
|
*/
|
|
38
|
-
facets?: Record<string, Record<string,
|
|
49
|
+
facets?: Record<string, Record<string, number>>;
|
|
50
|
+
|
|
39
51
|
/**
|
|
40
52
|
* Statistics for numerical facets.
|
|
41
53
|
*/
|
|
42
54
|
facets_stats?: Record<string, FacetsStats>;
|
|
55
|
+
|
|
43
56
|
/**
|
|
44
|
-
*
|
|
57
|
+
* Number of hits per page.
|
|
45
58
|
*/
|
|
46
59
|
hitsPerPage: number;
|
|
60
|
+
|
|
47
61
|
/**
|
|
48
62
|
* Index name used for the query.
|
|
49
63
|
*/
|
|
50
64
|
index?: string;
|
|
65
|
+
|
|
51
66
|
/**
|
|
52
|
-
* 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.
|
|
53
68
|
*/
|
|
54
69
|
indexUsed?: string;
|
|
70
|
+
|
|
55
71
|
/**
|
|
56
|
-
*
|
|
72
|
+
* Warnings about the query.
|
|
57
73
|
*/
|
|
58
74
|
message?: string;
|
|
75
|
+
|
|
59
76
|
/**
|
|
60
|
-
* Number of hits
|
|
77
|
+
* Number of hits the search query matched.
|
|
61
78
|
*/
|
|
62
79
|
nbHits: number;
|
|
80
|
+
|
|
63
81
|
/**
|
|
64
|
-
* Number of pages
|
|
82
|
+
* Number of pages of results for the current query.
|
|
65
83
|
*/
|
|
66
84
|
nbPages: number;
|
|
85
|
+
|
|
67
86
|
/**
|
|
68
|
-
*
|
|
87
|
+
* Number of hits selected and sorted by the relevant sort algorithm.
|
|
69
88
|
*/
|
|
70
89
|
nbSortedHits?: number;
|
|
90
|
+
|
|
71
91
|
/**
|
|
72
|
-
*
|
|
92
|
+
* Page to retrieve (the first page is `0`, not `1`).
|
|
73
93
|
*/
|
|
74
94
|
page: number;
|
|
95
|
+
|
|
75
96
|
/**
|
|
76
|
-
*
|
|
77
|
-
*/
|
|
78
|
-
params: string;
|
|
79
|
-
/**
|
|
80
|
-
* 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.
|
|
81
98
|
*/
|
|
82
99
|
parsedQuery?: string;
|
|
100
|
+
|
|
83
101
|
/**
|
|
84
102
|
* Time the server took to process the request, in milliseconds.
|
|
85
103
|
*/
|
|
86
104
|
processingTimeMS: number;
|
|
105
|
+
|
|
87
106
|
/**
|
|
88
|
-
*
|
|
107
|
+
* Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
|
|
89
108
|
*/
|
|
90
|
-
|
|
109
|
+
processingTimingsMS?: Record<string, any>;
|
|
110
|
+
|
|
91
111
|
/**
|
|
92
|
-
*
|
|
112
|
+
* Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set.
|
|
93
113
|
*/
|
|
94
114
|
queryAfterRemoval?: string;
|
|
115
|
+
|
|
116
|
+
redirect?: Redirect;
|
|
117
|
+
|
|
118
|
+
renderingContent?: RenderingContent;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Time the server took to process the request, in milliseconds.
|
|
122
|
+
*/
|
|
123
|
+
serverTimeMS?: number;
|
|
124
|
+
|
|
95
125
|
/**
|
|
96
|
-
*
|
|
126
|
+
* Host name of the server that processed the request.
|
|
97
127
|
*/
|
|
98
128
|
serverUsed?: string;
|
|
129
|
+
|
|
99
130
|
/**
|
|
100
131
|
* Lets you store custom data in your indices.
|
|
101
132
|
*/
|
|
102
|
-
userData?:
|
|
103
|
-
renderingContent?: RenderingContent;
|
|
133
|
+
userData?: any | null;
|
|
104
134
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { TrendingFacetsModel } from './trendingFacetsModel';
|
|
4
|
+
|
|
5
|
+
export type BaseTrendingFacetsQuery = {
|
|
6
|
+
/**
|
|
7
|
+
* Facet name for trending models.
|
|
8
|
+
*/
|
|
9
|
+
facetName: string;
|
|
10
|
+
|
|
11
|
+
model?: TrendingFacetsModel;
|
|
12
|
+
};
|
|
@@ -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 { SearchParamsObject } from './searchParamsObject';
|
|
4
|
+
import type { TrendingItemsModel } from './trendingItemsModel';
|
|
5
|
+
|
|
6
|
+
export type BaseTrendingItemsQuery = {
|
|
7
|
+
/**
|
|
8
|
+
* Facet name for trending models.
|
|
9
|
+
*/
|
|
10
|
+
facetName?: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Facet value for trending models.
|
|
14
|
+
*/
|
|
15
|
+
facetValue?: string;
|
|
16
|
+
|
|
17
|
+
model?: TrendingItemsModel;
|
|
18
|
+
|
|
19
|
+
queryParameters?: SearchParamsObject;
|
|
20
|
+
|
|
21
|
+
fallbackParameters?: SearchParamsObject;
|
|
22
|
+
};
|
|
@@ -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
|
+
* Index on which to perform the request.
|
|
76
|
+
*/
|
|
77
|
+
indexName: string;
|
|
78
|
+
/**
|
|
79
|
+
* [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
80
|
+
*/
|
|
81
|
+
model: RecommendModels;
|
|
82
|
+
/**
|
|
83
|
+
* Unique record (object) identifier.
|
|
84
|
+
*/
|
|
85
|
+
objectID: string;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Properties for the `getRecommendRule` method.
|
|
90
|
+
*/
|
|
91
|
+
export type GetRecommendRuleProps = {
|
|
92
|
+
/**
|
|
93
|
+
* Index on which to perform the request.
|
|
94
|
+
*/
|
|
95
|
+
indexName: string;
|
|
96
|
+
/**
|
|
97
|
+
* [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
98
|
+
*/
|
|
99
|
+
model: RecommendModels;
|
|
100
|
+
/**
|
|
101
|
+
* Unique record (object) identifier.
|
|
102
|
+
*/
|
|
103
|
+
objectID: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Properties for the `getRecommendStatus` method.
|
|
108
|
+
*/
|
|
109
|
+
export type GetRecommendStatusProps = {
|
|
110
|
+
/**
|
|
111
|
+
* Index on which to perform the request.
|
|
112
|
+
*/
|
|
113
|
+
indexName: string;
|
|
114
|
+
/**
|
|
115
|
+
* [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
116
|
+
*/
|
|
117
|
+
model: RecommendModels;
|
|
118
|
+
/**
|
|
119
|
+
* Unique identifier of a task. Numeric value (up to 64bits).
|
|
120
|
+
*/
|
|
121
|
+
taskID: number;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Properties for the `searchRecommendRules` method.
|
|
126
|
+
*/
|
|
127
|
+
export type SearchRecommendRulesProps = {
|
|
128
|
+
/**
|
|
129
|
+
* Index on which to perform the request.
|
|
130
|
+
*/
|
|
131
|
+
indexName: string;
|
|
132
|
+
/**
|
|
133
|
+
* [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
134
|
+
*/
|
|
135
|
+
model: RecommendModels;
|
|
136
|
+
searchRecommendRulesParams?: SearchRecommendRulesParams;
|
|
137
|
+
};
|
|
@@ -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 { Anchoring } from './anchoring';
|
|
4
|
+
|
|
5
|
+
export type Condition = {
|
|
6
|
+
/**
|
|
7
|
+
* Query pattern syntax.
|
|
8
|
+
*/
|
|
9
|
+
pattern?: string;
|
|
10
|
+
|
|
11
|
+
anchoring?: Anchoring;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Whether the pattern matches on plurals, synonyms, and typos.
|
|
15
|
+
*/
|
|
16
|
+
alternatives?: boolean;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Rule context format: [A-Za-z0-9_-]+).
|
|
20
|
+
*/
|
|
21
|
+
context?: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { ConsequenceHide } from './consequenceHide';
|
|
4
|
+
import type { ConsequenceParams } from './consequenceParams';
|
|
5
|
+
import type { Promote } from './promote';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences) of a rule.
|
|
9
|
+
*/
|
|
10
|
+
export type Consequence = {
|
|
11
|
+
params?: ConsequenceParams;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Records to promote.
|
|
15
|
+
*/
|
|
16
|
+
promote?: Promote[];
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Only use in combination with the `promote` consequence. When `true`, promoted results will be restricted to match the filters of the current search. When `false`, the promoted results will show up regardless of the filters.
|
|
20
|
+
*/
|
|
21
|
+
filterPromotes?: boolean;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Records to hide. By default, you can hide up to 50 records per rule.
|
|
25
|
+
*/
|
|
26
|
+
hide?: ConsequenceHide[];
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Custom JSON object that will be appended to the userData array in the response. This object isn\'t interpreted by the API. It\'s limited to 1kB of minified JSON.
|
|
30
|
+
*/
|
|
31
|
+
userData?: any | null;
|
|
32
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
* Unique identifier of the record to hide.
|
|
5
|
+
*/
|
|
6
|
+
export type ConsequenceHide = {
|
|
7
|
+
/**
|
|
8
|
+
* Unique object identifier.
|
|
9
|
+
*/
|
|
10
|
+
objectID: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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 { BaseSearchParamsWithoutQuery } from './baseSearchParamsWithoutQuery';
|
|
4
|
+
import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
|
|
5
|
+
import type { Params } from './params';
|
|
6
|
+
|
|
7
|
+
export type ConsequenceParams = BaseSearchParamsWithoutQuery &
|
|
8
|
+
IndexSettingsAsSearchParams &
|
|
9
|
+
Params;
|
|
@@ -0,0 +1,8 @@
|
|
|
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 { ConsequenceQueryObject } from './consequenceQueryObject';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* When providing a string, it replaces the entire query string. When providing an object, it describes incremental edits to be made to the query string (but you can\'t do both).
|
|
7
|
+
*/
|
|
8
|
+
export type ConsequenceQuery = ConsequenceQueryObject | string;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { Edit } from './edit';
|
|
4
|
+
|
|
5
|
+
export type ConsequenceQueryObject = {
|
|
6
|
+
/**
|
|
7
|
+
* Words to remove.
|
|
8
|
+
*/
|
|
9
|
+
remove?: string[];
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Edits to apply.
|
|
13
|
+
*/
|
|
14
|
+
edits?: Edit[];
|
|
15
|
+
};
|