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 Nov 15, 2024
1 parent 02bb40f commit e3f9e64
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/changes_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,10 @@
- :warning: removed query parameter `offset` from method `get /{projectKey}/product-projections/suggest`
- :warning: removed query parameter `withTotal` from method `get /{projectKey}/product-projections/suggest`
</details>

<details>
<summary>Added QueryParameter(s)</summary>

- added query parameter `where` to method `get /{projectKey}/product-selections/key={key}/products`
- added query parameter `where` to method `get /{projectKey}/product-selections/{ID}/products`
</details>
7 changes: 7 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,13 @@
- :warning: removed query parameter `withTotal` from method `get /{projectKey}/product-projections/suggest`
</details>

<details>
<summary>Added QueryParameter(s)</summary>

- added query parameter `where` to method `get /{projectKey}/product-selections/key={key}/products`
- added query parameter `where` to method `get /{projectKey}/product-selections/{ID}/products`
</details>

**Import changes**

<details>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class ByProjectKeyProductSelectionsByIDProductsRequestBuilder {
) {}
public get(methodArgs?: {
queryArgs?: {
where?: string | string[]
expand?: string | string[]
limit?: number
offset?: number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class ByProjectKeyProductSelectionsKeyByKeyProductsRequestBuilder {
) {}
public get(methodArgs?: {
queryArgs?: {
where?: string | string[]
expand?: string | string[]
limit?: number
offset?: number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ const apiRoot: ApiRoot = new ApiRoot({ executeRequest: null })

export function getRequestsWithMethodParameters(): RequestWithMethod[] {
return [
{
method: 'get',
uri: '/test_projectKey/product-selections/test_ID/products?where=where',
request: apiRoot
.withProjectKey({ projectKey: 'test_projectKey' })
.productSelections()
.withId({ ID: 'test_ID' })
.products()
.get({ queryArgs: { where: 'where' } }),
},
{
method: 'get',
uri: '/test_projectKey/product-selections/test_ID/products?expand=expand',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ const apiRoot: ApiRoot = new ApiRoot({ executeRequest: null })

export function getRequestsWithMethodParameters(): RequestWithMethod[] {
return [
{
method: 'get',
uri: '/test_projectKey/product-selections/key=test_key/products?where=where',
request: apiRoot
.withProjectKey({ projectKey: 'test_projectKey' })
.productSelections()
.withKey({ key: 'test_key' })
.products()
.get({ queryArgs: { where: 'where' } }),
},
{
method: 'get',
uri: '/test_projectKey/product-selections/key=test_key/products?expand=expand',
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -338,3 +338,4 @@ ccf4522140c12b0093aefe0e2a27d62bcc4834a6
0be69283d6aba9d3a2f895140378673f2f80f7b0
605a1ff5cf861ca0d8e2711ca79374804f180b50
f254d17f05343dcc4299fc53ff9b335b5ef63d69
6892be230f1ad73f1150dd544c9fa7fee0e6b123

0 comments on commit e3f9e64

Please sign in to comment.