Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Apr 15, 2024
1 parent f3989f6 commit dabd361
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

- added property `attributedTo` to type `CreatedBy`
- added property `attributedTo` to type `LastModifiedBy`
- added property `postFilter` to type `ProductSearchRequest`
</details>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ public partial interface IProductSearchRequest
IEnumerable<IProductSearchFacetExpression> FacetsEnumerable { set => Facets = value.ToList(); }


ISearchQuery PostFilter { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ public partial class ProductSearchRequest : IProductSearchRequest
public IList<IProductSearchFacetExpression> Facets { get; set; }
public IEnumerable<IProductSearchFacetExpression> FacetsEnumerable { set => Facets = value.ToList(); }


public ISearchQuery PostFilter { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ public ICollectionPredicateBuilder<ProductSearchRequestQueryBuilderDsl> Facets()
return new CollectionPredicateBuilder<ProductSearchRequestQueryBuilderDsl>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("facets")),
p => new CombinationQueryPredicate<ProductSearchRequestQueryBuilderDsl>(p, ProductSearchRequestQueryBuilderDsl.Of));
}
public CombinationQueryPredicate<ProductSearchRequestQueryBuilderDsl> PostFilter(
Func<commercetools.Sdk.Api.Predicates.Query.Searches.SearchQueryQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Searches.SearchQueryQueryBuilderDsl>> fn)
{
return new CombinationQueryPredicate<ProductSearchRequestQueryBuilderDsl>(ContainerQueryPredicate.Of()
.Parent(ConstantQueryPredicate.Of().Constant("postFilter"))
.Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Searches.SearchQueryQueryBuilderDsl.Of())),
ProductSearchRequestQueryBuilderDsl.Of);
}


}
}
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,4 @@ a9d748dbcbfc8d2a1cd8d0f8c4e48807e502e79e
970259cbb06d9d9158370b3f9ed69f4ab63d88a3
22d37e3825d895d44abb4ba0b5e4b8785f7f0968
c8a374e9c967c7b8c5080c9a6ed2cd92261680ef
cbdd859f3702f084fa22a22d7e4459f7e4b43316

0 comments on commit dabd361

Please sign in to comment.