Skip to content

Commit 6309f87

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 23c0c1c commit 6309f87

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

client/src/commonMain/kotlin/com/algolia/client/model/ingestion/SourceCommercetools.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import kotlinx.serialization.json.*
1212
* @param storeKeys
1313
* @param locales Locales for your commercetools stores.
1414
* @param fallbackIsInStockValue Whether a fallback value is stored in the Algolia record if there's no inventory information about the product.
15+
* @param productQueryPredicate Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
1516
* @param customFields
1617
*/
1718
@Serializable
@@ -29,5 +30,8 @@ public data class SourceCommercetools(
2930
/** Whether a fallback value is stored in the Algolia record if there's no inventory information about the product. */
3031
@SerialName(value = "fallbackIsInStockValue") val fallbackIsInStockValue: Boolean? = null,
3132

33+
/** Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query). */
34+
@SerialName(value = "productQueryPredicate") val productQueryPredicate: String? = null,
35+
3236
@SerialName(value = "customFields") val customFields: CommercetoolsCustomFields? = null,
3337
) : SourceInput

client/src/commonMain/kotlin/com/algolia/client/model/ingestion/SourceUpdateCommercetools.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import kotlinx.serialization.json.*
1111
* @param locales Locales for your commercetools stores.
1212
* @param url
1313
* @param fallbackIsInStockValue Whether a fallback value is stored in the Algolia record if there's no inventory information about the product.
14+
* @param productQueryPredicate Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
1415
* @param customFields
1516
*/
1617
@Serializable
@@ -26,5 +27,8 @@ public data class SourceUpdateCommercetools(
2627
/** Whether a fallback value is stored in the Algolia record if there's no inventory information about the product. */
2728
@SerialName(value = "fallbackIsInStockValue") val fallbackIsInStockValue: Boolean? = null,
2829

30+
/** Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query). */
31+
@SerialName(value = "productQueryPredicate") val productQueryPredicate: String? = null,
32+
2933
@SerialName(value = "customFields") val customFields: CommercetoolsCustomFields? = null,
3034
) : SourceUpdateInput

0 commit comments

Comments
 (0)