Skip to content

Commit

Permalink
fix(clients): highlight and snippet results e2e (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3567

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
  • Loading branch information
3 people committed Aug 21, 2024
1 parent ecbcc24 commit 8b5a50a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions algoliasearch/abtesting/models/ab_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
5 changes: 5 additions & 0 deletions algoliasearch/abtesting/models/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,28 @@ 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",
)
click_count: StrictInt = Field(
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",
)
conversion_count: StrictInt = Field(
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",
)
Expand All @@ -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",
)
Expand Down

0 comments on commit 8b5a50a

Please sign in to comment.