From 8b5a50af42e774fc4c9141c1927775324160357d Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Wed, 21 Aug 2024 15:21:15 +0000 Subject: [PATCH] fix(clients): highlight and snippet results e2e (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/3567 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte Co-authored-by: Pierre Millot --- algoliasearch/abtesting/models/ab_test.py | 10 +++++----- algoliasearch/abtesting/models/variant.py | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/algoliasearch/abtesting/models/ab_test.py b/algoliasearch/abtesting/models/ab_test.py index af6a3bc7f..00ef6603d 100644 --- a/algoliasearch/abtesting/models/ab_test.py +++ b/algoliasearch/abtesting/models/ab_test.py @@ -25,19 +25,19 @@ class ABTest(BaseModel): description="Unique A/B test identifier.", alias="abTestID" ) click_significance: Optional[Union[StrictFloat, StrictInt]] = Field( - alias="clickSignificance" + default=None, alias="clickSignificance" ) conversion_significance: Optional[Union[StrictFloat, StrictInt]] = Field( - alias="conversionSignificance" + default=None, alias="conversionSignificance" ) add_to_cart_significance: Optional[Union[StrictFloat, StrictInt]] = Field( - alias="addToCartSignificance" + default=None, alias="addToCartSignificance" ) purchase_significance: Optional[Union[StrictFloat, StrictInt]] = Field( - alias="purchaseSignificance" + default=None, alias="purchaseSignificance" ) revenue_significance: Optional[Dict[str, Union[StrictFloat, StrictInt]]] = Field( - alias="revenueSignificance" + default=None, alias="revenueSignificance" ) updated_at: StrictStr = Field( description="Date and time when the A/B test was last updated, in RFC 3339 format.", diff --git a/algoliasearch/abtesting/models/variant.py b/algoliasearch/abtesting/models/variant.py index 3c6ddf6d5..eaea968ca 100644 --- a/algoliasearch/abtesting/models/variant.py +++ b/algoliasearch/abtesting/models/variant.py @@ -25,10 +25,12 @@ class Variant(BaseModel): alias="addToCartCount", ) add_to_cart_rate: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, description="[Add-to-cart rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#add-to-cart-rate) for this variant. ", alias="addToCartRate", ) average_click_position: Optional[StrictInt] = Field( + default=None, description="[Average click position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position) for this variant. ", alias="averageClickPosition", ) @@ -36,6 +38,7 @@ class Variant(BaseModel): description="Number of click events for this variant.", alias="clickCount" ) click_through_rate: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, description="[Click-through rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate) for this variant. ", alias="clickThroughRate", ) @@ -43,6 +46,7 @@ class Variant(BaseModel): description="Number of click events for this variant.", alias="conversionCount" ) conversion_rate: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, description="[Conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate) for this variant. ", alias="conversionRate", ) @@ -67,6 +71,7 @@ class Variant(BaseModel): description="Number of purchase events for this variant.", alias="purchaseCount" ) purchase_rate: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, description="[Purchase rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#purchase-rate) for this variant. ", alias="purchaseRate", )