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 a7efbcd commit be1b59d
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 @@ -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

0 comments on commit be1b59d

Please sign in to comment.