Skip to content

Commit 1811ec6

Browse files
algolia-botsbellonemillotp
committed
feat(specs): add useImagesObjects property in commercetools source input (generated)
algolia/api-clients-automation#5586 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Sylvain Bellone <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 4d03c6d commit 1811ec6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

algoliasearch/ingestion/models/source_commercetools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"project_key": "projectKey",
3030
"fallback_is_in_stock_value": "fallbackIsInStockValue",
3131
"product_query_predicate": "productQueryPredicate",
32+
"use_images_objects": "useImagesObjects",
3233
"custom_fields": "customFields",
3334
}
3435

@@ -51,6 +52,8 @@ class SourceCommercetools(BaseModel):
5152
""" Whether a fallback value is stored in the Algolia record if there's no inventory information about the product. """
5253
product_query_predicate: Optional[str] = None
5354
""" Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query). """
55+
use_images_objects: Optional[bool] = None
56+
""" When set to true, the connector indexes objects with all images attributes instead of only the URLs. """
5457
custom_fields: Optional[CommercetoolsCustomFields] = None
5558

5659
model_config = ConfigDict(

algoliasearch/ingestion/models/source_update_commercetools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"url": "url",
2929
"fallback_is_in_stock_value": "fallbackIsInStockValue",
3030
"product_query_predicate": "productQueryPredicate",
31+
"use_images_objects": "useImagesObjects",
3132
"custom_fields": "customFields",
3233
}
3334

@@ -49,6 +50,8 @@ class SourceUpdateCommercetools(BaseModel):
4950
""" Whether a fallback value is stored in the Algolia record if there's no inventory information about the product. """
5051
product_query_predicate: Optional[str] = None
5152
""" Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query). """
53+
use_images_objects: Optional[bool] = None
54+
""" When set to true, the connector indexes objects with all images attributes instead of only the URLs. """
5255
custom_fields: Optional[CommercetoolsCustomFields] = None
5356

5457
model_config = ConfigDict(

0 commit comments

Comments
 (0)