@algolia/recommend 5.55.1 → 5.55.2
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/README.md +4 -4
- package/dist/browser.d.ts +7 -22
- package/dist/builds/browser.js +1 -1
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +2 -2
- package/dist/builds/fetch.js +1 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +1 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +1 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +1 -1
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +7 -22
- package/dist/node.d.cts +7 -22
- package/dist/node.d.ts +7 -22
- package/dist/src/recommendClient.cjs +1 -1
- package/dist/src/recommendClient.cjs.map +1 -1
- package/dist/src/recommendClient.js +1 -1
- package/dist/src/recommendClient.js.map +1 -1
- package/dist/worker.d.ts +7 -22
- package/package.json +9 -9
package/dist/worker.d.ts
CHANGED
|
@@ -53,11 +53,6 @@ type AroundRadiusAll = 'all';
|
|
|
53
53
|
*/
|
|
54
54
|
type AroundRadius = number | AroundRadiusAll;
|
|
55
55
|
|
|
56
|
-
/**
|
|
57
|
-
* Filter the search by facet values, so that only records with the same facet values are retrieved. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** - `[filter1, filter2]` is interpreted as `filter1 AND filter2`. - `[[filter1, filter2], filter3]` is interpreted as `filter1 OR filter2 AND filter3`. - `facet:-value` is interpreted as `NOT facet:value`. While it\'s best to avoid attributes that start with a `-`, you can still filter them by escaping with a backslash: `facet:\\-value`.
|
|
58
|
-
*/
|
|
59
|
-
type FacetFilters = Array<FacetFilters> | string;
|
|
60
|
-
|
|
61
56
|
type InsideBoundingBox = string | Array<Array<number>>;
|
|
62
57
|
|
|
63
58
|
/**
|
|
@@ -89,7 +84,6 @@ type BaseRecommendSearchParams = {
|
|
|
89
84
|
* 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 if the facet attribute name or facet value contains 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).
|
|
90
85
|
*/
|
|
91
86
|
filters?: string | undefined;
|
|
92
|
-
facetFilters?: FacetFilters | undefined;
|
|
93
87
|
optionalFilters?: OptionalFilters | undefined;
|
|
94
88
|
numericFilters?: NumericFilters | undefined;
|
|
95
89
|
tagFilters?: TagFilters | undefined;
|
|
@@ -168,10 +162,6 @@ type BaseRecommendSearchParams = {
|
|
|
168
162
|
* Whether to include this search when calculating processing-time percentiles.
|
|
169
163
|
*/
|
|
170
164
|
percentileComputation?: boolean | undefined;
|
|
171
|
-
/**
|
|
172
|
-
* Whether to enable A/B testing for this search.
|
|
173
|
-
*/
|
|
174
|
-
enableABTest?: boolean | undefined;
|
|
175
165
|
};
|
|
176
166
|
|
|
177
167
|
type BaseIndexSettings = {
|
|
@@ -418,10 +408,6 @@ type BaseRecommendIndexSettings = {
|
|
|
418
408
|
* Attributes to include in the API response To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
|
|
419
409
|
*/
|
|
420
410
|
attributesToRetrieve?: Array<string> | undefined;
|
|
421
|
-
/**
|
|
422
|
-
* 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, test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing).
|
|
423
|
-
*/
|
|
424
|
-
ranking?: Array<string> | undefined;
|
|
425
411
|
/**
|
|
426
412
|
* Relevancy threshold below which less relevant results aren\'t included in the results You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
|
|
427
413
|
*/
|
|
@@ -477,10 +463,6 @@ type BaseRecommendIndexSettings = {
|
|
|
477
463
|
* Whether to split compound words in the query into their building blocks For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn\'t work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won\'t be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
|
|
478
464
|
*/
|
|
479
465
|
decompoundQuery?: boolean | undefined;
|
|
480
|
-
/**
|
|
481
|
-
* Whether to enable rules.
|
|
482
|
-
*/
|
|
483
|
-
enableRules?: boolean | undefined;
|
|
484
466
|
/**
|
|
485
467
|
* Whether to enable Personalization.
|
|
486
468
|
*/
|
|
@@ -553,7 +535,7 @@ type SearchParamsQuery = {
|
|
|
553
535
|
/**
|
|
554
536
|
* Search parameters for filtering the recommendations.
|
|
555
537
|
*/
|
|
556
|
-
type RecommendSearchParams = BaseRecommendSearchParams & SearchParamsQuery & RecommendIndexSettings
|
|
538
|
+
type RecommendSearchParams = BaseRecommendSearchParams & SearchParamsQuery & RecommendIndexSettings & Record<string, unknown>;
|
|
557
539
|
|
|
558
540
|
type BaseRecommendRequest = {
|
|
559
541
|
/**
|
|
@@ -571,7 +553,10 @@ type BaseRecommendRequest = {
|
|
|
571
553
|
queryParameters?: RecommendSearchParams | undefined;
|
|
572
554
|
};
|
|
573
555
|
|
|
574
|
-
|
|
556
|
+
/**
|
|
557
|
+
* Search parameters to use for a fallback request if there aren\'t enough recommendations.
|
|
558
|
+
*/
|
|
559
|
+
type FallbackParams = BaseRecommendSearchParams & SearchParamsQuery & RecommendIndexSettings;
|
|
575
560
|
|
|
576
561
|
/**
|
|
577
562
|
* Frequently bought together model. This model recommends items that have been purchased within 1 day with the item with the ID `objectID`.
|
|
@@ -1423,7 +1408,7 @@ type SearchRecommendRulesProps = {
|
|
|
1423
1408
|
searchRecommendRulesParams?: SearchRecommendRulesParams | undefined;
|
|
1424
1409
|
};
|
|
1425
1410
|
|
|
1426
|
-
declare const apiClientVersion = "5.55.
|
|
1411
|
+
declare const apiClientVersion = "5.55.2";
|
|
1427
1412
|
declare function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
1428
1413
|
transporter: _algolia_client_common.Transporter;
|
|
1429
1414
|
/**
|
|
@@ -1574,4 +1559,4 @@ type RecommendClient = ReturnType<typeof createRecommendClient>;
|
|
|
1574
1559
|
|
|
1575
1560
|
declare function recommendClient(appId: string, apiKey: string, options?: ClientOptions | undefined): RecommendClient;
|
|
1576
1561
|
|
|
1577
|
-
export { type AdvancedSyntaxFeatures, type AlternativesAsExact, type AroundPrecision, type AroundRadius, type AroundRadiusAll, type AutoFacetFilter, type Banner, type BannerImage, type BannerImageUrl, type BannerLink, type BaseIndexSettings, type BaseRecommendIndexSettings, type BaseRecommendRequest, type BaseRecommendSearchParams, type BaseSearchResponse, type BatchRecommendRulesProps, type BooleanString, type BoughtTogetherQuery, type Condition, type Consequence, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteRecommendRuleProps, type DeletedAtResponse, type Distinct, type ErrorBase, type ExactOnSingleWordQuery, type Exhaustive, type
|
|
1562
|
+
export { type AdvancedSyntaxFeatures, type AlternativesAsExact, type AroundPrecision, type AroundRadius, type AroundRadiusAll, type AutoFacetFilter, type Banner, type BannerImage, type BannerImageUrl, type BannerLink, type BaseIndexSettings, type BaseRecommendIndexSettings, type BaseRecommendRequest, type BaseRecommendSearchParams, type BaseSearchResponse, type BatchRecommendRulesProps, type BooleanString, type BoughtTogetherQuery, type Condition, type Consequence, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteRecommendRuleProps, type DeletedAtResponse, type Distinct, type ErrorBase, type ExactOnSingleWordQuery, type Exhaustive, type FacetOrdering, type FacetStats, type FallbackParams, type FbtModel, type FrequentlyBoughtTogether, type GetRecommendRuleProps, type GetRecommendStatusProps, type GetRecommendTaskResponse, type GetRecommendationsParams, type GetRecommendationsResponse, type HideConsequenceObject, type HighlightResult, type HighlightResultOption, type IgnorePlurals, type IndexSettingsFacets, type InsideBoundingBox, type LegacyGetRecommendationsParams, type LookingSimilar, type LookingSimilarModel, type LookingSimilarQuery, type MatchLevel, type MatchedGeoLocation, type NumericFilters, type OptionalFilters, type OptionalWords, type ParamsConsequence, type Personalization, type PromoteConsequenceObject, type QueryType, type Range, type RankingInfo, type ReRankingApplyFilter, type RecommendClient, type RecommendHit, type RecommendIndexSettings, type RecommendModels, type RecommendRule, type RecommendSearchParams, type RecommendUpdatedAtResponse, type RecommendationsHit, type RecommendationsHits, type RecommendationsRequest, type RecommendationsResults, type Redirect, type RedirectRuleIndexData, type RedirectRuleIndexMetadata, type RedirectURL, type RelatedModel, type RelatedProducts, type RelatedQuery, type RemoveStopWords, type RemoveWordsIfNoResults, type RenderingContent, type RuleMetadata, type SearchPagination, type SearchParamsQuery, type SearchRecommendRulesParams, type SearchRecommendRulesProps, type SearchRecommendRulesResponse, type SnippetResult, type SnippetResultOption, type SortRemainingBy, type SupportedLanguage, type TagFilters, type TaskStatus, type TimeRange, type TrendingFacetHit, type TrendingFacets, type TrendingFacetsModel, type TrendingFacetsQuery, type TrendingItems, type TrendingItemsModel, type TrendingItemsQuery, type TypoTolerance, type TypoToleranceEnum, type Value, type Widgets, apiClientVersion, recommendClient };
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.55.
|
|
2
|
+
"version": "5.55.2",
|
|
3
3
|
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
|
|
@@ -54,21 +54,21 @@
|
|
|
54
54
|
"index.d.ts"
|
|
55
55
|
],
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@algolia/client-common": "5.55.
|
|
58
|
-
"@algolia/requester-browser-xhr": "5.55.
|
|
59
|
-
"@algolia/requester-fetch": "5.55.
|
|
60
|
-
"@algolia/requester-node-http": "5.55.
|
|
57
|
+
"@algolia/client-common": "5.55.2",
|
|
58
|
+
"@algolia/requester-browser-xhr": "5.55.2",
|
|
59
|
+
"@algolia/requester-fetch": "5.55.2",
|
|
60
|
+
"@algolia/requester-node-http": "5.55.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@arethetypeswrong/cli": "0.18.
|
|
64
|
-
"@types/node": "
|
|
63
|
+
"@arethetypeswrong/cli": "0.18.4",
|
|
64
|
+
"@types/node": "26.0.1",
|
|
65
65
|
"publint": "0.3.21",
|
|
66
|
-
"rollup": "4.
|
|
66
|
+
"rollup": "4.62.2",
|
|
67
67
|
"tsup": "8.5.1",
|
|
68
68
|
"typescript": "5.9.3"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">= 14.0.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "ceb55d8881b51af583ed83a183fbfc000aea213a"
|
|
74
74
|
}
|