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 Jan 22, 2025
1 parent 458a5da commit 14c007e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 14 deletions.
4 changes: 2 additions & 2 deletions packages/platform-sdk/src/generated/models/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export interface OrderPagedSearchResponse {
readonly hits: Hit[]
}
/**
* Possible values for the `customType` property on [query expressions](/../api/projects/order-search#query-expressions) indicating the data type of the `field`.
* Possible values for the `customType` property on [simple expressions](/../api/projects/order-search#simple-expressions) indicating the data type of the `field`.
*/
export type OrderSearchCustomType =
| 'BooleanType'
Expand Down Expand Up @@ -327,7 +327,7 @@ export interface OrderSearchQueryExpressionValue {
*/
readonly boost?: number
/**
* Possible values for the `customType` property on [query expressions](/../api/projects/order-search#query-expressions) indicating the data type of the `field`.
* Possible values for the `customType` property on [simple expressions](/../api/projects/order-search#simple-expressions) indicating the data type of the `field`.
*
*/
readonly customType?: OrderSearchCustomType
Expand Down
38 changes: 28 additions & 10 deletions packages/platform-sdk/src/generated/models/product-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,34 @@ export interface ProductSearchErrorResponse extends ErrorResponse {
}
export interface ProductSearchMatchingVariantEntry {
/**
* Unique identifier of the variant.
* `id` of the [ProductVariant](ctp:api:type:ProductVariant) that matches the search query.
*
*
*/
readonly id: number
/**
* SKU of the matching variant.
* `sku` of the ProductVariant that matches the search query.
*
*
*/
readonly sku?: string
}
export interface ProductSearchMatchingVariants {
/**
* Whether the search criteria definitely matches all Variants of the returned Product, like for Product-level fields. Is always `false` for search expressions on Variant-level fields.
* `true` if all Variants of the returned Product match the search query, or if search query does not specify any expression for a [Product Variant field](/../api/projects/product-search#field-levels).
*
* `false` if only a subset of the Product Variants match the search query.
*
* Is always `false` for query expressions on Product Variant fields.
*
*
*/
readonly allMatched: boolean
/**
* The variants matching the search criteria or empty if all matched.
* Identifiers of the Product Variants that match the search query.
*
* Empty if all Product Variants of the returned Product match.
*
*
*/
readonly matchedVariants: ProductSearchMatchingVariantEntry[]
Expand Down Expand Up @@ -172,7 +182,10 @@ export interface ProductSearchRequest {
*/
readonly offset?: number
/**
* The search can return Products where not all Product Variants match the search criteria. If `true`, the response will include a field called `matchingVariants` that contains the `sku` of Product Variants that match the search query. If the query does not specify any variant-level criteria, `matchingVariants` will be null signifying that all Product Variants are a match.
* If `query` specifies an expression for a Product Variant field,
* set this to `true` to get additional information for each returned Product about which Product Variants match the search query.
* For details, see [matching variants](/../api/projects/product-search#matching-variants).
*
*
*/
readonly markMatchingVariants?: boolean
Expand All @@ -199,20 +212,25 @@ export interface ProductSearchRequest {
}
export interface ProductSearchResult {
/**
* Unique identifier of the Product.
* `id` of the [Product](ctp:api:type:Product) that matches the search query.
*
*
*/
readonly id: string
/**
* Contains Product Projection data for Products matching the `projection` field in the Search Products request.
* Information about which Product Variants match the search query.
* Only present if `markMatchingVariants` is set to `true` in the [ProductSearchRequest](ctp:api:type:ProductSearchRequest).
*
*
*/
readonly productProjection?: ProductProjection
readonly matchingVariants?: ProductSearchMatchingVariants
/**
* Describes the variants that matched the search criteria.
* Projected data of the Product with `id`.
* Only present if data integration [with Product Projection parameters](/../api/projects/product-search#with-product-projection-parameters) is requested.
*
*
*/
readonly matchingVariants?: ProductSearchMatchingVariants
readonly productProjection?: ProductProjection
}
export type ProductSearchFacetCountLevelEnum = 'products' | 'variants' | string
export interface ProductSearchFacetCountValue {
Expand Down
4 changes: 2 additions & 2 deletions packages/platform-sdk/src/generated/models/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/**
* Possible values for the `fieldType` property on [query expressions](/../api/search-query-language#query-expressions) indicating the data type of the `field`.
* Possible values for the `fieldType` property on [simple expressions](/../api/search-query-language#simple-expressions) indicating the data type of the `field`.
*/
export type SearchFieldType =
| 'boolean'
Expand Down Expand Up @@ -158,7 +158,7 @@ export interface SearchQueryExpressionValue {
*/
readonly boost?: number
/**
* Possible values for the `fieldType` property on [query expressions](/../api/search-query-language#query-expressions) indicating the data type of the `field`.
* Possible values for the `fieldType` property on [simple expressions](/../api/search-query-language#simple-expressions) indicating the data type of the `field`.
*
*/
readonly fieldType?: SearchFieldType
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,4 @@ e3d5bc9cb69146c5d1dd755ed5e8cf2f54566b3a
e45c96065b0f2d6cbb563b65fbed44785e8a8149
64c89a7773b97bd6425a82d7d8cee1a9f0f3e6e2
f28a1461a4122eed74c423156f1969ba204e6948
e18cd8073ea975fe92c1bad4dea957b16ee0b1c4

0 comments on commit 14c007e

Please sign in to comment.