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 Oct 18, 2024
1 parent 7cfccb8 commit a31e113
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changeset/changes_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<details>
<summary>Added Method(s)</summary>

- 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()`
Expand Down
1 change: 1 addition & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<details>
<summary>Added Method(s)</summary>

- 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()`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
return new ApiRequest<void>(
{
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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,3 +321,4 @@ e985f4b7aa55610705ee49bd3eb645c2fd03eb6c
92698a85656cdd1f837290f10d785824aa4cfd71
bc8899d62927bb41e2209454a2cfc42dd049409f
3bde1efd0d5dbff77065d355e9d00e8a0e8f466a
c27603f949e869148570ebb8bd3ec6db34a985b7

0 comments on commit a31e113

Please sign in to comment.