@algolia/recommend 5.0.0-alpha.110 → 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 +1 -1
- package/dist/builds/node.d.ts +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 +5 -3
- package/dist/model/baseRecommendRequest.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +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 +5 -5
- package/dist/model/condition.d.ts +5 -12
- package/dist/model/condition.d.ts.map +1 -1
- package/dist/model/consequence.d.ts +9 -17
- package/dist/model/consequence.d.ts.map +1 -1
- package/dist/model/deletedAtResponse.d.ts +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +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/getRecommendationsParams.d.ts +2 -2
- package/dist/model/hideConsequenceObject.d.ts +10 -0
- package/dist/model/hideConsequenceObject.d.ts.map +1 -0
- package/dist/model/index.d.ts +20 -23
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +5 -5
- 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/paramsConsequence.d.ts +19 -0
- package/dist/model/paramsConsequence.d.ts.map +1 -0
- package/dist/model/promoteConsequenceObject.d.ts +14 -0
- package/dist/model/promoteConsequenceObject.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/recommendationsHits.d.ts +0 -8
- package/dist/model/recommendationsHits.d.ts.map +1 -1
- package/dist/model/recommendationsRequest.d.ts +4 -2
- package/dist/model/recommendationsRequest.d.ts.map +1 -1
- package/dist/model/recommendedForYou.d.ts +7 -0
- package/dist/model/recommendedForYou.d.ts.map +1 -0
- package/dist/model/recommendedForYouModel.d.ts +1 -1
- package/dist/model/recommendedForYouQuery.d.ts +2 -2
- package/dist/model/recommendedForYouQuery.d.ts.map +1 -1
- 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/removeWordsIfNoResults.d.ts +1 -1
- package/dist/model/searchParams.d.ts +3 -0
- package/dist/model/searchParams.d.ts.map +1 -0
- package/dist/model/searchRecommendRulesParams.d.ts +16 -4
- package/dist/model/searchRecommendRulesParams.d.ts.map +1 -1
- package/dist/model/searchRecommendRulesResponse.d.ts +3 -3
- package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -1
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/trendingFacetHit.d.ts +2 -2
- package/dist/model/trendingFacets.d.ts +11 -0
- package/dist/model/trendingFacets.d.ts.map +1 -0
- package/dist/model/trendingFacetsModel.d.ts +1 -1
- package/dist/model/trendingFacetsQuery.d.ts +2 -2
- package/dist/model/trendingFacetsQuery.d.ts.map +1 -1
- package/dist/model/trendingItems.d.ts +15 -0
- package/dist/model/trendingItems.d.ts.map +1 -0
- package/dist/model/trendingItemsModel.d.ts +1 -1
- package/dist/model/trendingItemsQuery.d.ts +2 -2
- package/dist/model/trendingItemsQuery.d.ts.map +1 -1
- package/dist/recommend.cjs +11 -11
- package/dist/recommend.esm.browser.js +11 -11
- package/dist/recommend.esm.node.js +11 -11
- package/dist/recommend.umd.js +2 -2
- package/dist/src/recommendClient.d.ts +13 -13
- package/dist/src/recommendClient.d.ts.map +1 -1
- package/model/autoFacetFilter.ts +16 -0
- package/model/baseRecommendRequest.ts +7 -3
- package/model/baseSearchParamsWithoutQuery.ts +1 -1
- package/model/{recommendationsQuery.ts → boughtTogetherQuery.ts} +3 -3
- package/model/clientMethodProps.ts +5 -5
- package/model/condition.ts +5 -16
- package/model/consequence.ts +9 -19
- package/model/deletedAtResponse.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +1 -1
- package/model/{editType.ts → fallbackParams.ts} +3 -4
- package/model/fbtModel.ts +6 -0
- package/model/{consequenceHide.ts → frequentlyBoughtTogether.ts} +5 -4
- package/model/getRecommendationsParams.ts +2 -2
- package/model/{promoteObjectID.ts → hideConsequenceObject.ts} +3 -8
- package/model/index.ts +20 -23
- package/model/indexSettingsAsSearchParams.ts +5 -5
- package/model/lookingSimilar.ts +15 -0
- package/model/lookingSimilarModel.ts +6 -0
- package/model/lookingSimilarQuery.ts +6 -0
- package/model/paramsConsequence.ts +23 -0
- package/model/promoteConsequenceObject.ts +16 -0
- package/model/{ruleResponse.ts → recommendRule.ts} +7 -10
- package/model/{ruleResponseMetadata.ts → recommendRuleMetadata.ts} +5 -2
- package/model/recommendationsHits.ts +0 -10
- package/model/recommendationsRequest.ts +6 -2
- package/model/{baseRecommendedForYouQuery.ts → recommendedForYou.ts} +3 -5
- package/model/recommendedForYouModel.ts +1 -1
- package/model/recommendedForYouQuery.ts +2 -3
- package/model/relatedModel.ts +6 -0
- package/model/relatedProducts.ts +15 -0
- package/model/relatedQuery.ts +6 -0
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/{recommendationModels.ts → searchParams.ts} +3 -4
- package/model/searchRecommendRulesParams.ts +19 -4
- package/model/searchRecommendRulesResponse.ts +3 -3
- package/model/sortRemainingBy.ts +1 -1
- package/model/trendingFacetHit.ts +2 -2
- package/model/{baseTrendingFacetsQuery.ts → trendingFacets.ts} +7 -4
- package/model/trendingFacetsModel.ts +1 -1
- package/model/trendingFacetsQuery.ts +2 -3
- package/model/trendingItems.ts +20 -0
- package/model/trendingItemsModel.ts +1 -1
- package/model/trendingItemsQuery.ts +2 -2
- package/package.json +7 -7
- package/dist/model/anchoring.d.ts +0 -5
- package/dist/model/anchoring.d.ts.map +0 -1
- package/dist/model/automaticFacetFilter.d.ts +0 -18
- package/dist/model/automaticFacetFilter.d.ts.map +0 -1
- package/dist/model/automaticFacetFilters.d.ts +0 -6
- package/dist/model/automaticFacetFilters.d.ts.map +0 -1
- package/dist/model/baseRecommendationsQuery.d.ts +0 -12
- package/dist/model/baseRecommendationsQuery.d.ts.map +0 -1
- package/dist/model/baseRecommendedForYouQuery.d.ts +0 -8
- package/dist/model/baseRecommendedForYouQuery.d.ts.map +0 -1
- package/dist/model/baseRecommendedForYouQueryParameters.d.ts +0 -7
- package/dist/model/baseRecommendedForYouQueryParameters.d.ts.map +0 -1
- package/dist/model/baseTrendingFacetsQuery.d.ts +0 -9
- package/dist/model/baseTrendingFacetsQuery.d.ts.map +0 -1
- package/dist/model/baseTrendingItemsQuery.d.ts +0 -16
- package/dist/model/baseTrendingItemsQuery.d.ts.map +0 -1
- package/dist/model/consequenceHide.d.ts +0 -10
- package/dist/model/consequenceHide.d.ts.map +0 -1
- package/dist/model/consequenceParams.d.ts +0 -5
- package/dist/model/consequenceParams.d.ts.map +0 -1
- package/dist/model/consequenceQuery.d.ts +0 -6
- package/dist/model/consequenceQuery.d.ts.map +0 -1
- package/dist/model/consequenceQueryObject.d.ts +0 -12
- package/dist/model/consequenceQueryObject.d.ts.map +0 -1
- package/dist/model/edit.d.ts +0 -13
- package/dist/model/edit.d.ts.map +0 -1
- package/dist/model/editType.d.ts +0 -5
- package/dist/model/editType.d.ts.map +0 -1
- package/dist/model/params.d.ts +0 -13
- package/dist/model/params.d.ts.map +0 -1
- package/dist/model/promote.d.ts +0 -4
- package/dist/model/promote.d.ts.map +0 -1
- package/dist/model/promoteObjectID.d.ts +0 -14
- package/dist/model/promoteObjectID.d.ts.map +0 -1
- package/dist/model/promoteObjectIDs.d.ts +0 -14
- package/dist/model/promoteObjectIDs.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/recommendationsQuery.d.ts +0 -4
- package/dist/model/recommendationsQuery.d.ts.map +0 -1
- package/dist/model/recommendedForYouQueryParameters.d.ts +0 -4
- package/dist/model/recommendedForYouQueryParameters.d.ts.map +0 -1
- package/dist/model/ruleResponse.d.ts +0 -27
- package/dist/model/ruleResponse.d.ts.map +0 -1
- package/dist/model/ruleResponseMetadata.d.ts +0 -7
- package/dist/model/ruleResponseMetadata.d.ts.map +0 -1
- package/model/anchoring.ts +0 -6
- package/model/automaticFacetFilter.ts +0 -21
- package/model/automaticFacetFilters.ts +0 -8
- package/model/baseRecommendationsQuery.ts +0 -17
- package/model/baseRecommendedForYouQueryParameters.ts +0 -8
- package/model/baseTrendingItemsQuery.ts +0 -22
- package/model/consequenceParams.ts +0 -9
- package/model/consequenceQuery.ts +0 -8
- package/model/consequenceQueryObject.ts +0 -15
- package/model/edit.ts +0 -17
- package/model/params.ts +0 -18
- package/model/promote.ts +0 -6
- package/model/promoteObjectIDs.ts +0 -16
- package/model/recommendedForYouQueryParameters.ts +0 -7
package/dist/builds/browser.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare function recommendClient(appId: string, apiKey: string, options?:
|
|
|
16
16
|
customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
|
|
17
17
|
customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
|
|
18
18
|
deleteRecommendRule({ indexName, model, objectID }: import("../model").DeleteRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").DeletedAtResponse>;
|
|
19
|
-
getRecommendRule({ indexName, model, objectID }: import("../model").GetRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").
|
|
19
|
+
getRecommendRule({ indexName, model, objectID }: import("../model").GetRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").RecommendRule>;
|
|
20
20
|
getRecommendStatus({ indexName, model, taskID }: import("../model").GetRecommendStatusProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").GetRecommendTaskResponse>;
|
|
21
21
|
getRecommendations(getRecommendationsParams: import("../model").GetRecommendationsParams, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").GetRecommendationsResponse>;
|
|
22
22
|
searchRecommendRules({ indexName, model, searchRecommendRulesParams, }: import("../model").SearchRecommendRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").SearchRecommendRulesResponse>;
|
package/dist/builds/node.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare function recommendClient(appId: string, apiKey: string, options?:
|
|
|
16
16
|
customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
|
|
17
17
|
customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
|
|
18
18
|
deleteRecommendRule({ indexName, model, objectID }: import("../model").DeleteRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").DeletedAtResponse>;
|
|
19
|
-
getRecommendRule({ indexName, model, objectID }: import("../model").GetRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").
|
|
19
|
+
getRecommendRule({ indexName, model, objectID }: import("../model").GetRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").RecommendRule>;
|
|
20
20
|
getRecommendStatus({ indexName, model, taskID }: import("../model").GetRecommendStatusProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").GetRecommendTaskResponse>;
|
|
21
21
|
getRecommendations(getRecommendationsParams: import("../model").GetRecommendationsParams, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").GetRecommendationsResponse>;
|
|
22
22
|
searchRecommendRules({ indexName, model, searchRecommendRulesParams, }: import("../model").SearchRecommendRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").SearchRecommendRulesResponse>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Facet attribute. Only recommendations with the same value (or only recommendations with a different value) as the original viewed item are included.
|
|
3
|
+
*/
|
|
4
|
+
export type AutoFacetFilter = {
|
|
5
|
+
/**
|
|
6
|
+
* Facet attribute.
|
|
7
|
+
*/
|
|
8
|
+
facet?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the filter is negative. If true, recommendations must not have the same value for the `facet` attribute. If false, recommendations must have the same value for the `facet` attribute.
|
|
11
|
+
*/
|
|
12
|
+
negative?: boolean;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=autoFacetFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autoFacetFilter.d.ts","sourceRoot":"","sources":["../../model/autoFacetFilter.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import type { SearchParams } from './searchParams';
|
|
1
2
|
export type BaseRecommendRequest = {
|
|
2
3
|
/**
|
|
3
4
|
* Index name.
|
|
4
5
|
*/
|
|
5
6
|
indexName: string;
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
+
* Minimum score a recommendation must have to be included in the response.
|
|
8
9
|
*/
|
|
9
|
-
threshold
|
|
10
|
+
threshold: number;
|
|
10
11
|
/**
|
|
11
|
-
* Maximum number of recommendations to retrieve.
|
|
12
|
+
* Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
|
|
12
13
|
*/
|
|
13
14
|
maxRecommendations?: number;
|
|
15
|
+
queryParameters?: SearchParams;
|
|
14
16
|
};
|
|
15
17
|
//# sourceMappingURL=baseRecommendRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseRecommendRequest.d.ts","sourceRoot":"","sources":["../../model/baseRecommendRequest.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,
|
|
1
|
+
{"version":3,"file":"baseRecommendRequest.d.ts","sourceRoot":"","sources":["../../model/baseRecommendRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,eAAe,CAAC,EAAE,YAAY,CAAC;CAChC,CAAC"}
|
|
@@ -10,7 +10,7 @@ export type BaseSearchParamsWithoutQuery = {
|
|
|
10
10
|
*/
|
|
11
11
|
similarQuery?: string;
|
|
12
12
|
/**
|
|
13
|
-
* Filter
|
|
13
|
+
* 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/).
|
|
14
14
|
*/
|
|
15
15
|
filters?: string;
|
|
16
16
|
facetFilters?: FacetFilters;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { BaseRecommendRequest } from './baseRecommendRequest';
|
|
2
|
+
import type { FrequentlyBoughtTogether } from './frequentlyBoughtTogether';
|
|
3
|
+
export type BoughtTogetherQuery = BaseRecommendRequest & FrequentlyBoughtTogether;
|
|
4
|
+
//# sourceMappingURL=boughtTogetherQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boughtTogetherQuery.d.ts","sourceRoot":"","sources":["../../model/boughtTogetherQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GACpD,wBAAwB,CAAC"}
|
|
@@ -69,7 +69,7 @@ export type DeleteRecommendRuleProps = {
|
|
|
69
69
|
*/
|
|
70
70
|
indexName: string;
|
|
71
71
|
/**
|
|
72
|
-
* [Recommend
|
|
72
|
+
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
73
73
|
*/
|
|
74
74
|
model: RecommendModels;
|
|
75
75
|
/**
|
|
@@ -86,7 +86,7 @@ export type GetRecommendRuleProps = {
|
|
|
86
86
|
*/
|
|
87
87
|
indexName: string;
|
|
88
88
|
/**
|
|
89
|
-
* [Recommend
|
|
89
|
+
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
90
90
|
*/
|
|
91
91
|
model: RecommendModels;
|
|
92
92
|
/**
|
|
@@ -103,11 +103,11 @@ export type GetRecommendStatusProps = {
|
|
|
103
103
|
*/
|
|
104
104
|
indexName: string;
|
|
105
105
|
/**
|
|
106
|
-
* [Recommend
|
|
106
|
+
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
107
107
|
*/
|
|
108
108
|
model: RecommendModels;
|
|
109
109
|
/**
|
|
110
|
-
* Unique
|
|
110
|
+
* Unique task identifier.
|
|
111
111
|
*/
|
|
112
112
|
taskID: number;
|
|
113
113
|
};
|
|
@@ -120,7 +120,7 @@ export type SearchRecommendRulesProps = {
|
|
|
120
120
|
*/
|
|
121
121
|
indexName: string;
|
|
122
122
|
/**
|
|
123
|
-
* [Recommend
|
|
123
|
+
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
124
124
|
*/
|
|
125
125
|
model: RecommendModels;
|
|
126
126
|
searchRecommendRulesParams?: SearchRecommendRulesParams;
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Condition that triggers the rule. If not specified, the rule is triggered for all recommendations.
|
|
3
|
+
*/
|
|
2
4
|
export type Condition = {
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* 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/).
|
|
5
7
|
*/
|
|
6
|
-
|
|
7
|
-
anchoring?: Anchoring;
|
|
8
|
-
/**
|
|
9
|
-
* Whether the pattern should match plurals, synonyms, and typos.
|
|
10
|
-
*/
|
|
11
|
-
alternatives?: boolean;
|
|
8
|
+
filters?: string;
|
|
12
9
|
/**
|
|
13
10
|
* 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
11
|
*/
|
|
15
12
|
context?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
|
|
18
|
-
*/
|
|
19
|
-
filters?: string;
|
|
20
13
|
};
|
|
21
14
|
//# sourceMappingURL=condition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../model/condition.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../model/condition.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { HideConsequenceObject } from './hideConsequenceObject';
|
|
2
|
+
import type { ParamsConsequence } from './paramsConsequence';
|
|
3
|
+
import type { PromoteConsequenceObject } from './promoteConsequenceObject';
|
|
4
4
|
/**
|
|
5
|
-
* Effect of the rule.
|
|
5
|
+
* Effect of the rule.
|
|
6
6
|
*/
|
|
7
7
|
export type Consequence = {
|
|
8
|
-
params?: ConsequenceParams;
|
|
9
8
|
/**
|
|
10
|
-
*
|
|
9
|
+
* Exclude items from recommendations.
|
|
11
10
|
*/
|
|
12
|
-
|
|
11
|
+
hide?: HideConsequenceObject[];
|
|
13
12
|
/**
|
|
14
|
-
*
|
|
13
|
+
* Place items at specific positions in the list of recommendations.
|
|
15
14
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* Records you want to hide from the search results.
|
|
19
|
-
*/
|
|
20
|
-
hide?: ConsequenceHide[];
|
|
21
|
-
/**
|
|
22
|
-
* A JSON object with custom data that will be appended to the `userData` array in the response. This object isn\'t interpreted by the API and is limited to 1 kB of minified JSON.
|
|
23
|
-
*/
|
|
24
|
-
userData?: any | null;
|
|
15
|
+
promote?: PromoteConsequenceObject[];
|
|
16
|
+
params?: ParamsConsequence;
|
|
25
17
|
};
|
|
26
18
|
//# sourceMappingURL=consequence.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consequence.d.ts","sourceRoot":"","sources":["../../model/consequence.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"consequence.d.ts","sourceRoot":"","sources":["../../model/consequence.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAErC,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 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.
|
|
2
|
+
* 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.
|
|
3
3
|
*/
|
|
4
4
|
export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
|
|
5
5
|
//# sourceMappingURL=exactOnSingleWordQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fallbackParams.d.ts","sourceRoot":"","sources":["../../model/fallbackParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fbtModel.d.ts","sourceRoot":"","sources":["../../model/fbtModel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frequentlyBoughtTogether.d.ts","sourceRoot":"","sources":["../../model/frequentlyBoughtTogether.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,QAAQ,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { RecommendationsRequest } from './recommendationsRequest';
|
|
2
2
|
/**
|
|
3
|
-
* Recommend
|
|
3
|
+
* Recommend request body.
|
|
4
4
|
*/
|
|
5
5
|
export type GetRecommendationsParams = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Recommendation request with parameters depending on the requested model.
|
|
8
8
|
*/
|
|
9
9
|
requests: RecommendationsRequest[];
|
|
10
10
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hideConsequenceObject.d.ts","sourceRoot":"","sources":["../../model/hideConsequenceObject.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1,31 +1,19 @@
|
|
|
1
1
|
export * from './advancedSyntaxFeatures';
|
|
2
2
|
export * from './alternativesAsExact';
|
|
3
|
-
export * from './anchoring';
|
|
4
3
|
export * from './aroundPrecision';
|
|
5
4
|
export * from './aroundPrecisionFromValueInner';
|
|
6
5
|
export * from './aroundRadius';
|
|
7
6
|
export * from './aroundRadiusAll';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './automaticFacetFilters';
|
|
7
|
+
export * from './autoFacetFilter';
|
|
10
8
|
export * from './baseRecommendRequest';
|
|
11
|
-
export * from './baseRecommendationsQuery';
|
|
12
|
-
export * from './baseRecommendedForYouQuery';
|
|
13
|
-
export * from './baseRecommendedForYouQueryParameters';
|
|
14
9
|
export * from './baseSearchParams';
|
|
15
10
|
export * from './baseSearchParamsWithoutQuery';
|
|
16
11
|
export * from './baseSearchResponse';
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './baseTrendingItemsQuery';
|
|
12
|
+
export * from './boughtTogetherQuery';
|
|
19
13
|
export * from './condition';
|
|
20
14
|
export * from './consequence';
|
|
21
|
-
export * from './consequenceHide';
|
|
22
|
-
export * from './consequenceParams';
|
|
23
|
-
export * from './consequenceQuery';
|
|
24
|
-
export * from './consequenceQueryObject';
|
|
25
15
|
export * from './deletedAtResponse';
|
|
26
16
|
export * from './distinct';
|
|
27
|
-
export * from './edit';
|
|
28
|
-
export * from './editType';
|
|
29
17
|
export * from './errorBase';
|
|
30
18
|
export * from './exactOnSingleWordQuery';
|
|
31
19
|
export * from './exhaustive';
|
|
@@ -33,46 +21,53 @@ export * from './facetFilters';
|
|
|
33
21
|
export * from './facetOrdering';
|
|
34
22
|
export * from './facets';
|
|
35
23
|
export * from './facetsStats';
|
|
24
|
+
export * from './fallbackParams';
|
|
25
|
+
export * from './fbtModel';
|
|
26
|
+
export * from './frequentlyBoughtTogether';
|
|
36
27
|
export * from './getRecommendTaskResponse';
|
|
37
28
|
export * from './getRecommendationsParams';
|
|
38
29
|
export * from './getRecommendationsResponse';
|
|
30
|
+
export * from './hideConsequenceObject';
|
|
39
31
|
export * from './highlightResult';
|
|
40
32
|
export * from './highlightResultOption';
|
|
41
33
|
export * from './ignorePlurals';
|
|
42
34
|
export * from './indexSettingsAsSearchParams';
|
|
35
|
+
export * from './lookingSimilar';
|
|
36
|
+
export * from './lookingSimilarModel';
|
|
37
|
+
export * from './lookingSimilarQuery';
|
|
43
38
|
export * from './matchLevel';
|
|
44
39
|
export * from './matchedGeoLocation';
|
|
45
40
|
export * from './mixedSearchFilters';
|
|
46
41
|
export * from './mode';
|
|
47
42
|
export * from './numericFilters';
|
|
48
43
|
export * from './optionalFilters';
|
|
49
|
-
export * from './
|
|
44
|
+
export * from './paramsConsequence';
|
|
50
45
|
export * from './personalization';
|
|
51
|
-
export * from './
|
|
52
|
-
export * from './promoteObjectID';
|
|
53
|
-
export * from './promoteObjectIDs';
|
|
46
|
+
export * from './promoteConsequenceObject';
|
|
54
47
|
export * from './queryType';
|
|
55
48
|
export * from './rankingInfo';
|
|
56
49
|
export * from './reRankingApplyFilter';
|
|
57
50
|
export * from './recommendHit';
|
|
58
51
|
export * from './recommendModels';
|
|
59
|
-
export * from './
|
|
52
|
+
export * from './recommendRule';
|
|
53
|
+
export * from './recommendRuleMetadata';
|
|
60
54
|
export * from './recommendationsHit';
|
|
61
55
|
export * from './recommendationsHits';
|
|
62
|
-
export * from './recommendationsQuery';
|
|
63
56
|
export * from './recommendationsRequest';
|
|
64
57
|
export * from './recommendationsResults';
|
|
58
|
+
export * from './recommendedForYou';
|
|
65
59
|
export * from './recommendedForYouModel';
|
|
66
60
|
export * from './recommendedForYouQuery';
|
|
67
|
-
export * from './recommendedForYouQueryParameters';
|
|
68
61
|
export * from './redirect';
|
|
69
62
|
export * from './redirectRuleIndexMetadata';
|
|
70
63
|
export * from './redirectRuleIndexMetadataData';
|
|
64
|
+
export * from './relatedModel';
|
|
65
|
+
export * from './relatedProducts';
|
|
66
|
+
export * from './relatedQuery';
|
|
71
67
|
export * from './removeStopWords';
|
|
72
68
|
export * from './removeWordsIfNoResults';
|
|
73
69
|
export * from './renderingContent';
|
|
74
|
-
export * from './
|
|
75
|
-
export * from './ruleResponseMetadata';
|
|
70
|
+
export * from './searchParams';
|
|
76
71
|
export * from './searchParamsObject';
|
|
77
72
|
export * from './searchParamsQuery';
|
|
78
73
|
export * from './searchRecommendRulesParams';
|
|
@@ -85,8 +80,10 @@ export * from './supportedLanguage';
|
|
|
85
80
|
export * from './tagFilters';
|
|
86
81
|
export * from './taskStatus';
|
|
87
82
|
export * from './trendingFacetHit';
|
|
83
|
+
export * from './trendingFacets';
|
|
88
84
|
export * from './trendingFacetsModel';
|
|
89
85
|
export * from './trendingFacetsQuery';
|
|
86
|
+
export * from './trendingItems';
|
|
90
87
|
export * from './trendingItemsModel';
|
|
91
88
|
export * from './trendingItemsQuery';
|
|
92
89
|
export * from './typoTolerance';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -18,11 +18,11 @@ export type IndexSettingsAsSearchParams = {
|
|
|
18
18
|
*/
|
|
19
19
|
attributesToRetrieve?: string[];
|
|
20
20
|
/**
|
|
21
|
-
* Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/). The tie-breaking algorithm sequentially applies each criterion in the order they\'re specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/), you put the sorting attribute at the top of the list. **Modifiers**
|
|
21
|
+
* Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/). The tie-breaking algorithm sequentially applies each criterion in the order they\'re specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/), you put the sorting attribute at the top of the list. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. Before you modify the default setting, you should test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
|
|
22
22
|
*/
|
|
23
23
|
ranking?: string[];
|
|
24
24
|
/**
|
|
25
|
-
* Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers**
|
|
25
|
+
* Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
|
|
26
26
|
*/
|
|
27
27
|
customRanking?: string[];
|
|
28
28
|
/**
|
|
@@ -114,11 +114,11 @@ export type IndexSettingsAsSearchParams = {
|
|
|
114
114
|
disableExactOnAttributes?: string[];
|
|
115
115
|
exactOnSingleWordQuery?: ExactOnSingleWordQuery;
|
|
116
116
|
/**
|
|
117
|
-
* Alternatives of query words that should be considered as exact matches by the Exact ranking criterion.
|
|
117
|
+
* Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. - `ignorePlurals`. Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. - `singleWordSynonym`. Single-word synonyms, such as \"NY/NYC\" are considered exact matches. - `multiWordsSynonym`. Multi-word synonyms, such as \"NY/New York\" are considered exact matches.
|
|
118
118
|
*/
|
|
119
119
|
alternativesAsExact?: AlternativesAsExact[];
|
|
120
120
|
/**
|
|
121
|
-
* Advanced search syntax features you want to support.
|
|
121
|
+
* Advanced search syntax features you want to support. - `exactPhrase`. Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". - `excludeWords`. Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". This setting only has an effect if `advancedSyntax` is true.
|
|
122
122
|
*/
|
|
123
123
|
advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
|
|
124
124
|
distinct?: Distinct;
|
|
@@ -143,7 +143,7 @@ export type IndexSettingsAsSearchParams = {
|
|
|
143
143
|
*/
|
|
144
144
|
maxValuesPerFacet?: number;
|
|
145
145
|
/**
|
|
146
|
-
* Order in which to retrieve facet values.
|
|
146
|
+
* Order in which to retrieve facet values. - `count`. Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. - `alpha`. Retrieve facet values alphabetically. This setting doesn\'t influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).
|
|
147
147
|
*/
|
|
148
148
|
sortFacetValuesBy?: string;
|
|
149
149
|
/**
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FallbackParams } from './fallbackParams';
|
|
2
|
+
import type { LookingSimilarModel } from './lookingSimilarModel';
|
|
3
|
+
export type LookingSimilar = {
|
|
4
|
+
model: LookingSimilarModel;
|
|
5
|
+
/**
|
|
6
|
+
* Unique record identifier.
|
|
7
|
+
*/
|
|
8
|
+
objectID: string;
|
|
9
|
+
fallbackParameters?: FallbackParams;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=lookingSimilar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookingSimilar.d.ts","sourceRoot":"","sources":["../../model/lookingSimilar.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,mBAAmB,CAAC;IAE3B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,CAAC,EAAE,cAAc,CAAC;CACrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookingSimilarModel.d.ts","sourceRoot":"","sources":["../../model/lookingSimilarModel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookingSimilarQuery.d.ts","sourceRoot":"","sources":["../../model/lookingSimilarQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AutoFacetFilter } from './autoFacetFilter';
|
|
2
|
+
/**
|
|
3
|
+
* Filter or boost recommendations matching a facet filter.
|
|
4
|
+
*/
|
|
5
|
+
export type ParamsConsequence = {
|
|
6
|
+
/**
|
|
7
|
+
* Filter recommendations that match or don\'t match the same `facet:facet_value` combination as the viewed item.
|
|
8
|
+
*/
|
|
9
|
+
automaticFacetFilters?: AutoFacetFilter[];
|
|
10
|
+
/**
|
|
11
|
+
* 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/).
|
|
12
|
+
*/
|
|
13
|
+
filters?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don\'t exclude records from the search results. Records that match the optional filter rank before records that don\'t match. Matches with higher weights (`<score=N>`) rank before matches with lower weights. If you\'re using a negative filter `facet:-value`, matching records rank after records that don\'t match.
|
|
16
|
+
*/
|
|
17
|
+
optionalFilters?: string[];
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=paramsConsequence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paramsConsequence.d.ts","sourceRoot":"","sources":["../../model/paramsConsequence.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,eAAe,EAAE,CAAC;IAE1C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Object ID and position of the recommendation you want to pin.
|
|
3
|
+
*/
|
|
4
|
+
export type PromoteConsequenceObject = {
|
|
5
|
+
/**
|
|
6
|
+
* Unique record identifier.
|
|
7
|
+
*/
|
|
8
|
+
objectID?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Index in the list of recommendations where to place this item.
|
|
11
|
+
*/
|
|
12
|
+
position?: number;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=promoteConsequenceObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promoteConsequenceObject.d.ts","sourceRoot":"","sources":["../../model/promoteConsequenceObject.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Condition } from './condition';
|
|
2
|
+
import type { Consequence } from './consequence';
|
|
3
|
+
import type { RecommendRuleMetadata } from './recommendRuleMetadata';
|
|
4
|
+
/**
|
|
5
|
+
* Recommend rule.
|
|
6
|
+
*/
|
|
7
|
+
export type RecommendRule = {
|
|
8
|
+
_metadata?: RecommendRuleMetadata;
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier of a rule object.
|
|
11
|
+
*/
|
|
12
|
+
objectID?: string;
|
|
13
|
+
condition?: Condition;
|
|
14
|
+
consequence?: Consequence;
|
|
15
|
+
/**
|
|
16
|
+
* Description of the rule\'s purpose. This can be helpful for display in the Algolia dashboard.
|
|
17
|
+
*/
|
|
18
|
+
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Indicates whether to enable the rule. If it isn\'t enabled, it isn\'t applied at query time.
|
|
21
|
+
*/
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=recommendRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommendRule.d.ts","sourceRoot":"","sources":["../../model/recommendRule.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAElC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
|