From 3b9ffb6888a7f71c9a572cbef8d5f6e06135c9e3 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Thu, 2 Jan 2025 14:32:41 +0000
Subject: [PATCH] build(codegen): updating SDK
---
changes.md | 27 ++
.../client/ByProjectKeyGraphqlPost.java | 126 ++++++++
.../client/ByProjectKeyGraphqlPostString.java | 125 ++++++++
.../ByProjectKeyGraphqlRequestBuilder.java | 33 +++
.../client/ByProjectKeyRequestBuilder.java | 4 +
.../models/error/GraphQLErrorObject.java | 94 ++++++
.../error/GraphQLErrorObjectBuilder.java | 22 ++
.../models/error/GraphQLErrorObjectImpl.java | 98 +++++++
.../history/models/graph_ql/GraphQLError.java | 201 +++++++++++++
.../models/graph_ql/GraphQLErrorBuilder.java | 277 ++++++++++++++++++
.../models/graph_ql/GraphQLErrorImpl.java | 149 ++++++++++
.../models/graph_ql/GraphQLErrorLocation.java | 140 +++++++++
.../graph_ql/GraphQLErrorLocationBuilder.java | 107 +++++++
.../graph_ql/GraphQLErrorLocationImpl.java | 97 ++++++
.../models/graph_ql/GraphQLRequest.java | 158 ++++++++++
.../graph_ql/GraphQLRequestBuilder.java | 161 ++++++++++
.../models/graph_ql/GraphQLRequestImpl.java | 117 ++++++++
.../models/graph_ql/GraphQLResponse.java | 151 ++++++++++
.../graph_ql/GraphQLResponseBuilder.java | 188 ++++++++++++
.../models/graph_ql/GraphQLResponseImpl.java | 102 +++++++
.../models/graph_ql/GraphQLVariablesMap.java | 123 ++++++++
.../graph_ql/GraphQLVariablesMapBuilder.java | 95 ++++++
.../graph_ql/GraphQLVariablesMapImpl.java | 80 +++++
.../resource/ByProjectKeyGraphqlTest.java | 78 +++++
.../graph_ql/GraphQLErrorLocationTest.java | 44 +++
.../models/graph_ql/GraphQLErrorTest.java | 69 +++++
.../models/graph_ql/GraphQLRequestTest.java | 54 ++++
.../models/graph_ql/GraphQLResponseTest.java | 49 ++++
.../graph_ql/GraphQLVariablesMapTest.java | 13 +
references.txt | 1 +
30 files changed, 2983 insertions(+)
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlPost.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlPostString.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlRequestBuilder.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocation.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationBuilder.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationImpl.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequest.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestBuilder.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestImpl.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponse.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseBuilder.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseImpl.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMap.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapBuilder.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapImpl.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyGraphqlTest.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationTest.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestTest.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseTest.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapTest.java
diff --git a/changes.md b/changes.md
index 98d26bd9c0d..42244cf42cb 100644
--- a/changes.md
+++ b/changes.md
@@ -45,3 +45,30 @@
- added type `SearchExactValue`
+**History changes**
+
+Added Resource(s)
+
+- added resource `/{projectKey}/graphql`
+Added Method(s)
+
+- added method `apiRoot.withProjectKeyValue().graphql().post()`
+Added Type(s)
+
+- added type `GraphQLRequest`
+- added type `GraphQLResponse`
+- added type `GraphQLError`
+- added type `GraphQLErrorLocation`
+- added type `GraphQLVariablesMap`
+- added type `GraphQLErrorObject`
+
Execute a GraphQL request.
+ * + *{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKeyValue("{projectKey}")
+ * .graphql()
+ * .post(null)
+ * .execute()
+ * }
+ * Execute a GraphQL request.
+ * + *{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKeyValue("{projectKey}")
+ * .graphql()
+ * .post("")
+ * .execute()
+ * }
+ * Represents a single error.
+ * + *
+ * GraphQLErrorObject graphQLErrorObject = GraphQLErrorObject.builder()
+ * .build()
+ *
+ * One of the error codes that is listed on the Errors page.
+ * @return code + */ + @NotNull + @JsonProperty("code") + public String getCode(); + + /** + *Error-specific additional fields.
+ * @return map of the pattern property values + */ + @NotNull + @JsonAnyGetter + public MapError-specific additional fields.
+ * @param key property name + * @param value property value + */ + + @JsonAnySetter + public void setValue(String key, Object value); + + /** + * factory method to create a deep copy of GraphQLErrorObject + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static GraphQLErrorObject deepCopy(@Nullable final GraphQLErrorObject template) { + if (template == null) { + return null; + } + GraphQLErrorObjectImpl instance = new GraphQLErrorObjectImpl(); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + return instance; + } + + /** + * accessor map function + * @paramRepresents a single error.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLErrorObjectImpl implements GraphQLErrorObject, ModelBase { + + private String code; + + private MapOne of the error codes that is listed on the Errors page.
+ */ + + public String getCode() { + return this.code; + } + + /** + *Error-specific additional fields.
+ */ + + public MapContains an error message, the location of the code that caused the error, and other information to help you correct the error.
+ * + *
+ * GraphQLError graphQLError = GraphQLError.builder()
+ * .message("{message}")
+ * .plusLocations(locationsBuilder -> locationsBuilder)
+ * .extensions(extensionsBuilder -> extensionsBuilder)
+ * .build()
+ *
+ * Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.
+ * @return message + */ + @NotNull + @JsonProperty("message") + public String getMessage(); + + /** + *Location within your query where the error occurred.
+ * @return locations + */ + @NotNull + @Valid + @JsonProperty("locations") + public ListQuery fields listed in order from the root of the query response up to the field in which the error occurred. path
is displayed in the response only if an error is associated with a particular field in the query result.