From 7b502ad2a5f94481857d4b3540665225dd41cc04 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Mon, 14 Oct 2024 12:59:30 +0000 Subject: [PATCH] fix(specs): recommend is optional (generated) https://github.com/algolia/api-clients-automation/pull/3967 Co-authored-by: algolia-bot --- packages/algoliasearch/lite/model/recommendHit.ts | 2 +- packages/algoliasearch/lite/model/trendingFacetHit.ts | 2 +- packages/recommend/model/recommendHit.ts | 2 +- packages/recommend/model/trendingFacetHit.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/algoliasearch/lite/model/recommendHit.ts b/packages/algoliasearch/lite/model/recommendHit.ts index d3c0432b7..ef363ef91 100644 --- a/packages/algoliasearch/lite/model/recommendHit.ts +++ b/packages/algoliasearch/lite/model/recommendHit.ts @@ -30,5 +30,5 @@ export type RecommendHit = Record & { /** * Recommendation score. */ - _score: number; + _score?: number; }; diff --git a/packages/algoliasearch/lite/model/trendingFacetHit.ts b/packages/algoliasearch/lite/model/trendingFacetHit.ts index defce3889..be8766692 100644 --- a/packages/algoliasearch/lite/model/trendingFacetHit.ts +++ b/packages/algoliasearch/lite/model/trendingFacetHit.ts @@ -7,7 +7,7 @@ export type TrendingFacetHit = { /** * Recommendation score. */ - _score: number; + _score?: number; /** * Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned. diff --git a/packages/recommend/model/recommendHit.ts b/packages/recommend/model/recommendHit.ts index d3c0432b7..ef363ef91 100644 --- a/packages/recommend/model/recommendHit.ts +++ b/packages/recommend/model/recommendHit.ts @@ -30,5 +30,5 @@ export type RecommendHit = Record & { /** * Recommendation score. */ - _score: number; + _score?: number; }; diff --git a/packages/recommend/model/trendingFacetHit.ts b/packages/recommend/model/trendingFacetHit.ts index defce3889..be8766692 100644 --- a/packages/recommend/model/trendingFacetHit.ts +++ b/packages/recommend/model/trendingFacetHit.ts @@ -7,7 +7,7 @@ export type TrendingFacetHit = { /** * Recommendation score. */ - _score: number; + _score?: number; /** * Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.