Skip to content

Commit 84a6683

Browse files
feat(specs): add CT Query predicate property (generated)
algolia/api-clients-automation#4654 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Morgan Leroi <[email protected]>
1 parent 8c35508 commit 84a6683

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: algoliasearch/ingestion/models/source_commercetools.py

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"url": "url",
2929
"project_key": "projectKey",
3030
"fallback_is_in_stock_value": "fallbackIsInStockValue",
31+
"product_query_predicate": "productQueryPredicate",
3132
"custom_fields": "customFields",
3233
}
3334

@@ -48,6 +49,8 @@ class SourceCommercetools(BaseModel):
4849
project_key: str
4950
fallback_is_in_stock_value: Optional[bool] = None
5051
""" Whether a fallback value is stored in the Algolia record if there's no inventory information about the product. """
52+
product_query_predicate: Optional[str] = None
53+
""" Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query). """
5154
custom_fields: Optional[CommercetoolsCustomFields] = None
5255

5356
model_config = ConfigDict(

Diff for: algoliasearch/ingestion/models/source_update_commercetools.py

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"locales": "locales",
2828
"url": "url",
2929
"fallback_is_in_stock_value": "fallbackIsInStockValue",
30+
"product_query_predicate": "productQueryPredicate",
3031
"custom_fields": "customFields",
3132
}
3233

@@ -46,6 +47,8 @@ class SourceUpdateCommercetools(BaseModel):
4647
url: Optional[str] = None
4748
fallback_is_in_stock_value: Optional[bool] = None
4849
""" Whether a fallback value is stored in the Algolia record if there's no inventory information about the product. """
50+
product_query_predicate: Optional[str] = None
51+
""" Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query). """
4952
custom_fields: Optional[CommercetoolsCustomFields] = None
5053

5154
model_config = ConfigDict(

0 commit comments

Comments
 (0)