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 da08ceb commit 5233e4d
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 0 deletions.
8 changes: 8 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@
- :warning: changed property `column` of type `GraphQLErrorLocation` from type `integer` to `number`
</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>

Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ public function testExecuteServerException(callable $builderFunction)
public function getRequests()
{
return [
'ByProjectKeyProductSelectionsByIDProductsGet_withWhere' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productSelections()
->withId('test_ID')
->products()
->get()
->withWhere('where');
},
'get',
'test_projectKey/product-selections/test_ID/products?where=where',
],
'ByProjectKeyProductSelectionsByIDProductsGet_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ public function testExecuteServerException(callable $builderFunction)
public function getRequests()
{
return [
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withWhere' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productSelections()
->withKey('test_key')
->products()
->get()
->withWhere('where');
},
'get',
'test_projectKey/product-selections/key=test_key/products?where=where',
],
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ function (RequestException $e) use ($resultType) {
);
}

/**
*
* @psalm-param scalar|scalar[] $where
*/
public function withWhere($where): ByProjectKeyProductSelectionsByIDProductsGet
{
return $this->withQueryParam('where', $where);
}

/**
*
* @psalm-param scalar|scalar[] $expand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ function (RequestException $e) use ($resultType) {
);
}

/**
*
* @psalm-param scalar|scalar[] $where
*/
public function withWhere($where): ByProjectKeyProductSelectionsKeyByKeyProductsGet
{
return $this->withQueryParam('where', $where);
}

/**
*
* @psalm-param scalar|scalar[] $expand
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -324,3 +324,4 @@ ccf4522140c12b0093aefe0e2a27d62bcc4834a6
8e09aa861a0ba58755289bc185dcb268ac4f1c13
0be69283d6aba9d3a2f895140378673f2f80f7b0
f254d17f05343dcc4299fc53ff9b335b5ef63d69
6892be230f1ad73f1150dd544c9fa7fee0e6b123

0 comments on commit 5233e4d

Please sign in to comment.