Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated SDKs #379

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -19,6 +19,18 @@ public void WithMethods(HttpRequestMessage request, string httpMethod, string ur
public static IEnumerable<object[]> GetData()
{
return new List<object[]> {
new Object[] {
ApiRoot
.WithProjectKey("test_projectKey")
.ProductSelections()
.WithId("test_ID")
.Products()
.Get()
.WithWhere("where")
.Build(),
"Get",
"/test_projectKey/product-selections/test_ID/products?where=where",
},
new Object[] {
ApiRoot
.WithProjectKey("test_projectKey")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ public void WithMethods(HttpRequestMessage request, string httpMethod, string ur
public static IEnumerable<object[]> GetData()
{
return new List<object[]> {
new Object[] {
ApiRoot
.WithProjectKey("test_projectKey")
.ProductSelections()
.WithKey("test_key")
.Products()
.Get()
.WithWhere("where")
.Build(),
"Get",
"/test_projectKey/product-selections/key=test_key/products?where=where",
},
new Object[] {
ApiRoot
.WithProjectKey("test_projectKey")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public ByProjectKeyProductSelectionsByIDProductsGet(IClient apiHttpClient, strin
this.RequestUrl = $"/{ProjectKey}/product-selections/{ID}/products";
}

public List<string> GetWhere()
{
return this.GetQueryParam("where");
}

public List<string> GetExpand()
{
return this.GetQueryParam("expand");
Expand All @@ -56,6 +61,11 @@ public List<string> GetSort()
return this.GetQueryParam("sort");
}

public ByProjectKeyProductSelectionsByIDProductsGet WithWhere(string where)
{
return this.AddQueryParam("where", where);
}

public ByProjectKeyProductSelectionsByIDProductsGet WithExpand(string expand)
{
return this.AddQueryParam("expand", expand);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public ByProjectKeyProductSelectionsKeyByKeyProductsGet(IClient apiHttpClient, s
this.RequestUrl = $"/{ProjectKey}/product-selections/key={Key}/products";
}

public List<string> GetWhere()
{
return this.GetQueryParam("where");
}

public List<string> GetExpand()
{
return this.GetQueryParam("expand");
Expand All @@ -56,6 +61,11 @@ public List<string> GetSort()
return this.GetQueryParam("sort");
}

public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithWhere(string where)
{
return this.AddQueryParam("where", where);
}

public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithExpand(string expand)
{
return this.AddQueryParam("expand", expand);
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,4 @@ d410bad973f2fe90ea8239c4cb586fe0cfc13856
6bb8d35316a92441d0a59417b49ad3a8c7037e45
605a1ff5cf861ca0d8e2711ca79374804f180b50
f254d17f05343dcc4299fc53ff9b335b5ef63d69
6892be230f1ad73f1150dd544c9fa7fee0e6b123
Loading