@algolia/recommend 5.0.0-alpha.99 → 5.0.0-beta.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/dist/builds/browser.d.ts +21 -3
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +21 -3
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/model/aroundPrecision.d.ts +1 -1
- package/dist/model/aroundPrecisionFromValueInner.d.ts +9 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
- package/dist/model/aroundRadius.d.ts +1 -1
- package/dist/model/aroundRadiusAll.d.ts +3 -0
- package/dist/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/model/autoFacetFilter.d.ts +14 -0
- package/dist/model/autoFacetFilter.d.ts.map +1 -0
- package/dist/model/baseRecommendRequest.d.ts +6 -4
- package/dist/model/baseRecommendRequest.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +26 -29
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +10 -6
- package/dist/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/model/boughtTogetherQuery.d.ts +4 -0
- package/dist/model/boughtTogetherQuery.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +11 -11
- package/dist/model/condition.d.ts +6 -9
- 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 +2 -2
- package/dist/model/distinct.d.ts +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/model/facetFilters.d.ts +2 -3
- package/dist/model/facetFilters.d.ts.map +1 -1
- package/dist/model/facetOrdering.d.ts +2 -2
- package/dist/model/facets.d.ts +2 -2
- 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/highlightResult.d.ts +1 -1
- package/dist/model/highlightResult.d.ts.map +1 -1
- package/dist/model/highlightResultOption.d.ts +3 -3
- package/dist/model/ignorePlurals.d.ts +3 -2
- package/dist/model/ignorePlurals.d.ts.map +1 -1
- package/dist/model/index.d.ts +21 -24
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +32 -35
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/model/lookingSimilar.d.ts +11 -0
- package/dist/model/lookingSimilar.d.ts.map +1 -0
- package/dist/model/lookingSimilarModel.d.ts +5 -0
- package/dist/model/lookingSimilarModel.d.ts.map +1 -0
- package/dist/model/lookingSimilarQuery.d.ts +4 -0
- package/dist/model/lookingSimilarQuery.d.ts.map +1 -0
- package/dist/model/matchLevel.d.ts +1 -1
- package/dist/model/mode.d.ts +1 -1
- package/dist/model/numericFilters.d.ts +2 -3
- package/dist/model/numericFilters.d.ts.map +1 -1
- package/dist/model/optionalFilters.d.ts +2 -3
- package/dist/model/optionalFilters.d.ts.map +1 -1
- package/dist/model/paramsConsequence.d.ts +19 -0
- package/dist/model/paramsConsequence.d.ts.map +1 -0
- package/dist/model/promoteConsequenceObject.d.ts +14 -0
- package/dist/model/promoteConsequenceObject.d.ts.map +1 -0
- package/dist/model/queryType.d.ts +1 -1
- package/dist/model/rankingInfo.d.ts +10 -7
- package/dist/model/rankingInfo.d.ts.map +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +2 -3
- package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
- package/dist/model/recommendHit.d.ts +3 -3
- 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/removeStopWords.d.ts +3 -2
- package/dist/model/removeStopWords.d.ts.map +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/model/renderingContent.d.ts +1 -1
- package/dist/model/searchParams.d.ts +3 -0
- package/dist/model/searchParams.d.ts.map +1 -0
- package/dist/model/searchParamsObject.d.ts +3 -0
- package/dist/model/searchParamsObject.d.ts.map +1 -1
- package/dist/model/searchParamsQuery.d.ts +1 -1
- package/dist/model/searchRecommendRulesParams.d.ts +18 -6
- package/dist/model/searchRecommendRulesParams.d.ts.map +1 -1
- package/dist/model/searchRecommendRulesResponse.d.ts +6 -6
- package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -1
- package/dist/model/semanticSearch.d.ts +2 -2
- package/dist/model/snippetResult.d.ts +1 -1
- package/dist/model/snippetResult.d.ts.map +1 -1
- package/dist/model/snippetResultOption.d.ts +2 -2
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/supportedLanguage.d.ts +5 -0
- package/dist/model/supportedLanguage.d.ts.map +1 -0
- package/dist/model/tagFilters.d.ts +2 -3
- package/dist/model/tagFilters.d.ts.map +1 -1
- package/dist/model/taskStatus.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/model/typoTolerance.d.ts +1 -1
- package/dist/model/typoToleranceEnum.d.ts +3 -0
- package/dist/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/model/value.d.ts +1 -1
- package/dist/recommend.cjs +54 -45
- package/dist/recommend.esm.browser.js +42 -38
- package/dist/recommend.esm.node.js +54 -45
- package/dist/recommend.umd.js +2 -2
- package/dist/src/recommendClient.d.ts +34 -32
- package/dist/src/recommendClient.d.ts.map +1 -1
- package/model/aroundPrecision.ts +1 -1
- package/model/aroundPrecisionFromValueInner.ts +9 -0
- package/model/aroundRadius.ts +1 -1
- package/model/aroundRadiusAll.ts +3 -0
- package/model/autoFacetFilter.ts +16 -0
- package/model/baseRecommendRequest.ts +8 -4
- package/model/baseSearchParamsWithoutQuery.ts +26 -30
- package/model/baseSearchResponse.ts +11 -6
- package/model/{recommendationsQuery.ts → boughtTogetherQuery.ts} +3 -3
- package/model/clientMethodProps.ts +11 -11
- package/model/condition.ts +6 -12
- package/model/consequence.ts +9 -19
- package/model/deletedAtResponse.ts +2 -2
- package/model/distinct.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +1 -1
- package/model/facetFilters.ts +2 -4
- package/model/facetOrdering.ts +2 -2
- package/model/facets.ts +2 -2
- package/model/{recommendationModels.ts → fallbackParams.ts} +3 -4
- package/model/fbtModel.ts +6 -0
- package/model/{consequenceHide.ts → frequentlyBoughtTogether.ts} +6 -5
- package/model/getRecommendationsParams.ts +2 -2
- package/model/{editType.ts → hideConsequenceObject.ts} +7 -2
- package/model/highlightResult.ts +1 -0
- package/model/highlightResultOption.ts +3 -3
- package/model/ignorePlurals.ts +4 -2
- package/model/index.ts +21 -24
- package/model/indexSettingsAsSearchParams.ts +32 -36
- package/model/lookingSimilar.ts +15 -0
- package/model/lookingSimilarModel.ts +6 -0
- package/model/lookingSimilarQuery.ts +6 -0
- package/model/matchLevel.ts +1 -1
- package/model/mode.ts +1 -1
- package/model/numericFilters.ts +2 -4
- package/model/optionalFilters.ts +2 -4
- package/model/paramsConsequence.ts +23 -0
- package/model/promoteConsequenceObject.ts +16 -0
- package/model/queryType.ts +1 -1
- package/model/rankingInfo.ts +10 -7
- package/model/reRankingApplyFilter.ts +2 -4
- package/model/recommendHit.ts +3 -3
- 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/removeStopWords.ts +4 -2
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/renderingContent.ts +1 -1
- package/model/{mixedSearchFilters.ts → searchParams.ts} +3 -1
- package/model/searchParamsObject.ts +3 -0
- package/model/searchParamsQuery.ts +1 -1
- package/model/searchRecommendRulesParams.ts +21 -6
- package/model/searchRecommendRulesResponse.ts +6 -6
- package/model/semanticSearch.ts +2 -2
- package/model/snippetResult.ts +2 -1
- package/model/snippetResultOption.ts +2 -2
- package/model/sortRemainingBy.ts +1 -1
- package/model/supportedLanguage.ts +74 -0
- package/model/tagFilters.ts +2 -4
- package/model/taskStatus.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/model/typoTolerance.ts +1 -1
- package/model/typoToleranceEnum.ts +3 -0
- package/model/value.ts +1 -1
- 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/mixedSearchFilters.d.ts +0 -2
- package/dist/model/mixedSearchFilters.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/promoteObjectID.ts +0 -16
- package/model/promoteObjectIDs.ts +0 -16
- package/model/recommendedForYouQueryParameters.ts +0 -7
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SearchParamsObject } from './searchParamsObject';
|
|
2
|
+
import type { TrendingItemsModel } from './trendingItemsModel';
|
|
3
|
+
export type TrendingItems = {
|
|
4
|
+
/**
|
|
5
|
+
* Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.
|
|
6
|
+
*/
|
|
7
|
+
facetName: string;
|
|
8
|
+
/**
|
|
9
|
+
* Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned.
|
|
10
|
+
*/
|
|
11
|
+
facetValue: string;
|
|
12
|
+
model: TrendingItemsModel;
|
|
13
|
+
fallbackParameters?: SearchParamsObject;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=trendingItems.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trendingItems.d.ts","sourceRoot":"","sources":["../../model/trendingItems.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,kBAAkB,CAAC;IAE1B,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BaseRecommendRequest } from './baseRecommendRequest';
|
|
2
|
-
import type {
|
|
3
|
-
export type TrendingItemsQuery = BaseRecommendRequest &
|
|
2
|
+
import type { TrendingItems } from './trendingItems';
|
|
3
|
+
export type TrendingItemsQuery = BaseRecommendRequest & TrendingItems;
|
|
4
4
|
//# sourceMappingURL=trendingItemsQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trendingItemsQuery.d.ts","sourceRoot":"","sources":["../../model/trendingItemsQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"trendingItemsQuery.d.ts","sourceRoot":"","sources":["../../model/trendingItemsQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG,aAAa,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TypoToleranceEnum } from './typoToleranceEnum';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Whether [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/) is enabled and how it is applied. If typo tolerance is true, `min`, or `strict`, [word splitting and concetenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) is also active.
|
|
4
4
|
*/
|
|
5
5
|
export type TypoTolerance = TypoToleranceEnum | boolean;
|
|
6
6
|
//# sourceMappingURL=typoTolerance.d.ts.map
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* - `min`. Return matches with the lowest number of typos. For example, if you have matches without typos, only include those. But if there are no matches without typos (with 1 typo), include matches with 1 typo (2 typos). - `strict`. Return matches with the two lowest numbers of typos. With `strict`, the Typo ranking criterion is applied first in the `ranking` setting.
|
|
3
|
+
*/
|
|
1
4
|
export type TypoToleranceEnum = 'min' | 'strict';
|
|
2
5
|
//# sourceMappingURL=typoToleranceEnum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typoToleranceEnum.d.ts","sourceRoot":"","sources":["../../model/typoToleranceEnum.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"typoToleranceEnum.d.ts","sourceRoot":"","sources":["../../model/typoToleranceEnum.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,QAAQ,CAAC"}
|
package/dist/model/value.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SortRemainingBy } from './sortRemainingBy';
|
|
2
2
|
export type Value = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
|
|
5
5
|
*/
|
|
6
6
|
order?: string[];
|
|
7
7
|
sortRemainingBy?: SortRemainingBy;
|
package/dist/recommend.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var clientCommon = require('@algolia/client-common');
|
|
|
4
4
|
var requesterNodeHttp = require('@algolia/requester-node-http');
|
|
5
5
|
|
|
6
6
|
// 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.
|
|
7
|
-
const apiClientVersion = '5.0.0-
|
|
7
|
+
const apiClientVersion = '5.0.0-beta.2';
|
|
8
8
|
function getDefaultHosts(appId) {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
@@ -89,7 +89,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
89
89
|
/**
|
|
90
90
|
* This method allow you to send requests to the Algolia REST API.
|
|
91
91
|
*
|
|
92
|
-
* @summary Send requests to the Algolia REST API.
|
|
93
92
|
* @param customDelete - The customDelete object.
|
|
94
93
|
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
95
94
|
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
@@ -99,7 +98,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
99
98
|
if (!path) {
|
|
100
99
|
throw new Error('Parameter `path` is required when calling `customDelete`.');
|
|
101
100
|
}
|
|
102
|
-
const requestPath = '/
|
|
101
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
103
102
|
const headers = {};
|
|
104
103
|
const queryParameters = parameters ? parameters : {};
|
|
105
104
|
const request = {
|
|
@@ -113,7 +112,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
113
112
|
/**
|
|
114
113
|
* This method allow you to send requests to the Algolia REST API.
|
|
115
114
|
*
|
|
116
|
-
* @summary Send requests to the Algolia REST API.
|
|
117
115
|
* @param customGet - The customGet object.
|
|
118
116
|
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
119
117
|
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
@@ -123,7 +121,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
123
121
|
if (!path) {
|
|
124
122
|
throw new Error('Parameter `path` is required when calling `customGet`.');
|
|
125
123
|
}
|
|
126
|
-
const requestPath = '/
|
|
124
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
127
125
|
const headers = {};
|
|
128
126
|
const queryParameters = parameters ? parameters : {};
|
|
129
127
|
const request = {
|
|
@@ -137,7 +135,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
137
135
|
/**
|
|
138
136
|
* This method allow you to send requests to the Algolia REST API.
|
|
139
137
|
*
|
|
140
|
-
* @summary Send requests to the Algolia REST API.
|
|
141
138
|
* @param customPost - The customPost object.
|
|
142
139
|
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
143
140
|
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
@@ -148,7 +145,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
148
145
|
if (!path) {
|
|
149
146
|
throw new Error('Parameter `path` is required when calling `customPost`.');
|
|
150
147
|
}
|
|
151
|
-
const requestPath = '/
|
|
148
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
152
149
|
const headers = {};
|
|
153
150
|
const queryParameters = parameters ? parameters : {};
|
|
154
151
|
const request = {
|
|
@@ -163,7 +160,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
163
160
|
/**
|
|
164
161
|
* This method allow you to send requests to the Algolia REST API.
|
|
165
162
|
*
|
|
166
|
-
* @summary Send requests to the Algolia REST API.
|
|
167
163
|
* @param customPut - The customPut object.
|
|
168
164
|
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
169
165
|
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
@@ -174,7 +170,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
174
170
|
if (!path) {
|
|
175
171
|
throw new Error('Parameter `path` is required when calling `customPut`.');
|
|
176
172
|
}
|
|
177
|
-
const requestPath = '/
|
|
173
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
178
174
|
const headers = {};
|
|
179
175
|
const queryParameters = parameters ? parameters : {};
|
|
180
176
|
const request = {
|
|
@@ -187,13 +183,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
187
183
|
return transporter.request(request, requestOptions);
|
|
188
184
|
},
|
|
189
185
|
/**
|
|
190
|
-
*
|
|
186
|
+
* Deletes a Recommend rule from a recommendation scenario.
|
|
187
|
+
*
|
|
188
|
+
* Required API Key ACLs:
|
|
189
|
+
* - editSettings.
|
|
191
190
|
*
|
|
192
|
-
* @summary Delete a Recommend rule.
|
|
193
191
|
* @param deleteRecommendRule - The deleteRecommendRule object.
|
|
194
|
-
* @param deleteRecommendRule.indexName -
|
|
195
|
-
* @param deleteRecommendRule.model - [Recommend
|
|
196
|
-
* @param deleteRecommendRule.objectID - Unique record
|
|
192
|
+
* @param deleteRecommendRule.indexName - Name of the index on which to perform the operation.
|
|
193
|
+
* @param deleteRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
194
|
+
* @param deleteRecommendRule.objectID - Unique record identifier.
|
|
197
195
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
198
196
|
*/
|
|
199
197
|
deleteRecommendRule({ indexName, model, objectID }, requestOptions) {
|
|
@@ -221,13 +219,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
221
219
|
return transporter.request(request, requestOptions);
|
|
222
220
|
},
|
|
223
221
|
/**
|
|
224
|
-
*
|
|
222
|
+
* Retrieves a Recommend rule that you previously created in the Algolia dashboard.
|
|
223
|
+
*
|
|
224
|
+
* Required API Key ACLs:
|
|
225
|
+
* - settings.
|
|
225
226
|
*
|
|
226
|
-
* @summary Get a Recommend rule.
|
|
227
227
|
* @param getRecommendRule - The getRecommendRule object.
|
|
228
|
-
* @param getRecommendRule.indexName -
|
|
229
|
-
* @param getRecommendRule.model - [Recommend
|
|
230
|
-
* @param getRecommendRule.objectID - Unique record
|
|
228
|
+
* @param getRecommendRule.indexName - Name of the index on which to perform the operation.
|
|
229
|
+
* @param getRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
230
|
+
* @param getRecommendRule.objectID - Unique record identifier.
|
|
231
231
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
232
232
|
*/
|
|
233
233
|
getRecommendRule({ indexName, model, objectID }, requestOptions) {
|
|
@@ -255,13 +255,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
255
255
|
return transporter.request(request, requestOptions);
|
|
256
256
|
},
|
|
257
257
|
/**
|
|
258
|
-
*
|
|
258
|
+
* Checks the status of a given task. Deleting a Recommend rule is asynchronous. When you delete a rule, a task is created on a queue and completed depending on the load on the server. The API response includes a task ID that you can use to check the status.
|
|
259
|
+
*
|
|
260
|
+
* Required API Key ACLs:
|
|
261
|
+
* - editSettings.
|
|
259
262
|
*
|
|
260
|
-
* @summary Get a Recommend task\'s status.
|
|
261
263
|
* @param getRecommendStatus - The getRecommendStatus object.
|
|
262
|
-
* @param getRecommendStatus.indexName -
|
|
263
|
-
* @param getRecommendStatus.model - [Recommend
|
|
264
|
-
* @param getRecommendStatus.taskID - Unique
|
|
264
|
+
* @param getRecommendStatus.indexName - Name of the index on which to perform the operation.
|
|
265
|
+
* @param getRecommendStatus.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
266
|
+
* @param getRecommendStatus.taskID - Unique task identifier.
|
|
265
267
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
266
268
|
*/
|
|
267
269
|
getRecommendStatus({ indexName, model, taskID }, requestOptions) {
|
|
@@ -289,9 +291,11 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
289
291
|
return transporter.request(request, requestOptions);
|
|
290
292
|
},
|
|
291
293
|
/**
|
|
292
|
-
*
|
|
294
|
+
* Retrieves recommendations from selected AI models.
|
|
295
|
+
*
|
|
296
|
+
* Required API Key ACLs:
|
|
297
|
+
* - search.
|
|
293
298
|
*
|
|
294
|
-
* @summary Get recommendations and trending items.
|
|
295
299
|
* @param getRecommendationsParams - The getRecommendationsParams object.
|
|
296
300
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
297
301
|
*/
|
|
@@ -317,12 +321,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
317
321
|
return transporter.request(request, requestOptions);
|
|
318
322
|
},
|
|
319
323
|
/**
|
|
320
|
-
*
|
|
324
|
+
* Searches for Recommend rules. Use an empty query to list all rules for this recommendation scenario.
|
|
325
|
+
*
|
|
326
|
+
* Required API Key ACLs:
|
|
327
|
+
* - settings.
|
|
321
328
|
*
|
|
322
|
-
* @summary List Recommend rules.
|
|
323
329
|
* @param searchRecommendRules - The searchRecommendRules object.
|
|
324
|
-
* @param searchRecommendRules.indexName -
|
|
325
|
-
* @param searchRecommendRules.model - [Recommend
|
|
330
|
+
* @param searchRecommendRules.indexName - Name of the index on which to perform the operation.
|
|
331
|
+
* @param searchRecommendRules.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
326
332
|
* @param searchRecommendRules.searchRecommendRulesParams - The searchRecommendRulesParams object.
|
|
327
333
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
328
334
|
*/
|
|
@@ -353,6 +359,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
353
359
|
}
|
|
354
360
|
|
|
355
361
|
// 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.
|
|
362
|
+
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
356
363
|
function recommendClient(appId, apiKey, options) {
|
|
357
364
|
if (!appId || typeof appId !== 'string') {
|
|
358
365
|
throw new Error('`appId` is missing.');
|
|
@@ -360,21 +367,23 @@ function recommendClient(appId, apiKey, options) {
|
|
|
360
367
|
if (!apiKey || typeof apiKey !== 'string') {
|
|
361
368
|
throw new Error('`apiKey` is missing.');
|
|
362
369
|
}
|
|
363
|
-
return
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
370
|
+
return {
|
|
371
|
+
...createRecommendClient({
|
|
372
|
+
appId,
|
|
373
|
+
apiKey,
|
|
374
|
+
timeouts: {
|
|
375
|
+
connect: clientCommon.DEFAULT_CONNECT_TIMEOUT_NODE,
|
|
376
|
+
read: clientCommon.DEFAULT_READ_TIMEOUT_NODE,
|
|
377
|
+
write: clientCommon.DEFAULT_WRITE_TIMEOUT_NODE,
|
|
378
|
+
},
|
|
379
|
+
requester: requesterNodeHttp.createHttpRequester(),
|
|
380
|
+
algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
|
|
381
|
+
responsesCache: clientCommon.createNullCache(),
|
|
382
|
+
requestsCache: clientCommon.createNullCache(),
|
|
383
|
+
hostsCache: clientCommon.createMemoryCache(),
|
|
384
|
+
...options,
|
|
385
|
+
}),
|
|
386
|
+
};
|
|
378
387
|
}
|
|
379
388
|
|
|
380
389
|
exports.apiClientVersion = apiClientVersion;
|
|
@@ -207,7 +207,7 @@ function _toPrimitive(t, r) {
|
|
|
207
207
|
}
|
|
208
208
|
function _toPropertyKey(t) {
|
|
209
209
|
var i = _toPrimitive(t, "string");
|
|
210
|
-
return "symbol" == typeof i ? i :
|
|
210
|
+
return "symbol" == typeof i ? i : i + "";
|
|
211
211
|
}
|
|
212
212
|
function _defineProperty(obj, key, value) {
|
|
213
213
|
key = _toPropertyKey(key);
|
|
@@ -281,7 +281,7 @@ function shuffle(array) {
|
|
|
281
281
|
}
|
|
282
282
|
function serializeUrl(host, path, queryParameters) {
|
|
283
283
|
const queryParametersAsString = serializeQueryParameters(queryParameters);
|
|
284
|
-
let url = `${host.protocol}://${host.url}/${path.charAt(0) === '/' ? path.
|
|
284
|
+
let url = `${host.protocol}://${host.url}${host.port ? `:${host.port}` : ''}/${path.charAt(0) === '/' ? path.substring(1) : path}`;
|
|
285
285
|
if (queryParametersAsString.length) {
|
|
286
286
|
url += `?${queryParametersAsString}`;
|
|
287
287
|
}
|
|
@@ -289,7 +289,7 @@ function serializeUrl(host, path, queryParameters) {
|
|
|
289
289
|
}
|
|
290
290
|
function serializeQueryParameters(parameters) {
|
|
291
291
|
const isObjectOrArray = value => Object.prototype.toString.call(value) === '[object Object]' || Object.prototype.toString.call(value) === '[object Array]';
|
|
292
|
-
return Object.keys(parameters).map(key => `${key}=${encodeURIComponent(isObjectOrArray(parameters[key]) ? JSON.stringify(parameters[key]) : parameters[key])}`).join('&');
|
|
292
|
+
return Object.keys(parameters).map(key => `${key}=${encodeURIComponent(isObjectOrArray(parameters[key]) ? JSON.stringify(parameters[key]) : parameters[key]).replaceAll('+', '%20')}`).join('&');
|
|
293
293
|
}
|
|
294
294
|
function serializeData(request, requestOptions) {
|
|
295
295
|
if (request.method === 'GET' || request.data === undefined && requestOptions.data === undefined) {
|
|
@@ -460,16 +460,13 @@ function createTransporter({
|
|
|
460
460
|
if (host === undefined) {
|
|
461
461
|
throw new RetryError(stackTraceWithoutCredentials(stackTrace));
|
|
462
462
|
}
|
|
463
|
-
let responseTimeout = requestOptions.
|
|
464
|
-
if (responseTimeout === undefined) {
|
|
465
|
-
responseTimeout = isRead ? timeouts.read : timeouts.write;
|
|
466
|
-
}
|
|
463
|
+
let responseTimeout = isRead ? requestOptions.timeouts?.read || timeouts.read : requestOptions.timeouts?.write || timeouts.write;
|
|
467
464
|
const payload = {
|
|
468
465
|
data,
|
|
469
466
|
headers,
|
|
470
467
|
method: request.method,
|
|
471
468
|
url: serializeUrl(host, request.path, queryParameters),
|
|
472
|
-
connectTimeout: getTimeout(timeoutsCount, timeouts.connect),
|
|
469
|
+
connectTimeout: getTimeout(timeoutsCount, requestOptions.timeouts?.connect || timeouts.connect),
|
|
473
470
|
responseTimeout: getTimeout(timeoutsCount, responseTimeout)
|
|
474
471
|
};
|
|
475
472
|
/**
|
|
@@ -697,7 +694,7 @@ function createXhrRequester() {
|
|
|
697
694
|
}
|
|
698
695
|
|
|
699
696
|
// 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.
|
|
700
|
-
const apiClientVersion = '5.0.0-
|
|
697
|
+
const apiClientVersion = '5.0.0-beta.2';
|
|
701
698
|
function getDefaultHosts(appId) {
|
|
702
699
|
return [
|
|
703
700
|
{
|
|
@@ -782,7 +779,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
782
779
|
/**
|
|
783
780
|
* This method allow you to send requests to the Algolia REST API.
|
|
784
781
|
*
|
|
785
|
-
* @summary Send requests to the Algolia REST API.
|
|
786
782
|
* @param customDelete - The customDelete object.
|
|
787
783
|
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
788
784
|
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
@@ -792,7 +788,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
792
788
|
if (!path) {
|
|
793
789
|
throw new Error('Parameter `path` is required when calling `customDelete`.');
|
|
794
790
|
}
|
|
795
|
-
const requestPath = '/
|
|
791
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
796
792
|
const headers = {};
|
|
797
793
|
const queryParameters = parameters ? parameters : {};
|
|
798
794
|
const request = {
|
|
@@ -806,7 +802,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
806
802
|
/**
|
|
807
803
|
* This method allow you to send requests to the Algolia REST API.
|
|
808
804
|
*
|
|
809
|
-
* @summary Send requests to the Algolia REST API.
|
|
810
805
|
* @param customGet - The customGet object.
|
|
811
806
|
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
812
807
|
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
@@ -816,7 +811,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
816
811
|
if (!path) {
|
|
817
812
|
throw new Error('Parameter `path` is required when calling `customGet`.');
|
|
818
813
|
}
|
|
819
|
-
const requestPath = '/
|
|
814
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
820
815
|
const headers = {};
|
|
821
816
|
const queryParameters = parameters ? parameters : {};
|
|
822
817
|
const request = {
|
|
@@ -830,7 +825,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
830
825
|
/**
|
|
831
826
|
* This method allow you to send requests to the Algolia REST API.
|
|
832
827
|
*
|
|
833
|
-
* @summary Send requests to the Algolia REST API.
|
|
834
828
|
* @param customPost - The customPost object.
|
|
835
829
|
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
836
830
|
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
@@ -841,7 +835,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
841
835
|
if (!path) {
|
|
842
836
|
throw new Error('Parameter `path` is required when calling `customPost`.');
|
|
843
837
|
}
|
|
844
|
-
const requestPath = '/
|
|
838
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
845
839
|
const headers = {};
|
|
846
840
|
const queryParameters = parameters ? parameters : {};
|
|
847
841
|
const request = {
|
|
@@ -856,7 +850,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
856
850
|
/**
|
|
857
851
|
* This method allow you to send requests to the Algolia REST API.
|
|
858
852
|
*
|
|
859
|
-
* @summary Send requests to the Algolia REST API.
|
|
860
853
|
* @param customPut - The customPut object.
|
|
861
854
|
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
862
855
|
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
@@ -867,7 +860,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
867
860
|
if (!path) {
|
|
868
861
|
throw new Error('Parameter `path` is required when calling `customPut`.');
|
|
869
862
|
}
|
|
870
|
-
const requestPath = '/
|
|
863
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
871
864
|
const headers = {};
|
|
872
865
|
const queryParameters = parameters ? parameters : {};
|
|
873
866
|
const request = {
|
|
@@ -880,13 +873,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
880
873
|
return transporter.request(request, requestOptions);
|
|
881
874
|
},
|
|
882
875
|
/**
|
|
883
|
-
*
|
|
876
|
+
* Deletes a Recommend rule from a recommendation scenario.
|
|
877
|
+
*
|
|
878
|
+
* Required API Key ACLs:
|
|
879
|
+
* - editSettings.
|
|
884
880
|
*
|
|
885
|
-
* @summary Delete a Recommend rule.
|
|
886
881
|
* @param deleteRecommendRule - The deleteRecommendRule object.
|
|
887
|
-
* @param deleteRecommendRule.indexName -
|
|
888
|
-
* @param deleteRecommendRule.model - [Recommend
|
|
889
|
-
* @param deleteRecommendRule.objectID - Unique record
|
|
882
|
+
* @param deleteRecommendRule.indexName - Name of the index on which to perform the operation.
|
|
883
|
+
* @param deleteRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
884
|
+
* @param deleteRecommendRule.objectID - Unique record identifier.
|
|
890
885
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
891
886
|
*/
|
|
892
887
|
deleteRecommendRule({ indexName, model, objectID }, requestOptions) {
|
|
@@ -914,13 +909,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
914
909
|
return transporter.request(request, requestOptions);
|
|
915
910
|
},
|
|
916
911
|
/**
|
|
917
|
-
*
|
|
912
|
+
* Retrieves a Recommend rule that you previously created in the Algolia dashboard.
|
|
913
|
+
*
|
|
914
|
+
* Required API Key ACLs:
|
|
915
|
+
* - settings.
|
|
918
916
|
*
|
|
919
|
-
* @summary Get a Recommend rule.
|
|
920
917
|
* @param getRecommendRule - The getRecommendRule object.
|
|
921
|
-
* @param getRecommendRule.indexName -
|
|
922
|
-
* @param getRecommendRule.model - [Recommend
|
|
923
|
-
* @param getRecommendRule.objectID - Unique record
|
|
918
|
+
* @param getRecommendRule.indexName - Name of the index on which to perform the operation.
|
|
919
|
+
* @param getRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
920
|
+
* @param getRecommendRule.objectID - Unique record identifier.
|
|
924
921
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
925
922
|
*/
|
|
926
923
|
getRecommendRule({ indexName, model, objectID }, requestOptions) {
|
|
@@ -948,13 +945,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
948
945
|
return transporter.request(request, requestOptions);
|
|
949
946
|
},
|
|
950
947
|
/**
|
|
951
|
-
*
|
|
948
|
+
* Checks the status of a given task. Deleting a Recommend rule is asynchronous. When you delete a rule, a task is created on a queue and completed depending on the load on the server. The API response includes a task ID that you can use to check the status.
|
|
949
|
+
*
|
|
950
|
+
* Required API Key ACLs:
|
|
951
|
+
* - editSettings.
|
|
952
952
|
*
|
|
953
|
-
* @summary Get a Recommend task\'s status.
|
|
954
953
|
* @param getRecommendStatus - The getRecommendStatus object.
|
|
955
|
-
* @param getRecommendStatus.indexName -
|
|
956
|
-
* @param getRecommendStatus.model - [Recommend
|
|
957
|
-
* @param getRecommendStatus.taskID - Unique
|
|
954
|
+
* @param getRecommendStatus.indexName - Name of the index on which to perform the operation.
|
|
955
|
+
* @param getRecommendStatus.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
956
|
+
* @param getRecommendStatus.taskID - Unique task identifier.
|
|
958
957
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
959
958
|
*/
|
|
960
959
|
getRecommendStatus({ indexName, model, taskID }, requestOptions) {
|
|
@@ -982,9 +981,11 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
982
981
|
return transporter.request(request, requestOptions);
|
|
983
982
|
},
|
|
984
983
|
/**
|
|
985
|
-
*
|
|
984
|
+
* Retrieves recommendations from selected AI models.
|
|
985
|
+
*
|
|
986
|
+
* Required API Key ACLs:
|
|
987
|
+
* - search.
|
|
986
988
|
*
|
|
987
|
-
* @summary Get recommendations and trending items.
|
|
988
989
|
* @param getRecommendationsParams - The getRecommendationsParams object.
|
|
989
990
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
990
991
|
*/
|
|
@@ -1010,12 +1011,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1010
1011
|
return transporter.request(request, requestOptions);
|
|
1011
1012
|
},
|
|
1012
1013
|
/**
|
|
1013
|
-
*
|
|
1014
|
+
* Searches for Recommend rules. Use an empty query to list all rules for this recommendation scenario.
|
|
1015
|
+
*
|
|
1016
|
+
* Required API Key ACLs:
|
|
1017
|
+
* - settings.
|
|
1014
1018
|
*
|
|
1015
|
-
* @summary List Recommend rules.
|
|
1016
1019
|
* @param searchRecommendRules - The searchRecommendRules object.
|
|
1017
|
-
* @param searchRecommendRules.indexName -
|
|
1018
|
-
* @param searchRecommendRules.model - [Recommend
|
|
1020
|
+
* @param searchRecommendRules.indexName - Name of the index on which to perform the operation.
|
|
1021
|
+
* @param searchRecommendRules.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
1019
1022
|
* @param searchRecommendRules.searchRecommendRulesParams - The searchRecommendRulesParams object.
|
|
1020
1023
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1021
1024
|
*/
|
|
@@ -1046,6 +1049,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1046
1049
|
}
|
|
1047
1050
|
|
|
1048
1051
|
// 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.
|
|
1052
|
+
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
1049
1053
|
function recommendClient(appId, apiKey, options) {
|
|
1050
1054
|
if (!appId || typeof appId !== 'string') {
|
|
1051
1055
|
throw new Error('`appId` is missing.');
|