From f76d023a1fd0bda5c1f21378cdf9676c42507e18 Mon Sep 17 00:00:00 2001 From: Martin Zanoni Date: Thu, 4 Jul 2024 13:39:58 +0200 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rasmus Østergaard <100682711+RAORelewise@users.noreply.github.com> --- packages/client/src/builders/search/getProductFacet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/builders/search/getProductFacet.ts b/packages/client/src/builders/search/getProductFacet.ts index 96adaa2..bb2fb23 100644 --- a/packages/client/src/builders/search/getProductFacet.ts +++ b/packages/client/src/builders/search/getProductFacet.ts @@ -1,7 +1,7 @@ import { BrandFacetResult, CategoryFacetResult, CategoryHierarchyFacetResult, PriceRangeFacetResult, PriceRangesFacetResult, ProductAssortmentFacetResult, ProductDataBooleanValueFacetResult, ProductDataDoubleRangeFacetResult, ProductDataDoubleRangesFacetResult, ProductDataDoubleValueFacetResult, ProductDataObjectFacetResult, ProductDataStringValueFacetResult, ProductFacetResult, VariantSpecificationFacetResult } from 'src/models/data-contracts'; -export type DataSelectionStrategy = 'Product' | 'Variant' | 'VariantWithFallbackToProduct' | 'ProductWithFallbackToVariant'; -export type PriceSelectionStrategy = 'Product' | 'Variant' | 'VariantWithFallbackToProduct' | 'ProductWithFallbackToVariant'; +export type DataSelectionStrategy = ProductDataDoubleRangeFacetResult['dataSelectionStrategy']; +export type PriceSelectionStrategy = PriceRangeFacetResult['priceSelectionStrategy']; export class GetProductFacet { public static productAssortment(facets: ProductFacetResult, selectionStrategy: 'Product' | 'Variant' | 'VariantWithFallbackToProduct' | 'ProductWithFallbackToVariant'): ProductAssortmentFacetResult | null {