diff --git a/.changeset/changes_api.md b/.changeset/changes_api.md index 4ab208a29..93749e4b1 100644 --- a/.changeset/changes_api.md +++ b/.changeset/changes_api.md @@ -20,6 +20,7 @@
Added Method(s) +- added method `apiRoot.withProjectKey().productTailoring().head()` - added method `apiRoot.withProjectKey().customers().search().post()` - added method `apiRoot.withProjectKey().customers().search().head()` - added method `apiRoot.withProjectKey().customers().searchIndexingStatus().get()` diff --git a/changes.md b/changes.md index 4da8ea7c6..8a36147cc 100644 --- a/changes.md +++ b/changes.md @@ -16,6 +16,7 @@
Added Method(s) +- added method `apiRoot.withProjectKey().productTailoring().head()` - added method `apiRoot.withProjectKey().customers().search().post()` - added method `apiRoot.withProjectKey().customers().search().head()` - added method `apiRoot.withProjectKey().customers().searchIndexingStatus().get()` diff --git a/packages/platform-sdk/src/generated/client/product-tailoring/by-project-key-product-tailoring-request-builder.ts b/packages/platform-sdk/src/generated/client/product-tailoring/by-project-key-product-tailoring-request-builder.ts index 1b56495c3..2da2abe1b 100644 --- a/packages/platform-sdk/src/generated/client/product-tailoring/by-project-key-product-tailoring-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/product-tailoring/by-project-key-product-tailoring-request-builder.ts @@ -77,6 +77,32 @@ export class ByProjectKeyProductTailoringRequestBuilder { this.args.executeRequest ) } + /** + * Checks if a ProductTailoring exists for a given Query Predicate. Returns a `200 OK` status if any ProductTailoring match the Query Predicate or a `404 Not Found` otherwise. + */ + public head(methodArgs?: { + queryArgs?: { + where?: string | string[] + [key: string]: QueryParam + } + headers?: { + [key: string]: string | string[] + } + }): ApiRequest { + return new ApiRequest( + { + baseUri: this.args.baseUri, + method: 'HEAD', + uriTemplate: '/{projectKey}/product-tailoring', + pathVariables: this.args.pathArgs, + headers: { + ...methodArgs?.headers, + }, + queryParams: methodArgs?.queryArgs, + }, + this.args.executeRequest + ) + } /** * Generates the [ProductTailoringCreated](ctp:api:type:ProductTailoringCreatedMessage) Message. * diff --git a/packages/platform-sdk/test/generated/client/product-tailoring/by-project-key-product-tailoring-request-builder.test.ts b/packages/platform-sdk/test/generated/client/product-tailoring/by-project-key-product-tailoring-request-builder.test.ts index 197f87c71..2136df614 100644 --- a/packages/platform-sdk/test/generated/client/product-tailoring/by-project-key-product-tailoring-request-builder.test.ts +++ b/packages/platform-sdk/test/generated/client/product-tailoring/by-project-key-product-tailoring-request-builder.test.ts @@ -75,6 +75,22 @@ export function getRequestsWithMethodParameters(): RequestWithMethod[] { .productTailoring() .get(), }, + { + method: 'head', + uri: '/test_projectKey/product-tailoring?where=where', + request: apiRoot + .withProjectKey({ projectKey: 'test_projectKey' }) + .productTailoring() + .head({ queryArgs: { where: 'where' } }), + }, + { + method: 'head', + uri: '/test_projectKey/product-tailoring', + request: apiRoot + .withProjectKey({ projectKey: 'test_projectKey' }) + .productTailoring() + .head(), + }, { method: 'post', uri: '/test_projectKey/product-tailoring?expand=expand', diff --git a/references.txt b/references.txt index 731182a3c..25f27109b 100644 --- a/references.txt +++ b/references.txt @@ -321,3 +321,4 @@ e985f4b7aa55610705ee49bd3eb645c2fd03eb6c 92698a85656cdd1f837290f10d785824aa4cfd71 bc8899d62927bb41e2209454a2cfc42dd049409f 3bde1efd0d5dbff77065d355e9d00e8a0e8f466a +c27603f949e869148570ebb8bd3ec6db34a985b7