@algolia/recommend 5.0.0-alpha.1 → 5.0.0-alpha.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builds/browser.d.ts +5 -5
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +5 -5
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/model/advancedSyntaxFeatures.d.ts +1 -1
- package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -1
- package/dist/model/alternativesAsExact.d.ts +1 -1
- package/dist/model/alternativesAsExact.d.ts.map +1 -1
- package/dist/model/anchoring.d.ts +5 -0
- package/dist/model/anchoring.d.ts.map +1 -0
- package/dist/model/aroundPrecision.d.ts +6 -0
- package/dist/model/aroundPrecision.d.ts.map +1 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts +5 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
- package/dist/model/aroundRadius.d.ts +5 -5
- package/dist/model/aroundRadius.d.ts.map +1 -1
- package/dist/model/aroundRadiusAll.d.ts +1 -1
- package/dist/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/model/automaticFacetFilter.d.ts +18 -0
- package/dist/model/automaticFacetFilter.d.ts.map +1 -0
- package/dist/model/automaticFacetFilters.d.ts +6 -0
- package/dist/model/automaticFacetFilters.d.ts.map +1 -0
- package/dist/model/baseRecommendRequest.d.ts +14 -17
- package/dist/model/baseRecommendRequest.d.ts.map +1 -1
- package/dist/model/baseRecommendationsQuery.d.ts +12 -0
- package/dist/model/baseRecommendationsQuery.d.ts.map +1 -0
- package/dist/model/baseRecommendedForYouQuery.d.ts +8 -0
- package/dist/model/baseRecommendedForYouQuery.d.ts.map +1 -0
- package/dist/model/baseRecommendedForYouQueryParameters.d.ts +7 -0
- package/dist/model/baseRecommendedForYouQueryParameters.d.ts.map +1 -0
- package/dist/model/baseSearchParams.d.ts +3 -3
- package/dist/model/baseSearchParams.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +118 -122
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +105 -101
- package/dist/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/model/baseTrendingFacetsQuery.d.ts +9 -0
- package/dist/model/baseTrendingFacetsQuery.d.ts.map +1 -0
- package/dist/model/baseTrendingItemsQuery.d.ts +16 -0
- package/dist/model/baseTrendingItemsQuery.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +127 -60
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/condition.d.ts +17 -0
- package/dist/model/condition.d.ts.map +1 -0
- package/dist/model/consequence.d.ts +26 -0
- package/dist/model/consequence.d.ts.map +1 -0
- package/dist/model/consequenceHide.d.ts +10 -0
- package/dist/model/consequenceHide.d.ts.map +1 -0
- package/dist/model/consequenceParams.d.ts +5 -0
- package/dist/model/consequenceParams.d.ts.map +1 -0
- package/dist/model/consequenceQuery.d.ts +6 -0
- package/dist/model/consequenceQuery.d.ts.map +1 -0
- package/dist/model/consequenceQueryObject.d.ts +12 -0
- package/dist/model/consequenceQueryObject.d.ts.map +1 -0
- package/dist/model/deletedAtResponse.d.ts +14 -0
- package/dist/model/deletedAtResponse.d.ts.map +1 -0
- package/dist/model/distinct.d.ts +5 -0
- package/dist/model/distinct.d.ts.map +1 -0
- package/dist/model/edit.d.ts +13 -0
- package/dist/model/edit.d.ts.map +1 -0
- package/dist/model/editType.d.ts +5 -0
- package/dist/model/editType.d.ts.map +1 -0
- package/dist/model/errorBase.d.ts +6 -6
- package/dist/model/errorBase.d.ts.map +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
- package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
- package/dist/model/exhaustive.d.ts +26 -0
- package/dist/model/exhaustive.d.ts.map +1 -0
- package/dist/model/facetFilters.d.ts +5 -5
- package/dist/model/facetFilters.d.ts.map +1 -1
- package/dist/model/facetOrdering.d.ts +12 -12
- package/dist/model/facetOrdering.d.ts.map +1 -1
- package/dist/model/facets.d.ts +9 -9
- package/dist/model/facets.d.ts.map +1 -1
- package/dist/model/facetsStats.d.ts +18 -18
- package/dist/model/facetsStats.d.ts.map +1 -1
- package/dist/model/getRecommendTaskResponse.d.ts +5 -0
- package/dist/model/getRecommendTaskResponse.d.ts.map +1 -0
- package/dist/model/getRecommendationsParams.d.ts +10 -10
- package/dist/model/getRecommendationsParams.d.ts.map +1 -1
- package/dist/model/getRecommendationsResponse.d.ts +4 -4
- package/dist/model/getRecommendationsResponse.d.ts.map +1 -1
- package/dist/model/highlightResult.d.ts +2 -2
- package/dist/model/highlightResult.d.ts.map +1 -1
- package/dist/model/highlightResultOption.d.ts +19 -19
- package/dist/model/highlightResultOption.d.ts.map +1 -1
- package/dist/model/ignorePlurals.d.ts +4 -4
- package/dist/model/ignorePlurals.d.ts.map +1 -1
- package/dist/model/index.d.ts +94 -52
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +162 -158
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/model/matchLevel.d.ts +4 -4
- package/dist/model/matchLevel.d.ts.map +1 -1
- package/dist/model/matchedGeoLocation.d.ts +14 -14
- package/dist/model/matchedGeoLocation.d.ts.map +1 -1
- package/dist/model/mixedSearchFilters.d.ts +1 -1
- package/dist/model/mixedSearchFilters.d.ts.map +1 -1
- package/dist/model/mode.d.ts +5 -0
- package/dist/model/mode.d.ts.map +1 -0
- package/dist/model/numericFilters.d.ts +5 -5
- package/dist/model/numericFilters.d.ts.map +1 -1
- package/dist/model/optionalFilters.d.ts +5 -5
- package/dist/model/optionalFilters.d.ts.map +1 -1
- package/dist/model/params.d.ts +13 -0
- package/dist/model/params.d.ts.map +1 -0
- package/dist/model/personalization.d.ts +14 -14
- package/dist/model/personalization.d.ts.map +1 -1
- package/dist/model/promote.d.ts +4 -0
- package/dist/model/promote.d.ts.map +1 -0
- package/dist/model/promoteObjectID.d.ts +14 -0
- package/dist/model/promoteObjectID.d.ts.map +1 -0
- package/dist/model/promoteObjectIDs.d.ts +14 -0
- package/dist/model/promoteObjectIDs.d.ts.map +1 -0
- package/dist/model/queryType.d.ts +4 -4
- package/dist/model/queryType.d.ts.map +1 -1
- package/dist/model/rankingInfo.d.ts +50 -50
- package/dist/model/rankingInfo.d.ts.map +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +5 -5
- package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
- package/dist/model/recommendHit.d.ts +26 -26
- package/dist/model/recommendHit.d.ts.map +1 -1
- package/dist/model/recommendModels.d.ts +2 -0
- package/dist/model/recommendModels.d.ts.map +1 -0
- package/dist/model/recommendationModels.d.ts +4 -4
- package/dist/model/recommendationModels.d.ts.map +1 -1
- package/dist/model/recommendationsHit.d.ts +4 -0
- package/dist/model/recommendationsHit.d.ts.map +1 -0
- package/dist/model/recommendationsHits.d.ts +13 -0
- package/dist/model/recommendationsHits.d.ts.map +1 -0
- package/dist/model/recommendationsQuery.d.ts +4 -0
- package/dist/model/recommendationsQuery.d.ts.map +1 -0
- package/dist/model/recommendationsRequest.d.ts +5 -3
- package/dist/model/recommendationsRequest.d.ts.map +1 -1
- package/dist/model/recommendationsResults.d.ts +4 -0
- package/dist/model/recommendationsResults.d.ts.map +1 -0
- package/dist/model/recommendedForYouModel.d.ts +5 -0
- package/dist/model/recommendedForYouModel.d.ts.map +1 -0
- package/dist/model/recommendedForYouQuery.d.ts +4 -0
- package/dist/model/recommendedForYouQuery.d.ts.map +1 -0
- package/dist/model/recommendedForYouQueryParameters.d.ts +4 -0
- package/dist/model/recommendedForYouQueryParameters.d.ts.map +1 -0
- package/dist/model/redirect.d.ts +8 -0
- package/dist/model/redirect.d.ts.map +1 -0
- package/dist/model/redirectRuleIndexMetadata.d.ts +21 -0
- package/dist/model/redirectRuleIndexMetadata.d.ts.map +1 -0
- package/dist/model/redirectRuleIndexMetadataData.d.ts +7 -0
- package/dist/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
- package/dist/model/removeStopWords.d.ts +4 -4
- package/dist/model/removeStopWords.d.ts.map +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +4 -4
- package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
- package/dist/model/renderingContent.d.ts +7 -7
- package/dist/model/renderingContent.d.ts.map +1 -1
- package/dist/model/ruleResponse.d.ts +27 -0
- package/dist/model/ruleResponse.d.ts.map +1 -0
- package/dist/model/ruleResponseMetadata.d.ts +7 -0
- package/dist/model/ruleResponseMetadata.d.ts.map +1 -0
- package/dist/model/searchParamsObject.d.ts +3 -3
- package/dist/model/searchParamsObject.d.ts.map +1 -1
- package/dist/model/searchParamsQuery.d.ts +6 -6
- package/dist/model/searchParamsQuery.d.ts.map +1 -1
- package/dist/model/searchRecommendRulesParams.d.ts +26 -0
- package/dist/model/searchRecommendRulesParams.d.ts.map +1 -0
- package/dist/model/searchRecommendRulesResponse.d.ts +20 -0
- package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -0
- package/dist/model/semanticSearch.d.ts +10 -0
- package/dist/model/semanticSearch.d.ts.map +1 -0
- package/dist/model/snippetResult.d.ts +2 -2
- package/dist/model/snippetResult.d.ts.map +1 -1
- package/dist/model/snippetResultOption.d.ts +11 -11
- package/dist/model/snippetResultOption.d.ts.map +1 -1
- package/dist/model/sortRemainingBy.d.ts +4 -4
- package/dist/model/sortRemainingBy.d.ts.map +1 -1
- package/dist/model/tagFilters.d.ts +5 -5
- package/dist/model/tagFilters.d.ts.map +1 -1
- package/dist/model/taskStatus.d.ts +5 -0
- package/dist/model/taskStatus.d.ts.map +1 -0
- package/dist/model/trendingFacetHit.d.ts +18 -0
- package/dist/model/trendingFacetHit.d.ts.map +1 -0
- package/dist/model/trendingFacetsModel.d.ts +5 -0
- package/dist/model/trendingFacetsModel.d.ts.map +1 -0
- package/dist/model/trendingFacetsQuery.d.ts +4 -0
- package/dist/model/trendingFacetsQuery.d.ts.map +1 -0
- package/dist/model/trendingItemsModel.d.ts +5 -0
- package/dist/model/trendingItemsModel.d.ts.map +1 -0
- package/dist/model/trendingItemsQuery.d.ts +4 -0
- package/dist/model/trendingItemsQuery.d.ts.map +1 -0
- package/dist/model/typoTolerance.d.ts +5 -5
- package/dist/model/typoTolerance.d.ts.map +1 -1
- package/dist/model/typoToleranceEnum.d.ts +1 -1
- package/dist/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/model/value.d.ts +8 -8
- package/dist/model/value.d.ts.map +1 -1
- package/dist/recommend.cjs +387 -0
- package/dist/recommend.esm.browser.js +588 -460
- package/dist/recommend.esm.node.js +376 -222
- package/dist/recommend.umd.js +2 -2
- package/dist/src/recommendClient.d.ts +135 -70
- package/dist/src/recommendClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/model/advancedSyntaxFeatures.ts +1 -1
- package/model/alternativesAsExact.ts +1 -1
- package/model/anchoring.ts +6 -0
- package/model/aroundPrecision.ts +8 -0
- package/model/aroundPrecisionFromValueInner.ts +7 -0
- package/model/aroundRadius.ts +2 -2
- package/model/aroundRadiusAll.ts +1 -1
- package/model/automaticFacetFilter.ts +21 -0
- package/model/automaticFacetFilters.ts +8 -0
- package/model/baseRecommendRequest.ts +7 -9
- package/model/baseRecommendationsQuery.ts +17 -0
- package/model/baseRecommendedForYouQuery.ts +12 -0
- package/model/baseRecommendedForYouQueryParameters.ts +8 -0
- package/model/baseSearchParams.ts +1 -1
- package/model/baseSearchParamsWithoutQuery.ts +69 -42
- package/model/baseSearchResponse.ts +61 -31
- package/model/baseTrendingFacetsQuery.ts +12 -0
- package/model/baseTrendingItemsQuery.ts +22 -0
- package/model/clientMethodProps.ts +91 -19
- package/model/condition.ts +22 -0
- package/model/consequence.ts +32 -0
- package/model/consequenceHide.ts +11 -0
- package/model/consequenceParams.ts +9 -0
- package/model/consequenceQuery.ts +8 -0
- package/model/consequenceQueryObject.ts +15 -0
- package/model/deletedAtResponse.ts +16 -0
- package/model/distinct.ts +6 -0
- package/model/edit.ts +17 -0
- package/model/editType.ts +6 -0
- package/model/errorBase.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +2 -2
- package/model/exhaustive.ts +31 -0
- package/model/facetFilters.ts +2 -2
- package/model/facetOrdering.ts +4 -3
- package/model/facets.ts +2 -2
- package/model/facetsStats.ts +8 -5
- package/model/getRecommendTaskResponse.ts +7 -0
- package/model/getRecommendationsParams.ts +3 -3
- package/model/getRecommendationsResponse.ts +3 -3
- package/model/highlightResult.ts +5 -2
- package/model/highlightResultOption.ts +5 -2
- package/model/ignorePlurals.ts +2 -2
- package/model/index.ts +50 -8
- package/model/indexSettingsAsSearchParams.ts +92 -44
- package/model/matchLevel.ts +1 -1
- package/model/matchedGeoLocation.ts +3 -1
- package/model/mixedSearchFilters.ts +1 -1
- package/model/mode.ts +6 -0
- package/model/numericFilters.ts +2 -2
- package/model/optionalFilters.ts +2 -2
- package/model/params.ts +18 -0
- package/model/personalization.ts +3 -1
- package/model/promote.ts +6 -0
- package/model/promoteObjectID.ts +16 -0
- package/model/promoteObjectIDs.ts +16 -0
- package/model/queryType.ts +2 -2
- package/model/rankingInfo.ts +13 -1
- package/model/reRankingApplyFilter.ts +2 -2
- package/model/recommendHit.ts +9 -4
- package/model/recommendModels.ts +7 -0
- package/model/recommendationModels.ts +2 -2
- package/model/recommendationsHit.ts +6 -0
- package/model/recommendationsHits.ts +17 -0
- package/model/recommendationsQuery.ts +7 -0
- package/model/recommendationsRequest.ts +10 -4
- package/model/recommendationsResults.ts +6 -0
- package/model/recommendedForYouModel.ts +6 -0
- package/model/recommendedForYouQuery.ts +7 -0
- package/model/recommendedForYouQueryParameters.ts +7 -0
- package/model/redirect.ts +10 -0
- package/model/redirectRuleIndexMetadata.ts +27 -0
- package/model/redirectRuleIndexMetadataData.ts +8 -0
- package/model/removeStopWords.ts +2 -2
- package/model/removeWordsIfNoResults.ts +2 -2
- package/model/renderingContent.ts +2 -2
- package/model/ruleResponse.ts +34 -0
- package/model/ruleResponseMetadata.ts +8 -0
- package/model/searchParamsObject.ts +1 -1
- package/model/searchParamsQuery.ts +2 -2
- package/model/searchRecommendRulesParams.ts +31 -0
- package/model/searchRecommendRulesResponse.ts +25 -0
- package/model/semanticSearch.ts +11 -0
- package/model/snippetResult.ts +5 -2
- package/model/snippetResultOption.ts +3 -2
- package/model/sortRemainingBy.ts +2 -2
- package/model/tagFilters.ts +2 -2
- package/model/taskStatus.ts +6 -0
- package/model/trendingFacetHit.ts +21 -0
- package/model/trendingFacetsModel.ts +6 -0
- package/model/trendingFacetsQuery.ts +7 -0
- package/model/trendingItemsModel.ts +6 -0
- package/model/trendingItemsQuery.ts +6 -0
- package/model/typoTolerance.ts +2 -2
- package/model/typoToleranceEnum.ts +1 -1
- package/model/value.ts +2 -1
- package/package.json +32 -13
- package/dist/model/baseRecommendationRequest.d.ts +0 -9
- package/dist/model/baseRecommendationRequest.d.ts.map +0 -1
- package/dist/model/baseTrendingRequest.d.ts +0 -13
- package/dist/model/baseTrendingRequest.d.ts.map +0 -1
- package/dist/model/recommendHits.d.ts +0 -5
- package/dist/model/recommendHits.d.ts.map +0 -1
- package/dist/model/recommendationRequest.d.ts +0 -4
- package/dist/model/recommendationRequest.d.ts.map +0 -1
- package/dist/model/recommendationsResponse.d.ts +0 -4
- package/dist/model/recommendationsResponse.d.ts.map +0 -1
- package/dist/model/trendingModels.d.ts +0 -5
- package/dist/model/trendingModels.d.ts.map +0 -1
- package/dist/model/trendingRequest.d.ts +0 -4
- package/dist/model/trendingRequest.d.ts.map +0 -1
- package/dist/recommend.cjs.js +0 -235
- package/model/baseRecommendationRequest.ts +0 -11
- package/model/baseTrendingRequest.ts +0 -15
- package/model/recommendHits.ts +0 -7
- package/model/recommendationRequest.ts +0 -7
- package/model/recommendationsResponse.ts +0 -6
- package/model/trendingModels.ts +0 -6
- package/model/trendingRequest.ts +0 -6
package/model/sortRemainingBy.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* How to display the remaining items
|
|
4
|
+
* How to display the remaining items: - `count`: facet count (descending). - `alpha`: alphabetical (ascending). - `hidden`: show only pinned values.
|
|
5
5
|
*/
|
|
6
6
|
export type SortRemainingBy = 'alpha' | 'count' | 'hidden';
|
package/model/tagFilters.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Filter hits by tags.
|
|
6
|
+
* [Filter hits by tags](https://www.algolia.com/doc/api-reference/api-parameters/tagFilters/).
|
|
7
7
|
*/
|
|
8
8
|
export type TagFilters = MixedSearchFilters[] | string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* _published_ if the task has been processed, _notPublished_ otherwise.
|
|
5
|
+
*/
|
|
6
|
+
export type TaskStatus = 'notPublished' | 'published';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Trending facet hit.
|
|
5
|
+
*/
|
|
6
|
+
export type TrendingFacetHit = {
|
|
7
|
+
/**
|
|
8
|
+
* Recommendation score.
|
|
9
|
+
*/
|
|
10
|
+
_score: number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Facet name for trending models.
|
|
14
|
+
*/
|
|
15
|
+
facetName: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Facet value for trending models.
|
|
19
|
+
*/
|
|
20
|
+
facetValue: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Trending facets model.
|
|
5
|
+
*/
|
|
6
|
+
export type TrendingFacetsModel = 'trending-facets';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { BaseRecommendRequest } from './baseRecommendRequest';
|
|
4
|
+
import type { BaseTrendingFacetsQuery } from './baseTrendingFacetsQuery';
|
|
5
|
+
|
|
6
|
+
export type TrendingFacetsQuery = BaseRecommendRequest &
|
|
7
|
+
BaseTrendingFacetsQuery;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Trending items model.
|
|
5
|
+
*/
|
|
6
|
+
export type TrendingItemsModel = 'trending-items';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { BaseRecommendRequest } from './baseRecommendRequest';
|
|
4
|
+
import type { BaseTrendingItemsQuery } from './baseTrendingItemsQuery';
|
|
5
|
+
|
|
6
|
+
export type TrendingItemsQuery = BaseRecommendRequest & BaseTrendingItemsQuery;
|
package/model/typoTolerance.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { TypoToleranceEnum } from './typoToleranceEnum';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Controls whether typo tolerance is enabled and how it is applied.
|
|
6
|
+
* Controls whether [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/) is enabled and how it is applied.
|
|
7
7
|
*/
|
|
8
8
|
export type TypoTolerance = TypoToleranceEnum | boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
export type TypoToleranceEnum = 'min' | 'strict';
|
package/model/value.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { SortRemainingBy } from './sortRemainingBy';
|
|
4
4
|
|
|
@@ -7,5 +7,6 @@ export type Value = {
|
|
|
7
7
|
* Pinned order of facet lists.
|
|
8
8
|
*/
|
|
9
9
|
order?: string[];
|
|
10
|
+
|
|
10
11
|
sortRemainingBy?: SortRemainingBy;
|
|
11
12
|
};
|
package/package.json
CHANGED
|
@@ -1,16 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/recommend",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.100",
|
|
4
4
|
"description": "JavaScript client for recommend",
|
|
5
5
|
"repository": "algolia/algoliasearch-client-javascript",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Algolia",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"node": {
|
|
12
|
+
"import": "./dist/recommend.esm.node.js",
|
|
13
|
+
"module": "./dist/recommend.esm.node.js",
|
|
14
|
+
"require": "./dist/recommend.cjs",
|
|
15
|
+
"default": "./dist/recommend.cjs"
|
|
16
|
+
},
|
|
17
|
+
"default": {
|
|
18
|
+
"umd": "./dist/recommend.umd.js",
|
|
19
|
+
"module": "./dist/recommend.esm.browser.js",
|
|
20
|
+
"import": "./dist/recommend.esm.browser.js",
|
|
21
|
+
"default": "./dist/recommend.umd.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"./src/*": "./src/*.ts",
|
|
25
|
+
"./model": "./model/index.ts"
|
|
26
|
+
},
|
|
27
|
+
"jsdelivr": "./dist/recommend.umd.js",
|
|
28
|
+
"unpkg": "./dist/recommend.umd.js",
|
|
29
|
+
"browser": "./dist/recommend.umd.js",
|
|
30
|
+
"types": "./index.d.ts",
|
|
14
31
|
"files": [
|
|
15
32
|
"dist",
|
|
16
33
|
"model",
|
|
@@ -18,16 +35,18 @@
|
|
|
18
35
|
"index.d.ts"
|
|
19
36
|
],
|
|
20
37
|
"scripts": {
|
|
21
|
-
"
|
|
38
|
+
"build": "yarn clean && rollup --config",
|
|
39
|
+
"clean": "rm -rf ./dist || true"
|
|
22
40
|
},
|
|
23
41
|
"dependencies": {
|
|
24
|
-
"@algolia/client-common": "5.0.0-alpha.
|
|
25
|
-
"@algolia/requester-browser-xhr": "5.0.0-alpha.
|
|
26
|
-
"@algolia/requester-node-http": "5.0.0-alpha.
|
|
42
|
+
"@algolia/client-common": "5.0.0-alpha.101",
|
|
43
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.101",
|
|
44
|
+
"@algolia/requester-node-http": "5.0.0-alpha.101"
|
|
27
45
|
},
|
|
28
46
|
"devDependencies": {
|
|
29
|
-
"@types/node": "
|
|
30
|
-
"
|
|
47
|
+
"@types/node": "20.11.0",
|
|
48
|
+
"rollup": "4.9.6",
|
|
49
|
+
"typescript": "5.3.3"
|
|
31
50
|
},
|
|
32
51
|
"engines": {
|
|
33
52
|
"node": ">= 14.0.0"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { RecommendationModels } from './recommendationModels';
|
|
2
|
-
export declare type BaseRecommendationRequest = {
|
|
3
|
-
model: RecommendationModels;
|
|
4
|
-
/**
|
|
5
|
-
* Unique identifier of the object.
|
|
6
|
-
*/
|
|
7
|
-
objectID: string;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=baseRecommendationRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"baseRecommendationRequest.d.ts","sourceRoot":"","sources":["../../../../packages/recommend/model/baseRecommendationRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,oBAAY,yBAAyB,GAAG;IACtC,KAAK,EAAE,oBAAoB,CAAC;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { TrendingModels } from './trendingModels';
|
|
2
|
-
export declare type BaseTrendingRequest = {
|
|
3
|
-
model: TrendingModels;
|
|
4
|
-
/**
|
|
5
|
-
* The facet name to use for trending models.
|
|
6
|
-
*/
|
|
7
|
-
facetName?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The facet value to use for trending models.
|
|
10
|
-
*/
|
|
11
|
-
facetValue?: string;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=baseTrendingRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"baseTrendingRequest.d.ts","sourceRoot":"","sources":["../../../../packages/recommend/model/baseTrendingRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,oBAAY,mBAAmB,GAAG;IAChC,KAAK,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommendHits.d.ts","sourceRoot":"","sources":["../../../../packages/recommend/model/recommendHits.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,oBAAY,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { BaseRecommendRequest } from './baseRecommendRequest';
|
|
2
|
-
import type { BaseRecommendationRequest } from './baseRecommendationRequest';
|
|
3
|
-
export declare type RecommendationRequest = BaseRecommendationRequest & BaseRecommendRequest;
|
|
4
|
-
//# sourceMappingURL=recommendationRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommendationRequest.d.ts","sourceRoot":"","sources":["../../../../packages/recommend/model/recommendationRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAE7E,oBAAY,qBAAqB,GAAG,yBAAyB,GAC3D,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommendationsResponse.d.ts","sourceRoot":"","sources":["../../../../packages/recommend/model/recommendationsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,oBAAY,uBAAuB,GAAG,kBAAkB,GAAG,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trendingModels.d.ts","sourceRoot":"","sources":["../../../../packages/recommend/model/trendingModels.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,cAAc,GAAG,iBAAiB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trendingRequest.d.ts","sourceRoot":"","sources":["../../../../packages/recommend/model/trendingRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,oBAAY,eAAe,GAAG,oBAAoB,GAAG,mBAAmB,CAAC"}
|
package/dist/recommend.cjs.js
DELETED
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var clientCommon = require('@algolia/client-common');
|
|
6
|
-
var requesterNodeHttp = require('@algolia/requester-node-http');
|
|
7
|
-
|
|
8
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
9
|
-
const apiClientVersion = '5.0.0-alpha.1';
|
|
10
|
-
function getDefaultHosts(appId) {
|
|
11
|
-
return [
|
|
12
|
-
{
|
|
13
|
-
url: `${appId}-dsn.algolia.net`,
|
|
14
|
-
accept: 'read',
|
|
15
|
-
protocol: 'https',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
url: `${appId}.algolia.net`,
|
|
19
|
-
accept: 'write',
|
|
20
|
-
protocol: 'https',
|
|
21
|
-
},
|
|
22
|
-
].concat(clientCommon.shuffle([
|
|
23
|
-
{
|
|
24
|
-
url: `${appId}-1.algolianet.com`,
|
|
25
|
-
accept: 'readWrite',
|
|
26
|
-
protocol: 'https',
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
url: `${appId}-2.algolianet.com`,
|
|
30
|
-
accept: 'readWrite',
|
|
31
|
-
protocol: 'https',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
url: `${appId}-3.algolianet.com`,
|
|
35
|
-
accept: 'readWrite',
|
|
36
|
-
protocol: 'https',
|
|
37
|
-
},
|
|
38
|
-
]));
|
|
39
|
-
}
|
|
40
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
41
|
-
function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }) {
|
|
42
|
-
const auth = clientCommon.createAuth(appIdOption, apiKeyOption, authMode);
|
|
43
|
-
const transporter = clientCommon.createTransporter({
|
|
44
|
-
hosts: getDefaultHosts(appIdOption),
|
|
45
|
-
...options,
|
|
46
|
-
algoliaAgent: clientCommon.getAlgoliaAgent({
|
|
47
|
-
algoliaAgents,
|
|
48
|
-
client: 'Recommend',
|
|
49
|
-
version: apiClientVersion,
|
|
50
|
-
}),
|
|
51
|
-
baseHeaders: {
|
|
52
|
-
'content-type': 'text/plain',
|
|
53
|
-
...auth.headers(),
|
|
54
|
-
...options.baseHeaders,
|
|
55
|
-
},
|
|
56
|
-
baseQueryParameters: {
|
|
57
|
-
...auth.queryParameters(),
|
|
58
|
-
...options.baseQueryParameters,
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
return {
|
|
62
|
-
transporter,
|
|
63
|
-
/**
|
|
64
|
-
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
65
|
-
*/
|
|
66
|
-
get _ua() {
|
|
67
|
-
return transporter.algoliaAgent.value;
|
|
68
|
-
},
|
|
69
|
-
/**
|
|
70
|
-
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
71
|
-
*
|
|
72
|
-
* @param segment - The algolia agent (user-agent) segment to add.
|
|
73
|
-
* @param version - The version of the agent.
|
|
74
|
-
*/
|
|
75
|
-
addAlgoliaAgent(segment, version) {
|
|
76
|
-
transporter.algoliaAgent.add({ segment, version });
|
|
77
|
-
},
|
|
78
|
-
/**
|
|
79
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
80
|
-
*
|
|
81
|
-
* @summary Send requests to the Algolia REST API.
|
|
82
|
-
* @param del - The del object.
|
|
83
|
-
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
84
|
-
* @param del.parameters - Query parameters to be applied to the current query.
|
|
85
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
86
|
-
*/
|
|
87
|
-
del({ path, parameters }, requestOptions) {
|
|
88
|
-
if (!path) {
|
|
89
|
-
throw new Error('Parameter `path` is required when calling `del`.');
|
|
90
|
-
}
|
|
91
|
-
const requestPath = '/1{path}'.replace('{path}', path);
|
|
92
|
-
const headers = {};
|
|
93
|
-
const queryParameters = parameters ? parameters : {};
|
|
94
|
-
const request = {
|
|
95
|
-
method: 'DELETE',
|
|
96
|
-
path: requestPath,
|
|
97
|
-
queryParameters,
|
|
98
|
-
headers,
|
|
99
|
-
};
|
|
100
|
-
return transporter.request(request, requestOptions);
|
|
101
|
-
},
|
|
102
|
-
/**
|
|
103
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
104
|
-
*
|
|
105
|
-
* @summary Send requests to the Algolia REST API.
|
|
106
|
-
* @param get - The get object.
|
|
107
|
-
* @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
108
|
-
* @param get.parameters - Query parameters to be applied to the current query.
|
|
109
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
110
|
-
*/
|
|
111
|
-
get({ path, parameters }, requestOptions) {
|
|
112
|
-
if (!path) {
|
|
113
|
-
throw new Error('Parameter `path` is required when calling `get`.');
|
|
114
|
-
}
|
|
115
|
-
const requestPath = '/1{path}'.replace('{path}', path);
|
|
116
|
-
const headers = {};
|
|
117
|
-
const queryParameters = parameters ? parameters : {};
|
|
118
|
-
const request = {
|
|
119
|
-
method: 'GET',
|
|
120
|
-
path: requestPath,
|
|
121
|
-
queryParameters,
|
|
122
|
-
headers,
|
|
123
|
-
};
|
|
124
|
-
return transporter.request(request, requestOptions);
|
|
125
|
-
},
|
|
126
|
-
/**
|
|
127
|
-
* Returns recommendations or trending results, for a specific model and `objectID`.
|
|
128
|
-
*
|
|
129
|
-
* @summary Get results.
|
|
130
|
-
* @param getRecommendationsParams - The getRecommendationsParams object.
|
|
131
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
132
|
-
*/
|
|
133
|
-
getRecommendations(getRecommendationsParams, requestOptions) {
|
|
134
|
-
if (!getRecommendationsParams) {
|
|
135
|
-
throw new Error('Parameter `getRecommendationsParams` is required when calling `getRecommendations`.');
|
|
136
|
-
}
|
|
137
|
-
if (!getRecommendationsParams.requests) {
|
|
138
|
-
throw new Error('Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.');
|
|
139
|
-
}
|
|
140
|
-
const requestPath = '/1/indexes/*/recommendations';
|
|
141
|
-
const headers = {};
|
|
142
|
-
const queryParameters = {};
|
|
143
|
-
const request = {
|
|
144
|
-
method: 'POST',
|
|
145
|
-
path: requestPath,
|
|
146
|
-
queryParameters,
|
|
147
|
-
headers,
|
|
148
|
-
data: getRecommendationsParams,
|
|
149
|
-
useReadTransporter: true,
|
|
150
|
-
cacheable: true,
|
|
151
|
-
};
|
|
152
|
-
return transporter.request(request, requestOptions);
|
|
153
|
-
},
|
|
154
|
-
/**
|
|
155
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
156
|
-
*
|
|
157
|
-
* @summary Send requests to the Algolia REST API.
|
|
158
|
-
* @param post - The post object.
|
|
159
|
-
* @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
160
|
-
* @param post.parameters - Query parameters to be applied to the current query.
|
|
161
|
-
* @param post.body - The parameters to send with the custom request.
|
|
162
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
163
|
-
*/
|
|
164
|
-
post({ path, parameters, body }, requestOptions) {
|
|
165
|
-
if (!path) {
|
|
166
|
-
throw new Error('Parameter `path` is required when calling `post`.');
|
|
167
|
-
}
|
|
168
|
-
const requestPath = '/1{path}'.replace('{path}', path);
|
|
169
|
-
const headers = {};
|
|
170
|
-
const queryParameters = parameters ? parameters : {};
|
|
171
|
-
const request = {
|
|
172
|
-
method: 'POST',
|
|
173
|
-
path: requestPath,
|
|
174
|
-
queryParameters,
|
|
175
|
-
headers,
|
|
176
|
-
data: body ? body : {},
|
|
177
|
-
};
|
|
178
|
-
return transporter.request(request, requestOptions);
|
|
179
|
-
},
|
|
180
|
-
/**
|
|
181
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
182
|
-
*
|
|
183
|
-
* @summary Send requests to the Algolia REST API.
|
|
184
|
-
* @param put - The put object.
|
|
185
|
-
* @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
186
|
-
* @param put.parameters - Query parameters to be applied to the current query.
|
|
187
|
-
* @param put.body - The parameters to send with the custom request.
|
|
188
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
189
|
-
*/
|
|
190
|
-
put({ path, parameters, body }, requestOptions) {
|
|
191
|
-
if (!path) {
|
|
192
|
-
throw new Error('Parameter `path` is required when calling `put`.');
|
|
193
|
-
}
|
|
194
|
-
const requestPath = '/1{path}'.replace('{path}', path);
|
|
195
|
-
const headers = {};
|
|
196
|
-
const queryParameters = parameters ? parameters : {};
|
|
197
|
-
const request = {
|
|
198
|
-
method: 'PUT',
|
|
199
|
-
path: requestPath,
|
|
200
|
-
queryParameters,
|
|
201
|
-
headers,
|
|
202
|
-
data: body ? body : {},
|
|
203
|
-
};
|
|
204
|
-
return transporter.request(request, requestOptions);
|
|
205
|
-
},
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
210
|
-
function recommendClient(appId, apiKey, options) {
|
|
211
|
-
if (!appId || typeof appId !== 'string') {
|
|
212
|
-
throw new Error('`appId` is missing.');
|
|
213
|
-
}
|
|
214
|
-
if (!apiKey || typeof apiKey !== 'string') {
|
|
215
|
-
throw new Error('`apiKey` is missing.');
|
|
216
|
-
}
|
|
217
|
-
return createRecommendClient({
|
|
218
|
-
appId,
|
|
219
|
-
apiKey,
|
|
220
|
-
timeouts: {
|
|
221
|
-
connect: clientCommon.DEFAULT_CONNECT_TIMEOUT_NODE,
|
|
222
|
-
read: clientCommon.DEFAULT_READ_TIMEOUT_NODE,
|
|
223
|
-
write: clientCommon.DEFAULT_WRITE_TIMEOUT_NODE,
|
|
224
|
-
},
|
|
225
|
-
requester: requesterNodeHttp.createHttpRequester(),
|
|
226
|
-
algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
|
|
227
|
-
responsesCache: clientCommon.createNullCache(),
|
|
228
|
-
requestsCache: clientCommon.createNullCache(),
|
|
229
|
-
hostsCache: clientCommon.createMemoryCache(),
|
|
230
|
-
...options,
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
exports.apiClientVersion = apiClientVersion;
|
|
235
|
-
exports.recommendClient = recommendClient;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
import type { RecommendationModels } from './recommendationModels';
|
|
4
|
-
|
|
5
|
-
export type BaseRecommendationRequest = {
|
|
6
|
-
model: RecommendationModels;
|
|
7
|
-
/**
|
|
8
|
-
* Unique identifier of the object.
|
|
9
|
-
*/
|
|
10
|
-
objectID: string;
|
|
11
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
import type { TrendingModels } from './trendingModels';
|
|
4
|
-
|
|
5
|
-
export type BaseTrendingRequest = {
|
|
6
|
-
model: TrendingModels;
|
|
7
|
-
/**
|
|
8
|
-
* The facet name to use for trending models.
|
|
9
|
-
*/
|
|
10
|
-
facetName?: string;
|
|
11
|
-
/**
|
|
12
|
-
* The facet value to use for trending models.
|
|
13
|
-
*/
|
|
14
|
-
facetValue?: string;
|
|
15
|
-
};
|
package/model/recommendHits.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
import type { BaseRecommendRequest } from './baseRecommendRequest';
|
|
4
|
-
import type { BaseRecommendationRequest } from './baseRecommendationRequest';
|
|
5
|
-
|
|
6
|
-
export type RecommendationRequest = BaseRecommendationRequest &
|
|
7
|
-
BaseRecommendRequest;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
import type { BaseSearchResponse } from './baseSearchResponse';
|
|
4
|
-
import type { RecommendHits } from './recommendHits';
|
|
5
|
-
|
|
6
|
-
export type RecommendationsResponse = BaseSearchResponse & RecommendHits;
|
package/model/trendingModels.ts
DELETED
package/model/trendingRequest.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
import type { BaseRecommendRequest } from './baseRecommendRequest';
|
|
4
|
-
import type { BaseTrendingRequest } from './baseTrendingRequest';
|
|
5
|
-
|
|
6
|
-
export type TrendingRequest = BaseRecommendRequest & BaseTrendingRequest;
|